[go: up one dir, main page]

CN116260674A - Vehicle data transmission method, device, vehicle and computer-readable storage medium - Google Patents

Vehicle data transmission method, device, vehicle and computer-readable storage medium Download PDF

Info

Publication number
CN116260674A
CN116260674A CN202211615666.9A CN202211615666A CN116260674A CN 116260674 A CN116260674 A CN 116260674A CN 202211615666 A CN202211615666 A CN 202211615666A CN 116260674 A CN116260674 A CN 116260674A
Authority
CN
China
Prior art keywords
message
sent
vehicle
messages
target
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
CN202211615666.9A
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.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology 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 Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202211615666.9A priority Critical patent/CN116260674A/en
Publication of CN116260674A publication Critical patent/CN116260674A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40143Bus networks involving priority mechanisms
    • H04L12/4015Bus networks involving priority mechanisms by scheduling the transmission of messages at the communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a vehicle data transmission method, a device, a vehicle and a computer readable storage medium; specifically, a message to be sent corresponding to vehicle data is obtained, and the message to be sent is transmitted to a message buffer space, wherein the message buffer space is a storage space for registering a data message which is not transmitted; the method comprises the steps of carrying out priority ordering on messages to be sent in a message buffer space to obtain a message priority sequence; transmitting a message to be transmitted in the message priority sequence to a message transmission channel; reading a target feedback message corresponding to a message to be sent from a message transmission channel; and executing a message response strategy corresponding to the target feedback message. Therefore, the message with lower priority is effectively prevented from occupying the receiving and transmitting hardware resources during message transmission, the total transmission quantity of vehicle data can be expanded to a certain extent, the transmission requirement of the vehicle data is met, the response efficiency of the vehicle service function is improved, and the user experience is improved.

Description

车辆数据传输方法、装置、车辆及计算机可读存储介质Vehicle data transmission method, device, vehicle and computer-readable storage medium

技术领域technical field

本申请涉及计算机技术领域,具体涉及一种车辆数据传输方法、装置、车辆及计算机可读存储介质。The present application relates to the field of computer technology, in particular to a vehicle data transmission method, device, vehicle and computer-readable storage medium.

背景技术Background technique

随着汽车应用技术的发展,车载系统附带的业务功能也越来越丰富,如,除了车载系统的基础驾驶相关的业务功能外,还可包括天气、语音播报等一系列的业务功能,这使得车载系统需要将大量的信息数据传输至相应的硬件节点,以实现相应的业务功能。在相关技术中,车载系统是通过控制器局域网(Controller Area Network,CAN)总线来传输各个信息数据,以使得相应硬件节点基于信息数据实现对应的业务功能。With the development of automotive application technology, the business functions attached to the vehicle system are becoming more and more abundant. For example, in addition to the basic driving-related business functions of the vehicle system, a series of business functions such as weather and voice broadcast can also be included. This makes The vehicle system needs to transmit a large amount of information data to the corresponding hardware nodes to realize the corresponding business functions. In related technologies, the vehicle-mounted system transmits various information data through a controller area network (Controller Area Network, CAN) bus, so that corresponding hardware nodes implement corresponding service functions based on the information data.

然而,相关技术通过控制器局域网总线来传输车载系统的信息数据时,由于车载硬件配置(如车辆芯片)中的收发存储单元的存储空间大小有限,降低了车载系统在传输信息数据时的性能,影响了车辆数据的传输量,容易导致部分信息数据的传输失效,从而导致车辆的部分业务功能延期或失效,影响了用户的体验。However, when the related technology transmits the information data of the vehicle-mounted system through the controller local area network bus, due to the limited storage space of the transceiver storage unit in the vehicle-mounted hardware configuration (such as the vehicle chip), the performance of the vehicle-mounted system when transmitting information data is reduced. It affects the transmission volume of vehicle data, which can easily lead to the failure of the transmission of some information data, resulting in the delay or failure of some business functions of the vehicle, which affects the user experience.

发明内容Contents of the invention

本申请实施例提供一种车辆数据传输方法、装置、车辆及计算机可读存储介质,可避免车辆硬件配置影响车辆数据的传输性能,可一定程度上扩充车辆数据的传输总量,满足车辆数据的处理需求,提高车辆业务功能的响应效率,提高了用户的体验。Embodiments of the present application provide a vehicle data transmission method, device, vehicle, and computer-readable storage medium, which can prevent the vehicle hardware configuration from affecting the transmission performance of vehicle data, expand the total amount of vehicle data transmission to a certain extent, and meet the requirements of vehicle data. Processing requirements, improving the response efficiency of vehicle business functions, and improving user experience.

本申请实施例提供一种车辆数据传输方法,包括:An embodiment of the present application provides a vehicle data transmission method, including:

获取车辆数据对应的待发送报文,并将所述待发送报文传输至报文缓存空间,所述报文缓存空间为寄存未传输的数据报文的存储空间;Obtain the message to be sent corresponding to the vehicle data, and transmit the message to be sent to a message buffer space, where the message buffer space is a storage space for storing untransmitted data messages;

对所述报文缓存空间中的所述待发送报文进行优先级排序,得到报文优先级序列;performing priority sorting on the messages to be sent in the message buffer space to obtain a message priority sequence;

将所述报文优先级序列中的所述待发送报文发送至报文传输通道;sending the to-be-sent message in the message priority sequence to the message transmission channel;

检测所述报文传输通道中与所述待发送报文对应的目标反馈报文;Detecting a target feedback message corresponding to the message to be sent in the message transmission channel;

执行所述目标反馈报文对应的报文响应策略。Execute the message response policy corresponding to the target feedback message.

相应的,本申请实施例提供一种车辆数据传输装置,包括:Correspondingly, an embodiment of the present application provides a vehicle data transmission device, including:

获取单元,用于获取车辆数据对应的待发送报文,并将所述待发送报文传输至报文缓存空间,所述报文缓存空间为寄存未传输的数据报文的存储空间;An acquisition unit, configured to acquire a message to be sent corresponding to the vehicle data, and transmit the message to be sent to a message buffer space, where the message buffer space is a storage space for storing untransmitted data messages;

排序单元,用于对所述报文缓存空间中的所述待发送报文进行优先级排序,得到报文优先级序列;a sorting unit, configured to prioritize the messages to be sent in the message buffer space to obtain a message priority sequence;

发送单元,用于将所述报文优先级序列中的所述待发送报文发送至报文传输通道;a sending unit, configured to send the to-be-sent message in the message priority sequence to a message transmission channel;

检测单元,用于检测所述报文传输通道中与所述待发送报文对应的目标反馈报文;A detection unit, configured to detect a target feedback message corresponding to the message to be sent in the message transmission channel;

执行单元,用于执行所述目标反馈报文对应的报文响应策略。An execution unit, configured to execute the message response policy corresponding to the target feedback message.

在一些实施例中,所述报文缓存空间包含多个待发送报文,所述排序单元,还用于:In some embodiments, the message buffer space includes a plurality of messages to be sent, and the sorting unit is also used for:

识别所述报文缓存空间中每一待发送报文的报文类型;identifying the message type of each message to be sent in the message buffer space;

根据所述报文类型,确定所述多个待发送报文之间的报文优先级关系;According to the message type, determine the message priority relationship among the multiple messages to be sent;

按照所述报文优先级关系,构建对所述多个待发送报文对应的报文优先级序列。According to the message priority relationship, a message priority sequence corresponding to the multiple messages to be sent is constructed.

在一些实施例中,所述排序单元,还用于:In some embodiments, the sorting unit is also used for:

根据所述报文类型,确定每一待发送报文对应的报文标识;According to the message type, determine the message identifier corresponding to each message to be sent;

按照所述报文标识的从小到大关系,确定所述多个待发送报文之间的报文优先级关系。Determine the message priority relationship among the multiple messages to be sent according to the small to large relationship of the message identifiers.

在一些实施例中,所述发送单元,还用于:In some embodiments, the sending unit is also used for:

识别报文发送函数对应的函数状态;Identify the function status corresponding to the message sending function;

当所述函数状态为可发送状态时,按照所述报文优先级序列中的报文优先级关系选取目标待发送报文;When the function state is a state that can be sent, select a target message to be sent according to the message priority relationship in the message priority sequence;

基于所述报文发送函数,将所述目标待发送报文发送至报文传输通道。Based on the message sending function, send the target message to be sent to the message transmission channel.

在一些实施方式中,所述检测单元,还用于:In some embodiments, the detection unit is also used for:

确定可接收报文的标识范围值;Determine the identification range value of the receivable message;

从所述报文传输通道中拉取符合所述标识范围值的待确认报文;Pull the message to be confirmed that conforms to the value of the identification range from the message transmission channel;

将所述待确认报文确定为所述待发送报文对应的目标反馈报文。Determine the message to be confirmed as a target feedback message corresponding to the message to be sent.

在一些实施例中,所述检测单元,还用于:In some embodiments, the detection unit is also used for:

识别所述待确认报文对应的待确认报文标识;identifying the identifier of the message to be confirmed corresponding to the message to be confirmed;

获取报文标识数组,将所述待确认报文标识与所述报文标识数组中的标识进行匹配,得到匹配结果;Obtain an array of message identifiers, match the identifiers in the array of message identifiers to be confirmed with the identifiers in the array of message identifiers, and obtain a matching result;

根据所述匹配结果确定待确认报文的报文类型,并将所述待确认报文确定为所述报文类型的待发送报文对应的目标反馈报文。Determine the message type of the message to be confirmed according to the matching result, and determine the message to be confirmed as a target feedback message corresponding to the message to be sent of the message type.

在一些实施例中,所述车辆数据传输装置还包括构建单元,用于:In some embodiments, the vehicle data transmission device further includes a construction unit for:

查询多个可接收报文的目标报文标识;Query the target message identifiers of multiple receivable messages;

按照标识大小关系对多个目标报文标识进行排序,得到报文标识序列;Sorting the plurality of target message identifiers according to the size relationship of the identifiers to obtain a sequence of message identifiers;

按照所述报文标识序列生成报文标识数组。Generate an array of message identifiers according to the sequence of message identifiers.

在一些实施方式中,所述执行单元,还用于:In some embodiments, the execution unit is further configured to:

识别报文响应函数的执行状态;Identify the execution status of the message response function;

当所述执行状态为空闲状态时,将所述目标反馈报文发送至报文响应端,使得所述报文响应端执行所述目标反馈报文对应的报文响应策略;When the execution state is an idle state, sending the target feedback message to the message responder, so that the message responder executes the message response strategy corresponding to the target feedback message;

当所述执行状态为非空闲状态时,检测所述报文响应端的报文响应进度;When the execution state is non-idle state, detecting the message response progress of the message response end;

当所述报文响应进度达到预设进度阈值时,将所述目标反馈报文发送至所述报文响应端,使得所述报文响应端执行所述目标反馈报文对应的报文响应策略。When the message response progress reaches a preset progress threshold, sending the target feedback message to the message responder, so that the message responder executes the message response policy corresponding to the target feedback message .

此外,本申请实施例还提供一种车辆,包括计算机设备,所述计算机设备包括处理器和存储器,存储器存储有计算机程序,处理器用于运行存储器内的计算机程序实现本申请实施例提供的车辆数据传输方法中的步骤。In addition, the embodiment of the present application also provides a vehicle, including a computer device, the computer device includes a processor and a memory, the memory stores a computer program, and the processor is used to run the computer program in the memory to realize the vehicle data provided by the embodiment of the present application. The steps in the transfer method.

此外,本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有多条指令,指令适于处理器进行加载,以执行本申请实施例所提供的任一种车辆数据传输方法中的步骤。In addition, the embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for the processor to load to perform any vehicle data transmission provided by the embodiment of the present application. steps in the method.

此外,本申请实施例还提供一种计算机程序产品,计算机程序产品包括计算机指令,计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行本申请实施例所提供的任一种车辆数据传输方法中的步骤。In addition, an embodiment of the present application further provides a computer program product, the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any vehicle data transmission method provided in the embodiments of the present application.

本申请实施例可以获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间,报文缓存空间为寄存未传输的数据报文的存储空间;对报文缓存空间中的待发送报文进行优先级排序,得到报文优先级序列;将报文优先级序列中的待发送报文发送至报文传输通道;检测报文传输通道中与待发送报文对应的目标反馈报文;执行目标反馈报文对应的报文响应策略。由此可得,本方案可先确定需要传输的车辆数据的报文,并在报文缓存空间中对需要发送的报文进行优先级的排序,然后,按照报文优先级序列的顺序关系对待发送报文进行传输,有效避免优先级较低的报文占用报文传输时的收发存储单元的空间,最后,接收待发送报文对应的目标反馈报文,并执行目标反馈报文对应的报文响应策略;以此,可一定程度上扩充车辆数据的传输总量,满足车辆数据的传输需求,提高了车辆业务功能的响应效率,提高了用户的体验。The embodiment of the present application can obtain the message to be sent corresponding to the vehicle data, and transmit the message to be sent to the message buffer space, and the message buffer space is a storage space for storing untransmitted data messages; for the message buffer space Prioritize the messages to be sent to obtain the message priority sequence; send the messages to be sent in the message priority sequence to the message transmission channel; detect the target corresponding to the message to be sent in the message transmission channel Feedback message; implement the message response strategy corresponding to the target feedback message. It can be seen from this that this scheme can first determine the message of the vehicle data that needs to be transmitted, and sort the priority of the message to be sent in the message buffer space, and then treat it according to the order relationship of the priority sequence of the message Send a message for transmission, effectively avoiding that the message with a lower priority occupies the space of the sending and receiving storage unit during message transmission. Finally, receive the target feedback message corresponding to the message to be sent, and execute the message corresponding to the target feedback message. In this way, the total amount of vehicle data transmission can be expanded to a certain extent to meet the transmission needs of vehicle data, improve the response efficiency of vehicle business functions, and improve user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请实施例提供的车辆数据传输系统的场景示意图;FIG. 1 is a schematic diagram of a scene of a vehicle data transmission system provided by an embodiment of the present application;

图2为本申请实施例提供的车辆数据传输方法的步骤流程示意图;Fig. 2 is a schematic flow chart of the steps of the vehicle data transmission method provided by the embodiment of the present application;

图3是本申请实施例提供的报文缓存空间的结构示意图;FIG. 3 is a schematic structural diagram of a message buffer space provided by an embodiment of the present application;

图4是本申请实施例提供的车辆数据传输方法的另一步骤流程示意图;Fig. 4 is a schematic flowchart of another step of the vehicle data transmission method provided by the embodiment of the present application;

图5是本申请实施例提供的车辆数据传输系统的架构示意图;Fig. 5 is a schematic diagram of the structure of the vehicle data transmission system provided by the embodiment of the present application;

图6是本申请实施例提供的车辆数据传输方法的报文发送场景示意图;FIG. 6 is a schematic diagram of a message sending scenario of a vehicle data transmission method provided in an embodiment of the present application;

图7是本申请实施例提供的车辆数据传输方法的报文接收场景示意图;FIG. 7 is a schematic diagram of a message receiving scene of a vehicle data transmission method provided in an embodiment of the present application;

图8是本申请实施例提供的车辆数据传输装置的结构示意图;Fig. 8 is a schematic structural diagram of a vehicle data transmission device provided by an embodiment of the present application;

图9是本申请实施例提供的计算机设备的结构示意图。FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.

本申请实施例提供一种车辆数据传输方法、装置、车辆及计算机可读存储介质。本申请实施例将从车辆数据传输装置的角度进行描述,该车辆数据传输装置具体可以集成在计算机设备中,该计算机设备可以是终端设备,具体可以是运输工具(车辆)上所搭载的终端设备,即车载终端;此外,终端设备还可以是其他类型的设备,例如,该终端可以是电视、智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表、智能穿戴设备等设备,这些设备可通过非一体化方式安置在机器人或车辆内;但并不局限于此。Embodiments of the present application provide a vehicle data transmission method, device, vehicle, and computer-readable storage medium. The embodiment of the present application will be described from the perspective of a vehicle data transmission device. The vehicle data transmission device may be integrated into a computer device. The computer device may be a terminal device, specifically a terminal device carried on a vehicle (vehicle). , that is, a vehicle-mounted terminal; in addition, the terminal device can also be other types of equipment, for example, the terminal can be a TV, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart wearable device, etc., these Equipment may be placed in a robot or vehicle in a non-integrated manner; but is not limited to such.

例如,参见图1,为本申请实施例提供的车辆数据传输系统的场景示意图,该系统可适用于车载系统内车辆数据传输场景,该场景可包括终端。For example, refer to FIG. 1 , which is a schematic diagram of a scene of a vehicle data transmission system provided by an embodiment of the present application. The system is applicable to a scene of vehicle data transmission in a vehicle system, and the scene may include a terminal.

具体的,该终端可以是车载终端,具体用于获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间,报文缓存空间为寄存未传输的数据报文的存储空间;对报文缓存空间中的待发送报文进行优先级排序,得到报文优先级序列;将报文优先级序列中的待发送报文发送至报文传输通道;检测报文传输通道中与待发送报文对应的目标反馈报文;执行目标反馈报文对应的报文响应策略。Specifically, the terminal may be a vehicle-mounted terminal, which is specifically used to obtain the message to be sent corresponding to the vehicle data, and transmit the message to be sent to the message buffer space, and the message buffer space is a storage space for storing untransmitted data messages Space; prioritize the messages to be sent in the message buffer space to obtain the message priority sequence; send the messages to be sent in the message priority sequence to the message transmission channel; detect the message transmission channel A target feedback message corresponding to the message to be sent; executing a message response policy corresponding to the target feedback message.

为了便于理解,以下将列举示例对该车辆数据传输方法的应用场景进行简述,具体如下:For ease of understanding, the following examples will briefly describe the application scenarios of the vehicle data transmission method, as follows:

示例性的,以整车控制器作为车载终端,则以整车控制器的数据报文为例,具体的,车载终端可以获取档位操控、刹车、踩油门、踩离合、空调温度操控等车辆数据,并基于以上任一车辆数据生成待发送报文;进而,为了避免优先级较低的报文占用报文收发存储空间,可通过预先创建一个报文缓存空间,并将各待发送报文传输至报文缓存空间中,在报文缓存空间中对各待发送报文进行发送优先级的排序;进而,按照报文优先级序列中各报文之间的发送优先顺序,将待发送报文上传至报文收发存储空间,并在报文发送存储空间将接收到的待发送报文发送至报文传输通道(如CAN总线)后,继续将报文优先级序列中的下一个待发送报文上传至报文发送存储空间,直至报文优先级序列中的所有的待发送报文上传完毕。对于传输至报文传输通道的每一报文,会被符合响应需求的报文响应端接收,并进行响应,如车辆动力子系统接收档位操控的数据报文,并进行响应。可以理解的是,当报文响应端在对接收的报文进行响应后,可返回一个响应结果的报文至报文传输通道。此时,车载终端可以检测报文传输通道中与档位操控的数据报文对应的目标反馈报文,并执行该目标反馈报文对应的报文响应策略,例如,车载终端接收车辆动力子系统针对档位操控的目标反馈报文,通过时速表、语音挂挡提示等响应策略进行响应,以提示驾驶员挂挡操作成功。Exemplarily, the vehicle controller is used as the vehicle terminal, and the data message of the vehicle controller is taken as an example. Specifically, the vehicle terminal can obtain vehicle information such as gear control, braking, stepping on the accelerator, stepping on the clutch, air conditioning temperature control, etc. Data, and generate messages to be sent based on any of the above vehicle data; furthermore, in order to avoid messages with lower priority occupying the storage space for sending and receiving messages, a message buffer space can be created in advance, and each message to be sent transmitted to the message buffer space, and sort the sending priority of each message to be sent in the message buffer space; then, according to the sending priority order among the messages in the message priority sequence, the messages to be sent are sorted The file is uploaded to the message sending and receiving storage space, and after the received message to be sent is sent to the message transmission channel (such as CAN bus) in the message sending storage space, continue to send the next message to be sent in the message priority sequence The message is uploaded to the message sending storage space until all the messages to be sent in the message priority sequence are uploaded. For each message transmitted to the message transmission channel, it will be received by the message responder that meets the response requirements and respond, for example, the vehicle power subsystem receives a data message for gear position control and responds. It can be understood that, after responding to the received message, the message responding end may return a response result message to the message transmission channel. At this time, the vehicle-mounted terminal can detect the target feedback message corresponding to the data message of gear position control in the message transmission channel, and execute the message response strategy corresponding to the target feedback message. For example, the vehicle-mounted terminal receives the vehicle power subsystem For the target feedback message of the gear position control, respond through response strategies such as the speedometer and voice prompts for gear shifting to prompt the driver that the gear shifting operation is successful.

以下分别进行详细说明。需要说明的是,以下实施例的描述顺序不作为对实施例优选顺序的限定。Each will be described in detail below. It should be noted that the description sequence of the following embodiments is not intended to limit the preferred sequence of the embodiments.

在本申请实施例中,将从车辆数据传输装置的角度进行描述,以该车辆数据传输装置具体可以集成在计算机设备如终端设备或服务器中。参见图2,图2为本申请实施例提供的车辆数据传输方法的步骤流程示意图,以终端设备为例,该终端设备可以是车载终端,该终端设备上的处理器执行车辆数据传输方法对应的程序指令时,该车辆数据传输方法的具体流程如下:In the embodiment of the present application, description will be made from the perspective of the vehicle data transmission device, so that the vehicle data transmission device can be integrated into a computer device such as a terminal device or a server. Referring to Fig. 2, Fig. 2 is a schematic flow chart of the steps of the vehicle data transmission method provided by the embodiment of the present application. Taking the terminal device as an example, the terminal device may be a vehicle-mounted terminal, and the processor on the terminal device executes the corresponding method of the vehicle data transmission method. During program instructions, the specific flow of the vehicle data transmission method is as follows:

101、获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间。101. Obtain a message to be sent corresponding to the vehicle data, and transmit the message to be sent to a message buffer space.

在本申请实施例中,车辆系统中包含多个端之间的数据信息交互,为了提高整车质量,减少用于传输车辆数据信息的传输介质,可通过一个总的传输通道来传输各种车辆数据信息,其中,可以通过数据报文的形式来传输数据信息。然而,为了优先为优先级高的报文提供传输资源,可以将车辆数据信息对应的报文传输至报文缓存空间中进行排序,以便后续通过排序顺序来传输每一车辆数据信息的报文。In the embodiment of this application, the vehicle system includes data information interaction between multiple terminals. In order to improve the quality of the vehicle and reduce the transmission medium used to transmit vehicle data information, various vehicles can be transmitted through a general transmission channel. Data information, where the data information may be transmitted in the form of a data message. However, in order to give priority to providing transmission resources for messages with high priority, the messages corresponding to the vehicle data information can be transmitted to the message buffer space for sorting, so that the messages of each vehicle data information can be transmitted in the order of sorting.

其中,该车辆数据可以车辆系统中的信息数据,以整车控制类的数据为例,该车辆数据不限于包括档位控制、制动、提速、减速、空调控制等的信息数据。Wherein, the vehicle data may be information data in the vehicle system, taking vehicle control data as an example, the vehicle data is not limited to information data including gear position control, braking, speed up, deceleration, air conditioning control, etc.

其中,该待发送报文为车辆系统中车辆信息数据的数据传输单元,其每个报文表示一个完整的信息数据,不同报文之间的长度可以不一致,具体根据实际包含的完整信息数据而定,如根据信息数据量而定。可以理解的是,在车辆系统中各控制单元中,可以通过数据报文的形式来实现控制单元之间的信息数据传输。Wherein, the message to be sent is the data transmission unit of the vehicle information data in the vehicle system, and each message represents a complete information data, and the lengths of different messages may be inconsistent, depending on the complete information data actually included. Determined, such as according to the amount of information data. It can be understood that, among the control units in the vehicle system, the information data transmission between the control units can be realized in the form of data packets.

需要说明的是,由于车辆系统中的硬件配置的资源有限,如车辆芯片中的存储空间资源有限,而车辆系统中各控制单元之间需要传输的信息数据量较多,即报文数量较多,且车载系统在传输报文时具有优先级特性,这会使得报文占用了硬件配置中的存储资源,使得车载系统在应对这些信息数据时的负载较大。对此,本申请实施例通过软件的方式创建一个报文缓存空间,以在数据报文传输之前,在该报文缓存空间之中对数据报文进行排序,以便按照排序结果来传输报文,避免低优先级的报文占用硬件配置中的存储资源。It should be noted that due to the limited resources of the hardware configuration in the vehicle system, such as the limited storage space resources in the vehicle chip, and the amount of information data that needs to be transmitted between the control units in the vehicle system is large, that is, the number of messages is large , and the vehicle-mounted system has a priority characteristic when transmitting messages, which will cause the messages to occupy storage resources in the hardware configuration, causing the vehicle-mounted system to be heavily loaded when dealing with these information data. In this regard, the embodiment of the present application creates a message buffer space by means of software, so as to sort the data messages in the message buffer space before the data message is transmitted, so as to transmit the messages according to the sorting result, Prevent low-priority packets from occupying storage resources in the hardware configuration.

其中,该报文缓存空间为寄存未传输的数据报文的存储空间,具体的,在对报文进行传输之前,可将需要传输的每个报文寄存在报文缓存空间中,以便后续在排序后进行传输。需要说明的是,该报文缓存空间可以是缓存数组形式的空间,其大小可大于需要发送的报文总数的大小。Wherein, the message buffer space is a storage space for storing untransmitted data messages. Specifically, before the message is transmitted, each message that needs to be transmitted can be stored in the message buffer space, so that the subsequent Sequenced for transmission. It should be noted that the message buffer space may be in the form of a buffer array, and its size may be larger than the total number of messages to be sent.

为了便于理解,将以缓存数组作为报文缓存空间进行叙述。结合图3所示,该缓存数组包含多个报文缓存区,每个报文缓存区具有标识,如“0x100”、“0x110”、“0x200”......“0x320”等等,每个报文缓存区用于寄存一个数据报文,从报文缓存区“0x100”至报文缓存区“0x320”,多个单元之间的缓存分组标识从小到大排序。For ease of understanding, the cache array will be used as the message cache space for description. As shown in Fig. 3, the cache array contains multiple message buffer areas, each message buffer area has an identifier, such as "0x100", "0x110", "0x200" ... "0x320" and so on, Each message buffer area is used to store a data message, from the message buffer area "0x100" to the message buffer area "0x320", the cache group identifiers among multiple units are sorted from small to large.

为了确保报文缓存空间的大小能够容纳需要传输的数据报文,需要预先创建足够容量大小的缓存数组。可以根据历史时间内的报文传输数量作为创建缓存数组时的依据,具体的,获取历史时间的报文传输记录,从报文传输记录中确定目标时长内的报文传输需求量,根据该报文传输需求量来确定报文缓存区的目标数量,创建包含目标数量的报文缓存区的缓存数组。此外,还可通过缓存分组标识对每一报文缓存区进行标示,并按照缓存分组标识从小到大的方式进行排序,得到具有排序关系的缓存数组。In order to ensure that the size of the message buffer space can accommodate the data messages to be transmitted, it is necessary to create a buffer array with sufficient capacity in advance. The number of message transmissions in the historical time can be used as the basis for creating the cache array. Specifically, the message transmission records of the historical time are obtained, and the message transmission demand within the target time is determined from the message transmission records. According to the report Determine the target number of message buffers based on the demand for message transmission, and create a cache array containing the target number of message buffers. In addition, each message buffer area can also be marked by the cache group ID, and sorted according to the cache group ID from small to large, so as to obtain a cache array with a sort relationship.

在本申请实施例中,车载终端可在检测到车辆数据后,可根据每一车辆数据生成对应的待发送报文,进而,将待发送报文发送至报文缓存空间中,以便后续通过缓存数组对每一待发送报文进行排序。In the embodiment of the present application, after the vehicle-mounted terminal detects the vehicle data, it can generate a corresponding message to be sent according to each vehicle data, and then send the message to be sent to the message buffer space, so that it can be passed through the buffer later. The array sorts each message to be sent.

通过以上方式,可通过报文形式来包装需要传输的车辆信息数据,并将得到的待发送报文传入报文缓存空间,以便在报文缓存空间中对各待发送报文进行排序并发送。Through the above method, the vehicle information data to be transmitted can be packaged in the form of a message, and the obtained message to be sent can be transferred to the message buffer space, so that the messages to be sent can be sorted and sent in the message buffer space .

102、对报文缓存空间中的待发送报文进行优先级排序,得到报文优先级序列。102. Prioritize the messages to be sent in the message buffer space to obtain a message priority sequence.

在本申请实施例中,当报文缓存空间中包含多个待发送报文时,为了避免优先级较低的报文占用车载系统的发送单元的硬件存储资源,可在报文缓存空间中对多个待发送报文进行排序,以便后续根据排序结果来依序传输各待发送报文。In the embodiment of the present application, when the message buffer space contains multiple messages to be sent, in order to prevent the messages with lower priority from occupying the hardware storage resources of the sending unit of the vehicle system, the The multiple messages to be sent are sorted, so that the messages to be sent are sequentially transmitted according to the sorting result.

其中,该报文优先级序列可以是包含多个待发送报文的优先级排序关系的序列。Wherein, the packet priority sequence may be a sequence including priority ranking relationships of multiple packets to be sent.

在一些实施方式中,报文缓存空间包含多个待发送报文,可根据报文的类型来对各报文进行排序。则步骤102可以包括:In some implementations, the message buffer space includes multiple messages to be sent, and the messages can be sorted according to message types. Then step 102 may include:

(102.1)识别报文缓存空间中每一待发送报文的报文类型;(102.1) Identify the message type of each message to be sent in the message buffer space;

(102.2)根据报文类型,确定多个待发送报文之间的报文优先级关系;(102.2) Determine the message priority relationship between multiple messages to be sent according to the message type;

(102.3)按照报文优先级关系,构建对多个待发送报文对应的报文优先级序列。(102.3) Construct a message priority sequence corresponding to multiple messages to be sent according to the message priority relationship.

其中,该报文类型可以表示报文中车辆数据的类型。可以理解的是,车辆系统中包含很多类型的车辆数据,以整车控制器为例,车辆数据可以包含档位控制、制动、提速、离合、空调控制、方向灯等类型的信息数据,当每一个信息数据生成一个报文时,则不同信息数据对应的报文类型可以不一致。此外,还可由多个车辆信息数据组成一个报文,则信息数据的差异可导致报文类型不一致,例如,需要进行减速时,可由离合、档位控制、制动等信息数据组成一个减速类型的第一报文,以及,需要进行提速时,由离合、档位控制、油门等信息数据组成一个加速类型的第二报文,则第一报文和第二报文的类型不一致。Wherein, the message type may indicate the type of vehicle data in the message. It can be understood that the vehicle system contains many types of vehicle data. Take the vehicle controller as an example. When each information data generates a message, the message types corresponding to different information data may be inconsistent. In addition, a message can also be composed of multiple vehicle information data, and the difference in information data can lead to inconsistent message types. The first message, and when the speed needs to be increased, the second message of acceleration type is composed of clutch, gear position control, throttle and other information data, then the types of the first message and the second message are inconsistent.

需要说明的是,可预先设定不同报文类型之间的类型优先关系。具体可根据车辆数据在车辆系统中的重要程度来确定,例如,假若同时包含减速、打开车窗、空调温度控制的类型的数据报文,可以按照行车安全照作为第一要素,用户体验作为第二要素,则这三者类型之间的优先关系可以是“减速”类型大于“打开车窗”类型,“打开车窗”类型大于“空调温度控制”类型。It should be noted that, the type priority relationship between different packet types may be preset. Specifically, it can be determined according to the importance of vehicle data in the vehicle system. For example, if data packets of types such as deceleration, opening windows, and air-conditioning temperature control are included at the same time, driving safety photos can be taken as the first element, and user experience can be taken as the second. Two elements, then the priority relationship between the three types can be that the type of "deceleration" is greater than the type of "opening the window", and the type of "opening the window" is greater than the type of "air-conditioning temperature control".

具体的,以每个报文包含一个车辆数据为例,可根据报文中的车辆数据的类型来确定该报文的类型,从而,基于报文类型来确定各待发送报文之间的报文优先级关系,最后,按照报文优先级关系来对报文缓存空间中的各待发送报文进行排序,得到报文优先级序列。Specifically, taking each message containing one vehicle data as an example, the type of the message can be determined according to the type of vehicle data in the message, so that the message type between the messages to be sent can be determined based on the message type. Finally, sort the messages to be sent in the message buffer space according to the message priority relationship to obtain the message priority sequence.

在一些实施方式中,可通过报文标识的大小关系来确定报文优先级。例如,步骤(102.2)可以包括:根据报文类型,确定每一待发送报文对应的报文标识;按照报文标识的从小到大关系,确定多个待发送报文之间的报文优先级关系。In some implementation manners, the packet priority can be determined through the magnitude relationship of the packet identifiers. For example, step (102.2) may include: according to the message type, determine the message identifier corresponding to each message to be sent; level relationship.

其中,该报文标识可根据报文类型的优先级关系来确定。具体的,预先建立报文类型与报文标识之间的对应关系,每一报文类型具有对应的报文表示,例如,以车辆加速、车辆减速、打开车窗、空调温度控制等类型为例,可分别针对车辆加速、车辆减速、打开车窗、空调温度控制等类型预先设定不同的报文标识,以使得根据不同报文类型来确定报文标识。Wherein, the message identifier may be determined according to the priority relationship of message types. Specifically, the correspondence between message types and message identifiers is established in advance, and each message type has a corresponding message representation. For example, take vehicle acceleration, vehicle deceleration, window opening, air conditioner temperature control and other types as examples , different message identifiers may be preset for vehicle acceleration, vehicle deceleration, opening of vehicle windows, air conditioner temperature control, etc., so that the message identifiers are determined according to different message types.

此外,每一待发送报文的报文标识还可由缓存数组中对应的报文缓存区的标识赋予,则还可预先构建报文缓存区与报文类型之间的映射关系,以便后续根据报文类型来选定待发送报文在缓存数组中所要寄存的报文缓存区,以便通过该报文缓存区的标识来赋予相应待发送报文的报文标识。In addition, the message identifier of each message to be sent can also be given by the identifier of the corresponding message buffer area in the cache array, and the mapping relationship between the message buffer area and the message type can also be constructed in advance, so that the subsequent The message type is used to select the message buffer area to be registered in the buffer array for the message to be sent, so that the message identifier of the corresponding message to be sent can be given by the identifier of the message buffer area.

具体的,在确定每一待发送报文的报文标识时,可根据每一待发送报文的报文类型来选定报文缓存空间中缓存数组的目标报文缓存区,根据目标报文缓存区的缓存分组标识为待发送报文赋予报文标识;例如,将待发送报文传输至目标报文缓存区,以该目标报文缓存区的缓存分组标识作为该待发送报文的报文标识。进而,按照报文标识的从小到大关系,确定多个待发送报文之间的优先级关系,例如,报文标识越小,则报文的优先级越高。Specifically, when determining the message identifier of each message to be sent, the target message buffer area of the cache array in the message buffer space can be selected according to the message type of each message to be sent, and the The cached group identifier of the buffer area is assigned a message identifier for the message to be sent; for example, the message to be sent is transmitted to the target message buffer area, and the cached group identifier of the target message buffer area is used as the message ID of the message to be sent. Text ID. Furthermore, the priority relationship among the plurality of messages to be sent is determined according to the small to large relationship of the message identifiers, for example, the smaller the message identifier, the higher the priority of the message.

示例性的,假设包含车辆加速、车辆减速、车窗控制、空调温度控制等类型的报文,车辆加速类型的报文的标识为“0x100”、车辆减速类型的报文的标识为“0x110”、车窗控制类型的报文的标识为“0x200”、空调温度控制类型的报文的标识为“0x300”,则按照标识从小到大关系,以上类型的报文优先级关系依序为:车辆加速报文、车辆减速报文、车窗控制报文、空调温度控制报文。以上仅为示例,不作为实施本申请的限定。Exemplarily, it is assumed that messages of vehicle acceleration, vehicle deceleration, window control, air conditioner temperature control, etc. are included, and the message of the vehicle acceleration type is identified as "0x100", and the message of the vehicle deceleration type is identified as "0x110" , the window control type message is identified as "0x200", and the air conditioner temperature control type message is identified as "0x300", then according to the relationship from small to large, the priority relationship of the above types of messages is as follows: vehicle Acceleration message, vehicle deceleration message, window control message, air conditioner temperature control message. The above are examples only, and are not intended to limit the implementation of this application.

通过以上方式,可在对报文进行传输之前,在报文缓存空间中对含多个待发送报文进行排序,以便后续按照排序关系来传输各待发送报文,以避免优先级较低的报文占用车载系统的发送单元的硬件存储资源,实现以软件方式节省车辆数据传输时的硬件资源占用量,具有可靠性。Through the above method, before the message is transmitted, it can sort the messages containing multiple messages to be sent in the message buffer space, so that the messages to be sent can be transmitted according to the sorting relationship, so as to avoid the low-priority The message occupies the hardware storage resource of the sending unit of the vehicle system, which saves the hardware resource occupation of the vehicle data transmission in the form of software, and has reliability.

103、将报文优先级序列中的待发送报文发送至报文传输通道。103. Send the to-be-sent packets in the packet priority sequence to the packet transmission channel.

本申请实施例在得到包含多个待发送报文之间的报文优先级序列后,即可基于报文优先级序列中各报文的优先级关系,依序对每一待发送报文进行传输。In the embodiment of the present application, after the message priority sequence including multiple messages to be sent is obtained, each message to be sent can be sequentially processed based on the priority relationship of each message in the message priority sequence. transmission.

其中,该报文传输通道可以是车辆系统中的数据传输通道,其分别与车辆系统中的各控制单元之间具有数据连接关系。例如,该报文传输通道可以是车辆系统中控制单元局域网(Controller Area Network,CAN)总线,即CAN Bus或CAN总线,该CAN总线分别与车辆系统中的各控制单元(系统)通信连接,如与车辆动力子系统、车灯系统、车窗系统、空调系统等连接。Wherein, the message transmission channel may be a data transmission channel in the vehicle system, which has a data connection relationship with each control unit in the vehicle system. For example, the message transmission channel can be a control unit local area network (Controller Area Network, CAN) bus in the vehicle system, that is, a CAN Bus or a CAN bus, and the CAN bus is respectively connected to each control unit (system) in the vehicle system for communication, such as It is connected with the vehicle power subsystem, car lighting system, car window system, air conditioning system, etc.

需要说明的是,在传输待发送报文的过程中,每一待发送报文的传输过程视为一个传输回合,例如,一个待发送报文从报文缓存空间传输至报文传输通道视为一个传输回合,可以理解的是,对报文缓存空间的多个待发送报文进行传输时,具有多个传输回合。It should be noted that, in the process of transmitting the message to be sent, the transmission process of each message to be sent is regarded as a transmission round, for example, the transmission of a message to be sent from the message buffer space to the message transmission channel is regarded as For one transmission round, it can be understood that when multiple messages to be sent in the message buffer space are transmitted, there are multiple transmission rounds.

在一些实施方式中,为了对报文传输过程进行有效管理,使得各传输回合之间不受影响,避免报文传输过程中受到阻塞,可以对每一报文传输回合进行管理。例如,步骤103可以包括:In some implementation manners, in order to effectively manage the message transmission process so that the transmission rounds are not affected and avoid being blocked during the message transmission process, each message transmission round may be managed. For example, step 103 may include:

(103.1)识别报文发送函数对应的函数状态;(103.1) Identify the function state corresponding to the message sending function;

(103.2)当函数状态为可发送状态时,按照报文优先级序列中的报文优先级关系选取目标待发送报文;(103.2) When the function state is a sendable state, select the target message to be sent according to the message priority relationship in the message priority sequence;

(103.3)基于报文发送函数,将目标待发送报文发送至报文传输通道。(103.3) Based on the message sending function, send the target message to be sent to the message transmission channel.

其中,该报文发送函数可以是管理报文传输回合的函数,其可以理解为传输中断函数,用于限制报文传输过程中其他待发送报文的传输。例如,在对报文优先级序列中的第一优先级的待发送报文进行传输时,该报文发送函数的函数状态会处于中断传输状态,即不可发送状态,用于限制对第二优先级的待发送报文的传输,直至第一优先级的待发送报文传输至报文传输通道时,报文发送函数的函数状态才处于可发送状态,再开始传输第二优先级的待发送报文。Wherein, the message sending function may be a function for managing message transmission rounds, which may be understood as a transmission interruption function, which is used to limit the transmission of other messages to be sent during the message transmission process. For example, when transmitting the message to be sent with the first priority in the message priority sequence, the function state of the message sending function will be in the interrupt transmission state, that is, the unsendable state, which is used to limit the transmission of the second priority The transmission of the message to be sent at the first priority level, until the message to be sent with the first priority is transmitted to the message transmission channel, the function status of the message sending function is in the sendable state, and then starts to transmit the message to be sent with the second priority message.

具体的,可通过报文发送函数依序对报文优先级序列中多个待发送报文进行传输时,在传输之前,先确定报文发送函数的函数状态,以确定该函数当前是传输其他报文,当报文发送函数处于可发送状态时,按照报文优先级序列中的报文优先级关系,从多个待发送文本中选取排序靠前的目标待发送报文。然后,通过报文发送函数来对目标待发送报文进行传输,需要说明的是,在目标待发送报文的传输过程中,该报文发送函数的函数状态为不可发送状态,即中断传输状态;具体的,该传输过程可以是:通过报文发送函数来将目标待发送报文传输至发送单元的硬件存储空间,并由发送单元将该目标待发送文本传输至报文传输通道。进一步的,在目标待发送报文传输至报文传输通道后,报文发送函数的函数状态为可发送状态,此时,继续从多个待发送文本中选取排序靠前的另一个目标待发送报文,并通过报文发送函数对另一个目标待发送报文进行传输;以此类推,直至报文优先级序列中的最后一个目标待发送报文传输完毕。Specifically, when multiple messages to be sent in the message priority sequence can be transmitted sequentially through the message sending function, before the transmission, the function status of the message sending function is first determined to determine that the function is currently transmitting other For the message, when the message sending function is in the sendable state, according to the message priority relationship in the message priority sequence, select the top-ranked target message to be sent from multiple texts to be sent. Then, the message to be sent by the target is transmitted through the message sending function. It should be noted that, during the transmission of the message to be sent by the target, the function state of the message sending function is the unsendable state, that is, the interrupted transmission state Specifically, the transmission process may be: using the message sending function to transmit the target message to be sent to the hardware storage space of the sending unit, and the sending unit transmits the target message to be sent to the message transmission channel. Further, after the message to be sent by the target is transmitted to the message transmission channel, the function status of the message sending function is in the sendable state. At this time, continue to select another target that is ranked higher in the text to be sent from multiple texts to be sent. message, and transmit the message to be sent by another target through the message sending function; and so on, until the last message to be sent by the target in the message priority sequence has been transmitted.

通过以上方式,可按照报文优先级顺序来依序传输每一待发送报文,以对传输优先级较高的数据报文进行优先传输,有效避免优先级较低的数据报文占用发送单元的硬件存储资源,降低车辆系统在传输数据报文时的负载,提高数据报文的传输性能,使得多个报文的传输过程中较为顺畅,具有可靠性。Through the above method, each message to be sent can be transmitted sequentially according to the priority order of the message, so that the data message with a higher transmission priority can be transmitted preferentially, and the data message with a lower priority can be effectively prevented from occupying the sending unit. The hardware storage resources reduce the load of the vehicle system when transmitting data messages, improve the transmission performance of data messages, and make the transmission process of multiple messages smoother and more reliable.

104、检测报文传输通道中与待发送报文对应的目标反馈报文。104. Detect the target feedback message corresponding to the message to be sent in the message transmission channel.

在本申请实施例中,车载终端在完成对待发送报文的传输后,还可接收该待发送报文对应的响应反馈报文。In the embodiment of the present application, after the vehicle-mounted terminal completes the transmission of the message to be sent, it may also receive a response feedback message corresponding to the message to be sent.

其中,该目标反馈报文可以是车辆系统中相应控制单元反馈的响应报文。具体的,车辆系统中包含多个控制单元,这多个控制单元之间通过报文传输通道连接,实现任意两个或多个控制单元之间的信息数据(报文)的交互;为了便于理解,以第一控制单元作为待发送报文的发送方,以第二控制单元作为待发送报文的接收方,则第一控制单元在将目标待发送报文传输至报文传输通道后,第二控制单元在检测到该目标待发送报文为需要接收的报文时,第二控制单元会进行接收并响应,第二控制单元在响应完毕后会上传一个目标反馈报文至报文传输通道,此时,第一控制单元可检测需要接收的目标反馈报文,并进行接收,以便后续响应。Wherein, the target feedback message may be a response message fed back by a corresponding control unit in the vehicle system. Specifically, the vehicle system includes a plurality of control units, and the plurality of control units are connected through a message transmission channel to realize the interaction of information data (messages) between any two or more control units; in order to facilitate understanding , the first control unit is used as the sender of the message to be sent, and the second control unit is used as the receiver of the message to be sent, then after the first control unit transmits the target message to be sent to the message transmission channel, the second When the second control unit detects that the target message to be sent is a message that needs to be received, the second control unit will receive and respond, and the second control unit will upload a target feedback message to the message transmission channel after completing the response , at this time, the first control unit may detect the target feedback message to be received and receive it for subsequent response.

示例性的,车辆系统中包含多个控制器(单元),每一控制器对应一个控制子系统,用户在踩油门控制车辆加速后,整车控制器会生成该加速类型的待发送报文,并将该加速类型的待发送报文传输至报文传输通道,使得车辆动力子系统接收该加速类型的报文,进而,车辆动力子系统在对该加速类型的报文中的信息数据进行响应后,即可针对响应情况返回一个响应信息数据,以告知整车控制器该加速事件的响应情况,如加速多少,而该反馈过程也是以报文形式实现。Exemplarily, the vehicle system contains multiple controllers (units), and each controller corresponds to a control subsystem. After the user steps on the accelerator to control the acceleration of the vehicle, the vehicle controller will generate a message to be sent of the acceleration type. And transmit the message to be sent of the acceleration type to the message transmission channel, so that the vehicle power subsystem receives the message of the acceleration type, and then, the vehicle power subsystem responds to the information data in the message of the acceleration type After that, a response information data can be returned according to the response situation to inform the vehicle controller of the response situation of the acceleration event, such as how much to accelerate, and the feedback process is also implemented in the form of a message.

在一些实施方式中,为了降低对报文处理负载,可选择性地接收反馈报文,以避免无关的数据报文对车辆系统的负载。具体的,步骤104可以包括:In some implementations, in order to reduce the load on message processing, the feedback message may be selectively received, so as to avoid the load of irrelevant data messages on the vehicle system. Specifically, step 104 may include:

(104.1)确定可接收报文的标识范围值;(104.1) Determine the identification range value of the receivable message;

(104.2)从报文传输通道中拉取符合标识范围值的待确认报文;(104.2) Pull the message to be confirmed that meets the identification range value from the message transmission channel;

(104.3)将待确认报文确定为待发送报文对应的目标反馈报文。(104.3) Determine the message to be confirmed as the target feedback message corresponding to the message to be sent.

其中,该标识范围值可以是报文标识的范围值,用于限制本端可接收的数据报文。具体的,车辆系统中包含多个控制器,这使得报文传输通道中需要传输较多的数据报文,为了避免各控制器在处理数据报文时发生紊乱,可预先为每一控制器设定可使用的报文标识范围值,且针对车辆系统中不同类型的数据报文设定对应的报文标识,使得为控制器可根据标识范围值来检测可接收的报文。例如,整车控制器可使用的报文标识范围可以是“0x100”至“0x320”,则其可接收报文标识为“0x100”至“0x320”;此外,该标识范围值还可以表示相应控制器的待发送报文的标识范围,即整车控制器的待发送报文的标识范围为“0x100”至“0x320”。Wherein, the identifier range value may be a message identifier range value, which is used to limit the data packets that the local end can receive. Specifically, the vehicle system contains multiple controllers, which requires more data packets to be transmitted in the message transmission channel. In order to avoid confusion when each controller processes data packets, each controller can be pre-set Determine the available message identifier range value, and set corresponding message identifiers for different types of data messages in the vehicle system, so that the controller can detect acceptable messages according to the identifier range value. For example, the message identification range that can be used by the vehicle controller can be "0x100" to "0x320", and the message identification it can receive is "0x100" to "0x320"; in addition, the identification range value can also indicate the corresponding control The identification range of the message to be sent by the controller, that is, the identification range of the message to be sent by the vehicle controller is "0x100" to "0x320".

具体的,确定当前车载终端所使用的的报标识范围值,检测报文传输通道中是否包含待确认报文,当检测到待确认报文时,识别每一待确认报文对应的报文标识,将该待确认报文的报文标识与标识范围值进行对比,以过滤不符合该标识范围值的待确认报文,以避免当前车载终端接收无关的数据报文,影响当前车载终端的负载和性能。进而,将符合该标识范围值的待确认报文确定为目标反馈报文,以进行接收和后续的响应。Specifically, determine the range value of the message identification used by the current vehicle-mounted terminal, detect whether the message transmission channel contains a message to be confirmed, and when the message to be confirmed is detected, identify the message label corresponding to each message to be confirmed , compare the message identification of the message to be confirmed with the identification range value, to filter the message to be confirmed that does not meet the identification range value, so as to avoid the current vehicle-mounted terminal from receiving irrelevant data messages and affecting the load of the current vehicle-mounted terminal and performance. Furthermore, the message to be confirmed conforming to the identification range value is determined as the target feedback message for reception and subsequent response.

示例性的,以整车控制器作为车载终端为例,假设整车控制器使用的报文标识范围可以是“0x100”至“0x320”,当报文传输通道中的待确认报文的报文标识为“0x110”,其符合整车控制器的标识范围值,则整车控制器可接收该“0x110”的待确认报文。又如,以其他标识为例,假设报文传输通道中包含“1FF”、“2FF”、“3FF”、“5FF”、“7FF”的数据报文,假设整车控制器可接收的报文范围为“1FF~3FF”,则仅接收“1FF”、“2FF”和“3FF”的待确认报文,以便后续作为目标反馈报文。Exemplarily, taking the vehicle controller as the vehicle terminal as an example, assuming that the message identification range used by the vehicle controller can be "0x100" to "0x320", when the message of the message to be confirmed in the message transmission channel The identification is "0x110", which conforms to the identification range value of the vehicle controller, and the vehicle controller can receive the "0x110" message to be confirmed. As another example, taking other identifiers as an example, assuming that the message transmission channel contains data messages of "1FF", "2FF", "3FF", "5FF", and "7FF", assuming that the message that the vehicle controller can receive If the range is "1FF~3FF", only the messages to be confirmed of "1FF", "2FF" and "3FF" are received, so that they can be used as target feedback messages later.

在一些实施方式中,可根据待确认报文的类型来确定与待发送报文对应的反馈报文。则步骤(104.3)可以包括:In some implementation manners, the feedback message corresponding to the message to be sent may be determined according to the type of the message to be confirmed. Then step (104.3) may include:

(104.3.1)识别待确认报文对应的待确认报文标识;(104.3.1) identifying the identifier of the message to be confirmed corresponding to the message to be confirmed;

(104.3.2)获取报文标识数组,将待确认报文标识与报文标识数组中的标识进行匹配,得到匹配结果;(104.3.2) Obtain the message identifier array, match the identifier in the message identifier to be confirmed with the message identifier array, and obtain the matching result;

(104.3.3)根据匹配结果确定待确认报文的报文类型,并将待确认报文确定为报文类型的待发送报文对应的目标反馈报文。(104.3.3) Determine the message type of the message to be confirmed according to the matching result, and determine the message to be confirmed as the target feedback message corresponding to the message to be sent of the message type.

其中,该报文标识数组可以是报文缓存数组,其包含多个报文缓存区,每一报文缓存区具有对应的缓存分组标识,每一报文缓存区用于匹配对应类型的报文。Wherein, the message identifier array may be a message buffer array, which includes a plurality of message buffer areas, each message buffer area has a corresponding cache group identifier, and each message buffer area is used to match a corresponding type of message .

由于报文标识与车辆信息数据的类型相对应,则车载终端在接收到待确认报文对应的报文标识后,可将待确认报文对应的报文标识来确定待确认报文的类型。具体的,获取报文标识数组,通过二分法将待确认报文的标识与报文标识数组中的缓存分组标识进行匹配,以加快匹配的进程,有利于目标反馈报文后续能够快速地从报文标识数组中取出,从而保证报文的有效性;当匹配结果中包含与待确认报文标识对应的目标缓存分组标识时,确定目标缓存分组标识所关联的报文类型;进而,将待确认报文确定为与报文类型的待发送报文对应的目标反馈报文。Since the message identifier corresponds to the type of the vehicle information data, after receiving the message identifier corresponding to the message to be confirmed, the vehicle-mounted terminal can use the message identifier corresponding to the message to be confirmed to determine the type of the message to be confirmed. Specifically, the message identification array is obtained, and the identification of the message to be confirmed is matched with the cached group identification in the message identification array through the dichotomy method, so as to speed up the matching process, and it is beneficial for the target feedback message to be quickly retrieved from the report. In order to ensure the validity of the message; when the matching result contains the target cache group ID corresponding to the message ID to be confirmed, determine the message type associated with the target cache group ID; The message is determined as a target feedback message corresponding to the message of the message type to be sent.

示例性的,以整车控制器为例,用户在踩油门控制车辆加速后,整车控制器会生成该加速类型的待发送报文,并将该加速类型的待发送报文传输至报文传输通道,使得车辆动力子系统接收该加速类型的报文,进而,车辆动力子系统在对该加速类型的报文中的信息数据进行响应后,即可针对响应情况返回一个待确认报文,此时,整车控制器可接收该待确认报文,并通过待确认报文的报文标识的匹配,以识别报文类型,如识别到为加速类型,从而,将其确定为加速类型对应的目标反馈报文,以便后续响应。Exemplarily, taking the vehicle controller as an example, after the user steps on the accelerator to control the acceleration of the vehicle, the vehicle controller will generate a message to be sent of the acceleration type, and transmit the message to be sent of the acceleration type to the message The transmission channel enables the vehicle power subsystem to receive the message of the acceleration type, and then, after the vehicle power subsystem responds to the information data in the message of the acceleration type, it can return a message to be confirmed according to the response situation, At this time, the vehicle controller can receive the message to be confirmed, and identify the message type by matching the message identifiers of the message to be confirmed. If it is recognized as an acceleration type, it can be determined as the acceleration type The target feedback message for subsequent response.

在一些实施方式中,该报文标识数组中包含的缓存分组标识与本车载终端可使用的报文标识范围相对应,因此,可根据本车载终端可使用的报文标识范围来构建报文标识数组,则步骤(104.3.2)中的“获取报文标识数组”之前,可以包括:查询多个可接收报文的目标报文标识;按照标识大小关系对多个目标报文标识进行排序,得到报文标识序列;按照报文标识序列生成报文标识数组。In some implementations, the cached group identifiers contained in the message identifier array correspond to the range of message identifiers available to the vehicle-mounted terminal, therefore, the message identifiers can be constructed according to the range of message identifiers available to the vehicle-mounted terminal array, before "obtaining the array of message identifiers" in the step (104.3.2), it may include: querying the target message identifiers of a plurality of receivable messages; Obtain the message identification sequence; generate a message identification array according to the message identification sequence.

通过以上方式,车载终端在完成对待发送报文的传输后,可从报文传输通道中接收需要处理的待确认报文,并通过查询匹配,确定为相应类型的目标反馈报文,以便后续进行响应。Through the above method, after the vehicle-mounted terminal completes the transmission of the message to be sent, it can receive the message to be processed from the message transmission channel, and determine it as the corresponding type of target feedback message through query matching, so that subsequent response.

105、执行目标反馈报文对应的报文响应策略。105. Execute a message response policy corresponding to the target feedback message.

在本申请实施例中,车载终端在接收到针对已发送报文的目标反馈报文后,可获取该目标反馈报文对应的报文响应策略,并执行该报文响应策略,以在车辆系统中作出响应,如向驾驶员发出提示信息。In this embodiment of the application, after receiving the target feedback message for the sent message, the vehicle-mounted terminal can obtain the message response policy corresponding to the target feedback message, and execute the message response policy, so that the vehicle system can Response, such as sending a reminder message to the driver.

示例性的,以整车控制器作为车载终端,用户在踩油门控制车辆加速后,整车控制器会生成该加速类型的待发送报文,并将该加速类型的待发送报文传输至报文传输通道,车辆动力子系统在接收该加速类型的报文并进行响应后,即可针对响应情况返回一个目标反馈报文,此时,整车控制器即可查询该目标反馈报文对应的报文响应策略,如查询加速类型的信息提示策略,并按照信息提示策略对车辆的加速结果进行提示,如通过语音播报车辆时速、速度涨幅、当前车速的安全系数等。Exemplarily, the vehicle controller is used as the vehicle-mounted terminal. After the user steps on the accelerator to control the vehicle to accelerate, the vehicle controller will generate a message of the acceleration type to be sent, and transmit the message of the acceleration type to the report After the vehicle power subsystem receives the acceleration type message and responds, it can return a target feedback message according to the response situation. At this time, the vehicle controller can query the corresponding target feedback message. Message response strategy, such as querying the information prompt strategy of the acceleration type, and prompting the acceleration result of the vehicle according to the information prompt strategy, such as broadcasting the vehicle speed, speed increase, and safety factor of the current speed through voice.

需要说明的是,在同时接收到多个目标反馈报文时,为了避免目标反馈报文在响应时产生错乱,可通过相关函数来依序对每个目标反馈报文进行响应。It should be noted that when multiple target feedback messages are received at the same time, in order to avoid confusion when responding to the target feedback messages, a correlation function may be used to sequentially respond to each target feedback message.

在一些实施方式中,可通过报文响应端来响应目标反馈报文,并结合相关函数来对报文响应过程进行控制。具体的,步骤105可以包括:识别报文响应函数的执行状态;当执行状态为空闲状态时,将目标反馈报文发送至报文响应端,使得报文响应端执行目标反馈报文对应的报文响应策略;当执行状态为非空闲状态时,检测报文响应端的报文响应进度;当报文响应进度达到预设进度阈值时,将目标反馈报文发送至报文响应端,使得报文响应端执行目标反馈报文对应的报文响应策略。In some implementations, the target feedback message can be responded to through the message responder, and the message response process can be controlled in combination with related functions. Specifically, step 105 may include: identifying the execution state of the message response function; when the execution state is idle, sending the target feedback message to the message responder, so that the message responder executes the message corresponding to the target feedback message message response strategy; when the execution state is not idle, detect the message response progress of the message response end; when the message response progress reaches the preset progress threshold, send the target feedback message to the message response end, so that the message response The responder executes the message response policy corresponding to the target feedback message.

其中,该报文响应端可以是显示屏、语音播报器、触感响应端等,每一报文响应端存储有对应的响应策略。Wherein, the message response terminal may be a display screen, a voice announcer, a touch response terminal, etc., and each message response terminal stores a corresponding response strategy.

其中,该报文响应函数可以是管理报文响应过程的函数,其可以理解为响应中断函数,用于限制报文响应过程中目标响应报文的传输。例如,在将报文标识数组中的目标反馈报文传输至响应端时,该报文响应函数的函数状态会处于中断响应状态,即非空闲状态,用于限制接下来需要响应的目标反馈报文的传输,直至报文响应函数的函数状态处于空闲状态,再向相应的报文响应端传输当前需要响应的目标反馈报文,以使得相应的报文响应端执行该目标反馈报文对应的报文响应策略。Wherein, the message response function may be a function for managing the message response process, which may be understood as a response interrupt function, which is used to limit the transmission of the target response message during the message response process. For example, when the target feedback message in the message identifier array is transmitted to the responder, the function state of the message response function will be in the interrupt response state, that is, the non-idle state, which is used to limit the target feedback message that needs to be responded next. until the function state of the message response function is in an idle state, and then transmit the target feedback message that needs to be responded to the corresponding message responder, so that the corresponding message responder executes the corresponding target feedback message Packet response strategy.

通过实施本申请实施例中任意一个实施方式或实施方式组合,可实现车辆数据传输过程的应用场景。By implementing any one or combination of implementations in the embodiments of the present application, the application scenario of the vehicle data transmission process can be realized.

由上可知,本申请实施例可以获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间,报文缓存空间为寄存未传输的数据报文的存储空间;对报文缓存空间中的待发送报文进行优先级排序,得到报文优先级序列;将报文优先级序列中的待发送报文发送至报文传输通道;检测报文传输通道中与待发送报文对应的目标反馈报文;执行目标反馈报文对应的报文响应策略。由此可得,本方案可先确定需要传输的车辆数据的报文,并在报文缓存空间中对需要发送的报文进行优先级的排序,然后,按照报文优先级序列的顺序关系对待发送报文进行传输,有效避免优先级较低的报文占用报文传输时的收发存储单元的空间,最后,接收待发送报文对应的目标反馈报文,并执行目标反馈报文对应的报文响应策略;以此,可一定程度上扩充车辆数据的传输总量,满足车辆数据的传输需求,提高了车辆业务功能的响应效率,提高了用户的体验。As can be seen from the above, the embodiment of the present application can obtain the message to be sent corresponding to the vehicle data, and transmit the message to be sent to the message cache space, and the message cache space is a storage space for storing untransmitted data messages; Prioritize the messages to be sent in the message buffer space to obtain the message priority sequence; send the messages to be sent in the message priority sequence to the message transmission channel; detect the message transmission channel and the message to be sent The target feedback message corresponding to the message; execute the message response strategy corresponding to the target feedback message. It can be seen from this that this scheme can first determine the message of the vehicle data that needs to be transmitted, and sort the priority of the message to be sent in the message buffer space, and then treat it according to the order relationship of the priority sequence of the message Send a message for transmission, effectively avoiding that the message with a lower priority occupies the space of the sending and receiving storage unit during message transmission. Finally, receive the target feedback message corresponding to the message to be sent, and execute the message corresponding to the target feedback message. In this way, the total amount of vehicle data transmission can be expanded to a certain extent to meet the transmission needs of vehicle data, improve the response efficiency of vehicle business functions, and improve user experience.

根据上面实施例所描述的方法,以下将举例作进一步详细说明。According to the methods described in the above embodiments, examples will be given below for further detailed description.

本申请实施例以车辆数据传输装置为例,对本申请实施例提供的车辆数据传输方法作进一步叙述。其中,图4是本申请实施例提供的车辆数据传输方法的另一步骤流程示意图,图5是本申请实施例提供的车辆数据传输系统的架构示意图,图6是本申请实施例提供的车辆数据传输方法的报文发送场景示意图,图7是本申请实施例提供的车辆数据传输方法的报文接收场景示意图。为了便于理解,本申请实施例结合图4-7进行描述。The embodiment of the present application takes the vehicle data transmission device as an example to further describe the vehicle data transmission method provided in the embodiment of the present application. Among them, Fig. 4 is a schematic flow chart of another step of the vehicle data transmission method provided by the embodiment of the present application, Fig. 5 is a schematic diagram of the architecture of the vehicle data transmission system provided by the embodiment of the present application, and Fig. 6 is a schematic diagram of the vehicle data transmission method provided by the embodiment of the present application A schematic diagram of a message sending scenario of a transmission method, and FIG. 7 is a schematic diagram of a message receiving scenario of a vehicle data transmission method provided in an embodiment of the present application. For ease of understanding, the embodiments of the present application are described in conjunction with FIGS. 4-7 .

在本申请实施例中,将从车辆数据传输装置的角度进行描述,该车辆数据传输装置具体可以集成在计算机设备如终端中,该终端可以是车辆系统中的车载终端。当终端上的处理器执行车辆数据传输方法对应的程序指令时,该车辆数据传输方法的具体流程如下:In the embodiment of the present application, description will be made from the perspective of the vehicle data transmission device. The vehicle data transmission device may specifically be integrated in a computer device such as a terminal, and the terminal may be a vehicle-mounted terminal in a vehicle system. When the processor on the terminal executes the program instructions corresponding to the vehicle data transmission method, the specific flow of the vehicle data transmission method is as follows:

需要说明的是,该车辆系统中的终端可分别指第一车载终端和第二车载终端。It should be noted that the terminals in the vehicle system may refer to the first vehicle-mounted terminal and the second vehicle-mounted terminal respectively.

201、第一车载终端获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间。201. The first vehicle-mounted terminal acquires a message to be sent corresponding to the vehicle data, and transmits the message to be sent to a message buffer space.

其中,该待发送报文为车辆系统中车辆信息数据的数据传输单元,以整车(车辆)控制器为例,该待发送报文可以是制动、提速、车窗控制空调控制或挡位控制等等信息数据的报文。Wherein, the message to be sent is the data transmission unit of the vehicle information data in the vehicle system. Taking the vehicle (vehicle) controller as an example, the message to be sent can be brake, speed up, window control, air conditioning control or gear position Messages for control and other information data.

由于车辆系统中的硬件配置的资源有限,如车辆芯片中的存储空间资源有限,而车辆系统中各控制单元之间需要传输的信息数据量较多,即报文数量较多,且车载系统在传输报文时具有优先级特性,这会使得报文占用了硬件配置中的存储资源,使得车载系统在应对这些信息数据时的负载较大。对此,本申请实施例通过软件的方式创建一个报文缓存空间,以在数据报文传输之前,在该报文缓存空间之中对数据报文进行排序,以便按照排序结果来传输报文,避免低优先级的报文占用硬件配置中的存储资源。Due to the limited resources of the hardware configuration in the vehicle system, such as the limited storage space resources in the vehicle chip, and the amount of information data that needs to be transmitted between the control units in the vehicle system is large, that is, the number of messages is large, and the vehicle system is in There is a priority characteristic when transmitting messages, which will cause the messages to occupy storage resources in the hardware configuration, causing the vehicle system to be heavily loaded when dealing with these information data. In this regard, the embodiment of the present application creates a message buffer space by means of software, so as to sort the data messages in the message buffer space before the data message is transmitted, so as to transmit the messages according to the sorting result, Prevent low-priority packets from occupying storage resources in the hardware configuration.

其中,该报文缓存空间为寄存未传输的数据报文的存储空间,具体的,在对报文进行传输之前,可将需要传输的每个报文寄存在报文缓存空间中,以便后续在排序后进行传输。需要说明的是,该报文缓存空间可以是缓存数组形式的空间,该空间的大小可大于需要发送的报文总数的大小。Wherein, the message buffer space is a storage space for storing untransmitted data messages. Specifically, before the message is transmitted, each message that needs to be transmitted can be stored in the message buffer space, so that the subsequent Sequenced for transmission. It should be noted that the message buffer space may be in the form of a cache array, and the size of the space may be larger than the total number of messages to be sent.

具体的,第一车载终端可在检测到车辆数据后,可通过报文形式来包装需要传输的车辆信息数据,并将得到的待发送报文传入报文缓存空间,以便在报文缓存空间中对各待发送报文进行排序并发送。Specifically, after the first vehicle-mounted terminal detects the vehicle data, it can package the vehicle information data that needs to be transmitted in the form of a message, and transfer the obtained message to be sent into the message buffer space, so that in the message buffer space sort and send the packets to be sent.

202、第一车载终端识别报文缓存空间中每一待发送报文的报文类型,并根据报文类型确定每一待发送报文对应的报文标识。202. The first vehicle-mounted terminal identifies the message type of each message to be sent in the message buffer space, and determines a message identifier corresponding to each message to be sent according to the message type.

其中,该报文类型可以表示报文中车辆数据的类型。可以理解的是,车辆系统中包含很多类型的车辆数据,以整车控制器为例,车辆数据可以包含档位控制、制动、提速、离合、空调控制、方向灯等类型的信息数据,以每一个信息数据生成一个报文,则不同信息数据对应的报文类型可以不一致。Wherein, the message type may indicate the type of vehicle data in the message. It can be understood that the vehicle system contains many types of vehicle data. Taking the vehicle controller as an example, the vehicle data can include gear control, braking, speed up, clutch, air conditioning control, direction lights, etc. Each information data generates a message, and the message types corresponding to different information data may be inconsistent.

其中,该报文标识可由缓存数组中对应的报文缓存区的标识赋予。具体的,可预先构建报文缓存区与报文类型之间的映射关系,进而,根据报文类型来选定待发送报文在缓存数组中所要寄存的报文缓存区,以便通过该报文缓存区的标识来赋予相应待发送报文的报文标识。Wherein, the message identifier may be given by the identifier of the corresponding message buffer area in the cache array. Specifically, the mapping relationship between the message buffer area and the message type can be constructed in advance, and then, according to the message type, the message buffer area to be stored in the cache array for the message to be sent is selected, so that the message can be passed The identifier of the buffer area is used to assign the message identifier of the corresponding message to be sent.

203、第一车载终端按照报文标识的从小到大关系,确定多个待发送报文之间的报文优先级关系。203. The first vehicle-mounted terminal determines the message priority relationship among the multiple messages to be sent according to the small to large relationship of the message identifiers.

示例性的,假设包含车辆加速、车辆减速、车窗控制、空调温度控制等类型的报文,车辆加速类型的报文的标识为“0x100”、车辆减速类型的报文的标识为“0x110”、车窗控制类型的报文的标识为“0x200”、空调温度控制类型的报文的标识为“0x300”,则按照标识从小到大关系,以上类型的报文优先级关系依序为:车辆加速报文、车辆减速报文、车窗控制报文、空调温度控制报文。可以理解的是,报文标识越小,则报文的优先级越高。Exemplarily, it is assumed that messages of vehicle acceleration, vehicle deceleration, window control, air conditioner temperature control, etc. are included, and the message of the vehicle acceleration type is identified as "0x100", and the message of the vehicle deceleration type is identified as "0x110" , the window control type message is identified as "0x200", and the air conditioner temperature control type message is identified as "0x300", then according to the relationship from small to large, the priority relationship of the above types of messages is as follows: vehicle Acceleration message, vehicle deceleration message, window control message, air conditioner temperature control message. It can be understood that the smaller the packet identifier, the higher the priority of the packet.

204、第一车载按照报文优先级关系,构建对多个待发送报文对应的报文优先级序列。204. The first vehicle builds a message priority sequence corresponding to multiple messages to be sent according to the message priority relationship.

其中,该报文优先级序列可以是包含多个待发送报文的优先级排序关系的序列。Wherein, the packet priority sequence may be a sequence including priority ranking relationships of multiple packets to be sent.

205、第一车载终端在识别到报文发送函数对应的函数状态为可发送状态时,按照报文优先级序列中的报文优先级关系选取目标待发送报文。205. When the first vehicle-mounted terminal recognizes that the function state corresponding to the message sending function is in the sendable state, select the target message to be sent according to the message priority relationship in the message priority sequence.

其中,该报文发送函数可以是管理报文传输回合的函数,其可以理解为传输中断函数,用于限制报文传输过程中其他待发送报文的传输。该报文发送函数的函数状态可以包括可发送和不可发送两种状态,Wherein, the message sending function may be a function for managing message transmission rounds, which may be understood as a transmission interruption function, which is used to limit the transmission of other messages to be sent during the message transmission process. The function state of the message sending function may include two states: sendable and unsendable,

具体的,可通过报文发送函数依序对报文优先级序列中多个待发送报文进行传输时,在传输之前,先确定报文发送函数的函数状态,以确定该函数当前是传输其他报文,当报文发送函数处于可发送状态时,按照报文优先级序列中的报文优先级关系,从多个待发送文本中选取排序靠前的目标待发送报文。Specifically, when multiple messages to be sent in the message priority sequence can be transmitted sequentially through the message sending function, before the transmission, the function status of the message sending function is first determined to determine that the function is currently transmitting other For the message, when the message sending function is in the sendable state, according to the message priority relationship in the message priority sequence, select the top-ranked target message to be sent from multiple texts to be sent.

206、第一车载终端通过报文发送函数将目标待发送报文发送至报文传输通道。206. The first vehicle-mounted terminal sends the target to-be-sent message to the message transmission channel through the message sending function.

需要说明的是,在目标待发送报文的传输过程中,该报文发送函数的函数状态为不可发送状态,即中断传输状态,目的是为了对报文传输过程进行有效管理,使得各报文的传输回合之间不受影响,有效避免报文传输过程中受到阻塞的现象。It should be noted that during the transmission process of the target message to be sent, the function state of the message sending function is the unsendable state, that is, the interrupt transmission state. The purpose is to effectively manage the message transmission process, so that each message The transmission rounds are not affected, effectively avoiding the phenomenon of being blocked during message transmission.

其中,该传输过程为:将报文发送函数的函数状态设为不可发送状态。通过报文发送函数来将目标待发送报文传输至发送单元的硬件存储空间,并由发送单元将该目标待发送文本传输至报文传输通道;进一步的,在目标待发送报文传输至报文传输通道后,报文发送函数的函数状态为可发送状态,此时,继续从多个待发送文本中选取排序靠前的另一个目标待发送报文,并通过报文发送函数对另一个目标待发送报文进行传输;以此类推,直至报文优先级序列中的最后一个目标待发送报文传输完毕。Wherein, the transmission process is: setting the function state of the message sending function to a non-sendable state. Use the message sending function to transmit the target message to be sent to the hardware storage space of the sending unit, and the sending unit transmits the target message to be sent to the message transmission channel; further, after the target message is transmitted to the message After the text is transmitted through the channel, the function status of the message sending function is ready to send. At this time, continue to select another target to send a message from the multiple texts to be sent, and use the message sending function to send another message. The target transmits the message to be sent; and so on, until the last target message to be sent in the message priority sequence has been transmitted.

207、第二车载终端从报文传输通道中接收目标待发送报文,并进行响应。207. The second vehicle-mounted terminal receives the target message to be sent from the message transmission channel, and responds.

具体的,车辆系统中包含多个控制单元,这多个控制单元之间通过报文传输通道连接,实现任意两个或多个控制单元之间的信息数据(报文)的交互;为了便于理解,以第一车载终端作为待发送报文的发送方,以第二车载终端作为待发送报文的接收方,则第一车载终端在将目标待发送报文传输至报文传输通道后,第二车载终端在检测到该目标待发送报文为需要接收的报文时,第二车载终端会进行接收并响应,以便使得车辆处于相应的控制状态。Specifically, the vehicle system includes a plurality of control units, and the plurality of control units are connected through a message transmission channel to realize the interaction of information data (messages) between any two or more control units; in order to facilitate understanding , with the first vehicle-mounted terminal as the sender of the message to be sent, and the second vehicle-mounted terminal as the receiver of the message to be sent, then after the first vehicle-mounted terminal transmits the target message to be sent to the message transmission channel, the second When the second vehicle-mounted terminal detects that the message to be sent by the target is a message that needs to be received, the second vehicle-mounted terminal will receive and respond, so that the vehicle is in a corresponding control state.

示例性的,用户在踩油门控制车辆加速后,整车控制器(第一车载终端)会生成该加速类型的待发送报文,并将该加速类型的待发送报文传输至报文传输通道,使得车辆动力子系统接收该加速类型的报文,进而,车辆动力子系统在对该加速类型的报文中的信息数据进行响应,使得车辆处于加速后的状态,如车辆加速到60时速时,保持该时速航行。Exemplarily, after the user steps on the accelerator to control the acceleration of the vehicle, the vehicle controller (first vehicle terminal) will generate a message of the type of acceleration to be sent, and transmit the message of the type of acceleration to be sent to the message transmission channel , so that the vehicle power subsystem receives the message of the acceleration type, and then, the vehicle power subsystem responds to the information data in the message of the acceleration type, so that the vehicle is in the accelerated state, such as when the vehicle accelerates to 60 hours per hour , keep sailing at this speed.

208、第二车载终端根据响应结果生成目标反馈报文,并传输至报文传输通道。208. The second vehicle terminal generates a target feedback message according to the response result, and transmits it to the message transmission channel.

具体的,第二车载终端在响应完毕后,会根据响应情况生成一个目标反馈报文,并上传至报文传输通道,以向第一车载终端反馈针对“目标待发送报文”的响应情况。Specifically, after the second vehicle-mounted terminal completes the response, it will generate a target feedback message according to the response and upload it to the message transmission channel to feed back the response to the "target message to be sent" to the first vehicle-mounted terminal.

示例性的,车辆动力子系统从报文传输通道中接收该加速类型的报文后,可对该加速类型的报文中的信息数据进行响应,并根据针对响应情况返回一个响应信息数据,具体以目标反馈报文的形式进行反馈,以告知第一车载终端该加速事件的响应情况,如加速多少,当前时速多少等。Exemplarily, after the vehicle power subsystem receives the acceleration type message from the message transmission channel, it can respond to the information data in the acceleration type message, and return a response information data according to the response situation, specifically Feedback is performed in the form of a target feedback message to inform the first vehicle-mounted terminal of the response to the acceleration event, such as the amount of acceleration and the current speed per hour.

209、第一车载终端确定可接收报文的标识范围值,并从报文传输通道中读取符合标识范围值的目标反馈报文。209. The first vehicle-mounted terminal determines the identification range value of the receivable message, and reads the target feedback message conforming to the identification range value from the message transmission channel.

其中,该标识范围值可以是报文标识的范围值,用于限制本端可接收的数据报文,以便于选择性地接收反馈报文,以避免无关的数据报文对车辆系统的负载。Wherein, the identifier range value may be a message identifier range value, which is used to limit the data packets that can be received by the local end, so as to selectively receive feedback packets, so as to avoid the load of irrelevant data packets on the vehicle system.

示例性的,以整车控制器作为第一车载终端,整车控制器可使用的报文标识范围可以是“0x100”至“0x320”,当报文传输通道中的传输标识为“0x110”的报文时,其符合整车控制器的标识范围值,则整车控制器可接收该“0x110”的报文,即目标反馈报文。Exemplarily, with the vehicle controller as the first vehicle-mounted terminal, the message identification range that the vehicle controller can use can be "0x100" to "0x320", when the transmission identification in the message transmission channel is "0x110" If the message matches the identification range value of the vehicle controller, the vehicle controller can receive the "0x110" message, that is, the target feedback message.

210、第一车载终端识别报文响应函数的执行状态,并在执行状态为空闲状态时,执行目标反馈报文对应的报文响应策略。210. The first vehicle-mounted terminal identifies an execution state of the message response function, and executes a message response policy corresponding to the target feedback message when the execution state is an idle state.

具体的,第一车载终端在接收到针对已发送报文的目标反馈报文后,可获取该目标反馈报文对应的报文响应策略,并执行该报文响应策略,以在车辆系统中作出响应,如向驾驶员发出提示信息。Specifically, after receiving the target feedback message for the sent message, the first vehicle-mounted terminal can obtain the message response strategy corresponding to the target feedback message, and execute the message response strategy to make a response in the vehicle system. Responses, such as alerting the driver.

其中,第一车载终端在对报文的响应过程中,同时接收到多个目标反馈报文时,为了避免目标反馈报文在响应时产生错乱,可通过报文响应函数来管控对每个目标反馈报文的响应进程。其中,该报文响应函数可以是管理报文响应过程的函数,其可以理解为响应中断函数,用于限制报文响应过程中目标响应报文的传输。Among them, when the first vehicle-mounted terminal receives multiple target feedback messages at the same time in the process of responding to the message, in order to avoid confusion when the target feedback message responds, the message response function can be used to control the response of each target. The response process of the feedback message. Wherein, the message response function may be a function for managing the message response process, which may be understood as a response interrupt function, which is used to limit the transmission of the target response message during the message response process.

具体的,识别报文响应函数的执行状态,当执行状态为空闲状态时,将目标反馈报文发送至报文响应端,使得报文响应端执行目标反馈报文对应的报文响应策略。示例性的,以语音播报器作为报文响应端为例,该目标反馈报文为加速类型的反馈报文,则可查询加速类型的信息提示策略,并按照信息提示策略对车辆的加速结果进行提示,如通过语音播报车辆时速、速度涨幅、当前车速的安全系数等。Specifically, the execution state of the message response function is identified, and when the execution state is idle, the target feedback message is sent to the message responder, so that the message responder executes the message response policy corresponding to the target feedback message. Exemplarily, taking the voice announcer as the message response terminal as an example, if the target feedback message is an acceleration type feedback message, the information prompt strategy of the acceleration type can be queried, and the acceleration result of the vehicle can be checked according to the information prompt policy. Tips, such as broadcasting the vehicle speed, speed increase, safety factor of the current speed, etc. through voice.

需要说明的是,关于本申请实施例的部分描述与前述实施例的描述相同,具体可参照前述实施例,此处不作一一赘述。It should be noted that part of the descriptions about the embodiments of the present application are the same as the descriptions of the foregoing embodiments, for details, reference may be made to the foregoing embodiments, and details are not repeated here.

为了便于理解,执行步骤201-210,结合图5-7,以车辆系统中任意两个控制器为例,对车辆数据传输的场景示例进行叙述。具体如下:For ease of understanding, steps 201-210 are executed, with reference to FIGS. 5-7 , taking any two controllers in the vehicle system as an example, an example scenario of vehicle data transmission is described. details as follows:

一、该车辆数据传输系统的架构1. Architecture of the vehicle data transmission system

车辆数据传输系统由多个控制器和报文传输通道连接而成,具体的,该报文传输通道可以是车辆系统中控制单元局域网(Controller Area Network,CAN)总线,即CAN Bus或CAN总线,该CAN总线分别与车辆系统中的各控制单元(系统)通信连接,如CAN总线与车辆动力子系统、车灯系统、车窗系统、空调系统等连接。The vehicle data transmission system is formed by connecting multiple controllers and message transmission channels. Specifically, the message transmission channel may be a CAN bus (Controller Area Network, CAN) in the vehicle system, that is, a CAN Bus or a CAN bus. The CAN bus communicates with various control units (systems) in the vehicle system, for example, the CAN bus is connected with the vehicle power subsystem, the vehicle lighting system, the vehicle window system, the air conditioning system, and the like.

示例性的,参见图5所示,该车辆数据传输系统的架构包括第一控制器(可对应第一车载终端)和第二控制器(可对应第二车载终端),第一控制器和第二控制器分别与CANBus连接,两者之间可通过CAN Bus来实现车辆信息数据的交互。其中,第一控制器和第二控制器在结构上可以是相同或相似。Exemplarily, as shown in FIG. 5 , the architecture of the vehicle data transmission system includes a first controller (which may correspond to the first vehicle-mounted terminal) and a second controller (which may correspond to the second vehicle-mounted terminal), the first controller and the second vehicle-mounted terminal The two controllers are respectively connected to CANBus, and the vehicle information data can be exchanged between the two through CAN Bus. Wherein, the first controller and the second controller may be identical or similar in structure.

为了便于理解,以第一控制器为例进行叙述。第一控制器其除了具有信息数据的产生、报文生成、报文响应管理等能力外,还可包含CAN控制器、报文发送存储单元和报文接收存储单元。其中,该CAN控制器内可构建报文缓存空间(即报文缓存数组),用于接收第一控制器产生的待发送报文,并对待发送报文进行排序。其中,该报文发送存储单元可用于对将待发送报文上传至CAN Bus。其中,报文接收存储单元用于从CAN Bus中接收需要处理的任意报文,如第二控制器上传至CAN Bus中的目标反馈报文,此外,还可以接收其他任意需要处理的报文,甚至可以接收本端中发送出去的“待发送报文”,以使得第一控制器中的CAN控制器了解报文的传输情况。For ease of understanding, the first controller is used as an example for description. In addition to the capabilities of information data generation, message generation, and message response management, the first controller may also include a CAN controller, a message sending storage unit, and a message receiving storage unit. Wherein, a message buffer space (that is, a message buffer array) may be constructed in the CAN controller for receiving the messages to be sent generated by the first controller and sorting the messages to be sent. Wherein, the message sending storage unit can be used to upload the message to be sent to the CAN Bus. Among them, the message receiving storage unit is used to receive any message that needs to be processed from the CAN Bus, such as the target feedback message uploaded by the second controller to the CAN Bus, in addition, it can also receive any other message that needs to be processed, It can even receive the "message to be sent" sent from the local end, so that the CAN controller in the first controller can understand the transmission situation of the message.

二、该车辆数据传输场景的示例2. Example of the vehicle data transmission scenario

具体的,结合CAN总线的报文仲裁特性,在CAN控制器中通过软件收发缓存机制来构建报文缓存空间,即缓存数组,以扩充第一控制器和第二控制器可收发报文的总数。为了便于理解,将以第一控制器为例,结合图6和图7分别对车辆系统中数据报文的发送场景和接收场景进行叙述,具体如下:Specifically, in combination with the message arbitration feature of the CAN bus, a message buffer space, that is, a cache array, is constructed in the CAN controller through a software sending and receiving buffer mechanism to expand the total number of messages that can be sent and received by the first controller and the second controller . In order to facilitate understanding, the first controller will be taken as an example, and the sending and receiving scenarios of the data message in the vehicle system will be described in combination with FIG. 6 and FIG. 7, as follows:

(1)需要说明的是,由于CAN总线的仲裁特性,对于需要发送的CAN报文,即使相对低优先级的报文已经传输至报文发送存储单元中,也需要等待CAN总线上更高优先级的报文发送完毕,该相对低优先级的报文才能获得对CAN总线的控制权。对此,可先将需要发送的报文按照报文优先级关系进行排序,使得高优先级的优先放入报文发送存储单元,并依序类推。具体结合图6所示,该报文发送过程为:(1) It should be noted that due to the arbitration characteristics of the CAN bus, for CAN messages to be sent, even if relatively low-priority messages have been transmitted to the message sending storage unit, it is necessary to wait for higher priority on the CAN bus. After sending the message of the first level, the message of the relatively low priority can obtain the control right to the CAN bus. In this regard, the messages to be sent can be sorted according to the message priority relationship, so that the messages with high priority are put into the message sending storage unit first, and so on. Specifically as shown in Figure 6, the message sending process is:

(1.1)将第一控制器中的报文发送存储单元配置为发送方向。(1.1) Configure the message sending storage unit in the first controller as the sending direction.

(1.2)按照软件收发缓存机制,在CAN控制器中创建报文缓存空间,即报文缓存数组,该数组所容纳的报文量的大小必须大于需发送报文的总数。(1.2) According to the software sending and receiving cache mechanism, a message buffer space is created in the CAN controller, that is, a message buffer array. The size of the message volume contained in the array must be greater than the total number of messages to be sent.

(1.3)发送报文进入缓存数组,按报文仲裁优先级从高到低的顺序进行排序,以使得后续高优先级的报文优先进入报文发送存储单元;需要说明的是,由于整车控制类的报文涉及到处理时效,因此,其对应的报文标识一般都比较小,报文优先级都比较高,以便于优先获得CAN总线的使用权。(1.3) Send messages into the cache array, sort according to the order of message arbitration priority from high to low, so that subsequent high-priority messages enter the message sending storage unit first; it should be noted that due to the Control messages involve processing timeliness. Therefore, the corresponding message identifiers are generally relatively small, and the message priority is relatively high, so as to obtain the right to use the CAN bus first.

(1.4)在对报文的传输过程中,如报文发送存储单元在将报文发送到CAN总线之前,会触发中断传输服务,并在报文发送存储单元将报文发送到CAN总线之后,触发发送完成中断函数,以在发送完成中断服务函数中将发送报文缓存数组中未发送的报文传入报文发送存储单元中。(1.4) During the transmission of the message, before the message sending storage unit sends the message to the CAN bus, it will trigger the interrupt transmission service, and after the message sending storage unit sends the message to the CAN bus, The sending completion interrupt function is triggered, so that the unsent messages in the sending message buffer array are transferred to the message sending storage unit in the sending completion interrupt service function.

(2)第一控制器在接收CAN报文,以报文接收存储单元包含单个CAN通道为例,完整一帧CAN报文标准帧通常占用111位,速率通常设置为500kbps(千比特率,指的是数字信号的传输速率),一帧的时间约为222us。因此,第一控制器在接收到一帧CAN报文时,在222us以内从CAN控制器中将报文取出,就可保证CAN报文不丢失。具体结合图7所示,该报文接收过程为:(2) The first controller is receiving CAN messages. Taking the message receiving storage unit as an example containing a single CAN channel, the standard frame of a complete frame of CAN messages usually occupies 111 bits, and the rate is usually set to 500kbps (kilobit rate, referring to is the transmission rate of the digital signal), and the time of one frame is about 222us. Therefore, when the first controller receives a frame of CAN message, it takes out the message from the CAN controller within 222us, so as to ensure that the CAN message will not be lost. Specifically as shown in Figure 7, the message receiving process is:

(2.1)设置硬件CANID过滤,以按照报文标识范围值来过滤不需要接收到报文。通过报文接收存储单元来接收过滤后的报文(如目标反馈报文),以此,可减少后续中断响应频次,同时,降低第一控制器的负载。(2.1) Set hardware CANID filtering to filter unnecessary received messages according to the message identification range value. The filtered message (such as the target feedback message) is received by the message receiving and storing unit, thereby reducing the frequency of subsequent interrupt responses and at the same time reducing the load of the first controller.

(2.2)确定需要接收的CAN报文标识(即ID),并以从小到大的顺序进行排序,生成对应的过滤数组。需要说明的是,该排序过程可以预先处理好,如在接收到报文之前可排序生成数组,以减少在报文查询匹配时所耗费的时间。(2.2) Determine the CAN message identifiers (ie IDs) to be received, and sort them in ascending order to generate a corresponding filter array. It should be noted that the sorting process can be pre-processed, for example, the array can be sorted and generated before receiving the message, so as to reduce the time spent on message query matching.

(2.3)对于报文接收存储单元中接收到的报文,以二分法方式,将其与过滤数组之间进行查询匹配,如匹配,则将报文取出,结束中断处理函数,并进行响应。(2.3) For the message received in the message receiving storage unit, query and match it with the filter array in a dichotomous manner, if matched, then take out the message, end the interrupt processing function, and respond.

通过执行以上场景示例,可实现如下场景:By executing the above scenario examples, the following scenarios can be realized:

示例性的,车辆系统中包含多个控制器(单元),每一控制器对应一个控制子系统,以整车控制器作为第一控制器,并以车辆动力子系统的控制器作为第二控制器。具体的,用户在踩油门控制车辆加速后,整车控制器会生成该加速类型的待发送报文,并将该加速类型的待发送报文传输至CAN Bus;进而,车辆动力子系统的控制器从CAN Bus中接收该加速类型的报文,并对该加速类型的报文中的信息数据进行响应,在完成响应后,即可针对响应情况返回一个响应信息数据,如通过目标反馈报文的形式反馈相应的响应情况,以告知该整车控制器该加速事件的响应情况;最后,整车控制器可从CAN Bus中接收目标反馈报文,并对该目标反馈报文进行响应,以向用户发出提示信息,如通过语音播报车辆时速、速度涨幅、当前车速的安全系数等。Exemplarily, the vehicle system contains multiple controllers (units), each controller corresponds to a control subsystem, the vehicle controller is used as the first controller, and the controller of the vehicle power subsystem is used as the second control device. Specifically, after the user steps on the accelerator to control the acceleration of the vehicle, the vehicle controller will generate a message to be sent of the acceleration type and transmit the message to the CAN Bus; furthermore, the control of the vehicle power subsystem The device receives the message of the acceleration type from the CAN Bus, and responds to the information data in the message of the acceleration type. After completing the response, it can return a response information data according to the response situation, such as through the target feedback message Feedback the corresponding response in the form of feedback to inform the vehicle controller of the response to the acceleration event; finally, the vehicle controller can receive the target feedback message from the CAN Bus and respond to the target feedback message to Send prompt information to the user, such as broadcasting the vehicle speed per hour, speed increase, safety factor of the current speed, etc. through voice.

由以上场景示例可得,通过软件优化处理的方式,巧妙地结合CAN总线的特性,在确保CAN报文不丢失的前提下,有效地解决报文接收/发送存储单元的空间不足的问题,为车辆的硬件配置(如车辆芯片)降本增效。From the above scenario examples, it can be obtained that through software optimization and ingeniously combining the characteristics of the CAN bus, on the premise of ensuring that CAN messages are not lost, the problem of insufficient space in the message receiving/sending storage unit can be effectively solved. The hardware configuration of the vehicle (such as the vehicle chip) reduces costs and increases efficiency.

由上可得,本申请实施例可先确定需要传输的车辆数据的报文,并在报文缓存空间中对需要发送的报文进行优先级的排序,然后,按照报文优先级序列的顺序关系对待发送报文进行传输,有效避免优先级较低的报文占用报文传输时的收发存储单元的空间,最后,接收待发送报文对应的目标反馈报文,并执行目标反馈报文对应的报文响应策略;以此,可一定程度上扩充车辆数据的传输总量,满足车辆数据的传输需求,提高了车辆业务功能的响应效率,提高了用户的体验。It can be seen from the above that the embodiment of the present application can first determine the message of the vehicle data to be transmitted, and sort the priority of the message to be sent in the message buffer space, and then, according to the order of the priority sequence of the message The relationship is to transmit the message to be sent, effectively avoiding that the message with lower priority occupies the space of the sending and receiving storage unit during message transmission, and finally, receive the target feedback message corresponding to the message to be sent, and execute the corresponding target feedback message In this way, the total amount of vehicle data transmission can be expanded to a certain extent to meet the transmission requirements of vehicle data, improve the response efficiency of vehicle business functions, and improve user experience.

为了更好地实施以上方法,本申请实施例还提供一种车辆数据传输装置,该车辆数据传输装置可以集成在计算机设备,比如车载终端等计算机设备中。In order to better implement the above method, an embodiment of the present application further provides a vehicle data transmission device, which can be integrated into computer equipment, such as computer equipment such as a vehicle-mounted terminal.

例如,如图8所示,该车辆数据传输装置可以包括获取单元801、排序单元802、发送单元803、检测单元804和执行单元805。For example, as shown in FIG. 8 , the vehicle data transmission device may include an acquisition unit 801 , a sorting unit 802 , a sending unit 803 , a detection unit 804 and an execution unit 805 .

获取单元801,用于获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间,报文缓存空间为寄存未传输的数据报文的存储空间;The acquiring unit 801 is configured to acquire the message to be sent corresponding to the vehicle data, and transmit the message to be sent to the message buffer space, where the message buffer space is a storage space for storing untransmitted data messages;

排序单元802,用于对报文缓存空间中的待发送报文进行优先级排序,得到报文优先级序列;A sorting unit 802, configured to prioritize the messages to be sent in the message buffer space to obtain a message priority sequence;

发送单元803,用于将报文优先级序列中的待发送报文发送至报文传输通道;A sending unit 803, configured to send the messages to be sent in the message priority sequence to the message transmission channel;

检测单元804,用于检测报文传输通道中与待发送报文对应的目标反馈报文;A detection unit 804, configured to detect a target feedback message corresponding to the message to be sent in the message transmission channel;

执行单元805,用于执行目标反馈报文对应的报文响应策略。The execution unit 805 is configured to execute a message response policy corresponding to the target feedback message.

在一些实施例中,报文缓存空间包含多个待发送报文,排序单元802,还用于:识别报文缓存空间中每一待发送报文的报文类型;根据报文类型,确定多个待发送报文之间的报文优先级关系;按照报文优先级关系,构建对多个待发送报文对应的报文优先级序列。In some embodiments, the message buffer space includes a plurality of messages to be sent, and the sorting unit 802 is also used to: identify the message type of each message to be sent in the message buffer space; determine the number of messages according to the message type The message priority relationship among the messages to be sent; according to the message priority relationship, a message priority sequence corresponding to multiple messages to be sent is constructed.

在一些实施例中,排序单元802,还用于:根据报文类型,确定每一待发送报文对应的报文标识;按照报文标识的从小到大关系,确定多个待发送报文之间的报文优先级关系。In some embodiments, the sorting unit 802 is further configured to: determine the message identifier corresponding to each message to be sent according to the message type; The priority relationship between packets.

在一些实施例中,发送单元803,还用于:识别报文发送函数对应的函数状态;当函数状态为可发送状态时,按照报文优先级序列中的报文优先级关系选取目标待发送报文;基于报文发送函数,将目标待发送报文发送至报文传输通道。In some embodiments, the sending unit 803 is also used to: identify the function state corresponding to the message sending function; when the function state is a sendable state, select the target to be sent according to the message priority relationship in the message priority sequence Message: Based on the message sending function, the target message to be sent is sent to the message transmission channel.

在一些实施方式中,检测单元804,还用于:确定可接收报文的标识范围值;从报文传输通道中拉取符合标识范围值的待确认报文;将待确认报文确定为待发送报文对应的目标反馈报文。In some implementations, the detection unit 804 is further configured to: determine the identification range value of the receivable message; pull the message to be confirmed that meets the value of the identification range from the message transmission channel; determine the message to be confirmed as the pending message Send the target feedback message corresponding to the message.

在一些实施例中,检测单元804,还用于:识别待确认报文对应的待确认报文标识;获取报文标识数组,将待确认报文标识与报文标识数组中的标识进行匹配,得到匹配结果;根据匹配结果确定待确认报文的报文类型,并将待确认报文确定为报文类型的待发送报文对应的目标反馈报文。In some embodiments, the detection unit 804 is further configured to: identify the identifier of the message to be confirmed corresponding to the message to be confirmed; obtain an array of message identifiers, and match the identifier of the message to be confirmed with the identifiers in the array of message identifiers, Obtain a matching result; determine the message type of the message to be confirmed according to the matching result, and determine the message to be confirmed as a target feedback message corresponding to the message to be sent of the message type.

在一些实施例中,车辆数据传输装置还包括构建单元,用于:查询多个可接收报文的目标报文标识;按照标识大小关系对多个目标报文标识进行排序,得到报文标识序列;按照报文标识序列生成报文标识数组。In some embodiments, the vehicle data transmission device further includes a construction unit, configured to: query the target message identifiers of multiple receivable messages; sort the multiple target message identifiers according to the size relationship of the identifiers to obtain the message identifier sequence ; Generate an array of message IDs according to the sequence of message IDs.

在一些实施方式中,执行单元805,还用于:识别报文响应函数的执行状态;当执行状态为空闲状态时,将目标反馈报文发送至报文响应端,使得报文响应端执行目标反馈报文对应的报文响应策略;当执行状态为非空闲状态时,检测报文响应端的报文响应进度;当报文响应进度达到预设进度阈值时,将目标反馈报文发送至报文响应端,使得报文响应端执行目标反馈报文对应的报文响应策略。In some implementations, the execution unit 805 is also used to: identify the execution state of the message response function; when the execution state is idle, send the target feedback message to the message response end, so that the message response end executes the target The message response strategy corresponding to the feedback message; when the execution state is not idle, the message response progress of the message response end is detected; when the message response progress reaches the preset progress threshold, the target feedback message is sent to the message The responder enables the message responder to execute the message response policy corresponding to the target feedback message.

由上可知,本申请实施例可先确定需要传输的车辆数据的报文,并在报文缓存空间中对需要发送的报文进行优先级的排序,然后,按照报文优先级序列的顺序关系对待发送报文进行传输,有效避免优先级较低的报文占用报文传输时的收发存储单元的空间,最后,接收待发送报文对应的目标反馈报文,并执行目标反馈报文对应的报文响应策略;以此,可一定程度上扩充车辆数据的传输总量,满足车辆数据的传输需求,提高了车辆业务功能的响应效率,提高了用户的体验。It can be seen from the above that the embodiment of the present application can first determine the message of the vehicle data to be transmitted, and sort the priority of the message to be sent in the message buffer space, and then, according to the sequence relationship of the priority sequence of the message The message to be sent is transmitted to effectively prevent the message with lower priority from occupying the space of the sending and receiving storage unit during message transmission. Finally, the target feedback message corresponding to the message to be sent is received, and the corresponding target feedback message is executed. Message response strategy; in this way, the total amount of vehicle data transmission can be expanded to a certain extent to meet the transmission requirements of vehicle data, improve the response efficiency of vehicle business functions, and improve user experience.

以上各个操作的具体实施可参见前面的实施例,在此不作赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.

本申请实施例还提供一种车辆,该车辆上包含计算机设备,关于该计算机设备的结构如图9所示,其示出了本申请实施例所涉及的计算机设备的结构示意图,具体来讲:The embodiment of the present application also provides a vehicle, which includes computer equipment. The structure of the computer equipment is shown in Figure 9, which shows a schematic structural diagram of the computer equipment involved in the embodiment of the application, specifically:

该计算机设备可以包括一个或者一个以上处理核心的处理器901、一个或一个以上计算机可读存储介质的存储器902、电源903和输入单元904等部件。本领域技术人员可以理解,图9中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The computer device may include a processor 901 of one or more processing cores, a memory 902 of one or more computer-readable storage media, a power supply 903, an input unit 904 and other components. Those skilled in the art can understand that the structure of the computer device shown in FIG. 9 is not limited to the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange different components. in:

处理器901是该计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储器902内的软件程序和/或模块,以及调用存储在存储器902内的数据,执行计算机设备的各种功能和处理数据,从而对计算机设备进行整体监控。可选的,处理器901可包括一个或多个处理核心;优选的,处理器901可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器901中。The processor 901 is the control center of the computer equipment, which uses various interfaces and lines to connect various parts of the entire computer equipment, runs or executes the software programs and/or modules stored in the memory 902, and calls the Data, perform various functions of computer equipment and process data, so as to monitor the computer equipment as a whole. Optionally, the processor 901 may include one or more processing cores; preferably, the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 901 .

存储器902可用于存储软件程序以及模块,处理器901通过运行存储在存储器902的软件程序以及模块,从而执行各种功能应用以及车辆数据传输。存储器902可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器902可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器902还可以包括存储器控制器,以提供处理器901对存储器902的访问。The memory 902 can be used to store software programs and modules, and the processor 901 executes various functional applications and vehicle data transmission by running the software programs and modules stored in the memory 902 . The memory 902 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of computer equipment, etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 902 may further include a memory controller to provide the processor 901 with access to the memory 902 .

计算机设备还包括给各个部件供电的电源903,优选的,电源903可以通过电源管理系统与处理器901逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源903还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The computer device also includes a power supply 903 for supplying power to various components. Preferably, the power supply 903 can be logically connected to the processor 901 through a power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. The power supply 903 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

该计算机设备还可包括输入单元904,该输入单元904可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The computer device can also include an input unit 904, which can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

尽管未示出,计算机设备还可以包括显示单元等,在此不再赘述。具体在本实施例中,计算机设备中的处理器901会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器902中,并由处理器901来运行存储在存储器902中的应用程序,从而实现各种功能,如下:Although not shown, the computer device may also include a display unit, etc., which will not be repeated here. Specifically, in this embodiment, the processor 901 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 902 according to the following instructions, and the processor 901 runs the executable file stored in the The application program in memory 902, thus realizes various functions, as follows:

获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间,报文缓存空间为寄存未传输的数据报文的存储空间;对报文缓存空间中的待发送报文进行优先级排序,得到报文优先级序列;将报文优先级序列中的待发送报文发送至报文传输通道;检测报文传输通道中与待发送报文对应的目标反馈报文;执行目标反馈报文对应的报文响应策略。Obtain the message to be sent corresponding to the vehicle data, and transmit the message to be sent to the message buffer space, which is the storage space for storing untransmitted data messages; the message to be sent in the message buffer space Perform priority sorting to obtain the message priority sequence; send the messages to be sent in the message priority sequence to the message transmission channel; detect the target feedback message corresponding to the message to be sent in the message transmission channel; execute The message response policy corresponding to the target feedback message.

以上各个操作的具体实施可参见前面的实施例,在此不作赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.

由以上可知,本申请实施例可先确定需要传输的车辆数据的报文,并在报文缓存空间中对需要发送的报文进行优先级的排序,然后,按照报文优先级序列的顺序关系对待发送报文进行传输,有效避免优先级较低的报文占用报文传输时的收发存储单元的空间,最后,接收待发送报文对应的目标反馈报文,并执行目标反馈报文对应的报文响应策略;以此,可一定程度上扩充车辆数据的传输总量,满足车辆数据的传输需求,提高了车辆业务功能的响应效率,提高了用户的体验。As can be seen from the above, the embodiment of the present application can first determine the message of the vehicle data to be transmitted, and sort the priority of the message to be sent in the message buffer space, and then, according to the sequence relationship of the priority sequence of the message The message to be sent is transmitted to effectively prevent the message with lower priority from occupying the space of the sending and receiving storage unit during message transmission. Finally, the target feedback message corresponding to the message to be sent is received, and the corresponding target feedback message is executed. Message response strategy; in this way, the total amount of vehicle data transmission can be expanded to a certain extent to meet the transmission requirements of vehicle data, improve the response efficiency of vehicle business functions, and improve user experience.

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, and the instructions can be stored in a computer-readable storage medium, and is loaded and executed by the processor.

为此,本申请实施例提供一种计算机可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种车辆数据传输方法中的步骤。例如,该指令可以执行如下步骤:To this end, the embodiment of the present application provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions can be loaded by a processor to perform any of the vehicle data transmission methods provided in the embodiments of the present application. step. For example, the command can perform the following steps:

获取车辆数据对应的待发送报文,并将待发送报文传输至报文缓存空间,报文缓存空间为寄存未传输的数据报文的存储空间;对报文缓存空间中的待发送报文进行优先级排序,得到报文优先级序列;将报文优先级序列中的待发送报文发送至报文传输通道;检测报文传输通道中与待发送报文对应的目标反馈报文;执行目标反馈报文对应的报文响应策略。Obtain the message to be sent corresponding to the vehicle data, and transmit the message to be sent to the message buffer space, which is the storage space for storing untransmitted data messages; the message to be sent in the message buffer space Perform priority sorting to obtain the message priority sequence; send the messages to be sent in the message priority sequence to the message transmission channel; detect the target feedback message corresponding to the message to be sent in the message transmission channel; execute The message response policy corresponding to the target feedback message.

以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.

其中,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the computer-readable storage medium may include: a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

本申请还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中各种可选实现方式中提供的车辆数据传输方法。The present application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the vehicle data transmission method provided in various optional implementation manners in the above embodiments.

由于该计算机可读存储介质中所存储的指令,可以执行本申请实施例所提供的任一种车辆数据传输方法中的步骤,因此,可以实现本申请实施例所提供的任一种车辆数据传输方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Due to the instructions stored in the computer-readable storage medium, the steps in any vehicle data transmission method provided by the embodiments of the present application can be executed, so any vehicle data transmission provided by the embodiments of the present application can be realized For the beneficial effects that can be achieved by the method, refer to the previous embodiments for details, and will not be repeated here.

以上对本申请实施例所提供的一种车辆数据传输方法、装置、车辆及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。A vehicle data transmission method, device, vehicle, and computer-readable storage medium provided by the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The above embodiments The description is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, this The content of the description should not be understood as limiting the application.

Claims (11)

1.一种车辆数据传输方法,其特征在于,包括:1. A vehicle data transmission method, characterized in that, comprising: 获取车辆数据对应的待发送报文,并将所述待发送报文传输至报文缓存空间,所述报文缓存空间为寄存未传输的数据报文的存储空间;Obtain the message to be sent corresponding to the vehicle data, and transmit the message to be sent to a message buffer space, where the message buffer space is a storage space for storing untransmitted data messages; 对所述报文缓存空间中的所述待发送报文进行优先级排序,得到报文优先级序列;performing priority sorting on the messages to be sent in the message buffer space to obtain a message priority sequence; 将所述报文优先级序列中的所述待发送报文发送至报文传输通道;sending the to-be-sent message in the message priority sequence to the message transmission channel; 检测所述报文传输通道中与所述待发送报文对应的目标反馈报文;Detecting a target feedback message corresponding to the message to be sent in the message transmission channel; 执行所述目标反馈报文对应的报文响应策略。Execute the message response policy corresponding to the target feedback message. 2.根据权利要求1所述的方法,其特征在于,所述报文缓存空间包含多个待发送报文,所述对所述报文缓存空间中的所述待发送报文进行优先级排序,得到报文优先级序列,包括:2. The method according to claim 1, wherein the message buffer space includes a plurality of messages to be sent, and the message to be sent in the message buffer space is prioritized , get the message priority sequence, including: 识别所述报文缓存空间中每一待发送报文的报文类型;identifying the message type of each message to be sent in the message buffer space; 根据所述报文类型,确定所述多个待发送报文之间的报文优先级关系;According to the message type, determine the message priority relationship among the multiple messages to be sent; 按照所述报文优先级关系,构建对所述多个待发送报文对应的报文优先级序列。According to the message priority relationship, a message priority sequence corresponding to the multiple messages to be sent is constructed. 3.根据权利要求2所述的方法,其特征在于,所述根据所述报文类型,确定所述待发送报文之间的报文优先级关系,包括:3. The method according to claim 2, wherein, according to the message type, determining the message priority relationship between the messages to be sent comprises: 根据所述报文类型,确定每一待发送报文对应的报文标识;According to the message type, determine the message identifier corresponding to each message to be sent; 按照所述报文标识的从小到大关系,确定所述多个待发送报文之间的报文优先级关系。Determine the message priority relationship among the multiple messages to be sent according to the small to large relationship of the message identifiers. 4.根据权利要求1所述的方法,其特征在于,所述将所述报文优先级序列中的目标报文发送至报文传输通道,包括:4. The method according to claim 1, wherein the sending the target message in the message priority sequence to the message transmission channel comprises: 识别报文发送函数对应的函数状态;Identify the function status corresponding to the message sending function; 当所述函数状态为可发送状态时,按照所述报文优先级序列中的报文优先级关系选取目标待发送报文;When the function state is a state that can be sent, select a target message to be sent according to the message priority relationship in the message priority sequence; 基于所述报文发送函数,将所述目标待发送报文发送至报文传输通道。Based on the message sending function, send the target message to be sent to the message transmission channel. 5.根据权利要求1所述的方法,其特征在于,所述检测所述报文传输通道中与所述待发送报文对应的目标反馈报文,包括:5. The method according to claim 1, wherein the detecting the target feedback message corresponding to the message to be sent in the message transmission channel comprises: 确定可接收报文的标识范围值;Determine the identification range value of the receivable message; 从所述报文传输通道中拉取符合所述标识范围值的待确认报文;Pull the message to be confirmed that conforms to the value of the identification range from the message transmission channel; 将所述待确认报文确定为所述待发送报文对应的目标反馈报文。Determine the message to be confirmed as a target feedback message corresponding to the message to be sent. 6.根据权利要求5所述的方法,其特征在于,所述将所述待确认报文确定为所述待发送报文对应的目标反馈报文,包括:6. The method according to claim 5, wherein the determining the message to be confirmed as the target feedback message corresponding to the message to be sent comprises: 识别所述待确认报文对应的待确认报文标识;identifying the identifier of the message to be confirmed corresponding to the message to be confirmed; 获取报文标识数组,将所述待确认报文标识与所述报文标识数组中的标识进行匹配,得到匹配结果;Obtain an array of message identifiers, match the identifiers in the array of message identifiers to be confirmed with the identifiers in the array of message identifiers, and obtain a matching result; 根据所述匹配结果确定待确认报文的报文类型,并将所述待确认报文确定为所述报文类型的待发送报文对应的目标反馈报文。Determine the message type of the message to be confirmed according to the matching result, and determine the message to be confirmed as a target feedback message corresponding to the message to be sent of the message type. 7.根据权利要求6所述的方法,其特征在于,所述获取报文标识数组之前,还包括:7. The method according to claim 6, characterized in that, before said acquiring the message identifier array, further comprising: 查询多个可接收报文的目标报文标识;Query the target message identifiers of multiple receivable messages; 按照标识大小关系对多个目标报文标识进行排序,得到报文标识序列;Sorting the plurality of target message identifiers according to the size relationship of the identifiers to obtain a sequence of message identifiers; 按照所述报文标识序列生成报文标识数组。Generate an array of message identifiers according to the sequence of message identifiers. 8.根据权利要求1所述的方法,其特征在于,所述执行所述目标反馈报文对应的报文响应策略,包括:8. The method according to claim 1, wherein the executing the message response policy corresponding to the target feedback message comprises: 识别报文响应函数的执行状态;Identify the execution status of the message response function; 当所述执行状态为空闲状态时,将所述目标反馈报文发送至报文响应端,使得所述报文响应端执行所述目标反馈报文对应的报文响应策略;When the execution state is an idle state, sending the target feedback message to the message responder, so that the message responder executes the message response strategy corresponding to the target feedback message; 当所述执行状态为非空闲状态时,检测所述报文响应端的报文响应进度;When the execution state is non-idle state, detecting the message response progress of the message response end; 当所述报文响应进度达到预设进度阈值时,将所述目标反馈报文发送至所述报文响应端,使得所述报文响应端执行所述目标反馈报文对应的报文响应策略。When the message response progress reaches a preset progress threshold, sending the target feedback message to the message responder, so that the message responder executes the message response policy corresponding to the target feedback message . 9.一种车辆数据传输装置,其特征在于,包括:9. A vehicle data transmission device, characterized in that it comprises: 获取单元,用于获取车辆数据对应的待发送报文,并将所述待发送报文传输至报文缓存空间,所述报文缓存空间为寄存未传输的数据报文的存储空间;An acquisition unit, configured to acquire a message to be sent corresponding to the vehicle data, and transmit the message to be sent to a message buffer space, where the message buffer space is a storage space for storing untransmitted data messages; 排序单元,用于对所述报文缓存空间中的所述待发送报文进行优先级排序,得到报文优先级序列;a sorting unit, configured to prioritize the messages to be sent in the message buffer space to obtain a message priority sequence; 发送单元,用于将所述报文优先级序列中的所述待发送报文发送至报文传输通道;a sending unit, configured to send the to-be-sent message in the message priority sequence to a message transmission channel; 检测单元,用于检测所述报文传输通道中与所述待发送报文对应的目标反馈报文;A detection unit, configured to detect a target feedback message corresponding to the message to be sent in the message transmission channel; 执行单元,用于执行所述目标反馈报文对应的报文响应策略。An execution unit, configured to execute the message response policy corresponding to the target feedback message. 10.一种车辆,其特征在于,包括计算机设备,所述计算机设备包括处理器和存储器,所述存储器存储有计算机程序,所述处理器用于运行所述存储器内的计算机程序实现权利要求1至8任一项所述的车辆数据传输方法中的步骤。10. A vehicle, characterized in that it includes a computer device, the computer device includes a processor and a memory, the memory stores a computer program, and the processor is used to run the computer program in the memory to implement claims 1 to 10. 8. The steps in any one of the vehicle data transmission methods. 11.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质为计算机可读并存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至8任一项所述的车辆数据传输方法中的步骤。11. A computer-readable storage medium, characterized in that the computer-readable storage medium is computer-readable and stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform any of claims 1 to 8. A step in the vehicle data transmission method described above.
CN202211615666.9A 2022-12-15 2022-12-15 Vehicle data transmission method, device, vehicle and computer-readable storage medium Pending CN116260674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211615666.9A CN116260674A (en) 2022-12-15 2022-12-15 Vehicle data transmission method, device, vehicle and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211615666.9A CN116260674A (en) 2022-12-15 2022-12-15 Vehicle data transmission method, device, vehicle and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN116260674A true CN116260674A (en) 2023-06-13

Family

ID=86685292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211615666.9A Pending CN116260674A (en) 2022-12-15 2022-12-15 Vehicle data transmission method, device, vehicle and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN116260674A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118250170A (en) * 2024-05-27 2024-06-25 长城汽车股份有限公司 Signal processing method and device, electronic equipment and vehicle
CN118618222A (en) * 2024-06-18 2024-09-10 重庆赛力斯凤凰智创科技有限公司 Vehicle audio playback method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666400A (en) * 2016-07-27 2018-02-06 百度在线网络技术(北京)有限公司 Vehicle simulation adjustment method and device for simulative debugging system
CN115237630A (en) * 2022-07-25 2022-10-25 小米汽车科技有限公司 Data processing method and device, vehicle, storage medium and chip

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666400A (en) * 2016-07-27 2018-02-06 百度在线网络技术(北京)有限公司 Vehicle simulation adjustment method and device for simulative debugging system
CN115237630A (en) * 2022-07-25 2022-10-25 小米汽车科技有限公司 Data processing method and device, vehicle, storage medium and chip

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118250170A (en) * 2024-05-27 2024-06-25 长城汽车股份有限公司 Signal processing method and device, electronic equipment and vehicle
CN118250170B (en) * 2024-05-27 2024-08-23 长城汽车股份有限公司 Signal processing method and device, electronic equipment and vehicle
CN118618222A (en) * 2024-06-18 2024-09-10 重庆赛力斯凤凰智创科技有限公司 Vehicle audio playback method and device

Similar Documents

Publication Publication Date Title
CN116260674A (en) Vehicle data transmission method, device, vehicle and computer-readable storage medium
CN105119793B (en) An Identifier Assignment Method for Sensor Network CAN Bus Frame Format
CN103197968B (en) A kind of thread pool disposal route and system merging synchronous asynchronous feature
CN108921437B (en) A multi-vehicle multi-computing task scheduling method based on fog computing
US11368404B2 (en) Method of releasing resource reservation in network
US10157158B2 (en) Method and apparatus for distributed computing using controller area network protocols
CN113452591B (en) Loop control method and device based on CAN bus continuous data frame
CN111404792B (en) Data transmission method and device
US7412556B2 (en) Method and system for master devices accessing slave devices
CN114363379A (en) Method, device, electronic device and medium for vehicle data transmission
WO2023004801A1 (en) Task processing method and apparatus
CN112667318A (en) Binding method, device, equipment and storage medium of logic core
CN117472557A (en) Cloud platform-based resource scheduling method and device and computer readable storage medium
CN113992609B (en) Method and system for processing multilink service data disorder
CN119052858A (en) Data transmission method, device, electronic equipment and storage medium
CN111858063A (en) A resource contention processing method, apparatus, device and storage medium
JP4163952B2 (en) Connection control method in communication system and communication system for the method
CN115955441A (en) Management scheduling method and device based on TSN queue
CN114493190A (en) Scheduling method for remote driving and computer readable storage medium
CN114885393A (en) Equipment network access control method and device and terminal equipment
CN114339683A (en) In-vehicle wireless short-range communication system and method for allocating communication resources
CN118550855B (en) Queue scheduling device, method, electronic equipment and medium
CN113190496B (en) Kernel communication method, device, chip, electronic equipment and storage medium
US8861357B2 (en) Method and apparatus for communicating unicast PQoS DFID information
CN120075281A (en) Vehicle communication method, device, vehicle-mounted equipment, vehicle and storage medium

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