Data transmission control method and system, computer device, and storage medium
By controlling the gating list through the time-sensitive network control gateway and the count value of the target counter, the problems of latency and reliability of vehicle task data transmission are solved, and efficient and reliable task data transmission is achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CHONGQING CHANGAN AUTOMOBILE CO LTD
- Filing Date
- 2026-01-20
- Publication Date
- 2026-07-23
AI Technical Summary
The data transmission of mission data on vehicles has long latency and low efficiency. Existing technologies that use timestamp control within time windows reduce the reliability of mission data transmission.
The opening and closing of gates in the gating list are controlled by the count values of the time-sensitive network control gateway and the target counter. The transmission of task data is controlled by the end time and start time of the corresponding task indicated by the target counter, avoiding the use of time window timestamps.
It improves the real-time performance and reliability of task data transmission on the vehicle, reduces the latency of task data, and enhances the overall performance and reliability of the vehicle system.
Smart Images

Figure CN2026073772_23072026_PF_FP_ABST
Abstract
Description
Data transmission control methods, systems, computer equipment, and storage media Technical Field
[0001] This invention relates to the field of vehicle technology, and more specifically to control methods, systems, computer equipment, and storage media for data transmission. Background Technology
[0002] Vehicles rely on task data to perform tasks. Control of the transmission of this task data within the vehicle is necessary. In related technologies, this control is achieved through control operations performed by the transmitting party, resulting in long transmission delays and low transmission efficiency. Therefore, improving the transmission efficiency of task data within vehicles is a problem that needs to be solved. Summary of the Invention
[0003] One of the objectives of this invention is to provide a data transmission control method, system, computer device, and storage medium to solve the technical problem of how to improve the transmission efficiency of task data on vehicles.
[0004] In a first aspect, the present invention provides a data transmission control method, comprising:
[0005] In response to the target counter on the target vehicle reaching the count value indicating the target end time of the target task, the gating in the gating list corresponding to the gating priority of the target task is closed to stop the transmission of the target task's task data through the time-sensitive network control gateway;
[0006] Enable the gating priority of the next task to be executed in the gating list, so as to transmit the task data of the next task to be executed through the time-sensitive network control gateway. The target end time is the end time of the process of executing the target task, the target end time is the target start time of the next task to be executed, and the target start time of the next task to be executed is the start time of the process of executing the next task.
[0007] The count value of the target counter, which indicates the target end time of the target task, is used as the count value of the target counter, which indicates the target start time of the next task to be executed.
[0008] Based on the aforementioned technical means, on the one hand, the time-sensitive network control gateway, which can achieve high real-time data transmission performance, controls the transmission of task data on the target vehicle, reducing the transmission latency of task data on the target vehicle, improving the transmission efficiency of task data on the target vehicle, and enhancing the reliability and performance of the entire vehicle system of the target vehicle. On the other hand, by using counter values to control the opening and closing of gates in the gating list, the opening and closing of gates in the time-sensitive network control gateway's gating list can be controlled relatively accurately.
[0009] On the other hand, in the data transmission control method provided in this embodiment of the invention, the reason for using the count value of the target counter indicating the end time of the corresponding task and the count value indicating the start time of the corresponding task to control the opening and closing of the corresponding gate in the gate control list is because: in related technologies, the data transmission control method is to transmit the task data corresponding to the time window within a time window and use the timestamp of the time window to control the start and stop of the task data transmission. This control method leads to a decrease in the reliability of task data transmission on the vehicle. In related technologies, when controlling the start and stop of task data transmission through the timestamp of the time window, for each time window, the vehicle engineer sets the timestamp of each time window based on the time required, under normal circumstances, to transmit the preset amount of task data corresponding to the time window within the time window. When the time reaches the timestamp of a time window, an attempt is made to transmit the preset amount of task data corresponding to the next time window within the next time window.
[0010] However, the timestamp of the time window is set according to the duration required for transmitting the data volume corresponding to the task data within the time window under normal circumstances, as perceived by the vehicle engineers. In some unconventional situations, such as high load on the equipment used for transmitting task data within a time window, the actual duration required to transmit the data volume corresponding to the task data within the time window may be greater than the time interval between the timestamp of this time window and the timestamp of the previous time window. In such cases, the timestamp of the time window set by the vehicle engineers may be earlier than the time when the transmission of the task data should have stopped. In reality, the data corresponding to this time window can only be transmitted at a certain time after the timestamp of this time window. However, since the start and stop of task data transmission are controlled by the timestamp of the time window, when the timestamp of a time window is reached, the transmission of the data corresponding to that time window will stop prematurely. This causes the transmission of the task data corresponding to this time window to be stopped before it is actually completed, leading to abnormalities in the systems on the vehicle that rely on the transmission of the task data corresponding to this time window for their corresponding operations. The reliability of task data transmission on the vehicle is reduced.
[0011] In the data transmission control method provided in the embodiments of the present invention, a time-sensitive network control gateway is used to transmit task data. The count value of the target counter indicating the end time of the corresponding task and the count value indicating the start time of the corresponding task are used to control the opening and closing of the corresponding gate in the gate list. The opening or closing of the corresponding gate in the gate list will trigger the time-sensitive network to start or stop transmitting the task data of the corresponding task.
[0012] In other words, in the data transmission control method provided in this embodiment of the invention, the start and stop of task data transmission for a given task are controlled by using the count values of the target counter indicating the end time and the start time of the corresponding task. This method utilizes information unrelated to the timestamp of the time window—namely, the count values of the target counter indicating the end time and the start time of the corresponding task—to control the start and stop of task data transmission. Instead of using the timestamp of the time window to control the start and stop of task data transmission for that time window, this avoids the situation described in the related technologies where the timestamp of the time window is used to control the start and stop of task data transmission for that time window, leading to premature termination of task data transmission and system malfunctions on the vehicle that relies on the transmission of task data for that time window. Therefore, the data transmission control method provided in this embodiment of the invention improves the reliability of task data transmission on the vehicle.
[0013] Furthermore, the method also includes: in response to the target counter on the target vehicle reaching a count value indicating the target start time of the target task, the time-sensitive network control gateway determines a count value indicating the target end time of the target task based on the count value of the target counter indicating the target start time of the target task and the preset execution duration of the target task.
[0014] Furthermore, the target task is to send data corresponding to the target system-on-a-chip on the target vehicle to the target electronic control unit on the target vehicle; the method also includes: during the execution of the target task, the time-sensitive network control gateway receives data corresponding to the target system-on-a-chip from the target electronic control unit, and sends the data corresponding to the target system-on-a-chip on the target vehicle to the target system-on-a-chip on the target vehicle.
[0015] Furthermore, the gating priority of the target task is the same as the quality of service priority of the target message; and sending the data corresponding to the target system-on-a-chip on the target vehicle to the target system-on-a-chip on the target vehicle includes:
[0016] The time-sensitive network control gateway determines whether the quality of service priority in the target message received from the target system-on-a-chip is the gating priority of the target task, wherein the target message includes data corresponding to the target system-on-a-chip on the target vehicle;
[0017] If so, the time-sensitive network control gateway will send the target message to the target system-on-a-chip on the target vehicle.
[0018] Furthermore, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-a-chip are integrated into the vehicle domain controller of the target vehicle.
[0019] Furthermore, the method also includes:
[0020] The target electronic control unit periodically synchronizes its clock with each of the time-sensitive network control gateway and the target system-on-a-chip according to a preset synchronization time interval. The clock of the target electronic control unit is pre-configured as the master clock source, and each of the clocks of the time-sensitive network control gateway and the target system-on-a-chip is pre-configured as a slave clock source.
[0021] Furthermore, the target counter is a system counter for the autosar architecture.
[0022] Furthermore, the method also includes:
[0023] When the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task, the time-sensitive network control gateway instructs the expiration point in the AUTOSAR architecture to set the status of the target task to the end state, thereby triggering the termination of the target task execution. Here, the expiration point is a module used to set the attribute information of the task.
[0024] Secondly, this disclosure provides a data transmission control system, which includes a time-sensitive network control gateway. The system is configured to, in response to a target counter on a target vehicle reaching a count value indicating a target end time for a target task, close a gating gate in a gating list corresponding to the gating priority of the target task to stop transmitting task data of the target task through the time-sensitive network control gateway; and open a gating gate in a gating list corresponding to the gating priority of the next task to be executed to transmit task data of the next task to be executed through the time-sensitive network control gateway. The target end time is the end time of the process of executing the target task, the target end time is the target start time of the next task to be executed, and the target start time of the next task to be executed is the start time of the process of executing the next task to be executed. The count value of the target counter indicating the target end time of the target task is used as the count value of the target counter indicating the target start time of the next task to be executed.
[0025] Furthermore, the time-sensitive network control gateway responds to the target counter on the target vehicle reaching the count value indicating the target start time of the target task, and determines the count value indicating the target end time of the target task based on the count value of the target counter indicating the target start time of the target task and the preset execution duration of the target task.
[0026] Furthermore, the data transmission control system also includes a target electronic control unit on the target vehicle and a target system-on-a-chip on the target vehicle. The target task is for the target electronic control unit on the target vehicle to send data corresponding to the target system-on-a-chip on the target vehicle. During the execution of the target task, the time-sensitive network control gateway receives data corresponding to the target system-on-a-chip from the target electronic control unit and sends data corresponding to the target system-on-a-chip on the target vehicle to the target system-on-a-chip on the target vehicle.
[0027] Furthermore, the gating priority of the target task is the same as the quality of service priority of the target message; the time-sensitive network control gateway determines whether the quality of service priority in the target message received from the target system-on-a-chip is the gating priority of the target task, wherein the target message includes data corresponding to the target system-on-a-chip on the target vehicle; if so, the time-sensitive network control gateway sends the target message to the target system-on-a-chip on the target vehicle.
[0028] Furthermore, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-a-chip are integrated into the vehicle domain controller of the target vehicle.
[0029] Furthermore, the target electronic control unit periodically synchronizes its clock with each of the time-sensitive network control gateway and the target system-on-a-chip according to a preset synchronization time interval. The clock of the target electronic control unit is pre-configured as the master clock source, and each of the clocks of the time-sensitive network control gateway and the target system-on-a-chip is pre-configured as a slave clock source.
[0030] Furthermore, the target counter is a system counter for the autosar architecture.
[0031] Furthermore, when the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task, the time-sensitive network control gateway instructs the expiration point in the AUTSAR architecture to set the state of the target task to the end state, thereby triggering the termination of the target task execution. Here, the expiration point is a module used to set the attribute information of the task.
[0032] The beneficial effects of this invention are:
[0033] On the one hand, by utilizing a time-sensitive network control gateway that can achieve high real-time data transmission performance, the transmission of task data on the target vehicle is controlled, reducing the transmission latency and improving the transmission efficiency, thereby enhancing the reliability and performance of the entire vehicle system. On the other hand, by using counter values to control the opening and closing of gates in the gating list, the opening and closing of gates in the time-sensitive network control gateway's gating list can be controlled relatively accurately.
[0034] On the other hand, in the data transmission control method provided in this embodiment of the invention, the reason for using the count value of the target counter indicating the end time of the corresponding task and the count value indicating the start time of the corresponding task to control the opening and closing of the corresponding gate in the gate control list is because: in related technologies, the data transmission control method is to transmit the task data corresponding to the time window within a time window and use the timestamp of the time window to control the start and stop of the task data transmission. This control method leads to a decrease in the reliability of task data transmission on the vehicle. In related technologies, when controlling the start and stop of task data transmission through the timestamp of the time window, for each time window, the vehicle engineer sets the timestamp of each time window based on the time required, under normal circumstances, to transmit the preset amount of task data corresponding to the time window within the time window. When the time reaches the timestamp of a time window, an attempt is made to transmit the preset amount of task data corresponding to the next time window within the next time window.
[0035] However, the timestamp of the time window is set according to the duration required for transmitting the data volume corresponding to the task data within the time window under normal circumstances, as perceived by the vehicle engineers. In some unconventional situations, such as high load on the equipment used for transmitting task data within a time window, the actual duration required to transmit the data volume corresponding to the task data within the time window may be greater than the time interval between the timestamp of this time window and the timestamp of the previous time window. In such cases, the timestamp of the time window set by the vehicle engineers may be earlier than the time when the transmission of the task data should have stopped. In reality, the data corresponding to this time window can only be transmitted at a certain time after the timestamp of this time window. However, since the start and stop of task data transmission are controlled by the timestamp of the time window, when the timestamp of a time window is reached, the transmission of the data corresponding to that time window will stop prematurely. This causes the transmission of the task data corresponding to this time window to be stopped before it is actually completed, leading to abnormalities in the systems on the vehicle that rely on the transmission of the task data corresponding to this time window for their corresponding operations. The reliability of task data transmission on the vehicle is reduced.
[0036] In the data transmission control method provided in the embodiments of the present invention, a time-sensitive network control gateway is used to transmit task data. The count value of the target counter indicating the end time of the corresponding task and the count value indicating the start time of the corresponding task are used to control the opening and closing of the corresponding gate in the gate list. The opening or closing of the corresponding gate in the gate list will trigger the time-sensitive network to start or stop transmitting the task data of the corresponding task.
[0037] In other words, in the data transmission control method provided in this embodiment of the invention, the start and stop of task data transmission for a given task are controlled by using the count values of the target counter indicating the end time and the start time of the corresponding task. This method utilizes information unrelated to the timestamp of the time window—namely, the count values of the target counter indicating the end time and the start time of the corresponding task—to control the start and stop of task data transmission. Instead of using the timestamp of the time window to control the start and stop of task data transmission for that time window, this avoids the situation described in the related technologies where the timestamp of the time window is used to control the start and stop of task data transmission for that time window, leading to premature termination of task data transmission and system malfunctions on the vehicle that relies on the transmission of task data for that time window. Therefore, the data transmission control method provided in this embodiment of the invention improves the reliability of task data transmission on the vehicle. Attached Figure Description
[0038] Figure 1 is a flowchart illustrating the data transmission control method provided in an embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of an example of the start and end times of a task during the execution of a cyclical process corresponding to multiple tasks.
[0040] Figure 3 is a flowchart illustrating another data transmission control method provided in an embodiment of the present invention;
[0041] Figure 4 is a schematic diagram of an example architecture for data transmission control that can be applied to the embodiments of the present invention;
[0042] Figure 5 is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention. Embodiments of the present invention
[0043] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0044] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be changed at will, and the layout of the components may also be more complex.
[0045] Referring to Figure 1, a flowchart illustrating the data transmission control method provided in an embodiment of the present invention is shown. It should be noted that steps S101-S103 can be executed in parallel. Once the count value of the target counter on the target vehicle reaches the count value indicating the target task's end time, steps S101-S103 are triggered.
[0046] In step S101, in response to the target counter on the target vehicle reaching the count value indicating the target end time of the target task, the gating in the gating list corresponding to the gating priority of the target task is closed to stop the transmission of the target task's task data through the time-sensitive network control gateway on the target vehicle.
[0047] The target task can be any one of multiple tasks. Each task has a different gating priority. The gating priority of each task can be preset.
[0048] It should be noted that step S101 can be executed by the Time-Sensitive Network (TSN) control gateway on the target vehicle.
[0049] A Time-Sensitive Network (TSN) control gateway is a network device that supports protocols such as IEEE 802.1qbv and IEEE 802.1as. It can also provide gating and queue control functionality. Any two data transmitters on a target vehicle that transmit data through the TSN control gateway can receive and send data according to any one of the protocols, such as IEEE 802.1qbv or IEEE 802.1as. The TSN control gateway forwards data according to any one of these protocols. It supports gate control lists for each protocol in IEEE 802.1qbv and 802.1as. These gate control lists control the transmission of time-sensitive traffic, which has high real-time requirements. For data with high real-time requirements, the TSN control gateway determines a time window on the timeline indicating when the data can be transmitted; only within this time window can the data be transmitted.
[0050] It should be noted that for task i among multiple tasks, task i has an end time during the t-th execution of the task and a start time during the t-th execution of the task.
[0051] The process of executing the task for the tth time is as follows: the process of executing the task for any given task i.
[0052] The end time of task i during the t-th execution is: the end time of the t-th execution is the time when task i ends during the t-th execution.
[0053] The start time of task i during the t-th execution is: the start time of the t-th execution is the moment when task i begins to be executed during the t-th execution.
[0054] It should be noted that the target end time of task i does not specifically refer to the moment when task i ends execution. The target end time of task i can be the end time of the process of executing the task that meets preset conditions, including: the process of executing the task is the process of executing task i, and the process of executing the task is not the process of the last executed task.
[0055] It should be noted that, in this embodiment of the invention, for task i among multiple tasks, enabling the gate in the gate control list corresponding to the gate control priority of task i can mean: setting the gate in the gate control list corresponding to the gate control priority of task i to the enabled state. Deactivating the gate in the gate control list corresponding to the gate control priority of task i can mean: setting the state of the gate in the gate control list corresponding to the gate control priority of task i to the disabled state.
[0056] In one possible implementation, the state value of the gate corresponding to each gate priority indicates that the gate corresponding to the gate priority is in one of the following states: open or closed. For a gate priority, when the gate corresponding to that gate priority is in the open state, the state value of the gate corresponding to that gate priority is 1. When the gate corresponding to that gate priority is in the closed state, the state value of the gate corresponding to that gate priority is 0.
[0057] For task i among multiple tasks, when a gate in the gating list corresponding to the gating priority of task i is enabled, the status value of the gate in the gating list corresponding to the gating priority of task i is set to 1. When a gate in the gating list corresponding to the gating priority of task i is disabled, the status value of the gate in the gating list corresponding to the gating priority of task i is set to 0.
[0058] In this embodiment of the invention, the target task can be a data transmission task. During the execution of the target task, the components on the target vehicle used to perform the target task can periodically transmit the task data. The time-sensitive network control gateway receives the task data of the target task and transmits the task data of the target task to other components.
[0059] In this embodiment of the invention, the count value of the target counter on the target vehicle is updated periodically, for example by a system clock on the target vehicle used for time synchronization.
[0060] In step S102, the gating of the gating priority corresponding to the next task to be executed is enabled in the gating list, so as to transmit the task data of the next task to be executed through the time-sensitive network control gateway.
[0061] In one possible implementation, a module on the target vehicle that detects the count value of the target counter on the target vehicle can send an instruction to the time-sensitive network control gateway on the target vehicle indicating that the count value of the target counter on the target vehicle has reached the count value indicating the target end time of the target task. Thus, the time-sensitive network control gateway on the target vehicle can determine that the count value of the target counter on the target vehicle has reached the count value indicating the target end time of the target task.
[0062] It should be noted that the data transmission control method provided in this embodiment of the invention can be executed during the cyclic execution of multiple tasks. During the cyclic execution of multiple tasks, each of the multiple tasks can be executed periodically.
[0063] In this embodiment of the invention, the cyclic execution process corresponding to multiple tasks has execution order information corresponding to the multiple tasks.
[0064] The execution order information corresponding to multiple tasks can be preset. The cyclic execution process corresponding to multiple tasks includes: n processes that execute tasks among the multiple tasks.
[0065] This corresponds to the execution order information for multiple tasks: which task is executed during the m-th execution. Here, the m-th execution can be any one of the n executions.
[0066] In this embodiment of the invention, the start time and end time of the m-th task execution process can be determined before the cyclic execution process corresponding to multiple tasks begins. The start time and end time of the m-th task execution process can be determined based on the start time of the cyclic execution process corresponding to multiple tasks and the duration of each task execution process before the m-th execution.
[0067] In this embodiment of the invention, the cyclic execution process corresponding to multiple tasks may include: multiple sub-cyclic execution processes. Each sub-cyclic execution process includes: h processes that execute tasks from among the multiple tasks, where the multiple tasks are h tasks.
[0068] In a sub-loop execution process, each of the multiple tasks is executed sequentially according to the pre-set task execution order of the sub-loop execution process.
[0069] For a task i among multiple tasks, the position of task i in the task execution order of a sub-loop execution process corresponds to the priority of task i.
[0070] Here, task i can be any one of multiple tasks. The higher the priority of task i, the earlier it appears in the task execution order within this sub-loop. The lower the priority of task i, the later it appears in the task execution order within this sub-loop.
[0071] For a task i among multiple tasks, the position j of task i in the task execution order of a sub-loop execution process indicates that task i is the j-th task executed in the sub-loop execution process.
[0072] Once the task execution order of each sub-loop process is pre-set during the execution of multiple sub-loops, the execution order information corresponding to multiple tasks can be determined.
[0073] It should be noted that the target start time of the next task does not specifically refer to the moment when the next task begins. The target start time of the next task is determined based on the target end time of the target task.
[0074] The next task to be executed can refer to a task that is executed during the process of executing the next task.
[0075] The next execution of a task can refer to the next execution of a task whose end time is the target end time in step S101.
[0076] For task i among multiple tasks, if task i is the target task, and the target end time of task i is the end time of the k-th task execution process, then the next task to be executed is the task executed during the (k+1)-th task execution process, and the target start time of the next task is the start time of the (k+1)-th task execution process. Simultaneously, the target start time of the next task to be executed is the end time of the k-th task execution process. Here, the task executed during the k-th task execution process is task i.
[0077] In step S103, the count value of the target counter indicating the target end time of the target task is used as the count value of the target counter indicating the target start time of the next task to be executed.
[0078] Referring to Figure 2, it shows a schematic diagram of an example of the start and end times of a task in a cyclical execution process corresponding to multiple tasks.
[0079] In the cyclical execution of multiple tasks, the first task executed is Task A, the second task executed is Task B, the third task executed is Task C, the fourth task executed is Task A, the fifth task executed is Task B, and the sixth task executed is Task C.
[0080] In this example, during the cyclical execution of multiple tasks, the first execution of a task is the execution of Task A. The end time of the first execution of a task, i.e., the end time of Task A in the first execution of a task, is t1. The count value indicating the end time of the first execution of a task is counter1.
[0081] In this example, during the cyclical execution of multiple tasks, the second execution of a task is the execution of Task B. The start time of the second execution of a task, i.e., the start time of Task B in the second execution of a task, is t1, and the end time of the second execution of a task, i.e., the end time of Task B in the second execution of a task, is t2. The count value indicating the start time of the second execution of a task is counter1, and the count value indicating the end time of the second execution of a task is counter2.
[0082] In this example, during the cyclical execution of multiple tasks, the third execution of a task is the execution of Task C. The start time of the third execution of a task, i.e., the start time of Task C in the third execution of a task, is t2, and the end time of the third execution of a task, i.e., the end time of Task C in the third execution of a task, is t3. The count value indicating the start time of the third execution of a task is counter2, and the count value indicating the end time of the third execution of a task is counter3.
[0083] In this example, during the cyclical execution of multiple tasks, the fourth execution of a task is the execution of Task A. The start time of the fourth execution of a task, i.e., the start time of Task A in the fourth execution of a task, is t3, and the end time of the fourth execution of a task, i.e., the end time of Task A in the fourth execution of a task, is t4. The count value indicating the start time of the fourth execution of a task is counter3, and the count value indicating the end time of the fourth execution of a task is counter4.
[0084] In this example, during the cyclical execution of multiple tasks, the fifth execution of a task is the execution of Task B. The start time of the fifth execution of a task, i.e., the start time of Task B in the fifth execution of a task, is t4, and the end time of the fifth execution of a task, i.e., the end time of Task B in the fifth execution of a task, is t5. The count value indicating the start time of the fifth execution of a task is counter4, and the count value indicating the end time of the fifth execution of a task is counter5.
[0085] In this example, during the cyclical execution of multiple tasks, the process of executing task C for the 6th time is the process of executing Task C. The start time of the process of executing task C for the 6th time is t5, and the end time of the process of executing task C for the 6th time is t6. The count value indicating the start time of the process of executing task C for the 6th time is counter5, and the count value indicating the end time of the process of executing task C for the 6th time is counter6.
[0086] Referring to Figure 3, a flowchart of another data transmission control method provided in an embodiment of the present invention is shown.
[0087] In step S301, in response to the target counter on the target vehicle reaching the count value indicating the target end time of the target task, the gating in the gating list corresponding to the gating priority of the target task is closed to stop the transmission of the target task's task data through the time-sensitive network control gateway on the target vehicle, wherein the target task is the task of sending data corresponding to the target system-on-a-chip on the target vehicle to the target electronic control unit on the target vehicle.
[0088] During the execution of the target task, the time-sensitive network control gateway receives data corresponding to the target system-on-chip from the target electronic control unit (MCU) and sends data corresponding to the target system-on-chip on the target vehicle to the target system-on-chip (SoC) on the target vehicle.
[0089] In one possible implementation, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-a-chip are integrated into the vehicle domain controller of the target vehicle.
[0090] During the execution of the target mission, the target electronic control unit on the target vehicle can periodically send data corresponding to the target system-on-a-chip on the target vehicle.
[0091] The data corresponding to the target system-on-a-chip on the target vehicle may include at least one of the following: signals read by the target electronic control unit from the Controller Area Network (CAN) bus on the target vehicle; signals obtained by the target electronic control unit processing the signals read from the CAN bus; and signals obtained by the target electronic control unit processing other signals.
[0092] The target electronic control unit on the target vehicle encapsulates the data corresponding to the target system-on-a-chip on the target vehicle into a User Datagram Protocol (UDP) message, and sends the UDP message containing the data corresponding to the target system-on-a-chip on the target vehicle to the target system-on-a-chip on the target vehicle.
[0093] Referring to Figure 4, it shows a schematic diagram of an example architecture that can be applied to the control of data transmission provided in embodiments of the present invention.
[0094] The target MCU on the target vehicle can periodically transmit data corresponding to the target SoC on the target vehicle. The time-sensitive network control gateway can periodically receive data corresponding to the target SoC on the target vehicle, and then transmit this data back to the target SoC on the target vehicle. Similarly, the target SoC on the target vehicle can transmit data corresponding to the target MCU on the target vehicle, and the time-sensitive network control gateway can receive this data and then transmit it back to the target MCU on the target vehicle.
[0095] In one possible implementation, the time-sensitive network control gateway can respond to the target counter on the target vehicle reaching a count value indicating the target start time of the target task, and determine a count value indicating the target end time of the target task based on the count value of the target counter indicating the target start time of the target task and the preset execution duration of the target task. Here, the target start time of the target task is defined as the end time of the execution process at the target start time.
[0096] The preset execution time of the target task is: the duration of the process of executing the target task.
[0097] The time-sensitive network control gateway can respond to the target counter on the target vehicle reaching the count value indicating the target start time of the target task, add the count value indicating the target start time of the target task to the value indicating the preset execution duration of the target task, and obtain the count value indicating the target end time of the target task.
[0098] In one possible implementation, the gating priority of the target task is the same as the quality of service priority of the target message; and sending data corresponding to the target system-on-a-chip (SoC) on the target vehicle to the SoC on the target vehicle includes: the time-sensitive network control gateway determining whether the quality of service priority in the target message received from the SoC on the target is the gating priority of the target task; if the time-sensitive network control gateway determines that the quality of service priority in the target message received from the SoC on the target is the gating priority of the target task, the time-sensitive network control gateway sends the target message to the SoC on the target vehicle.
[0099] A time-sensitive network control gateway can send data corresponding to the target system-on-a-chip (SoC) on the target vehicle to the target SoC when the quality of service (QoS) priority of the message received from the target SoC is determined to be the gating priority of the target task. This ensures that during the transmission of data corresponding to the target SoC on the target vehicle, the data sent to the target SoC is data with the gating priority of the target task, avoiding situations where data sent to the target SoC does not meet the gating priority of the target task, and improving the accuracy of data transmission of task data on the target vehicle.
[0100] In one possible implementation, the target electronic control unit periodically synchronizes its clock with each of the time-sensitive network control gateway and the target system-on-a-chip according to a preset synchronization time interval, wherein the clock of the target electronic control unit is pre-configured as the master clock source, and each of the clocks of the time-sensitive network control gateway and the target system-on-a-chip is pre-configured as a slave clock source.
[0101] The Time-Sensitive Network (TSN) gateway connects to each of the target electronic control unit (ECU) and the target system-on-a-chip (SoC) in the target vehicle via an Ethernet interface. The TSN gateway, ECU, and SoC all support any one of the protocols, such as IEEE 802.1qbv and IEEE 802.1as. Time synchronization based on the corresponding protocol standard is achieved through these protocols. The ECU is configured as the master clock source, and the TSN gateway and SoC as slave clock sources, ensuring microsecond-level precision control over the transmission of task data in the target vehicle and improving the accuracy of data transmission.
[0102] In one possible implementation, the target counter is the system counter (OS Counter) of the autosar architecture. The system counter of the autosar architecture is a hardware-based OS Counter in the autosar architecture. The system counter of the autosar architecture has high counting accuracy, and the OS Counter in the autosar architecture is used for more accurate counting.
[0103] In one possible implementation, the method further includes: when the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task, the time-sensitive network control gateway instructs the expiration point in the AUTOSAR architecture to set the state of the target task to the end state to trigger the termination of the target task execution, wherein the expiration point is a module used to set the attribute information of the task.
[0104] In step S302, the gating of the gating priority corresponding to the next task to be executed is enabled in the gating list, so as to transmit the task data of the next task to be executed through the time-sensitive network control gateway.
[0105] In step S303, the count value of the target counter indicating the target end time of the target task is used as the count value of the target counter indicating the target start time of the next task to be executed.
[0106] The specific implementation methods of steps S302 and S303 can be referred to steps S102 and S103, and will not be repeated here.
[0107] This invention also provides a data transmission control system for implementing the above-described method embodiments and preferred embodiments, which will not be repeated hereafter. As used below, the term "unit" can refer to a combination of software and / or hardware that performs a predetermined function. Although the systems described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated. The systems in the embodiments of this invention are presented in the form of functional units, where a functional unit refers to an ASIC (Application Specific Integrated Circuit), a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-described functions.
[0108] The data transmission control system includes a time-sensitive network control gateway. The system is configured to, in response to a target counter on a target vehicle reaching a count value indicating the target end time of a target task, close a gating gate in a gating list corresponding to the gating priority of the target task to stop transmitting task data of the target task through the time-sensitive network control gateway; and open a gating gate in a gating list corresponding to the gating priority of the next task to be executed to transmit task data of the next task to be executed through the time-sensitive network control gateway. The target end time is the end time of the execution of the target task, the target end time is the target start time of the next task to be executed, and the target start time of the next task to be executed is the start time of the execution of the next task to be executed. The count value of the target counter indicating the target end time of the target task is used as the count value of the target counter indicating the target start time of the next task to be executed.
[0109] In one possible implementation, the time-sensitive network control gateway responds to the target counter on the target vehicle reaching a count value indicating the target start time of the target task, and determines the count value indicating the target end time of the target task based on the count value of the target counter indicating the target start time of the target task and the preset execution duration of the target task.
[0110] In one possible implementation, the data transmission control system further includes a target electronic control unit on the target vehicle and a target system-on-a-chip (SoC) on the target vehicle. The target task is for the target electronic control unit on the target vehicle to send data corresponding to the SoC on the target vehicle. During the execution of the target task, the time-sensitive network control gateway receives data corresponding to the SoC from the target electronic control unit and sends data corresponding to the SoC on the target vehicle to the SoC on the target vehicle.
[0111] In one possible implementation, the gating priority of the target task is the same as the quality of service (QoS) priority of the target message; the time-sensitive network control gateway determines whether the QoS priority of the target message received from the target system-on-a-chip (SoC) is the gating priority of the target task, wherein the target message includes data corresponding to the SoC on the target vehicle; if the time-sensitive network control gateway determines that the QoS priority of the target message received from the SoC is the gating priority of the target task, the time-sensitive network control gateway sends the target message to the SoC on the target vehicle.
[0112] In one possible implementation, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-a-chip are integrated into the vehicle domain controller of the target vehicle.
[0113] In one possible implementation, the target electronic control unit periodically synchronizes its clock with each of the time-sensitive network control gateway and the target system-on-a-chip according to a preset synchronization time interval, wherein the clock of the target electronic control unit is pre-configured as the master clock source, and each of the clocks of the time-sensitive network control gateway and the target system-on-a-chip is pre-configured as a slave clock source.
[0114] In one possible implementation, the target counter is a system counter of the autosar architecture.
[0115] In one possible implementation, when the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task, the time-sensitive network control gateway instructs the expiration point in the AUTOSAR architecture to set the state of the target task to the end state, thereby triggering the termination of the target task execution. Here, the expiration point is a module used to set the attribute information of the task.
[0116] Referring to Figure 5, Figure 5 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. The computer device includes one or more processors 10, a memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processor 10 can process instructions executed within the computer device, including instructions stored in or on the memory 20 to display graphical information of a graphical user interface (GUI) on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, multiple processors and / or multiple buses can be used with multiple memories, if desired. Similarly, multiple devices can be connected, each providing some necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). The processor 10 can be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device described above can be a complex programmable logic device, a field-programmable gate array (FPGA), a general-purpose array logic (GPRS), or any combination thereof. The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the methods shown in the above embodiments. The memory 20 may include a stored program area and a stored data area, wherein the stored program area may store the operating system and an application program required for at least one function; the stored data area may store data created based on vehicle usage, etc. Furthermore, the memory 20 may include high-speed random access memory (RAM) and may also include non-transient memory, such as at least one disk storage device, flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks (LANs), mobile communication networks, and combinations thereof. The memory 20 may include volatile memory, such as random access memory (RAM). The memory may also include non-volatile memory, such as flash memory, hard disks, or solid-state drives (SSDs). The memory 20 may also include combinations of the above types of memory. The computer device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. The input device 30 can receive input digital or character information and generate key signal inputs related to user settings and function control of the computer device.Input device 30 includes, for example, a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display device, auxiliary lighting device (e.g., light-emitting diode (LED)) and haptic feedback device (e.g., vibration motor), etc. The aforementioned display device includes, but is not limited to, liquid crystal display, light-emitting diode, display, and plasma display. In some alternative embodiments, the display device may be a touchscreen.
[0117] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0118] A portion of the embodiments of this invention can be applied as a computer program product, such as computer program instructions. When executed by a computer, these instructions, through the operation of the computer, can invoke or provide the methods and / or technical solutions according to the invention. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, and installation package files. Accordingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions; the computer compiling the instructions and then executing the corresponding compiled program; the computer reading and executing the instructions; or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0119] The above embodiments are merely preferred embodiments provided to fully illustrate the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are all within the scope of protection of the present invention.
Claims
1. A control method of data transmission, characterized by, The method comprises: in response to a count value of a target counter on the target vehicle reaching a count value indicating a target end time of a target task, closing a gate corresponding to a gate priority of the target task in a gate list to stop transmission of task data of the target task by a time-sensitive network control gateway on the target vehicle; opening a gate corresponding to a gate priority of a next-executed task in the gate list to transmit task data of the next-executed task by the time-sensitive network control gateway, wherein the target end time is an end time of a process of executing the target task, the target end time is a target start time of the next-executed task, and the target start time of the next-executed task is a start time of a process of executing the next-executed task; setting the count value of the target counter indicating the target end time of the target task as a count value of the target counter indicating the target start time of the next-executed task.
2. The method of claim 1, wherein, The method further comprises: in response to a count value of a target counter on the target vehicle reaching a count value indicating a target start time of a target task, determining, by the time-sensitive network control gateway, a count value indicating a target end time of the target task according to the count value of the target counter on the target vehicle indicating the target start time of the target task and a preset execution duration of the target task.
3. The method of claim 1, wherein, The target task is a task of sending, by a target electronic control unit on the target vehicle, data corresponding to a target system-level chip on the target vehicle; and the method further comprises: during execution of the target task, receiving, by the time-sensitive network control gateway, the data corresponding to the target system-level chip from the target electronic control unit and sending the data corresponding to the target system-level chip to the target system-level chip.
4. The method of claim 3, wherein, The gate priority of the target task is the same as a quality of service priority of a target packet; and sending the data corresponding to the target system-level chip to the target system-level chip comprises: determining, by the time-sensitive network control gateway, whether a quality of service priority in a target packet received from the target system-level chip is the gate priority of the target task, wherein the target packet comprises the data corresponding to the target system-level chip; if so, sending, by the time-sensitive network control gateway, the target packet to the target system-level chip.
5. The method of claim 3, wherein, The time-sensitive network control gateway, the target electronic control unit, and the target system-level chip are integrated in a vehicle domain controller of the target vehicle.
6. The method of claim 3, wherein, The method further comprises: periodically synchronizing, by the target electronic control unit, a clock of each of the time-sensitive network control gateway and the target system-level chip according to a preset synchronization time interval, wherein the clock of the target electronic control unit is pre-configured as a master clock source, and each of a clock of the time-sensitive network control gateway and a clock of the target system-level chip is pre-configured as a slave clock source.
7. The method according to any one of claims 1 to 6, characterized in that, The target counter is a system counter of an autosar architecture.
8. The method of claim 7, wherein, The method further comprises: When the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task, the time-sensitive network control gateway instructs the expiration point in the AUTOSAR architecture to set the status of the target task to the end state, thereby triggering the termination of the target task execution. Here, the expiration point is a module used to set the attribute information of the task.
9. A control system for data transmission, characterized in that The system includes a time-sensitive network control gateway, configured to, in response to a target counter on a target vehicle reaching a count value indicating the target end time of a target task, close a gating gate in a gating list corresponding to the gating priority of the target task to stop transmitting task data of the target task through the time-sensitive network control gateway on the target vehicle; and open a gating gate in a gating list corresponding to the gating priority of the next task to be executed to transmit task data of the next task to be executed through the time-sensitive network control gateway, wherein the target end time is the end time of the process of executing the target task, the target end time is the target start time of the next task to be executed, and the target start time of the next task to be executed is the start time of the process of executing the next task; and use the count value of the target counter indicating the target end time of the target task as the count value of the target counter indicating the target start time of the next task to be executed.
10. A computer device installed on a vehicle, characterized by, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 8.
11. A computer readable storage medium characterized by, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 8.
12. A computer program product, characterised in that, Includes computer instructions for causing a computer to perform the method of any one of claims 1 to 8.