[go: up one dir, main page]

CN117240481A - Vehicle control method, device, computer readable storage medium and vehicle equipment - Google Patents

Vehicle control method, device, computer readable storage medium and vehicle equipment Download PDF

Info

Publication number
CN117240481A
CN117240481A CN202210631587.0A CN202210631587A CN117240481A CN 117240481 A CN117240481 A CN 117240481A CN 202210631587 A CN202210631587 A CN 202210631587A CN 117240481 A CN117240481 A CN 117240481A
Authority
CN
China
Prior art keywords
vehicle
authority
machine
instruction
control
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
CN202210631587.0A
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.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor 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 Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202210631587.0A priority Critical patent/CN117240481A/en
Publication of CN117240481A publication Critical patent/CN117240481A/en
Pending legal-status Critical Current

Links

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

本公开提供的车辆控制方法、装置、计算机可读存储介质及车机设备,该方法应用于车辆的车机设备,可以获得用户端设备发送的接入车机请求;在接入车机请求满足预设接入条件的情况下,生成与用户端设备对应的车机权限密钥;将车机权限密钥发送至用户端设备,以使用户端设备利用车机权限密钥对控制指令进行加密,并将加密后的控制指令上传至预设指令池中;利用车机权限密钥对预设指令池中的控制指令进行解密,获得未加密的控制指令;利用车机权限密钥对控制指令进行权限验证,在权限验证通过的情况下,执行控制指令对车辆进行控制。本公开对用户端设备配置车机权限密钥,方便用户端设备在车机权限密钥的权限范围内对车辆提供的功能和服务进行操控。

The vehicle control method, device, computer-readable storage medium and vehicle-machine equipment provided by the present disclosure are applied to the vehicle-machine equipment of the vehicle and can obtain the access-vehicle-machine request sent by the client device; when the access-vehicle-machine request satisfies Under the preset access conditions, generate the vehicle-machine authority key corresponding to the user-end device; send the vehicle-machine authority key to the user-end device so that the user-end device uses the vehicle-machine authority key to encrypt the control instructions , and upload the encrypted control instructions to the preset instruction pool; use the vehicle and machine authority keys to decrypt the control instructions in the preset instruction pool to obtain unencrypted control instructions; use the vehicle and engine authority keys to decrypt the control instructions Perform authority verification, and if the authority verification passes, execute the control instructions to control the vehicle. This disclosure configures the vehicle-machine permission key for the user-side device, so that the user-side device can control the functions and services provided by the vehicle within the scope of the vehicle-machine permission key.

Description

车辆控制方法、装置、计算机可读存储介质及车机设备Vehicle control method, device, computer-readable storage medium and vehicle equipment

技术领域Technical field

本公开涉及车辆控制技术领域,尤其涉及车辆控制方法、装置、计算机可读存储介质及车机设备。The present disclosure relates to the field of vehicle control technology, and in particular to vehicle control methods, devices, computer-readable storage media and vehicle equipment.

背景技术Background technique

近年来,随着交通和汽车智能化、网联化的快速发展,车辆可为驾乘人员提供多种多样的功能和服务。例如:显示大屏、语音交互、智能座椅、智能空调、音响系统、香薰系统以及互联网。In recent years, with the rapid development of intelligent and connected transportation and automobiles, vehicles can provide drivers and passengers with a variety of functions and services. For example: large display screens, voice interaction, smart seats, smart air conditioners, sound systems, aromatherapy systems and the Internet.

当前,车辆所提供的功能和服务主要通过用户在车机设备的操作进行控制,车机设备通常设置在车辆前排的中控台上,主驾座位和副驾座位上的用户可以比较方便地使用车机设备对车辆进行操控,例如:对多媒体播放的内容进行切换。然而,在后排座位上的乘客有对车机设备进行操控的需求时,就需要主驾座位或副驾座位上的用户协助替代进行操控,甚至一些涉及车主权限的功能和服务需要车主进行操作,而车主通常是车辆的驾驶人员。在行车过程中,若驾驶人员频繁在车机设备上进行操控,容易影响车辆行驶安全。Currently, the functions and services provided by the vehicle are mainly controlled by the user's operation of the vehicle equipment. The vehicle equipment is usually set on the center console in the front row of the vehicle, and can be used more conveniently by users in the driver's seat and passenger seat. The vehicle equipment controls the vehicle, for example, switching the content played by multimedia. However, when the passengers in the rear seats need to control the vehicle equipment, they need the assistance of the user in the driver's seat or the passenger's seat to perform the control instead. Even some functions and services involving the car owner's authority require the car owner to operate. The owner is usually the driver of the vehicle. During driving, if the driver frequently controls the vehicle equipment, it may easily affect vehicle driving safety.

因此,如何实现车辆上的用户对车辆上的功能和服务的共享控制,成为本领域技术人员急需解决的技术问题。Therefore, how to realize shared control of functions and services on the vehicle by users on the vehicle has become an urgent technical problem that those skilled in the art need to solve.

发明内容Contents of the invention

鉴于上述问题,本公开提供一种克服上述问题或者至少部分地解决上述问题的车辆控制方法、装置、计算机可读存储介质及车机设备,技术方案如下:In view of the above problems, the present disclosure provides a vehicle control method, device, computer-readable storage medium and vehicle equipment that overcomes the above problems or at least partially solves the above problems. The technical solution is as follows:

一种车辆控制方法,应用于车辆的车机设备,所述方法包括:A vehicle control method, applied to vehicle equipment, the method includes:

获得用户端设备发送的接入车机请求;Obtain the access vehicle request sent by the client device;

在所述接入车机请求满足预设接入条件的情况下,生成与所述用户端设备对应的车机权限密钥;When the request to access the vehicle-machine meets the preset access conditions, generate a vehicle-machine authority key corresponding to the client device;

将所述车机权限密钥发送至所述用户端设备,以使所述用户端设备利用所述车机权限密钥对控制指令进行加密,并将加密后的所述控制指令上传至预设指令池中;Send the vehicle-machine authority key to the client device, so that the client device uses the vehicle-machine authority key to encrypt the control instructions, and uploads the encrypted control instructions to the default In the command pool;

利用所述车机权限密钥对所述预设指令池中的所述控制指令进行解密,获得未加密的所述控制指令;Use the vehicle-machine authority key to decrypt the control instructions in the preset instruction pool to obtain the unencrypted control instructions;

利用所述车机权限密钥对所述控制指令进行权限验证,在权限验证通过的情况下,执行所述控制指令对所述车辆进行控制。The vehicle-machine authority key is used to perform authority verification on the control instruction. If the authority verification is passed, the control instruction is executed to control the vehicle.

可选的,所述在所述接入车机请求满足预设接入条件的情况下,生成与所述用户端设备对应的车机权限密钥,包括:Optionally, when the request for accessing the vehicle-machine satisfies preset access conditions, generating a vehicle-machine authority key corresponding to the client device includes:

对所述接入车机请求进行合法性验证,获得合法性验证结果;Perform legality verification on the access vehicle-machine request and obtain the legality verification result;

在所述合法性验证结果为通过的情况下,获得与所述用户端设备对应的车机权限配置信息;When the legality verification result is passed, obtain the vehicle authority configuration information corresponding to the user device;

至少利用所述车机权限配置信息,生成与所述用户端设备对应的车机权限密钥。At least the vehicle-machine authority configuration information is used to generate a vehicle-machine authority key corresponding to the client device.

可选的,所述接入车机请求携带有与所述用户端设备对应的身份标识,所述至少利用所述车机权限配置信息,生成与所述用户端设备对应的车机权限密钥,包括:Optionally, the vehicle-machine access request carries an identity identifier corresponding to the user-side device, and at least the vehicle-machine permission configuration information is used to generate a vehicle-machine permission key corresponding to the user-side device. ,include:

对所述车机权限配置信息、所述身份标识以及所述车机设备的设备标识进行组合加密,生成与所述用户端设备对应的车机权限密钥。The vehicle-machine authority configuration information, the identity identifier, and the device identification of the vehicle-machine device are combined and encrypted to generate a vehicle-machine authority key corresponding to the client device.

可选的,所述车机权限密钥包括加密后的所述车机权限配置信息,所述车机权限配置信息包括与所述用户端设备对应的权限等级和授权期限,所述利用所述车机权限密钥对所述控制指令进行权限验证,包括:Optionally, the vehicle-machine authority key includes encrypted vehicle-machine authority configuration information, and the vehicle-machine authority configuration information includes the authority level and authorization period corresponding to the user-end device. The use of the The vehicle-machine authority key performs authority verification on the control instructions, including:

对所述车机权限密钥进行解密,获得所述权限等级和所述授权期限;Decrypt the vehicle-machine authority key to obtain the authority level and authorization period;

利用所述权限等级和所述授权期限对所述控制指令进行权限验证。The authority level and the authorization period are used to perform authority verification on the control instruction.

可选的,所述控制指令包括指令信息,所述指令信息包括指令类型、指令名称、指令代号以及指令发起时间,所述利用所述权限等级和所述授权期限对所述控制指令进行权限验证,包括:Optionally, the control instruction includes instruction information, which includes instruction type, instruction name, instruction code, and instruction initiation time, and the authority level and authorization period are used to perform authority verification on the control instruction. ,include:

验证所述控制指令中的所述指令类型、所述指令名称以及所述指令代号是否处于所述权限等级对应的权限范围,获得第一验证结果;Verify whether the instruction type, the instruction name and the instruction code in the control instruction are within the authority range corresponding to the authority level, and obtain a first verification result;

验证所述控制指令中的所述指令发起时间是否处于所述授权期限以内,获得第二验证结果;Verify whether the instruction initiation time in the control instruction is within the authorization period, and obtain a second verification result;

在所述第一验证结果和所述第二验证结果均为验证通过的情况下,确定对所述控制指令的权限验证通过。When both the first verification result and the second verification result are verification passes, it is determined that the authority verification for the control instruction passes.

可选的,所述获得与所述用户端设备对应的车机权限配置信息,包括:Optionally, obtaining the vehicle-machine permission configuration information corresponding to the user device includes:

展示与所述用户端设备对应的车机权限配置界面;Display the vehicle and machine permission configuration interface corresponding to the user device;

获得用户在所述车机权限配置界面输入的车机权限配置信息。Obtain the vehicle and computer permission configuration information input by the user on the vehicle and computer permission configuration interface.

可选的,所述控制指令为对所述车机设备中的应用程序的第一控制指令,或,对所述车辆中的可控设备的第二控制指令。Optionally, the control instruction is a first control instruction for an application program in the vehicle device, or a second control instruction for a controllable device in the vehicle.

一种车辆控制装置,应用于车辆的车机设备,所述装置包括:请求获得单元、密钥生成单元、密钥发送单元、控制指令解密单元、权限验证单元以及指令执行单元,A vehicle control device, applied to vehicle equipment, the device includes: a request acquisition unit, a key generation unit, a key sending unit, a control instruction decryption unit, an authority verification unit and an instruction execution unit,

所述请求获得单元,用于获得用户端设备发送的接入车机请求;The request obtaining unit is used to obtain the access vehicle request sent by the user terminal device;

所述密钥生成单元,用于在所述接入车机请求满足预设接入条件的情况下,生成与所述用户端设备对应的车机权限密钥;The key generation unit is configured to generate a vehicle-machine authority key corresponding to the user-side device when the request to access the vehicle-machine meets preset access conditions;

所述密钥发送单元,用于将所述车机权限密钥发送至所述用户端设备,以使所述用户端设备利用所述车机权限密钥对控制指令进行加密,并将加密后的所述控制指令上传至预设指令池中;The key sending unit is used to send the vehicle-machine authority key to the client device, so that the user-side device uses the vehicle-machine authority key to encrypt the control instruction, and sends the encrypted The control instructions are uploaded to the preset instruction pool;

所述控制指令解密单元,用于利用所述车机权限密钥对所述预设指令池中的所述控制指令进行解密,获得未加密的所述控制指令;The control instruction decryption unit is used to decrypt the control instructions in the preset instruction pool using the vehicle-machine authority key to obtain the unencrypted control instructions;

所述权限验证单元,用于利用所述车机权限密钥对所述控制指令进行权限验证,在权限验证通过的情况下,触发所述车辆控制单元;The authority verification unit is used to perform authority verification on the control instructions using the vehicle authority key, and trigger the vehicle control unit if the authority verification passes;

所述指令执行单元,用于执行所述控制指令对所述车辆进行控制。The instruction execution unit is used to execute the control instruction to control the vehicle.

一种计算机可读存储介质,其上存储有程序,所述程序被处理器执行时实现上述任一项所述的车辆控制方法。A computer-readable storage medium has a program stored thereon. When the program is executed by a processor, the vehicle control method described in any one of the above is implemented.

一种车机设备,所述车机设备包括至少一个处理器、以及与处理器连接的至少一个存储器、总线;其中,所述处理器、所述存储器通过所述总线完成相互间的通信;所述处理器用于调用所述存储器中的程序指令,以执行上述任一项所述的车辆控制方法。A vehicle equipment, which includes at least one processor, and at least one memory and bus connected to the processor; wherein the processor and the memory complete communication with each other through the bus; The processor is configured to call program instructions in the memory to execute any one of the above vehicle control methods.

借由上述技术方案,本公开提供的车辆控制方法、装置、计算机可读存储介质及车机设备,该方法应用于车辆的车机设备,可以获得用户端设备发送的接入车机请求;在接入车机请求满足预设接入条件的情况下,生成与用户端设备对应的车机权限密钥;将车机权限密钥发送至用户端设备,以使用户端设备利用车机权限密钥对控制指令进行加密,并将加密后的控制指令上传至预设指令池中;利用车机权限密钥对预设指令池中的控制指令进行解密,获得未加密的控制指令;利用车机权限密钥对控制指令进行权限验证,在权限验证通过的情况下,执行控制指令对车辆进行控制。本公开对用户端设备配置车机权限密钥,方便用户端设备在车机权限密钥的权限范围内对车辆提供的功能和服务进行操控。Through the above technical solution, the present disclosure provides a vehicle control method, device, computer-readable storage medium and vehicle-machine equipment. This method is applied to the vehicle-machine equipment of the vehicle and can obtain the access vehicle-machine request sent by the client device; in When the request to access the vehicle meets the preset access conditions, a vehicle-machine permission key corresponding to the user-side device is generated; the vehicle-machine permission key is sent to the user-side device so that the client device can use the vehicle-machine permission key The key is used to encrypt the control instructions, and the encrypted control instructions are uploaded to the preset instruction pool; the vehicle machine authority key is used to decrypt the control instructions in the preset instruction pool, and the unencrypted control instructions are obtained; the vehicle machine is used to The authority key performs authority verification on the control instructions. If the authority verification is passed, the control instructions are executed to control the vehicle. This disclosure configures the vehicle-machine permission key for the user-side device, so that the user-side device can control the functions and services provided by the vehicle within the scope of the vehicle-machine permission key.

上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。The above description is only an overview of the technical solutions of the present disclosure. In order to have a clearer understanding of the technical means of the present disclosure, they can be implemented according to the content of the description, and in order to make the above and other objects, features and advantages of the present disclosure more obvious and understandable. , the specific implementation modes of the present disclosure are specifically listed below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the disclosure. Also throughout the drawings, the same reference characters are used to designate the same components. In the attached picture:

图1示出了本公开实施例提供的车辆控制方法的一种实施方式的流程图;Figure 1 shows a flow chart of an implementation of a vehicle control method provided by an embodiment of the present disclosure;

图2示出了本公开实施例提供的车辆控制方法的另一种实施方式的流程图;Figure 2 shows a flowchart of another implementation of a vehicle control method provided by an embodiment of the present disclosure;

图3示出了本公开实施例提供的车辆控制装置的结构示意图;Figure 3 shows a schematic structural diagram of a vehicle control device provided by an embodiment of the present disclosure;

图4示出了本公开实施例提供的电子设备的结构示意图。FIG. 4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a thorough understanding of the disclosure, and to fully convey the scope of the disclosure to those skilled in the art.

如图1所示,本公开实施例提供的车辆控制方法的一种实施方式的流程图,该车辆控制方法可以应用于车辆的车机设备,该车辆控制方法可以包括:As shown in Figure 1, a flow chart of an implementation of a vehicle control method provided by an embodiment of the present disclosure is shown. The vehicle control method can be applied to the vehicle equipment of the vehicle. The vehicle control method can include:

S100、获得用户端设备发送的接入车机请求。S100. Obtain the vehicle-machine access request sent by the client device.

其中,车机设备可以是能够与其他设备进行信息通讯连接的车载设备。车机设备可以设置在车辆中控台和/或车辆座椅背部。车机设备中搭载有相应的车机系统以及安装有车载信息产品的应用程序。例如:车载信息产品可以是导航、音乐、视频、广播、浏览器以及聊天工具。Among them, the vehicle-mounted device may be a vehicle-mounted device capable of information communication connection with other devices. The vehicle equipment can be installed on the vehicle center console and/or on the back of the vehicle seat. The vehicle equipment is equipped with corresponding vehicle systems and applications installed with in-vehicle information products. For example: in-vehicle information products can be navigation, music, video, radio, browsers and chat tools.

其中,用户端设备可以是移动智能设备。例如:用户端设备可以是智能手机、平板电脑、笔记本电脑、智能手表、智能手环以及无线耳机。Wherein, the client device may be a mobile smart device. For example: client devices can be smartphones, tablets, laptops, smart watches, smart bracelets, and wireless headsets.

用户端设备的使用者可以通过该用户端设备向车机设备发送接入车机请求。The user of the client device can send a request to access the vehicle device through the client device to the vehicle device.

可选的,用户端设备的使用者可以通过用户端设备扫描车机设备提供的车机接入信息码,在跳转出的车机接入界面输入相应的申请信息,从而生成接入车机请求并将该接入车机请求发送至车机设备。可选的,信息码可以为二维码。本公开实施例通过提供信息码,可以方便用户端设备生成接入车机请求,减小用户端设备接入车机设备所耗费的时间。Optionally, the user of the client device can scan the vehicle-machine access information code provided by the vehicle-machine device through the client device, and enter the corresponding application information on the jumped-out vehicle-machine access interface, thereby generating a vehicle-machine access information code. Request and send the access vehicle request to the vehicle device. Optionally, the information code can be a QR code. By providing an information code, the disclosed embodiments can facilitate the user-side device to generate a request for accessing the vehicle-machine device, thereby reducing the time it takes for the user-side device to access the vehicle-machine device.

可选的,用户端设备的使用者可以打开用户端设备上安装好的与车机设备对应的车机应用程序,在应用程序中输入相应的申请信息,从而生成接入车机请求并将该接入车机请求发送至车机设备。本公开实施例通过提供车机应用程序,可以方便用户端设备多次接入车机设备,简化了用户端设备多次接入车机设备的流程。Optionally, the user of the client device can open the vehicle-machine application installed on the client device corresponding to the vehicle-machine device, and enter the corresponding application information in the application, thereby generating a request for accessing the vehicle-machine and sending the request. The request to access the vehicle is sent to the vehicle device. By providing a vehicle-machine application, the disclosed embodiments can facilitate the user-side device to access the vehicle-machine device multiple times, and simplify the process of the user-side device accessing the vehicle-machine device multiple times.

可选的,接入车机请求携带有与用户端设备对应的身份标识。其中,该身份标识可以为手机号码、国际移动用户识别码(International Mobile SubscriberIdentification Number,IMSI)、国际移动设备识别码(International Mobile EquipmentIdentification Number,IMEI)、电子序列号(Electronic Serial Numbers,ESN)以及移动设备序列号(Mobile Equipment ID,MEID)中的一种或多种。Optionally, the request to access the vehicle carries an identity corresponding to the user device. Among them, the identity identifier can be a mobile phone number, International Mobile Subscriber Identification Number (IMSI), International Mobile Equipment Identification Number (IMEI), Electronic Serial Number (Electronic Serial Numbers, ESN) and mobile phone number. One or more of the device serial numbers (Mobile Equipment ID, MEID).

S200、在接入车机请求满足预设接入条件的情况下,生成与用户端设备对应的车机权限密钥。S200: When the request for accessing the vehicle-machine meets the preset access conditions, generate a vehicle-machine permission key corresponding to the client device.

本公开实施例在接入车机请求满足预设接入条件的情况下,可以通过预设通信协议建立车机设备与用户端设备之间的通信连接。可选的,预设通信协议可以为TCP协议或UDP协议。In the embodiment of the present disclosure, when the request to access the vehicle-machine meets the preset access conditions, a communication connection between the vehicle-machine device and the client device can be established through a preset communication protocol. Optionally, the preset communication protocol can be TCP protocol or UDP protocol.

可选的,预设接入条件可以包括合法性验证和权限配置。基于图1所示方法,如图2所示,本公开实施例提供的车辆控制方法的另一种实施方式的流程图,步骤S200可以包括:Optionally, the preset access conditions may include legality verification and permission configuration. Based on the method shown in Figure 1, as shown in Figure 2, a flow chart of another implementation of the vehicle control method provided by an embodiment of the present disclosure, step S200 may include:

S210、对接入车机请求进行合法性验证,获得合法性验证结果。S210: Perform legality verification on the request to access the vehicle and obtain the legality verification result.

可选的,本公开实施例在接收到接入车机请求后,可以展示出合法性验证界面,其中,该合法性验证界面中包括与该接入车机请求对应的用户端设备的信息以及合法性验证选项按钮。本公开实施例可以响应于用户对合法性验证选项按钮的触发操作,获得合法性验证结果。合法性验证选项按钮包括接受按钮和拒绝按钮。在接受按钮被触发的情况下,确定合法性验证结果为通过。在拒绝按钮被触发的情况下,确定合法性验证结果为不通过。Optionally, after receiving a vehicle-machine access request, the embodiment of the present disclosure may display a legality verification interface, where the legality verification interface includes information about the client device corresponding to the vehicle-machine access request and Legality verification option button. Embodiments of the present disclosure can obtain a legality verification result in response to the user's triggering operation on the legality verification option button. Legality verification option buttons include accept button and reject button. When the accept button is triggered, it is determined that the legality verification result is passed. When the reject button is triggered, it is determined that the legality verification result is failed.

可以理解的是,用户需要在车机设备登录超级管理者(Administrators)账号,在超级管理者账号已登录的情况下,对接入车机请求进行合法性验证。It is understandable that users need to log in to the super administrators account on the vehicle and computer equipment. When the super administrator account is logged in, the legality of the request to access the vehicle and computer is verified.

可选的,本公开实施例可以在合法性验证结果为不通过的情况下,向用户端设备返回拒绝接入消息。Optionally, the embodiment of the present disclosure may return an access denial message to the user device when the legality verification result is failed.

S220、在合法性验证结果为通过的情况下,获得与用户端设备对应的车机权限配置信息。S220: When the legality verification result is passed, obtain the vehicle permission configuration information corresponding to the user device.

可选的,本公开实施例可以在合法性验证结果为通过的情况下,展示与用户端设备对应的车机权限配置界面。获得用户在车机权限配置界面输入的车机权限配置信息。Optionally, in the embodiment of the present disclosure, when the legality verification result is passed, the vehicle-machine permission configuration interface corresponding to the user device can be displayed. Obtain the vehicle and computer permission configuration information entered by the user on the vehicle and computer permission configuration interface.

具体的,用户可以在车机权限配置界面上,对用户端设备在车机设备上的控制权限进行勾选设置,根据勾选设置结果生成与用户端设备对应的车机权限配置信息。本公开实施例通过提供车机权限配置界面,方便用户对不同的用户端设备设置不同的车机权限配置信息,个性化管理不同用户端设备的控制权限。Specifically, the user can check and set the control permissions of the user device on the vehicle device on the vehicle and computer permission configuration interface, and generate the vehicle and computer permission configuration information corresponding to the user device according to the check setting results. By providing a vehicle-machine permission configuration interface, the disclosed embodiment facilitates users to set different vehicle-machine permission configuration information for different client devices, and personalized management of the control permissions of different client devices.

可选的,本公开实施例可以在合法性验证结果为通过的情况下,使用预先设置好的访客默认权限模板对用户端设备在车机设备上的控制权限进行设置,生成与用户端设备对应的车机权限配置信息。本公开实施例通过访客默认权限模板,可以快速地对用户端设备进行控制权限配置,减小用户端设备接入车机设备所耗费的时间。Optionally, in the embodiment of the present disclosure, when the legality verification result is passed, the preset visitor default permission template can be used to set the control permissions of the user-side device on the vehicle device, and generate a user-side device corresponding to the Vehicle and machine permission configuration information. The embodiment of the present disclosure can quickly configure control permissions for the user device through the guest default permission template, thereby reducing the time it takes for the user device to access the vehicle equipment.

可选的,车机权限配置信息可以包括与用户端设备对应的权限等级和授权期限。权限等级用于表征用户端设备对车机设备的控制范围和控制优先级。授权期限用于表征用户端设备对车机设备的允许控制期间。本公开实施例通过权限等级和授权期限,可以明确用户端设备在车机设备上的可操控范围,方便对用户端设备发送的控制指令进行权限验证。Optionally, the vehicle-machine permission configuration information may include the permission level and authorization period corresponding to the user device. The permission level is used to characterize the control scope and control priority of the user device on the vehicle equipment. The authorization period is used to characterize the period during which the user device is allowed to control the vehicle device. The disclosed embodiments can clarify the controllable range of the user-end device on the vehicle device through the authority level and authorization period, and facilitate authority verification of the control instructions sent by the user-end device.

S230、至少利用车机权限配置信息,生成与用户端设备对应的车机权限密钥。S230: At least use the vehicle-machine permission configuration information to generate a vehicle-machine permission key corresponding to the client device.

可选的,本公开实施例可以对车机权限配置信息进行加密,生成与用户端设备对应的车机权限密钥,其中,车机权限密钥包括加密后的车机权限配置信息。本公开实施例将加密后的车机权限配置信息作为与用户端设备对应的车机权限密钥,使得车机权限密钥作为控制指令传输的授权文件的同时,方便对用户端设备发送的控制指令进行权限验证。Optionally, embodiments of the present disclosure may encrypt the vehicle-machine authority configuration information and generate a vehicle-machine authority key corresponding to the user device, where the vehicle-machine authority key includes the encrypted vehicle-machine authority configuration information. In this disclosed embodiment, the encrypted vehicle-machine authority configuration information is used as the vehicle-machine authority key corresponding to the user-end device, so that the vehicle-machine authority key is used as an authorization file for control instruction transmission, and at the same time, it facilitates the control of the transmission of the user-end device. Instructions for permission verification.

可选的,本公开实施例可以对车机权限配置信息、身份标识以及车机设备的设备标识进行组合加密,生成与用户端设备对应的车机权限密钥。Optionally, embodiments of the present disclosure may perform combined encryption on the vehicle-machine authority configuration information, identity identification, and device identification of the vehicle-machine device to generate a vehicle-machine authority key corresponding to the user device.

具体的,本公开实施例可以将车机权限配置信息、身份标识以及车机设备的设备标识的字符串进行组合,获得组合字符串,再按照第一预设加密算法对该组合字符串进行加密,生成与用户端设备对应的车机权限密钥。可选的,第一预设加密算法可以为散列函数加密算法。可选的,该散列函数加密算法可以为MD5加密算法。本公开实施例通过对车机权限配置信息、身份标识以及车机设备的设备标识的组合字符串进行加密,可以保证车机权限密钥的唯一性,方便车机设备在多用户端设备接入的情况下,识别不同用户端设备发送的控制指令,并对各控制指令分别进行相应的权限验证。Specifically, embodiments of the present disclosure can combine the vehicle-machine authority configuration information, the identity identifier, and the string string of the device identification of the vehicle-machine device to obtain the combined string, and then encrypt the combined string according to the first preset encryption algorithm. , generate the vehicle-machine permission key corresponding to the user device. Optionally, the first preset encryption algorithm may be a hash function encryption algorithm. Optionally, the hash function encryption algorithm can be the MD5 encryption algorithm. By encrypting the combined string of vehicle-machine permission configuration information, identity identification and device identification of the vehicle-machine equipment, the disclosed embodiment can ensure the uniqueness of the vehicle-machine permission key and facilitate the access of the vehicle-machine equipment to multiple client devices. In this case, the control instructions sent by different client devices are identified, and corresponding authority verification is performed on each control instruction.

S300、将车机权限密钥发送至用户端设备,以使用户端设备利用车机权限密钥对控制指令进行加密,并将加密后的控制指令上传至预设指令池中。S300: Send the vehicle-machine authority key to the client device, so that the client device uses the vehicle-machine authority key to encrypt the control instructions, and uploads the encrypted control instructions to the preset instruction pool.

可选的,控制指令可以包括指令信息,指令信息包括指令类型、指令名称、指令代号以及指令发起时间,其中,指令类型用于指示控制指令的控制目标。指令名称用于指示对控制目标的控制目的。指令代号用于车机设备对控制指令的控制目标和控制目的进行识别。指令发起时间用于指示控制指令从用户端设备发送的时间。可选的,指令信息还可以包括发起控制指令的用户端设备的身份标识。Optionally, the control instruction may include instruction information, which includes instruction type, instruction name, instruction code, and instruction initiation time, where the instruction type is used to indicate the control target of the control instruction. The instruction name is used to indicate the control purpose of the control target. The instruction code is used by the vehicle and machine equipment to identify the control target and control purpose of the control instruction. The command initiation time is used to indicate the time when the control command is sent from the client device. Optionally, the instruction information may also include the identity of the user device that initiated the control instruction.

可选的,控制指令可以为对车机设备中的应用程序的第一控制指令。可选的,车机设备中的应用程序可以包括导航APP、音乐APP、视频APP、广播APP、浏览器APP以及聊天工具APP。例如:第一控制指令可以是控制音乐APP中播放的音乐的音量大小和播放进度的指令。Optionally, the control instruction may be a first control instruction for an application program in the vehicle device. Optionally, applications in the vehicle device may include navigation APPs, music APPs, video APPs, broadcast APPs, browser APPs, and chat tool APPs. For example, the first control instruction may be an instruction to control the volume and playback progress of the music played in the music APP.

可选的,控制指令可以为对车辆中的可控设备的第二控制指令。可选的,车辆中的可控设备可以包括智能座椅、智能空调以及车辆内部氛围灯。例如:第二控制指令可以是控制智能座椅的靠背角度的指令。Optionally, the control instruction may be a second control instruction for a controllable device in the vehicle. Optionally, controllable devices in the vehicle can include smart seats, smart air conditioning, and vehicle interior ambient lighting. For example, the second control instruction may be an instruction to control the backrest angle of the smart seat.

可选的,用户端设备可以利用车机权限密钥,使用第二预设加密算法对控制指令进行加密。其中,第二预设加密算法可以与第一预设加密算法相同,也可以是用户端设备与车机设备预先协商好的非对称加密算法。例如:第二预设加密算法可以是RSA加密算法(RSAalgorithm)、数字签名算法(Digital Signature Algorithm,DSA)以及椭圆曲线签名算法(Elliptic Curve Digital Signature Algorithm,ECDSA)。本公开实施例通过对控制指令进行加密,可以保证控制指令在传输过程中的安全性。Optionally, the client device can use the vehicle authority key to encrypt the control instructions using a second preset encryption algorithm. The second preset encryption algorithm may be the same as the first preset encryption algorithm, or may be an asymmetric encryption algorithm pre-negotiated between the user terminal device and the vehicle device. For example, the second default encryption algorithm may be an RSA encryption algorithm (RSA algorithm), a digital signature algorithm (Digital Signature Algorithm, DSA), and an elliptic curve signature algorithm (Elliptic Curve Digital Signature Algorithm, ECDSA). By encrypting the control instructions, the embodiments of the present disclosure can ensure the security of the control instructions during transmission.

可选的,预设指令池可以是基于预设消息中间件的指令消息列表。可选的,预设消息中间件可以为kafka或redis。车机设备可以订阅该预设指令池。车机设备通过订阅预设指令池,可以实时检测预设指令池中的控制指令变化,实时对控制指令进行处理。用户端设备可以通过该预设指令池提供的指令通道发布控制指令。可选的,该预设指令池可以按照指令接收顺序对控制指令进行排序。可选的,在该预设指令池中存在对同一控制目标的不同权限等级的控制指令的情况下,本公开实施例可以滤除权限等级低的控制指令,保留权限等级最高的控制指令,避免车机设备在执行控制指令过程中的控制冲突问题。Optionally, the preset instruction pool may be an instruction message list based on the preset message middleware. Optional, the default message middleware can be kafka or redis. Vehicle-mounted equipment can subscribe to this preset command pool. By subscribing to the preset command pool, the vehicle equipment can detect changes in control commands in the preset command pool in real time and process the control commands in real time. The client device can issue control instructions through the instruction channel provided by the preset instruction pool. Optionally, the preset instruction pool can sort the control instructions according to the order of instruction reception. Optionally, when there are control instructions with different authority levels for the same control target in the preset instruction pool, the embodiment of the present disclosure can filter out the control instructions with low authority levels and retain the control instructions with the highest authority level to avoid The control conflict problem of vehicle and machine equipment during the execution of control instructions.

本公开实施例通过预设指令池,可以使得多个用户端设备与车机设备进行高并发的数据互联互通。车机设备通过对预设指令池进行订阅,无需与用户端设备建立握手连接,可实现多个用户端设备同时远程操控车机设备中的应用程序和车辆的可控设备。Embodiments of the present disclosure can enable high-concurrency data interconnection and interoperability between multiple client devices and vehicle-mounted devices through a preset command pool. By subscribing to the preset command pool, the vehicle device does not need to establish a handshake connection with the client device, and multiple client devices can remotely control the applications in the vehicle device and the controllable devices of the vehicle at the same time.

可选的,预设指令池可以对控制指令的指令信息进行持久化存储,在用户端设备和车机设备的连接过程中避免数据丢失。Optionally, the preset command pool can persistently store the command information of the control command to avoid data loss during the connection process between the user device and the vehicle device.

S400、利用车机权限密钥对预设指令池中的控制指令进行解密,获得未加密的控制指令。S400: Use the vehicle-machine authority key to decrypt the control instructions in the preset instruction pool to obtain unencrypted control instructions.

可以理解的是,本公开实施例可以利用车机权限密钥,使用与第二预设加密算法对应的解密算法,对预设指令池中的控制指令进行解密,获得未加密的控制指令。It can be understood that the embodiments of the present disclosure can use the vehicle-machine authority key and the decryption algorithm corresponding to the second preset encryption algorithm to decrypt the control instructions in the preset instruction pool to obtain unencrypted control instructions.

S500、利用车机权限密钥对控制指令进行权限验证,在权限验证通过的情况下,执行步骤S600。S500: Use the vehicle-machine authority key to perform authority verification on the control instructions. If the authority verification passes, perform step S600.

可选的,本公开实施例可以对车机权限密钥进行解密,获得权限等级和授权期限。利用权限等级和授权期限对控制指令进行权限验证。Optionally, the embodiment of the present disclosure can decrypt the vehicle-machine authority key to obtain the authority level and authorization period. Use the authority level and authorization period to verify the authority of the control instructions.

具体的,本公开实施例可以使用与第一预设加密算法对应的解密算法,对车机权限密钥进行解密,获得未加密的权限等级和授权期限,并利用权限等级和授权期限验证该控制指令进行权限验证,根据权限验证结果,确定是否执行该控制指令。本公开实施例通过对控制指令进行权限验证,避免车机设备执行不符合权限等级和超过授权期限的控制指令。Specifically, embodiments of the present disclosure can use the decryption algorithm corresponding to the first preset encryption algorithm to decrypt the vehicle authority key, obtain the unencrypted authority level and authorization period, and use the authority level and authorization period to verify the control. The instruction performs authority verification, and based on the authority verification result, determines whether to execute the control instruction. By performing authority verification on the control instructions, the disclosed embodiments prevent vehicle and machine equipment from executing control instructions that do not meet the authority level and exceed the authorization period.

可选的,本公开实施例可以验证控制指令中的指令类型、指令名称以及指令代号是否处于权限等级对应的权限范围,获得第一验证结果。Optionally, embodiments of the present disclosure can verify whether the instruction type, instruction name, and instruction code in the control instruction are within the authority range corresponding to the authority level, and obtain the first verification result.

具体的,若控制指令中的指令类型、指令名称以及指令代号处于权限等级对应的权限范围,则确定该控制指令的第一验证结果为通过,反之,则确定该控制指令的第一验证结果为不通过。本公开实施例通过验证控制指令是否超出权限等级对应的权限范围,可以避免执行超权限的控制指令,保证车辆控制的权限有序性。Specifically, if the instruction type, instruction name, and instruction code in the control instruction are within the authority range corresponding to the authority level, then the first verification result of the control instruction is determined to be passed. Otherwise, the first verification result of the control instruction is determined to be Fail. By verifying whether the control instructions exceed the authority range corresponding to the authority level, the disclosed embodiments can avoid executing control instructions that exceed authority and ensure the orderliness of vehicle control authority.

可选的,本公开实施例可以验证控制指令中的指令发起时间是否处于授权期限以内,获得第二验证结果。Optionally, the embodiment of the present disclosure can verify whether the instruction initiation time in the control instruction is within the authorization period to obtain a second verification result.

具体的,若控制指令中的指令发起时间处于授权期限以内,则确定该控制指令的第二验证结果为通过,反之,则确定该控制指令的第二验证结果为不通过。本公开实施例通过验证控制指令是否超出授权期限,可以避免执行授权已过期的用户端设备发送的控制指令,保证车辆控制的安全性。Specifically, if the instruction initiation time in the control instruction is within the authorization period, the second verification result of the control instruction is determined to be passed. Otherwise, the second verification result of the control instruction is determined to be failed. By verifying whether the control instructions exceed the authorization period, the disclosed embodiments can avoid executing control instructions sent by client devices whose authorization has expired, ensuring the safety of vehicle control.

可选的,本公开实施例可以在第一验证结果和第二验证结果均为验证通过的情况下,确定对控制指令的权限验证通过。本公开实施例在控制指令的权限等级和授权期限的验证结果均通过的情况下,确定该控制指令的权限验证通过,可以保证用户端设备对车辆控制的权限有序性和安全性。Optionally, the embodiment of the present disclosure may determine that the authority verification for the control instruction has passed when both the first verification result and the second verification result are verification passes. In the embodiment of the present disclosure, when the verification results of the authority level and authorization period of the control instruction are both passed, it is determined that the authority verification of the control instruction is passed, which can ensure the orderliness and security of the authority of the user device to control the vehicle.

可选的,本公开实施例可以在第一验证结果和第二验证结果中任一验证结果为验证不通过的情况下,确定对控制指令的权限验证不通过。可选的,本公开实施例可以在确定对控制指令的权限验证不通过的情况下,向发送该控制指令的用户端设备返回指令无效消息,以提示用户端设备的使用者重新发起有效的控制指令。Optionally, the embodiment of the present disclosure may determine that the authority verification for the control instruction fails when any one of the first verification result and the second verification result is verification failure. Optionally, in the embodiment of the present disclosure, when it is determined that the authority verification of the control instruction fails, an instruction invalid message can be returned to the client device that sent the control instruction to prompt the user of the client device to re-initiate effective control. instruction.

S600、执行控制指令对车辆进行控制。S600. Execute the control instructions to control the vehicle.

本公开实施例通过执行权限验证通过的控制指令对车辆进行控制,可以有效操控车机设备中的应用程序或车辆中的可控设备,在解决用户端设备与车机设备之间的控制权限管理和权限验证问题的基础上,提升用户端设备对车机设备中的应用程序或车辆中的可控设备的操控便捷性,提升乘客的操控体验以及用户满意度。Embodiments of the present disclosure control the vehicle by executing control instructions that pass authority verification, which can effectively control applications in the vehicle equipment or controllable equipment in the vehicle, and solve the problem of control authority management between the user equipment and the vehicle equipment. Based on the problem of authority verification, the user-end device can improve the convenience of controlling the applications in the vehicle equipment or the controllable equipment in the vehicle, and improve the passenger's control experience and user satisfaction.

本公开提供的车辆控制方法,该方法应用于车辆的车机设备,可以获得用户端设备发送的接入车机请求;在接入车机请求满足预设接入条件的情况下,生成与用户端设备对应的车机权限密钥;将车机权限密钥发送至用户端设备,以使用户端设备利用车机权限密钥对控制指令进行加密,并将加密后的控制指令上传至预设指令池中;利用车机权限密钥对预设指令池中的控制指令进行解密,获得未加密的控制指令;利用车机权限密钥对控制指令进行权限验证,在权限验证通过的情况下,执行控制指令对车辆进行控制。本公开对用户端设备配置车机权限密钥,方便用户端设备在车机权限密钥的权限范围内对车辆提供的功能和服务进行操控。The vehicle control method provided by the present disclosure is applied to the vehicle-machine equipment of the vehicle and can obtain the vehicle-machine access request sent by the user-end device; when the vehicle-machine access request satisfies the preset access conditions, a user-generated The vehicle-machine authority key corresponding to the terminal device; sends the vehicle-machine authority key to the user-side device, so that the user-side device uses the vehicle-machine authority key to encrypt the control instructions, and uploads the encrypted control instructions to the default In the command pool; use the vehicle-machine authority key to decrypt the control instructions in the preset command pool to obtain unencrypted control instructions; use the vehicle-machine authority key to verify the authority of the control instructions. If the authority verification is passed, Execute control instructions to control the vehicle. This disclosure configures the vehicle-machine permission key for the user-side device, so that the user-side device can control the functions and services provided by the vehicle within the scope of the vehicle-machine permission key.

虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。Although operations are depicted in a specific order, this should not be understood as requiring that the operations be performed in the specific order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.

与上述方法实施例相对应,本公开实施例还提供一种车辆控制装置,其结构如图3所示,该车辆控制装置可以应用于车辆的车机设备,该车辆控制装置可以包括:请求获得单元100、密钥生成单元200、密钥发送单元300、控制指令解密单元400、权限验证单元500以及指令执行单元600。Corresponding to the above method embodiments, embodiments of the present disclosure also provide a vehicle control device, the structure of which is shown in Figure 3. The vehicle control device can be applied to vehicle equipment. The vehicle control device can include: requesting to obtain Unit 100, key generation unit 200, key sending unit 300, control instruction decryption unit 400, authority verification unit 500 and instruction execution unit 600.

请求获得单元100,用于获得用户端设备发送的接入车机请求。The request obtaining unit 100 is used to obtain a vehicle access request sent by the client device.

密钥生成单元200,用于在接入车机请求满足预设接入条件的情况下,生成与用户端设备对应的车机权限密钥。The key generation unit 200 is configured to generate a vehicle-machine authority key corresponding to the client device when the request to access the vehicle-machine meets the preset access conditions.

密钥发送单元300,用于将车机权限密钥发送至用户端设备,以使用户端设备利用车机权限密钥对控制指令进行加密,并将加密后的控制指令上传至预设指令池中。The key sending unit 300 is used to send the vehicle-machine authority key to the client device, so that the client device uses the vehicle-machine authority key to encrypt the control instructions, and uploads the encrypted control instructions to the preset instruction pool. middle.

控制指令解密单元400,用于利用车机权限密钥对预设指令池中的控制指令进行解密,获得未加密的控制指令。The control instruction decryption unit 400 is used to decrypt the control instructions in the preset instruction pool using the vehicle-machine authority key to obtain unencrypted control instructions.

权限验证单元500,用于利用车机权限密钥对控制指令进行权限验证,在权限验证通过的情况下,触发车辆控制单元。The authority verification unit 500 is used to perform authority verification on the control instructions using the vehicle authority key, and trigger the vehicle control unit when the authority verification passes.

指令执行单元600,用于执行控制指令对车辆进行控制。The instruction execution unit 600 is used to execute control instructions to control the vehicle.

可选的,密钥生成单元200包括:合法性验证子单元、权限配置信息获得子单元以及权限密钥生成子单元。Optionally, the key generation unit 200 includes: a legality verification subunit, a permission configuration information obtaining subunit, and a permission key generation subunit.

合法性验证子单元,用于对接入车机请求进行合法性验证,获得合法性验证结果。The legality verification subunit is used to verify the legality of access vehicle-machine requests and obtain legality verification results.

权限配置信息获得子单元,用于在合法性验证结果为通过的情况下,获得与用户端设备对应的车机权限配置信息。The permission configuration information obtaining subunit is used to obtain the vehicle and machine permission configuration information corresponding to the user device when the legality verification result is passed.

权限密钥生成子单元,用于至少利用车机权限配置信息,生成与用户端设备对应的车机权限密钥。The permission key generation subunit is used to generate a vehicle-machine permission key corresponding to the user device by using at least the vehicle-machine permission configuration information.

可选的,接入车机请求携带有与用户端设备对应的身份标识。Optionally, the request to access the vehicle carries an identity corresponding to the user device.

可选的,权限密钥生成子单元,具体用于对车机权限配置信息、身份标识以及车机设备的设备标识进行组合加密,生成与用户端设备对应的车机权限密钥。Optionally, the permission key generation subunit is specifically used to combine and encrypt the vehicle-machine permission configuration information, identity identification, and device identification of the vehicle-machine equipment, and generate a vehicle-machine authority key corresponding to the user device.

可选的,车机权限密钥包括加密后的车机权限配置信息。Optionally, the vehicle-machine permission key includes encrypted vehicle-machine permission configuration information.

可选的,车机权限配置信息包括与用户端设备对应的权限等级和授权期限,Optionally, the vehicle and machine permission configuration information includes the permission level and authorization period corresponding to the user device,

可选的,权限验证单元500,具体用于对车机权限密钥进行解密,获得权限等级和授权期限;利用权限等级和授权期限对控制指令进行权限验证。Optionally, the authority verification unit 500 is specifically used to decrypt the vehicle-machine authority key to obtain the authority level and authorization period; and use the authority level and authorization period to perform authority verification on the control instructions.

可选的,控制指令包括指令信息,指令信息包括指令类型、指令名称、指令代号以及指令发起时间。Optionally, the control instruction includes instruction information, and the instruction information includes instruction type, instruction name, instruction code, and instruction initiation time.

可选的,可选的,权限验证单元500,具体用于验证控制指令中的指令类型、指令名称以及指令代号是否处于权限等级对应的权限范围,获得第一验证结果;验证控制指令中的指令发起时间是否处于授权期限以内,获得第二验证结果;在第一验证结果和第二验证结果均为验证通过的情况下,确定对控制指令的权限验证通过。Optional, optional, authority verification unit 500 is specifically used to verify whether the instruction type, instruction name and instruction code in the control instruction are within the authority range corresponding to the authority level, and obtain the first verification result; verify the instructions in the control instruction Whether the initiation time is within the authorization period, the second verification result is obtained; when the first verification result and the second verification result are both verification passed, it is determined that the authority verification of the control instruction has passed.

可选的,权限配置信息获得子单元,具体用于展示与用户端设备对应的车机权限配置界面;获得用户在车机权限配置界面输入的车机权限配置信息。Optionally, the permission configuration information obtaining subunit is specifically used to display the vehicle and computer permission configuration interface corresponding to the user device; and obtain the vehicle and computer permission configuration information input by the user on the vehicle and computer permission configuration interface.

可选的,控制指令为对车机设备中的应用程序的第一控制指令,或,对车辆中的可控设备的第二控制指令。Optionally, the control instruction is a first control instruction for an application in the vehicle device, or a second control instruction for a controllable device in the vehicle.

本公开提供的车辆控制装置,该装置应用于车辆的车机设备,可以获得用户端设备发送的接入车机请求;在接入车机请求满足预设接入条件的情况下,生成与用户端设备对应的车机权限密钥;将车机权限密钥发送至用户端设备,以使用户端设备利用车机权限密钥对控制指令进行加密,并将加密后的控制指令上传至预设指令池中;利用车机权限密钥对预设指令池中的控制指令进行解密,获得未加密的控制指令;利用车机权限密钥对控制指令进行权限验证,在权限验证通过的情况下,执行控制指令对车辆进行控制。本公开对用户端设备配置车机权限密钥,方便用户端设备在车机权限密钥的权限范围内对车辆提供的功能和服务进行操控。The vehicle control device provided by the present disclosure is applied to the vehicle-machine equipment of the vehicle and can obtain the vehicle-machine access request sent by the client device; when the vehicle-machine access request satisfies the preset access conditions, a user-generated The vehicle-machine authority key corresponding to the terminal device; sends the vehicle-machine authority key to the user-side device, so that the user-side device uses the vehicle-machine authority key to encrypt the control instructions, and uploads the encrypted control instructions to the default In the command pool; use the vehicle-machine authority key to decrypt the control instructions in the preset command pool to obtain unencrypted control instructions; use the vehicle-machine authority key to verify the authority of the control instructions. If the authority verification is passed, Execute control instructions to control the vehicle. This disclosure configures the vehicle-machine permission key for the user-side device, so that the user-side device can control the functions and services provided by the vehicle within the scope of the vehicle-machine permission key.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

所述车辆控制装置包括处理器和存储器,上述请求获得单元100、密钥生成单元200、密钥发送单元300、控制指令解密单元400、权限验证单元500以及指令执行单元600等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The vehicle control device includes a processor and a memory. The above request acquisition unit 100, key generation unit 200, key sending unit 300, control instruction decryption unit 400, authority verification unit 500, instruction execution unit 600, etc. are all stored as program units. In the memory, the processor executes the above program units stored in the memory to implement corresponding functions.

处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来对用户端设备配置车机权限密钥,方便用户端设备在车机权限密钥的权限范围内对车辆提供的功能和服务进行操控。The processor contains a core, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the user device can be configured with a vehicle authority key by adjusting the kernel parameters, so that the user device can control the functions and services provided by the vehicle within the authority of the vehicle authority key.

本公开实施例提供了一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时实现所述车辆控制方法。Embodiments of the present disclosure provide a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the vehicle control method is implemented.

本公开实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述车辆控制方法。Embodiments of the present disclosure provide a processor, the processor being used to run a program, wherein the vehicle control method is executed when the program is run.

如图4所示,本公开实施例提供了一种车机设备1000,车机设备1000包括至少一个处理器1001、以及与处理器1001连接的至少一个存储器1002、总线1003;其中,处理器1001、存储器1002通过总线1003完成相互间的通信;处理器1001用于调用存储器1002中的程序指令,以执行上述的车辆控制方法。As shown in Figure 4, an embodiment of the present disclosure provides a vehicle-mounted device 1000. The vehicle-mounted device 1000 includes at least one processor 1001, and at least one memory 1002 and bus 1003 connected to the processor 1001; wherein, the processor 1001 The memory 1002 completes mutual communication through the bus 1003; the processor 1001 is used to call program instructions in the memory 1002 to execute the above vehicle control method.

本公开还提供了一种计算机程序产品,当在车机设备上执行时,适于执行初始化有车辆控制方法步骤的程序。The present disclosure also provides a computer program product, which, when executed on a vehicle-machine device, is adapted to execute a program that initializes the vehicle control method steps.

本公开是参照根据本公开实施例的方法、装置、车机设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程设备的处理器以产生一个机器,使得通过计算机或其他可编程设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, on-board equipment (systems), and computer program products according to embodiments of the disclosure. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions executed by the processor of the computer or other programmable device produce instructions for implementing the process. Diagram of a process or processes and/or block diagram of an apparatus for the functions specified in a block or blocks.

在一个典型的配置中,车机设备包括一个或多个处理器(CPU)、存储器和总线。车机设备还可以包括输入/输出接口、网络接口等。In a typical configuration, on-board equipment includes one or more processors (CPUs), memory and buses. Vehicle equipment may also include input/output interfaces, network interfaces, etc.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。存储器是计算机可读介质的示例。Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory includes at least one memory chips. Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

在本公开的描述中,需要理解的是,如若涉及术语“上”、“下”、“前”、“后”、“左”和“右”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的位置或元件必须具有特定方位、以特定的方位构成和操作,因此不能理解为本公开的限制。In the description of the present disclosure, it should be understood that if the terms “upper”, “lower”, “front”, “back”, “left” and “right” are used, the directions or positional relationships indicated are based on those shown in the accompanying drawings. The orientations or positional relationships shown are only to facilitate the description of the present invention and simplify the description, and do not indicate or imply that the indicated positions or elements must have specific orientations, be constructed and operated in specific orientations, and therefore cannot be understood as limitations of the present disclosure. .

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations are mutually exclusive. any such actual relationship or sequence exists between them. It should also be noted that the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element qualified by the statement "comprises a..." does not exclude the presence of additional identical elements in the process, method, good, or device that includes the element.

本领域技术人员应明白,本公开的实施例可提供为方法、系统或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present disclosure may be provided as methods, systems, or computer program products. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

以上仅为本公开的实施例而已,并不用于限制本公开。对于本领域技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本公开的权利要求范围之内。The above are only examples of the present disclosure and are not intended to limit the present disclosure. Various modifications and variations may occur to the present disclosure to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this disclosure shall be included in the scope of the claims of this disclosure.

Claims (10)

1. A vehicle control method, characterized by being applied to a vehicle-mounted device of a vehicle, the method comprising:
acquiring a vehicle access request sent by user equipment;
generating a vehicle-to-machine authority key corresponding to the user equipment under the condition that the vehicle-to-machine access request meets the preset access condition;
the vehicle-mounted authority key is sent to the user side equipment, so that the user side equipment encrypts a control instruction by using the vehicle-mounted authority key, and the encrypted control instruction is uploaded to a preset instruction pool;
decrypting the control instruction in the preset instruction pool by using the vehicle-mounted permission key to obtain the unencrypted control instruction;
and carrying out authority verification on the control instruction by using the authority key of the vehicle machine, and executing the control instruction to control the vehicle under the condition that the authority verification is passed.
2. The method of claim 1, wherein the generating the vehicle-to-machine permission key corresponding to the user-side device in the case that the access vehicle-to-machine request satisfies a preset access condition includes:
carrying out validity verification on the vehicle-mounted machine access request to obtain a validity verification result;
obtaining vehicle-machine authority configuration information corresponding to the user side equipment under the condition that the validity verification result is passed;
and generating a vehicle-machine authority key corresponding to the user equipment by at least utilizing the vehicle-machine authority configuration information.
3. The method of claim 2, wherein the access vehicle-to-vehicle request carries an identity corresponding to the user equipment, and the generating the vehicle-to-vehicle permission key corresponding to the user equipment at least using the vehicle-to-vehicle permission configuration information includes:
and carrying out combined encryption on the vehicle-mounted device permission configuration information, the identity and the device identity of the vehicle-mounted device to generate a vehicle-mounted device permission key corresponding to the user terminal device.
4. A method according to claim 3, wherein the vehicle authority key includes encrypted vehicle authority configuration information, the vehicle authority configuration information includes an authority level and an authority limit corresponding to the user side device, and the performing authority verification on the control instruction by using the vehicle authority key includes:
decrypting the authority key of the vehicle-mounted device to obtain the authority level and the authority limit;
and verifying the authority of the control instruction by using the authority level and the authority limit.
5. The method of claim 4, wherein the control instruction includes instruction information including an instruction type, an instruction name, an instruction code, and an instruction initiation time, wherein the verifying the control instruction with the permission level and the permission term includes:
verifying whether the instruction type, the instruction name and the instruction code number in the control instruction are in the authority range corresponding to the authority level or not, and obtaining a first verification result;
verifying whether the instruction initiating time in the control instruction is within the authorized period or not, and obtaining a second verification result;
and under the condition that the first verification result and the second verification result are verification passing, determining that the authority verification of the control instruction is passed.
6. The method according to claim 2, wherein the obtaining the vehicle-to-machine authority configuration information corresponding to the client device includes:
displaying a vehicle-to-machine authority configuration interface corresponding to the user side equipment;
and obtaining the vehicle-machine authority configuration information input by the user on the vehicle-machine authority configuration interface.
7. The method of claim 1, wherein the control command is a first control command to an application in the in-vehicle device or a second control command to a controllable device in the vehicle.
8. A vehicle control apparatus, characterized by being applied to a vehicle-mounted device of a vehicle, comprising: a request obtaining unit, a key generating unit, a key transmitting unit, a control instruction decrypting unit, a right verifying unit and an instruction executing unit,
the request obtaining unit is used for obtaining a vehicle access request sent by the user equipment;
the key generation unit is used for generating a vehicle-to-machine authority key corresponding to the user terminal equipment under the condition that the access vehicle-to-machine request meets the preset access condition;
the key sending unit is used for sending the vehicle-mounted authority key to the user side equipment so that the user side equipment encrypts a control instruction by using the vehicle-mounted authority key and uploads the encrypted control instruction to a preset instruction pool;
the control instruction decryption unit is used for decrypting the control instruction in the preset instruction pool by using the vehicle-mounted permission key to obtain the unencrypted control instruction;
the permission verification unit is used for performing permission verification on the control instruction by using the vehicle-mounted permission key, and triggering the vehicle control unit under the condition that the permission verification is passed;
the instruction execution unit is used for executing the control instruction to control the vehicle.
9. A computer-readable storage medium having a program stored thereon, wherein the program when executed by a processor implements the vehicle control method according to any one of claims 1 to 7.
10. A vehicle-mounted device, comprising at least one processor, at least one memory connected with the processor and a bus; the processor and the memory complete communication with each other through the bus; the processor is configured to call program instructions in the memory to perform the vehicle control method according to any one of claims 1 to 7.
CN202210631587.0A 2022-06-06 2022-06-06 Vehicle control method, device, computer readable storage medium and vehicle equipment Pending CN117240481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210631587.0A CN117240481A (en) 2022-06-06 2022-06-06 Vehicle control method, device, computer readable storage medium and vehicle equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210631587.0A CN117240481A (en) 2022-06-06 2022-06-06 Vehicle control method, device, computer readable storage medium and vehicle equipment

Publications (1)

Publication Number Publication Date
CN117240481A true CN117240481A (en) 2023-12-15

Family

ID=89088516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210631587.0A Pending CN117240481A (en) 2022-06-06 2022-06-06 Vehicle control method, device, computer readable storage medium and vehicle equipment

Country Status (1)

Country Link
CN (1) CN117240481A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119975208A (en) * 2025-03-25 2025-05-13 长城汽车股份有限公司 Parameter adjustment method, device, vehicle and storage medium for vehicle computer functions

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119975208A (en) * 2025-03-25 2025-05-13 长城汽车股份有限公司 Parameter adjustment method, device, vehicle and storage medium for vehicle computer functions

Similar Documents

Publication Publication Date Title
JP7159328B2 (en) Secure communication between in-vehicle electronic control units
US11777936B2 (en) Friend key sharing
AU2018228890B2 (en) System access using a mobile device
CN109842862B (en) Establishing a secure short-range wireless communication connection in a vehicle
CN107085870B (en) Regulating vehicle access using encryption methods
CN110800249B (en) Maintenance system and maintenance method
US20170180330A1 (en) Method and electronic device for vehicle remote control and a non-transitory computer readable storage medium
US9544768B2 (en) Method and apparatus for performing secure Bluetooth communication
CN111204311B (en) Vehicle-mounted TBOX, vehicle and Bluetooth key realization method and system
CN106302510B (en) Authorization method, system, mobile terminal and server for virtual key
KR20190038550A (en) Communication Flow during Identification and Identification Inspection
WO2014004745A2 (en) Remote management and control of vehicular functions via multiple networks
EP2797780B1 (en) Secured electronic device
CN113194139A (en) Vehicle remote control method, device and system, electronic equipment and storage medium
US10484360B2 (en) Method for providing an authenticated connection between at least two communication partners
KR20190078154A (en) Apparatus and method for performing intergrated authentification for vehicles
CN117240481A (en) Vehicle control method, device, computer readable storage medium and vehicle equipment
CN112440935A (en) Vehicle Bluetooth key authorization method, device, system and storage medium
CN116233188A (en) Internet of vehicles data transmission method, device, system and computer equipment
CN114386008A (en) Information processing method and device, equipment, storage medium
US20240075902A1 (en) System and method for portable user and vehicle settings
WO2021120678A1 (en) Software management method, apparatus and system
JP2025141817A (en) System and method for securely managing access to vehicle data
CN113496561A (en) Vehicle-mounted fingerprint identification system and communication method thereof
CN120045300A (en) Digital certificate calling method, electronic equipment and vehicle

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