A heavy-duty diesel vehicle internet of vehicles data transmission method, device, equipment and medium
Patent Information
- Application Number
- CN202411591844.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2026-10-13
AI Technical Summary
但是,车联网协议帧结构中的数据长度是可变的,从而导致每次数据上报过程中无法充分的利用现有的流量资源上报更多的有效数据,若需要上报更多的有效数据,需要消耗更多的流量资源,且耗费时间更多
[0029]通过对重型柴油车的运行数据,即要上报的车联网数据进行组包,并将组包后的数据上报,可以节省帧头、数据采样时间、校验位等公共部分的字节消耗,达到节约流量的目的。且在对要上报的车联网数据进行组包时,对于不同类型的数据,采用不同的组包方式,对在重型柴油车状态变化时采集的运行数据进行组包,得到多个第一组包数据,且每个第一组包数据的长度为预设的车联网协议帧结构的数据单元长度;对周期性采集的运行数据,在对其进行与在重型柴油车状态变化时采集的运行数据相同方式的组包后,再次对每个组包数据进行处理,即对于每个组包数据,提取了其中每个数据的采样时间,以其中一个数据的采样时间为基准,将剩余的数据的采样时间分别与其进行差分,并采用差分后的数据更新剩余的数据的采样时间,完成所有组包数据的更新,可以有效减少周期性采集的运行数据组包后的数据量,从而进一步节省后续传输数据的流量。
Smart Images

Figure CN122909612A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle networking technology, and in particular to a method, apparatus, equipment and medium for transmitting data in a heavy-duty diesel vehicle network. Background Technology
[0002] Currently, in the field of heavy-duty diesel vehicle Internet of Vehicles (V2V), the V2V data reporting of vehicles is characterized by a wide variety of data types and a high frequency of collection and reporting. As a result, the data traffic is showing an exponential upward trend, which greatly increases the economic burden on heavy-duty diesel vehicle V2V operators and vehicle owners, and hinders the healthy development of the heavy-duty diesel vehicle V2V industry and rapid technological innovation.
[0003] Before reporting vehicle-to-everything (V2X) data, packets need to be assembled according to the required data protocol. During each data reporting process, the bandwidth consumption of the frame header and the V2X protocol frame header is fixed. However, the data length in the V2X protocol frame structure is variable. This means that each data reporting process cannot fully utilize existing bandwidth resources to report more valid data. Reporting more valid data requires more bandwidth resources and takes more time. Summary of the Invention
[0004] The purpose of this invention is to provide a method for data transmission in the Internet of Vehicles for heavy-duty diesel vehicles, which can save data transmission bandwidth and improve data packet transmission efficiency.
[0005] To address the aforementioned technical problems, embodiments of the present invention provide a method for transmitting data via a vehicle-to-everything (V2X) network for heavy-duty diesel vehicles, comprising the following steps:
[0006] The operation data of the heavy-duty diesel vehicle is acquired, including operation data collected when the condition of the heavy-duty diesel vehicle changes and operation data collected periodically.
[0007] The operational data collected when the state of a heavy-duty diesel vehicle changes is packaged into multiple first package data, and the length of each first package data is the data unit length of the preset vehicle networking protocol frame structure.
[0008] The periodically collected operational data is packaged into multiple second-group data, and the length of each second-group data is the data unit length of the preset vehicle network protocol frame structure.
[0009] Extract the sampling time of each data in each second group of packet data. Using the sampling time of one data as a benchmark, the sampling time of the remaining data is subtracted from the sampling time of the benchmark data. The sampling time of the remaining data is then updated using the subtracted data to complete the update of all second group of packet data.
[0010] All data from the first group of packets and all updated data from the second group of packets are transmitted to the server.
[0011] In some optional embodiments, transmitting all first group packet data and all updated second group packet data to the server includes:
[0012] A preset data compression algorithm is used to compress all first group packet data and all updated second group packet data.
[0013] All compressed data packets are transmitted to the server.
[0014] In some optional embodiments, the step of using a preset data compression algorithm to compress all first group packet data and all updated second group packet data includes:
[0015] The LZ4 data compression algorithm is used to compress all the data in the first group of packets;
[0016] The snappy data compression algorithm is used to compress all the updated second group packet data.
[0017] In some optional embodiments, the method further includes:
[0018] After compressing all the first group packet data and all the updated second group packet data, a frame header message of the vehicle networking protocol frame structure is added to the two types of compressed packet data, and the packet data with the added frame header message is transmitted to the server.
[0019] In some optional embodiments, the vehicle networking protocol frame structure is a GB17691 protocol frame structure or a TCP / IP protocol frame structure.
[0020] An embodiment of the present invention also provides a heavy-duty diesel vehicle network data transmission device, comprising:
[0021] The data acquisition module is used to acquire the operating data of the heavy-duty diesel vehicle, including operating data collected when the state of the heavy-duty diesel vehicle changes and periodically collected operating data.
[0022] The first data packet module is used to packetize the operating data collected when the state of the heavy-duty diesel vehicle changes, and obtain multiple first packet data. The length of each first packet data is the data unit length of the preset vehicle networking protocol frame structure.
[0023] The second data packet module is used to packetize the periodically collected operation data to obtain multiple second packet data, and the length of each second packet data is the data unit length of the preset vehicle network protocol frame structure.
[0024] The group report data update module is used to extract the sampling time of each data in each second group packet data. Taking the sampling time of one data as the benchmark, the sampling time of the remaining data is subtracted from the sampling time of the benchmark data, and the sampling time of the remaining data is updated using the subtracted data to complete the update of all second group packet data.
[0025] The data transmission module is used to transmit all the first group of packet data and all the updated second group of packet data to the server.
[0026] Embodiments of the present invention also provide a computer device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the above-described heavy-duty diesel vehicle network data transmission method.
[0027] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described heavy-duty diesel vehicle network data transmission method.
[0028] The heavy-duty diesel vehicle network data transmission method provided by this invention has at least the following beneficial effects:
[0029] By packetizing the operational data of heavy-duty diesel vehicles—the vehicle-to-everything (V2X) data to be reported—and then reporting the packetized data, the byte consumption of common parts such as frame headers, data sampling time, and checksums can be saved, thus saving bandwidth. Furthermore, when packetizing the V2X data to be reported, different packetization methods are used for different types of data. Operational data collected when the state of heavy-duty diesel vehicles changes is packetized to obtain multiple first-packet data, with each first-packet data having a length equal to the preset data unit length of the V2X protocol frame structure. For periodically collected operational data, after packetizing it in the same way as the operational data collected when the state of heavy-duty diesel vehicles changes, each packet is processed again. Specifically, for each packet, the sampling time of each data point is extracted. Using the sampling time of one data point as a baseline, the sampling times of the remaining data are differentially divided from it, and the differential data is used to update the sampling times of the remaining data. This process of updating all packetized data effectively reduces the amount of data after packetizing periodically collected operational data, thereby further saving bandwidth for subsequent data transmission.
[0030] Based on this, when transmitting vehicle network data to the server, the message header, check bit and frame header data length of the vehicle network protocol frame structure are fixed, and the data traffic consumed is also fixed. However, the data packetization method of the present invention can increase the proportion of effective data in the data unit of the frame structure by optimizing the effective data to be transmitted, thereby using the same traffic resources as the traditional data transmission method to transmit more effective data to the server. Attached Figure Description
[0031] One or more embodiments are illustrated by way of example with reference to the accompanying drawings, and these illustrative descriptions do not constitute a limitation on the embodiments.
[0032] Figure 1 This is a flowchart of a heavy-duty diesel vehicle network data transmission method according to an embodiment of the present invention;
[0033] Figure 2 This is a schematic diagram of a system logical architecture provided according to an embodiment of the present invention;
[0034] Figure 3 This is a schematic diagram of a heavy-duty diesel vehicle network data transmission device according to an embodiment of the present invention;
[0035] Figure 4 This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details are presented in the embodiments of the present invention to facilitate a better understanding of the invention. However, the technical solutions claimed in the present invention can be implemented even without these technical details and various variations and modifications based on the following embodiments. The division of the following embodiments is for ease of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with and referenced by each other without contradiction.
[0037] One embodiment of the present invention relates to a method for transmitting data via a vehicle-to-everything (V2X) network for heavy-duty diesel vehicles. The implementation details of the method for transmitting data via a V2X network for heavy-duty diesel vehicles in this embodiment are described in detail below. The following implementation details are provided for ease of understanding and are not necessary for implementing this solution.
[0038] The specific process of the heavy-duty diesel vehicle network data transmission method in this embodiment can be described as follows: Figure 1 As shown, it includes:
[0039] Step 101: Obtain the operating data of the heavy-duty diesel vehicle. The operating data includes operating data collected when the condition of the heavy-duty diesel vehicle changes and operating data collected periodically.
[0040] Among them are operational data collected when the status of heavy-duty diesel vehicles changes, such as the switching data of the vehicle's brakes, left turn signal, and right turn signal, and periodically collected operational data of heavy-duty diesel vehicles, such as the vehicle's speed, RPM, and cumulative fuel consumption.
[0041] Step 102: Packetize the operating data collected when the state of the heavy-duty diesel vehicle changes to obtain multiple first packet data, and the length of each first packet data is the data unit length of the preset vehicle networking protocol frame structure.
[0042] Step 103: Packetize the periodically collected operation data to obtain multiple second packet data, and the length of each second packet data is the data unit length of the preset vehicle network protocol frame structure.
[0043] Step 104: Extract the sampling time of each data in each second group of packet data. Using the sampling time of one data as a benchmark, subtract the sampling time of the remaining data from the sampling time of the benchmark data. Use the subtracted data to update the sampling time of the remaining data, thus completing the update of all second group of packet data.
[0044] In this step, in each second group of data packets, the sampling time of each data occupies 7 bytes. Taking the sampling time of one of the data as a reference, the sampling time of the remaining data is differentially divided from it, and the sampling time of the remaining data is updated with the differential data. The sampling time of each remaining data is represented by a time offset relative to the reference, which occupies only one byte.
[0045] Step 104: Transfer all data from the first group of packets and all updated data from the second group of packets to the server.
[0046] The vehicle networking protocol frame structure in this embodiment is either the GB17691 protocol frame structure or the TCP / IP protocol frame structure.
[0047] Regarding the first and second group of packet data mentioned above:
[0048] Assuming the vehicle network protocol frame structure is based on the GB17691 protocol frame structure and the TCP / IP protocol frame structure, with its message header and checksum occupying 25 bytes, and its data unit length being n bytes and its frame header length being 60 bytes, then the length of a complete data frame is n+85+N bytes.
[0049] If m sets of data need to be reported, the traditional data transmission method A is to report a set of data units with a length of n bytes each time, and report m times; the data transmission method B in this embodiment is to report a set of data units with a length of m*n bytes each time, and report only once.
[0050] Clearly, solution B consumes less bandwidth than solution A: Let Q represent bandwidth, then solution A consumes bandwidth QA = QA = m * (n + 85 + N) bytes, solution B consumes bandwidth QB = (mn + 85 + N), and solution B saves bandwidth QA - QB = (m - 1) * (85 + N).
[0051] For the updated second set of packet data:
[0052] Now assume that the data unit length in each second packet is X bytes, and this data unit contains Y signals. If data transmission scheme C is: only one packet assembly is performed, and the data unit length in each packet is X bytes, with each signal carrying a "data sampling time", then the "data sampling time" occupies 7*Y bytes. In the data transmission scheme D of this embodiment: packet assembly is performed first, and after assembly, the data unit length is X bytes, with each data unit containing Y signals. Then, the packet data is updated, and the "data sampling time" in the updated packet data occupies 7 + 1*(Y-1) bytes.
[0053] Clearly, scheme D consumes less bandwidth than scheme C: if Q represents bandwidth, then the bandwidth consumed by "data sampling time" in the data unit of scheme D is QA = 7 * Y bytes, while the bandwidth consumed by scheme C is QB = 7 + 1 * (Y - 1). The bandwidth saved by scheme D is QA - QB = 6Y - 6.
[0054] In this embodiment, by packetizing the operational data of heavy-duty diesel vehicles (i.e., the vehicle-to-everything (V2X) data to be reported) and then reporting the packetized data, the byte consumption of common parts such as frame headers, data sampling time, and check bits can be saved, thereby saving bandwidth. Furthermore, when packetizing the V2X data to be reported, different packetization methods are used for different types of data. Operational data collected when the state of heavy-duty diesel vehicles changes is packetized to obtain multiple first packet data, and the length of each first packet data is the preset data unit length of the V2X protocol frame structure. For periodically collected operational data, after packetizing it in the same way as the operational data collected when the state of heavy-duty diesel vehicles changes, each packet data is processed again. That is, for each packet data, the sampling time of each data point is extracted. Using the sampling time of one data point as a benchmark, the sampling times of the remaining data are differentially divided from it, and the differentially divided data is used to update the sampling times of the remaining data. This process updates all packet data, effectively reducing the amount of data after packetizing the periodically collected operational data, thereby further saving bandwidth for subsequent data transmission. Based on this, when transmitting vehicle network data to the server, the message header, check bit and frame header data length of the vehicle network protocol frame structure are fixed, and the data traffic consumed is also fixed. However, the data packetization method of the present invention can increase the proportion of effective data in the data unit of the frame structure by optimizing the effective data to be transmitted, thereby using the same traffic resources as the traditional data transmission method to transmit more effective data to the server.
[0055] In one embodiment, the heavy-duty diesel vehicle network data transmission method of the present invention can be used through Figure 2 The system logic shown is implemented as follows. This system includes a data acquisition module, a data packet assembly module, a data compression module, a data packet reporting module, and a data gateway parsing module. The data acquisition module, data packet assembly module, data compression module, and data packet reporting module are all integrated within the heavy-duty diesel vehicle's vehicle networking terminal, while the data gateway parsing module is deployed at the network backend server gateway.
[0056] Specifically, the data acquisition module is responsible for collecting data from the entire heavy-duty diesel vehicle. Based on the data characteristics, the collected data is divided into periodically collected and reported data types and status change collected and reported data types (i.e., operating data collected when the status of the heavy-duty diesel vehicle changes and periodically collected operating data).
[0057] The data packetization module is responsible for packetizing periodically collected and reported data and status change collected and reported data according to data classification. Specifically, for operational data collected during status changes in heavy-duty diesel vehicles, the length of each first packet after packetization is equal to the preset data unit length of the vehicle-to-everything (V2X) protocol frame structure. For periodically collected operational data, the length of each second packet after packetization is also equal to the preset data unit length of the V2X protocol frame structure. The module extracts the sampling time of each data point within each second packet, uses the sampling time of one data point as a baseline, and then differs the sampling times of the remaining data by the baseline data. The differenced data is then used to update the sampling times of the remaining data, completing the update of all second packet data.
[0058] The data compression module is mainly for data packets that have been assembled. The data compression module compresses the transformed data packets using LZ4 and snappy data compression algorithms. All first-group data packets are compressed using the LZ4 data compression algorithm, and all updated second-group data packets are compressed using the snappy data compression algorithm.
[0059] The data packet assembly and reporting module is responsible for adding frame header messages to the compressed data packets using the vehicle networking protocol, assembling them into complete data frames, and then reporting them to the data gateway parsing module deployed on the platform gateway through the networking module.
[0060] The data parsing and storage module is deployed at the platform gateway. After receiving the complete data packet reported by the data packet reporting module, it is responsible for first decompressing the data according to the corresponding data compression protocol, and then parsing and storing the reported data packet according to the vehicle networking protocol.
[0061] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this invention. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, without changing the core design of the algorithm and process, are also within the protection scope of this invention.
[0062] Another embodiment of the present invention relates to a heavy-duty diesel vehicle network data transmission device. The implementation details of this embodiment's heavy-duty diesel vehicle network data transmission device are described below. The following details are provided for ease of understanding and are not essential for implementing this solution. A schematic diagram of this embodiment's heavy-duty diesel vehicle network data transmission device can be seen as follows: Figure 3 As shown, it includes: a data acquisition module 301, a first data packet assembly module 302, a second data packet assembly module 303, and a data transmission module 304.
[0063] Specifically, the data acquisition module 301 is used to acquire the operating data of the heavy-duty diesel vehicle, including operating data collected when the condition of the heavy-duty diesel vehicle changes and periodically collected operating data.
[0064] The first data packet module 302 is used to packetize the operating data collected when the state of the heavy-duty diesel vehicle changes, and obtain multiple first packet data. The length of each first packet data is the data unit length of the preset vehicle networking protocol frame structure.
[0065] The second data packet module 303 is used to packetize the periodically collected running data to obtain multiple second packet data, and the length of each second packet data is the data unit length of the preset vehicle network protocol frame structure.
[0066] The group report data update module 304 is used to extract the sampling time of each data in each second group packet data, take the sampling time of one data as the benchmark, and subtract the sampling time of the remaining data from the sampling time of the benchmark data. The differenced data is then used to update the sampling time of the remaining data, thus completing the update of all second group packet data.
[0067] The data transmission module 305 is used to transmit all the first group of packet data and all the updated second group of packet data to the server.
[0068] It is not difficult to see that this embodiment is a device embodiment corresponding to the above method embodiments, and this embodiment can be implemented in conjunction with the above method embodiments. The relevant technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and will not be repeated here to reduce repetition. Accordingly, the relevant technical details mentioned in this embodiment can also be applied to the above embodiments.
[0069] It is worth mentioning that all modules involved in this embodiment are logical modules. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. Furthermore, to highlight the innovative aspects of this invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by this invention; however, this does not mean that other units are absent from this embodiment.
[0070] Another embodiment of the present invention relates to a computer device, such as Figure 4As shown, it includes: at least one processor 401; and a memory 402 communicatively connected to the at least one processor 401; wherein the memory 402 stores instructions executable by the at least one processor 401, the instructions being executed by the at least one processor 401 to enable the at least one processor 401 to execute the heavy-duty diesel vehicle network data transmission method in the above embodiments.
[0071] The memory and processor are connected via a bus, which can include any number of interconnecting buses and bridges, connecting various circuits of one or more processors and memories. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and will not be described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium via an antenna, which further receives data and transmits it to the processor.
[0072] The processor manages the bus and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory is used to store data used by the processor during operation.
[0073] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method embodiments described above.
[0074] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0075] Those skilled in the art will understand that the above embodiments are specific embodiments for implementing the present invention, and in practical applications, various changes can be made to them in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A method for transmitting data via vehicle networking in a heavy-duty diesel vehicle, characterized in that, The method includes: The operation data of the heavy-duty diesel vehicle is acquired, including operation data collected when the condition of the heavy-duty diesel vehicle changes and operation data collected periodically. The operational data collected when the state of a heavy-duty diesel vehicle changes is packaged into multiple first package data, and the length of each first package data is the data unit length of the preset vehicle networking protocol frame structure. The periodically collected operational data is packaged into multiple second-group data, and the length of each second-group data is the data unit length of the preset vehicle network protocol frame structure. Extract the sampling time of each data in each second group of packet data. Using the sampling time of one data as a benchmark, the sampling time of the remaining data is subtracted from the sampling time of the benchmark data. The sampling time of the remaining data is then updated using the subtracted data to complete the update of all second group of packet data. All data from the first group of packets and all updated data from the second group of packets are transmitted to the server.
2. The heavy-duty diesel vehicle network data transmission method according to claim 1, characterized in that, The step of transmitting all first group packet data and all updated second group packet data to the server includes: A preset data compression algorithm is used to compress all first group packet data and all updated second group packet data. All compressed data packets are transmitted to the server.
3. The heavy-duty diesel vehicle network data transmission method according to claim 2, characterized in that, The step of compressing all first group packet data and all updated second group packet data using a preset data compression algorithm includes: The LZ4 data compression algorithm is used to compress all the data in the first group of packets; The snappy data compression algorithm is used to compress all the updated second group packet data.
4. The heavy-duty diesel vehicle network data transmission method according to claim 3, characterized in that, The method further includes: After compressing all the first group packet data and all the updated second group packet data, a frame header message of the vehicle networking protocol frame structure is added to the two types of compressed packet data, and the packet data with the added frame header message is transmitted to the server.
5. The heavy-duty diesel vehicle network data transmission method according to any one of claims 1 to 4, characterized in that, The vehicle networking protocol frame structure is either the GB17691 protocol frame structure or the TCP / IP protocol frame structure.
6. A heavy-duty diesel vehicle network data transmission device, characterized in that, The device includes: The data acquisition module is used to acquire the operating data of the heavy-duty diesel vehicle, including operating data collected when the state of the heavy-duty diesel vehicle changes and periodically collected operating data. The first data packet module is used to packetize the operating data collected when the state of the heavy-duty diesel vehicle changes, and obtain multiple first packet data. The length of each first packet data is the data unit length of the preset vehicle networking protocol frame structure. The second data packet module is used to packetize the periodically collected operation data to obtain multiple second packet data, and the length of each second packet data is the data unit length of the preset vehicle network protocol frame structure. The group report data update module is used to extract the sampling time of each data in each second group packet data. Taking the sampling time of one data as the benchmark, the sampling time of the remaining data is subtracted from the sampling time of the benchmark data, and the sampling time of the remaining data is updated using the subtracted data to complete the update of all second group packet data. The data transmission module is used to transmit all the first group of packet data and all the updated second group of packet data to the server.
7. A computer device, characterized in that, include: At least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the heavy-duty diesel vehicle network data transmission method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the heavy-duty diesel vehicle network data transmission method as described in any one of claims 1 to 5.