CN107579824A - A kind of vehicle remote control method based on rolling code - Google Patents

A kind of vehicle remote control method based on rolling code Download PDF

Info

Publication number
CN107579824A
CN107579824A CN201710951235.2A CN201710951235A CN107579824A CN 107579824 A CN107579824 A CN 107579824A CN 201710951235 A CN201710951235 A CN 201710951235A CN 107579824 A CN107579824 A CN 107579824A
Authority
CN
China
Prior art keywords
code
plaintext
remote control
rolling
synchronous
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.)
Granted
Application number
CN201710951235.2A
Other languages
Chinese (zh)
Other versions
CN107579824B (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.)
CHEZHAN TRAFFIC EQUIPMENT (TAISHAN) Co Ltd
Original Assignee
CHEZHAN TRAFFIC EQUIPMENT (TAISHAN) 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 CHEZHAN TRAFFIC EQUIPMENT (TAISHAN) Co Ltd filed Critical CHEZHAN TRAFFIC EQUIPMENT (TAISHAN) Co Ltd
Priority to CN201710951235.2A priority Critical patent/CN107579824B/en
Publication of CN107579824A publication Critical patent/CN107579824A/en
Application granted granted Critical
Publication of CN107579824B publication Critical patent/CN107579824B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The present invention relates to a kind of vehicle remote control method based on rolling code.A kind of vehicle remote control method based on rolling code of the present invention does cryptographic calculation by transmitting terminal, updates synchronous code using synchronous code more new algorithm;Decryption computing is done by receiving terminal, judges to decrypt correctness, verifies remote control ID, perform function code, with transmitting terminal synchronized update synchronous code.Vehicle remote control method of the present invention based on rolling code has the advantages of improving automobile key theftproof performance.

Description

A kind of vehicle remote control method based on rolling code
Technical field
The present invention relates to a kind of encrypting and decrypting method, more particularly to a kind of vehicle remote control method based on rolling code.
Background technology
At present there is obvious leak in automobile remote-control key, and it is numerous to be related to automobile brand.Most of automobile in the market Wireless radio frequency remote control key is provided with, automobile can be performed and be locked, unlock, opening the door etc. and to order.The control of these automobile remote-control keys Mode processed includes fixed code and rolling code.Fixed code mode refers to that same button is pressed every time, and automobile remote-control key sends same The remote control coding scheme of the password of sample.It, which exists, cracks simply, and only need to intercept unlocking signal can invade automobile remote-control door lock system The problem of system, the possibility for occurring to steal car are very big.
Rolling code mode refers to that same button is pressed every time, and the remote control that automobile remote-control key can all send different passwords is compiled Code scheme.The rolling code remote control scheme of current trend is the Keeloq codings of Wei Xin companies of the U.S., other to also have some producers each The single-chip microcomputer rolling code of self-programming, AES rolling codes, DES rolling codes etc., also RFID chip rolling code, these rolling codes are from original Say it is similar in reason:All it is to use pseudo-random algorithm so that the rolling code that same button is sent every time has looked Significant difference and do not contact significantly, and identical rolling code can only once effectively, and second is just invalid.Such as Fig. 1 In a manner of the shown coding encrypting to illustrate rolling code exemplified by Keeloq is encoded:The rolling code is by sequence number, synchronous code, feature Code, function code are formed by Keeloq algorithm for encryption.The Serial No. transmitting terminal ID, there is uniqueness;The synchronous code pair Should before rolling code, equivalent to the sequence number of rolling code;Described document information is to verify decryption after receiving terminal is decrypted Correctness;The function code is the code for being used to indicate automobile action caused by corresponding button is pressed.When transmitting terminal detects button, Function code is produced, rolling code corresponding with the synchronous code, and synchronous code are formed with Keeloq algorithm for encryption by key Automatically plus it is stored in the lump in transmitting terminal internal storage, receiving terminal receives the information of rolling code, also updates receiving terminal EEPROM Synchronous code value, ensure the consistent of synchronous code, smoothly decoded.
Rolling code improves theftproof performance to a certain extent, but is even generally considered safe AES encryption mode, There is also certain stolen risk, because so-called rolling code is a kind of pseudo noise code in fact, often by one-touch, synchronous code Counter adds one, is then encoded according to synchronous code.Have a disadvantage in that the simple change of synchronous code can in the presence of what is be cracked Energy.And the algorithm and parameter of these coding chips are set by manufacturer is unified, once reveal, with a batch of remote-control key It will all be decrypted, replicate.
The content of the invention
Based on this, it is an object of the present invention to provide:A kind of vehicle remote control method based on rolling code, it has enhancing The confidentiality of rolling code, the advantages of being not easy to be cracked.
A kind of vehicle remote control method based on rolling code, comprises the following steps:
Transmitting terminal:
Step 001:When unlocking button is pressed, function code corresponding with unlocking button is produced in transmitting terminal;
Step 002:The sequence number of transmitting terminal, synchronous code, function code and condition code are arranged in order, composition plaintext A1;
Step 003:Using plaintext A1 caused by keelop algorithm for encryption steps 002, rolling code G1 is produced;
Step 004:Modulate simultaneously rolling code G1 caused by forwarding step 003;
Step 005:Synchronous code is updated using synchronous code more new algorithm, preparation is sent next time.
Receiving terminal:
Step 006:Simultaneously demodulated signal is received, obtains rolling code G2;
Step 007:Rolling code G2 is decrypted using the inverse operation of keelop algorithms, obtains plaintext A2;
Step 008:Extract plaintext A2 sequence numbers, synchronous code, function code and condition code;
Step 009:The condition code that comparison plaintext A2 condition code is locally stored with receiving terminal, if unanimously, plaintext A2 has Effect;If inconsistent, plaintext A2 is invalid;
Step 010:The sequence number that plaintext A2 sequence number and receiving terminal are locally stored is compared, if unanimously, plaintext A2 has Effect;If inconsistent, plaintext A2 is invalid;
Step 011:The synchronous code that comparison plaintext A2 synchronous code is locally stored with receiving terminal, judge both whether in step It is under synchronous code more new algorithm in 005 and continuous within the limits prescribed;If continuous, perform function code.If discontinuous, no Perform function code;
Step 012:The synchronous code received is updated and stored, prepares the comparison receive next time after.
Vehicle remote control method of the present invention based on rolling code, it using keelop algorithms before rolling code is produced One-time pad encryption has been carried out to synchronous code, compared to the simple add one operation of the synchronous code of prior art, rolling code has been enhanced and is trapped The difficulty of decoding, the security of rolling code is improved, and automobile is also can guarantee that in keelop algorithms and the parameter leakage of chip The security of remote control.
Further, the more new algorithm of the synchronous code described in step 005 makees cryptographic calculation using a non-linear conversion table.It is logical It is pseudorandom to cross the synchronous code for using a non-linear conversion table to make cryptographic calculation acquisition, increases the difficulty of decoding.
Further, the more new algorithm of the synchronous code described in step 005 makees cryptographic calculation using linear transformation.By using The synchronous code that linear transformation makees cryptographic calculation acquisition is simple compared with non-linear conversion, improves arithmetic speed.
Further, the receiving terminal is provided with memory, and the memory preserves transmitting terminal remote control Sequence number, condition code.Serial No. remote control ID is used to identify remote control corresponding to automobile, increases the difficulty of decoding;Condition code To verify the correctness of decryption.
In order to more fully understand and implement, the invention will now be described in detail with reference to the accompanying drawings.
Brief description of the drawings
Fig. 1 is Keeloq coding encrypting schematic diagrames;
Fig. 2 is the vehicle remote control method encryption principle figure based on rolling code of the present invention;
Fig. 3 is the transmitting terminal flow chart of the vehicle remote control method based on rolling code of the present invention;
Fig. 4 is the receiving terminal flow chart of the vehicle remote control method based on rolling code of the present invention.
Embodiment
The present invention's is improved based on the vehicle remote control method of rolling code on the basis of traditional keelop algorithm codings The counting mode of synchronous code, it is encrypted before with keelop algorithms generation rolling code, improves the safety of rolling code Property.
Fig. 2 is referred to, it is the vehicle remote control method encryption principle figure based on rolling code of the invention.One has been sent every time Individual synchronous code, the synchronous code of next rolling code is obtained as cryptographic calculation using synchronous code more new algorithm, the process of renewal is exactly The renewal encryption of the process of encryption, i.e. algorithm instead of original plus a renewal, the synchronous code eliminated in decryption phase and decrypt again Trouble.Then encryption synchronisation code turns into rolling code with condition code, function code and sequence number through keelop algorithm for encryption.It is decrypted Journey is the inverse operation of ciphering process, and synchronous code is without decryption.
Fig. 3 is referred to, it is the transmitting terminal flow chart of the vehicle remote control method based on rolling code of the present invention.
It comprises the following steps:
1) key set code is generated:In the present invention, when user presses the button of automobile remote controllers, the instruction hair of automobile remote controllers Raw device will produce corresponding function code;
2) generation plaintext:By the sequence number of transmitting terminal, synchronous code (last time has updated after sending), function code, condition code Arrange in order, form plaintext A1, this is sequentially permanent order set in advance, receiving terminal is identified.Can also be according to need Other orders are used, as long as transmitting terminal and receiving terminal carry out communication protocol;
3) keelop algorithm for encryption:Using plaintext A1 caused by keelop algorithm for encryption steps 002, rolling code G1 is produced;
4) data are sent:Modulated by the antenna of transmitting terminal and send rolling code G1;
5) synchronous code is updated:Complete send after, the synchronous code of transmitting terminal is no longer simple add one operation, but with transmission The non-linear conversion table of end storage makees cryptographic calculation, and this cryptographic calculation is reversible, a new synchronous code is obtained, under being used for One rolling code produces because using non-linear conversion table, caused synchronous code be it is pseudorandom, it is corresponding with synchronous code Rolling code one layer of protection more than common rolling code, it is safer.Or the synchronous code of transmitting terminal more new algorithm uses Linear transformation makees cryptographic calculation, is giving up to fall the consideration of a part of security, is improving arithmetic speed, is reducing energy consumption.
Fig. 4 is referred to, it is the receiving terminal flow chart of the vehicle remote control method based on rolling code of the present invention.
It comprises the following steps:
1) data are received:Receiving terminal is that automobile remote-control control system receives data by antenna;
2) keelop decipherment algorithms are decrypted:The data received are solved using the inverse operation of keelop AESs It is close, obtain plaintext A2;
3) abstraction sequence number, synchronous code, function code, condition code:By corresponding to the extraction of the message format of transmitting terminal agreement The sequence number of digit, synchronous code, function code, condition code;
4) condition code that comparison plaintext A2 condition code is locally stored with receiving terminal:Receiving terminal has been locally stored for verifying The condition code of correctness is decrypted, is to send data for the first time in study stage i.e. transmitting terminal and receiving terminal to establish encrypting and decrypting mode When be stored in receiving terminal memory.If both are consistent, illustrate that decryption is correct, then plaintext A2 is effective;If inconsistent, illustrate solution Close incorrect, plaintext A2 is invalid, stops.
5) sequence number that plaintext A2 sequence number and receiving terminal are locally stored is compared:Receiving terminal has been locally stored for determining The sequence number of remote control legitimacy, sequence number is uniquely corresponding with remote control, is transmitting terminal and receiving terminal also in the study stage Send when data establish encrypting and decrypting mode and be stored in receiving terminal memory for the first time.If both are consistent, illustrate remote control Legal, then plaintext A2 is effective;If inconsistent, illustrate that remote control is illegal, plaintext A2 is invalid, stops;
6) synchronous code that comparison plaintext A2 synchronous code is locally stored with receiving terminal, judge both whether in step 005 Synchronous code more new algorithm under and it is continuous within the limits prescribed;If continuous, perform function code.If discontinuous, do not perform Function code.Under normal circumstances, because receiving terminal and transmitting terminal can all use same synchronization after once transmitting-receiving task is completed Code more new algorithm renewal synchronous code, so the result for the synchronous code that comparison plaintext A2 synchronous code is locally stored with receiving terminal should It is consistent.But that remote control can be by false touch be present, the synchronous code that may result in transmitting terminal have updated, and receiving terminal is same It is constant to walk code, therefore allows receiving terminal to be carried out continuously more secondary synchronization codes and updates algorithm, is in the present embodiment 100 times, The synchronous code obtained in 100 algorithms is consistent with plaintext A2 synchronous code, is recognized as continuous, receiving terminal perform function code, and more New synchronous code;If inconsistent, receiving terminal not perform function code.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.

Claims (4)

1. a kind of vehicle remote control method based on rolling code, comprises the following steps:
Transmitting terminal:
Step 001:When unlocking button is pressed, function code corresponding with unlocking button is produced in transmitting terminal;
Step 002:The sequence number of transmitting terminal, synchronous code, function code and condition code are arranged in order, composition plaintext A1;
Step 003:Using plaintext caused by keelop algorithm for encryption step 002, rolling code G1 is produced;
Step 004:Modulate simultaneously rolling code G1 caused by forwarding step 003;
Step 005:Synchronous code is updated using synchronous code more new algorithm, preparation is sent next time;
Receiving terminal:
Step 006:Simultaneously demodulated signal is received, obtains rolling code G2;
Step 007:Rolling code G2 is decrypted using the inverse operation of keelop algorithms, obtains plaintext A2;
Step 008:Extract plaintext A2 sequence numbers, synchronous code, function code and condition code;
Step 009:The condition code that comparison plaintext A2 condition code is locally stored with receiving terminal, if unanimously, plaintext A2 is effective;If Inconsistent, plaintext A2 is invalid;
Step 010:The sequence number that plaintext A2 sequence number and receiving terminal are locally stored is compared, if unanimously, plaintext A2 is effective;If Inconsistent, plaintext A2 is invalid;
Step 011:The synchronous code that comparison plaintext A2 synchronous code is locally stored with receiving terminal, judge both whether in step 005 In synchronous code more new algorithm under and it is continuous within the limits prescribed;If continuous, perform function code;If discontinuous, do not hold Row function code;
Step 012:The synchronous code received is updated and stored, prepares the comparison receive next time after.
2. the vehicle remote control method according to claim 1 based on rolling code, it is characterised in that:Described in step 005 Synchronous code more new algorithm makees cryptographic calculation using a non-linear conversion table.
3. the vehicle remote control method according to claim 1 based on rolling code, it is characterised in that:Described in step 005 Synchronous code more new algorithm makees cryptographic calculation using linear transformation.
4. the vehicle remote control method according to claim 1 based on rolling code, it is characterised in that:In the transmitting terminal and connect Receiving end is provided with memory, and the memory preserves sequence number, condition code and the synchronous code more new algorithm of transmitting terminal remote control.
CN201710951235.2A 2017-10-13 2017-10-13 Automobile remote control method based on rolling code Expired - Fee Related CN107579824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710951235.2A CN107579824B (en) 2017-10-13 2017-10-13 Automobile remote control method based on rolling code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710951235.2A CN107579824B (en) 2017-10-13 2017-10-13 Automobile remote control method based on rolling code

Publications (2)

Publication Number Publication Date
CN107579824A true CN107579824A (en) 2018-01-12
CN107579824B CN107579824B (en) 2021-03-12

Family

ID=61037248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710951235.2A Expired - Fee Related CN107579824B (en) 2017-10-13 2017-10-13 Automobile remote control method based on rolling code

Country Status (1)

Country Link
CN (1) CN107579824B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108313008A (en) * 2018-02-02 2018-07-24 辽宁科技大学 Automobile burglar safety control system and its method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1290802A (en) * 2000-12-04 2001-04-11 三亚市实业贸易总公司 Radio frequency remote control lock
US20090172279A1 (en) * 2007-12-28 2009-07-02 Po Yuan System For Accessing A Removable Non-Volatile Memory Card
CN101662363A (en) * 2008-08-30 2010-03-03 怀化学院 Multi-layer rolling code encryption and decryption technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1290802A (en) * 2000-12-04 2001-04-11 三亚市实业贸易总公司 Radio frequency remote control lock
US20090172279A1 (en) * 2007-12-28 2009-07-02 Po Yuan System For Accessing A Removable Non-Volatile Memory Card
CN101662363A (en) * 2008-08-30 2010-03-03 怀化学院 Multi-layer rolling code encryption and decryption technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
代宇: "无线汽车门锁密码系统的研究与设计", 《中国优秀硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108313008A (en) * 2018-02-02 2018-07-24 辽宁科技大学 Automobile burglar safety control system and its method

Also Published As

Publication number Publication date
CN107579824B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN108055235B (en) Control method of intelligent lock, related equipment and system
WO2018133832A1 (en) Unlocking method for intelligent door lock, mobile terminal, intelligent door lock and cloud server
CN106357400B (en) Establish the method and system in channel between TBOX terminal and TSP platform
US10477402B2 (en) One-way key fob and vehicle pairing
CN102568062B (en) Encryption and decryption method for remote controller
CN104796265A (en) Internet-of-things identity authentication method based on Bluetooth communication access
CN109949461B (en) Unlocking method and device
CN106506149B (en) Key generation method and system between a kind of TBOX terminal and TSP platform
WO2015024426A1 (en) Identity authentication system, apparatus, and method, and identity authentication request apparatus
CN101350724A (en) Encrypting method base on biology characteristic information
CN102833246A (en) Social video information security method and system
CN100566337C (en) Strengthen the method for wireless LAN safety
CN104219044A (en) Key secret method for encrypting storing device
CN107154847A (en) Towards the method for generating cipher code, verification method and its smart machine of offline environment
CN102761871A (en) Method for preventing fake device during other party identity authentication of wireless communication devices
CN102255727B (en) Improved anti-attacking intelligent card authentication method based on user defined algorithm environment
CN105956452A (en) Method and system for unlocking device
CN101739540B (en) Label reader-writer and data communication method and system of radio frequency label
CN111031535A (en) Secure communication method and system for smart card system
CN109961545A (en) Intelligent door lock and its wireless telecommunications plaintext data encryption and decryption approaches
CN107749795A (en) A kind of vehicle remote control method of the secondary encryption based on rolling code
CN109639418A (en) A kind of authentication method of configuration information, device and rent-a-car
CN111263360A (en) Wireless encryption device and method for protecting variable mechanical authentication password by adopting public key
CN107579824A (en) A kind of vehicle remote control method based on rolling code
KR100991658B1 (en) Door lock setting system using usim card and method thereof

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210312

Termination date: 20211013