Data transmission method and device, computer device and storage medium
By classifying and prioritizing vehicle event data and using multiple transmission channels for hierarchical uploading, the problem of failure or untimely uploading of important data in vehicle data transmission was solved, and reliable transmission of critical data was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 国汽智端(成都)科技有限公司
- Filing Date
- 2023-03-13
- Publication Date
- 2026-07-21
AI Technical Summary
Existing vehicle data transmission technologies, under complex environments and unstable network conditions, may lead to failures or delays in uploading important event data, failing to guarantee the success rate and timeliness of data transmission.
Vehicle event data is categorized and uploaded in a hierarchical manner through different transmission channels according to data type and priority, ensuring that important data is transmitted first and resuming the upload of incomplete data after an interruption.
It improves the success rate and timeliness of transmitting important event data, ensuring reliable transmission of critical data in complex environments and under unstable network conditions.
Smart Images

Figure CN116320072B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data transmission technology, and in particular to a data transmission method, apparatus, computer equipment, storage medium, and computer program product. Background Technology
[0002] With the development of data transmission, vehicle data transmission technology has emerged. This technology uploads various event data of a vehicle to the cloud. Furthermore, analyzing this cloud-based data allows for a reconstruction of the vehicle's and its surrounding environment's status, thereby improving the accuracy of traffic accident reconstruction.
[0003] In current vehicle data transmission technology, after recording event data to obtain an event dataset, the vehicle-side device packages it uniformly and uploads it without discrimination.
[0004] However, in actual vehicle operation, due to the complex surrounding environment, unstable network, and malfunctions of vehicle-side equipment during accidents, the current vehicle data transmission technology can lead to the failure to upload important event data or the untimely upload of important event data if uploaded indiscriminately. Summary of the Invention
[0005] Therefore, it is necessary to provide a data transmission method, apparatus, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problems.
[0006] Firstly, this application provides a data transmission method. The method includes:
[0007] Obtain the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type;
[0008] For each vehicle event contained in the event data subset of each event type, the event data is classified according to the data type of each event data to obtain event data groups of different data types corresponding to each vehicle event;
[0009] Determine the priority order of the event data contained in each event data group;
[0010] Through the transmission channel corresponding to the event data subset of each event type, each event data is uploaded according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group.
[0011] In one embodiment, determining the priority order of the event data contained in each event data group includes:
[0012] For each event data group, the event data is sorted in descending order of the preset event data level to obtain the first priority order of the event data.
[0013] In one embodiment, when the event data group corresponds to a subset of event data of a first event type, after sorting the event data in descending order of a preset event data level for each event data group to obtain a first priority order of the event data, the method further includes:
[0014] For event data of the same level in the event data group, the first priority order of event data of the same level in each event data group is updated according to the time order of the event data to obtain the second priority order of each event data.
[0015] In one embodiment, before uploading each event data through the transmission channel corresponding to each subset of event data of each event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group, the method further includes:
[0016] When the vehicle event of the target vehicle meets the event conditions corresponding to the target event type, a transmission channel is established corresponding to the event data subset of the target event type; the target event type is any of the different event types.
[0017] For each vehicle event corresponding to each event data group in the event data subset of the target event type, a correspondence is established between the event data groups of the same data type and the target transmission channel in the transmission channel, based on the data type of each event data group.
[0018] In one embodiment, the event types are divided according to a time dimension, and the event types include a first event type, a second event type, and a third event type. Uploading each event data through the transmission channel corresponding to the event data subset of each event type, according to the order of vehicle events in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group, includes:
[0019] If the event data subset is a subset of event data of the second event type, the event data group is packaged and uploaded through the transmission channel corresponding to the event data subset of the second event type.
[0020] When the event data subset is a subset of event data of the first event type, each event data is uploaded through the transmission channel corresponding to the event data subset of the first event type, according to the order of each vehicle event in the event data subset and the comprehensive sorting result of each event data corresponding to each vehicle event; the comprehensive sorting result of each event data is determined by the transmission order between event data groups of different data types corresponding to each vehicle event and the second priority order of each event data within each event data group.
[0021] When the event data subset is a subset of event data of the third event type, each event data is uploaded through the transmission channel corresponding to the event data subset of the third event type, according to the first priority order of each event data in each event data group.
[0022] In one embodiment, uploading the event data according to the order of the vehicle events in the event data subset and the comprehensive sorting result of the event data corresponding to each vehicle event includes:
[0023] For each vehicle event in the event data subset, the event data is comprehensively sorted according to the order of the second data type event data group first and the first data type event data group last among event data groups of different data types, and the second priority order of each event data in each event data group, to obtain the comprehensive sorting result of each event data corresponding to each vehicle event.
[0024] Based on the order of the vehicle events in the event data subset, each event data is uploaded according to the comprehensive sorting result of the event data corresponding to each vehicle event.
[0025] In one embodiment, after determining the priority order of the event data contained in each event data group, the method further includes:
[0026] In the event of an interrupted upload, the interruption point in each of the event data groups is marked; the interruption point is used to reflect the upload progress of the event data.
[0027] For each event data group corresponding to each vehicle event, package the unuploaded event data after the interruption position in each event data group to obtain the unuploaded data subset corresponding to each event data group;
[0028] If uploading resumes, the previously unuploaded subsets of data are uploaded via the restored transmission channel.
[0029] In one embodiment, the step of uploading each of the unuploaded data subsets via the restored transmission channel when uploading is resumed includes:
[0030] In the event of resumed uploads, a recovery transmission channel will be established;
[0031] Through the recovery transmission channel, each of the unuploaded data subsets is uploaded according to the transmission order of the preset event types, the order of each vehicle event of each event type, and the transmission order between each unuploaded data subset corresponding to each vehicle event.
[0032] In one embodiment, the event types are divided according to a time dimension, and the event types include a first event type, a second event type, and a third event type. The step of uploading each of the unuploaded data subsets according to the order of each of the vehicle events of each event type and the transmission order between each of the unuploaded data subsets corresponding to each vehicle event includes:
[0033] When the event type is the second event type, the unuploaded data subset of the second data type is uploaded through the recovery transmission channel in the order of the vehicle events of the second event type from latest to earliest time.
[0034] When the event type is the first event type, the unuploaded data subset of the second data type is uploaded first, and the unuploaded data subset of the first data type is uploaded later, according to the time sequence of the vehicle events of the first event type, through the recovery transmission channel.
[0035] In the case where the event type is the third event type, through the recovery transmission channel, according to the time sequence of the vehicle events of the third event type from latest to earliest, the unuploaded data subset with data type second is uploaded first, followed by the unuploaded data subset with data type first.
[0036] Secondly, this application also provides a data transmission apparatus. The apparatus includes:
[0037] The acquisition module is used to acquire the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type;
[0038] The classification module is used to classify the event data of each vehicle event in the event data subset of each event type according to the data type of each event data, so as to obtain event data groups of different data types corresponding to each vehicle event.
[0039] A determining module is used to determine the priority order of each event data contained in each event data group;
[0040] The upload module is used to upload each event data through the transmission channel corresponding to the event data subset of each event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group.
[0041] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0042] Obtain the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type;
[0043] For each vehicle event contained in the event data subset of each event type, the event data is classified according to the data type of each event data to obtain event data groups of different data types corresponding to each vehicle event;
[0044] Determine the priority order of the event data contained in each event data group;
[0045] Through the transmission channel corresponding to the event data subset of each event type, each event data is uploaded according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group.
[0046] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0047] Obtain the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type;
[0048] For each vehicle event contained in the event data subset of each event type, the event data is classified according to the data type of each event data to obtain event data groups of different data types corresponding to each vehicle event;
[0049] Determine the priority order of the event data contained in each event data group;
[0050] Through the transmission channel corresponding to the event data subset of each event type, each event data is uploaded according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group.
[0051] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0052] Obtain the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type;
[0053] For each vehicle event contained in the event data subset of each event type, the event data is classified according to the data type of each event data to obtain event data groups of different data types corresponding to each vehicle event;
[0054] Determine the priority order of the event data contained in each event data group;
[0055] Through the transmission channel corresponding to the event data subset of each event type, each event data is uploaded according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group.
[0056] The aforementioned data transmission method, apparatus, computer equipment, storage medium, and computer program product acquire an event dataset of a target vehicle. The event dataset contains subsets of event data for different event types. Each subset contains event data for multiple vehicle events of the same event type. For each event data within each vehicle event subset of each event type, the event data is classified according to its data type to obtain event data groups of different data types corresponding to each vehicle event. The priority order of the event data within each event data group is determined. Through the transmission channel corresponding to each event data subset of each event type, the event data is uploaded according to the order of vehicle events within the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of the event data within each event data group. This method processes the event data in the event dataset and uploads the event data according to the order of vehicle events, the transmission order between event data groups, and the priority order of the event data within each event data group. This ensures that event data of higher importance is transmitted to the receiving end first, guaranteeing the success rate and timeliness of transmission of important event data. Attached Figure Description
[0057] Figure 1 This is a flowchart illustrating a data transmission method in one embodiment;
[0058] Figure 2 This is a schematic diagram illustrating the classification of event data types in one embodiment;
[0059] Figure 3 This is a flowchart illustrating the steps for establishing a correspondence with a target transmission channel in one embodiment;
[0060] Figure 4 This is a flowchart illustrating the steps of uploading event data in one embodiment;
[0061] Figure 5 This is a flowchart of the step of uploading event data of a second event type in one embodiment;
[0062] Figure 6 This is a flowchart illustrating the steps of uploading event data of a third event type in one embodiment;
[0063] Figure 7 This is a flowchart illustrating the steps of uploading event data of a first event type in one embodiment;
[0064] Figure 8This is a flowchart illustrating the steps of transmitting image-type event data through a transmission channel corresponding to a subset of event data of the first event type in one embodiment.
[0065] Figure 9 This is a flowchart illustrating the steps of transmitting video type event data through a transmission channel corresponding to a subset of event data of the first event type in one embodiment.
[0066] Figure 10 This is a flowchart illustrating the steps of transmitting the trigger timestamp in one embodiment;
[0067] Figure 11 This is a flowchart illustrating the steps for handling event data in the event of an interrupted upload, as shown in one embodiment.
[0068] Figure 12 This is a flowchart illustrating the steps for restoring uploaded event data in one embodiment.
[0069] Figure 13 This is a flowchart illustrating the steps for uploading event data of different event types in a scenario where uploading is being restored, as shown in one embodiment.
[0070] Figure 14 This is a flowchart illustrating the steps of transmitting an unuploaded subset of data of a second event type in one embodiment.
[0071] Figure 15 This is a flowchart illustrating the steps of transmitting an unuploaded subset of data of a first event type in one embodiment.
[0072] Figure 16 This is a flowchart illustrating the steps of transmitting an unuploaded subset of data of a third event type in one embodiment;
[0073] Figure 17 This is a structural block diagram of a data transmission device in one embodiment;
[0074] Figure 18 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0075] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. Furthermore, the application field of the data transmission method in this application is not limited to the vehicle field. The data transmission method in this application can be applied between any two devices. For example, when this data transmission method is applied to data transmission between a mobile device and a computer device, the transmitted data is communication data. Therefore, this application does not limit the application scenarios of the data transmission method.
[0076] In one embodiment, such as Figure 1 As shown, a data transmission method is provided. In this embodiment, the execution device for performing the data transmission method is not limited. Taking the application of this data transmission method to the vehicle-mounted terminal of a target vehicle as an example, the data transmission method includes the following steps:
[0077] Step 102: Obtain the event dataset of the target vehicle.
[0078] The event dataset contains subsets of event data for different event types. Each subset contains event data for multiple vehicle events of the same event type.
[0079] In implementation, the in-vehicle terminal acquires event data from multiple events affecting the target vehicle. Based on the event types of these events, the in-vehicle terminal constructs different subsets of event data for each event type. Then, based on these subsets of event data for different event types, the in-vehicle terminal obtains the event dataset for the target vehicle.
[0080] Optionally, the different event types included in the event dataset may include, but are not limited to, a first event type, a second event type, a third event type, etc. Each event type is divided according to the time dimension. This application embodiment does not limit the number and types of event types included in the event dataset.
[0081] Step 104: For each vehicle event contained in the event data subset of each event type, classify the event data according to the data type of each event data to obtain event data groups of different data types corresponding to each vehicle event.
[0082] In practice, for each vehicle event contained in the event data subset of each event type, the vehicle terminal further classifies the event data in the same event type based on the data type of each event data, dividing each event data into event data groups of different data types.
[0083] Optionally, the data type of the event data may include, but is not limited to, a first data type and a second data type. The first data type may be an image type. The second data type may be a structured data type. The data type of the event data can be determined based on the data itself and actual business needs; this application embodiment does not limit the number or types of data types.
[0084] Optionally, the image type in the data type can also include two sub-data types, for example, such as Figure 2As shown, image types include picture types and video types. The structured data may include, but is not limited to, basic vehicle information data, vehicle status data, autonomous driving system motion data, driving environment data, and driver / passenger operation and status data. This application embodiment does not limit the content and types of structured data.
[0085] In an optional embodiment, for each vehicle event contained in the event data subset of each event type, the vehicle terminal divides the event data of the image type into event data groups of the first data type, and divides the structured data (event data) into event data groups of the second data type, with the first data type being the image type.
[0086] Step 106: Determine the priority order of each event data contained in each event data group.
[0087] In implementation, for each event data group, each event data has a preset event data level. The vehicle terminal determines the priority order of each event data in the event data group based on the preset event data levels. Specifically, the vehicle terminal pre-stores an event data level table. The vehicle terminal can determine the level of each event data based on this event data level table, and then determine the priority order of each event data according to its level.
[0088] Step 108: Upload each event data through the transmission channel corresponding to the event data subset of each event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group.
[0089] In implementation, the vehicle-mounted terminal determines the transmission order of each event data in the event data subset for each event type based on the order of vehicle events within the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data within each event data group. Specifically, the vehicle-mounted terminal uploads each event data according to its transmission order through the transmission channel corresponding to the event data subset for that event type.
[0090] In the above data transmission method, the event data in the event dataset is processed, and the event data is uploaded according to the order of each vehicle event, the transmission order between event data groups, and the priority order of each event data in the event data group. This ensures that the event data with higher importance can be transmitted to the receiving end first, thus guaranteeing the success rate and timeliness of the transmission of important event data.
[0091] In one embodiment, the specific processing procedure of step 106 includes:
[0092] For each event data group, the event data is sorted in descending order of priority according to the preset event data level to obtain the first priority order of each event data.
[0093] In implementation, the vehicle-mounted terminal pre-stores an event data level table. For each event data group within the event data subset of each event type, the vehicle-mounted terminal queries and determines the level corresponding to each event data according to the event data level table. Then, the vehicle-mounted terminal sorts the event data in descending order of their levels to obtain the first priority order for each event data.
[0094] Optionally, the vehicle terminal can define different event data level tables for different event types, or it can define the same event data level table for different event types. For example, event types may include, but are not limited to, a first event type, a second event type, and a third event type. In an optional embodiment, as shown in Table 1, the event data level tables for the first event type and the third event type can be the same, as detailed below:
[0095] Table 1
[0096]
[0097] Table 1 contains data information for multiple events. Specific data information may include data category, sequence number, data name, and level. Optionally, data categories may include data names such as: basic vehicle information data, vehicle status data, autonomous driving system operation data, driving environment data, driver and passenger operation and status data, image data, and video data. Optionally, data names may include, but are not limited to, event type code, vehicle yaw rate, AD (Autonomous Driving) system request gear, AD system requested steering curvature, perceived target object type, and backup user takeover capability (if a backup user is available). Furthermore, the preset levels for each event data in Table 1 may include, but are not limited to, three levels: Level A, Level B, and Level C.
[0098] In an optional embodiment, taking the event type of the event data subset as either the first event type or the third event type as an example, the specific process of determining the level of the event data includes: For each event data in each event data group within the event data subset, if the event data is classified as image data, the vehicle terminal looks up the level corresponding to the image data in the event data level table (e.g., Table 1) and obtains the level of the event data as level C. If the event data is classified as video data, the vehicle terminal looks up the level corresponding to the video data in the event data level table (e.g., Table 1) and obtains the level of the event data as level C.
[0099] Furthermore, if the event data is classified as neither image nor video data (i.e., the data type is not image-based), the vehicle terminal further searches for the corresponding level in the event data level table (e.g., Table 1) based on the data name of the event data to ultimately determine the level of the event data. Specifically, event data a is classified as autonomous driving system operation data, and its data name is "AD system request gear." Event data b is classified as autonomous driving system operation data, and its data name is "AD system request steering curvature." Since both event data a and event data b are non-image-based, the vehicle terminal cannot determine their levels based solely on their data classifications. In this case, the vehicle terminal continues to search for the level corresponding to the data name in the event data level table. Event data a's data name is "AD system request gear," therefore, its level is Level A. Event data b's data name is "AD system request steering curvature," therefore, its level in the event data level table is Level B.
[0100] In another optional embodiment, as shown in Table 2 below, the event data level table for the second event type can be different from the event data level tables for the first and third event types, as detailed below:
[0101] Table 2
[0102]
[0103] Table 2 contains event data information, which may include data category, sequence number, data name, and level. Optionally, the data category may include, but is not limited to, basic vehicle information. The data name may include, but is not limited to, the autonomous driving data recording system software version number, event type code, time (year), and cumulative mileage. The event data level may include, but is not limited to, two levels: Level A and Level B.
[0104] In an optional embodiment, when the event type of the event data subset is the second event type, the vehicle terminal directly looks up the corresponding level of each event data in Table 2 based on the data name of the event data for each event data group in the event data subset. For example, if the data name of event data x is "Event Type Code", the vehicle terminal looks up the corresponding level in Table 2 based on the data name of event data x as "Event Type Code" and determines that the level of event data x is level A. If the data name of event data y is "Cumulative Mileage", the vehicle terminal looks up the corresponding level in Table 2 based on the data name of event data y as "Cumulative Mileage" and determines that the level of event data y is level B.
[0105] In an optional embodiment, after determining the level of the event data, the vehicle terminal sorts the event data in each event data group within the event data subset according to the order of event data level from high to low, thus obtaining a first priority order for each event data. For example, if level A is considered high, the order of event data levels from high to low is from level A to level C. If level C is considered high, the order of event data levels from high to low is from level C to level A. This embodiment does not limit the order of event data levels from high to low.
[0106] Optionally, the level of event data can be determined by the importance of the event data. This application embodiment does not limit the level of event data.
[0107] In this embodiment, the first priority order of each event data in the event data group is determined according to the preset event data level, which clarifies the importance of each event data and facilitates the subsequent transmission of each event data according to the first priority order of the event data.
[0108] In one embodiment, regarding the process of determining the first priority order of event data in the above embodiments, the priority order of event data can be further considered based on the time order of event data. For example, taking the first event type as a time period event type, the process of collecting event data corresponding to each vehicle event in the event data subset of the time period event type is as follows: when a target vehicle experiences a vehicle event of the time period event type, the vehicle terminal uses the trigger time point of the vehicle event as the center point. Based on this center point, the vehicle terminal obtains the event data of the vehicle event within the time period corresponding to the time period event type. Then, based on the characteristics of each event data contained in each vehicle event in the event data subset of the time period event type, after determining the first priority order of each event data, the first priority order of event data of the same level in the event data group can be updated according to the time order of each event data to obtain the second priority order of each event data considering the time order. The specific processing of this data transmission method also includes:
[0109] For event data of the same level in the event data group, update the first priority order of event data of the same level in each event data group according to the time order of the event data, and obtain the second priority order of each event data.
[0110] In implementation, the vehicle-mounted terminal reorders event data of the same level within an event data group according to their chronological order, obtaining a sorting result. Based on this sorting result, the vehicle-mounted terminal updates the first priority order of event data of the same level within each event data group, thus obtaining a second priority order for each event data. In other words, the order of event data of the same level represented in the sorting result serves as the second priority order of the event data.
[0111] In an optional embodiment, taking the time period for collecting event data corresponding to a subset of event data of a time-segment event type as an example, which includes two preset durations, the reordering of event data of the same level according to the chronological order of the event data is further explained: A time period corresponding to a time-segment event type, centered on the vehicle event trigger point, includes two preset durations, referred to as the first preset duration and the second preset duration. The first preset duration is 15 seconds before the center point, and the second preset duration is 5 seconds after the center point. For each event data of the same level in the event data group, if each event data is within the first preset duration, the vehicle terminal sorts the event data according to the chronological order of the event data, obtaining a first sorting result. If each event data is within the second preset duration, the vehicle terminal sorts the event data according to the reverse chronological order of the event data, obtaining a second sorting result. Then, the vehicle terminal updates the first priority order of the event data of the same level in each event data according to the first sorting result and the second sorting result, respectively, to obtain the second priority order of the event data.
[0112] Optionally, the total duration of a time period for a time-time event type can be 20 seconds as in the above embodiment, i.e., the first preset duration is 15 seconds before the center point and the second preset duration is 5 seconds after the center point; or it can be 15 seconds, i.e., the first preset duration is 10 seconds before the center point and the second preset duration is 5 seconds after the center point. This application embodiment does not limit the total duration of the time period corresponding to the event data subset of the time-time event type, nor the durations included in the total duration.
[0113] In this embodiment, when the event data group corresponds to a subset of event data of the first event type, the first priority order of event data of the same level is updated according to the time order of the event data, which clarifies the importance of each event data and facilitates the subsequent transmission of each event data based on the second priority order of the event data.
[0114] In one embodiment, such as Figure 3 As shown, before transmitting event data, a transmission channel needs to be established. Therefore, before step 108 is executed, the data transmission method further includes:
[0115] Step 302: When the vehicle event of the target vehicle meets the event conditions corresponding to the target event type, establish a transmission channel corresponding to the event data subset of the target event type.
[0116] The target event type can be any of the different event types.
[0117] In implementation, the vehicle-mounted terminal stores event conditions corresponding to different event types. When a vehicle event of a target vehicle meets the event conditions corresponding to the target event type, the vehicle-mounted terminal establishes a transmission channel corresponding to the subset of event data for the target event type. The event conditions are the triggering conditions for vehicle events that satisfy the target event type.
[0118] Specifically, for vehicle events of different event types, the on-board terminal establishes transmission channels corresponding to different event types. When a vehicle event occurs on the target vehicle, the on-board terminal determines the event type. Then, based on the event type, the on-board terminal establishes the corresponding transmission channel. The triggering conditions for different event types are different. For example, taking the first event type as a time-limited event type, when the longitudinal deceleration of the target vehicle exceeds 5 m / s²... 2 When the vehicle event triggering condition for the first event type is met (i.e., the event condition corresponding to the first event type is met) at a time interval of (meters per square second), the vehicle terminal establishes two transmission channels corresponding to the event data subset of the first event type. Taking the second event type as a timestamp event type as an example, when the target vehicle activates the autonomous driving system, it is determined that the target vehicle meets the vehicle event triggering condition for the second event type (i.e., the event condition corresponding to the second event type is met), and the vehicle terminal establishes one transmission channel corresponding to the event data subset of the second event type. Taking the third event type as a real-time event type, when the target vehicle starts, it is determined that the target vehicle meets the vehicle event triggering condition for the third event type (i.e., the event condition corresponding to the third event type is met), and the vehicle terminal establishes two transmission channels corresponding to the event data subset of the third event type.
[0119] Optionally, the triggering conditions for different event types are different, and the triggering conditions for each event type are not unique. The number of transmission channels corresponding to different event types is also different. In this embodiment of the application, the triggering conditions for different event types and the number of transmission channels corresponding to different event types are not limited.
[0120] Step 304: For each event data group corresponding to each vehicle event in the event data subset of the target event type, establish a correspondence between event data groups of the same data type and the target transmission channel in the transmission channel according to the data type of each event data group.
[0121] In implementation, the vehicle terminal establishes a correspondence between event data groups of the same data type and the target transmission channel in the transmission channel, based on the data type of each event data group corresponding to each vehicle event in the event data subset of the target event type.
[0122] In an optional embodiment, taking a time-segment event type as an example, when a vehicle event of the time-segment event type occurs, the vehicle terminal establishes two time-segment transmission channels corresponding to the time-segment event type. Furthermore, the data types corresponding to each event data group of the time-segment event type include two types, represented as a first data type and a second data type, respectively. Therefore, for each event data group corresponding to each vehicle event in the event data subset of the time-segment event type, the vehicle terminal establishes a correspondence between each event data group of the first data type and the target transmission channel among the two time-segment transmission channels, based on the data type corresponding to each event data group. Additionally, the vehicle terminal establishes a correspondence between the event data groups of the second data type and the other time-segment transmission channel among the two time-segment transmission channels besides the target transmission channel.
[0123] In this embodiment, by determining the transmission channel corresponding to the event data group, multiple transmission channels capable of transmitting event data are increased, thereby improving the transmission efficiency of event data.
[0124] In one embodiment, such as Figure 4 As shown, event types can be categorized based on a time dimension. For example, based on the time dimension, event types can be divided into three types: the first event type, the second event type, and the third event type. Different subsets of event data for different event types correspond to different transmission channels. Specifically, the processing steps in step 108 include:
[0125] Step 402: If the event data subset is a subset of event data of the second event type, package the event data group and upload the packaged event data group through the transmission channel corresponding to the event data subset of the second event type.
[0126] In implementation, taking the second event type as an example (timestamped event type), when the event data subset is a subset of the event data of the timestamped event type, the vehicle terminal packages each event data group within the second event type's event data subset. Then, the vehicle terminal uploads each packaged event data group through the timestamp transmission channel corresponding to the timestamped event type. After completing the upload of the event data groups, the vehicle terminal closes the timestamp transmission channel. That is, the timestamp transmission channel uses a short connection method, meaning it is used and then immediately closed. Figure 5 As shown, once a short connection is established, the timestamp transmission channel is complete, and the vehicle terminal uploads all data in the event data group, thus achieving the upload of the event data group. Then, the vehicle terminal closes the connection.
[0127] Step 404: If the event data subset is the event data subset of the first event type, upload each event data through the transmission channel corresponding to the event data subset of the first event type, according to the order of each vehicle event in the event data subset and the comprehensive sorting result of each event data corresponding to each vehicle event.
[0128] The overall sorting result of each event data is determined by the transmission order between event data groups of different data types corresponding to each vehicle event and the second priority order of each event data within each event data group.
[0129] In implementation, taking the first event type as a time-based event type as an example, when the event data subset is a subset of the event data of the first event type, the vehicle terminal, for each vehicle event, determines the comprehensive sorting result of the event data corresponding to that vehicle event based on the transmission order between event data groups of different data types corresponding to that vehicle event and the second priority order of each event data within each event data group. Then, the vehicle terminal uploads each event data according to the transmission channel corresponding to the event data subset of the first event type (e.g., two time-based transmission channels), based on the order of each vehicle event and the comprehensive sorting result of each event data corresponding to each vehicle event.
[0130] Step 406: If the event data subset is a subset of event data of the third event type, upload each event data according to the first priority order of each event data in each event data group through the transmission channel corresponding to the event data subset of the third event type.
[0131] In implementation, taking the third event type as an example of a real-time event type, when the event data subset is a subset of the event data of the third event type, the vehicle terminal determines the transmission channel corresponding to the real-time event type, i.e., two real-time transmission channels. The vehicle terminal acquires the event data stream (i.e., the event data subset) of the real-time event type and uploads the event data subset of the real-time event type through the two real-time transmission channels. Specifically, the vehicle terminal uploads each event data in the event data group of the second data type according to the first priority order (e.g., uploading event data of level A in the event data group of the second data type first, then uploading event data of level B). At the same time, the vehicle terminal uploads each event data in the event data group of the first data type according to the first priority order (e.g., if the first data type corresponds to only one level, then directly uploading the event data in the event data group of the first data type).
[0132] Optionally, two real-time transmission channels can be established using a long-lived connection, such as... Figure 6As shown, when the event data subset is a subset of event data of the real-time event type, the vehicle terminal establishes long connection 1 and long connection 2 to obtain two real-time transmission channels.
[0133] Optionally, the vehicle terminal has a queue-jumping mechanism during event data upload. Specifically, during the upload of event data groups of the second data type, after completing the upload of level A event data, the vehicle terminal uploads level B event data. If new level A event data appears during the upload of level B event data, the vehicle terminal supports the newly generated level A vehicle event data jumping the queue to upload the level B event data, prioritizing its upload.
[0134] In this embodiment, each event data is uploaded according to the order of vehicle events, the transmission order between event data groups, and the priority order of each event data in the event data group. This ensures that event data with higher importance can be transmitted to the receiving end first, guaranteeing the success rate and timeliness of transmission of important event data.
[0135] In one embodiment, such as Figure 7 As shown, when the event data subset is a subset of event data of the first event type, in step 404, the event data is uploaded according to the order of each vehicle event in the event data subset and the comprehensive sorting result of each event data corresponding to each vehicle event. The specific processing procedure includes:
[0136] Step 702: For each vehicle event in the event data subset, sort the event data comprehensively according to the order of the second data type event data group first and the first data type event data group last, as well as the second priority order of each event data within each event data group, to obtain the comprehensive sorting result of each event data corresponding to each vehicle event.
[0137] The data types include the first data type and the second data type.
[0138] In implementation, when the event data subset is a subset of event data of the first event type, the vehicle terminal sorts the event data groups corresponding to each vehicle event in the event data subset according to the order of event data groups of the second data type first and event data groups of the first data type last. Furthermore, for each event data group, the sorting of each event data in the event data group is determined according to the second priority order of each event data in the event data group, thereby obtaining the comprehensive sorting result of each event data corresponding to each vehicle event.
[0139] Step 704: Based on the order of each vehicle event in the event data subset, upload each event data according to the comprehensive sorting result of each event data corresponding to each vehicle event.
[0140] In this embodiment, a comprehensive sorting result is determined based on the order of event data groups in a vehicle event and the second priority order of each event data within each event data group. The vehicle event is then uploaded according to the comprehensive sorting result, so that event data with higher importance can be transmitted to the receiving end first, and important event data can be transmitted successfully in a timely manner.
[0141] Optionally, although video and image types both belong to the image type category, there are differences in how image-type event data and structured data are uploaded as event data compared to video-type event data and structured data, as detailed below:
[0142] Taking the data types of the event data group of the first event type, which are image type and structured data, as an example, the event data upload process is explained as shown in Figure 8. For the event data subset of the time period event type, the vehicle terminal establishes short connection 1 and short connection 2 to obtain two time period transmission channels. The vehicle terminal uploads the structured data within the first preset duration of the time period through one of the two time period transmission channels, and then uploads the structured data within the second preset duration. The upload order of the structured data within the first preset duration is: in reverse chronological order, the structured data of level A is uploaded first, followed by the structured data of level B. The upload order of the structured data within the second preset duration is: in chronological order, the structured data of level A is uploaded first, followed by the structured data of level B. Then, after the structured data upload is completed, the vehicle terminal uploads the image type event data within the first preset duration in reverse chronological order through the other time period transmission channel, and then uploads the image type event data within the second preset duration in chronological order.
[0143] Taking the event data group of the first event type, with data types of video and structured data, as an example, the event data upload process is explained as shown in Figure 9. The vehicle terminal uploads structured data through one of the time-segment transmission channels. For the specific transmission process of uploading structured data, please refer to [reference needed]. Figure 8 The description of uploading structured data in the previous embodiment will not be repeated here. Simultaneously with uploading structured data, the vehicle terminal uploads video-type event data through another time-segment transmission channel. For the specific transmission process of uploading video-type event data, please refer to [link to relevant documentation]. Figure 8 The description of event data for uploading image types will not be repeated here in this embodiment.
[0144] Optionally, when the data type of the event data group for the first event type is of two types—image type and structured data type—the vehicle terminal also supports an event data upload queue-jumping mechanism. Specifically, after the structured data is uploaded, during the image type event data upload process, when newly generated structured data appears, the vehicle terminal supports uploading the newly generated structured data before the image type event data has been uploaded; that is, the newly generated structured data jumps the queue of the unuploaded image type event data.
[0145] Optionally, the enabling and disabling of the upload function for a subset of event data for each event type is determined by business requirements. In one optional embodiment, such as Figure 10 As shown, when the vehicle terminal is enabled to upload event data from a subset of real-time event data, the vehicle terminal uploads the timestamp of the target vehicle that meets the triggering conditions of the time-segment event type through one time-segment transmission channel. After uploading the timestamp, the vehicle terminal closes one time-segment transmission channel.
[0146] In one embodiment, such as Figure 11 As shown, after step 106 is executed, the specific processing steps of this data transmission method further include:
[0147] Step 1102: In the event of an interrupted upload, mark the interruption location in each event data group;
[0148] The interruption location is used to reflect the progress of event data upload.
[0149] During implementation, when the network is unstable or the connection is abnormal, the vehicle terminal uploads event data. In the event of an interruption in uploading, the vehicle terminal marks the interruption point in each event data group.
[0150] Step 1104: For each event data group corresponding to each vehicle event, package the unuploaded event data after the interruption position in each event data group to obtain the unuploaded data subset corresponding to each event data group.
[0151] In practice, the vehicle terminal packages the event data that was not uploaded after the interruption point for each event data group corresponding to each vehicle event, thus obtaining the unuploaded data subset corresponding to each event data group.
[0152] Step 1106: If uploading is resumed, upload each subset of data that was not uploaded through the resumed transmission channel.
[0153] In practice, upon resumption of uploads, the vehicle-mounted terminal establishes a recovery transmission channel. Then, the vehicle-mounted terminal uploads each subset of data that was not previously uploaded through this recovery transmission channel.
[0154] In this embodiment, if the upload is interrupted, the event data that was not successfully uploaded is marked, the unuploaded event data is packaged, and if the upload is resumed, the packaged event data is uploaded. This ensures that every event data in the event dataset can be completely transmitted to the receiving end, avoids omissions during event data transmission, and improves the success rate of event dataset transmission.
[0155] In one embodiment, such as Figure 12 As shown, the specific processing steps of step 1106 include:
[0156] Step 1202: If the upload is resumed, establish a recovery transmission channel.
[0157] During implementation, when uploading resumes, the vehicle-mounted terminal establishes a recovery transmission channel.
[0158] Optionally, the restored transmission channel can be a long connection or a short connection, and the number of restored transmission channels can be 1 or 2. This embodiment does not limit the nature and number of restored transmission channels.
[0159] Step 1204: By restoring the transmission channel, upload each unuploaded data subset according to the preset transmission order of event types, the order of vehicle events for each event type, and the transmission order between each unuploaded data subset corresponding to each vehicle event.
[0160] In one implementation, the vehicle terminal restores the transmission channel and uploads each unuploaded dataset according to the preset transmission order of event types, from first to last: the second event type, the first event type, and the third event type, as well as the order of each vehicle event for each event type and the transmission order among each unuploaded data subset corresponding to each vehicle event.
[0161] Optionally, the transmission order of event types can be the second event type, the first event type, and the third event type, or the first event type, the second event type, and the third event type. This embodiment does not limit the transmission order of event types.
[0162] In this embodiment, when uploading is resumed, a recovery transmission channel is established, and each unuploaded data subset is uploaded according to the preset transmission order of event types, the order of vehicle events in each event type, and the transmission order between each unuploaded data subset corresponding to each vehicle event. This ensures that important event data in each unuploaded data subset can be transmitted in a timely manner and that every event data in the event dataset can be completely transmitted to the receiving end, avoiding omissions during event data transmission and improving the transmission success rate of the event dataset.
[0163] In one embodiment, event types are categorized based on a time dimension, including a first event type, a second event type, and a third event type, such as... Figure 13 As shown, the specific processing steps for uploading each unuploaded data subset in step 1204, according to the order of vehicle events for each event type and the transmission order between each unuploaded data subset corresponding to each vehicle event, include:
[0164] Step 1302: If the event type is the second event type, the unuploaded data subset of the second data type is uploaded in the order of the vehicle events of the second event type from the latest to the earliest by restoring the transmission channel.
[0165] In one embodiment, the second event type is a timestamp event type, as an example. Figure 14 As shown, Figure 14 This flowchart illustrates the process of an in-vehicle terminal transmitting a subset of unuploaded data (timestamp event type) upon resumption of upload. When the connection between the in-vehicle terminal and the data receiver is lost, the in-vehicle terminal marks the interruption point and packages the unuploaded event data, resulting in the unuploaded data subset. Then, the in-vehicle terminal uploads the unuploaded data subset of the second data type, following the chronological order of vehicle events of the second event type, through the resumed transmission channel.
[0166] Step 1304: If the event type is the first event type, restore the transmission channel and upload the unuploaded data subset of the second data type first, and then upload the unuploaded data subset of the first data type, according to the time sequence of the vehicle events of the first event type from last to first.
[0167] In an optional embodiment, the first event type is taken as an example as a time period event type. Figure 15 As shown, Figure 15 This is a flowchart illustrating the process of transmitting unuploaded data subsets of the time-segment event type by the vehicle-mounted terminal when uploading resumes. When the connection between the vehicle-mounted terminal and the data receiving end is lost, the vehicle-mounted terminal marks the interruption location and packages the unuploaded event data, resulting in an unuploaded data subset. The vehicle-mounted terminal uploads each unuploaded data subset according to the chronological order of vehicle events of the first event type, and the order of unuploaded data subsets of different data types corresponding to each vehicle event, with the unuploaded data subset of the second data type preceding the unuploaded data subset of the first data type. The upload order of event data within the unuploaded data subset is similar to the upload order of event data in the event data group in step 704, and will not be repeated here.
[0168] Step 1306: In the case of event type 3, by restoring the transmission channel, according to the time sequence of vehicle events of type 3 from latest to earliest, first upload the unuploaded data subset with data type 2, and then upload the unuploaded data subset with data type 1.
[0169] In an optional embodiment, the third event type is taken as an example as a real-time event type. Figure 16 As shown, Figure 16 This is a flowchart illustrating the process of transmitting unuploaded data subsets of the real-time event type by the vehicle-mounted terminal when uploading resumes. When the connection between the vehicle-mounted terminal and the data receiving end is lost, the vehicle-mounted terminal marks the interruption location and packages the unuploaded event data, resulting in an unuploaded data subset. The vehicle-mounted terminal uploads each unuploaded data subset according to the chronological order of vehicle events of the third event type, and the order of unuploaded data subsets of different data types corresponding to each vehicle event: unuploaded data subsets of the second data type first, followed by unuploaded data subsets of the first data type. The upload order of event data within the unuploaded data subset is similar to the upload order of event data in the event data group in step 406, and will not be repeated here.
[0170] In this embodiment, each unuploaded data subset is uploaded according to the order of vehicle events in each event type and the transmission order between each unuploaded data subset corresponding to each vehicle event. This ensures that important event data in each unuploaded data subset can be transmitted in a timely manner and that every event data in the event dataset can be completely transmitted to the receiving end, avoiding omissions during event data transmission and improving the transmission success rate of the event dataset.
[0171] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0172] Based on the same inventive concept, this application also provides a data transmission apparatus for implementing the data transmission method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, specific limitations in one or more data transmission apparatus embodiments provided below can be found in the limitations of the data transmission method described above, and will not be repeated here.
[0173] In one embodiment, such as Figure 17 As shown, a data transmission device 1700 is provided, including: an acquisition module 1701, a classification module 1702, a determination module 1703, and an upload module 1704, wherein:
[0174] The acquisition module 1701 is used to acquire the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type.
[0175] The classification module 1702 is used to classify each event data according to the data type of each vehicle event contained in the event data subset of each event type, so as to obtain event data groups of different data types corresponding to each vehicle event.
[0176] The determining module 1703 is used to determine the priority order of each event data contained in each event data group.
[0177] The upload module 1704 is used to upload each event data through the transmission channel corresponding to the event data subset of each event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group.
[0178] In one exemplary embodiment, the determining module 1703 includes:
[0179] The first determining submodule is used to sort the event data in descending order of the preset event data level for each event data group, so as to obtain the first priority order of the event data.
[0180] In an exemplary embodiment, when the event data group corresponds to a subset of event data of a first event type, after the first determining submodule performs its operation, the data transmission device 1700 further includes:
[0181] The update submodule is used to update the first priority order of event data of the same level in the event data group according to the time order of the event data, so as to obtain the second priority order of the event data.
[0182] In one exemplary embodiment, before the upload module 1704 performs its operation, the data transmission device 1700 further includes:
[0183] The first establishment submodule is used to establish a transmission channel corresponding to a subset of event data of the target event type when the vehicle event of the target vehicle meets the event conditions corresponding to the target event type; the target event type is any of the different event types.
[0184] The second establishment submodule is used to establish a correspondence between event data groups of the same data type and target transmission channels in the transmission channels, based on the data type of each event data group corresponding to each vehicle event in the event data subset of the target event type.
[0185] In an exemplary embodiment, the event types are divided according to a time dimension, and the event types include a first event type, a second event type, and a third event type. The upload module 1704 includes:
[0186] The first upload submodule is used to package the event data group when the event data subset is the event data subset of the second event type, and upload the packaged event data group through the transmission channel corresponding to the event data subset of the second event type.
[0187] The second upload submodule is used to upload each event data according to the order of each vehicle event in the event data subset and the comprehensive sorting result of each event data corresponding to each vehicle event, through the transmission channel corresponding to the event data subset of the first event type, when the event data subset is the event data subset of the first event type; the comprehensive sorting result of each event data is determined by the transmission order between event data groups of different data types corresponding to each vehicle event and the second priority order of each event data within each event data group.
[0188] The third upload submodule is used to upload each event data according to the first priority order of each event data in each event data group through the transmission channel corresponding to the event data subset of the third event type when the event data subset is the event data subset of the third event type.
[0189] In one exemplary embodiment, the second upload submodule includes:
[0190] The sorting submodule is used to perform a comprehensive sorting of the event data for each vehicle event in the event data subset, according to the order of the second data type event data group first and the first data type event data group last among event data groups of different data types, and the second priority order of each event data in each event data group, to obtain a comprehensive sorting result of the event data corresponding to each vehicle event.
[0191] The fourth upload submodule is used to upload each event data according to the order of each vehicle event in the event data subset and the comprehensive sorting result of each event data corresponding to each vehicle event.
[0192] In one exemplary embodiment, after the determining module 1703 performs its operation, the data transmission device 1700 further includes:
[0193] The tagging submodule is used to mark the interruption position in each of the event data groups in the event of an interrupted upload; the interruption position is used to reflect the upload progress of the event data.
[0194] The packaging submodule is used to package the unuploaded event data after the interruption position in each event data group corresponding to each vehicle event, so as to obtain the unuploaded data subset corresponding to each event data group.
[0195] The fifth upload submodule is used to upload each of the previously unuploaded data subsets through the restored transmission channel when uploading is resumed.
[0196] In one exemplary embodiment, the fifth upload submodule includes:
[0197] The third submodule is used to establish a recovery transmission channel in the event of a resumed upload.
[0198] The sixth upload submodule is used to upload each of the unuploaded data subsets through the recovery transmission channel, according to the transmission order of the preset event types, the order of each of the vehicle events of each event type, and the transmission order between each of the unuploaded data subsets corresponding to each vehicle event.
[0199] In an exemplary embodiment, the event types are categorized based on a time dimension, and the event types include a first event type, a second event type, and a third event type. The sixth upload submodule includes:
[0200] The seventh upload submodule is used to upload the unuploaded data subset of the second data type through the recovery transmission channel, in the case that the event type is the second event type, according to the time sequence of the vehicle events of the second event type from latest to first.
[0201] The eighth upload submodule is used to, when the event type is the first event type, upload the unuploaded data subset of the second data type first, and then upload the unuploaded data subset of the first data type, according to the order of the vehicle events of the first event type from the last to the first time, through the recovery transmission channel.
[0202] The ninth upload submodule is used to, when the event type is the third event type, upload the unuploaded data subset with data type second first, and then upload the unuploaded data subset with data type first, through the recovery transmission channel, according to the time sequence of the vehicle events of the third event type from latest to earliest, via the recovery transmission channel.
[0203] Each module in the aforementioned data transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0204] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 18 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a data transmission method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0205] Those skilled in the art will understand that Figure 18The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0206] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0207] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0208] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0209] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0210] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0211] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A data transmission method, characterized in that, The method includes: Obtain the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type; For each vehicle event within the event data subset of each event type, the event data is categorized according to its data type to obtain event data groups of different data types corresponding to each vehicle event. The data types include a first data type and a second data type, where the first data type is an image type and the second data type is a structured data type. The event types are based on a time dimension. The event types include a first event type, a second event type, and a third event type. The first event type is a time-segment event type, the second event type is a timestamp event type, and the third event type is a real-time event type. Each event type has different triggering conditions. Determine the priority order of the event data contained in each event data group; Through the transmission channel corresponding to the event data subset of each event type, each event data is uploaded according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group. The step of uploading each event data through the transmission channel corresponding to each subset of event data of each event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group, includes: When the event data subset is a subset of event data of the first event type, for each vehicle event in the event data subset, the event data is comprehensively sorted according to the order of the second data type event data group first and the first data type event data group last among event data groups of different data types, and the second priority order of each event data in each event data group, so as to obtain the comprehensive sorting result of each event data corresponding to each vehicle event. Establish two time-segment transmission channels; For each vehicle event corresponding to the event data group in the event data subset, structured data within a first preset duration is uploaded in reverse chronological order through one time period transmission channel, and structured data within a second preset duration is uploaded in chronological order; the structured data within the first preset duration and the second preset duration are transmitted in descending order of priority. Through another time period transmission channel, image type event data within the first preset duration is uploaded in reverse chronological order from back to front, and image type event data within the second preset duration is uploaded in chronological order from front to back.
2. The method according to claim 1, characterized in that, Determining the priority order of each event data contained in each event data group includes: For each event data group, the event data is sorted in descending order of the preset event data level to obtain the first priority order of the event data.
3. The method according to claim 2, characterized in that, When the event data group corresponds to a subset of event data of the first event type, after sorting the event data in descending order of the preset event data level for each event data group to obtain a first priority order of the event data, the method further includes: For event data of the same level in the event data group, the first priority order of event data of the same level in each event data group is updated according to the time order of the event data to obtain the second priority order of each event data.
4. The method according to claim 1, characterized in that, Before uploading each event data through the transmission channel corresponding to each event data subset of the event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group, the method further includes: When the vehicle event of the target vehicle meets the event conditions corresponding to the target event type, a transmission channel is established corresponding to the event data subset of the target event type; the target event type is any of the different event types. For each vehicle event corresponding to each event data group in the event data subset of the target event type, a correspondence is established between the event data groups of the same data type and the target transmission channel in the transmission channel, based on the data type of each event data group.
5. The method according to claim 3, characterized in that, The step of uploading each event data through the transmission channel corresponding to each subset of event data of each event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group, includes: If the event data subset is a subset of event data of the second event type, the event data group is packaged and uploaded through the transmission channel corresponding to the event data subset of the second event type. When the event data subset is a subset of event data of the first event type, each event data is uploaded through the transmission channel corresponding to the event data subset of the first event type, according to the order of each vehicle event in the event data subset and the comprehensive sorting result of each event data corresponding to each vehicle event; the comprehensive sorting result of each event data is determined by the transmission order between event data groups of different data types corresponding to each vehicle event and the second priority order of each event data within each event data group. When the event data subset is a subset of event data of the third event type, each event data is uploaded through the transmission channel corresponding to the event data subset of the third event type, according to the first priority order of each event data in each event data group.
6. The method according to claim 1, characterized in that, After determining the priority order of each event data contained in each event data group, the method further includes: In the event of an interrupted upload, the interruption point in each of the event data groups is marked; the interruption point is used to reflect the upload progress of the event data. For each event data group corresponding to each vehicle event, package the unuploaded event data after the interruption position in each event data group to obtain the unuploaded data subset corresponding to each event data group; If uploading resumes, the previously unuploaded subsets of data are uploaded via the restored transmission channel.
7. The method according to claim 6, characterized in that, In the case of resumed upload, uploading each of the previously unuploaded data subsets through the restored transmission channel includes: In the event of resumed uploads, a recovery transmission channel will be established; Through the recovery transmission channel, each of the unuploaded data subsets is uploaded according to the transmission order of the preset event types, the order of each vehicle event of each event type, and the transmission order between each unuploaded data subset corresponding to each vehicle event.
8. The method according to claim 7, characterized in that, The event types are divided according to the time dimension. The event types include a first event type, a second event type, and a third event type. According to the order of each vehicle event of each event type and the transmission order between each unuploaded data subset corresponding to each vehicle event, each unuploaded data subset is uploaded, including: When the event type is the second event type, the unuploaded data subset of the second data type is uploaded through the recovery transmission channel in the order of the vehicle events of the second event type from latest to earliest time. When the event type is the first event type, the unuploaded data subset of the second data type is uploaded first, and the unuploaded data subset of the first data type is uploaded later, according to the time sequence of the vehicle events of the first event type, through the recovery transmission channel. In the case where the event type is the third event type, through the recovery transmission channel, according to the time sequence of the vehicle events of the third event type from latest to earliest, the unuploaded data subset with data type second is uploaded first, followed by the unuploaded data subset with data type first.
9. A data transmission device, characterized in that, The device includes: The acquisition module is used to acquire the event dataset of the target vehicle; the event dataset contains event data subsets of different event types; the event data subsets contain event data of multiple vehicle events of the same event type; The classification module is used to classify the event data of each vehicle event within the event data subset of each event type according to the data type of each event data, resulting in event data groups of different data types corresponding to each vehicle event. The data types include a first data type and a second data type, where the first data type is an image type and the second data type is a structured data type. The event types are based on a time dimension. The event types include a first event type, a second event type, and a third event type. The first event type is a time-segment event type, the second event type is a timestamp event type, and the third event type is a real-time event type. Each event type has different triggering conditions. A determining module is used to determine the priority order of each event data contained in each event data group; The upload module is used to upload each event data through the transmission channel corresponding to the event data subset of each event type, according to the order of each vehicle event in the event data subset, the transmission order between event data groups of different data types corresponding to each vehicle event, and the priority order of each event data in each event data group; The upload module is specifically used to, when the event data subset is a subset of event data of the first event type, perform a comprehensive sorting of the event data for each vehicle event in the event data subset, according to the order of the second data type event data group first and the first data type event data group last among event data groups of different data types, and the second priority order of each event data within each event data group, to obtain a comprehensive sorting result of the event data corresponding to each vehicle event; establish two time-slot transmission channels, for each event data group corresponding to each vehicle event in the event data subset, through one time-slot transmission channel, upload structured data within a first preset time period in reverse chronological order, and upload structured data within a second preset time period in chronological order; the structured data within the first preset time period and the second preset time period are transmitted in descending order of priority; through the other time-slot transmission channel, upload image type event data within the first preset time period in reverse chronological order, and upload image type event data within the second preset time period in chronological order.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.