CN106740569B - A kind of whole-control system multipoint mode checking algorithm - Google Patents

A kind of whole-control system multipoint mode checking algorithm Download PDF

Info

Publication number
CN106740569B
CN106740569B CN201611069538.3A CN201611069538A CN106740569B CN 106740569 B CN106740569 B CN 106740569B CN 201611069538 A CN201611069538 A CN 201611069538A CN 106740569 B CN106740569 B CN 106740569B
Authority
CN
China
Prior art keywords
components
encryption
data
vehicle
information
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
CN201611069538.3A
Other languages
Chinese (zh)
Other versions
CN106740569A (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.)
ANHUI ANKAI VEHICLE MANUFACTURING Co Ltd
Original Assignee
ANHUI ANKAI VEHICLE MANUFACTURING 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 ANHUI ANKAI VEHICLE MANUFACTURING Co Ltd filed Critical ANHUI ANKAI VEHICLE MANUFACTURING Co Ltd
Priority to CN201611069538.3A priority Critical patent/CN106740569B/en
Publication of CN106740569A publication Critical patent/CN106740569A/en
Application granted granted Critical
Publication of CN106740569B publication Critical patent/CN106740569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of whole-control system multipoint mode checking algorithms, comprising the following steps: S1, entire car controller and host computer are acquired and store to the equipment distribution address and encryption factor of components in vehicle respectively;Components instrument in S2, vehicle, BMS controller, electric machine controller, inflate controller, steering controller be respectively vehicle CAN network node, and above-mentioned parts are respectively provided with fixed encryption factor, Encryption Algorithm and decipherment algorithm;S3, foundation between components in vehicle is associated with;S4, when carrying out CAN data information between components in vehicle and sending, it is first determined the targets of above- mentioned information sends components and intended recipient components, and target sends after components encrypt information according to the Encryption Algorithm of intended recipient components and retransmits;After S5, intended recipient components receive encrypted information, above-mentioned encrypted information is decrypted, and extract effective information carry out using.

Description

A kind of whole-control system multipoint mode checking algorithm
Technical field
The present invention relates to electric vehicle engineering field more particularly to a kind of whole-control system multipoint mode checking algorithms.
Background technique
With the continuous improvement of people's environmental consciousness, the discharge amount for reducing city automobile tail gas is the most important thing.It is various new Energy automobile is put into people's lives, and wherein the high and low carbocyclic ring of energy efficiency is protected, the electric car of zero-emission becomes city The main force of new energy traffic automobile.
In operation, vehicle CAN message is especially most important for electric car, determines driveability, the safety of vehicle Energy;However the CAN message of electric motor coach can be monitored completely by common CAN transceiver at present, and CAN message is interior Hold there is no verification and ciphering process is realized, so that the communication mechanism of vehicle is completely exposed outside, on the one hand not to vehicle safety Benefit is not on the other hand high to the protectiveness of the control strategy of vehicle factor and process;So our company is proposed one kind for CAN message Multipoint mode verification agency and algorithm, mainly using the ID number of CAN message, equipment distribution number and encryption factor verified And encryption, realize mutual content authentication and external ciphering process.
Summary of the invention
Technical problems based on background technology, the invention proposes a kind of verifications of whole-control system multipoint mode to calculate Method.
Whole-control system multipoint mode checking algorithm proposed by the present invention, comprising the following steps:
S1, entire car controller and host computer respectively carry out the equipment distribution address and encryption factor of components in vehicle It acquires and stores;
Components instrument in S2, vehicle, electric machine controller, inflates controller, steering controller and is respectively at BMS controller The node of vehicle CAN network, and above-mentioned parts are respectively provided with fixed encryption factor, Encryption Algorithm and decipherment algorithm;
S3, foundation between components in vehicle is associated with;
S4, when carrying out CAN data information between components in vehicle and sending, it is first determined the targets of above- mentioned information is sent Components and intended recipient components, and target sends components and carries out according to the Encryption Algorithm of intended recipient components to information It is retransmited after encryption;
After S5, intended recipient components receive encrypted information, above-mentioned encrypted information is decrypted, and mentions Take out effective information carry out using.
Preferably, the Encryption Algorithm of components and decipherment algorithm distribute address, zero according to the equipment of components in vehicle The encryption factor of component, the CAN data ID number of each frame information carry out computations and decryption calculates.
Preferably, the computations formula is as follows:
Keyn=Kn+ (ID&0x00FFFF00) > > 2+Sn
Wherein, KnFor the encryption factor of each components;SnAddress is distributed for the equipment of each components;ID needs are sent The ID number of CAN data, the data byte of the ID number add after the encryption factor to 255 complementations;KeynFor the CAN of the frame information The encryption factor of data ID number.
Preferably, the decryption calculation formula is as follows:
Keyn=Kn+ (ID&0x00FFFF00) > > 2+Sn
Wherein, KnFor the encryption factor of each components;SnAddress is distributed for the equipment of each components;ID needs are sent The ID number of CAN data, the data byte of the ID number add after the encryption factor to 255 complementations;KeynFor the CAN of the frame information The decryption factor of data ID number.
Preferably, step S4 progress one includes operations described below:
S41, target send components and CAN data before encrypting are carried out CRC check calculating, obtain CRC check and C1, and CRC check and C1 are filled in the first byte;
S42, the encryption factor for calculating the frame data;
S43, computations are carried out to the CAN data that needs are sent using above-mentioned encryption factor;
S44, encrypted CAN data are sent.
Preferably, step S5 progress one includes operations described below:
Calculating is decrypted to the encrypted information received in S51, intended recipient components;
S52, CAN data are decrypted using decryption factor;
S53, CRC check calculating is carried out to the CAN data after decryption;
S54, according to above-mentioned verification calculated result extract effective information carry out using.
Preferably, the instrument has K1 encryption factor, and the BMS controller has K3 encryption factor, described Electric machine controller has K5 encryption factor, and described inflates controller with K6 encryption factor, and the steering controller has K7 encryption factor.
The present invention is associated with foundation between components each in vehicle, and when there is information transmission in vehicle between components, Above- mentioned information are encrypted, guarantee the safety of information transmitting;Meanwhile components are sent to needing to send information in target Before being encrypted, information before above-mentioned encryption is verified, and the information received is decrypted in intended recipient components Afterwards, the information after above-mentioned decryption is verified, in this way, being verified to information before encrypting and encrypted information, is made whole The communication mechanism of vehicle is protected, and the safety of vehicle is not only protected, but also control strategy to vehicle factor and process carry out Comprehensive protection.Also, the present invention mainly utilize CAN data ID number, component device distribution address in vehicle, encryption factor into Row verification and encryption, realize in vehicle content authentication and external ciphering process between components, not only ensure that data information The safety of transmission, and ensured the validity of data information transfer.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of whole-control system multipoint mode checking algorithm.
Specific embodiment
As shown in FIG. 1, FIG. 1 is a kind of whole-control system multipoint mode checking algorithms proposed by the present invention.
Referring to Fig.1, whole-control system multipoint mode checking algorithm proposed by the present invention, comprising the following steps:
S1, entire car controller and host computer respectively carry out the equipment distribution address and encryption factor of components in vehicle It acquires and stores;
Components instrument in S2, vehicle, electric machine controller, inflates controller, steering controller and is respectively at BMS controller The node of vehicle CAN network, and above-mentioned parts are respectively provided with fixed encryption factor, Encryption Algorithm and decipherment algorithm;It is described Instrument have K1 encryption factor, the BMS controller have K3 encryption factor, the electric machine controller have K5 encryption The factor, described inflates controller with K6 encryption factor, and the steering controller has K7 encryption factor.
S3, foundation between components in vehicle is associated with;
S4, when carrying out CAN data information between components in vehicle and sending, it is first determined the targets of above- mentioned information is sent Components and intended recipient components, and target sends components and carries out according to the Encryption Algorithm of intended recipient components to information It is retransmited after encryption;Concrete operations are as follows:
S41, target send components and CAN data before encrypting are carried out CRC check calculating, obtain CRC check and C1, and CRC check and C1 are filled in the first byte;
S42, the encryption factor for calculating the frame data;
S43, computations are carried out to the CAN data that needs are sent using above-mentioned encryption factor;
S44, encrypted CAN data are sent.
After S5, intended recipient components receive encrypted information, above-mentioned encrypted information is decrypted, and mentions Effective information is taken out to carry out using concrete operations are as follows:
Calculating is decrypted to the encrypted information received in S51, intended recipient components;
S52, CAN data are decrypted using decryption factor;
S53, CRC check calculating is carried out to the CAN data after decryption;
S54, according to above-mentioned verification calculated result extract effective information carry out using.
In present embodiment, in vehicle the Encryption Algorithm of components and decipherment algorithm according to the equipment of components distributively Location, the encryption factor of components, the CAN data ID number of each frame information carries out computations and decryption calculates, specific calculation It is as follows:
The computations formula are as follows:
Keyn=Kn+ (ID&0x00FFFF00) > > 2+Sn
Wherein, KnFor the encryption factor of each components;SnAddress is distributed for the equipment of each components;ID needs are sent The ID number of CAN data, the data byte of the ID number add after the encryption factor to 255 complementations;KeynFor the CAN of the frame information The encryption factor of data ID number.
The decryption calculation formula are as follows:
Keyn=Kn+ (ID&0x00FFFF00) > > 2+Sn
Wherein, KnFor the encryption factor of each components;SnAddress is distributed for the equipment of each components;ID needs are sent The ID number of CAN data, the data byte of the ID number add after the encryption factor to 255 complementations;KeynFor the CAN of the frame information The decryption factor of data ID number.
The present invention mainly verified using component device distribution address, encryption factor in CAN data ID number, vehicle and Encryption realizes in vehicle content authentication and external ciphering process between components, not only ensure that the peace of data information transfer Quan Xing, and ensured the validity of data information transfer.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Anyone skilled in the art in the technical scope disclosed by the present invention, according to the technique and scheme of the present invention and its Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.

Claims (4)

1. a kind of whole-control system multipoint mode checking algorithm, which comprises the following steps:
S1, entire car controller and host computer are respectively acquired the equipment distribution address and encryption factor of components in vehicle And it stores;
Components instrument in S2, vehicle, BMS controller, electric machine controller, to inflate controller, steering controller be respectively vehicle The node of CAN network, and above-mentioned parts are respectively provided with fixed encryption factor, Encryption Algorithm and decipherment algorithm;
S3, foundation between components in vehicle is associated with;
S4, when carrying out CAN data information between components in vehicle and sending, it is first determined the targets of above- mentioned information sends zero Part and intended recipient components, and target sends components and encrypts according to the Encryption Algorithm of intended recipient components to information After retransmit;
After S5, intended recipient components receive encrypted information, above-mentioned encrypted information is decrypted, and extracts Effective information carry out using;
In vehicle the Encryption Algorithm of components and decipherment algorithm according to the equipment distribution address of components, components encryption because The CAN data ID number of sub, each frame information carries out computations and decryption calculates;
The computations formula is as follows:
Keyn=Kn+ (ID&0x00FFFF00) > > 2+Sn
Wherein, KnFor the encryption factor of each components;SnAddress is distributed for the equipment of each components;ID is the CAN number for needing to send According to ID number, the data byte of the ID number adds after the encryption factor to 255 complementations;KeynFor the CAN data of the frame information The encryption factor of ID number;
The decryption calculation formula is as follows:
Keyn=Kn+ (ID&0x00FFFF00) > > 2+Sn
Wherein, KnFor the encryption factor of each components;SnAddress is distributed for the equipment of each components;ID is the CAN number for needing to send According to ID number, the data byte of the ID number adds after the encryption factor to 255 complementations;KeynFor the CAN data of the frame information The decryption factor of ID number.
2. whole-control system multipoint mode checking algorithm according to claim 1, which is characterized in that step S4 is further wrapped Include operations described below:
S41, target send components and CAN data before encrypting are carried out CRC check calculating, obtain CRC check and C1, and will CRC check and C1 are filled in the first byte;
S42, the encryption factor for calculating the frame data;
S43, computations are carried out to the CAN data that needs are sent using above-mentioned encryption factor;
S44, encrypted CAN data are sent.
3. whole-control system multipoint mode checking algorithm according to claim 1, which is characterized in that step S5 is further wrapped Include operations described below:
Calculating is decrypted to the encrypted information received in S51, intended recipient components;
S52, CAN data are decrypted using decryption factor;
S53, CRC check calculating is carried out to the CAN data after decryption;
S54, according to above-mentioned verification calculated result extract effective information carry out using.
4. whole-control system multipoint mode checking algorithm according to claim 1, which is characterized in that the instrument has K1 encryption factor, the BMS controller have K3 encryption factor, and the electric machine controller has K5 encryption factor, described Inflate controller with K6 encryption factor, the steering controller has K7 encryption factor.
CN201611069538.3A 2016-11-28 2016-11-28 A kind of whole-control system multipoint mode checking algorithm Active CN106740569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611069538.3A CN106740569B (en) 2016-11-28 2016-11-28 A kind of whole-control system multipoint mode checking algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611069538.3A CN106740569B (en) 2016-11-28 2016-11-28 A kind of whole-control system multipoint mode checking algorithm

Publications (2)

Publication Number Publication Date
CN106740569A CN106740569A (en) 2017-05-31
CN106740569B true CN106740569B (en) 2019-07-02

Family

ID=58904208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611069538.3A Active CN106740569B (en) 2016-11-28 2016-11-28 A kind of whole-control system multipoint mode checking algorithm

Country Status (1)

Country Link
CN (1) CN106740569B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108638889B (en) * 2018-05-16 2020-10-27 智车优行科技(北京)有限公司 Vehicle electric handshake checking method and device, vehicle, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897669A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Data sending method, data receiving method, sending terminal, receiving terminal and CAN bus network
CN106143364A (en) * 2016-07-22 2016-11-23 北京航空航天大学 A kind of electric automobile distributed director information security method and system
CN106154903A (en) * 2015-04-16 2016-11-23 上海汽车集团股份有限公司 Carry out, with peripheral hardware, the system and method that information is mutual for car load network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010272971A (en) * 2009-05-19 2010-12-02 Nagoya Univ Control system and method for rewriting control program
KR101509899B1 (en) * 2013-07-09 2015-04-07 현대자동차주식회사 Driver oriented control system for vehicle

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106154903A (en) * 2015-04-16 2016-11-23 上海汽车集团股份有限公司 Carry out, with peripheral hardware, the system and method that information is mutual for car load network
CN105897669A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Data sending method, data receiving method, sending terminal, receiving terminal and CAN bus network
CN106143364A (en) * 2016-07-22 2016-11-23 北京航空航天大学 A kind of electric automobile distributed director information security method and system

Also Published As

Publication number Publication date
CN106740569A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106357400B (en) Establish the method and system in channel between TBOX terminal and TSP platform
CN101662366B (en) Method and system for mutual authentication based on hash function
EP4254248A2 (en) Cryptographic methods and systems for managing digital certificates
CN103634114B (en) The verification method and system of intelligent code key
CN106713237B (en) Encryption method for communication between vehicle-mounted terminal and central platform
CN110572828B (en) Internet of things security authentication method, system and terminal based on state cryptographic algorithm
CN111149324A (en) Cryptographic method and system for managing digital certificates having linked values
EP3094041A1 (en) Method and device for acquiring message certificate in vehicle networking system
CN101645899B (en) Bidirectional authentication method and system based on symmetric encipherment algorithm
CN106506149B (en) Key generation method and system between a kind of TBOX terminal and TSP platform
CN106572106A (en) Method of transmitting message between TBOX terminal and TSP platform
JP2013048374A (en) Protection communication method
CN106452762A (en) Identity-based high-efficiency data transmission method in vehicular ad hoc network
CN105246071A (en) Message generation and authentication methods and equipment in Internet-of-vehicles system
CN108011708A (en) The controller and vehicle of message encryption method, vehicle based on automobile bus
CN105897748B (en) A kind of transmission method and equipment of symmetric key
CN101990748A (en) Method and device for transmitting messages in real time
CN104219663A (en) A method and system for certificating vehicle identity
US20120124374A1 (en) Secured acknowledge protocol for automotive remote keyless entry systems and for networked sensor devices
CN110753321A (en) Safe communication method for vehicle-mounted TBOX and cloud server
CN106850311A (en) For the data safe transmission system and method for firmware upgrade
Chothia et al. An attack against message authentication in the ERTMS train to trackside communication protocols
CN110868398A (en) Data frame encryption method, data frame decryption method and data frame decryption device
JP6092548B2 (en) Radio system and train control system
CN101826960A (en) Checking method of real-time transmission encryption and decryption data

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
GR01 Patent grant
GR01 Patent grant