CN105799620B - The security code of vehicle electric control module calculates - Google Patents

The security code of vehicle electric control module calculates Download PDF

Info

Publication number
CN105799620B
CN105799620B CN201410831031.1A CN201410831031A CN105799620B CN 105799620 B CN105799620 B CN 105799620B CN 201410831031 A CN201410831031 A CN 201410831031A CN 105799620 B CN105799620 B CN 105799620B
Authority
CN
China
Prior art keywords
security code
control module
electronic control
calculation method
temporary
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.)
Active
Application number
CN201410831031.1A
Other languages
Chinese (zh)
Other versions
CN105799620A (en
Inventor
杨春鹏
黄新华
陆泳
赵俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC General Motors Corp Ltd
Pan Asia Technical Automotive Center Co Ltd
Original Assignee
Pan Asia Technical Automotive Center Co Ltd
Shanghai General Motors Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Pan Asia Technical Automotive Center Co Ltd, Shanghai General Motors Co Ltd filed Critical Pan Asia Technical Automotive Center Co Ltd
Priority to CN201410831031.1A priority Critical patent/CN105799620B/en
Publication of CN105799620A publication Critical patent/CN105799620A/en
Application granted granted Critical
Publication of CN105799620B publication Critical patent/CN105799620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

The present invention relates to the calculating of the security code of vehicle electric control module, belong to automobile technical field.Security code calculation method of the invention, comprising steps of the electronic control module being in the lock state is unlocked;Electronic control module is reset by sending control instruction;Secure code Authentication instruction and current temporary security code are sent to electronic control module, with judge whether the temporary security code matches with the security code that electronic control module stores, when being judged as matching, determine that the temporary security code is the security code of electronic control module.Security code calculation method of the invention is accurate, efficient.

Description

The security code of vehicle electric control module calculates
Technical field
The invention belongs to automobile technical field, the data interaction more particularly to vehicle that are related between deagnostic package and vehicle The calculating of the security code of electronic control module.
Background technique
The security code (security code) of vehicle electric control module is a kind of authorization code, can be regarded as vehicle One kind of key, usually can be 4 decimal numbers.Security code is produced at random in automobile factory's off-line test It is raw, and be written in the electronic control module of the key such as anti-theft controller and engine electronic control system module, being can not It reads.Security code tampers the electronic control such as anti-theft controller in the case where permitting without car owner for preventing Data in module.Normally, in the case where not knowing the security code of Electronic controller module, even if using automobile manufacture Factory is supplied to the diagnostic instrments of maintenance station, also haves no right to enter critical data area (such as the EEPROM number of Electronic controller module According to memory block, key area etc.).
With the continuous improvement of car ownership, status of the after-sales maintenance service in whole system is more and more important.So And security code plays a significant role in the after-sales service of vehicle, is generally necessary and knows.For example, in after-sale service In, it is often necessary to refreshing programming, very is carried out in electronic control module (such as ECM, BCM etc.) of the maintenance service station after sale to vehicle To key coupling learning is carried out, under normal circumstances, it is necessary to provide correct security code just and can be carried out the above operation.
But in the production process of automobile or vehicle, there are Some vehicles security code misregistration or the feelings of missing Shape.These vehicles the electronic control module of these vehicles can not be programmed since incorrect security code will cause or It repairs, add the operation of new key, therefore be easy to cause vehicle that can not carry out after-sales service.
For the security code mistake of electronic control module or the situation of missing, it is necessary to propose that a kind of security code calculates Method obtains the security code of accurate vehicle electric control module.
Summary of the invention
It is an object of the present invention to accurately calculate the security code of vehicle electric control module.
To realize that object above or other purposes, the present invention provide following technical scheme.
It is an aspect of this invention to provide that providing a kind of security code calculation method of vehicle electric control module, including step It is rapid:
The electronic control module being in the lock state is unlocked;
The electronic control module is reset by sending control instruction;
Secure code Authentication instruction and current temporary security code are sent to the electronic control module;
Judge whether the temporary security code matches with the security code that the electronic control module stores;
When being judged as mismatch, the accumulation operations for carrying out temporary security code to the temporary security code are faced with updating this When security code, and return to the resetting electronic control module step;
When being judged as matching, determine that the temporary security code is the security code of the electronic control module.
Security code calculation method according to an embodiment of the invention, wherein the unlocked step includes:
Carry out vehicle ignition operation;
The starting source for requesting the electronic control module to be stored;And
The corresponding starting source obtains key and the key is sent to the electronic control module.
The security code calculation method of another embodiment according to the present invention, wherein reset the step of the electronic control module In rapid, ignition switch shape is realized in such a way that the automobile bus connected to electronic control module sends the control instruction The switching of state, to reset the electronic control module.
In the security code calculation method of foregoing description any embodiment, the step of resetting the electronic control module packet It includes:
Switching vehicle ignition switch state is in off state;
Wait first time period;
Switching vehicle ignition switch state is in an open state;And
Wait second time period.
Specifically, the first time period can be 4 seconds to 30 seconds.
Specifically, the second time period can be 1 second to 5 seconds.
Specifically, the electronic control module can be anti-theft controller and/or engine electronic control system module.
Specifically, the electronic control module connects the CAN bus of the vehicle, and the CAN bus pass through it is vehicle-mounted Bus communication component and external computer program control terminal communication connection.
Another aspect according to the invention provides a kind of security code computing device of vehicle electric control module, comprising:
Unlocking part, the electronic control module for being used to be in the lock state are unlocked;
Component is reset, is used to reset the electronic control module by sending control instruction;And
Matching block is used to send Secure code Authentication instruction and current temporary security code to the electronics control Molding block, and judge whether the temporary security code matches with the security code that the electronic control module stores, wherein When being judged as mismatch, the accumulation operations of temporary security code are carried out to update the interim safe generation to the temporary security code Code, and return to the resetting component resetting electronic control module and determine that the temporary security code is when being judged as matching The security code of the electronic control module.
The solution have the advantages that security code calculation method of the invention can accurately and rapidly calculate safety Code plays in the after-sales maintenance service of vehicle and obviously makees particularly with security code mistake or the situation of missing With.
Detailed description of the invention
From the following detailed description in conjunction with attached drawing, it will keep above and other purpose and advantage of the invention more complete It is clear, wherein the same or similar element, which is adopted, to be indicated by the same numeral.
Fig. 1 is the basic composition according to the security code system of the calculating vehicle electric control module of one embodiment of the invention Schematic diagram.
Fig. 2 is illustrated according to the security code calculation method process of the vehicle electric control module of one embodiment of the invention Figure.
Specific embodiment
What is be described below is some in multiple possible embodiments of the invention, it is desirable to provide to of the invention basic Solution, it is no intended to confirm crucial or conclusive element of the invention or limit scope of the claimed.It is readily appreciated that, according to this The technical solution of invention, in the case where not changing connotation of the invention, those of ordinary skill in the art can propose can be mutual Other implementations of replacement.Therefore, following specific embodiments and attached drawing are only the examples to technical solution of the present invention Property explanation, and be not to be construed as whole of the invention or be considered as to define or limit technical solution of the present invention.
In following description, for the clear and concise of description, there is no retouch all multiple components shown in figure It states.It is provided in the disclosure for being fully able to realize of the invention shown in the drawings of multiple components for those of ordinary skill in the art Hold.To those skilled in the art, perhaps multipart operation is all familiar and apparent.
Fig. 1 show the basic of the security code system of the calculating vehicle electric control module according to one embodiment of the invention Composition schematic diagram.In embodiments of the present invention, vehicle transmits information using CAN bus, and each electronic control module is connected to CAN In bus, electronic control module can be anti-theft controller, engine electronic control system module etc., and electronic control module is also possible to Other need to be written other kinds of one or more electronic control parts of security code during fabrication.As shown in Figure 1, vehicle Communication connection is realized by connecting component with computer program end in end, specifically, realizes electricity by vehicle bus communication component The automobile bus that brain (or computer) is connect with electronic control module realizes communication connection, and vehicle bus communication component for example may be used With but be not limited to Spy3 communication component.The computer at computer program end is written into program to execute following reality as shown in Figure 2 The security code calculation method process of example is applied, vehicle bus communication component has ensured excessively is counting between computer and electronic control module The communication interaction of calculation process, computer are used as the host computer of electronic control module at this time.
Fig. 2 is shown to be shown according to the security code calculation method process of the vehicle electric control module of one embodiment of the invention It is intended to.It is illustrated below in conjunction with security code calculating process of the Fig. 1 and Fig. 2 to the embodiment.
Firstly, realize computer connect with electronic control module automobile bus realization communication connection after (such as Fig. 1) institute Show, vehicle ignition operation can be carried out by artificially rotating key, that is, entering step S11, takes up in lock The electronic control module for determining state is unlocked.
Further, step S12, the starting source that request electronic control module is stored.
In this embodiment, corresponding electronic control module is equipped with Seed(starting source)/Key(key), Seed and Key Such as can be the digital code of 16 bits, the memory sky that the external world of electronic control module can not be directly read can be stored in Between in, Seed and Key have specific one-to-one relationship.After establishing communication connection as shown in Figure 1, establishes and connect with bus The computer equipment connect can obtain its starting by the Seed of input instructions query electronic control module storage, namely request Source.
Further, step S13, the corresponding starting source obtain key (Key) and the key are sent to electronic control module. In this embodiment, it is based on Seed at this time, by such as DPS tool of external equipment that connects to automobile bus and corresponding Algorithm, can produce corresponding Key, and the Key is sent to electronic control module, if it is corresponding correctly to return the Seed Key electron control module, then electronic control module will be unlocked state.It is to be appreciated that above generate or obtain The method specific implementation process of Key is known to art technology person, and details are not described herein.
The unlocking process to electronic control module may be implemented to step S13 by above step S11, to allow such as computer External bus devices control electronic control module partial function, such as example can control the ignition lock state of vehicle (Power Mode) prepares for resetting electronic control module thereafter.It should be noted that in the locking shape of electronic control module When the locking principle difference of state, those skilled in the art can use different locks according to the introduction or enlightenment of above embodiments Method is determined to achieve the purpose that release electronic control module.
Further, step S21, switching vehicle ignition switch state are in off state.In this embodiment, which can be with It is total by the corresponding control instruction (Power Mode Off) of computer program end sending to automobile bus, namely by sending The mode of line traffic control instruction realizes the switching of ignition lock state.
Further, step S22, waiting period t1.Specifically, t1 can be 4 seconds to 30 seconds, such as 8 seconds, it is preferable that After waiting 4 seconds, the Power Mode On instruction of following steps can be retransmited, in this way, being conducive to improve computational efficiency.
Further, step S23, switching vehicle ignition switch state are in an open state.In this embodiment, similar and step S21, the step can issue corresponding control instruction (Power Mode On) to automobile bus by computer program end, Namely the switching (being switched to device for opening) of ignition lock state is realized by way of sending bus marco instruction.
Further, step S24, waiting period t2.Specifically, t2 can be 1 second to 5 seconds, such as 3 seconds, it is preferable that can After waiting 1 second, to execute matching process (such as sending verifying instruction) thereafter.It should be noted that the above waiting time The setting of section t1 and t2 can be arranged by program parameter and be realized.
Above step S21 to step S24 realizes the process that electronic control module is reset by sending control instruction, is it The matching operation of security code afterwards is done accurately.After resetting electronic control module every time, can only to electronic control module into Matching operation of row reenters step S21 therefore, it is necessary to reset electronic control module again after each matching operation.
Above by send bus marco instruction mode make need recycle carry out reset process become it is simple, efficient, can Row.Other reopen and close by hand vehicle ignition switch, reconnect the modes such as vehicle accumulator to reset electronics control Molding block is relatively infeasible.
Further, step S31 determines current temporary security code.Current temporary security code expression needs to match The digital code of verifying, only one temporary security code will be matched and be verified as security code.With security code be 4 ten into For number processed, obtains or one 4 decimal number of setting are as current temporary security code.In initial calculation, in the step Suddenly the temporary security code that starting matching primitives can be set, in subsequent loop calculation, current interim safe generation Code can automatically determine, and certainly, which can also freely change setting by stopping the method for program.
Further, step S32 sends Secure code Authentication instruction and current temporary security code to mould is controlled electronically Block.
Further, step S33, electronic control module judge the temporary security code after receiving temporary security code Whether matched with the security code of electronic control module storage.When being judged as mismatch, electronic control module can send negative anti- Message is presented to computer program end, S34 is entered step, the cumulative behaviour of temporary security code is carried out to the temporary security code Make, for example, to update the temporary security code, and return to S21 step from 1 operation is added, be next interim safe generation The matching verifying of code is prepared;When being judged as matching, electronic control module can send positive feedback message to computer program End, enters step S35, determines that the temporary security code is the security code of electronic control module, to calculate unique peace Full code, computer program end will light corresponding warning light to prompt user, and terminate calculating process.
Above step S21 reruns to step S34's, can constantly match to different temporary security codes Verifying, so as to calculate correct security code.Also, it is high-efficient.
It will be understood that flow chart above and/or block diagram and corresponding flowchart and or block diagram explanation can be by computer journey Sequence instructs to realize.These computer program instructions can be supplied to general purpose computer, special purpose computer or other may be programmed The processor of data processing equipment is to constitute machine, to be held by the processor of computer or other programmable data processing devices Function/the operation specified in these the capable one or more frames of instruction creation for implementing these flowchart and or block diagrams Component.
And it is possible to which these computer program instructions are stored in computer-readable memory, these instructions can refer to Show that computer or other programmable processors realize function in a specific way, so as to this being stored in computer-readable memory A little instructions constitute the function/operation instruction unit specified in one or more frames comprising implementation flow chart and/or block diagram Make product.
And it is possible to these computer program instructions are loaded on computer or other programmable data processors so that A series of operating procedure executes on computer or other programmable processors, to constitute computer implemented process, with These instructions executed on computer or other programmable data processors are provided for implementing this flowchart and or block diagram The step of functions or operations specified in one or more frames.It is further noted that in some alternative realizations, function shown in frame Energy/operation can not be occurred by order shown in flow chart.For example, two frames successively shown actually can be essentially simultaneously It executes or these frames can execute in reverse order sometimes, be specifically dependent upon related function/operation.
It will be understood that it can be directly connected to or couple when it is said that by component " connection " or when " coupled " to another component To another component or may exist intermediate member.On the contrary, component " directly coupling " or " being directly connected to " are arrived when it is said that another When a component, it is no intervening components present.
Example above primarily illustrates the calculating of the security code of vehicle electric control module of the invention.Although only to it In some embodiments of the present invention be described, but those of ordinary skill in the art are it is to be appreciated that the present invention can be Implement without departing from its spirit in range in many other forms.Therefore, the example shown is considered as showing with embodiment Meaning property and not restrictive, in the case where not departing from the spirit and scope of the present invention as defined in appended claims, The present invention may cover various modification and replacement.

Claims (9)

1. a kind of security code calculation method of vehicle electric control module, which is characterized in that comprising steps of
The electronic control module being in the lock state is unlocked;
The electronic control module is reset by sending control instruction;
Secure code Authentication instruction and current temporary security code are sent to the electronic control module;
Judge whether the temporary security code matches with the security code that the electronic control module stores;
When being judged as mismatch, the accumulation operations of temporary security code are carried out to update the interim peace to the temporary security code Full code, and return to the resetting electronic control module step;
When being judged as matching, determine that the temporary security code is the security code of the electronic control module.
2. security code calculation method as described in claim 1, which is characterized in that the unlocked step includes:
Carry out vehicle ignition operation;
The starting source for requesting the electronic control module to be stored;And
The corresponding starting source obtains key and the key is sent to the electronic control module.
3. security code calculation method as described in claim 1, which is characterized in that the step of resetting the electronic control module In, ignition lock state is realized in such a way that the automobile bus connected to electronic control module sends the control instruction Switching, to reset the electronic control module.
4. security code calculation method as claimed in claim 1 or 3, which is characterized in that reset the electronic control module Step includes:
Switching vehicle ignition switch state is in off state;
Wait first time period;
Switching vehicle ignition switch state is in an open state;And
Wait second time period.
5. security code calculation method as claimed in claim 4, which is characterized in that the first time period is 4 seconds to 30 seconds.
6. security code calculation method as claimed in claim 4, which is characterized in that the second time period is 1 second to 5 seconds.
7. security code calculation method as described in claim 1, which is characterized in that the electronic control module is security Device and/or engine electronic control system module.
8. security code calculation method as claimed in claim 1 or 7, which is characterized in that the electronic control module connects institute The CAN bus of vehicle is stated, and the CAN bus controls end communication by vehicle bus communication component and external computer program Connection.
9. a kind of security code computing device of vehicle electric control module characterized by comprising
Unlocking part, the electronic control module for being used to be in the lock state are unlocked;
Component is reset, is used to reset the electronic control module by sending control instruction;And
Matching block is used to send Secure code Authentication instruction and current temporary security code to the electronic control mould Block, and judge whether the temporary security code matches with the security code that the electronic control module stores, wherein sentencing Break for mismatch when, to the temporary security code carry out temporary security code accumulation operations to update the temporary security code, And it returns to the resetting component resetting electronic control module and determines the temporary security code for institute when being judged as matching State the security code of electronic control module.
CN201410831031.1A 2014-12-29 2014-12-29 The security code of vehicle electric control module calculates Active CN105799620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410831031.1A CN105799620B (en) 2014-12-29 2014-12-29 The security code of vehicle electric control module calculates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410831031.1A CN105799620B (en) 2014-12-29 2014-12-29 The security code of vehicle electric control module calculates

Publications (2)

Publication Number Publication Date
CN105799620A CN105799620A (en) 2016-07-27
CN105799620B true CN105799620B (en) 2019-01-22

Family

ID=56981213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410831031.1A Active CN105799620B (en) 2014-12-29 2014-12-29 The security code of vehicle electric control module calculates

Country Status (1)

Country Link
CN (1) CN105799620B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377193B (en) * 2018-03-09 2021-06-15 北京汽车集团越野车有限公司 Mileage backup method and device, vehicle and control equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008027091A1 (en) * 2006-08-28 2008-03-06 Tableau, Llc Method and system for password recovery using a hardware accelerator
CN103529823A (en) * 2013-10-17 2014-01-22 北奔重型汽车集团有限公司 Security access control method for vehicle diagnosis system
CN103944713A (en) * 2014-03-31 2014-07-23 中国航天时代电子公司 Binary cipher decoder decoding method based on optimal enumeration algorithm
CN104133696A (en) * 2014-07-17 2014-11-05 潍柴动力股份有限公司 Vehicle electronic control unit data flushing method, vehicle electronic control unit data flushing system and memory medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080028446A1 (en) * 2006-07-25 2008-01-31 Mypoints.Com Inc. System and method of efficient e-mail link expiration
US9126545B2 (en) * 2011-02-25 2015-09-08 GM Global Technology Operations LLC Vehicle systems activation methods and applications
JP6035459B2 (en) * 2012-04-02 2016-11-30 株式会社クリプト・ベーシック ENCRYPTION DEVICE, DECRYPTION DEVICE, AND PROGRAM
CN103935321B (en) * 2013-01-21 2016-04-13 广东高标电子科技有限公司 A kind of battery-driven car based on recognition code starts control method
US10474823B2 (en) * 2016-02-16 2019-11-12 Atmel Corporation Controlled secure code authentication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008027091A1 (en) * 2006-08-28 2008-03-06 Tableau, Llc Method and system for password recovery using a hardware accelerator
CN103529823A (en) * 2013-10-17 2014-01-22 北奔重型汽车集团有限公司 Security access control method for vehicle diagnosis system
CN103944713A (en) * 2014-03-31 2014-07-23 中国航天时代电子公司 Binary cipher decoder decoding method based on optimal enumeration algorithm
CN104133696A (en) * 2014-07-17 2014-11-05 潍柴动力股份有限公司 Vehicle electronic control unit data flushing method, vehicle electronic control unit data flushing system and memory medium

Also Published As

Publication number Publication date
CN105799620A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN109624919B (en) Vehicle anti-theft system configuration method, computer-readable storage medium, and terminal
CN104118392B (en) A kind of engine anti-theft authentication method of engine theftproof system and device
CN106600781B (en) A kind of control intelligent bicycle lock shuts method, apparatus, intelligent bicycle lock and bicycle
TW201933722A (en) Power control method and system for vehicle battery replacement
CN106451595B (en) Charge control system
CN105207287A (en) Charging pile management system and method
CN105946790A (en) Pure electric vehicle and power-on control method thereof
CN109100978A (en) A kind of setting of battery management system address and method of calibration
CN107483525A (en) Schema management method, vehicle termination and car networking system
CN105070004A (en) Intelligent equipment, as well as remote control system and remote control pairing method of intelligent equipment
CN105799620B (en) The security code of vehicle electric control module calculates
CN106169807A (en) A kind of vehicle power intelligence control system
CN103935321B (en) A kind of battery-driven car based on recognition code starts control method
CN110374413A (en) A kind of intelligent wireless door-locking system
US20190322190A1 (en) Electrically operated vehicle having charging cable
KR101744998B1 (en) Re-programming control module and re-programming system and method using the re-programming control module
CN113039747B (en) Authentication system and authentication method
DE102015221619A1 (en) Method of operating a charger and charger
CN202794977U (en) Matching support device, special external device and automobile
CN110400393A (en) A kind of method and system of long-range control door contact interrupter
CN106194473A (en) Engine of heavy-duty car ECU emergency unlocking device and method thereof
CN110103761A (en) The charge fault retroactive method and system, server and storage medium of new energy vehicle
US11563241B2 (en) Apparatus and methods for removable battery module with internal relay and internal controller
CN109101802A (en) Auth method and system
KR102006639B1 (en) Vehicle diagnosis and reprogramming method using electric vehicle charging interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant