Data transmission control method and system, computer equipment and storage medium

By using a time-sensitive network to control the gateway and target counter on the vehicle, and controlling task data transmission in response to the count value of the target counter, the problem of delay and low efficiency of vehicle task data transmission is solved, and efficient and real-time data transmission is achieved.

CN119911219AActive Publication Date: 2025-05-02CHONGQING CHANGAN AUTOMOBILE CO LTD

Patent Information

Application Number
CN202510085153.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-05-02
Estimated Expiration
2045-01-20

AI Technical Summary

Technical Problem

In the prior art, the task data transmission delay on the vehicle is relatively long and the transmission efficiency is low. How to improve the transmission efficiency has become a problem that needs to be solved.

Method used

By using a time-sensitive network to control the gateway and target counter on the target vehicle, gate opening and closing in the gated list is controlled in response to the count value of the target counter, ensuring that task data is stopped at the end of the target and starts at the start of the next task.

Benefits of technology

It realizes high real-time data transmission, reduces the delay of task data transmission, improves transmission efficiency, and improves the reliability and performance of the vehicle system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119911219A_ABST
    Figure CN119911219A_ABST
Patent Text Reader

Abstract

The invention relates to a data transmission control method and device, computer equipment and a storage medium. The method comprises the following steps: in response to the fact that a count value of a target counter on a target vehicle reaches a count value indicating a target end moment of a target task, closing a door control corresponding to a door control priority of the target task in a door control list; the target ending moment is the ending moment of the process of executing the target task, the target ending moment is the target starting moment of the task executed next time, the target starting moment is the target starting moment of the task executed next time, and the target starting moment is the target starting moment of the task executed next time. The target starting moment of the next executed task is the starting moment of the process of executing the next executed task; and taking the count value of the target counter, which indicates the target end moment of the target task, as the count value of the target counter, which indicates the target start moment of the next executed task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a data transmission control method, system, computer equipment and storage medium. Background Art

[0002] The execution of tasks by vehicles depends on task data. The transmission of task data on the vehicle needs to be controlled. In the related art, the control of the transmission of task data on the vehicle is achieved by performing some control operations on the transmission party involved in the transmission of task data, resulting in a long delay in the transmission of task data on the vehicle and a low transmission efficiency of the transmission of task data on the vehicle. How to improve the transmission efficiency of the transmission of task data on the vehicle has become a problem that needs to be solved. Summary of the invention

[0003] One of the purposes of the present invention is to provide a data transmission control method, system, computer device and storage medium to solve the problem of how to improve the transmission efficiency of task data on a vehicle.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0005] A method for controlling data transmission, comprising:

[0006] In response to a count value of a target counter on the target vehicle reaching a count value indicating a target end time of the target task, closing a gate corresponding to a gating priority of the target task in the gating list to stop transmitting task data of the target task through the time-sensitive network control gateway;

[0007] Open the gating of the gating priority of the task to be executed next in the gating list, so as to transmit the task data of the task to be executed next 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 task to be executed next, and the target start time of the task to be executed next is the start time of the process of executing the task to be executed next;

[0008] 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 task to be executed next.

[0009] According to the above technical means, on the one hand, a time-sensitive network control gateway with high real-time data transmission can be used to control the transmission of task data on the target vehicle, reduce the transmission delay of task data on the target vehicle, and improve the transmission efficiency of task data on the target vehicle. Improve the reliability and performance of the entire vehicle system of the target vehicle. Use the numerical value of the counter to control the opening and closing of the gate in the gate list, and more accurately control the opening and closing of the gate in the gate list of the time-sensitive network control gateway.

[0010] On the other hand, in the control method of data transmission provided by the embodiment of the present invention, the reason why the count value indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task of the target counter are used to control the opening and closing of the corresponding gate in the gate list is because: in the related art, the control method of data transmission is to transmit the task data corresponding to the time window in the time window, and the start and stop of the transmission of the task data are controlled by the timestamp of the time window, which will lead to the reduction of the reliability of the transmission of the task data on the vehicle. When the start and stop of the transmission of the task data are controlled by the timestamp of the time window in the related art, for each time window, the timestamp of each time window is set by the engineer of the vehicle according to the time length required for transmitting the task data of the preset data amount corresponding to the time window in the time window under normal circumstances considered by the engineer of the vehicle. When the time reaches the timestamp of a time window, the task data of the preset data amount corresponding to the next time window is attempted to be transmitted in the next time window.

[0011] However, the timestamp of the time window is set according to the time required for transmitting the data volume of the task data corresponding to the time window under normal circumstances as considered by the vehicle engineer. In some unconventional situations, such as when the load of the equipment used to transmit the task data in a time window is high, the actual time required for transmitting the data volume of the task data corresponding to the time window is greater than the time between the timestamp of this time window and the timestamp of the previous time window, and the timestamp of this time window set by the vehicle engineer is earlier than the moment when the transmission of the task data of this task should be stopped. In fact, the data corresponding to this time window can only be transmitted at a certain moment after the timestamp of this time window. However, since the start and stop of the transmission of the task data are controlled by the timestamp of the time window, when the time reaches the timestamp of a time window, the transmission of the data corresponding to this time window will be stopped, resulting in the transmission of the task data corresponding to this time window being stopped in advance before the transmission of the task data corresponding to this time window is actually completed, that is, the transmission of the task data corresponding to this time window is stopped in advance, and the system on the vehicle that relies on the transmission of the task data corresponding to this time window for corresponding operations is abnormal. The reliability of the transmission of the task data on the vehicle is reduced.

[0012] In the data transmission control method provided in an embodiment of the present invention, a time-sensitive network is used to control the gateway to transmit task data, and the count value of the target counter indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task are used to control the opening and closing of the corresponding gate in the gating list. The opening or closing of the corresponding gate in the gating list will trigger the time-sensitive network to start or stop transmitting the task data of the corresponding task.

[0013] That is to say, in the data transmission control method provided by the embodiment of the present invention, the count value of the target counter indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task are used to control the start and stop of the transmission of the task data of the corresponding task. In the data transmission control method provided by the embodiment of the present invention, the information unrelated to the timestamp of the time window, that is, the count value of the target counter indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task are used to control the start and stop of the transmission of the task data corresponding to the time window, without using the timestamp of the time window to control the start and stop of the transmission of the task data corresponding to the time window, which can avoid the above-mentioned related technology using the timestamp of the time window to control the start and stop of the transmission of the task data corresponding to the time window, resulting in the transmission of the task data corresponding to the time window being stopped in advance, and the system on the vehicle that relies on the transmission of the task data corresponding to the time window to perform the corresponding operation is abnormal. Through the data transmission control method provided by the embodiment of the present invention, the reliability of the transmission of the task data on the vehicle is improved.

[0014] Further, the method also includes: the time-sensitive network control gateway responds to the count value of 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.

[0015] Furthermore, the target task is a task for a target electronic control unit on a target vehicle to send data corresponding to a target system-level chip 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-level chip from the target electronic control unit, and sends the data corresponding to the target system-level chip on the target vehicle to the target system-level chip on the target vehicle.

[0016] Further, the gating priority of the target task is the same as the service quality priority of the target task; and sending data corresponding to the target system-level chip on the target vehicle to the target system-level chip on the target vehicle includes:

[0017] The time-sensitive network control gateway determines whether the quality of service priority in a target message received from a target system-level chip is a gating priority of a target task, wherein the target message includes: data corresponding to a target system-level chip on a target vehicle;

[0018] If so, the time-sensitive network control gateway sends the target message to the target system-level chip on the target vehicle.

[0019] Furthermore, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-chip are integrated in a vehicle domain controller of the target vehicle.

[0020] Furthermore, the method further comprises:

[0021] The target electronic control unit periodically synchronizes its clock with the time-sensitive network control gateway and each of the target system-level chips 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 the clock of the time-sensitive network control gateway and the clock of the target system-level chip are each pre-configured as a slave clock source.

[0022] Furthermore, the target counter is a system counter of the AUTOSAR architecture.

[0023] Furthermore, the method further comprises:

[0024] 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 end of execution of the target task, wherein the expiration point is a module for setting attribute information of the task.

[0025] A control system for data transmission, the control system for data transmission includes: a time-sensitive network control gateway, the system is configured to close the gating corresponding to the gating priority of the target task in the gating list in response to the count value of the target counter on the target vehicle reaching the count value indicating the target end time of the target task, so as to stop transmitting the task data of the target task through the time-sensitive network control gateway; open the gating corresponding to the gating priority of the task to be executed next time in the gating list, so as to transmit the task data of the task to be executed next time 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 task to be executed next time, and the target start time of the task to be executed next time is the start time of the process of executing the task to be executed next time; 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 task to be executed next time.

[0026] Further, the time-sensitive network control gateway responds to the count value of 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.

[0027] Furthermore, the control system for data transmission also includes: a target electronic control unit on the target vehicle, a target system-level chip on the target vehicle, and the target task is a task in which the target electronic control unit on the target vehicle sends data corresponding to the target system-level 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-level chip from the target electronic control unit, and sends data corresponding to the target system-level chip on the target vehicle to the target system-level chip on the target vehicle.

[0028] Furthermore, the gating priority of the target task is the same as the service quality priority of the target task; the time-sensitive network control gateway determines whether the service quality priority in the target message received from the target system-level chip is the gating priority of the target task, wherein the target message includes: data corresponding to the target system-level chip on the target vehicle; if so, the time-sensitive network control gateway sends the target message to the target system-level chip on the target vehicle.

[0029] Furthermore, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-chip are integrated in a vehicle domain controller of the target vehicle.

[0030] Furthermore, the target electronic control unit periodically synchronizes its clock with the time-sensitive network control gateway and each of the target system-level chips 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 the clock of the time-sensitive network control gateway and the clock of the target system-level chip are each pre-configured as a slave clock source.

[0031] Furthermore, the target counter is a system counter of the AUTOSAR architecture.

[0032] Further, 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 end of execution of the target task, wherein the expiration point is a module for setting attribute information of the task.

[0033] Beneficial effects of the present invention:

[0034] On the one hand, the time-sensitive network control gateway with high real-time data transmission can be used to control the transmission of task data on the target vehicle, reduce the transmission delay of task data on the target vehicle, and improve the transmission efficiency of task data on the target vehicle. Improve the reliability and performance of the entire vehicle system of the target vehicle. Use the value of the counter to control the opening and closing of the gate in the gate list, and more accurately control the opening and closing of the gate in the gate list of the time-sensitive network control gateway.

[0035] On the other hand, in the control method of data transmission provided by the embodiment of the present invention, the reason why the count value indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task of the target counter are used to control the opening and closing of the corresponding gate in the gate list is because: in the related art, the control method of data transmission is to transmit the task data corresponding to the time window in the time window, and the start and stop of the transmission of the task data are controlled by the timestamp of the time window, which will lead to the reduction of the reliability of the transmission of the task data on the vehicle. When the start and stop of the transmission of the task data are controlled by the timestamp of the time window in the related art, for each time window, the timestamp of each time window is set by the engineer of the vehicle according to the time length required for transmitting the task data of the preset data amount corresponding to the time window in the time window under normal circumstances considered by the engineer of the vehicle. When the time reaches the timestamp of a time window, the task data of the preset data amount corresponding to the next time window is attempted to be transmitted in the next time window.

[0036] However, the timestamp of the time window is set according to the time required for transmitting the data volume of the task data corresponding to the time window under normal circumstances as considered by the vehicle engineer. In some unconventional situations, such as when the load of the equipment used to transmit the task data in a time window is high, the actual time required for transmitting the data volume of the task data corresponding to the time window is greater than the time between the timestamp of this time window and the timestamp of the previous time window, and the timestamp of this time window set by the vehicle engineer is earlier than the moment when the transmission of the task data of this task should be stopped. In fact, the data corresponding to this time window can only be transmitted at a certain moment after the timestamp of this time window. However, since the start and stop of the transmission of the task data are controlled by the timestamp of the time window, when the time reaches the timestamp of a time window, the transmission of the data corresponding to this time window will be stopped, resulting in the transmission of the task data corresponding to this time window being stopped in advance before the transmission of the task data corresponding to this time window is actually completed, that is, the transmission of the task data corresponding to this time window is stopped in advance, and the system on the vehicle that relies on the transmission of the task data corresponding to this time window for corresponding operations is abnormal. The reliability of the transmission of the task data on the vehicle is reduced.

[0037] In the data transmission control method provided in an embodiment of the present invention, a time-sensitive network is used to control the gateway to transmit task data, and the count value of the target counter indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task are used to control the opening and closing of the corresponding gate in the gating list. The opening or closing of the corresponding gate in the gating list will trigger the time-sensitive network to start or stop transmitting the task data of the corresponding task.

[0038] That is, in the data transmission control method provided in the embodiment of the present invention, the count value of the target counter indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task are used to control the start and stop of the transmission of the task data of the corresponding task.

[0039] In the data transmission control method provided by the embodiment of the present invention, the start and stop of the transmission task data are controlled by using information unrelated to the timestamp of the time window, i.e., the count value of the target counter indicating the corresponding end time of the corresponding task and the count value indicating the corresponding start time of the corresponding task, without using the timestamp of the time window to control the start and stop of the transmission of the task data corresponding to the time window. This can avoid the situation in the above-mentioned related art where the timestamp of the time window is used to control the start and stop of the transmission of the task data corresponding to the time window, resulting in the transmission of the task data corresponding to the time window being stopped in advance and the system on the vehicle that relies on the transmission of the task data corresponding to the time window to perform corresponding operations being abnormal. The data transmission control method provided by the embodiment of the present invention improves the reliability of the transmission of the task data on the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a flow chart of a method for controlling data transmission provided by an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of an example of a start time and an end time of a task executed in a cyclic execution process corresponding to a plurality of tasks during the execution of the task;

[0042] Figure 3 A schematic flow chart of another data transmission control method provided by an embodiment of the present invention;

[0043] Figure 4 A schematic diagram of an example architecture of control of data transmission that can be applied to an embodiment of the present invention;

[0044] Figure 5 A schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will describe the embodiments of the present invention 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 contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways 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, not for limiting the scope of protection of the present invention.

[0046] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0047] refer to Figure 1 , which shows a flow chart of a control method for data transmission provided by an embodiment of the present invention. It should be noted that steps S101 to 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 end time of the target task, the execution of steps S101 to S103 is triggered.

[0048] In step S101, in response to the count value of the target counter on the target vehicle reaching the count value indicating the target end time of the target task, the gate corresponding to the gating priority of the target task in the gating list is closed to stop transmitting the task data of the target task through the time-sensitive network control gateway on the target vehicle.

[0049] The target task can be any one of the multiple tasks. Each of the multiple tasks has a different gating priority. The gating priority of each of the multiple tasks can be preset.

[0050] It should be noted that step S101 may be executed by a time-sensitive network (TSN) control gateway on the target vehicle.

[0051] The time-sensitive network control gateway is a network device. The time-sensitive network control gateway supports protocols such as IEEE 802.1qbv and IEEE 802.1as. The time-sensitive network control gateway can have a gated queue control function. Any two data transmission parties on the target vehicle that transmit data through the time-sensitive network can receive data, send data, etc. according to any one of the protocols such as IEEE 802.1qbv and IEEE802.1as. The time-sensitive network forwards data according to any one of the protocols such as IEEE 802.1qbv and IEEE 802.1as. The time-sensitive network control gateway supports the gate control list (Gate Control List) of each protocol in the protocols such as 802.1qbv and 802.1as. The gate control list is used to control the transmission of data with high real-time requirements, that is, time-sensitive traffic. For the corresponding data with high real-time requirements, the time-sensitive network control gateway determines a time window on the time axis indicating when the corresponding data with high real-time requirements can be transmitted, and the corresponding data with high real-time requirements can be transmitted within this time window.

[0052] It should be noted that, for task i among the 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.

[0053] The process of executing the task for the tth time is: the process of executing the task when any task executed at one time is task i.

[0054] The end time of task i during the t-th task execution is: the end time of the t-th task execution is the time when task i is finished during the t-th task execution.

[0055] The starting time of task i in the process of executing the task for the tth time is: the starting time of the process of executing the task for the tth time is the time when task i starts to be executed in the process of executing the task for the tth time.

[0056] It should be noted that the target end time of task i does not specifically refer to the time when task i is finished executing. The target end time of task i can be the end time of the process of executing the task that meets the preset conditions. The preset conditions include: the process of executing the task is the end time of the execution of the task.

[0057] The process of task i and the process of executing the task are not the process of the task executed last time.

[0058] It should be noted that, in the embodiment of the present invention, for task i among multiple tasks, opening the gate corresponding to the gate priority of task i in the gate list may refer to: setting the gate corresponding to the gate priority of task i in the gate list to an open state. Closing the gate corresponding to the gate priority of task i in the gate list may refer to: setting the state of the gate corresponding to the gate priority of task i in the gate list to a closed state.

[0059] In a possible implementation, the state value of the gate corresponding to each gating priority indicates that the gate corresponding to the gating priority is in one of the following: an open state and a closed state. For a gating priority, when the gate corresponding to the gating priority is in an open state, the state value of the gate corresponding to the gating priority is 1. When the gate corresponding to the gating priority is in a closed state, the state value of the gate corresponding to the gating priority is 0.

[0060] For task i among multiple tasks, when the gate corresponding to the gating priority of task i in the gating list is turned on, the state value of the gate corresponding to the gating priority of task i in the gating list is set to 1. When the gate corresponding to the gating priority of task i in the gating list is turned off, the state value of the gate corresponding to the gating priority of task i in the gating list is set to 0.

[0061] In the embodiment of the present invention, the target task may be: a data transmission task. During the execution of the target task, the component on the target vehicle for executing the target task may periodically transmit the task data of the target task. 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.

[0062] In the embodiment of the present invention, the count value of the target counter on the target vehicle is updated periodically. 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.

[0063] In step S102, the gating of the gating priority of the task to be executed next in the gating list is turned on to transmit the task data of the task to be executed next through the time-sensitive network control gateway.

[0064] In one possible implementation, when a module on the target vehicle for detecting the count value of the target counter on the target vehicle detects that the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task, an instruction indicating that the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task may be sent to the time-sensitive network on the target vehicle. Thus, the time-sensitive network on the target vehicle may determine that the count value of the target counter on the target vehicle reaches the count value indicating the target end time of the target task.

[0065] It should be noted that the data transmission control method provided by the embodiment of the present invention can be executed in a cyclic execution process corresponding to multiple tasks. In the cyclic execution process corresponding to multiple tasks, each of the multiple tasks can be executed periodically.

[0066] In the embodiment of the present invention, the cyclic execution process corresponding to the multiple tasks has execution order information corresponding to the multiple tasks.

[0067] The execution order information corresponding to the multiple tasks can be preset. The cyclic execution process corresponding to the multiple tasks includes: n processes of executing tasks in the multiple tasks.

[0068] The execution order information corresponding to the plurality of tasks indicates: which task is executed during the mth execution of the task, wherein the mth time is any one of the n times.

[0069] In an embodiment of the present invention, before starting the cyclic execution process corresponding to multiple tasks, the start time of the m-th execution process of the task and the end time of the m-th execution process of the task can be determined. The start time of the task to be executed this time and the end time of the m-th execution process of the task 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.

[0070] In the embodiment of the present invention, the cyclic execution process corresponding to the multiple tasks may include: multiple sub-cyclic execution processes. The sub-cyclic execution process includes: h processes for executing tasks in the multiple tasks, wherein the multiple tasks are h tasks.

[0071] For a sub-cycle execution process, during the sub-cycle execution process, each of the multiple tasks is executed in sequence according to a preset task execution order of the sub-cycle execution process.

[0072] For task i among multiple tasks, the position of task i in the task execution order of a sub-cycle execution process corresponds to the priority of task i.

[0073] Among them, task i can be any one of the multiple tasks. The higher the priority of task i, the earlier the position of task i in the task execution order of the sub-cycle execution process. The lower the priority of task i, the later the position of task i in the task execution order of the sub-cycle execution process.

[0074] For task i among multiple tasks, the position j of task i in the task execution order of a sub-cycle execution process indicates that task i is the jth task executed in the sub-cycle execution process.

[0075] Once the task execution order of each sub-cycle execution process in the plurality of sub-cycle execution processes is preset, the execution order information corresponding to the plurality of tasks can be determined.

[0076] It should be noted that the target start time of the next task to be executed does not specifically refer to the time when the next task to be executed starts from a certain time. The target start time of the next task to be executed is determined according to the target end time of the target task.

[0077] The task to be executed next time may refer to: a task to be executed in the process of executing the next task.

[0078] The next task execution process may refer to: the next task execution process of the task execution process having an end time equal to the target end time in step S101.

[0079] For task i among multiple tasks, if task i is the target task, the target end time of task i is: the end time of the process of executing the task for the kth time, then the task to be executed next is: the task executed during the process of executing the task for the k+1th time, and the target start time of the task to be executed next is: the start time of the process of executing the task for the k+1th time. At the same time, the target start time of the task to be executed next is: the end time of the process of executing the task for the kth time. Among them, the task executed during the process of executing the task for the kth time is task i.

[0080] 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 task to be executed next.

[0081] refer to Figure 2 , which shows a schematic diagram of an example of the start time and the end time of a task executed in a cyclic execution process of multiple tasks during the execution of the task.

[0082] In the cyclic execution process corresponding to multiple tasks, the first task executed is TaskA, the second task executed is TaskB, the third task executed is Task C, the fourth task executed is TaskA, the fifth task executed is TaskB, and the sixth task executed is TaskC.

[0083] In this example, in the cyclic execution process corresponding to multiple tasks, the first task execution process is the process of executing TaskA, and the end time of the first task execution process, that is, the end time of TaskA in the first task execution process, is: t1, and the count value indicating the end time of the first task execution process is counter1.

[0084] In this example, in the cyclic execution process corresponding to multiple tasks, the second task execution process is the process of executing TaskB, the start time of the second task execution process, that is, the start time of TaskB in the second task execution process is: t1, the end time of the second task execution process, that is, the end time of TaskB in the second task execution process is: t2, the count value indicating the start time of the second task execution process is counter1, and the count value indicating the end time of the second task execution process is counter2.

[0085] In this example, in the cyclic execution process corresponding to multiple tasks, the process of executing the task for the third time is the process of executing TaskC, the starting time of the process of executing the task for the third time, that is, the starting time of TaskC in the process of executing the task for the third time is: t2, the ending time of the process of executing the task for the third time, that is, the ending time of TaskC in the process of executing the task for the third time is t3, the count value indicating the starting time of the process of executing the task for the third time is counter3, and the count value indicating the ending time of the process of executing the task for the third time is counter4.

[0086] In this example, in the cyclic execution process corresponding to multiple tasks, the process of executing the task for the fourth time is the process of executing TaskA, the start time of the process of executing the task for the fourth time, that is, the start time of TaskA in the process of executing the task for the fourth time is: t3, the end time of the process of executing the task for the fourth time, that is, the end time of TaskA in the process of executing the task for the fourth time is: t4, the count value indicating the start time of the process of executing the task for the fourth time is counter4, and the count value indicating the end time of the process of executing the task for the fourth time is counter5.

[0087] In this example, in the cyclic execution process corresponding to multiple tasks, the process of executing the task for the 5th time is the process of executing TaskB, the start time of the process of executing the task for the 5th time, that is, the start time of TaskB in the process of executing the task for the 5th time is: t4, the end time of the process of executing the task for the 5th time, that is, the end time of TaskB in the process of executing the task for the 5th time is: t5, the count value indicating the start time of the process of executing the task for the 5th time is counter5, and the count value indicating the end time of the process of executing the task for the 5th time is counter6.

[0088] In this example, in the cyclic execution process corresponding to multiple tasks, the process of executing the task for the 6th time is the process of executing TaskC, the starting time of the process of executing the task for the 6th time, that is, the starting time of TaskC in the process of executing the task for the 6th time is: t5, the ending time of the process of executing the task for the 6th time, that is, the ending time of TaskC in the process of executing the task for the 6th time is t6, the count value indicating the starting time of the process of executing the task for the 6th time is counter6, and the count value indicating the ending time of the process of executing the task for the 6th time is counter7.

[0089] refer to Figure 3 , which shows a flow chart of another data transmission control method provided by an embodiment of the present invention.

[0090] In step S301, in response to the count value of the target counter on the target vehicle reaching the count value indicating the target end time of the target task, the gate corresponding to the gating priority of the target task in the gating list is closed to stop transmitting the task data of the target task through the time-sensitive network control gateway on the target vehicle, wherein the target task is a task in which the target electronic control unit on the target vehicle sends data corresponding to the target system-level chip on the target vehicle.

[0091] Among them, during the execution of the target task, the time-sensitive network control gateway receives data corresponding to the target system-level chip from the target electronic control unit (Microcontroller Unit, referred to as MCU), and sends data corresponding to the target system-level chip on the target vehicle to the target system-on-Chip (System-on-Chip, referred to as SoC) on the target vehicle.

[0092] In a possible implementation, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-chip are integrated in a vehicle domain controller of the target vehicle.

[0093] During the execution of the target mission, the target electronic control unit on the target vehicle may periodically send data corresponding to the target system-on-chip on the target vehicle.

[0094] The data corresponding to the target system-level chip on the target vehicle may include at least one of the following items: a signal read by the target electronic control unit from a controller area network (CAN) bus on the target vehicle, a signal obtained by the target electronic control unit by processing a signal read from the controller area network bus, and a signal obtained by the target electronic control unit by processing other signals.

[0095] The target electronic control unit on the target vehicle encapsulates the data corresponding to the target system-level chip on the target vehicle into a User Datagram Protocol (UDP) message, and sends the UDP message including the data corresponding to the target system-level chip on the target vehicle to the target system-level chip on the target vehicle.

[0096] refer to Figure 4 , which shows a schematic diagram of an example architecture for controlling data transmission that can be applied to an embodiment of the present invention.

[0097] The target MCU on the target vehicle can periodically send 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 the time-sensitive network control gateway sends the data corresponding to the target SoC on the target vehicle to the target SoC on the target vehicle. The target SoC on the target vehicle can send data corresponding to the target MCU on the target vehicle, and the time-sensitive network control gateway can receive data corresponding to the target MCU on the target vehicle, and the time-sensitive network control gateway sends the data corresponding to the target MCU on the target vehicle to the target MCU on the target vehicle.

[0098] In one possible implementation, the time-sensitive network control gateway may determine the target end time of the target task in response to the count value of the target counter on the target vehicle reaching the count value indicating the target start time of the target task, according to 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. The target start time of the target task is: the start time of the process of executing the task with the end time being the target end time.

[0099] The preset execution time of the target task is: the duration of the process of executing the target task.

[0100] The time-sensitive network control gateway can respond to the count value of the target counter on the target vehicle reaching the count value indicating the target start time of the target task by adding the count value of the target counter indicating the target start time of the target task and the value indicating the preset execution duration of the target task to obtain the count value indicating the target end time of the target task.

[0101] In one possible implementation, the gating priority of the target task is the same as the service quality priority of the target task; and sending data corresponding to the target system-level chip on the target vehicle to the target system-level chip on the target vehicle includes: the time-sensitive network control gateway determines whether the service quality priority in the target message received from the target system-level chip is the gating priority of the target task; if the time-sensitive network control gateway determines that the service quality priority in the target message received from the target system-level chip is the gating priority of the target task, the time-sensitive network control gateway sends the target message to the target system-level chip on the target vehicle.

[0102] When the time-sensitive network control gateway determines that the service quality priority in the message received from the target system-level chip is the gating priority of the target task, the time-sensitive network control gateway can send the data corresponding to the target system-level chip on the target vehicle to the target system-level chip on the target vehicle. Thus, it is ensured that during the period when the data corresponding to the target system-level chip on the target vehicle is sent to the target system-level chip on the target vehicle, the data sent to the target system-level chip on the target vehicle is the data of the service quality priority of the target task, avoiding the situation that the data sent to the target system-level chip is not the data of the service quality priority of the target task, and improving the accuracy of data transmission of the task data on the target vehicle.

[0103] In one possible implementation, the target electronic control unit periodically synchronizes its clock with the time-sensitive network control gateway and each of 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 the clock of the time-sensitive network control gateway and the clock of the target system-level chip are each pre-configured as a slave clock source.

[0104] The time-sensitive network control gateway is connected to each of the target electronic control unit and the target system-level chip on the target vehicle through the Ethernet interface. The time-sensitive network control gateway, the target electronic control unit, and the target system-level chip all support any one of the protocols such as IEEE 802.1qbv and IEEE 802.1as. Time synchronization based on the corresponding protocol standards is achieved through the corresponding protocols in the protocols such as IEEE 802.1qbv and IEEE802.1as. The target electronic control unit is configured as the master clock source, and the time-sensitive network control gateway and the target system-level chip are configured as the salve clock source to ensure that the data transmission of the mission data on the target vehicle can be controlled with microsecond accuracy, thereby improving the accuracy of the data transmission of the mission data on the target vehicle.

[0105] In a possible implementation, the target counter is a system counter (OSCounter) of the Autosar architecture. The system counter of the Autosar architecture is a hardware-based OSCounter in the Autosar architecture. The counting accuracy of the system counter of the Autosar architecture is high, and the OSCounter in the Autosar architecture is used for more accurate counting.

[0106] In one possible implementation, it also 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 end of execution of the target task, wherein the expiration point is a module for setting attribute information of the task.

[0107] A control system for data transmission is also provided in an embodiment of the present invention, and the system is used to implement the above-mentioned method embodiment and preferred implementation mode, and the description has been made no further. As used below, the term "unit" can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived. The system in the embodiment of the present invention is presented in the form of a functional unit, where the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.

[0108] The control system for data transmission includes: a time-sensitive network control gateway, which is configured to close the gating corresponding to the gating priority of the target task in the gating list in response to the count value of the target counter on the target vehicle reaching the count value indicating the target end time of the target task, so as to stop transmitting the task data of the target task through the time-sensitive network control gateway; open the gating corresponding to the gating priority of the task to be executed next time in the gating list, so as to transmit the task data of the task to be executed next time 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 task to be executed next time, and the target start time of the task to be executed next time is the start time of the process of executing the task to be executed next time; 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 task to be executed next time.

[0109] In one possible implementation, the time-sensitive network control gateway responds to the count value of 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.

[0110] In one possible implementation, the control system for data transmission also includes: a target electronic control unit on the target vehicle, a target system-level chip on the target vehicle, and the target task is a task in which the target electronic control unit on the target vehicle sends data corresponding to the target system-level 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-level chip from the target electronic control unit, and sends data corresponding to the target system-level chip on the target vehicle to the target system-level chip on the target vehicle.

[0111] In one possible implementation, the gating priority of the target task is the same as the service quality priority of the target task; the time-sensitive network control gateway determines whether the service quality priority in the target message received from the target system-level chip is the gating priority of the target task, wherein the target message includes: data corresponding to the target system-level chip on the target vehicle; if the time-sensitive network control gateway determines that the service quality priority in the target message received from the target system-level chip is the gating priority of the target task, the time-sensitive network control gateway sends the target message to the target system-level chip on the target vehicle.

[0112] In a possible implementation, the time-sensitive network control gateway, the target electronic control unit, and the target system-on-chip are integrated in a vehicle domain controller of the target vehicle.

[0113] In one possible implementation, the target electronic control unit periodically synchronizes its clock with the time-sensitive network control gateway and each of 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 the clock of the time-sensitive network control gateway and the clock of the target system-level chip are each 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 to trigger the end of execution of the target task, wherein the expiration point is a module for setting attribute information of the task.

[0116] refer to Figure 5 , Figure 51 is a schematic diagram of the hardware structure of a computer device provided by an embodiment of the present invention. The computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. Similarly, multiple vehicles can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above-mentioned hardware chip can be a dedicated integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device can be a complex programmable logic device, a field programmable gate array, a general array logic, or any combination thereof. The memory 20 stores instructions executable by at least one processor 10 so that the at least one processor 10 executes the method shown in the above embodiment. The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the vehicle, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state hard disk; the memory 20 may also include a combination of the above-mentioned types of memory. The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 may be connected via a bus or in other ways. The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc.The output device 40 may include a display device, an auxiliary lighting device (e.g., LED), a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device may be a touch screen.

[0117] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0118] A portion of the embodiments of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which the computer program instructions are executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0119] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.

Claims

1. A data transmission control method, characterized in that: 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 the target task, closing a gate corresponding to a gating priority of the target task in the gating list to stop transmitting task data of the target task through a time-sensitive network control gateway on the target vehicle; Open the gating of the gating priority of the task to be executed next in the gating list, so as to transmit the task data of the task to be executed next 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 task to be executed next, and the target start time of the task to be executed next is the start time of the process of executing the task to be executed next; 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 task to be executed next.

2. The method according to claim 1, characterized in that: The method further comprises: The time-sensitive network control gateway responds to the count value of 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 on the target vehicle indicating the target start time of the target task and the preset execution duration of the target task.

3. The method according to claim 1, characterized in that: The target task is a task in which a target electronic control unit on a target vehicle sends data corresponding to a target system-level chip on the target vehicle; And the method further comprises: During execution of a target task, the time-sensitive network control gateway receives data corresponding to the target system-on-chip from the target electronic control unit, and sends data corresponding to the target system-on-chip to the target system-on-chip.

4. The method according to claim 3, characterized in that: The gating priority of the target task is the same as the quality of service priority of the target task; And sending data corresponding to the target system-level chip to the target system-level chip includes: The time-sensitive network control gateway determines whether the quality of service priority in the target message received from the target system-level chip is the gating priority of the target task, wherein the target message includes: data corresponding to the target system-level chip; If so, the time-sensitive network control gateway sends the target message to the target system-level chip.

5. The method according to claim 3, characterized in that: 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 a target vehicle.

6. The method according to claim 3, characterized in that: The method further comprises: The target electronic control unit periodically synchronizes its clock with the time-sensitive network control gateway and each of the target system-level chips 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 the clock of the time-sensitive network control gateway and the clock of the target system-level chip are each 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 the AUTOSAR architecture.

8. The method according to claim 7, characterized in that: 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 state of the target task to the end state to trigger the end of execution of the target task, wherein the expiration point is a module for setting attribute information of the task.

9. A data transmission control system, characterized in that: The system includes: a time-sensitive network control gateway, which is configured to close the gating corresponding to the gating priority of the target task in the gating list in response to the count value of the target counter on the target vehicle reaching the count value indicating the target end time of the target task, so as to stop transmitting the task data of the target task through the time-sensitive network control gateway on the target vehicle; open the gating corresponding to the gating priority of the task to be executed next time in the gating list, so as to transmit the task data of the task to be executed next time 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 task to be executed next time, and the target start time of the task to be executed next time is the start time of the process of executing the task to be executed next time; 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 task to be executed next time.

10. A computer device installed in a vehicle, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 8 by executing the computer instructions.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 8.

12. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Tracking a relative arrival order of events being stored in multiple queues using a counter

    CN103870245A

  • Data transmission method and device, server and storage medium

    CN112968933A

  • Data processing method and device, equipment and storage medium

    CN114089811A

  • Data interaction method and device in electronic communication network, gateway equipment and medium

    CN116346733A

  • System, vehicle, and method

    US20230306101A1

Cited By

  • Data transmission control method and system, computer device, and storage medium

    WO2026153577A1