[go: up one dir, main page]

CN111402464A - Updating vehicle electronic key method, device and system - Google Patents

Updating vehicle electronic key method, device and system Download PDF

Info

Publication number
CN111402464A
CN111402464A CN202010200423.3A CN202010200423A CN111402464A CN 111402464 A CN111402464 A CN 111402464A CN 202010200423 A CN202010200423 A CN 202010200423A CN 111402464 A CN111402464 A CN 111402464A
Authority
CN
China
Prior art keywords
vehicle
key
mobile terminal
updating
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010200423.3A
Other languages
Chinese (zh)
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.)
Shanghai Kostal Huayang Automotive Electric Co Ltd
Kostal Shanghai Mechatronic Co Ltd
Original Assignee
Shanghai Kostal Huayang Automotive Electric Co Ltd
Kostal Shanghai Mechatronic 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 Shanghai Kostal Huayang Automotive Electric Co Ltd, Kostal Shanghai Mechatronic Co Ltd filed Critical Shanghai Kostal Huayang Automotive Electric Co Ltd
Priority to CN202010200423.3A priority Critical patent/CN111402464A/en
Publication of CN111402464A publication Critical patent/CN111402464A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00857Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the data carrier can be programmed
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed
    • G07C2009/00825Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed remotely by lines or wireless communication
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00857Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the data carrier can be programmed
    • G07C2009/00865Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the data carrier can be programmed remotely by wireless communication

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a method for updating a vehicle electronic key by a mobile terminal, which comprises the steps of sending a key updating request containing a user identifier to a cloud server, and downloading encryption information from the cloud server, wherein the encryption information at least comprises a new key generated by the cloud server according to the user identifier; the encrypted information is forwarded to the vehicle end so as to update the current key stored by the vehicle end; and after the vehicle end is updated successfully, receiving a new key sent by the cloud server. The mobile terminal is used as the intermediary of the vehicle terminal updating key in the application, the interaction with the cloud server is realized, the key updating is realized, the safety of the mobile terminal for controlling the vehicle terminal is ensured, and the possibility of property loss in the vehicle and the vehicle is reduced. The application also provides a device for updating the vehicle electronic key by the mobile terminal, a method for updating the vehicle electronic key by the vehicle terminal, a device for updating the vehicle electronic key by the vehicle terminal and a system for updating the vehicle electronic key by the vehicle terminal, and the device and the system have the advantages.

Description

更新车辆电子钥匙方法、装置和系统Updating vehicle electronic key method, device and system

技术领域technical field

本发明涉及车辆控制程序领域,特别是涉及一种移动终端更新车辆电子钥匙方法、移动终端更新车辆电子钥匙装置、车辆端更新车辆电子钥匙方法、车辆端更新车辆电子钥匙装置以及更新车辆电子钥匙系统。The present invention relates to the field of vehicle control programs, in particular to a method for updating a vehicle electronic key by a mobile terminal, a device for updating a vehicle electronic key by a mobile terminal, a method for updating a vehicle electronic key at a vehicle end, a device for updating a vehicle electronic key at the vehicle end, and a system for updating the vehicle electronic key .

背景技术Background technique

随着各种新技术在车辆上的应用和发展,车辆的使用控制也越来越智能化。在传统车辆中在车辆开门、关门、启动等等操作,需要为车辆专门配置车钥匙。一般情况下,只有该车钥匙在车辆近距离范围内,才能实现对车辆的各种控制操作。而在实际使用车钥匙过程中,不可避免地会存在丢失的情况。在车辆使用不频繁的情况下,用户都可能长时间发现不了该钥匙丢失,使得用户的车辆存在安全隐患;另外,一旦车钥匙丢失,配置新的车钥匙过程耗时较长过程也相对烦碎,且越高端的车辆,配置车钥匙的价格更贵。With the application and development of various new technologies in vehicles, the use and control of vehicles are becoming more and more intelligent. In a traditional vehicle, operations such as opening, closing, starting, etc. of the vehicle need to be specially configured for the vehicle. Under normal circumstances, various control operations on the vehicle can be realized only when the car key is within a short range of the vehicle. In the actual process of using the car key, it is inevitable that there will be loss. In the case of infrequent use of the vehicle, the user may not find that the key is lost for a long time, which makes the user's vehicle have potential safety hazards; in addition, once the car key is lost, the process of configuring a new car key takes a long time and is relatively troublesome. , and the higher-end vehicle, the more expensive the configuration of the car key.

基于传统车钥匙操作控制车辆的不便利性,现有技术中提出一种通过手机等移动终端控制车辆的技术。只需要在手机上下载相关的控制程序,为每个车辆配置相应地账号和密码之后,在手机登陆该控制程序之后,壳体通过蓝牙等方式进行通讯连接,并实现对车辆的控制,进而无需为车辆配置实体钥匙。Based on the inconvenience of traditional vehicle key operation and control of the vehicle, a technology for controlling the vehicle through a mobile terminal such as a mobile phone is proposed in the prior art. It is only necessary to download the relevant control program on the mobile phone, and configure the corresponding account and password for each vehicle. After logging into the control program on the mobile phone, the shell communicates and connects through bluetooth and other methods, and realizes the control of the vehicle, so that there is no need to Configure a physical key for the vehicle.

但是对于通过移动终端而言,也存在丢失的风险,一旦控制车辆的移动终端丢失,则车辆及车辆内部的财物就存在被盗的风险。However, for the mobile terminal, there is also a risk of loss. Once the mobile terminal controlling the vehicle is lost, the vehicle and the property inside the vehicle are at risk of being stolen.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种移动终端更新车辆电子钥匙方法、装置,车辆端更新车辆电子钥匙方法、装置以及更新车辆电子钥匙系统,降低了车辆财物被盗的可能性,保证了车辆安全性。The purpose of the present invention is to provide a method and device for updating a vehicle electronic key by a mobile terminal, a method and device for updating a vehicle electronic key at the vehicle end, and a system for updating the vehicle electronic key, which reduces the possibility of vehicle property being stolen and ensures the safety of the vehicle.

为解决上述技术问题,本发明提供一种移动终端更新车辆电子钥匙方法,包括:In order to solve the above technical problems, the present invention provides a method for updating a vehicle electronic key by a mobile terminal, including:

向云端服务器发送包含用户标识的更新钥匙请求,并从所述云端服务器下载加密信息,其中,所述加密信息至少包含有所述云端服务器根据所述用户标识生成的新钥匙;Sending an update key request including a user identifier to the cloud server, and downloading encrypted information from the cloud server, wherein the encrypted information at least includes a new key generated by the cloud server according to the user identifier;

和预设距离范围内的车辆端之间建立通讯连接,并将所述加密信息转发至所述车辆端,以便所述车辆端根据所述加密信息,对所述车辆端存储的当前钥匙进行更新;Establish a communication connection with the vehicle terminal within a preset distance, and forward the encrypted information to the vehicle terminal, so that the vehicle terminal can update the current key stored in the vehicle terminal according to the encrypted information. ;

接收所述车辆端发送的车辆端更新成功信息,并将所述车辆端更新成功信息发送至所述云端服务器;receiving the vehicle-end update success information sent by the vehicle-end, and sending the vehicle-end update success information to the cloud server;

接收所述云端服务器发送的所述新钥匙,以便通过所述新钥匙对所述车辆端进行控制。Receive the new key sent by the cloud server, so as to control the vehicle end through the new key.

可选地,所述向云端服务器发送包含用户标识的更新钥匙请求包括:Optionally, the sending the update key request including the user identifier to the cloud server includes:

当所述当前钥匙的使用时长达到预设时长时,则发送所述更新钥匙请求。When the usage duration of the current key reaches a preset duration, the key update request is sent.

可选地,所述向云端服务器发送包含用户标识的更新钥匙请求包括:Optionally, the sending the update key request including the user identifier to the cloud server includes:

当所述用户标识和所述云端服务器内存储的用户标识不一致时,显示输入登陆用户帐号界面;When the user ID is inconsistent with the user ID stored in the cloud server, displaying an interface for inputting a login user account;

将接收到的用户名和密码,以及移动终端信息发送至所述云端服务器;Send the received user name and password, and mobile terminal information to the cloud server;

当所述用户名和所述密码验证通过之后,接收所述云端服务器新生成的用户标识;After the user name and the password are verified and passed, receiving the user ID newly generated by the cloud server;

向所述云端服务器发送包含新生成的所述用户标识的更新钥匙请求。Send an update key request including the newly generated user ID to the cloud server.

本申请还提供了一种移动终端更新车辆电子钥匙装置,包括:The application also provides a device for updating a vehicle electronic key by a mobile terminal, including:

更新请求模块,用于向云端服务器发送包含用户标识的更新钥匙请求,并从所述云端服务器下载加密信息,其中,所述加密信息至少包含有所述云端服务器根据所述用户标识生成的新钥匙;an update request module, configured to send an update key request including a user identifier to the cloud server, and download encrypted information from the cloud server, wherein the encrypted information at least includes a new key generated by the cloud server according to the user identifier ;

第一传输模块,用于和预设距离范围内的车辆端之间建立通讯连接,并将所述加密信息转发至所述车辆端,以便所述车辆端根据所述加密信息,对所述车辆端存储的当前钥匙进行更新;The first transmission module is used to establish a communication connection with a vehicle terminal within a preset distance range, and forward the encrypted information to the vehicle terminal, so that the vehicle terminal can send the encrypted information to the vehicle terminal according to the encrypted information. Update the current key stored on the terminal;

第二传输模块,用于接收所述车辆端发送的车辆端更新成功信息,并将所述车辆端更新成功信息发送至所述云端服务器;a second transmission module, configured to receive the vehicle-end update success information sent by the vehicle end, and send the vehicle-end update success information to the cloud server;

钥匙更新模块,用于接收所述云端服务器发送的所述新钥匙,以便通过所述新钥匙对所述车辆端进行控制。A key update module, configured to receive the new key sent by the cloud server, so as to control the vehicle end through the new key.

本申请还提供了一种车辆端更新车辆电子钥匙的方法,包括:The application also provides a method for updating a vehicle electronic key at the vehicle end, including:

和预设距离范围内的移动终端建立通讯连接,并接收所述移动终端从云端服务器下载的加密信息;establishing a communication connection with a mobile terminal within a preset distance, and receiving encrypted information downloaded by the mobile terminal from the cloud server;

根据所述加密信息,获得所述加密信息中的新钥匙;Obtain a new key in the encrypted information according to the encrypted information;

根据所述新钥匙对当前存储的当前钥匙进行更新;updating the currently stored current key according to the new key;

通过所述移动终端向所述云端服务器发送车辆端更新成功信息,以便所述移动终端从所述云端服务器获得所述新钥匙。Send the vehicle-end update success information to the cloud server through the mobile terminal, so that the mobile terminal obtains the new key from the cloud server.

可选地,所述根据所述加密信息,获得所述加密信息中的新钥匙包括:Optionally, the obtaining a new key in the encrypted information according to the encrypted information includes:

对所述加密信息进行解密,获得所述加密信息中至少包含的新钥匙、当前钥匙以及通讯密钥;Decrypting the encrypted information to obtain a new key, a current key and a communication key at least included in the encrypted information;

对所述当前钥匙和所述通讯密钥进行验证,当验证通过时,再执行所述根据所述新钥匙对当前存储的当前钥匙进行更新的操作。The current key and the communication key are verified, and when the verification is passed, the operation of updating the currently stored current key according to the new key is performed.

可选地,所述加密信息还包括用户信息、移动终端信息和车辆端信息;Optionally, the encrypted information further includes user information, mobile terminal information and vehicle terminal information;

在通过所述移动终端向所述云端服务器发送车辆端更新成功信息之后,还包括:After sending the vehicle-end update success information to the cloud server through the mobile terminal, the method further includes:

接收所述移动终端发送的控制车辆指令;receiving a control vehicle instruction sent by the mobile terminal;

对所述控制车辆指令包含的所述新钥匙、所述用户信息、所述移动终端信息以及徐偶像车辆端信息进行验证,当验证通过时,则响应所述控制车辆指令,控制操作车辆。Verify the new key, the user information, the mobile terminal information and the Xu Idol vehicle end information contained in the vehicle control instruction, and when the verification is passed, the vehicle is controlled and operated in response to the vehicle control instruction.

本申请还提供了一种车辆端更新车辆电子钥匙的装置,包括:The application also provides a device for updating a vehicle electronic key at the vehicle end, including:

信息获取模块,用于和预设距离范围内的移动终端建立通讯连接,并接收所述移动终端从云端服务器下载的加密信息;an information acquisition module, configured to establish a communication connection with a mobile terminal within a preset distance, and receive encrypted information downloaded by the mobile terminal from the cloud server;

信息解密模块,用于根据所述加密信息,获得所述加密信息中的新钥匙;an information decryption module for obtaining a new key in the encrypted information according to the encrypted information;

钥匙更新模块,用于根据所述新钥匙对当前存储的当前钥匙进行更新;a key update module, configured to update the current key currently stored according to the new key;

信息发送模块,用于通过所述移动终端向所述云端服务器发送车辆端更新成功信息,以便所述移动终端从所述云端服务器获得所述新钥匙。An information sending module, configured to send vehicle-end update success information to the cloud server through the mobile terminal, so that the mobile terminal can obtain the new key from the cloud server.

本申请还提供了一种更新车辆电子钥匙系统,包括云端服务器、移动终端、以及车辆端;The present application also provides a system for updating a vehicle electronic key, including a cloud server, a mobile terminal, and a vehicle terminal;

其中,所述移动终端用于执行实现如上任一项所述的移动终端更新车辆电子钥匙方法的操作步骤;Wherein, the mobile terminal is configured to perform the operation steps of implementing the method for updating a vehicle electronic key by a mobile terminal as described in any of the above;

所述车辆端用于执行实现如上任一项所述的车辆端更新车辆电子钥匙的方法的操作步骤。The vehicle end is configured to execute the operation steps of implementing the method for updating a vehicle electronic key at the vehicle end as described in any one of the above.

可选地,所述移动终端和所述车辆端建立的通讯连接为蓝牙连接、NFC连接或者所述移动终端开启的热点连接中的任意一种。Optionally, the communication connection established between the mobile terminal and the vehicle end is any one of a Bluetooth connection, an NFC connection, or a hotspot connection opened by the mobile terminal.

本发明所提供的一种移动终端更新车辆电子钥匙方法,包括向云端服务器发送包含用户标识的更新钥匙请求,并从云端服务器下载加密信息,其中,加密信息至少包含有云端服务器根据用户标识生成的新钥匙;和预设距离范围内的车辆端之间建立通讯连接,并将加密信息转发至车辆端,以便车辆端根据加密信息,对车辆端存储的当前钥匙进行更新;接收车辆端发送的车辆端更新成功信息,并将车辆端更新成功信息发送至云端服务器;接收云端服务器发送的新钥匙,并将新钥匙更新代替当前存储的当前钥匙,以便通过新钥匙对车辆端进行控制。A method for updating a vehicle electronic key by a mobile terminal provided by the present invention includes sending an update key request including a user identification to a cloud server, and downloading encrypted information from the cloud server, wherein the encrypted information at least includes the information generated by the cloud server according to the user identification. new key; establish a communication connection with the vehicle terminal within the preset distance, and forward the encrypted information to the vehicle terminal, so that the vehicle terminal can update the current key stored in the vehicle terminal according to the encrypted information; receive the vehicle terminal sent by the vehicle terminal Receive the new key sent by the cloud server, and update the new key to replace the current key currently stored, so that the vehicle can be controlled by the new key.

本申请中的移动终端要能够对车辆的车辆端进行控制,需要通过虚拟的电子车钥匙作为一种验证标识,实现移动终端和车辆端之间相互识别。那么一旦控制车辆端原有的移动终端丢失,就必然需要用新的移动终端代替控制车辆端,并且要取消原移动终端控制车辆端的合法性。因此,本申请中提供了一种重新为车辆端和移动终端配置新钥匙的方法,以便实现对车辆端进行控制的权限从原移动终端转换到新的移动终端。但是车辆端是不具有远程无线通讯功能的,不能直接和云端服务器进行信息交互,而移动终端同时能够和云端服务器进行远程无线通讯连接,还能够和车辆端进行近距离的无线通讯连接,由此,本申请中以移动终端作为车辆端更新钥匙的中介,实现和云端服务器的交互,实现钥匙更新,而移动终端则直接通过云端服务器获得新的钥匙,进而重新建立移动终端和车辆端之间的控制权限,保证了移动终端对车辆端控制的安全性,降低车辆和车辆内财物丢失的可能性。In order for the mobile terminal in the present application to be able to control the vehicle end of the vehicle, a virtual electronic car key needs to be used as a verification identifier to realize mutual identification between the mobile terminal and the vehicle end. Then, once the original mobile terminal of the control vehicle end is lost, it is necessary to replace the control vehicle end with a new mobile terminal, and the validity of the original mobile terminal to control the vehicle end must be cancelled. Therefore, the present application provides a method for reconfiguring a new key for the vehicle end and the mobile terminal, so as to realize the conversion of the authority to control the vehicle end from the original mobile terminal to the new mobile terminal. However, the vehicle end does not have the function of long-distance wireless communication, and cannot directly exchange information with the cloud server, while the mobile terminal can simultaneously connect with the cloud server for long-distance wireless communication, and can also connect with the vehicle end for short-range wireless communication. , in this application, the mobile terminal is used as an intermediary to update the key on the vehicle side, and the interaction with the cloud server is realized to realize the key update, while the mobile terminal directly obtains a new key through the cloud server, and then re-establishes the connection between the mobile terminal and the vehicle side. The control authority ensures the security of the mobile terminal's control of the vehicle end, and reduces the possibility of the loss of the vehicle and the property in the vehicle.

本申请中还提供了一种移动终端更新车辆电子钥匙装置、车辆端更新车辆电子钥匙方法、车辆端更新车辆电子钥匙装置以及更新车辆电子钥匙系统,具有上述有益效果。The present application also provides a device for updating a vehicle electronic key by a mobile terminal, a method for updating a vehicle electronic key at a vehicle end, a device for updating a vehicle electronic key at the vehicle end, and a system for updating the vehicle electronic key, which have the above beneficial effects.

附图说明Description of drawings

为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only For some embodiments of the present invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本申请实施例提供的移动终端更新车辆电子钥匙方法的流程示意图;1 is a schematic flowchart of a method for updating a vehicle electronic key by a mobile terminal according to an embodiment of the present application;

图2为本发明实施例提供的移动终端更新车辆电子钥匙装置的结构框图;2 is a structural block diagram of a device for updating a vehicle electronic key by a mobile terminal according to an embodiment of the present invention;

图3为本申请实施例提供的车辆端更新车辆电子钥匙的方法的流程示意图;3 is a schematic flowchart of a method for updating a vehicle electronic key at a vehicle end provided by an embodiment of the present application;

图4为本申请实施例提供的加密信息的示意图;4 is a schematic diagram of encrypted information provided by an embodiment of the present application;

图5为本发明实施例提供的车辆端更新车辆电子钥匙的装置的结构框图;5 is a structural block diagram of a device for updating a vehicle electronic key on a vehicle end provided by an embodiment of the present invention;

图6为本申请实施例提供的更新车辆电子钥匙的方法的流程示意图;6 is a schematic flowchart of a method for updating a vehicle electronic key provided by an embodiment of the present application;

图7为本申请实施例提供的更新车辆电子钥匙系统的示意图。FIG. 7 is a schematic diagram of a system for updating a vehicle electronic key according to an embodiment of the present application.

具体实施方式Detailed ways

本发明的核心是提供一种车辆电子钥匙的更新方法,使得在原移动终端丢失的情况下,能够实现控制车辆权限的转移,避免车辆和车辆内财物被盗,造成用户的经济损失,提高车辆的安全性。The core of the present invention is to provide a method for updating a vehicle electronic key, so that when the original mobile terminal is lost, the transfer of the authority to control the vehicle can be realized, so as to avoid the theft of the vehicle and the property in the vehicle, causing the economic loss of the user, and improving the safety of the vehicle. safety.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. 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 of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

如图1所示,图1为本申请实施例提供的移动终端更新车辆电子钥匙方法的流程示意图,该方法可以包括:As shown in FIG. 1 , FIG. 1 is a schematic flowchart of a method for updating a vehicle electronic key by a mobile terminal according to an embodiment of the present application, and the method may include:

S11:向云端服务器发送包含用户标识的更新钥匙请求,并从云端服务器下载加密信息。S11: Send an update key request including the user ID to the cloud server, and download encrypted information from the cloud server.

其中,加密信息至少包含有云端服务器根据用户标识生成的新钥匙。The encrypted information at least includes a new key generated by the cloud server according to the user identifier.

具体地,对于每个车辆在开始投入使用之前,均需要注册一个用户帐号并设定相应的密码。这种操作和目前较为常见的注册淘宝帐号、微信帐号的操作类似。移动终端上可以下载控制车辆端的APP,或者是通过网络页面均可以实现用户帐号的登陆,随后即可实现用户帐号的登陆,而每个用户帐号也就对应一辆车辆。Specifically, before each vehicle is put into use, it is necessary to register a user account and set a corresponding password. This operation is similar to the more common operation of registering a Taobao account and a WeChat account. The APP that controls the vehicle end can be downloaded on the mobile terminal, or the login of the user account can be realized through the web page, and then the login of the user account can be realized, and each user account corresponds to a vehicle.

S12:和预设距离范围内的车辆端之间建立通讯连接,并将加密信息转发至车辆端,以便车辆端根据加密信息,对车辆端存储的当前钥匙进行更新。S12: Establish a communication connection with the vehicle terminal within a preset distance range, and forward the encrypted information to the vehicle terminal, so that the vehicle terminal can update the current key stored in the vehicle terminal according to the encrypted information.

对于目前的车辆而言,是不具有和云端服务器之间进行通讯联网的功能的,但是却有和移动终端进行近距离的蓝牙通讯连接以及NFC通讯连接的功能,但是这一通讯连接的前提条件是车辆和移动终端之间的距离不能够太远。For the current vehicle, it does not have the function of communication and networking with the cloud server, but it has the function of short-range Bluetooth communication connection and NFC communication connection with the mobile terminal, but the precondition of this communication connection is The distance between the vehicle and the mobile terminal cannot be too far.

另外,对于手机这一类移动终端而言,还具有开启WiFi热点为近距离内的电子设备提供网络连接,由此本申请中也可以为车辆端配置能够连接WiFi热点的通讯装置,进而实现和移动终端之间的通讯连接。In addition, for mobile terminals such as mobile phones, it also has the ability to enable WiFi hotspots to provide network connections for electronic devices within a short distance. Therefore, in this application, a communication device capable of connecting to WiFi hotspots can also be configured for the vehicle end, thereby realizing and Communication connection between mobile terminals.

S13:接收车辆端发送的车辆端更新成功信息,并将车辆端更新成功信息发送至云端服务器。S13: Receive the vehicle-end update success information sent by the vehicle end, and send the vehicle-end update success information to the cloud server.

S14:接收云端服务器发送的新钥匙,以便通过新钥匙对车辆端进行控制。S14: Receive a new key sent by the cloud server, so as to control the vehicle end through the new key.

对于本申请而言,对于钥匙的更新主要在于两方面,一方面是车辆端内的钥匙更新,另一方面是移动终端的钥匙更新,当车辆端和移动终端均更新成功之后,移动终端才能够实现对车辆端的控制。For this application, the key update mainly lies in two aspects, one is the key update in the vehicle, and the other is the key update of the mobile terminal. When both the vehicle and the mobile terminal are successfully updated, the mobile terminal can Realize the control of the vehicle end.

但是对于目前的车辆端而言,是没有配置联网功能的,也就是说无法和云端服务器进行直接的信息交互,而车辆端要进行钥匙更新,需要从云端服务器获得新钥匙,由此本申请中以移动终端作为信息传输的媒介,通过移动终端从云端服务器获得加密信息后,转发到车辆端,车辆端根据该加密信息进行钥匙的更新。并且,在车辆端的钥匙更新完成之后,再进行移动终端的更新。However, for the current vehicle end, the networking function is not configured, that is to say, it is impossible to directly exchange information with the cloud server, and the vehicle end needs to obtain a new key from the cloud server to update the key. Therefore, in this application Using the mobile terminal as the medium of information transmission, after obtaining the encrypted information from the cloud server through the mobile terminal, it is forwarded to the vehicle end, and the vehicle end updates the key according to the encrypted information. Moreover, after the key update on the vehicle side is completed, the mobile terminal is updated.

为了保证云端服务器和移动终端之间信息交互的安全性,云端服务器通过移动终端转发至车辆端的包含有新钥匙的信息进行加密处理,获得加密信息,车辆端在接收到该加密信息后,可对该加密信息进行解密,获得该加密信息中的新钥匙,进而实现车辆端钥匙的更新。In order to ensure the security of information exchange between the cloud server and the mobile terminal, the cloud server encrypts the information containing the new key that is forwarded to the vehicle by the mobile terminal to obtain encrypted information. After receiving the encrypted information, the vehicle can The encrypted information is decrypted to obtain a new key in the encrypted information, thereby realizing the update of the vehicle-side key.

并且在车辆端钥匙更新完成以后,云端服务器给移动终端发送新钥匙时,也是经过加密处理后发送至移动终端。And after the vehicle-side key update is completed, when the cloud server sends the new key to the mobile terminal, it is also encrypted and sent to the mobile terminal.

本申请中以移动终端作为媒介实现车辆端和移动终端中钥匙的更新,使得即便用户在移动终端丢失的情况下,也能够重新采用新的移动终端和车辆端之间建立新的联系,进而使得控制车辆端的权限由一个移动终端转移至另一个移动终端,避免移动终端丢失的情况下,出现车辆或车辆内财物丢失的情况,有利于保证用户财产安全。In this application, the mobile terminal is used as the medium to realize the update of the key in the vehicle terminal and the mobile terminal, so that even if the user loses the mobile terminal, he can re-use a new mobile terminal and establish a new connection between the vehicle terminal, thereby making The authority to control the vehicle end is transferred from one mobile terminal to another mobile terminal to avoid the loss of the vehicle or the property in the vehicle when the mobile terminal is lost, which is beneficial to ensure the safety of the user's property.

如前所述,移动终端和车辆端之间的通信连接是基于蓝牙、NFC等短程无线通讯的方式进行的,并不需要联网操作。也就是说移动终端在控制车辆端时,并不需要登陆相关的APP账号,只要车辆端和移动终端之间的钥匙可以相互匹配即可。那么,如果用户可以控制车辆的移动终端丢失,而短期内用户又找不到新的移动终端进行钥匙更新时,这中情况下,丢失的移动终端还是对车辆端具有控制权限,使得车辆端存在安全隐患。As mentioned above, the communication connection between the mobile terminal and the vehicle terminal is based on short-range wireless communication such as Bluetooth and NFC, and does not require network operation. That is to say, when the mobile terminal controls the vehicle terminal, it does not need to log in to the relevant APP account, as long as the keys between the vehicle terminal and the mobile terminal can be matched with each other. Then, if the user can control the mobile terminal of the vehicle is lost, but the user cannot find a new mobile terminal to update the key in a short period of time, in this case, the lost mobile terminal still has control authority over the vehicle side, so that the vehicle side exists. Security risks.

为此,在本申请的另一具体实施例中,还可以为移动终端和车辆端的钥匙的设定一个可用的时间期限。例如,3天。正常情况下,移动终端每间隔3天,就自动和云端服务器以及车辆端进行上述实施例的信息交互实现车辆端和移动终端的钥匙更新。To this end, in another specific embodiment of the present application, an available time period may also be set for the keys at the mobile terminal and the vehicle end. For example, 3 days. Under normal circumstances, the mobile terminal automatically exchanges the information in the above embodiment with the cloud server and the vehicle terminal every 3 days to realize the key update between the vehicle terminal and the mobile terminal.

需要说明的时,和目前常用的微信、QQ在移动终端登陆的方式类似,本申请中的更换钥匙的APP只能在一个移动终端登陆。当用户使用第一个移动终端登陆用户帐号时,该移动终端会将用户输入的用户名和密码以及移动终端信息发送至云端服务器,云端服务器认证用户名和密码正确后,会生成一个用户标识发送至移动终端,移动终端后续和云端服务器进行信息交互时,就通过该用户标识对移动终端进行识别验证。对于用户而言,每次移动终端登陆帐号时,就无需再次输入用户名和密码,类似于微信只需要第一次用手机登陆后,只要不退出登陆,每次打开APP,无需再输入用户名和密码即可实现登陆一样。It should be noted that, similar to the currently commonly used methods of logging in to a mobile terminal via WeChat and QQ, the APP for key replacement in this application can only be logged in on one mobile terminal. When the user uses the first mobile terminal to log in to the user account, the mobile terminal will send the user name and password entered by the user and the mobile terminal information to the cloud server. After the cloud server verifies that the user name and password are correct, a user ID will be generated and sent to the mobile terminal. The terminal, when the mobile terminal subsequently exchanges information with the cloud server, the mobile terminal is identified and verified by the user ID. For the user, every time the mobile terminal logs in to the account, there is no need to enter the user name and password again, similar to WeChat, which only needs to log in with the mobile phone for the first time, as long as the user does not log out, every time the APP is opened, there is no need to enter the user name and password again. You can achieve the same login.

当用户的移动终端丢失时,用户用新的移动终端登陆用户帐号之后,云端服务器就会产生新的用户标识发送给移动终端,原来的移动终端的用户标识就失效了,如果要再次通过原来的移动终端登陆用户帐号,就需要用户再次在原来的移动终端上输入用户名和密码,在原来的移动终端重新获得新的用户标识之后,即可进行钥匙更新的操作。这种操作方式能够有效保证用户帐号的安全性,避免丢失的移动终端被他人操作更改车辆端和移动终端钥匙的情况。When the user's mobile terminal is lost, after the user logs in to the user account with the new mobile terminal, the cloud server will generate a new user ID and send it to the mobile terminal, and the original user ID of the mobile terminal will become invalid. When the mobile terminal logs in to the user account, the user needs to input the user name and password on the original mobile terminal again. After the original mobile terminal obtains a new user ID, the key update operation can be performed. This operation mode can effectively ensure the security of the user account, and avoid the situation where the lost mobile terminal is operated by others to change the keys of the vehicle and the mobile terminal.

综上所述,本申请中对车辆电子钥匙更新的过程,会在两种情况下进行,第一是:To sum up, the process of updating the vehicle electronic key in this application will be carried out in two cases, the first is:

当当前钥匙的使用时长达到预设时长时,则发送更新钥匙请求。When the usage duration of the current key reaches the preset duration, an update key request is sent.

第二是:The second is:

当用户标识和云端服务器内存储的用户标识不一致时,显示输入登陆用户帐号界面;When the user ID is inconsistent with the user ID stored in the cloud server, the interface for entering the login user account is displayed;

将接收到的用户名和密码,以及移动终端信息发送至云端服务器;Send the received username and password, and mobile terminal information to the cloud server;

当用户名和密码验证通过之后,接收云端服务器新生成的用户标识;After the user name and password are verified, receive the user ID newly generated by the cloud server;

向云端服务器发送包含新生成的用户标识的更新钥匙请求。Send an update key request containing the newly generated user ID to the cloud server.

在上述这两种情况下移动终端均可以实现移动终端和车辆端钥匙更新程序启动,进而保证车辆财物的安全性。In the above two cases, the mobile terminal can realize the activation of the key update program at the mobile terminal and the vehicle end, thereby ensuring the safety of the vehicle property.

下面对本发明实施例提供的移动终端更新车辆电子钥匙装置进行介绍,下文描述的移动终端更新车辆电子钥匙装置与上文描述的移动终端更新车辆电子钥匙方法可相互对应参照。The following describes the device for updating a vehicle electronic key by a mobile terminal provided by the embodiments of the present invention. The device for updating a vehicle electronic key by a mobile terminal described below and the method for updating a vehicle electronic key by a mobile terminal described above may refer to each other correspondingly.

图2为本发明实施例提供的移动终端更新车辆电子钥匙装置的结构框图,参照图2的移动终端更新车辆电子钥匙装置可以包括:FIG. 2 is a structural block diagram of a device for updating a vehicle electronic key by a mobile terminal provided by an embodiment of the present invention. Referring to the device for updating a vehicle electronic key by a mobile terminal in FIG. 2 , the device may include:

更新请求模块110,用于向云端服务器发送包含用户标识的更新钥匙请求,并从所述云端服务器下载加密信息,其中,所述加密信息至少包含有所述云端服务器根据所述用户标识生成的新钥匙;The update request module 110 is configured to send an update key request including a user identification to the cloud server, and download encrypted information from the cloud server, wherein the encrypted information at least includes a new key generated by the cloud server according to the user identification. key;

第一传输模块120,用于和预设距离范围内的车辆端之间建立通讯连接,并将所述加密信息转发至所述车辆端,以便所述车辆端根据所述加密信息,对所述车辆端存储的当前钥匙进行更新;The first transmission module 120 is configured to establish a communication connection with a vehicle terminal within a preset distance range, and forward the encrypted information to the vehicle terminal, so that the vehicle terminal can send the encrypted information to the vehicle terminal according to the encrypted information. The current key stored on the vehicle side is updated;

第二传输模块130,用于接收所述车辆端发送的车辆端更新成功信息,并将所述车辆端更新成功信息发送至所述云端服务器;The second transmission module 130 is configured to receive the vehicle end update success information sent by the vehicle end, and send the vehicle end update success information to the cloud server;

钥匙更新模块140,用于接收所述云端服务器发送的所述新钥匙,以便通过所述新钥匙对所述车辆端进行控制。The key update module 140 is configured to receive the new key sent by the cloud server, so as to control the vehicle end through the new key.

可选地,在本申请的另一具体实施例中,还可以进一步地包括:Optionally, in another specific embodiment of the present application, it may further include:

更新请求模块110,具体用于当所述当前钥匙的使用时长达到预设时长时,则发送所述更新钥匙请求。The update request module 110 is specifically configured to send the update key request when the usage duration of the current key reaches a preset duration.

可选地,在本申请的另一具体实施例中,更新请求模块110还可以进一步地包括:Optionally, in another specific embodiment of the present application, the update request module 110 may further include:

第一登陆单元,用于当所述用户标识和所述云端服务器内存储的用户标识不一致时,显示输入登陆用户帐号界面;a first login unit, configured to display an interface for inputting a login user account when the user ID is inconsistent with the user ID stored in the cloud server;

第二登陆单元,用于将接收到的用户名和密码,以及移动终端信息发送至所述云端服务器;a second login unit, configured to send the received user name and password and mobile terminal information to the cloud server;

标识接收单元,用于当所述用户名和所述密码验证通过之后,接收所述云端服务器新生成的用户标识;an identification receiving unit, configured to receive a user identification newly generated by the cloud server after the user name and the password are verified;

更新请求单元,用于向所述云端服务器发送包含新生成的所述用户标识的更新钥匙请求。An update request unit, configured to send an update key request including the newly generated user ID to the cloud server.

本实施例的移动终端更新车辆电子钥匙装置用于实现前述的移动终端更新车辆电子钥匙方法,因此移动终端更新车辆电子钥匙装置中的具体实施方式可见前文中的移动终端更新车辆电子钥匙方法的实施例部分,在此不再赘述。The device for updating a vehicle electronic key by a mobile terminal in this embodiment is used to implement the aforementioned method for updating a vehicle electronic key by a mobile terminal. Therefore, the specific implementation of the device for updating a vehicle electronic key by a mobile terminal can be found in the foregoing implementation of the method for updating a vehicle electronic key by a mobile terminal. The example part will not be repeated here.

下面将对车辆端的钥匙更新过程进行详细论述,如图3所示,图3为本申请实施例提供的车辆端更新车辆电子钥匙的方法的流程示意图,该方法具体可以包括:The key update process at the vehicle end will be discussed in detail below, as shown in FIG. 3 , which is a schematic flowchart of a method for updating a vehicle electronic key at the vehicle end provided by an embodiment of the application, and the method may specifically include:

S21:和预设距离范围内的移动终端建立通讯连接,并接收移动终端从云端服务器下载的加密信息;S21: Establish a communication connection with a mobile terminal within a preset distance, and receive encrypted information downloaded by the mobile terminal from the cloud server;

S22:根据加密信息,获得加密信息中的新钥匙;S22: Obtain a new key in the encrypted information according to the encrypted information;

S23:根据新钥匙对当前存储的当前钥匙进行更新;S23: Update the currently stored current key according to the new key;

S24:通过移动终端向云端服务器发送车辆端更新成功信息,以便移动终端从云端服务器获得新钥匙。S24: Send the vehicle-end update success information to the cloud server through the mobile terminal, so that the mobile terminal obtains a new key from the cloud server.

如前所述,车辆端以移动终端作为传输数据的媒介从云端服务器获得用于更新钥匙的加密信息,即可实现钥匙的更新。具体地,如图4所示,图4为本申请实施例提供的加密信息的示意图。在本申请中加密信息可以包含如图4所示的信息。该加密信息具体可以是14位字符串表示。每个字符分别代表不同的信息。As mentioned above, the vehicle end uses the mobile terminal as a data transmission medium to obtain the encrypted information for updating the key from the cloud server, so as to realize the updating of the key. Specifically, as shown in FIG. 4 , FIG. 4 is a schematic diagram of encrypted information provided by an embodiment of the present application. The encrypted information in this application may contain information as shown in FIG. 4 . Specifically, the encrypted information may be represented by a 14-bit character string. Each character represents different information.

其中第一位信息为标志位信息,车辆端在接收到该加密信息后进行解码,读第一字节处的标志位信息,若该出信息为1,则表明该加密信息用于更新钥匙。The first bit of information is the flag bit information. After receiving the encrypted information, the vehicle end decodes and reads the flag bit information at the first byte. If the outgoing information is 1, it indicates that the encrypted information is used to update the key.

第二位信息为车钥匙信息,也即是新钥匙。The second information is the car key information, that is, the new key.

第三位信息为旧车钥匙信息,也就是当前钥匙。The third information is the old car key information, that is, the current key.

第四至六位信息为钥匙的时效性的信息。The fourth to sixth bits of information are the information of the time-effectiveness of the key.

第七至九位信息为用户相关信息。The seventh to ninth bits of information are user-related information.

第十至十三位为车辆端信息。The tenth to thirteenth digits are vehicle-side information.

第十四位为蓝牙通信密钥。The fourteenth bit is the Bluetooth communication key.

在实际进行钥匙更新过程时,仅仅有第三位和第十四位字符的内容是用于对加密信息的内容进行验证的,当验证成功后,才基于第二位字符的内容进行钥匙更新。也即是说上述S22具体可以包括:During the actual key update process, only the contents of the third and fourteenth characters are used to verify the content of the encrypted information. When the verification is successful, the key is updated based on the content of the second character. That is to say, the above S22 may specifically include:

对加密信息进行解密,获得加密信息中至少包含的新钥匙、当前钥匙以及通讯密钥;Decrypt the encrypted information to obtain at least the new key, current key and communication key contained in the encrypted information;

对当前钥匙和通讯密钥进行验证,当验证通过时,再执行根据新钥匙对当前存储的当前钥匙进行更新的操作。The current key and the communication key are verified, and when the verification is passed, the operation of updating the currently stored current key according to the new key is performed.

本实施例中云端服务器以加密的形式向车辆端传输信息,保证信息的安全性,再进一步地对加密信息的内容进行验证,进一步保证信息更新的安全性。In this embodiment, the cloud server transmits information to the vehicle end in an encrypted form to ensure the security of the information, and further verifies the content of the encrypted information to further ensure the security of the information update.

另外,车辆端在进行加密信息的验证时,需要对未更新前的当前钥匙,也就是旧钥匙进行验证,那么,因此,车辆端、云端服务器以及移动终端内存储的当前钥匙必须要保持一致性才能进行钥匙更新。如前所示,移动终端需要在车辆端的钥匙更新完成后才进行钥匙更新,能够有效避免车辆端钥匙更新不成功,而移动终端钥匙更新不成功的情况,而车辆端和移动终端内旧钥匙不一致的情况。In addition, when the vehicle side is verifying the encrypted information, it needs to verify the current key before the update, that is, the old key. Therefore, the current key stored in the vehicle side, the cloud server and the mobile terminal must be consistent. key update. As shown above, the mobile terminal needs to update the key after the key update on the vehicle side is completed, which can effectively avoid the situation where the vehicle side key update is unsuccessful, but the mobile terminal key update is unsuccessful, and the old keys in the vehicle side and the mobile terminal are inconsistent. Case.

需要说明的是,云端服务器也存储有旧钥匙和新钥匙,只有车辆端更新成功之后,才将旧钥匙删除,将新钥匙发送至车辆端。It should be noted that the cloud server also stores the old key and the new key. Only after the vehicle end is successfully updated, the old key is deleted and the new key is sent to the vehicle end.

可选地,在本申请的另一具体实施例中,在通过移动终端向云端服务器发送车辆端更新成功信息之后,还包括:Optionally, in another specific embodiment of the present application, after sending the vehicle-end update success information to the cloud server through the mobile terminal, the method further includes:

接收移动终端发送的控制车辆指令;Receive the control vehicle instruction sent by the mobile terminal;

对控制车辆指令包含的钥匙信息、用户信息和移动终端信息以及车辆端信息进行验证,当验证通过时,则响应控制车辆指令,控制操作车辆。The key information, user information, mobile terminal information and vehicle terminal information contained in the control vehicle instruction are verified, and when the verification is passed, the vehicle is controlled and operated in response to the control vehicle instruction.

如前所述,上述图4中的加密信息的字符串,仅仅只有第一至三位以及第十四位字符是在车辆端更新钥匙时的有用信息,为此,而其他信息则是用于移动终端箱车辆端发送控制信息时的验证信息。As mentioned above, in the above-mentioned encrypted information string in Figure 4, only the first to three characters and the fourteenth character are useful information when the key is updated at the vehicle end. For this reason, other information is used for The verification information when the mobile terminal box and the vehicle end send control information.

也即是说加密信息中的第七位字符代表用户信息、第八和九位字符代表移动终端信息。当然还可以进一步对车辆端信息进行验证,也即是对第十至第十三位字符代表的信息进行验证。That is to say, the seventh character in the encrypted information represents user information, and the eighth and ninth characters represent mobile terminal information. Of course, the vehicle end information can be further verified, that is, the information represented by the tenth to thirteenth characters can be verified.

也即是说车辆端在执行移动终端的控制指令之前,处理需要对车钥匙进行验证以外,还需要对各种用户信息、车辆端信息以及移动终端信息等等进行验证,从而保证车辆操作控制的安全性。That is to say, before the vehicle terminal executes the control command of the mobile terminal, the processing needs to verify the car key, as well as various user information, vehicle terminal information and mobile terminal information, etc., so as to ensure the operation and control of the vehicle. safety.

下面对本发明实施例提供的车辆端更新车辆电子钥匙的装置进行介绍,下文描述的车辆端更新车辆电子钥匙的装置与上文描述的车辆端更新车辆电子钥匙的方法可相互对应参照。The device for updating a vehicle electronic key on the vehicle end provided by the embodiments of the present invention will be introduced below. The device for updating a vehicle electronic key on the vehicle end described below and the method for updating a vehicle electronic key on the vehicle end described above may refer to each other correspondingly.

图5为本发明实施例提供的车辆端更新车辆电子钥匙的装置的结构框图,参照图5为车辆端更新车辆电子钥匙的装置可以包括:FIG. 5 is a structural block diagram of an apparatus for updating a vehicle electronic key on a vehicle side provided by an embodiment of the present invention. Referring to FIG. 5 , the apparatus for updating a vehicle electronic key on the vehicle side may include:

信息获取模块210,用于和预设距离范围内的移动终端建立通讯连接,并接收所述移动终端从云端服务器下载的加密信息;an information acquisition module 210, configured to establish a communication connection with a mobile terminal within a preset distance, and receive encrypted information downloaded by the mobile terminal from a cloud server;

信息解密模块220,用于根据所述加密信息,获得所述加密信息中的新钥匙;an information decryption module 220, configured to obtain a new key in the encrypted information according to the encrypted information;

钥匙更新模块230,用于根据所述新钥匙对当前存储的当前钥匙进行更新;a key update module 230, configured to update the current key currently stored according to the new key;

信息发送模块240,用于通过所述移动终端向所述云端服务器发送车辆端更新成功信息,以便所述移动终端从所述云端服务器获得所述新钥匙。The information sending module 240 is configured to send vehicle-end update success information to the cloud server through the mobile terminal, so that the mobile terminal can obtain the new key from the cloud server.

可选地,在本申请的一种可选地实施例中,信息解密模块220具体用于对所述加密信息进行解密,获得所述加密信息中至少包含的新钥匙、当前钥匙以及通讯密钥;对所述当前钥匙和所述通讯密钥进行验证,当验证通过时,再执行所述根据所述新钥匙对当前存储的当前钥匙进行更新的操作。Optionally, in an optional embodiment of the present application, the information decryption module 220 is specifically configured to decrypt the encrypted information, and obtain at least a new key, a current key and a communication key included in the encrypted information. ; Verify the current key and the communication key, and when the verification is passed, execute the operation of updating the currently stored current key according to the new key.

可选地,在本申请的一种可选地实施例中,还可以进一步地包括:Optionally, in an optional embodiment of the present application, it may further include:

执行控制模块,用于在通过所述移动终端向所述云端服务器发送车辆端更新成功信息之后,接收所述移动终端发送的控制车辆指令;an execution control module, configured to receive a vehicle control instruction sent by the mobile terminal after sending the vehicle-end update success information to the cloud server through the mobile terminal;

对所述控制车辆指令包含的所述新钥匙、所述用户信息、所述移动终端信息以及徐偶像车辆端信息进行验证,当验证通过时,则响应所述控制车辆指令,控制操作车辆。其中,加密信息还包括用户信息、移动终端信息和车辆端信息。Verify the new key, the user information, the mobile terminal information and the Xu Idol vehicle end information contained in the vehicle control instruction, and when the verification is passed, the vehicle is controlled and operated in response to the vehicle control instruction. The encrypted information also includes user information, mobile terminal information and vehicle terminal information.

本实施例的车辆端更新车辆电子钥匙装置用于实现前述的车辆端更新车辆电子钥匙方法,因此车辆端更新车辆电子钥匙装置中的具体实施方式可见前文中的车辆端更新车辆电子钥匙方法的实施例部分,在此不再赘述。The device for updating a vehicle electronic key at the vehicle end of this embodiment is used to implement the aforementioned method for updating a vehicle electronic key at the vehicle end. Therefore, the specific implementation of the device for updating a vehicle electronic key at the vehicle end can be found in the foregoing implementation of the method for updating a vehicle electronic key at the vehicle end The example part will not be repeated here.

基于上述任一实施例,如图6所示,图6为本申请实施例提供的更新车辆电子钥匙的方法的流程示意图,该方法可以包括:Based on any of the above embodiments, as shown in FIG. 6 , FIG. 6 is a schematic flowchart of a method for updating a vehicle electronic key provided by an embodiment of the present application, and the method may include:

S31:移动终端向云端服务器发送更新钥匙请求。S31: The mobile terminal sends a key update request to the cloud server.

S32:移动终端从云端服务器下载加密信息。S32: The mobile terminal downloads the encrypted information from the cloud server.

S33:移动终端将加密信息发送至车辆端。S33: The mobile terminal sends the encrypted information to the vehicle end.

S34:车辆端对加密信息进行解密,或者加密信息中的标志位、新钥匙、当前钥匙、用户信息、移动终端信息、车辆端信息以及通讯密钥。S34: The vehicle terminal decrypts the encrypted information, or the flag bit, new key, current key, user information, mobile terminal information, vehicle terminal information and communication key in the encrypted information.

S35:验证当前钥匙和通讯密钥是否均正确,若是,则进入步骤S36,若否,则更新失败。S35: Verify whether the current key and the communication key are correct, if yes, go to step S36, if not, the update fails.

S36:车辆端将当前钥匙用新钥匙替换更新,并存储用户信息、移动终端信息、车辆端信息。S36: The vehicle end replaces and updates the current key with a new key, and stores user information, mobile terminal information, and vehicle end information.

S37:车辆端通过移动终端向云端服务器发送车辆端更新成功信息。S37 : The vehicle terminal sends the vehicle terminal update success information to the cloud server through the mobile terminal.

S38:云端服务器将当前钥匙删除,用新钥匙代替,并将新钥匙加密后发送至移动终端。S38: The cloud server deletes the current key, replaces it with a new key, and encrypts the new key and sends it to the mobile terminal.

本申请还提供了一种更新车辆电子钥匙系统的实施例,如图7所示,图7为本申请实施例提供的更新车辆电子钥匙系统的示意图,包括云端服务器1、移动终端2、以及车辆端3;The present application also provides an embodiment of a system for updating a vehicle electronic key, as shown in FIG. 7 , which is a schematic diagram of a system for updating a vehicle electronic key provided by an embodiment of the application, including a cloud server 1 , a mobile terminal 2 , and a vehicle end 3;

其中,所述移动终端2用于执行实现上述任一项所述的移动终端更新车辆电子钥匙方法的操作步骤;Wherein, the mobile terminal 2 is configured to perform the operation steps of implementing any one of the above-mentioned methods for updating a vehicle electronic key by a mobile terminal;

所述车辆端3用于执行实现上述任一项所述的车辆端更新车辆电子钥匙的方法的操作步骤。The vehicle terminal 3 is configured to execute the operation steps of implementing any one of the above-mentioned methods for updating a vehicle electronic key at the vehicle terminal.

具体地,移动终端2和车辆端3建立的通讯连接为蓝牙连接、NFC连接或者移动终端2开启的热点连接中的任意一种。Specifically, the communication connection established between the mobile terminal 2 and the vehicle terminal 3 is any one of a Bluetooth connection, an NFC connection, or a hotspot connection opened by the mobile terminal 2 .

本申请中通过移动终端2、云端服务器1以及车辆端3三者的配合作用,并在车辆端3进行钥匙更新时,以移动终端2为中间媒介传递信息,解决了车辆端3无法直接和云端服务器1通信的问题,实现了移动终端2、云端服务器1以及车辆端3之间钥匙的更新,有效降低车辆财物丢失的风险,保证用户财物安全性。In this application, through the cooperation of the mobile terminal 2, the cloud server 1 and the vehicle terminal 3, and when the vehicle terminal 3 updates the key, the mobile terminal 2 is used as an intermediate medium to transmit information, which solves the problem that the vehicle terminal 3 cannot directly communicate with the cloud. The problem of communication between the server 1 realizes the update of the key between the mobile terminal 2, the cloud server 1 and the vehicle terminal 3, effectively reduces the risk of vehicle property loss, and ensures the safety of the user's property.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

Claims (10)

1. A method for updating an electronic key of a vehicle by a mobile terminal is characterized by comprising the following steps:
sending a key updating request containing a user identification to a cloud server, and downloading encryption information from the cloud server, wherein the encryption information at least comprises a new key generated by the cloud server according to the user identification;
establishing communication connection with a vehicle end within a preset distance range, and forwarding the encrypted information to the vehicle end so that the vehicle end can update the current key stored by the vehicle end according to the encrypted information;
receiving vehicle end updating success information sent by the vehicle end, and sending the vehicle end updating success information to the cloud server;
and receiving the new key sent by the cloud server so as to control the vehicle terminal through the new key.
2. The method for updating the electronic key of the vehicle through the mobile terminal according to claim 1, wherein the sending of the update key request including the user identifier to the cloud server comprises:
and when the use time of the current key reaches a preset time, sending the key updating request.
3. The method for updating the electronic key of the vehicle through the mobile terminal according to claim 1, wherein the sending of the update key request including the user identifier to the cloud server comprises:
when the user identification is inconsistent with the user identification stored in the cloud server, displaying an interface for inputting a login user account;
sending the received user name and password and the mobile terminal information to the cloud server;
after the user name and the password pass verification, receiving a user identifier newly generated by the cloud server;
and sending a key updating request containing the newly generated user identification to the cloud server.
4. A mobile terminal device for updating an electronic key of a vehicle is characterized by comprising:
the system comprises an update request module, a cloud server and a key updating module, wherein the update request module is used for sending an update key request containing a user identifier to the cloud server and downloading encryption information from the cloud server, and the encryption information at least comprises a new key generated by the cloud server according to the user identifier;
the first transmission module is used for establishing communication connection with a vehicle end within a preset distance range and forwarding the encrypted information to the vehicle end so that the vehicle end can update a current key stored by the vehicle end according to the encrypted information;
the second transmission module is used for receiving vehicle end updating success information sent by the vehicle end and sending the vehicle end updating success information to the cloud server;
and the key updating module is used for receiving the new key sent by the cloud server so as to control the vehicle terminal through the new key.
5. A method for updating a vehicle electronic key at a vehicle end is characterized by comprising the following steps:
establishing communication connection with a mobile terminal within a preset distance range, and receiving encrypted information downloaded by the mobile terminal from a cloud server;
acquiring a new key in the encrypted information according to the encrypted information;
updating the current key stored currently according to the new key;
and sending vehicle end updating success information to the cloud server through the mobile terminal so that the mobile terminal can obtain the new key from the cloud server.
6. The method for updating the vehicle electronic key at the vehicle end according to claim 5, wherein the obtaining a new key in the encrypted information according to the encrypted information comprises:
decrypting the encrypted information to obtain a new key, a current key and a communication key at least contained in the encrypted information;
and verifying the current key and the communication key, and when the verification is passed, executing the operation of updating the current key stored currently according to the new key.
7. The method for updating the vehicle electronic key at the vehicle end according to claim 5, wherein the encrypted information further comprises user information, mobile terminal information and vehicle end information;
after the vehicle end updating success information is sent to the cloud server through the mobile terminal, the method further comprises the following steps:
receiving a vehicle control instruction sent by the mobile terminal;
and verifying the new key, the user information, the mobile terminal information and the vehicle terminal information contained in the vehicle control command, and responding to the vehicle control command to control and operate the vehicle when the verification is passed.
8. An apparatus for updating an electronic key of a vehicle at a vehicle side, comprising:
the information acquisition module is used for establishing communication connection with the mobile terminal within a preset distance range and receiving encrypted information downloaded by the mobile terminal from the cloud server;
the information decryption module is used for acquiring a new key in the encrypted information according to the encrypted information;
the key updating module is used for updating the current key stored currently according to the new key;
and the information sending module is used for sending vehicle end updating success information to the cloud server through the mobile terminal so that the mobile terminal can obtain the new key from the cloud server.
9. An electronic key system for updating a vehicle is characterized by comprising a cloud server, a mobile terminal and a vehicle end;
wherein the mobile terminal is used for executing the operation steps of implementing the method for updating the vehicle electronic key by the mobile terminal according to any one of claims 1 to 3;
the vehicle end is used for executing the operation steps of implementing the method for updating the vehicle electronic key at the vehicle end according to any one of claims 5 to 7.
10. The system for updating the vehicle electronic key according to claim 9, wherein the communication connection established between the mobile terminal and the vehicle end is any one of a bluetooth connection, an NFC connection or a hot spot connection opened by the mobile terminal.
CN202010200423.3A 2020-03-20 2020-03-20 Updating vehicle electronic key method, device and system Pending CN111402464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010200423.3A CN111402464A (en) 2020-03-20 2020-03-20 Updating vehicle electronic key method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010200423.3A CN111402464A (en) 2020-03-20 2020-03-20 Updating vehicle electronic key method, device and system

Publications (1)

Publication Number Publication Date
CN111402464A true CN111402464A (en) 2020-07-10

Family

ID=71432704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010200423.3A Pending CN111402464A (en) 2020-03-20 2020-03-20 Updating vehicle electronic key method, device and system

Country Status (1)

Country Link
CN (1) CN111402464A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866014A (en) * 2020-07-29 2020-10-30 中国联合网络通信集团有限公司 A vehicle information protection method and device
CN111935302A (en) * 2020-08-20 2020-11-13 捷德(中国)科技有限公司 Key management device, method and equipment
CN113362504A (en) * 2021-06-30 2021-09-07 江铃汽车股份有限公司 NFC mobile phone intelligent key implementation method
CN113645590A (en) * 2021-07-16 2021-11-12 北汽福田汽车股份有限公司 Method, apparatus, device and medium for remotely controlling vehicle based on encryption algorithm
CN114093064A (en) * 2021-11-24 2022-02-25 深圳市道通科技股份有限公司 Automobile remote control key matching system and method and automobile communication interface equipment
CN114670779A (en) * 2022-04-07 2022-06-28 浙江极氪智能科技有限公司 A digital key sharing method and system
CN115696323A (en) * 2022-10-24 2023-02-03 重庆长安汽车股份有限公司 A vehicle key update method, device and system
CN119479116A (en) * 2024-11-15 2025-02-18 青岛海尔科技有限公司 Information updating method and device, storage medium, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130317693A1 (en) * 2012-05-23 2013-11-28 Global Integrated Technologies, Inc. Rental/car-share vehicle access and management system and method
CN105976466A (en) * 2016-05-03 2016-09-28 科世达(上海)管理有限公司 Car access control opening method
CN109673000A (en) * 2019-01-29 2019-04-23 上海博泰悦臻网络技术服务有限公司 The update method and system of bluetooth key, storage medium and vehicle Cloud Server
CN110111472A (en) * 2019-05-16 2019-08-09 广州小鹏汽车科技有限公司 Vehicle key control method and device
CN110176093A (en) * 2019-05-24 2019-08-27 上海博泰悦臻网络技术服务有限公司 Control method for vehicle and system based on bluetooth key

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130317693A1 (en) * 2012-05-23 2013-11-28 Global Integrated Technologies, Inc. Rental/car-share vehicle access and management system and method
CN105976466A (en) * 2016-05-03 2016-09-28 科世达(上海)管理有限公司 Car access control opening method
CN109673000A (en) * 2019-01-29 2019-04-23 上海博泰悦臻网络技术服务有限公司 The update method and system of bluetooth key, storage medium and vehicle Cloud Server
CN110111472A (en) * 2019-05-16 2019-08-09 广州小鹏汽车科技有限公司 Vehicle key control method and device
CN110176093A (en) * 2019-05-24 2019-08-27 上海博泰悦臻网络技术服务有限公司 Control method for vehicle and system based on bluetooth key

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866014A (en) * 2020-07-29 2020-10-30 中国联合网络通信集团有限公司 A vehicle information protection method and device
CN111866014B (en) * 2020-07-29 2022-02-11 中国联合网络通信集团有限公司 Vehicle information protection method and device
CN111935302A (en) * 2020-08-20 2020-11-13 捷德(中国)科技有限公司 Key management device, method and equipment
CN113362504A (en) * 2021-06-30 2021-09-07 江铃汽车股份有限公司 NFC mobile phone intelligent key implementation method
CN113362504B (en) * 2021-06-30 2022-10-28 江铃汽车股份有限公司 NFC mobile phone intelligent key implementation method
CN113645590A (en) * 2021-07-16 2021-11-12 北汽福田汽车股份有限公司 Method, apparatus, device and medium for remotely controlling vehicle based on encryption algorithm
CN113645590B (en) * 2021-07-16 2023-10-03 北汽福田汽车股份有限公司 Method, device, equipment and medium for remotely controlling vehicle based on encryption algorithm
CN114093064A (en) * 2021-11-24 2022-02-25 深圳市道通科技股份有限公司 Automobile remote control key matching system and method and automobile communication interface equipment
CN114670779A (en) * 2022-04-07 2022-06-28 浙江极氪智能科技有限公司 A digital key sharing method and system
CN115696323A (en) * 2022-10-24 2023-02-03 重庆长安汽车股份有限公司 A vehicle key update method, device and system
CN115696323B (en) * 2022-10-24 2025-05-16 重庆长安汽车股份有限公司 Vehicle key updating method, device and system
CN119479116A (en) * 2024-11-15 2025-02-18 青岛海尔科技有限公司 Information updating method and device, storage medium, and electronic device

Similar Documents

Publication Publication Date Title
CN111402464A (en) Updating vehicle electronic key method, device and system
CN106453269B (en) Internet of vehicles safety communication method, vehicle-mounted terminal, server and system
EP3723399A1 (en) Identity verification method and apparatus
JP4524059B2 (en) Method and apparatus for performing secure data transfer in a wireless communication network
CN108762791A (en) Firmware upgrade method and device
EP3446502B1 (en) Method, servers and system for downloading an updated profile
JP2010532107A (en) Secure transfer of soft SIM credentials
CN107251106A (en) The method securely transmitted for virtual key and the mirror method for distinguishing for mobile terminal
JP2008529440A (en) Wireless network system and communication method using the same
JP2010259074A (en) Setting up sensitive sessions based on wireless application protocols
KR20160067776A (en) A method of provisioning a subscriber profile for a secure module
EP4068834A1 (en) Initial security configuration method, security module, and terminal
WO2009106003A1 (en) An apparatus and a method for implementing access authentication of mobile phone in wireless local area network
CN111031085B (en) Communication method and device between Internet of things equipment and remote computer system
CN109218263A (en) A kind of control method and device
EP2291015A1 (en) A method for communicating data between a secure element and a network access point and a corresponding secure element
CN115134154B (en) Authentication method, authentication device, method and system for remotely controlling vehicle
US20200120495A1 (en) Mitigation of problems arising from sim key leakage
CN102457842A (en) Mobile phone transaction method, device and system
CN116346978A (en) Terminal device and data processing method of terminal device
CN111357305B (en) Communication method, device, system and storage medium of mobile platform
CN107566112A (en) Dynamic encryption and decryption method and server
CN101895538B (en) Method and system for establishing data exchange channels, smart card and server
CN116366759A (en) Terminal device and data processing method of terminal device
JP4536051B2 (en) Authentication system, authentication method, authentication server, wireless LAN terminal, and program for authenticating wireless LAN terminal

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