CN106476754B - A kind of motor vehicle control method and device - Google Patents
A kind of motor vehicle control method and device Download PDFInfo
- Publication number
- CN106476754B CN106476754B CN201610940820.8A CN201610940820A CN106476754B CN 106476754 B CN106476754 B CN 106476754B CN 201610940820 A CN201610940820 A CN 201610940820A CN 106476754 B CN106476754 B CN 106476754B
- Authority
- CN
- China
- Prior art keywords
- key
- code key
- identity information
- code
- secret key
- 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
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R25/00—Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
- B60R25/20—Means to switch the anti-theft system on or off
- B60R25/24—Means to switch the anti-theft system on or off using electronic identifiers containing a code not memorised by the user
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00896—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Lock And Its Accessories (AREA)
Abstract
Description
技术领域technical field
本发明属于机动车安全技术领域,尤其涉及一种机动车控制方法及装置。The invention belongs to the technical field of motor vehicle safety, and in particular relates to a motor vehicle control method and device.
背景技术Background technique
随着科技的快速发展,PEPS(Passive Entry&Passive Start,无钥匙进入及启动系统)已经越来越成熟,现已广泛运用于各种类型的汽车中。PEPS系统包括车载控制装置及便携式车辆遥控装置(智能钥匙),当用户需要进入或启动汽车时,使用智能钥匙向车载控制装置发送信号,车载控制装置验证该信号,当验证通过后,车载控制装置打开车门或后备箱的车锁或启动汽车。当前的PEPS系统,当存有其它目的的人获取到智能钥匙向车载控制装置发送的信号中的验证信息后,能够通过其它的发射器向车载控制装置发射信号,以使车载控制装置打开车锁或启动汽车,使汽车的安全存在隐患。With the rapid development of technology, PEPS (Passive Entry&Passive Start, keyless entry and start system) has become more and more mature, and has been widely used in various types of cars. The PEPS system includes a vehicle-mounted control device and a portable vehicle remote control device (smart key). When the user needs to enter or start the car, the smart key sends a signal to the vehicle-mounted control device. The vehicle-mounted control device verifies the signal. After the verification is passed, the vehicle-mounted control device Unlock the doors or trunk or start the car. In the current PEPS system, when someone with other purposes obtains the verification information in the signal sent by the smart key to the vehicle control device, he can send a signal to the vehicle control device through other transmitters, so that the vehicle control device unlocks the car lock. Or start the car, so that there is a hidden danger to the safety of the car.
发明内容Contents of the invention
本发明实施例提供了一种机动车控制方法及装置,旨在解决现有技术中的机动车控制装置存在安全隐患的问题。Embodiments of the present invention provide a motor vehicle control method and device, aiming at solving the problem of potential safety hazards in the motor vehicle control device in the prior art.
本发明实施例第一方面提供了一种机动车控制方法,所述方法包括:The first aspect of the embodiment of the present invention provides a motor vehicle control method, the method comprising:
无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存;The keyless entry and start system PEPS controller obtains and saves the identity information of the smart key;
按照预置的秘钥生成规则生成第一秘钥以及与所述第一秘钥匹配的第二秘钥,并将所述第二秘钥发送给智能钥匙;generating a first secret key and a second secret key matching the first secret key according to a preset secret key generation rule, and sending the second secret key to the smart key;
当接收到所述智能钥匙发送的配对信息及控制指令时,分别验证所述配对信息中包含的身份信息和所述第二秘钥与保存的所述身份信息和所述第一秘钥是否匹配;When receiving the pairing information and the control instruction sent by the smart key, respectively verify whether the identity information contained in the pairing information and the second secret key match the stored identity information and the first secret key ;
若所述配对信息中包含的身份信息与保存的所述身份信息相匹配,且所述第二秘钥与所述第一秘钥相匹配,则控制打开机动车中所述控制指令指向的对应部件。If the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding part.
本发明实施例第二方面提供了一种机动车控制方法,所述方法包括:The second aspect of the embodiment of the present invention provides a motor vehicle control method, the method comprising:
智能钥匙向无钥匙进入及启动系统PEPS控制器发送所述智能钥匙的身份信息;The smart key sends the identity information of the smart key to the PEPS controller of the keyless entry and start system;
接收所述PEPS控制器发送的第二秘钥并保存;receiving and saving the second secret key sent by the PEPS controller;
当检测到用户触发的控制指令时,向所述PEPS控制器发送配对信息及所述控制指令,所述配对信息中包含所述智能钥匙的身份信息及所述第二秘钥,以使得所述PEPS控制器根据所述配对信息,控制打开机动车中所述控制指令指向的对应部件。When a control command triggered by the user is detected, send pairing information and the control command to the PEPS controller, the pairing information includes the identity information of the smart key and the second secret key, so that the According to the pairing information, the PEPS controller controls to turn on the corresponding component in the motor vehicle to which the control instruction is directed.
本发明实施例第三方面提供了一种机动车控制装置,所述装置包括:The third aspect of the embodiment of the present invention provides a motor vehicle control device, the device includes:
获取模块,用于获取智能钥匙的身份信息并保存;The obtaining module is used to obtain and save the identity information of the smart key;
生成模块,用于按照预置的秘钥生成规则生成第一秘钥以及与所述第一秘钥匹配的第二秘钥;A generating module, configured to generate a first secret key and a second secret key matching the first secret key according to a preset secret key generation rule;
控制器发送模块,用于将所述第二秘钥发送给智能钥匙;A controller sending module, configured to send the second secret key to the smart key;
匹配模块,用于当接收到所述智能钥匙发送的配对信息及控制指令时,分别验证所述配对信息中包含的身份信息和所述第二秘钥与保存的所述身份信息和所述第一秘钥是否匹配;A matching module, configured to verify respectively the identity information and the second secret key included in the pairing information and the stored identity information and the second secret key when receiving the pairing information and the control instruction sent by the smart key. Whether a secret key matches;
控制模块,用于若所述配对信息中包含的身份信息与保存的所述身份信息相匹配,且所述第二秘钥与所述第一秘钥相匹配,则控制打开机动车中所述控制指令指向的对应部件。a control module, configured to control opening the The corresponding component to which the control instruction is directed.
本发明实施例第四方面提供了一种机动车控制装置,所述装置包括:The fourth aspect of the embodiment of the present invention provides a motor vehicle control device, the device includes:
钥匙发送模块,用于向无钥匙进入及启动系统PEPS控制器发送所述智能钥匙的身份信息;A key sending module, configured to send the identity information of the smart key to the PEPS controller of the keyless entry and start system;
保存模块,用于接收所述PEPS控制器发送的第二秘钥并保存;A storage module, configured to receive and store the second secret key sent by the PEPS controller;
所述钥匙发送模块,还用于当检测到用户触发的控制指令时,向所述PEPS控制器发送配对信息及所述控制指令,所述配对信息中包含所述智能钥匙的身份信息及所述第二秘钥,以使得所述PEPS控制器根据所述配对信息,控制打开机动车中所述控制指令指向的对应部件。The key sending module is further configured to send pairing information and the control command to the PEPS controller when a control command triggered by the user is detected, and the pairing information includes the identity information of the smart key and the The second secret key, so that the PEPS controller controls to open the corresponding component in the motor vehicle to which the control instruction is directed according to the pairing information.
从上述本发明实施例可知,本发明通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。It can be seen from the above-mentioned embodiments of the present invention that the present invention obtains and saves the identity information of the smart key through the PEPS controller of the keyless entry and start system, and generates the first secret key and the key matching the first secret key according to the preset secret key generation rules. The second secret key, and send the second secret key to the smart key. When receiving the pairing information and control instructions sent by the smart key, verify the identity information and the second secret key contained in the pairing information and the stored identity information and Whether the first secret key matches, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, and Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle. Improves the safety of the PEPS system and improves product stickiness.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative efforts.
图1是本发明第一实施例提供的机动车控制方法的实现流程示意图;Fig. 1 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the first embodiment of the present invention;
图2是本发明第二实施例提供的机动车控制方法的实现流程示意图;Fig. 2 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the second embodiment of the present invention;
图3是本发明第三实施例提供的机动车控制方法的实现流程示意图;Fig. 3 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the third embodiment of the present invention;
图4是本发明第四实施例提供的机动车控制方法的实现流程示意图;Fig. 4 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the fourth embodiment of the present invention;
图5是本发明第五实施例提供的机动车控制方法的实现流程示意图;Fig. 5 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the fifth embodiment of the present invention;
图6是本发明第六实施例提供的机动车控制装置的结构示意图;Fig. 6 is a schematic structural diagram of a motor vehicle control device provided by a sixth embodiment of the present invention;
图7是本发明第七实施例提供的机动车控制装置的结构示意图;Fig. 7 is a schematic structural diagram of a motor vehicle control device provided by a seventh embodiment of the present invention;
图8是本发明第八实施例提供的机动车控制装置的结构示意图;Fig. 8 is a schematic structural diagram of a motor vehicle control device provided by an eighth embodiment of the present invention;
图9是本发明第九实施例提供的机动车控制装置的结构示意图;Fig. 9 is a schematic structural diagram of a motor vehicle control device provided by a ninth embodiment of the present invention;
图10是本发明第十实施例提供的机动车控制系统的结构示意图。Fig. 10 is a schematic structural diagram of a motor vehicle control system provided by a tenth embodiment of the present invention.
具体实施方式Detailed ways
为使得本发明实施例的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features, and advantages of the embodiments of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, The described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.
请参阅图1,图1为本发明第一实施例提供的机动车控制方法的实现流程示意图,本实施例从执行主体为无钥匙进入及启动系统PEPS控制器的角度进行描述,本发明实施例中提供的机动车控制方法包括:Please refer to Fig. 1. Fig. 1 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the first embodiment of the present invention. The motor vehicle control methods provided in include:
S101、无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存;S101. The PEPS controller of the keyless entry and start system obtains and saves the identity information of the smart key;
S102、按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙;S102. Generate a first secret key and a second secret key matching the first secret key according to a preset secret key generation rule, and send the second secret key to the smart key;
步骤S101及S102是智能钥匙的学习过程,当PEPS控制系统进入智能钥匙的学习状态后,用户将智能钥匙放置在机动车IMMO(发动机防盗锁止系统)线圈处,该PEPS控制器就会与智能钥匙之间进行低频通讯。PEPS控制器会获取并保存智能钥匙的身份信息等重要信息,生成并保存第一秘钥以及与第一秘钥匹配的第二秘钥,并将该第二秘钥写入智能钥匙相应的存储器中,可以理解的,此处的第一秘钥和第二秘钥可以是相同的秘钥。这样,在该学习过程结束后,PEPS控制器与智能秘钥之间不管是进行高频通讯还是低频通讯,都会涉及到密钥数据,从而保障了汽车的安全。Steps S101 and S102 are the learning process of the smart key. When the PEPS control system enters the learning state of the smart key, the user places the smart key at the coil of the IMMO (immobilizer system) of the motor vehicle, and the PEPS controller will communicate with the smart key. Low frequency communication between keys. The PEPS controller will obtain and save important information such as the identity information of the smart key, generate and save the first secret key and the second secret key matching the first secret key, and write the second secret key into the corresponding memory of the smart key , it can be understood that the first secret key and the second secret key here may be the same secret key. In this way, after the learning process is over, no matter whether high-frequency communication or low-frequency communication is performed between the PEPS controller and the smart key, the key data will be involved, thereby ensuring the safety of the car.
PEPS控制器生成第一秘钥以及与第一秘钥匹配的第二秘钥,具体包括:调用第一预置次数的C语言函数,生成第一预置位数的随机数,将该第一预置位数的随机数作为第一秘钥;调用第二预置次数的C语言函数,生成第二预置位数的随机数,将第二预置位数的随机数作为第二秘钥。The PEPS controller generates the first secret key and the second secret key matching the first secret key, which specifically includes: calling the C language function for the first preset number of times, generating a random number with the first preset number of digits, and using the first The random number of the preset number of digits is used as the first secret key; the C language function of the second preset number of times is called to generate the random number of the second preset number of digits, and the random number of the second preset number of digits is used as the second secret key .
在本实施例中,密钥不是个固定的值,要是随机值,因此通过调用C语言的函数来生成秘钥,在C语言中,函数srand()就是给rand()提供种子的,如果srand每次输入的参数是一样的,那么每次运行产生的随机数也是一样的;如果srand每次输入的参数不一样,那么每次运行产生的随机数也不一样。选择定时器的毫秒值作为函数srand()的参数,这样每次调用rand(),所生成的随机数就是变化的。产生随机数的函数的C代码如下所示:In this embodiment, the key is not a fixed value, but a random value, so the secret key is generated by calling a function in C language. In C language, the function srand() provides seeds for rand(). If srand If the input parameters are the same each time, the random numbers generated by each run are also the same; if the parameters input by srand are different each time, then the random numbers generated by each run are also different. The millisecond value of the timer is selected as the parameter of the function srand(), so that each time rand() is called, the generated random number changes. The C code for the function that generates random numbers is as follows:
unsigned int Create_random(void)unsigned int Create_random(void)
{{
unsigned int uiRandSeed=Get_mSecond_value();//采集定时器的毫秒值unsigned int uiRandSeed=Get_mSecond_value();//collect the millisecond value of the timer
srand(uiRandSeed);srand(uiRandSeed);
return(rand());return(rand());
}}
该代码每次运行,能产生一个16位的随机数。若需要生成128位数的随机数作为第一秘钥,则需要连续调用8次上述函数即可得到。Each time the code runs, it generates a 16-bit random number. If you need to generate a 128-digit random number as the first secret key, you need to call the above function 8 times in a row to get it.
当PEPS控制系统进入智能钥匙的学习状态后,PEPS控制器和智能钥匙之间通过低频(LF)方式进行通讯,频率在120K-140K之间,有效通讯距离在10CM以内。通过相关的通讯协议,可以直接通过明码的方式将第二密钥写入到智能钥匙相应的存储器中,也可以通过Hash编码的方式,对第二秘钥进行加密,以非明码的方式将第二密钥写入到智能钥匙相应的存储器中,采用加密的方式安全性更高,操作也更复杂。When the PEPS control system enters the learning state of the smart key, the PEPS controller and the smart key communicate through low frequency (LF), the frequency is between 120K-140K, and the effective communication distance is within 10CM. Through the relevant communication protocol, the second key can be directly written into the corresponding memory of the smart key in a clear way, or the second secret key can be encrypted by Hash coding, and the second key can be written in a non-clear way. The second key is written into the corresponding memory of the smart key, and the encryption method is more secure and the operation is more complicated.
S103、当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配;S103. When receiving the pairing information and the control instruction sent by the smart key, respectively verify whether the identity information and the second secret key included in the pairing information match the saved identity information and the first secret key;
步骤S103及S104是智能钥匙通过PEPS控制器控制机动车的过程。Steps S103 and S104 are the process in which the smart key controls the motor vehicle through the PEPS controller.
配对信息中包含该智能钥匙的身份信息及第二秘钥。分别将配对信息中包含的身份信息与在步骤S101中获取并保存的身份信息进行匹配,将配对信息中包含的第二秘钥与步骤S102中生成的第一秘钥进行匹配。The pairing information includes the identity information of the smart key and the second secret key. The identity information included in the pairing information is matched with the identity information acquired and saved in step S101, and the second secret key included in the pairing information is matched with the first secret key generated in step S102.
S104、若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件。S104. If the identity information included in the pairing information matches the saved identity information, and the second secret key matches the first secret key, control to open the corresponding component in the motor vehicle to which the control command points.
其中,打开机动车中控制指令指向的对应部件,可以但不限于包括:打开全部车门的车锁;打开控制指令指向的目标车门的车锁;打开后备箱的车锁;启动汽车的引擎。Wherein, unlocking the corresponding parts pointed to by the control command in the motor vehicle may include, but is not limited to: unlocking the locks of all doors; unlocking the locks of the target doors pointed to by the control command; unlocking the lock of the trunk; starting the engine of the car.
本发明实施例提供的机动车控制方法,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。In the motor vehicle control method provided by the embodiment of the present invention, the identity information of the smart key is obtained and stored by the PEPS controller of the keyless entry and start system, and the first secret key is generated according to the preset secret key generation rules and matched with the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图2,图2为本发明第二实施例提供的机动车控制方法的实现流程示意图,本实施例仍从执行主体为无钥匙进入及启动系统PEPS控制器的角度进行描述,本发明实施例中提供的机动车控制方法包括:Please refer to Fig. 2. Fig. 2 is a schematic diagram of the implementation process of the motor vehicle control method provided by the second embodiment of the present invention. This embodiment is still described from the perspective that the executive body is the PEPS controller of the keyless entry and start system. The motor vehicle control method provided in the example includes:
S201、无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存;S201. The PEPS controller of the keyless entry and start system obtains and saves the identity information of the smart key;
S202、按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥;S202. Generate a first secret key and a second secret key matching the first secret key according to a preset secret key generation rule;
S203、对第二秘钥进行加密处理,得到加密秘钥,并将该加密秘钥发送给智能钥匙;S203. Encrypt the second key to obtain the encryption key, and send the encryption key to the smart key;
步骤S201、S202及S203是智能钥匙的学习过程,当PEPS控制系统进入智能钥匙的学习状态后,用户将智能钥匙放置在机动车IMMO(发动机防盗锁止系统)线圈处,该PEPS控制器就会与智能钥匙之间进行低频通讯。PEPS控制器会获取并保存智能钥匙的身份信息等重要信息,生成并保存第一秘钥以及与第一秘钥匹配的第二秘钥,然后对该第二密钥进行加密处理,得到加密密钥,并将该加密秘钥写入智能钥匙相应的存储器中,可以理解的,此处的第一秘钥和第二秘钥可以是相同的秘钥。这样,在该学习过程结束后,PEPS控制器与智能秘钥之间不管是进行高频通讯还是低频通讯,都会涉及到密钥数据,从而保障了汽车的安全。Steps S201, S202 and S203 are the learning process of the smart key. When the PEPS control system enters the learning state of the smart key, the user places the smart key at the coil of the IMMO (immobilizer system) of the motor vehicle, and the PEPS controller will Low-frequency communication with the smart key. The PEPS controller will obtain and save important information such as the identity information of the smart key, generate and save the first secret key and the second secret key matching the first secret key, and then encrypt the second key to obtain the encrypted key key, and write the encryption key into the corresponding memory of the smart key. It can be understood that the first key and the second key here may be the same key. In this way, after the learning process is over, no matter whether high-frequency communication or low-frequency communication is performed between the PEPS controller and the smart key, the key data will be involved, thereby ensuring the safety of the car.
PEPS控制器生成第一秘钥以及与第一秘钥匹配的第二秘钥,具体包括:调用第一预置次数的C语言函数,生成第一预置位数的随机数,将该第一预置位数的随机数作为第一秘钥;调用第二预置次数的C语言函数,生成第二预置位数的随机数,将第二预置位数的随机数作为第二秘钥。The PEPS controller generates the first secret key and the second secret key matching the first secret key, which specifically includes: calling the C language function for the first preset number of times, generating a random number with the first preset number of digits, and using the first The random number of the preset number of digits is used as the first secret key; the C language function of the second preset number of times is called to generate the random number of the second preset number of digits, and the random number of the second preset number of digits is used as the second secret key .
在本实施例中,密钥不是个固定的值,要是随机值,因此通过调用C语言的函数来生成秘钥,在C语言中,函数srand()就是给rand()提供种子的,如果srand每次输入的参数是一样的,那么每次运行产生的随机数也是一样的;如果srand每次输入的参数不一样,那么每次运行产生的随机数也不一样。选择定时器的毫秒值作为函数srand()的参数,这样每次调用rand(),所生成的随机数就是变化的。产生随机数的函数的C代码如下所示:In this embodiment, the key is not a fixed value, but a random value, so the secret key is generated by calling a function in C language. In C language, the function srand() provides seeds for rand(). If srand If the input parameters are the same each time, the random numbers generated by each run are also the same; if the parameters input by srand are different each time, then the random numbers generated by each run are also different. The millisecond value of the timer is selected as the parameter of the function srand(), so that each time rand() is called, the generated random number changes. The C code for the function that generates random numbers is as follows:
unsigned int Create_random(void)unsigned int Create_random(void)
{{
unsigned int uiRandSeed=Get_mSecond_value();//采集定时器的毫秒值unsigned int uiRandSeed=Get_mSecond_value();//collect the millisecond value of the timer
srand(uiRandSeed);srand(uiRandSeed);
return(rand());return(rand());
}}
该代码每次运行,能产生一个16位的随机数。若需要生成128位数的随机数作为第一秘钥,则需要连续调用8次上述函数即可得到。Each time the code runs, it generates a 16-bit random number. If you need to generate a 128-digit random number as the first secret key, you need to call the above function 8 times in a row to get it.
当PEPS控制系统进入智能钥匙的学习状态后,PEPS控制器和智能钥匙之间通过低频(LF)方式进行通讯,频率在120K-140K之间,有效通讯距离在10CM以内。通过相关的通讯协议,可以直接通过明码的方式将第二密钥写入到智能钥匙相应的存储器中,也可以通过Hash编码的方式,对第二秘钥进行加密,以非明码的方式将第二密钥写入到智能钥匙相应的存储器中,采用加密的方式安全性更高,操作也更复杂,因此在本实施例中采用的是加密的方式。When the PEPS control system enters the learning state of the smart key, the PEPS controller and the smart key communicate through low frequency (LF), the frequency is between 120K-140K, and the effective communication distance is within 10CM. Through the relevant communication protocol, the second key can be directly written into the corresponding memory of the smart key in a clear way, or the second secret key can be encrypted by Hash coding, and the second key can be written in a non-clear way. The second key is written into the corresponding memory of the smart key, and the encryption method is more secure and the operation is more complicated, so the encryption method is adopted in this embodiment.
步骤S204-S210是智能钥匙通过PEPS控制器控制机动车的过程。Steps S204-S210 are the process in which the smart key controls the motor vehicle through the PEPS controller.
S204、当接收到智能钥匙发送的配对信息及控制指令时,将配对信息中的加密秘钥进行解密处理,得到第二秘钥;S204. When receiving the pairing information and the control command sent by the smart key, decrypt the encryption key in the pairing information to obtain the second key;
其中,配对信息中包含该智能钥匙的身份信息及该加密秘钥。Wherein, the pairing information includes the identity information of the smart key and the encryption key.
S205、分别验证配对信息中包含的身份信息和得到的第二秘钥与保存的身份信息和第一秘钥是否匹配;S205. Verify respectively whether the identity information contained in the pairing information and the obtained second secret key match the saved identity information and the first secret key;
分别将配对信息中包含的身份信息与在步骤S201中获取并保存的身份信息进行匹配,将配对信息中包含的加密秘钥进行解密所得到的第二秘钥与步骤S202中生成的第一秘钥进行匹配。respectively matching the identity information contained in the pairing information with the identity information acquired and saved in step S201, and decrypting the encryption key contained in the pairing information to obtain the second key and the first key generated in step S202 key to match.
若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则执行步骤S206;若配对信息中包含的身份信息与保存的身份信息匹配,但第二秘钥与第一秘钥不匹配时,则执行步骤S207。If the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then perform step S206; if the identity information contained in the pairing information matches the saved identity information, but When the second key does not match the first key, step S207 is executed.
S206、控制打开机动车中控制指令指向的对应部件;S206, controlling to open the corresponding components pointed to by the control instruction in the motor vehicle;
其中,打开机动车中控制指令指向的对应部件,可以但不限于包括:打开全部车门的车锁;打开控制指令指向的目标车门的车锁;打开后备箱的车锁;启动汽车的引擎。Wherein, unlocking the corresponding parts pointed to by the control command in the motor vehicle may include, but is not limited to: unlocking the locks of all doors; unlocking the locks of the target doors pointed to by the control command; unlocking the lock of the trunk; starting the engine of the car.
S207、向智能钥匙发送秘钥信息获取请求;S207. Send a secret key information acquisition request to the smart key;
S208、接收智能钥匙根据秘钥信息获取请求发送的第三秘钥,并将第三秘钥与第一秘钥进行匹配;S208. Receive the third secret key sent by the smart key according to the secret key information acquisition request, and match the third secret key with the first secret key;
若第三秘钥与第一秘钥相匹配,则执行步骤S209;若第三秘钥与第一秘钥不匹配,则执行步骤S210。If the third key matches the first key, perform step S209; if the third key does not match the first key, perform step S210.
S209、控制打开机动车中控制指令指向的对应部件;S209, controlling to open the corresponding components pointed to by the control command in the motor vehicle;
S210、执行向智能钥匙发送秘钥信息获取请求的步骤。S210. Execute the step of sending a key information acquisition request to the smart key.
本发明实施例提供的机动车控制方法,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。In the motor vehicle control method provided by the embodiment of the present invention, the identity information of the smart key is obtained and stored by the PEPS controller of the keyless entry and start system, and the first secret key is generated according to the preset secret key generation rules and matched with the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图3,图3为本发明第三实施例提供的机动车控制方法的实现流程示意图,本实施例从执行主体为智能钥匙的角度进行描述,本发明实施例中提供的机动车控制方法包括:Please refer to Fig. 3. Fig. 3 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the third embodiment of the present invention. This embodiment is described from the perspective that the execution subject is a smart key. include:
S301、智能钥匙向无钥匙进入及启动系统PEPS控制器发送智能钥匙的身份信息;S301. The smart key sends the identity information of the smart key to the PEPS controller of the keyless entry and start system;
S302、接收PEPS控制器发送的第二秘钥并保存;S302. Receive and save the second secret key sent by the PEPS controller;
其中,步骤S301及S302是智能钥匙的学习过程,当PEPS控制系统进入智能钥匙的学习状态后,用户将智能钥匙放置在机动车IMMO(发动机防盗锁止系统)线圈处,该PEPS控制器就会与智能钥匙之间进行低频通讯。PEPS控制器会获取并保存智能钥匙的身份信息等重要信息,生成并保存第一秘钥以及与第一秘钥匹配的第二秘钥,并将该第二秘钥写入智能钥匙的预置地址中,可以理解的,此处的第一秘钥和第二秘钥可以是相同的秘钥。这样,在该学习过程结束后,PEPS控制器与智能秘钥之间不管是进行高频通讯还是低频通讯,都会涉及到密钥数据,从而保障了汽车的安全。Among them, steps S301 and S302 are the learning process of the smart key. When the PEPS control system enters the learning state of the smart key, the user places the smart key at the IMMO (immobilizer system) coil of the motor vehicle, and the PEPS controller will Low-frequency communication with the smart key. The PEPS controller will obtain and save important information such as the identity information of the smart key, generate and save the first secret key and the second secret key matching the first secret key, and write the second secret key into the preset key of the smart key In the address, it can be understood that the first secret key and the second secret key here may be the same secret key. In this way, after the learning process is over, no matter whether high-frequency communication or low-frequency communication is performed between the PEPS controller and the smart key, the key data will be involved, thereby ensuring the safety of the car.
S303、当检测到用户触发的控制指令时,向PEPS控制器发送配对信息及控制指令。S303. Send the pairing information and the control instruction to the PEPS controller when the control instruction triggered by the user is detected.
步骤S303是智能钥匙通过PEPS控制器控制机动车的过程。Step S303 is a process in which the smart key controls the motor vehicle through the PEPS controller.
上述用户触发的控制指令的方式,可以是用户按压智能钥匙上的预置按钮,当检测到用户按压智能钥匙上的预置按钮时,即认为智能钥匙检测到用户触发的控制指令;也可以是用户按压PEPS控制器的预置按钮,PEPS控制器向智能钥匙发送触发任务,当智能钥匙接收到该触发任务时,即认为智能钥匙检测到用户触发的控制指令。The method of the control command triggered by the above-mentioned user can be that the user presses the preset button on the smart key, and when it is detected that the user presses the preset button on the smart key, it is considered that the smart key has detected the control command triggered by the user; it can also be The user presses the preset button of the PEPS controller, and the PEPS controller sends a trigger task to the smart key. When the smart key receives the trigger task, it is considered that the smart key has detected the control command triggered by the user.
配对信息中包含智能钥匙的身份信息及第二秘钥,PEPS控制器根据配对信息,控制打开机动车中控制指令指向的对应部件。The pairing information includes the identity information of the smart key and the second secret key, and the PEPS controller controls to open the corresponding components pointed to by the control command in the motor vehicle according to the pairing information.
其中,打开机动车中控制指令指向的对应部件,可以但不限于包括:打开全部车门的车锁;打开控制指令指向的目标车门的车锁;打开后备箱的车锁;启动汽车的引擎。Wherein, unlocking the corresponding parts pointed to by the control command in the motor vehicle may include, but is not limited to: unlocking the locks of all doors; unlocking the locks of the target doors pointed to by the control command; unlocking the lock of the trunk; starting the engine of the car.
本发明实施例提供的机动车控制方法,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。In the motor vehicle control method provided by the embodiment of the present invention, the identity information of the smart key is obtained and stored by the PEPS controller of the keyless entry and start system, and the first secret key is generated according to the preset secret key generation rules and matched with the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图4,图4为本发明第四实施例提供的机动车控制方法的实现流程示意图,本实施例仍从执行主体为智能钥匙的角度进行描述,本发明实施例中提供的机动车控制方法包括:Please refer to Fig. 4. Fig. 4 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the fourth embodiment of the present invention. This embodiment is still described from the perspective that the execution subject is a smart key. Methods include:
S401、智能钥匙向无钥匙进入及启动系统PEPS控制器发送智能钥匙的身份信息;S401. The smart key sends the identity information of the smart key to the PEPS controller of the keyless entry and start system;
S402、接收PEPS控制器发送的第二秘钥并保存在多个预置地址中;S402. Receive the second secret key sent by the PEPS controller and store it in multiple preset addresses;
其中,步骤S401及S402是智能钥匙的学习过程,当PEPS控制系统进入智能钥匙的学习状态后,用户将智能钥匙放置在机动车IMMO(发动机防盗锁止系统)线圈处,该PEPS控制器就会与智能钥匙之间进行低频通讯。PEPS控制器会获取并保存智能钥匙的身份信息等重要信息,生成并保存第一秘钥以及与第一秘钥匹配的第二秘钥,并将该第二秘钥写入智能钥匙的多个预置地址中,可以理解的,此处的第一秘钥和第二秘钥可以是相同的秘钥。这样,在该学习过程结束后,PEPS控制器与智能秘钥之间不管是进行高频通讯还是低频通讯,都会涉及到密钥数据,从而保障了汽车的安全。Among them, steps S401 and S402 are the learning process of the smart key. When the PEPS control system enters the learning state of the smart key, the user places the smart key at the coil of the IMMO (immobilizer system) of the motor vehicle, and the PEPS controller will Low-frequency communication with the smart key. The PEPS controller will obtain and save important information such as the identity information of the smart key, generate and save the first secret key and the second secret key matching the first secret key, and write the second secret key into the multiple keys of the smart key. In the preset address, it can be understood that the first secret key and the second secret key here may be the same secret key. In this way, after the learning process is over, no matter whether high-frequency communication or low-frequency communication is performed between the PEPS controller and the smart key, the key data will be involved, thereby ensuring the safety of the car.
S403、当检测到用户触发的控制指令时,根据秘钥获取顺序规则,从多个预置地址中确定第一地址,读取保存在第一地址中的第二秘钥,生成包含第一地址中的第二秘钥及身份信息的配对信息;S403. When a control command triggered by the user is detected, determine the first address from a plurality of preset addresses according to the key acquisition sequence rules, read the second key stored in the first address, and generate a key containing the first address. The pairing information of the second secret key and identity information in ;
步骤S403、S404及S405是智能钥匙通过PEPS控制器控制机动车的过程。Steps S403, S404 and S405 are the process of the smart key controlling the motor vehicle through the PEPS controller.
上述用户触发的控制指令的方式,可以是用户按压智能钥匙上的预置按钮,当检测到用户按压智能钥匙上的预置按钮时,即认为智能钥匙检测到用户触发的控制指令;也可以是用户按压PEPS控制器的预置按钮,PEPS控制器向智能钥匙发送触发任务,当智能钥匙接收到该触发任务时,即认为智能钥匙检测到用户触发的控制指令。The method of the control command triggered by the above-mentioned user can be that the user presses the preset button on the smart key, and when it is detected that the user presses the preset button on the smart key, it is considered that the smart key has detected the control command triggered by the user; it can also be The user presses the preset button of the PEPS controller, and the PEPS controller sends a trigger task to the smart key. When the smart key receives the trigger task, it is considered that the smart key has detected the control command triggered by the user.
在本实施例中,智能钥匙会将接收到的第二密钥的数据包保存在E2PROM(Electrically Erasable Programmable Read-Only Memory,带电可擦可编程只读存储器)或FLASH(Flash Memory,闪存)等非易失的存储器中,每条第二密钥的数据包可以保存在固定地址的存储器中,并且要多地址保存。In this embodiment, the smart key will save the received data packet of the second key in E2PROM (Electrically Erasable Programmable Read-Only Memory) or FLASH (Flash Memory, flash memory) etc. In the non-volatile memory, each data packet of the second key can be stored in a memory with a fixed address, and should be stored in multiple addresses.
S404、向PEPS控制器发送配对信息及控制指令;S404. Send pairing information and a control instruction to the PEPS controller;
其中,配对信息中包含该智能钥匙的身份信息及该加密秘钥。Wherein, the pairing information includes the identity information of the smart key and the encryption key.
S405、当接收到PEPS控制器发送的秘钥信息获取请求时,根据秘钥获取顺序规则,从多个预置地址中的未读取过所述第二密钥的剩余地址中确定第二地址,读取第二地址中的第二秘钥,作为第三秘钥,并向PEPS控制器发送第三秘钥。S405. When receiving the key information acquisition request sent by the PEPS controller, according to the key acquisition sequence rule, determine the second address from the remaining addresses that have not read the second key among the multiple preset addresses , read the second secret key in the second address as the third secret key, and send the third secret key to the PEPS controller.
每组智能钥匙发送给PEPS控制器的数据包,都包含CRC16的校验值。在PEPS控制器对数据进行验证时,PEPS控制器除了验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,还要将相关数据进行计算,检测计算结果是否与该数据包中的校验值一致,如果不一致,则也会认为匹配失败,当满足预置条件时,PEPS控制器会向智能钥匙发送秘钥信息获取请求,智能钥匙需要根据预置的秘钥获取顺序规则,从多个预置地址中的未读取过第二密钥的剩余地址中,读取第二秘钥的数据包,并发送给PEPS控制器,重复上述匹配的动作,直至PEPS控制器验证通过。如果匹配失败的次数达到预置次数,则要提示错误。The data packet sent by each group of smart keys to the PEPS controller contains the check value of CRC16. When the PEPS controller verifies the data, in addition to verifying whether the identity information and the second secret key contained in the pairing information match the saved identity information and the first secret key, the PEPS controller also calculates the relevant data, detects and calculates Whether the result is consistent with the check value in the data packet, if not, it will also be considered a match failure, when the preset conditions are met, the PEPS controller will send a request for obtaining the secret key information to the smart key, and the smart key needs to According to the sequence rules for obtaining the secret key, read the data packet of the second secret key from the remaining addresses that have not read the second key among the multiple preset addresses, and send it to the PEPS controller, and repeat the above matching action , until the PEPS controller passes the verification. If the number of matching failures reaches the preset number of times, an error will be prompted.
本发明实施例提供的机动车控制方法,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。In the motor vehicle control method provided by the embodiment of the present invention, the identity information of the smart key is obtained and stored by the PEPS controller of the keyless entry and start system, and the first secret key is generated according to the preset secret key generation rules and matched with the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图5,图5为本发明第五实施例提供的机动车控制方法的实现流程示意图,本实施例从无钥匙进入及启动系统PEPS控制器与智能钥匙交互的角度进行描述,本发明实施例中提供的机动车控制方法包括:Please refer to Fig. 5. Fig. 5 is a schematic diagram of the implementation flow of the motor vehicle control method provided by the fifth embodiment of the present invention. This embodiment is described from the perspective of interaction between the PEPS controller of the keyless entry and start system and the smart key. The motor vehicle control method provided in the example includes:
S501、发送智能钥匙的身份信息;S501. Send the identity information of the smart key;
智能钥匙向无钥匙进入及启动系统PEPS控制器发送智能钥匙的身份信息。The smart key sends the identity information of the smart key to the PEPS controller of the keyless entry and start system.
S502、接收智能钥匙的身份信息并保存;S502. Receive and save the identity information of the smart key;
无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存。The keyless entry and start system PEPS controller obtains and saves the identity information of the smart key.
S503、生成第一秘钥以及与第一秘钥匹配的第二秘钥;S503. Generate a first secret key and a second secret key matching the first secret key;
S504、将第二秘钥发送给智能钥匙;S504. Send the second secret key to the smart key;
PEPS控制器按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙。The PEPS controller generates a first secret key and a second secret key matching the first secret key according to a preset secret key generation rule, and sends the second secret key to the smart key.
S505、接收第二秘钥并保存;S505. Receive and save the second secret key;
智能钥匙接收PEPS控制器发送的第二秘钥并保存。The smart key receives and saves the second secret key sent by the PEPS controller.
步骤S501-S505是智能钥匙的学习过程,当PEPS控制系统进入智能钥匙的学习状态后,用户将智能钥匙放置在机动车IMMO(发动机防盗锁止系统)线圈处,该PEPS控制器就会与智能钥匙之间进行低频通讯。PEPS控制器会获取并保存智能钥匙的身份信息等重要信息,生成并保存第一秘钥以及与第一秘钥匹配的第二秘钥,并将该第二秘钥写入智能钥匙相应的存储器中,可以理解的,此处的第一秘钥和第二秘钥可以是相同的秘钥。这样,在该学习过程结束后,PEPS控制器与智能秘钥之间不管是进行高频通讯还是低频通讯,都会涉及到密钥数据,从而保障了汽车的安全。Steps S501-S505 are the learning process of the smart key. When the PEPS control system enters the learning state of the smart key, the user places the smart key at the coil of the IMMO (immobilizer system) of the motor vehicle, and the PEPS controller will communicate with the smart key. Low frequency communication between keys. The PEPS controller will obtain and save important information such as the identity information of the smart key, generate and save the first secret key and the second secret key matching the first secret key, and write the second secret key into the corresponding memory of the smart key , it can be understood that the first secret key and the second secret key here may be the same secret key. In this way, after the learning process is over, no matter whether high-frequency communication or low-frequency communication is performed between the PEPS controller and the smart key, the key data will be involved, thereby ensuring the safety of the car.
PEPS控制器生成第一秘钥以及与第一秘钥匹配的第二秘钥,具体包括:调用第一预置次数的C语言函数,生成第一预置位数的随机数,将该第一预置位数的随机数作为第一秘钥;调用第二预置次数的C语言函数,生成第二预置位数的随机数,将第二预置位数的随机数作为第二秘钥。The PEPS controller generates the first secret key and the second secret key matching the first secret key, which specifically includes: calling the C language function for the first preset number of times, generating a random number with the first preset number of digits, and using the first The random number of the preset number of digits is used as the first secret key; the C language function of the second preset number of times is called to generate the random number of the second preset number of digits, and the random number of the second preset number of digits is used as the second secret key .
在本实施例中,密钥不是个固定的值,要是随机值,因此通过调用C语言的函数来生成秘钥,在C语言中,函数srand()就是给rand()提供种子的,如果srand每次输入的参数是一样的,那么每次运行产生的随机数也是一样的;如果srand每次输入的参数不一样,那么每次运行产生的随机数也不一样。选择定时器的毫秒值作为函数srand()的参数,这样每次调用rand(),所生成的随机数就是变化的。产生随机数的函数的C代码如下所示:In this embodiment, the key is not a fixed value, but a random value, so the secret key is generated by calling a function in C language. In C language, the function srand() provides seeds for rand(). If srand If the input parameters are the same each time, the random numbers generated by each run are also the same; if the parameters input by srand are different each time, then the random numbers generated by each run are also different. The millisecond value of the timer is selected as the parameter of the function srand(), so that each time rand() is called, the generated random number changes. The C code for the function that generates random numbers is as follows:
unsigned int Create_random(void)unsigned int Create_random(void)
{{
unsigned int uiRandSeed=Get_mSecond_value();//采集定时器的毫秒值unsigned int uiRandSeed=Get_mSecond_value();//collect the millisecond value of the timer
srand(uiRandSeed);srand(uiRandSeed);
return(rand());return(rand());
}}
该代码每次运行,能产生一个16位的随机数。若需要生成128位数的随机数作为第一秘钥,则需要连续调用8次上述函数即可得到。Each time the code runs, it generates a 16-bit random number. If you need to generate a 128-digit random number as the first secret key, you need to call the above function 8 times in a row to get it.
当PEPS控制系统进入智能钥匙的学习状态后,PEPS控制器和智能钥匙之间通过低频(LF)方式进行通讯,频率在120K-140K之间,有效通讯距离在10CM以内。通过相关的通讯协议,可以直接通过明码的方式将第二密钥写入到智能钥匙相应的存储器中,也可以通过Hash编码的方式,对第二秘钥进行加密,以非明码的方式将第二密钥写入到智能钥匙相应的存储器中,采用加密的方式安全性更高,操作也更复杂。When the PEPS control system enters the learning state of the smart key, the PEPS controller and the smart key communicate through low frequency (LF), the frequency is between 120K-140K, and the effective communication distance is within 10CM. Through the relevant communication protocol, the second key can be directly written into the corresponding memory of the smart key in a clear way, or the second secret key can be encrypted by Hash coding, and the second key can be written in a non-clear way. The second key is written into the corresponding memory of the smart key, and the encryption method is more secure and the operation is more complicated.
S506、发送配对信息及控制指令;S506. Send pairing information and control instructions;
当检测到用户触发的控制指令时,智能钥匙向PEPS控制器发送配对信息及控制指令。When a control command triggered by the user is detected, the smart key sends pairing information and control commands to the PEPS controller.
上述用户触发的控制指令的方式,可以是用户按压智能钥匙上的预置按钮,当检测到用户按压智能钥匙上的预置按钮时,即认为智能钥匙检测到用户触发的控制指令;也可以是用户按压PEPS控制器的预置按钮,PEPS控制器向智能钥匙发送触发任务,当智能钥匙接收到该触发任务时,即认为智能钥匙检测到用户触发的控制指令。The method of the control command triggered by the above-mentioned user can be that the user presses the preset button on the smart key, and when it is detected that the user presses the preset button on the smart key, it is considered that the smart key has detected the control command triggered by the user; it can also be The user presses the preset button of the PEPS controller, and the PEPS controller sends a trigger task to the smart key. When the smart key receives the trigger task, it is considered that the smart key has detected the control command triggered by the user.
S507、分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配;S507. Verify respectively whether the identity information and the second secret key included in the pairing information match the saved identity information and the first secret key;
当接收到智能钥匙发送的配对信息及控制指令时,PEPS控制器分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配。When receiving the pairing information and the control instruction sent by the smart key, the PEPS controller respectively verifies whether the identity information and the second secret key contained in the pairing information match the saved identity information and the first secret key.
S508、控制打开机动车中控制指令指向的对应部件。S508. Control to open the corresponding component pointed to by the control command in the motor vehicle.
若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,PEPS控制器控制打开机动车中控制指令指向的对应部件。If the identity information included in the pairing information matches the saved identity information, and the second secret key matches the first secret key, the PEPS controller controls to open the corresponding component pointed to by the control instruction in the motor vehicle.
其中,打开机动车中控制指令指向的对应部件,可以但不限于包括:打开全部车门的车锁;打开控制指令指向的目标车门的车锁;打开后备箱的车锁;启动汽车的引擎。Wherein, unlocking the corresponding parts pointed to by the control command in the motor vehicle may include, but is not limited to: unlocking the locks of all doors; unlocking the locks of the target doors pointed to by the control command; unlocking the lock of the trunk; starting the engine of the car.
本发明实施例提供的机动车控制方法,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。In the motor vehicle control method provided by the embodiment of the present invention, the identity information of the smart key is obtained and stored by the PEPS controller of the keyless entry and start system, and the first secret key is generated according to the preset secret key generation rules and matched with the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图6,图6是本发明第六实施例提供的机动车控制装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图6示例的机动车控制装置可以是前述第一实施例提供的机动车控制方法的执行主体,如无钥匙进入及启动系统PEPS控制器或无钥匙进入及启动系统PEPS控制器中的一个模块。图6示例的机动车控制装置,主要包括:获取模块601、生成模块602、控制器发送模块603、匹配模块604以及控制模块605。各功能模块详细说明如下:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of a motor vehicle control device provided by a sixth embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The motor vehicle control device illustrated in FIG. 6 may be the execution subject of the motor vehicle control method provided in the aforementioned first embodiment, such as the PEPS controller of the keyless entry and start system or a module of the PEPS controller of the keyless entry and start system. The motor vehicle control device illustrated in FIG. 6 mainly includes: an acquisition module 601 , a generation module 602 , a controller sending module 603 , a matching module 604 and a control module 605 . The detailed description of each functional module is as follows:
获取模块601,用于获取智能钥匙的身份信息并保存。An acquisition module 601, configured to acquire and save the identity information of the smart key.
生成模块602,用于按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥。A generation module 602, configured to generate a first key and a second key matching the first key according to a preset key generation rule.
控制器发送模块603,用于将第二秘钥发送给智能钥匙。The controller sending module 603, configured to send the second secret key to the smart key.
匹配模块604,用于当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配。The matching module 604 is configured to verify whether the identity information and the second secret key included in the pairing information match the saved identity information and the first secret key when receiving the pairing information and the control instruction sent by the smart key.
控制模块605,用于若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件。The control module 605 is configured to control to open the corresponding component pointed to by the control instruction in the motor vehicle if the identity information included in the pairing information matches the saved identity information, and the second key matches the first key.
上述各模块实现其各自功能的具体过程,可参考上述第一实施例提供的机动车控制方法的相关内容,此处不再赘述。For the specific process of each of the above-mentioned modules realizing their respective functions, reference may be made to the relevant content of the motor vehicle control method provided in the above-mentioned first embodiment, which will not be repeated here.
本发明实施例提供的机动车控制装置,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。The motor vehicle control device provided by the embodiment of the present invention obtains and saves the identity information of the smart key through the PEPS controller of the keyless entry and start system, generates the first secret key according to the preset secret key generation rules and matches the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图7,图7是本发明第七实施例提供的机动车控制装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图7示例的机动车控制装置可以是前述第二实施例提供的机动车控制方法的执行主体,如无钥匙进入及启动系统PEPS控制器或无钥匙进入及启动系统PEPS控制器中的一个模块。图7示例的机动车控制装置,主要包括:获取模块701、生成模块702、加密模块703、控制器发送模块704、解密模块705、匹配模块706以及控制模块707。各功能模块详细说明如下:Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of a motor vehicle control device provided by a seventh embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The motor vehicle control device illustrated in FIG. 7 may be the execution subject of the motor vehicle control method provided in the aforementioned second embodiment, such as the PEPS controller of the keyless entry and start system or a module of the PEPS controller of the keyless entry and start system. The motor vehicle control device illustrated in FIG. 7 mainly includes: an acquisition module 701 , a generation module 702 , an encryption module 703 , a controller sending module 704 , a decryption module 705 , a matching module 706 and a control module 707 . The detailed description of each functional module is as follows:
获取模块701,用于获取智能钥匙的身份信息并保存。An acquisition module 701, configured to acquire and save the identity information of the smart key.
生成模块702,用于按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥。A generation module 702, configured to generate a first key and a second key matching the first key according to a preset key generation rule.
加密模块703,用于对第二秘钥进行加密处理,得到加密秘钥。The encryption module 703 is configured to perform encryption processing on the second key to obtain the encryption key.
控制器发送模块704,用于将该加密秘钥发送给智能钥匙。The controller sending module 704, configured to send the encryption key to the smart key.
解密模块705,用于当接收到智能钥匙发送的配对信息及控制指令时,将配对信息中的加密秘钥进行解密处理,得到第二秘钥。The decryption module 705 is configured to decrypt the encryption key in the pairing information to obtain the second key when receiving the pairing information and the control instruction sent by the smart key.
匹配模块706,用于分别验证配对信息中包含的身份信息和得到的第二秘钥与保存的身份信息和第一秘钥是否匹配。The matching module 706 is configured to respectively verify whether the identity information contained in the pairing information and the obtained second key match the saved identity information and the first key.
控制模块707,用于若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件。The control module 707 is configured to control to open the corresponding component pointed to by the control instruction in the motor vehicle if the identity information included in the pairing information matches the saved identity information, and the second key matches the first key.
控制器发送模块704,还用于若配对信息中包含的身份信息与保存的身份信息匹配,但第二秘钥与第一秘钥不匹配时,则向智能钥匙发送秘钥信息获取请求。The controller sending module 704 is further configured to send a key information acquisition request to the smart key if the identity information contained in the pairing information matches the saved identity information, but the second key does not match the first key.
匹配模块706,还用于接收智能钥匙根据秘钥信息获取请求发送的第三秘钥,并将第三秘钥与第一秘钥进行匹配。The matching module 706 is further configured to receive the third key sent by the smart key according to the key information acquisition request, and match the third key with the first key.
控制模块707,还用于若第三秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件。The control module 707 is further configured to, if the third key matches the first key, control to open the corresponding component in the motor vehicle to which the control command points.
控制器发送模块704,还用于若第三秘钥与第一秘钥不匹配,则向智能钥匙发送秘钥信息获取请求。The controller sending module 704 is further configured to send a key information acquisition request to the smart key if the third key does not match the first key.
上述各模块实现其各自功能的具体过程,可参考上述第二实施例提供的机动车控制方法的相关内容,此处不再赘述。For the specific process of each of the above-mentioned modules realizing their respective functions, reference may be made to the related content of the motor vehicle control method provided by the above-mentioned second embodiment, which will not be repeated here.
本发明实施例提供的机动车控制装置,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。The motor vehicle control device provided by the embodiment of the present invention obtains and saves the identity information of the smart key through the PEPS controller of the keyless entry and start system, generates the first secret key according to the preset secret key generation rules and matches the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图8,图8是本发明第八实施例提供的机动车控制装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图8示例的机动车控制装置可以是前述第三实施例提供的机动车控制方法的执行主体,如智能钥匙或智能钥匙中的一个模块。图8示例的机动车控制装置,主要包括:钥匙发送模块801以及保存模块802。各功能模块详细说明如下:Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of a motor vehicle control device provided by an eighth embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown. The motor vehicle control device illustrated in FIG. 8 may be the execution subject of the motor vehicle control method provided in the aforementioned third embodiment, such as a smart key or a module in the smart key. The motor vehicle control device illustrated in FIG. 8 mainly includes: a key sending module 801 and a saving module 802 . The detailed description of each functional module is as follows:
钥匙发送模块801,用于向无钥匙进入及启动系统PEPS控制器发送智能钥匙的身份信息。The key sending module 801 is configured to send the identity information of the smart key to the PEPS controller of the keyless entry and start system.
保存模块802,用于接收PEPS控制器发送的第二秘钥并保存。A saving module 802, configured to receive and save the second secret key sent by the PEPS controller.
钥匙发送模块801,还用于当检测到用户触发的控制指令时,向PEPS控制器发送配对信息及控制指令。The key sending module 801 is also configured to send pairing information and control instructions to the PEPS controller when a control instruction triggered by the user is detected.
上述各模块实现其各自功能的具体过程,可参考上述第三实施例提供的机动车控制方法的相关内容,此处不再赘述。For the specific process of each of the above-mentioned modules realizing their respective functions, reference may be made to the related content of the motor vehicle control method provided by the above-mentioned third embodiment, which will not be repeated here.
本发明实施例提供的机动车控制装置,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。The motor vehicle control device provided by the embodiment of the present invention obtains and saves the identity information of the smart key through the PEPS controller of the keyless entry and start system, generates the first secret key according to the preset secret key generation rules and matches the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图9,图9是本发明第九实施例提供的机动车控制装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图9示例的机动车控制装置可以是前述第四实施例提供的机动车控制方法的执行主体,如智能钥匙或智能钥匙中的一个模块。图9示例的机动车控制装置,主要包括:钥匙发送模块901、保存模块902、确定模块903、生成模块904以及读取模块905。各功能模块详细说明如下:Please refer to FIG. 9 . FIG. 9 is a schematic structural diagram of a motor vehicle control device provided by a ninth embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The motor vehicle control device illustrated in FIG. 9 may be the execution subject of the motor vehicle control method provided in the fourth embodiment, such as a smart key or a module in the smart key. The motor vehicle control device illustrated in FIG. 9 mainly includes: a key sending module 901 , a saving module 902 , a determining module 903 , a generating module 904 and a reading module 905 . The detailed description of each functional module is as follows:
钥匙发送模块901,用于向无钥匙进入及启动系统PEPS控制器发送智能钥匙的身份信息。The key sending module 901 is configured to send the identity information of the smart key to the PEPS controller of the keyless entry and start system.
保存模块902,用于接收PEPS控制器发送的第二秘钥并保存在多个预置地址中。The storage module 902 is configured to receive the second secret key sent by the PEPS controller and store it in multiple preset addresses.
确定模块903,用于当检测到用户触发的控制指令时,根据秘钥获取顺序规则,从多个预置地址中确定第一地址。The determination module 903 is configured to determine the first address from multiple preset addresses according to the key acquisition sequence rule when a control instruction triggered by the user is detected.
生成模块904,用于读取保存在第一地址中的第二秘钥,生成包含第一地址中的第二秘钥及身份信息的配对信息。The generating module 904 is configured to read the second secret key stored in the first address, and generate pairing information including the second secret key and identity information in the first address.
钥匙发送模块901,还用于向PEPS控制器发送配对信息及控制指令。The key sending module 901 is also used to send pairing information and control instructions to the PEPS controller.
确定模块903,还用于当接收到PEPS控制器发送的秘钥信息获取请求时,根据秘钥获取顺序规则,从多个预置地址中的未读取过所述第二密钥的剩余地址中确定第二地址。The determination module 903 is further configured to, when receiving the key information acquisition request sent by the PEPS controller, according to the key acquisition sequence rule, from the remaining addresses that have not read the second key among the plurality of preset addresses Determine the second address in .
读取模块905,用于读取第二地址中的第二秘钥,作为第三秘钥。The reading module 905 is configured to read the second secret key in the second address as the third secret key.
钥匙发送模块901,还用于向PEPS控制器发送第三秘钥。The key sending module 901 is also configured to send the third secret key to the PEPS controller.
上述各模块实现其各自功能的具体过程,可参考上述第四实施例提供的机动车控制方法的相关内容,此处不再赘述。For the specific process of each of the above-mentioned modules realizing their respective functions, reference may be made to the relevant content of the motor vehicle control method provided by the fourth embodiment above, and details will not be repeated here.
本发明实施例提供的机动车控制装置,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。The motor vehicle control device provided by the embodiment of the present invention obtains and saves the identity information of the smart key through the PEPS controller of the keyless entry and start system, generates the first secret key according to the preset secret key generation rules and matches the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
请参阅图10,图10是本发明第十实施例提供的机动车控制系统的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图10示例的机动车控制装置可以是前述第五实施例提供的机动车控制方法的执行主体。图10示例的机动车控制装置,主要包括:智能钥匙1001以及无钥匙进入及启动系统PEPS控制器1002。各功能模块详细说明如下:Please refer to FIG. 10 . FIG. 10 is a schematic structural diagram of a motor vehicle control system provided by a tenth embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown. The motor vehicle control device illustrated in FIG. 10 may be the subject of execution of the motor vehicle control method provided in the aforementioned fifth embodiment. The motor vehicle control device illustrated in FIG. 10 mainly includes: a smart key 1001 and a keyless entry and start system PEPS controller 1002 . The detailed description of each functional module is as follows:
智能钥匙1001,向无钥匙进入及启动系统PEPS控制器1002发送智能钥匙1001的身份信息;The smart key 1001 sends the identity information of the smart key 1001 to the PEPS controller 1002 of the keyless entry and start system;
无钥匙进入及启动系统PEPS控制器1002,接收智能钥匙1001的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙1001;The PEPS controller 1002 of the keyless entry and start system receives and saves the identity information of the smart key 1001, generates the first secret key and the second secret key matching the first secret key according to the preset secret key generation rules, and sends the second key The second secret key is sent to the smart key 1001;
智能钥匙1001,接收PEPS控制器1002发送的第二秘钥并保存,当检测到用户触发的控制指令时,向PEPS控制器1002发送配对信息及控制指令;The smart key 1001 receives and saves the second secret key sent by the PEPS controller 1002, and sends pairing information and control instructions to the PEPS controller 1002 when a control command triggered by the user is detected;
当接收到所述智能钥匙发送的配对信息及控制指令时,PEPS控制器1002分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件。When receiving the pairing information and control instructions sent by the smart key, the PEPS controller 1002 respectively verifies whether the identity information and the second secret key included in the pairing information match the saved identity information and the first secret key, if the pairing information The identity information contained in the key matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding part pointed to by the control instruction in the motor vehicle.
上述各模块实现其各自功能的具体过程,可参考上述第五实施例提供的机动车控制方法的相关内容,此处不再赘述。For the specific process of each of the above-mentioned modules realizing their respective functions, reference may be made to the related content of the motor vehicle control method provided by the fifth embodiment above, and details will not be repeated here.
本发明实施例提供的机动车控制系统,通过无钥匙进入及启动系统PEPS控制器获取智能钥匙的身份信息并保存,按照预置的秘钥生成规则生成第一秘钥以及与第一秘钥匹配的第二秘钥,并将第二秘钥发送给智能钥匙,当接收到智能钥匙发送的配对信息及控制指令时,分别验证配对信息中包含的身份信息和第二秘钥与保存的身份信息和第一秘钥是否匹配,若配对信息中包含的身份信息与保存的身份信息相匹配,且第二秘钥与第一秘钥相匹配,则控制打开机动车中控制指令指向的对应部件,相较于现有技术,本发明在用户使用智能钥匙控制无钥匙进入及启动系统PEPS控制器打开机动车中控制指令指向的对应部件的过程中,需要同时验证秘钥及该智能钥匙的身份信息,提高了PEPS系统的安全性,提高了产品粘性。The motor vehicle control system provided by the embodiment of the present invention obtains and saves the identity information of the smart key through the PEPS controller of the keyless entry and start system, generates the first secret key according to the preset secret key generation rules and matches the first secret key The second secret key, and send the second secret key to the smart key, when receiving the pairing information and control instructions sent by the smart key, verify the identity information contained in the pairing information and the second secret key and the stored identity information Whether it matches the first secret key, if the identity information contained in the pairing information matches the saved identity information, and the second secret key matches the first secret key, then control to open the corresponding component pointed to by the control command in the motor vehicle, Compared with the prior art, the present invention needs to simultaneously verify the secret key and the identity information of the smart key when the user uses the smart key to control the PEPS controller of the keyless entry and start system to open the corresponding components pointed to by the control command in the motor vehicle , which improves the safety of the PEPS system and improves the product viscosity.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
以上为对本发明所提供的机动车控制方法、装置的描述,对于本领域的技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is the description of the motor vehicle control method and device provided by the present invention. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application range. In summary, this The content of the description should not be construed as limiting the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610940820.8A CN106476754B (en) | 2016-11-01 | 2016-11-01 | A kind of motor vehicle control method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610940820.8A CN106476754B (en) | 2016-11-01 | 2016-11-01 | A kind of motor vehicle control method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106476754A CN106476754A (en) | 2017-03-08 |
| CN106476754B true CN106476754B (en) | 2019-09-10 |
Family
ID=58272960
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610940820.8A Active CN106476754B (en) | 2016-11-01 | 2016-11-01 | A kind of motor vehicle control method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106476754B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107933499B (en) * | 2017-11-15 | 2020-11-06 | 上海科世达-华阳汽车电器有限公司 | PEPS system-based key ID verification method and related device |
| CN109849937A (en) * | 2019-03-26 | 2019-06-07 | 深圳市元征科技股份有限公司 | A kind of vehicle device accumulator charging control method and relevant device |
| CN111762126A (en) * | 2019-03-30 | 2020-10-13 | 长城汽车股份有限公司 | Vehicle intelligent key management method and vehicle control unit |
| CN112785753B (en) * | 2019-11-11 | 2023-06-06 | 合肥师范学院 | GPS-based automobile access control system and attack prevention method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003178032A (en) * | 2001-08-08 | 2003-06-27 | Omron Corp | Authentication apparatus and method therefor, and person registering method |
| CN101627173A (en) * | 2007-03-13 | 2010-01-13 | 本田技研工业株式会社 | Vehicle anti-theft system |
| CN101624884A (en) * | 2009-07-31 | 2010-01-13 | 王成全 | Control method of wireless remote-control lock system |
| CN105313837A (en) * | 2015-09-25 | 2016-02-10 | 广州汽车集团股份有限公司 | Intelligent key matching method and system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6891467B2 (en) * | 2003-04-29 | 2005-05-10 | Visteon Global Technologies, Inc. | Multistage vehicle security system |
-
2016
- 2016-11-01 CN CN201610940820.8A patent/CN106476754B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003178032A (en) * | 2001-08-08 | 2003-06-27 | Omron Corp | Authentication apparatus and method therefor, and person registering method |
| CN101627173A (en) * | 2007-03-13 | 2010-01-13 | 本田技研工业株式会社 | Vehicle anti-theft system |
| CN101624884A (en) * | 2009-07-31 | 2010-01-13 | 王成全 | Control method of wireless remote-control lock system |
| CN105313837A (en) * | 2015-09-25 | 2016-02-10 | 广州汽车集团股份有限公司 | Intelligent key matching method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106476754A (en) | 2017-03-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11356265B2 (en) | Secure communication between a vehicle and a remote device | |
| CN108122311B (en) | Vehicle virtual key implementation method and system | |
| CN105447928B (en) | Access control method and control system | |
| US11405221B2 (en) | Retention and revocation of operation keys by a control unit | |
| CN106476754B (en) | A kind of motor vehicle control method and device | |
| US10618497B2 (en) | Unlocking control system and unlocking control method | |
| CN112396735B (en) | Internet automobile digital key safety authentication method and device | |
| US11128474B2 (en) | Secure device communication | |
| JP2015080111A (en) | Electronic key system, on-vehicle device, and portable device | |
| JP6441615B2 (en) | Electronic key system | |
| US20170353315A1 (en) | Secure electronic entity, electronic apparatus and method for verifying the integrity of data stored in such a secure electronic entity | |
| CN111508110A (en) | Method and device for realizing remote locking of vehicle | |
| CN113382409B (en) | Vehicle Bluetooth key distribution method, device, medium and equipment | |
| CN104527576A (en) | WIFI (Wireless Fidelity) type automobile starting control method and mobile terminal | |
| CN104554143A (en) | Car starting control method and mobile terminal | |
| CN112954654A (en) | Vehicle NFC key registration method, computer device and storage medium | |
| CN112455386B (en) | Automobile anti-theft system and method | |
| JP2015151039A (en) | key information registration system | |
| Gade et al. | Pakamac: A PUF-based keyless automotive entry system with mutual authentication | |
| US20060064587A1 (en) | User activated authentication system | |
| CN114582048A (en) | NFC-based vehicle door control method, mobile terminal and vehicle | |
| JP6850314B2 (en) | User authentication device and user authentication method | |
| JP2020004044A (en) | Authentication system and authentication method | |
| JP6212437B2 (en) | Electronic key system | |
| US11728985B2 (en) | Fault tolerant provisioning verification for cryptographic keys |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: 518000 District B6, A2, T2, high tech Industrial Zone, Nanshan District high tech Zone, Guangdong, China, Shenzhen Applicant after: SHENZHEN SAIGE CHESHENG TECHNOLOGY CO.,LTD. Address before: 518000 District B6, A2, T2, high tech Industrial Zone, Nanshan District high tech Zone, Guangdong, China, Shenzhen Applicant before: SHENZHEN KINGDOM AUTO ELECTRONIC LTD. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A motor vehicle control method and device Effective date of registration: 20210310 Granted publication date: 20190910 Pledgee: Bank of Jiangsu Limited by Share Ltd. Shenzhen branch Pledgor: SHENZHEN SAIGE CHESHENG TECHNOLOGY Co.,Ltd. Registration number: Y2021980001568 |
|
| PC01 | Cancellation of the registration of the contract for pledge of patent right | ||
| PC01 | Cancellation of the registration of the contract for pledge of patent right |
Date of cancellation: 20220322 Granted publication date: 20190910 Pledgee: Bank of Jiangsu Limited by Share Ltd. Shenzhen branch Pledgor: SHENZHEN SAIGE CHESHENG TECHNOLOGY CO.,LTD. Registration number: Y2021980001568 |
|
| PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A motor vehicle control method and device Effective date of registration: 20220325 Granted publication date: 20190910 Pledgee: Bank of Jiangsu Limited by Share Ltd. Shenzhen branch Pledgor: SHENZHEN SAIGE CHESHENG TECHNOLOGY CO.,LTD. Registration number: Y2022440020031 |
|
| PC01 | Cancellation of the registration of the contract for pledge of patent right | ||
| PC01 | Cancellation of the registration of the contract for pledge of patent right |
Granted publication date: 20190910 Pledgee: Bank of Jiangsu Limited by Share Ltd. Shenzhen branch Pledgor: SHENZHEN SAIGE CHESHENG TECHNOLOGY CO.,LTD. Registration number: Y2022440020031 |