CN110303890A - Tamper-resistant detection method, device and the electric bicycle of electric bicycle - Google Patents
Tamper-resistant detection method, device and the electric bicycle of electric bicycle Download PDFInfo
- Publication number
- CN110303890A CN110303890A CN201910636086.XA CN201910636086A CN110303890A CN 110303890 A CN110303890 A CN 110303890A CN 201910636086 A CN201910636086 A CN 201910636086A CN 110303890 A CN110303890 A CN 110303890A
- Authority
- CN
- China
- Prior art keywords
- electric bicycle
- information
- significant components
- tamper
- rom
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60L—PROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
- B60L3/00—Electric devices on electrically-propelled vehicles for safety purposes; Monitoring operating variables, e.g. speed, deceleration or energy consumption
- B60L3/0023—Detecting, eliminating, remedying or compensating for drive train abnormalities, e.g. failures within the drive train
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/81—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60L—PROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
- B60L2200/00—Type of vehicles
- B60L2200/12—Bikes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Sustainable Energy (AREA)
- Power Engineering (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Lock And Its Accessories (AREA)
Abstract
This application provides a kind of tamper-resistant detection methods of electric bicycle, when electric bicycle powers on, obtain the tamper-resistant parameter information of each significant components of electric bicycle respectively;The preset information stored in the read only memory ROM in each significant components of electric bicycle is uploaded respectively;Judge whether the tamper-resistant parameter information of each significant components of electric bicycle matches with corresponding preset information respectively;If exact matching, electric bicycle powers on success, opens electric bicycle main circuit;If cannot exactly match, electric bicycle is prompted to power on failure.The present invention realizes that tamper-resistant detects before electric bicycle powers on, and electric bicycle is avoided to be adapted as user's bring security risk.
Description
Technical field
The present invention relates to electric bicycle technical fields, more particularly to a kind of tamper-resistant of electric bicycle detects
Method, apparatus and electric bicycle.
Background technique
Currently, electric bicycle is widely used in city and rural area, it is huge using radix.For traffic safety, country is right
Electric bicycle has stringent standard limitation.But it currently remains to pursue the more course continuation mileages pair of faster speed
The phenomenon that important component of electric bicycle is reequiped.When certain important components in electric bicycle are by refitted vehicles,
Great security risk can be brought for user.
Therefore, a kind of tamper-resistant detection method of electric bicycle is needed at present to avoid illegally changing to electric bicycle
Dress behavior.
Summary of the invention
In view of this, the present invention provides tamper-resistant detection method, device and the electric bicycle of a kind of electric bicycle,
Tamper-resistant detection is realized before electric bicycle powers on, and electric bicycle is avoided to be adapted as user's bring security risk.
In order to achieve the above-mentioned object of the invention, specific technical solution provided by the invention is as follows:
A kind of tamper-resistant detection method of electric bicycle, the controller applied to electric bicycle, which comprises
When electric bicycle powers on, the tamper-resistant parameter information of each significant components of electric bicycle is obtained respectively;
The preset information stored in the read only memory ROM in each significant components of electric bicycle is uploaded respectively;
Judge respectively the tamper-resistant parameter informations of each significant components of electric bicycle and corresponding preset information whether
Match;
If exact matching prompts electric bicycle to power on success, electric bicycle main circuit is opened;
If cannot exactly match, electric bicycle is prompted to power on failure.
Optionally, the significant components of electric bicycle are vehicle frame, controller and motor;Each significant components
Tamper-resistant parameter includes power, voltage and current;The preset information stored in ROM in the vehicle frame includes maximum power, maximum
Voltage and maximum current;The preset information stored in ROM in the controller include maximal input, maximum input voltage,
Maximum input current, rated input power, nominal input voltage, specified input current, peak power output, maximum output electricity
Pressure, maximum output current, rated output power, rated output voltage and output-current rating;It is stored in ROM in the motor
Preset information includes maximal input, maximum input voltage, maximum input current, rated input power, nominal input voltage
With specified input current.
Optionally, the preset information stored in ROM in each significant components includes information checking code;In the difference
Before judging whether the tamper-resistant parameter information of each significant components of electric bicycle matches with corresponding preset information, the side
Method further include:
Master gage is carried out according to the preset information in addition to information check code in each significant components in ROM respectively
It calculates, obtains the actual information check code of each significant components;
The actual information check code and the information checking code in corresponding preset information for judging each significant components respectively
It is whether identical;
If all identical, the tamper-resistant parameter information for judging each significant components of electric bicycle respectively and phase are executed
Whether the preset information answered matches;
If all not identical, electric bicycle is prompted to power on failure.
Optionally, the preset information stored in ROM in each significant components includes that factory puts on record reserved information;
Success is powered in the prompt electric bicycle, before opening electric bicycle main circuit, the method also includes:
Judge that the factory of each significant components reserved information of putting on record is put on record with corresponding pre-stored factory respectively
Whether reserved information matches, wherein factory put on record reserved information be production firm according to default dynamic encryption algorithm to corresponding
The production information of the significant components carries out the encryption information generated after dynamic encryption;
If exact matching, executes the prompt electric bicycle and power on success, open electric bicycle main circuit;
If Incomplete matching, electric bicycle is prompted to power on failure.
Optionally, before the prompt electric bicycle powers on failure, the method also includes:
Record currently uploads the number of preset information;
Whether the number that threshold information is currently uploaded in judgement is greater than preset value;
If so, executing the prompt electric bicycle powers on failure;
If it is not, stored in the execution read only memory ROM uploaded in each significant components of electric bicycle respectively
Preset information.
Optionally, the method also includes:
When controller is connected by standard interface and external reader, and the information for receiving the external reader obtains
When taking request, the reserved information of putting on record of the factory in the preset information stored in ROM in each significant components is sent to institute
State external reader, wherein put on record reserved information of its corresponding factory is imported into official's number when each significant components are dispatched from the factory
According in library, so that the external reader carries out examination comparison to the reserved information of putting on record of the factory in each significant components.
A kind of tamper-resistant detection device of electric bicycle, comprising:
Tamper-resistant parameter acquiring unit, for it is each important to obtain electric bicycle respectively when electric bicycle powers on
The tamper-resistant parameter information of component;
Preset information upload element, for uploading the read only memory ROM in each significant components of electric bicycle respectively
The preset information of middle storage;
Tamper-resistant detection unit, for judging the tamper-resistant parameter information and phase of each significant components of electric bicycle respectively
Whether the preset information answered matches;If exact matching, trigger circuit opening unit triggers information alert if cannot exactly match
Unit;
The circuit opening unit opens electric bicycle main circuit for prompting electric bicycle to power on success;
The information alert unit, for prompting electric bicycle to power on failure.
Optionally, the significant components of electric bicycle are vehicle frame, controller and motor;Each significant components
Tamper-resistant parameter includes power, voltage and current;The preset information stored in ROM in the vehicle frame includes maximum power, maximum
Voltage and maximum current;The preset information stored in ROM in the controller include maximal input, maximum input voltage,
Maximum input current, rated input power, nominal input voltage, specified input current, peak power output, maximum output electricity
Pressure, maximum output current, rated output power, rated output voltage and output-current rating;It is stored in ROM in the motor
Preset information includes maximal input, maximum input voltage, maximum input current, rated input power, nominal input voltage
With specified input current.
Optionally, the preset information stored in ROM in each significant components includes information checking code;Described device is also
Include:
Verify computing unit, for respectively according in each significant components in ROM in addition to information check code
Preset information carries out verification calculating, obtains the actual information check code of each significant components;
Detection unit is verified, for judging the actual information check code and accordingly pre- confidence of each significant components respectively
Whether the information checking code in breath is identical;If all identical, the tamper-resistant detection unit is triggered;If all not identical, triggering
The information alert unit.
Optionally, the preset information stored in ROM in each significant components includes that factory puts on record reserved information;
Described device further include:
Put on record reserved information detecting unit, for judge respectively the factory of each significant components put on record reserved information with
Whether corresponding pre-stored factory reserved information of putting on record matches, wherein factory put on record reserved information be production firm according to
Default dynamic encryption algorithm carries out the encryption information generated after dynamic encryption to the production information of the corresponding significant components;
If exact matching, triggers the circuit opening unit;If Incomplete matching, the information alert unit is triggered.
Optionally, described device further include:
Number recording unit is uploaded, for recording the number for currently uploading preset information;
Frequency judging unit is uploaded, for judging whether the number for currently uploading threshold information is greater than preset value;If so, touching
Send out information alert unit described;If it is not, triggering the preset information upload element.
Optionally, described device further include:
Information transmitting unit is used for when controller is connected by standard interface and external reader, and receives described
It is when the information acquisition request of external reader, the factory in the preset information stored in ROM in each significant components is standby
Case reserves information and is sent to the external reader, wherein each significant components put its corresponding factory on record when dispatching from the factory
Reserved information imports in official's database, for the external reader put on record the factory in each significant components it is reserved
Information carries out examination comparison.
A kind of electric bicycle, including multiple significant components, one of significant components are controller;
It is respectively arranged with ROM in each significant components, is stored with respectively in the ROM of each significant components preset
Information;
When electric bicycle powers on, the controller upload respectively stored in the ROM of each significant components it is preset
Information prompts electric bicycle to power on success to carry out tamper-resistant detection when tamper-resistant detects successfully, opens electric bicycle
Main circuit, when tamper-resistant detects failure, prompt electric bicycle powers on failure.
Optionally, the significant components are vehicle frame, controller and motor.
Optionally, the controller is provided with standard interface, the controller by the standard interface can with it is external
Reader is connected.
Optionally, the controller is uploaded by I2C interface or SPI interface stores in the ROM of each significant components
Preset information.
Compared with the existing technology, beneficial effects of the present invention are as follows:
Tamper-resistant detection method, device and the electric bicycle of a kind of electric bicycle disclosed by the invention, it is electronic from
When driving powers on, pass through the preset information that will be stored in the tamper-resistant parameter of each significant components of electric bicycle and ROM respectively
Matched, to electric bicycle carry out tamper-resistant detection, when tamper-resistant detection by when open electric bicycle main circuit, use
Family can be used normally, and powers on failure when tamper-resistant detects obstructed out-of-date prompt electric bicycle, electric bicycle is avoided to reequip
For user's bring security risk.Wherein, ROM can not be changed or be deleted once storing data, avoid refitted vehicles
Preset information is distorted.And the ROM for being stored with preset information is respectively provided in each significant components of electric bicycle, it mentions significantly
The high cost of refitted vehicles, has prevented the refitted vehicles to electric bicycle from the root.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of tamper-resistant detection method flow diagram of electric bicycle disclosed by the embodiments of the present invention;
Fig. 2 is the preset information schematic diagram of vehicle frame disclosed by the embodiments of the present invention;
Fig. 3 is the preset information schematic diagram of controller disclosed by the embodiments of the present invention;
Fig. 4 is the preset information schematic diagram of motor disclosed by the embodiments of the present invention;
Fig. 5 is the tamper-resistant detection method flow diagram of another electric bicycle disclosed by the embodiments of the present invention;
Fig. 6 is the tamper-resistant detection method flow diagram of another electric bicycle disclosed by the embodiments of the present invention;
Fig. 7 is a kind of tamper-resistant structure of the detecting device schematic diagram of electric bicycle disclosed by the embodiments of the present invention;
Fig. 8 is a kind of electric bicycle structure schematic diagram disclosed by the embodiments of the present invention;
Fig. 9 is the signal transmission system figure of electric vehicle significant components disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Currently, electric bicycle circuit System self-test is to detect each electronic module, it is confirmed whether to work normally,
If problematic meeting display alarm information, but not because detection disconnects entire circuit there are problem, without limitation on making for user
With, and cannot achieve and tamper-resistant detection is carried out to electric bicycle.
In order to solve the above-mentioned technical problem, present embodiment discloses a kind of tamper-resistant detection methods of electric bicycle, use
For the controller of electric bicycle, referring to Fig. 1, this method specifically includes the following steps:
S101: when electric bicycle powers on, the tamper-resistant parameter letter of each significant components of electric bicycle is obtained respectively
Breath;
Preferably, the significant components of electric bicycle are vehicle frame, controller and motor.
Tamper-resistant parameter information includes power, voltage and current.
S102: the preset information stored in the read only memory ROM in each significant components of electric bicycle is uploaded respectively;
ROM (Chinese name: read-only memory, full name in English: Read-Only Memory), is that one kind can only be read in advance
The solid state semiconductor memory of stored data.Its characteristic be once storing data can not again by change or delete.Usually use
In electronics or the computer system for being not required to often change data, and data will not disappear because power supply is closed.
Before the factory of each significant components, it is disposably embedded in the rom chip of preset vehicle identification code message structure, and stay
The I2C or SPI interface of chip out directly reads preset information in ROM when for late detection.ROM can not once storing data
Changed or deleted, avoided refitted vehicles and preset information is distorted.And rom chip itself is cheap, is suitble to batch
Production and use, will not significantly aggravate the production cost of electric vehicle.
Specifically, the preset information stored in ROM in vehicle frame includes maximum power, maximum voltage and maximum current;Control
The preset information stored in ROM in device includes maximal input, maximum input voltage, maximum input current, specified input work
Rate, nominal input voltage, specified input current, peak power output, maximum output voltage, maximum output current, rated output
Power, rated output voltage and output-current rating;The preset information stored in ROM in motor includes maximal input, most
Big input voltage, maximum input current, rated input power, nominal input voltage and specified input current.
It should also be noted that, controller is uploaded in the ROM of each significant components respectively by I2C interface or SPI interface
On the controller, the I2C or SPI interface of controller can pass through letter for the preset information of storage, I2C interface or SPI interface setting
Directly reading for preset information is realized on hookup wire to the rom chip of each significant components, so as to avoid high-cost multiple
Miscellaneous communication issue, it is simpler that controller uploads preset information, low in cost, it is easy to accomplish.
S103: judge the tamper-resistant parameter information of each significant components of electric bicycle respectively is with corresponding preset information
No matching;
Specifically, judging whether the power of vehicle frame is less than the maximum power in preset information, whether voltage is less than pre- confidence
Whether maximum voltage, electric current in breath are less than the maximum current in preset information;Judge whether the input power of controller is less than
Whether maximal input, input power in preset information match with the rated input power in preset information, input electricity
Pressure whether be less than preset information in maximum input voltage, input voltage whether with the nominal input voltage phase in preset information
Match, whether input current is less than maximum input current in preset information, input current whether with it is specified defeated in preset information
Enter electric current matches, whether output power is less than peak power output in preset information, output power whether with preset information
In rated output power match, whether output voltage is less than maximum output voltage in preset information, output voltage whether
Match with the rated output voltage in preset information, exports maximum output current that whether electric current be less than in preset information, is defeated
Out electric current whether with the output-current rating in preset information to matching;Judge whether power input to a machine is less than preset information
In maximal input, input power whether match with the rated input power in preset information, input voltage it is whether small
Whether maximum input voltage, input voltage in preset information match with the nominal input voltage in preset information, input
Electric current whether be less than the input current in preset information, input current whether with the specified input current phase in preset information
Match.
If exact matching, S104: prompt electric bicycle powers on success, opens electric bicycle main circuit;
It is understood that prompting electric bicycle to power on into if exact matching electric bicycle tamper-resistant detection passes through
Function, when electric bicycle main circuit is opened, electric bicycle is can be used normally in user.
If cannot exactly match, S105: prompt electric bicycle powers on failure.
It should be noted that bicycle powers on failure, electric bicycle main circuit is not turned on, and user is unable to normal use electricity
Dynamic bicycle.
A kind of tamper-resistant detection method of electric bicycle disclosed in the present embodiment passes through when electric bicycle powers on
The preset information stored in the tamper-resistant parameter of each significant components of electric bicycle and ROM is matched respectively, to electronic
Bicycle carries out tamper-resistant detection, when tamper-resistant detection by when open electric bicycle main circuit, user can be used normally,
Failure is powered on when tamper-resistant detects obstructed out-of-date prompt electric bicycle, electric bicycle is avoided to be adapted as user's bring safety
Hidden danger.Wherein, ROM can not be changed or be deleted once storing data, avoided refitted vehicles and distorted to preset information.
And the ROM for being stored with preset information is respectively provided in each significant components of electric bicycle, substantially increase refitted vehicles at
This, has prevented the refitted vehicles to electric bicycle from the root.
In order to further increase the accuracy of tamper-resistant detection, guarantee the safety of electric bicycle, the present embodiment is upper
It states according on the basis of power, voltage, the detection of electric current tamper-resistant, provides two kinds of tamper-resistant detection methods.
Method one
Information checking code is added in the preset information that ROM is stored in each significant components of electric bicycle, is being sentenced respectively
Before whether the tamper-resistant parameter information of the disconnected each significant components of electric bicycle matches with corresponding preset information, basis respectively
The preset information in addition to information check code in each significant components in ROM carries out verification calculating, obtains each described
The actual information check code of significant components;Judged in the actual information check code and corresponding preset information of each significant components respectively
Information checking code it is whether identical;If all identical, the tamper-resistant ginseng for judging each significant components of electric bicycle respectively is executed
The step for whether number information matches with corresponding preset information;If all not identical, electric bicycle is prompted to power on failure.
Wherein, calculate information check code method can there are many, such as CRC check.
Method two
Addition factory puts on record reserved information in the preset information that ROM is stored in each significant components of electric bicycle,
Determine that the tamper-resistant parameter information of each significant components of electric bicycle with after the exact matching of corresponding preset information, is sentenced respectively
The factory for each significant components of breaking put on record reserved information and corresponding pre-stored factory put on record reserved information whether
Match;If exact matching, the step for prompt electric bicycle powers on success, opens electric bicycle main circuit is executed;If endless
Full matching, prompts electric bicycle to power on failure.
Wherein, factory put on record reserved information be production firm according to default dynamic encryption algorithm to accordingly the important set
The production information of part carries out the encryption information generated after dynamic encryption.Wherein, the factory of each significant components puts on record reserved information
INFORMATION OF INCOMPLETE before encrypting is identical, but has identical part, such as date of manufacture, component type code name, flowing water batch information
Deng.Different piece is the data portion generated after the default dynamic encryption algorithm of factory's selection encrypts, and this partial data is factory
Quotient or cooperation manufacturer are exclusive, being capable of effective protection oneself product and for tracing to the source and be difficult to by the pass of batch duplicating
Key data.It should be noted that put on record reserved information of factory is imported official's database when significant components are dispatched from the factory, by subsequent
Net examination.
Also, due to factory put on record reserved information be factory's selection the encryption of default dynamic encryption algorithm after the number that generates
According to therefore, firstly, presetting dynamic decryption technology program in controller main program as independent vendors or cooperation factory pre-set
In, inversely decoding is carried out to the former dynamic encryption partial data region in three big component ROM of reading during booting, so
Decoded data are parsed according to established form afterwards, finally use the information such as the voltage of removing, electric current, power and batch field
In whether matching judgment.
In view of the replaceability and substitutability of electric bicycle significant components, the production firm of electric bicycle is closed
Make manufacturer or qualified manufacturer can be before the factory of the significant components of electric bicycle according to default dynamic encryption algorithm
Dynamic encryption is carried out to the production information of corresponding significant components, generates encryption information, wherein production information includes production date
The information such as phase, model.Therefore, the tamper-resistant detection method of electric bicycle disclosed in the present embodiment, which can't change use, money
The flexibility of matter manufacturer accessory.
Should be noted three kinds of tamper-resistant detection methods disclosed above, i.e., power, voltage, currents match detection,
Information check code matching detection and factory put on record the detection of reserved information matches, may be used alone, can also be used in combination.
In order to improve the accuracy of tamper-resistant detection, guarantee the safety of electric bicycle, implementation as one preferred
Above-mentioned three kinds of tamper-resistant detection methods are applied in combination for mode, this implementation, wherein referring to Fig. 2, Fig. 2 is the pre- confidence of vehicle frame
Schematic diagram is ceased, Fig. 3 is the preset information schematic diagram of controller, and Fig. 4 is the preset information schematic diagram of motor.
On this basis, referring to Fig. 5, a kind of tamper-resistant detection method of electric bicycle disclosed in the present embodiment, tool
Body the following steps are included:
S501: when electric bicycle powers on, the tamper-resistant parameter letter of each significant components of electric bicycle is obtained respectively
Breath;
S502: the preset information stored in the read only memory ROM in each significant components of electric bicycle is uploaded respectively;
S503: it is verified respectively according to the preset information in addition to information check code in each significant components in ROM
It calculates, obtains the actual information check code of each significant components;
S504: the actual information check code and the information checking code in corresponding preset information for judging each significant components respectively
It is whether identical;
If inwhole identical, S505: prompt electric bicycle powers on failure.
If all it is identical, execute S506: judge respectively each significant components of electric bicycle tamper-resistant parameter information and
Whether corresponding preset information matches;
If Incomplete matching, execute S505: prompt electric bicycle powers on failure.
If exact matching, execute S507: judge respectively the factory of each significant components put on record reserved information with it is corresponding in advance
Whether the factory first stored reserved information of putting on record matches;
If exact matching, S508: prompt electric bicycle powers on success, opens electric bicycle main circuit;
If cannot exactly match, S505: prompt electric bicycle powers on failure.
The tamper-resistant detection method of electric bicycle disclosed in the present embodiment combines above-mentioned three kinds of tamper-resistant detection methods
It uses, matching detection is carried out to put on record reserved information of factory again after carrying out matching detection to tamper-resistant parameter information, is avoided
Illegal manufacturer effectively prevents illegal manufacturer by stealing the problem of tamper-resistant parameter information copys electric bicycle significant components
It forges the tamper-resistant parameter in electric bicycle significant components in ROM and produces personation accessory.
In order to avoid the detection error caused by the accidentalia in tamper-resistant detection process, present embodiment discloses another
The tamper-resistant detection method of kind electric bicycle, referring to Fig. 6, method includes the following steps:
S601: when electric bicycle powers on, the tamper-resistant parameter letter of each significant components of electric bicycle is obtained respectively
Breath;
S602: the preset information stored in the read only memory ROM in each significant components of electric bicycle is uploaded respectively;
S603: it is verified respectively according to the preset information in addition to information check code in each significant components in ROM
It calculates, obtains the actual information check code of each significant components;
S604: the actual information check code and the information checking code in corresponding preset information for judging each significant components respectively
It is whether identical;
If inwhole identical, S605: record currently uploads the number of preset information;
S607: whether the number that preset information is currently uploaded in judgement is greater than preset value;
If so, executing S608: prompt electric bicycle powers on failure
S602 is executed if it is not, returning;
If all it is identical, execute S609: judge respectively each significant components of electric bicycle tamper-resistant parameter information and
Whether corresponding preset information matches;
If Incomplete matching, returns and execute S605;
If exact matching, execute S610: judge respectively the factory of each significant components put on record reserved information with it is corresponding in advance
Whether the factory first stored reserved information of putting on record matches;
If exact matching executes S611: prompt electric bicycle powers on success, opens electric bicycle main circuit;
If cannot exactly match, returns and execute S605.
The tamper-resistant detection method of electric vehicle disclosed in the present embodiment currently uploads the number of preset information by recording,
Currently upload preset information number be less than preset value when upload preset information again, avoid due to signal interference or other accidentally
It uploads that preset information fails caused by factor and causes the problem of detecting failure, improve the stability and tamper-resistant inspection of system
The accuracy of survey.
It should also be noted that, the tamper-resistant detection method of electric vehicle disclosed in the present embodiment, further includes: when controller is logical
When crossing standard interface and external reader and connecting, and when receiving the information acquisition request of the external reader, by each institute
It states the reserved information of putting on record of the factory in the preset information stored in ROM in significant components and is sent to the external reader, wherein
Put on record reserved information of its corresponding factory is imported in official's database when each significant components are dispatched from the factory, for described external
Reader carries out examination comparison to the reserved information of putting on record of the factory in each significant components.
Factory puts reserved information on record for the proof of identification of electric bicycle significant components, can prove the legal of significant components
Property.Put on record reserved information as traffic-police can hold external reader and read the factories of each significant components of electric bicycle,
And official's database is connected, judge that whether the factory of each significant components of electric bicycle read puts reserved information on record in official
In database, if so, determining that each significant components of electric bicycle are legal, if it is not, determining electric bicycle refitted vehicles.
Disclosed a kind of tamper-resistant detection method of electric bicycle based on the above embodiment, referring to Fig. 7, the present embodiment
Correspondence discloses a kind of tamper-resistant detection device of electric bicycle, comprising:
Tamper-resistant parameter acquiring unit 701, for it is each heavy to obtain electric bicycle respectively when electric bicycle powers on
Want the tamper-resistant parameter information of component;
Preset information upload element 702, for uploading the read-only memory in each significant components of electric bicycle respectively
The preset information stored in ROM;
Tamper-resistant detection unit 703, for judging the tamper-resistant parameter information of each significant components of electric bicycle respectively
Whether matched with corresponding preset information;If exact matching, trigger circuit opening unit 704, if cannot exactly match, triggering letter
Cease prompt unit 705;
The circuit opening unit 704 opens electric bicycle main circuit for prompting electric bicycle to power on success;
The information alert unit 705, for prompting electric bicycle to power on failure.
Optionally, the significant components of electric bicycle are vehicle frame, controller and motor;Each significant components
Tamper-resistant parameter includes power, voltage and current;The preset information stored in ROM in the vehicle frame includes maximum power, maximum
Voltage and maximum current;The preset information stored in ROM in the controller include maximal input, maximum input voltage,
Maximum input current, rated input power, nominal input voltage, specified input current, peak power output, maximum output electricity
Pressure, maximum output current, rated output power, rated output voltage and output-current rating;It is stored in ROM in the motor
Preset information includes maximal input, maximum input voltage, maximum input current, rated input power, nominal input voltage
With specified input current.
Optionally, the preset information stored in ROM in each significant components includes information checking code;Described device is also
Include:
Verify computing unit, for respectively according in each significant components in ROM in addition to information check code
Preset information carries out verification calculating, obtains the actual information check code of each significant components;
Detection unit is verified, for judging the actual information check code and accordingly pre- confidence of each significant components respectively
Whether the information checking code in breath is identical;If all identical, the tamper-resistant detection unit is triggered;If all not identical, triggering
The information alert unit.
Optionally, the preset information stored in ROM in each significant components includes that factory puts on record reserved information;
Described device further include:
Put on record reserved information detecting unit, for judge respectively the factory of each significant components put on record reserved information with
Whether corresponding pre-stored factory reserved information of putting on record matches, wherein factory put on record reserved information be production firm according to
Default dynamic encryption algorithm carries out the encryption information generated after dynamic encryption to the production information of the corresponding significant components;
If exact matching, triggers the circuit opening unit;If Incomplete matching, the information alert unit is triggered.
Optionally, described device further include:
Number recording unit is uploaded, for recording the number for currently uploading preset information;
Frequency judging unit is uploaded, for judging whether the number for currently uploading threshold information is greater than preset value;If so, touching
Send out information alert unit described;If it is not, triggering the preset information upload element.
Optionally, described device further include:
Information transmitting unit is used for when controller is connected by standard interface and external reader, and receives described
It is when the information acquisition request of external reader, the factory in the preset information stored in ROM in each significant components is standby
Case reserves information and is sent to the external reader, wherein each significant components put its corresponding factory on record when dispatching from the factory
Reserved information imports in official's database, for the external reader put on record the factory in each significant components it is reserved
Information carries out examination comparison.
A kind of tamper-resistant detection device of electric bicycle disclosed in the present embodiment passes through when electric bicycle powers on
The preset information stored in the tamper-resistant parameter of each significant components of electric bicycle and ROM is matched respectively, to electronic
Bicycle carries out tamper-resistant detection, when tamper-resistant detection by when open electric bicycle main circuit, user can be used normally,
Failure is powered on when tamper-resistant detects obstructed out-of-date prompt electric bicycle, electric bicycle is avoided to be adapted as user's bring safety
Hidden danger.
Referring to Fig. 8, present embodiment discloses a kind of electric bicycle, including multiple significant components, one of them is important
Component is controller;Optionally, the significant components are vehicle frame, controller and motor.
It is respectively arranged with ROM in each significant components, is stored with respectively in the ROM of each significant components preset
Information;
When electric bicycle powers on, the controller upload respectively stored in the ROM of each significant components it is preset
Information prompts electric bicycle to power on success to carry out tamper-resistant detection when tamper-resistant detects successfully, opens electric bicycle
Main circuit, when tamper-resistant detects failure, prompt electric bicycle powers on failure.
Referring to Fig. 9, Fig. 9 is the signal transmission system figure of electric vehicle significant components.Controller passes through I2C or SPI interface
The preset information stored in the ROM of each significant components is uploaded respectively.
Optionally, the controller is provided with standard interface, the standard interface can be I2C interface or SPI interface, it is described
Controller can be connected by the standard interface with external reader.Such as traffic-police according to police strength select check when, hand
Holding equipment can pole be easily connected into electric bicycle external interface read in each component ROM data (especially encryption number
According to), the database that then can trace to the source with the manufacturer of networking carries out comparing to identify the legitimacy of vehicle and primary clustering.
Optionally, the controller is uploaded by I2C interface or SPI interface stores in the ROM of each significant components
Preset information.On the controller, the I2C or SPI interface of controller can be by simply connecting for I2C interface or SPI interface setting
Directly reading for preset information is realized on line to the rom chip of each significant components, so as to avoid high-cost complicated logical
Letter problem, it is simpler that controller uploads preset information, low in cost, it is easy to accomplish.
A kind of electric bicycle disclosed in the present embodiment, when electric bicycle powers on, by respectively by electric bicycle
The preset information stored in the tamper-resistant parameter and ROM of each significant components is matched, and carries out tamper-resistant to electric bicycle
Detection, when tamper-resistant detection by when open electric bicycle main circuit, user can be used normally, when tamper-resistant detect it is obstructed
Out-of-date prompt electric bicycle powers on failure, and electric bicycle is avoided to be adapted as user's bring security risk.Wherein, ROM mono-
Denier storing data just can not be changed or be deleted, and avoided refitted vehicles and distorted to preset information.And in electric bicycle
It is respectively provided with the ROM for being stored with preset information in each significant components, substantially increases the cost of refitted vehicles, prevents from the root
To the refitted vehicles of electric bicycle.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (11)
1. a kind of tamper-resistant detection method of electric bicycle, which is characterized in that described applied to the controller of electric bicycle
Method includes:
When electric bicycle powers on, the tamper-resistant parameter information of each significant components of electric bicycle is obtained respectively;
The preset information stored in the read only memory ROM in each significant components of electric bicycle is uploaded respectively;
Judge whether the tamper-resistant parameter information of each significant components of electric bicycle matches with corresponding preset information respectively;
If exact matching prompts electric bicycle to power on success, electric bicycle main circuit is opened;
If cannot exactly match, electric bicycle is prompted to power on failure.
2. the method according to claim 1, wherein the significant components of electric bicycle are vehicle frame, control
Device and motor;The tamper-resistant parameter of each significant components includes power, voltage and current;It is stored in ROM in the vehicle frame
Preset information include maximum power, maximum voltage and maximum current;The preset information stored in ROM in the controller includes
Maximal input, maximum input voltage, maximum input current, rated input power, nominal input voltage, specified input electricity
Stream, peak power output, maximum output voltage, maximum output current, rated output power, rated output voltage and rated output
Electric current;The preset information stored in ROM in the motor include maximal input, maximum input voltage, maximum input current,
Rated input power, nominal input voltage and specified input current.
3. the method according to claim 1, wherein the pre- confidence stored in ROM in each significant components
Breath includes information checking code;The tamper-resistant parameter information for judging each significant components of electric bicycle respectively with it is corresponding
Before whether preset information matches, the method also includes:
Verification calculating is carried out according to the preset information in addition to information check code in each significant components in ROM respectively,
Obtain the actual information check code of each significant components;
Judge respectively each significant components actual information check code and corresponding preset information in information checking code whether
It is identical;
If all identical, execute the tamper-resistant parameter information for judging each significant components of electric bicycle respectively with it is corresponding
Whether preset information matches;
If all not identical, electric bicycle is prompted to power on failure.
4. the method according to claim 1, wherein being stored in ROM in each significant components pre-
Confidence breath includes that factory puts on record reserved information;Success is powered in the prompt electric bicycle, opens electric bicycle main circuit
Before, the method also includes:
Judge respectively the factory of each significant components put on record reserved information put on record with corresponding pre-stored factory it is reserved
Whether information matches, wherein factory put on record reserved information be production firm according to default dynamic encryption algorithm to accordingly described in
The production information of significant components carries out the encryption information generated after dynamic encryption;
If exact matching, executes the prompt electric bicycle and power on success, open electric bicycle main circuit;
If Incomplete matching, electric bicycle is prompted to power on failure.
5. according to claim 1, method described in any one of 3,4, which is characterized in that powered in the prompt electric bicycle
Before failure, the method also includes:
Record currently uploads the number of preset information;
Whether the number that threshold information is currently uploaded in judgement is greater than preset value;
If so, executing the prompt electric bicycle powers on failure;
If it is not, being stored in the execution read only memory ROM uploaded in each significant components of electric bicycle respectively preset
Information.
6. the method according to claim 1, wherein the method also includes:
When controller is connected by standard interface and external reader, and the acquisition of information for receiving the external reader is asked
When asking, by the factory in the preset information stored in ROM in each significant components put on record reserved information be sent to it is described outer
Connect reader, wherein put on record reserved information of its corresponding factory is imported into official's database when each significant components are dispatched from the factory
In, so that the external reader carries out examination comparison to the reserved information of putting on record of the factory in each significant components.
7. a kind of tamper-resistant detection device of electric bicycle characterized by comprising
Tamper-resistant parameter acquiring unit, for obtaining each significant components of electric bicycle respectively when electric bicycle powers on
Tamper-resistant parameter information;
Preset information upload element is deposited for being uploaded in the read only memory ROM in each significant components of electric bicycle respectively
The preset information of storage;
Tamper-resistant detection unit, for judge respectively the tamper-resistant parameter informations of each significant components of electric bicycle with it is corresponding
Whether preset information matches;If exact matching, trigger circuit opening unit triggers information alert unit if cannot exactly match;
The circuit opening unit opens electric bicycle main circuit for prompting electric bicycle to power on success;
The information alert unit, for prompting electric bicycle to power on failure.
8. a kind of electric bicycle, which is characterized in that including multiple significant components, one of significant components are controller;
It is respectively arranged with ROM in each significant components, is stored with pre- confidence respectively in the ROM of each significant components
Breath;
When electric bicycle powers on, the controller uploads the preset information stored in the ROM of each significant components respectively,
It to carry out tamper-resistant detection, prompts electric bicycle to power on success when tamper-resistant detects successfully, opens electrical salf-walking car owner electricity
Road, when tamper-resistant detects failure, prompt electric bicycle powers on failure.
9. electric bicycle according to claim 8, which is characterized in that the significant components are vehicle frame, controller and electricity
Machine.
10. electric bicycle according to claim 8, which is characterized in that the controller is provided with standard interface, described
Controller can be connected by the standard interface with external reader.
11. electric bicycle according to claim 8, which is characterized in that the controller is connect by I2C interface or SPI
Mouth uploads the preset information stored in the ROM of each significant components.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910636086.XA CN110303890A (en) | 2019-07-15 | 2019-07-15 | Tamper-resistant detection method, device and the electric bicycle of electric bicycle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910636086.XA CN110303890A (en) | 2019-07-15 | 2019-07-15 | Tamper-resistant detection method, device and the electric bicycle of electric bicycle |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110303890A true CN110303890A (en) | 2019-10-08 |
Family
ID=68081296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910636086.XA Pending CN110303890A (en) | 2019-07-15 | 2019-07-15 | Tamper-resistant detection method, device and the electric bicycle of electric bicycle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110303890A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114257450A (en) * | 2021-12-21 | 2022-03-29 | 山东爱德邦智能科技有限公司 | Method, device and medium for preventing parts from being tampered |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080054859A1 (en) * | 2006-09-05 | 2008-03-06 | Kesatoshi Takeuchi | Brushless generator |
CN202422164U (en) * | 2012-01-04 | 2012-09-05 | 南京航空航天大学 | Vehicle management system based on environmental-friendly electronic card of motor vehicle |
CN108446551A (en) * | 2018-03-17 | 2018-08-24 | 广东容祺智能科技有限公司 | A kind of unmanned plane tamper-resistant system |
CN108596634A (en) * | 2018-04-04 | 2018-09-28 | 沈阳东软医疗系统有限公司 | A kind of detection method and system of genuine component |
CN108663070A (en) * | 2017-03-27 | 2018-10-16 | 英飞凌科技股份有限公司 | Digital sensor system |
-
2019
- 2019-07-15 CN CN201910636086.XA patent/CN110303890A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080054859A1 (en) * | 2006-09-05 | 2008-03-06 | Kesatoshi Takeuchi | Brushless generator |
CN202422164U (en) * | 2012-01-04 | 2012-09-05 | 南京航空航天大学 | Vehicle management system based on environmental-friendly electronic card of motor vehicle |
CN108663070A (en) * | 2017-03-27 | 2018-10-16 | 英飞凌科技股份有限公司 | Digital sensor system |
CN108446551A (en) * | 2018-03-17 | 2018-08-24 | 广东容祺智能科技有限公司 | A kind of unmanned plane tamper-resistant system |
CN108596634A (en) * | 2018-04-04 | 2018-09-28 | 沈阳东软医疗系统有限公司 | A kind of detection method and system of genuine component |
Non-Patent Citations (1)
Title |
---|
交通言究社: "电动自行车新国标实施的重大影响", 《汽车与安全》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114257450A (en) * | 2021-12-21 | 2022-03-29 | 山东爱德邦智能科技有限公司 | Method, device and medium for preventing parts from being tampered |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10168670B2 (en) | Intelligent switching | |
JP4126039B2 (en) | SIM card control apparatus and method for portable terminal | |
CN103679860B (en) | Household burglary-resisting system and method for work thereof | |
US20110254505A1 (en) | Electrical energy charging system and method for charging a vehicle | |
CN104732631B (en) | Intelligent fingerprint cipher anti theft lock system | |
CN107627867A (en) | Object charging authorization method to be charged, charging equipment automatic authorization method and system | |
CN108132401A (en) | Charge abnormal detection method, device, storage medium and mobile terminal | |
CN106541847A (en) | A kind of electric automobile direct current integrated charger panel | |
CN110303890A (en) | Tamper-resistant detection method, device and the electric bicycle of electric bicycle | |
CN113129486A (en) | Vehicle lock control method, terminal device, HID vehicle lock device and electronic device | |
CN110009850A (en) | A kind of monitoring device that can remotely export for commercial articles safety | |
CN110458586A (en) | A kind of data processing method, system, electric vehicle and readable storage medium storing program for executing | |
CN105471583B (en) | The digital certificate method and electronic identification system of vehicle mounted electrical apparatus | |
CN107558821A (en) | A kind of intelligent door lock and its method for unlocking | |
CN110103761B (en) | Charging fault tracing method and system for new energy vehicle, server and storage medium | |
CN113815460A (en) | Charging control method and charging control device | |
CN203283185U (en) | Anti-theft tracking device of car | |
CN109703659A (en) | A kind of electric vehicle alarm region management system based on ZigBee networking | |
CN211529243U (en) | Small-sized vending machine with shared charging function | |
CN207924771U (en) | A kind of intelligent door lock system | |
CN109515353B (en) | Sensing method and system with low power consumption | |
CN207296652U (en) | A kind of intelligent door lock | |
CN217216605U (en) | Login verification system of power distribution control management equipment | |
US10366225B2 (en) | Method for allowing a configuration change of an intelligent electronic device of a power system | |
CN110009852A (en) | A kind of monitoring device for commercial articles safety |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191008 |
|
RJ01 | Rejection of invention patent application after publication |