CN117176646A - Data transmission method, data reception method, device, equipment and storage medium - Google Patents

Data transmission method, data reception method, device, equipment and storage medium Download PDF

Info

Publication number
CN117176646A
CN117176646A CN202311135711.5A CN202311135711A CN117176646A CN 117176646 A CN117176646 A CN 117176646A CN 202311135711 A CN202311135711 A CN 202311135711A CN 117176646 A CN117176646 A CN 117176646A
Authority
CN
China
Prior art keywords
target
tsn
message
module
communication links
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311135711.5A
Other languages
Chinese (zh)
Inventor
袁小晶
万千山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN202311135711.5A priority Critical patent/CN117176646A/en
Publication of CN117176646A publication Critical patent/CN117176646A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a data transmission method, a data receiving device, equipment and a storage medium. The method comprises the following steps: when a data transmission instruction is received, generating at least two first TSN communication links according to target TSN module identification information carried by the data transmission instruction and a networking topological structure; generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction; the first messages in the first message set are respectively sent to the target TSN module through the corresponding first TSN communication links, so that the target TSN module performs de-duplication operation on the received first message set according to the target identification field carried by the first message to obtain a target message, and the target message is sent to the target microcomputer controller corresponding to the target microcomputer controller identification information.

Description

Data transmission method, data reception method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of vehicles, in particular to a data sending method, a data receiving method, a device, equipment and a storage medium.
Background
With the continuous development of automobile science, intelligence and networking, the latest applications and functions in automobiles are continuously increasing the requirements on bandwidth, delay reduction, synchronization, high availability, qoS and cost reduction. Conventional automotive network protocols are inadequate to meet these upcoming needs. Under such circumstances, there is an urgent need for a vehicle-mounted network that is high in bandwidth, openable, scalable, strong in compatibility, and convenient in network aggregation, while satisfying the requirements of strict regulations on the vehicle, the electrical environment on the vehicle, and the high reliability.
On-board ethernet transport has been a major trend from the evolution route of the on-board EE architecture.
By means of the communication middleware, although reliable distribution of data can be guaranteed through a reliable protocol to a certain extent, the problem of failure of a communication link cannot be completely solved, and reliability and safety of system communication are reduced.
Disclosure of Invention
The embodiment of the invention provides a data sending method, a data receiving device, equipment and a storage medium, so as to improve the reliability and safety of system communication.
According to an aspect of the present invention, there is provided a data transmission method applied to a communication system including: the utility model provides a self-driving domain controller, cabin domain controller, central gateway, communication middleware, at least one regional gateway and at least one microcomputer controller that every regional gateway corresponds, self-driving domain controller, cabin domain controller, central gateway and at least one regional gateway all communicate through communication middleware, regional gateway includes: the TSN module is used for executing the data transmission method by the TSN module of the regional gateway, and the data transmission method comprises the following steps:
when a data transmission instruction is received, generating at least two first TSN communication links according to target TSN module identification information carried by the data transmission instruction and a networking topological structure;
generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
And sending the first messages in the first message set to a target TSN module through corresponding first TSN communication links respectively, so that the target TSN module performs de-duplication operation on the received first message set according to a target identification field carried by the first message to obtain a target message, and sending the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
According to another aspect of the present invention, there is provided a data receiving method applied to a communication system including: the utility model provides a self-driving domain controller, cabin domain controller, central gateway, communication middleware, at least one regional gateway and at least one microcomputer controller that every regional gateway corresponds, self-driving domain controller, cabin domain controller, central gateway and at least one regional gateway all communicate through communication middleware, regional gateway includes: the TSN module is used for executing the data receiving method by the TSN module of the regional gateway, and the data receiving method comprises the following steps:
receiving a first message set through at least two first TSN communication links, wherein the first TSN communication links are communication links generated by a TSN module of an area gateway according to target TSN module identification information carried by the data transmission instruction and a networking topological structure, the first message set is a message set generated by the TSN module of the area gateway according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of the first TSN communication links carried by the data transmission instruction, and the number of the first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
Performing de-duplication operation on the first message set based on a target identification field carried by each first message in the first message set to obtain a target message;
and sending the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
According to another aspect of the present invention, there is provided a data transmission apparatus including:
the first TSN communication link generation module is used for generating at least two first TSN communication links according to target TSN module identification information carried by a data transmission instruction and a networking topological structure when the data transmission instruction is received;
the first message set generating module is used for generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
and the first message sending module is used for sending the first messages in the first message set to the target TSN module through corresponding first TSN communication links respectively, so that the target TSN module carries out de-duplication operation on the received first message set according to the target identification field carried by the first message to obtain a target message, and sends the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
According to another aspect of the present invention, there is provided a data receiving apparatus including:
the first message set receiving module is used for receiving a first message set through at least two first TSN communication links, wherein the first TSN communication links are communication links generated by a TSN module of the regional gateway according to target TSN module identification information carried by the data transmission instruction and a networking topological structure, the first message set is a message set generated by the TSN module of the regional gateway according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of the first TSN communication links carried by the data transmission instruction, and the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
the de-duplication module is used for performing de-duplication operation on the first message set based on a target identification field carried by each first message in the first message set to obtain a target message;
and the target message sending module is used for sending the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data transmission method or the data reception method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the data transmission method or the data reception method according to any of the embodiments of the present invention when executed.
When a data transmission instruction is received, generating at least two first TSN communication links according to target TSN module identification information carried by the data transmission instruction and a networking topological structure; generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information; and sending the first messages in the first message set to a target TSN module through corresponding first TSN communication links respectively, so that the target TSN module performs de-duplication operation on the received first message set according to a target identification field carried by the first messages to obtain target messages, and sends the target messages to a target microcomputer controller corresponding to the target microcomputer controller identification information, thereby solving the problem of failure of the communication links and improving the reliability and safety of system communication.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data transmission method in an embodiment of the invention;
fig. 2 is a schematic structural diagram of a communication system in an embodiment of the present invention;
FIG. 3 is a flow chart of a data receiving method in an embodiment of the invention;
fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data receiving device in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
Example 1
Fig. 1 is a flowchart of a data transmission method provided in an embodiment of the present invention, where the embodiment is applicable to a data transmission case, the method may be performed by a data transmission device in the embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, as shown in fig. 1, and the method specifically includes the following steps:
s110, when a data transmission instruction is received, generating at least two first TSN communication links according to target TSN module identification information carried by the data transmission instruction and a networking topological structure.
The communication system may be a ring network, the communication system comprising: the system comprises a self-driving domain controller, a cabin domain controller, a central gateway, communication middleware, at least one regional gateway and at least one microcomputer controller corresponding to each regional gateway, wherein the self-driving domain controller, the cabin domain controller, the central gateway and the at least one regional gateway are all communicated through the communication middleware. As shown in fig. 2, the communication system includes: the intelligent control system comprises a self-driving domain controller ADC, a cabin domain controller CDC, a central gateway CGW (comprising a centralized configuration module CCM), a communication middleware SOME/IP, an area gateway BCM-1, two ECUs corresponding to the area gateway BCM-1, an area gateway BCM-2, two ECUs corresponding to the area gateway BCM-2, an area gateway BCM-3, two ECUs corresponding to the area gateway BCM-3, an area gateway BCM-4 and two ECUs corresponding to the area gateway BCM-4. The self-driving domain controller ADC and the central gateway CGW communicate through a communication middleware SOME/IP, the cabin domain controller CDC and the central gateway CGW communicate through the communication middleware SOME/IP, the self-driving domain controller ADC and the regional gateway BCM-1 communicate through the communication middleware SOME/IP, the cabin domain controller CDC and the regional gateway BCM-2 communicate through the communication middleware SOME/IP, the regional gateway BCM-2 and the regional gateway BCM-3 communicate through the communication middleware SOME/IP, the regional gateway BCM-3 and the regional gateway BCM-4 communicate through the communication middleware SOME/IP, and the regional gateway BCM-1 and the regional gateway BCM-4 communicate through the communication middleware SOME/IP.
Wherein, the communication middleware may be SOME/IP, and the communication middleware may include: SOME/IP module, eth_Converter module and TSN module.
The networking topology structure may be a networking topology structure corresponding to the communication system, and the obtaining manner of the networking topology structure may be: and monitoring the ring-shaped networking topology structure through the CCM of the central gateway CGW, and synchronizing the changed networking topology structure to the TSN module of the regional gateway when the CCM of the central gateway CGW monitors the change of the ring-shaped networking topology structure.
The method for generating at least two first TSN communication links according to the target TSN module identification information carried by the data transmission instruction and the networking topology structure may be: acquiring identification information of a TSN module of a current regional gateway and identification information of a target TSN module which receive a data transmission instruction, and inquiring a networking topological structure according to the identification information of the TSN module of the current regional gateway and the identification information of the target TSN module to obtain at least two first TSN communication links. For example, as shown in fig. 2, if the current scenario is that BCM-1 receives an instruction to send data to BCM-3, two first TSN communication links between BCM-1 and BCM-3 are obtained according to the network topology of BCM-1 and BCM-3. The two first TSN communication links are respectively: BCM-1- & gtBCM-4- & gtBCM-3 and BCM-1- & gtADC- & gtCGW- & gtCDC- & gtBCM-2- & gtBCM-3.
Specifically, when a data transmission instruction is received, a manner of generating at least two first TSN communication links according to target TSN module identification information and a networking topology structure carried by the data transmission instruction may be: when a data transmission instruction is received, if a TSN module of a regional gateway is in a CB function on state, at least two first TSN communication links are generated according to target TSN module identification information carried by the data transmission instruction and a networking topological structure.
S120, generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification field and the number of first TSN communication links carried by the data transmission instruction.
The number of the first TSN communication links is the number of the first TSN communication links generated according to the target TSN module identification information carried by the data transmission instruction and the networking topological structure.
Wherein the destination identification field may include: the sequence number, the destination identification field may further include: at least one of an ethertype and a reserved field.
The number of the first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries a target identification field and target microcomputer controller identification information. The first message set includes: the first message and the first message obtained after the first message is copied.
Specifically, the manner of generating the first packet set according to the data to be sent, the identification information of the target microcomputer controller, the target identification field, and the number of the first TSN communication links carried by the data sending instruction may be: generating a first message according to data to be transmitted, target microcomputer controller identification information and target identification fields carried by the data transmission instruction, and copying the first message according to the number of the first TSN communication links to obtain a first message set. The method for generating the first message set according to the data to be transmitted, the identification information of the target microcomputer controller, the target identification field and the number of the first TSN communication links carried by the data transmission instruction may further be: generating an Ethernet message according to data to be transmitted and target microcomputer controller identification information carried by the data transmission instruction, and adding a target identification field into an Ethernet frame header to obtain a first message; and copying the first message according to the number of the first TSN communication links to obtain a first message set. The method for generating the first message set according to the data to be transmitted, the identification information of the target microcomputer controller, the target identification field and the number of the first TSN communication links carried by the data transmission instruction may further be: screening the data to be transmitted carried by the data transmission instruction to obtain frame data corresponding to the target protocol type; encapsulating the frame data corresponding to the target protocol type and the target microcomputer controller identification information to obtain an Ethernet message; adding a target identification field in the Ethernet frame header to obtain a first message; and copying the first message according to the number of the first TSN communication links to obtain a first message set.
S130, sending the first messages in the first message set to a target TSN module through corresponding first TSN communication links respectively, so that the target TSN module carries out de-duplication operation on the received first message set according to a target identification field carried by the first messages to obtain target messages, and sending the target messages to a target microcomputer controller corresponding to the target microcomputer controller identification information.
Specifically, the manner of sending the first packets in the first packet set to the target TSN module through the corresponding first TSN communication link may be: the first messages in the first message set are respectively sent to the target TSN module through one TSN communication link, and it is to be noted that the first messages in the first message set are simultaneously sent to the target TSN module through different first TSN communication links.
Specifically, the current TSN module sends the first messages in the first message set to the target TSN module through corresponding first TSN communication links, and the target TSN module performs a deduplication operation on the received first message set according to a target identification field carried by the first message, so as to obtain a target message, converts the target message into a target signal, and sends the target signal to a target microcomputer controller corresponding to the target microcomputer controller identification information.
Optionally, the first message in the first message set is sent to the target TSN module through the corresponding first TSN communication link, and meanwhile, other frame data except for frame data corresponding to the target protocol type in the data to be sent carried by the data sending instruction can be sent to the target TSN module through the original communication link, so that the target TSN module restores the data to be sent according to the first message and other frame data after receiving the first message and other frame data, and converts the data to be sent into signals to be sent to the target microcomputer controller.
Optionally, generating a first message set according to data to be sent, target microcomputer controller identification information, target identification field and the number of first TSN communication links carried by the data sending instruction includes:
screening the data to be transmitted carried by the data transmission instruction to obtain frame data corresponding to the target protocol type;
encapsulating the frame data corresponding to the target protocol type and the target microcomputer controller identification information to obtain an Ethernet message;
adding a target identification field in the Ethernet frame header to obtain a first message;
and copying the first message according to the number of the first TSN communication links to obtain a first message set.
The target protocol type may be a preset protocol type.
Wherein, the Ethernet frame header is the frame header of the Ethernet message.
Specifically, the method for screening the data to be sent carried by the data sending instruction to obtain the frame data corresponding to the target protocol type may be: and acquiring frame data corresponding to each protocol type in the data to be transmitted carried by the data transmission instruction, and screening the data to be transmitted carried by the data transmission instruction according to the target protocol type to obtain the frame data corresponding to the target protocol type.
Specifically, the method for adding the target identification field to the ethernet frame header to obtain the first message may be that the target identification field is added to the ethernet frame header, and a key frame mark is set to obtain the first message.
Specifically, the method for copying the first message according to the number of the first TSN communication links to obtain the first message set may be: and determining the replication times corresponding to the first message according to the number of the first TSN communication links, and replicating the first message according to the replication times corresponding to the first message to obtain a first message set. The method for determining the replication times corresponding to the first message according to the number of the first TSN communication links may be: subtracting 1 from the number of the first TSN communication links to obtain the number of copies corresponding to the first message, for example, if the number of the first TSN communication links is 2, determining that the number of copies corresponding to the first message is 1, where the first message set includes: the device comprises a first message A and a first message B, wherein the first message A is an original first message, and the first message B is a message obtained by copying the first message A.
Optionally, before generating at least two first TSN communication links according to the target TSN module identification information and the networking topology structure carried by the data transmission instruction, the method further includes:
receiving a CB opening function instruction, wherein the CB opening function instruction comprises: after receiving the CB opening function instruction sent by the central gateway through the communication middleware, the self-driving domain controller and/or the cabin domain controller sends an instruction to the TSN module of the current regional gateway, or after receiving the CB opening function instruction sent by the self-driving domain controller and/or the cabin domain controller, the TSN module of the other regional gateways sends an instruction to the TSN module of the current regional gateway, wherein the communication middleware is SOME/IP, and comprises: and a TSN module.
The TSN modules of the other regional gateways are TSN modules of the regional gateways which receive the CB function opening instruction; and other regional gateways are connected with the autopilot domain controller and/or the cockpit domain controller. The TSN module of the current regional gateway is the TSN module of the regional gateway which does not receive the instruction for opening the CB function, and the current regional gateway is connected with other regional gateways.
The central gateway sends a CB opening function instruction to the self-driving domain controller and/or the cabin domain controller through the communication middleware, after receiving the CB opening function instruction sent by the central gateway, the self-driving domain controller and/or the cabin domain controller respectively send the CB opening function instruction to TSN modules of the regional gateways connected with the self-driving domain controller and/or the cabin domain controller, and after receiving the CB opening function instruction, the TSN modules of the regional gateways connected with the self-driving domain controller and/or the cabin domain controller send the CB opening function instruction to the TSN modules of other regional gateways connected with the self-driving domain controller and/or the cabin domain controller.
For example, as shown in fig. 2, the central gateway CGW may send an opening CB function instruction to the self-driving domain controller ADC and/or the cabin domain controller CDC through the communication middleware SOME/IP, after the self-driving domain controller ADC and/or the cabin domain controller CDC receive the opening CB function instruction, the self-driving domain controller ADC sends the opening CB function instruction to the regional gateway BCM-1, the cabin domain controller CDCC sends the opening CB function instruction to the regional gateway BCM-2, the regional gateway BCM-1 receives the opening CB function instruction, the regional gateway BCM-1 sends the opening CB function instruction to the regional gateway BCM-4, the regional gateway BCM-2 receives the opening CB function instruction, and the regional gateway BCM-2 sends the opening CB function instruction to the regional gateway BCM-3.
The embodiment of the invention realizes the duplication and elimination of SOME/IP communication key frame data in the ring network by starting the CB function of the TSN module and adding the target identification field in the Ethernet frame header, thereby achieving the redundancy of communication links and improving the reliability of communication.
Optionally, before generating at least two first TSN communication links according to the target TSN module identification information and the networking topology structure carried by the data transmission instruction, the method further includes:
And obtaining a networking topological structure, wherein the networking topological structure is a networking topological structure which is sent to a TSN module of the regional gateway through a communication middleware when the central gateway monitors that the state of any one of the regional gateway, the self-driving domain controller and the cabin domain controller is changed.
It should be noted that, the method for obtaining the networking topology structure may be: when the central gateway monitors the change of the networking topology structure, the TSN module of the central gateway generates at least two second TSN communication links according to the first TSN module identification information carried by the configuration information sending instruction and the networking topology structure; the TSN module of the central gateway generates a second message set according to the changed networking topological structure, the first identification field and the number of the first TSN communication links carried by the configuration information sending instruction; the TSN module of the central gateway sends the second message in the second message set to the TSN module corresponding to the first TSN module identification information through the corresponding second TSN communication link (it should be noted that the TSN module corresponding to the first TSN module identification information may include the TSN module of each area gateway, and each time a message is sent, the TSN module of the central gateway may only be aimed at the TSN module of one area gateway, or the message may be sent to the TSN modules of all area gateways at the same time, for example, the ring-shaped networking includes an area gateway BCM-1, an area gateway BCM-2, an area gateway BCM-3, and an area gateway BCM-4, and the TSN module of the central gateway may send the second message to the TSN module of the area gateway BCM-1 according to the second TSN communication link corresponding to the TSN module of the area gateway BCM-1, and the TSN module of the central gateway BCM-1 may also send the second message to the TSN module of the area BCM-1 according to the second TSN communication link corresponding to the TSN module of the area BCM-1, and the TSN module of the second BCM-2 corresponds to the second TSN module of the area BCM-1, and the TSN module of the second BCM-4 corresponds to the TSN module of the area BCM-2 according to the second TSN communication link of the second TSN module of the area BCM-1).
In addition, after the TSN module of the regional gateway receives the second message sets through at least two second TSN communication links, performing a deduplication operation on the second message sets based on the first identification field carried by each second message in the second message sets, to obtain a third message, and storing the changed networking topology structure in the third message.
Optionally, generating a first message set according to data to be sent, target microcomputer controller identification information, target identification field and the number of first TSN communication links carried by the data sending instruction includes:
if QCi function is on, judging whether the data to be transmitted carried by the data transmission instruction is abnormal;
if abnormal data exists in the data to be transmitted carried by the data transmission instruction, filtering the data to be transmitted carried by the data transmission instruction to obtain filtered data to be transmitted;
and generating a first message set according to the filtered data to be transmitted, the target microcomputer controller identification information, the target identification field and the number of the first TSN communication links.
Specifically, if abnormal data exists in the data to be sent, which is carried by the data sending instruction, is filtered, and the manner of obtaining the filtered data to be sent may be: if abnormal data exists in the data to be transmitted carried by the data transmission instruction, deleting the abnormal data in the data to be transmitted carried by the data transmission instruction, and obtaining filtered data to be transmitted.
It should be noted that, the central gateway sends the instruction for opening the QCI function to the self-driving domain controller and/or the cabin domain controller through the communication middleware, after receiving the instruction for opening the QCI function sent by the central gateway, the self-driving domain controller and/or the cabin domain controller respectively send the instruction for opening the QCI function to the TSN modules of the regional gateways connected with the self-driving domain controller and/or the cabin domain controller, and after receiving the instruction for opening the QCI function, the TSN modules of the regional gateways connected with the self-driving domain controller and/or the cabin domain controller send the instruction for opening the QCI function to the TSN modules of other regional gateways connected with the self-driving domain controller and/or the cabin domain controller.
For example, as shown in fig. 2, the central gateway CGW may send an open QCI function instruction to the self-driving domain controller ADC and/or the cabin domain controller CDC through the communication middleware SOME/IP, after the self-driving domain controller ADC and/or the cabin domain controller CDC receive the open QCI function instruction, the self-driving domain controller ADC sends the open QCI function instruction to the regional gateway BCM-1, the cabin domain controller CDCC sends the open QCI function instruction to the regional gateway BCM-2, the regional gateway BCM-1 receives the open QCI function instruction, the regional gateway BCM-1 sends the open QCI function instruction to the regional gateway BCM-4, the regional gateway BCM-2 receives the open QCI function instruction, and all the regional gateways receive the open QCI function instruction.
Specifically, the manner of generating the first packet set according to the filtered data to be sent, the identification information of the target microcomputer controller, the target identification field and the number of the first TSN communication links may be: screening the filtered data to be transmitted to obtain frame data corresponding to a target protocol type; encapsulating the frame data corresponding to the target protocol type and the target microcomputer controller identification information to obtain an Ethernet message; adding a target identification field in the Ethernet frame header to obtain a first message; and copying the first message according to the number of the first TSN communication links to obtain a first message set.
In the transmission process of the vehicle-mounted Ethernet, a large number of useless data packets exist, so that the problems of replay attack, traffic overload abnormality and the like can be faced, the reliability and the safety of system communication are seriously affected.
In a specific example, when a data transmission instruction is received, if a CB function is in an on state, key frame data in data to be transmitted carried by the data transmission instruction is screened, after the key frame data is encapsulated into an ethernet packet, an R-TAG field is added to an ethernet header, a key frame flag is set, the ethernet data frame is copied to obtain a first packet set, the first packets in the first packet set are respectively transmitted to a target TSN module through corresponding first TSN communication links, and the first packets with the same serial number ID are transmitted to the target TSN module through different TSN communication links, so that link redundancy is formed, and recovery time when a single link fails is greatly reduced. After receiving the first message, the target TSN module analyzes the R-TAG field in the first message to obtain a serial number ID, eliminates the repeated Ethernet data frame of the ID, restores key frame data, converts the key frame data into a signal and sends the signal to the corresponding ECU.
According to the technical scheme, when a data transmission instruction is received, at least two first TSN communication links are generated according to target TSN module identification information carried by the data transmission instruction and a networking topological structure; generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information; and sending the first messages in the first message set to a target TSN module through corresponding first TSN communication links respectively, so that the target TSN module performs de-duplication operation on the received first message set according to a target identification field carried by the first messages to obtain target messages, and sends the target messages to a target microcomputer controller corresponding to the target microcomputer controller identification information, thereby solving the problem of failure of the communication links and improving the reliability and safety of system communication.
Example two
Fig. 3 is a flowchart of a data receiving method according to an embodiment of the present invention, where the method may be applied to a data receiving case, and the method may be performed by a data receiving device according to an embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, as shown in fig. 3, and the method specifically includes the following steps:
s310, a first message set is received through at least two first TSN communication links.
The first message set is a message set generated by the TSN module of the regional gateway according to data to be sent, target microcomputer controller identification information, target identification fields and the number of the first TSN communication links, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information.
Specifically, the manner of receiving the first packet set through at least two first TSN communication links may be: and receiving the first message sent by each first TSN communication link, and generating a first message set according to the first message sent by each first TSN communication link.
Specifically, when a data transmission instruction is received, a TSN module of the regional gateway generates at least two first TSN communication links according to target TSN module identification information carried by the data transmission instruction and a networking topological structure, and the TSN module of the regional gateway generates a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of the first TSN communication links carried by the data transmission instruction; and the TSN module of the regional gateway sends the first messages in the first message set to the target TSN module through corresponding first TSN communication links respectively, and the target TSN module receives the first message set sent through at least two first TSN communication links. For example, as shown in fig. 2, if the current scenario is that BCM-1 receives an instruction for sending data to BCM-3, a TSN module of BCM-1 queries a networking topology structure according to BCM-1 and BCM-3 to obtain two first TSN communication links between BCM-1 and BCM-3. The two first TSN communication links are respectively: BCM-1- & gt BCM-4- & gt BCM-3 (first TSN communication link A) and BCM-1- & gt ADC- & gt CGW- & gt CDC- & gt BCM-2- & gt BCM-3 (first TSN communication link B), wherein the TSN module of BCM-1 generates a first message set (first message A and first message B) according to data to be transmitted, target ECU identification information, target identification field and the number (2) of the first TSN communication links carried by the data transmission instruction, and the TSN module of BCM-1 transmits the first message A to the TSN module of BCM-3 through the first TSN communication link A, and simultaneously, the TSN module of BCM-1 transmits the first message B to the TSN module of BCM-3 through the first TSN communication link B, and the TSN module of BCM-3 receives the first message A and the first message B.
S320, performing de-duplication operation on the first message sets based on the target identification field carried by each first message in the first message sets to obtain target messages.
Specifically, the method for performing the deduplication operation on the first message set based on the target identifier field carried by each first message in the first message set may be that: and performing de-duplication operation on the first message set according to the receiving time stamp of each first message in the first message set and the target identification field carried by each first message to obtain a target message. For example, if the receiving timestamp of the first message a in the first message set is the first timestamp, and the receiving timestamp of the first message B is the second timestamp, that is, the TSN module of the regional gateway BCM-3 receives the first message a first and then receives the first message B, and because the target identifier fields carried by the first message a and the first message B are the same, the first message B with repeated target identifier fields is eliminated, and the first message a is determined to be the target message.
S330, the target message is sent to the target microcomputer controller corresponding to the target microcomputer controller identification information.
Specifically, the mode of sending the target message to the target microcomputer controller corresponding to the target microcomputer controller identification information may be that the target message is converted into a target signal, and the target signal is sent to the target microcomputer controller corresponding to the target microcomputer controller identification information.
Optionally, the central gateway includes: a TSN module;
before receiving the first set of messages over the at least two TSN communication links, further comprising:
receiving a second message set through at least two second TSN communication links, wherein the second TSN communication links are communication links generated by a TSN module of a central gateway according to first TSN module identification information carried by a configuration information sending instruction and a networking topological structure, the second message set is a message set generated by the TSN module of the central gateway according to the configuration information carried by the configuration information sending instruction, a first identification field and the number of the second TSN communication links, the number of second messages in the second message set is greater than or equal to the number of the second TSN communication links, and each second message in the second message set carries a first identification field and first microcomputer controller identification information;
Performing deduplication operation on the second message sets based on the first identification field carried by each second message in the second message sets to obtain third messages;
and sending the third message to a first microcomputer controller corresponding to the first microcomputer controller identification information.
Wherein, the configuration information may include: the networking topology structure may further include: the flow size, which is not limited by the embodiment of the invention.
The first TSN module identification information may include: it should be noted that, when the message is sent each time, the identification information of the TSN modules of at least one regional gateway may be only specific to the TSN module of one regional gateway, or the message may be sent to the TSN modules of all regional gateways at the same time, for example, the ring-shaped networking includes: the TSN modules of the central gateway may first send the second message to the TSN module of the regional gateway BCM-1 according to the second TSN communication link corresponding to the TSN module of the regional gateway BCM-1. The TSN module of the central gateway can also send a second message to the TSN module of the regional gateway BCM-1 according to a second TSN communication link corresponding to the TSN module of the regional gateway BCM-1; transmitting a second message to the TSN module of the regional gateway BCM-2 according to a second TSN communication link corresponding to the TSN module of the regional gateway BCM-2; transmitting a second message to the TSN module of the regional gateway BCM-3 according to a second TSN communication link corresponding to the TSN module of the regional gateway BCM-3; and sending a second message to the TSN module of the regional gateway BCM-4 according to a second TSN communication link corresponding to the TSN module of the regional gateway BCM-4.
It should be noted that, the manner in which the TSN module of the central gateway generates the second packet set according to the configuration information carried by the configuration information sending instruction, the first identification field, and the number of the second TSN communication links may be: packaging configuration information carried by the configuration information sending instruction to obtain an Ethernet message; adding a first identification field in the Ethernet frame header to obtain a second message; and copying the second message according to the number of the second TSN communication links to obtain a second message set.
Specifically, when a configuration information sending instruction is received, the TSN module of the central gateway generates at least two second TSN communication links according to first TSN module identification information carried by the configuration information sending instruction and a networking topological structure, the TSN module of the central gateway generates a second message set according to the configuration information carried by the configuration information sending instruction, the first identification field and the number of the second TSN communication links, and the TSN module of the central gateway sends second messages in the second message set to the TSN module corresponding to the first TSN module identification information through the corresponding second TSN communication links. The TSN module receives second message sets through at least two second TSN communication links, performs duplication removal operation on the second message sets based on first identification fields carried by each second message in the second message sets to obtain third messages, and sends the third messages to the first microcomputer controllers corresponding to the first microcomputer controller identification information.
According to the technical scheme, a first message set is received through at least two first TSN communication links, wherein the first TSN communication links are communication links generated by a TSN module of an area gateway according to target TSN module identification information carried by a data transmission instruction and a networking topological structure, the first message set is a message set generated by the TSN module of the area gateway according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of the first TSN communication links carried by the data transmission instruction, and the number of first messages in the first message set is larger than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information; performing de-duplication operation on the first message set based on a target identification field carried by each first message in the first message set to obtain a target message; and the target message is sent to the target microcomputer controller corresponding to the target microcomputer controller identification information, so that the problem of failure of a communication link is solved, and the reliability and safety of system communication can be improved.
Example III
Fig. 4 is a schematic structural diagram of a data transmitting apparatus according to an embodiment of the present invention. The embodiment may be applied to the case of data transmission, and the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device that provides a data transmission function, as shown in fig. 4, where the data transmission apparatus specifically includes: a first TSN communication link generation module 410, a first message set generation module 420, and a message transmission module 430.
The first TSN communication link generation module is used for generating at least two first TSN communication links according to target TSN module identification information carried by a data transmission instruction and a networking topological structure when the data transmission instruction is received;
the first message set generating module is used for generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
And the first message sending module is used for sending the first messages in the first message set to the target TSN module through corresponding first TSN communication links respectively, so that the target TSN module carries out de-duplication operation on the received first message set according to the target identification field carried by the first message to obtain a target message, and sends the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 5 is a schematic structural diagram of a data receiving device according to an embodiment of the present invention. The present embodiment may be applicable to the case of data reception, where the apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in any device that provides a data reception function, as shown in fig. 5, where the data reception apparatus specifically includes: a first message set receiving module 510, a deduplication module 520, and a target message sending module 530.
The first message set receiving module is configured to receive a first message set through at least two first TSN communication links, where the first TSN communication links are communication links generated by a TSN module of an area gateway according to target TSN module identification information carried by the data transmission instruction and a networking topology structure, and the first message set is a message set generated by a TSN module of the area gateway according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, where the number of first messages in the first message set is greater than or equal to the number of first TSN communication links, and each first message in the first message set carries a target identification field and target microcomputer controller identification information;
The de-duplication module is used for performing de-duplication operation on the first message set based on a target identification field carried by each first message in the first message set to obtain a target message;
and the target message sending module is used for sending the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 6 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, such as a data transmission method or a data reception method.
In some embodiments, the data transmission method or the data reception method may be implemented as a computer program, which is tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data transmission method or the data reception method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data transmission method or the data reception method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (11)

1. A data transmission method, characterized by being applied to a communication system, the communication system comprising: the utility model provides a self-driving domain controller, cabin domain controller, central gateway, communication middleware, at least one regional gateway and at least one microcomputer controller that every regional gateway corresponds, self-driving domain controller, cabin domain controller, central gateway and at least one regional gateway all communicate through communication middleware, regional gateway includes: the TSN module is used for executing the data transmission method by the TSN module of the regional gateway, and the data transmission method comprises the following steps:
When a data transmission instruction is received, generating at least two first TSN communication links according to target TSN module identification information carried by the data transmission instruction and a networking topological structure;
generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
and sending the first messages in the first message set to a target TSN module through corresponding first TSN communication links respectively, so that the target TSN module performs de-duplication operation on the received first message set according to a target identification field carried by the first message to obtain a target message, and sending the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
2. The method of claim 1, wherein generating a first set of messages based on the data to be transmitted, the target microcontroller identification information, the target identification field, and the number of first TSN communication links carried by the data transmission instruction comprises:
Screening the data to be transmitted carried by the data transmission instruction to obtain frame data corresponding to the target protocol type;
encapsulating the frame data corresponding to the target protocol type and the target microcomputer controller identification information to obtain an Ethernet message;
adding a target identification field in the Ethernet frame header to obtain a first message;
and copying the first message according to the number of the first TSN communication links to obtain a first message set.
3. The method of claim 1, further comprising, prior to generating at least two first TSN communication links from the target TSN module identification information carried by the data transmission instruction and the networking topology:
receiving a CB opening function instruction, wherein the CB opening function instruction comprises: after receiving the CB opening function instruction sent by the central gateway through the communication middleware, the self-driving domain controller and/or the cabin domain controller sends an instruction to the TSN module of the current regional gateway, or after receiving the CB opening function instruction sent by the self-driving domain controller and/or the cabin domain controller, the TSN module of the other regional gateways sends an instruction to the TSN module of the current regional gateway, wherein the communication middleware is SOME/IP, and comprises: and a TSN module.
4. The method of claim 1, further comprising, prior to generating at least two first TSN communication links from the target TSN module identification information carried by the data transmission instruction and the networking topology:
and obtaining a networking topological structure, wherein the networking topological structure is a networking topological structure which is sent to a TSN module of the regional gateway through a communication middleware when the central gateway monitors that the state of any one of the regional gateway, the self-driving domain controller and the cabin domain controller is changed.
5. The method of claim 1, wherein generating a first set of messages based on the data to be transmitted, the target microcontroller identification information, the target identification field, and the number of first TSN communication links carried by the data transmission instruction comprises:
if QCi function is on, judging whether the data to be transmitted carried by the data transmission instruction is abnormal;
if abnormal data exists in the data to be transmitted carried by the data transmission instruction, filtering the data to be transmitted carried by the data transmission instruction to obtain filtered data to be transmitted;
and generating a first message set according to the filtered data to be transmitted, the target microcomputer controller identification information, the target identification field and the number of the first TSN communication links.
6. A data receiving method, characterized by being applied to a communication system, the communication system comprising: the utility model provides a self-driving domain controller, cabin domain controller, central gateway, communication middleware, at least one regional gateway and at least one microcomputer controller that every regional gateway corresponds, self-driving domain controller, cabin domain controller, central gateway and at least one regional gateway all communicate through communication middleware, regional gateway includes: the TSN module is used for executing the data receiving method by the TSN module of the regional gateway, and the data receiving method comprises the following steps:
receiving a first message set through at least two first TSN communication links, wherein the first TSN communication links are communication links generated by a TSN module of an area gateway according to target TSN module identification information carried by a data transmission instruction and a networking topological structure, the first message set is a message set generated by the TSN module of the area gateway according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of the first TSN communication links carried by the data transmission instruction, the number of the first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
Performing de-duplication operation on the first message set based on a target identification field carried by each first message in the first message set to obtain a target message;
and sending the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
7. The method of claim 6, wherein the central gateway comprises: a TSN module;
before receiving the first set of messages over the at least two TSN communication links, further comprising:
receiving a second message set through at least two second TSN communication links, wherein the second TSN communication links are communication links generated by a TSN module of a central gateway according to first TSN module identification information carried by a configuration information sending instruction and a networking topological structure, the second message set is a message set generated by the TSN module of the central gateway according to the configuration information carried by the configuration information sending instruction, a first identification field and the number of the second TSN communication links, the number of second messages in the second message set is greater than or equal to the number of the second TSN communication links, and each second message in the second message set carries a first identification field and first microcomputer controller identification information;
Performing deduplication operation on the second message sets based on the first identification field carried by each second message in the second message sets to obtain third messages;
and sending the third message to a first microcomputer controller corresponding to the first microcomputer controller identification information.
8. A data transmission apparatus, characterized by being applied to a communication system comprising: the utility model provides a self-driving domain controller, cabin domain controller, central gateway, communication middleware, at least one regional gateway and at least one microcomputer controller that every regional gateway corresponds, self-driving domain controller, cabin domain controller, central gateway and at least one regional gateway all communicate through communication middleware, regional gateway includes: the TSN module, the said data transmitting device includes:
the first TSN communication link generation module is used for generating at least two first TSN communication links according to target TSN module identification information carried by a data transmission instruction and a networking topological structure when the data transmission instruction is received;
the first message set generating module is used for generating a first message set according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of first TSN communication links carried by the data transmission instruction, wherein the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
And the first message sending module is used for sending the first messages in the first message set to the target TSN module through corresponding first TSN communication links respectively, so that the target TSN module carries out de-duplication operation on the received first message set according to the target identification field carried by the first message to obtain a target message, and sends the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
9. A data receiving apparatus, characterized by being applied to a communication system, the communication system comprising: the utility model provides a self-driving domain controller, cabin domain controller, central gateway, communication middleware, at least one regional gateway and at least one microcomputer controller that every regional gateway corresponds, self-driving domain controller, cabin domain controller, central gateway and at least one regional gateway all communicate through communication middleware, regional gateway includes: the TSN module, the said data receiving arrangement includes:
the first message set receiving module is used for receiving a first message set through at least two first TSN communication links, wherein the first TSN communication links are communication links generated by a TSN module of the regional gateway according to target TSN module identification information carried by the data transmission instruction and a networking topological structure, the first message set is a message set generated by the TSN module of the regional gateway according to data to be transmitted, target microcomputer controller identification information, target identification fields and the number of the first TSN communication links carried by the data transmission instruction, and the number of first messages in the first message set is greater than or equal to the number of the first TSN communication links, and each first message in the first message set carries the target identification fields and the target microcomputer controller identification information;
The de-duplication module is used for performing de-duplication operation on the first message set based on a target identification field carried by each first message in the first message set to obtain a target message;
and the target message sending module is used for sending the target message to a target microcomputer controller corresponding to the target microcomputer controller identification information.
10. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data transmission method of any one of claims 1-5 or the data reception method of any one of claims 6-7.
11. A computer readable storage medium storing computer instructions for causing a processor to implement the data transmission method of any one of claims 1 to 5 or the data reception method of any one of claims 6 to 7 when executed.
CN202311135711.5A 2023-09-04 2023-09-04 Data transmission method, data reception method, device, equipment and storage medium Pending CN117176646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311135711.5A CN117176646A (en) 2023-09-04 2023-09-04 Data transmission method, data reception method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311135711.5A CN117176646A (en) 2023-09-04 2023-09-04 Data transmission method, data reception method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117176646A true CN117176646A (en) 2023-12-05

Family

ID=88940666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311135711.5A Pending CN117176646A (en) 2023-09-04 2023-09-04 Data transmission method, data reception method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117176646A (en)

Similar Documents

Publication Publication Date Title
US11146420B2 (en) Method for transmitting data via a serial communication bus, bus interface, and computer program
US20200145293A1 (en) Network monitor, network monitoring method, and recording medium storing program
CN112367233B (en) Vehicle-mounted network ECU communication method and device based on service-oriented architecture
CN104125152B (en) A kind of method that In-vehicle networking reliability is improved based on car borne gateway
US10574348B2 (en) Method for time synchronization between communication nodes in network
US20190036649A1 (en) Ethernet communication apparatus, and method for recovering error of end node and switch in vehicle
US10122580B2 (en) Operation methods of communication node in network
TWI535251B (en) Method and system for low-latency networking
WO2016062165A1 (en) Method and apparatus for implementing operations, administration and maintenance function
CN111919422A (en) Method for operating an ethernet on-board network of a motor vehicle, control unit and ethernet on-board network
US20200162232A1 (en) Operation method of communication node for time synchronization in vehicle network
US20130336129A1 (en) Multipurpose Use of Delay Measurement Message Buffer for Software Processing of Delay Measurement Response
CN112134800B (en) Data routing method, gateway, network routing system and vehicle
CN117176646A (en) Data transmission method, data reception method, device, equipment and storage medium
CN107302482A (en) Data transmission system between a kind of board
US20210006567A1 (en) Using crc for sender authentication in a serial network
Zhang et al. Deterministic communications for in-vehicle network: Overview and challenges
JP2013236184A (en) In-vehicle communication system, communication abnormality monitoring method of in-vehicle communication system, and communication abnormality monitoring program of in-vehicle communication system
KR20180057503A (en) Operation method of communication node for time sinchronizating in vehicle network
CN116546112A (en) Hybrid networking protocol design method and device, electronic equipment and storage medium
CN110824343A (en) Detection method, device, equipment and medium of communication chip
CN113485291B (en) Method for monitoring communication fault of CAN bus node by vehicle-mounted gateway and gateway equipment
CN114545906B (en) Vehicle-mounted Ethernet gateway and vehicle
CN114257617A (en) Data processing method, device, equipment and computer readable storage medium
CN115412588B (en) Method and device for remotely updating configuration file and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination