Bus data control method and device based on time-sensitive network
By converting multiple bus data into time-sensitive network data packets and performing data control, the problem of degradation in bus data transmission timeliness in multi-bus converged networks is solved, and efficient and reliable bus data interaction and fusion is achieved.
Patent Information
- Application Number
- CN202311809615.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art is difficult to realize real-time and reliability scheduling of bus data in a large network of multi-bus converged networks, resulting in a decrease in the timeliness of bus data transmission.
By converting multiple bus data into time-sensitive network data packets and performing data control based on these data packets, real-time interaction and reliable transmission of bus data are achieved.
It improves the timeliness of bus data transmission, realizes real-time and reliable scheduling of bus data, improves data compatibility and smoothness among multiple networks, and supports data fusion in multiple bus application scenarios.
Smart Images

Figure CN118042012B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a bus data control method and device based on a time-sensitive network. Background Art
[0002] In the process of multi-bus data fusion, efficient interaction of bus data can be achieved through data conversion. In the prior art, data conversion is mostly data conversion interaction between two network buses, with a single networking form, which cannot be better applied to multi-bus fusion large-scale networks, and after conversion, the data interaction is not scheduled in real time and reliability, which reduces the timeliness of bus data transmission.
[0003] Therefore, it is urgent to propose a new bus data control method to solve the above problems. Summary of the invention
[0004] The present application provides a bus data control method and device based on a time-sensitive network, which is used to solve the defects in the prior art that it is difficult to achieve real-time and reliability scheduling of bus data and difficult to ensure the timeliness of bus data transmission.
[0005] In a first aspect, an embodiment of the present application provides a bus data control method based on a time-sensitive network, comprising:
[0006] Converting target bus data into time-sensitive network data messages; the target bus data includes three or more types of bus data;
[0007] Data control is performed based on the time-sensitive network data message.
[0008] In one embodiment, converting the target bus data into a time-sensitive network data message includes:
[0009] Configure a mapping relationship between an ID in a CAN bus data frame in the target bus data and a time-sensitive network;
[0010] Based on the mapping relationship, the CAN bus data is converted into the time-sensitive network data message.
[0011] In one embodiment, converting the target bus data into a time-sensitive network data message includes:
[0012] The 1553B bus data in the target bus data is subjected to Ethernet address mapping to obtain the time-sensitive network data message.
[0013] In one embodiment, converting the target bus data into a time-sensitive network data message includes:
[0014] Based on the configuration information, the bus data 422 in the target bus data is mapped to the time-sensitive network data message.
[0015] In one embodiment, the performing data control based on the time-sensitive network data message includes:
[0016] Parsing the time-sensitive network data message to obtain a CAN bus data frame;
[0017] Based on the CAN bus data state, the CAN bus data frame is sent.
[0018] In one embodiment, the performing data control based on the time-sensitive network data message includes:
[0019] Parsing the time-sensitive network data message to obtain a parsing result in a 1553B bus format;
[0020] The parsing result is sent based on the sending address of the 1553B bus data.
[0021] In one embodiment, the performing data control based on the time-sensitive network data message includes:
[0022] Parsing the time-sensitive network data message to obtain 422 bus data;
[0023] The target 422 bus data is sent according to the 422 bus format.
[0024] In a second aspect, an embodiment of the present application provides a bus data control device based on a time-sensitive network, comprising:
[0025] A conversion module, used to convert target bus data into a time-sensitive network data message; the target bus data includes three or more types of bus data;
[0026] A control module is used to perform data control based on the time-sensitive network data message.
[0027] In a third aspect, the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the program.
[0028] In a fourth aspect, the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.
[0029] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which implements the method described in the first aspect when executed by a processor.
[0030] The bus data control method and device based on a time-sensitive network provided in the embodiment of the present application can make the various bus data conform to a unified conversion standard by converting various bus data into time-sensitive network data messages and then performing data control, thereby realizing real-time interaction of three or more bus data, thereby ensuring the timeliness of bus data transmission, realizing real-time and reliability scheduling of bus data, improving the data compatibility and smoothness between multiple networks of the existing bus system, and realizing data fusion in various bus application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 It is a flow chart of a bus data control method based on a time-sensitive network provided by the present application;
[0033] Figure 2 It is a schematic diagram of the interaction between 1553B, CAN, 422 bus and Ethernet provided by this application;
[0034] Figure 3 It is a schematic diagram of the principle of the bus data control method based on the time-sensitive network provided by the present application;
[0035] Figure 4 It is a schematic diagram of the 422 serial port external information conversion diagram provided by this application;
[0036] Figure 5 It is a schematic diagram of the topology of information conversion between CAN buses provided by this application;
[0037] Figure 6 This is a schematic diagram of the inter-network information conversion topology of the Ethernet provided by the present application;
[0038] Figure 7 It is a structural schematic diagram of a bus data control device based on a time-sensitive network provided by the present application;
[0039] Figure 8 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] Figure 1 is a flow chart of a bus data control method based on a time-sensitive network provided in an embodiment of the present application. Figure 1 The embodiment of the present application provides a bus data control method based on a time-sensitive network, the execution subject of which may be an electronic device, for example, a controller, and the method may include:
[0042] Step 110: convert the target bus data into a time-sensitive network data message; the target bus data includes three or more types of bus data;
[0043] Step 120: Perform data control based on the time-sensitive network data message.
[0044] At present, the bus bandwidth of the Time-Sensitive Networking (TSN) can reach 1Gbps or even 10Gbps, but the bandwidth of each bus technology is relatively low. The shortcoming of the data conversion rate does not lie in the TSN data exchange function, but in the adaptation transmission bandwidth of each bus. However, in a multi-bus mixed network, the current cost of transforming the communication between the current networks through the conversion based on TSN protocol technology is relatively low. The new technology nodes can be directly adapted to TSN technology in a smooth upgrade, and are compatible with node devices in traditional networks, reducing the difficulty of network upgrades and funding investment, and realizing network integration and unification. The present application can perform bus data control based on TSN network technology.
[0045] In the TSN data fusion bus networking, the TSN data fusion bus module can realize the fusion of multiple heterogeneous networks and data conversion communication between multiple buses. The TSN switching port has TSN characteristics and can shape the data stream on the outbound port. The mixed use of time-aware queue protocol and credit-based shaping protocol on the TSN port can ensure low-latency transmission of periodic streams and delay determinism of non-periodic streams. All bus data can be converted into TSN data packets and forwarded through the switching matrix. Based on this, in step 110, the controller can first convert the target bus data into a time-sensitive network data packet. Among them, the target bus data can include three or more bus data. The bus data can include 1553B bus data, CAN bus data, 422 bus data, ISA bus data, PCI bus data, P2P bus data, etc.
[0046] In step 120, the controller can perform data control based on the time-sensitive network data message. Specifically, after obtaining the time-sensitive network data message converted by the target bus data, the controller can process and transmit it to other buses as needed, thereby realizing interactive control of multi-bus data. In addition, the controller can also adapt the bus redundancy design to ensure the reliability of data redundancy of each bus.
[0047] The bus data control method based on a time-sensitive network provided in the embodiment of the present application can make the various bus data conform to a unified conversion standard by converting various bus data into time-sensitive network data messages and then performing data control, thereby realizing real-time interaction of three or more bus data, thereby ensuring the timeliness of bus data transmission, realizing real-time and reliability scheduling of bus data, improving the data compatibility and smoothness between multiple networks of the existing bus system, and realizing data fusion in various bus application scenarios.
[0048] In one embodiment, converting target bus data into a time-sensitive network data message includes:
[0049] Configure the mapping relationship between the ID in the CAN bus data frame in the target bus data and the time-sensitive network;
[0050] Based on the mapping relationship, the CAN bus data is converted into time-sensitive network data messages.
[0051] After the CAN bus data enters the bus fusion module, the controller can encapsulate the CAN data according to the network planning configuration, and determine which nodes need to be sent according to the ID in the CAN bus data frame, and configure the mapping relationship between the CAN ID and the time-sensitive network. At the same time, the CAN node can map an Ethernet MAC address according to the configuration. According to the configuration information, the controller can add the source MAC address as the mapped MAC address for the converted CAN data, the destination MAC as the configured multicast destination MAC address and the virtual local area network (Virtual Local Area Network, VLAN), priority and other information. The interfaces configured with the same VLAN information believe that the data is interoperable. The multicast MAC address is the same VLAN broadcast mode when the multicast protocol is not started. After the multicast protocol is started, it can be transferred to the specified VLAN port according to the protocol learning, that is, based on the mapping relationship, the CAN bus data is converted into a time-sensitive network data message.
[0052] CAN data is converted to Ethernet data to increase priority. By reserving bandwidth for CAN data priority through the Qav protocol, the forwarding delay of CAN data can be guaranteed and the impact of network congestion on CAN data can be avoided. The controller can also add the TSN ports where the 1553 bus and the 422 bus are located to the VLAN where the CAN is located, and can also realize the mutual conversion between CAN and 1553 and CAN and 422 bus protocols.
[0053] The bus data control method based on time-sensitive network provided in the embodiment of the present application converts CAN bus data into time-sensitive network data messages through a mapping relationship, so that real-time interaction between CAN bus data and other bus data can be carried out, which can further ensure the timeliness of bus data transmission and realize real-time and reliability scheduling of bus data.
[0054] In one embodiment, converting target bus data into a time-sensitive network data message includes:
[0055] The 1553B bus data in the target bus data is mapped to an Ethernet address to obtain a time-sensitive network data message.
[0056] In the 1553 to Ethernet implementation, the controller can merge the 12 1553 buses A to virtualize a peripheral Ethernet MAC address and B to virtualize another peripheral Ethernet interface for external communication. The identification of different 1553 buses defines the protocol frame format and determines whether it needs to be sent to the corresponding bus. The controller can map the Ethernet MAC and IP tables according to the remote address field, and fill the destination MAC with the mapped MAC address. When the remote MAC is all 1, the destination MAC is mapped to the broadcast MAC to obtain a time-sensitive network data message. At the same time, the data is converted into Ethernet data to add VLAN and priority, realize the broadcast of the same VLAN, and enjoy the traffic shaping scheduling of the TSN protocol to ensure the delay determinism of data transmission.
[0057] The bus data control method based on a time-sensitive network provided in the embodiment of the present application obtains a time-sensitive network data message by mapping the 1553B bus data to an Ethernet address, thereby enabling real-time interaction between the 1553B bus data and other bus data, further ensuring the timeliness of bus data transmission and realizing real-time and reliability scheduling of bus data.
[0058] In one embodiment, converting target bus data into a time-sensitive network data message includes:
[0059] Based on the configuration information, the bus data 422 in the target bus data is mapped into a time-sensitive network data message.
[0060] In parallel 422 bus conversion, the controller can map the TSN interface to a 422 server, map the 422 data to the corresponding TSN structure data according to the configuration information, and add VLAN information. The data is converted into corresponding Ethernet data, VLAN and priority information are added, the broadcast of the same VLAN is realized, and the traffic shaping scheduling of the TSN protocol is enjoyed, ensuring the delay determinism of data transmission.
[0061] The bus data control method based on the time-sensitive network provided in the embodiment of the present application maps the 422 bus data into a time-sensitive network data message based on the configuration information, so that the 422 bus data can interact with other bus data in real time, which can further ensure the timeliness of the bus data transmission and realize the real-time and reliability scheduling of the bus data.
[0062] In one embodiment, data control based on a time-sensitive network data message includes:
[0063] Parse the time-sensitive network data message to obtain the CAN bus data frame;
[0064] Based on the CAN bus data status, receive the CAN bus data frame.
[0065] Before converting the CAN bus, the data received by the CAN interface is Ethernet data (i.e., time-sensitive network data messages). The controller parses the data frame content and can convert the data frame into CAN frame mode for encapsulation and transmission. Specifically, the controller can determine whether it is sent to CAN channel A or B based on the CAN bus status. If both channels are normal, which one can be sent first according to the demand, or both channels can be sent at the same time.
[0066] The bus data control method based on the time-sensitive network provided in the embodiment of the present application can realize the reception of various bus data by the CAN bus by parsing the time-sensitive network data message through the CAN bus data status, so that the CAN bus data can interact with other bus data in real time, which can further ensure the timeliness of bus data transmission and realize the real-time and reliability scheduling of bus data.
[0067] In one embodiment, data control based on a time-sensitive network data message includes:
[0068] Parse the time-sensitive network data message and obtain the parsing result in 1553B bus format;
[0069] Send the parsing result based on the sending address of the 1553B bus data.
[0070] Before converting the 1553B bus, the data received by the 1553B interface are all Ethernet data (ie, time-sensitive network data messages), and the controller can parse the data frame content to obtain the parsing result in the 1553B bus format.
[0071] The controller can determine which 1553B bus the data is sent to based on the content in the Ethernet bus, extract and encapsulate the parsing results of the 1553B bus format, and send the data to the 1553B dual channel.
[0072] The controller may also first send the data to the A path of the 1553B bus, determine that the A path is blocked according to the timeout period of the reply status frame, and then send the data to the B path.
[0073] The bus data control method based on the time-sensitive network provided in the embodiment of the present application can realize the reception of various bus data by the 1553B bus by the 1553B bus, so that the 1553B bus data and other bus data can be interacted in real time, which can further ensure the timeliness of bus data transmission and realize the real-time and reliability scheduling of bus data.
[0074] In one embodiment, data control based on a time-sensitive network data message includes:
[0075] Parse the time-sensitive network data message to obtain 422 bus data;
[0076] Send target 422 bus data in 422 bus format.
[0077] Before converting the data to the 422 bus, the data received by the 422 interface are all Ethernet data (i.e., time-sensitive network data packets). The controller can parse the data frame content, extract the 422 valid data, and obtain the 422 bus data. Then, the 422 bus data is sent to the 422 bus according to the 422 bus format.
[0078] The bus data control method based on the time-sensitive network provided in the embodiment of the present application sends the 422 bus data obtained by parsing the time-sensitive network data message to the 422 bus, which can realize the reception of various bus data by the 422 bus, thereby realizing real-time interaction between the 422 bus data and other bus data, and can further ensure the timeliness of the bus data transmission and realize the real-time and reliability scheduling of the bus data.
[0079] Based on the above embodiments, the interaction between 1553B, CAN, 422 bus and Ethernet can be realized. Figure 2 As shown in the figure, the TSN implementation module is the core bus module, responsible for data conversion and transmission within the device and between the device and external devices, and communication with other functional units, such as Figure 3 shown.
[0080] While realizing the mutual conversion of multiple heterogeneous protocols, the data fusion module has multiple TSN protocol characteristics, which can realize the mixed co-network transmission of periodic and non-periodic flows, avoid the problem of key data frame packet loss and increased transmission delay caused by network congestion, and forward periodic data strictly according to gating. For non-periodic data, different bandwidths are reserved according to priority to ensure the effective bandwidth of each data transmission. In addition, the frame preemption protocol can be superimposed to reduce the waiting time for high-priority data transmission, ensure the priority transmission of high-priority data, and ensure that low-priority data will not be lost. Using the replication and elimination protocol for data redundancy, single-point failure key data can achieve 0 packet loss.
[0081] Specifically, the bus data control method based on a time-sensitive network provided in this application also has the following functions:
[0082] (1) It has configurable RS422 synchronization, 1553B, CAN, Ethernet and other communication interfaces, and has the function of exchanging corresponding information with external devices;
[0083] (2) Any two bus protocols in the system can interact through conversion;
[0084] (3) Both the CAN bus and 1553B bus interfaces use A and B backup modes to achieve online hot standby, and data transmission and reception are achieved in a single-send and single-receive mode;
[0085] (4) The 422 serial port and the network port are the external input signal interfaces of the system. They can transfer external signals to the Ethernet interface. The external information conversion diagram is as follows: Figure 4 As shown;
[0086] (5) The CAN bus interface can form a network device for communication. The bus adopts a star diagram. The information conversion topology between CAN buses is shown in Figure 5 Each of CAN2~CAN5 can realize data exchange with 12 1553B signals according to the internal protocol;
[0087] (6) Ethernet uses a star diagram. The information conversion topology between networks is shown in Figure 6 Each of LAN3 to LAN6 can realize data interaction with 12 1553B signals according to the internal protocol;
[0088] (7) It has the ability to reconfigure external interfaces through software.
[0089] The bus data control device based on a time-sensitive network provided in the present application is described below. The bus data control device based on a time-sensitive network described below and the bus data control method based on a time-sensitive network described above can refer to each other.
[0090] Figure 7 is a schematic diagram of the structure of a bus data control device based on a time-sensitive network provided in an embodiment of the present application. Figure 7 , the bus data control device based on the time-sensitive network provided in the embodiment of the present application may include:
[0091] The conversion module 710 is used to convert the target bus data into a time-sensitive network data message; the target bus data includes three or more types of bus data;
[0092] The control module 720 is used to perform data control based on the time-sensitive network data message.
[0093] The bus data control device based on a time-sensitive network provided in the embodiment of the present application can make the various bus data conform to a unified conversion standard by converting various bus data into time-sensitive network data messages and then performing data control, thereby realizing real-time interaction of three or more bus data, thereby ensuring the timeliness of bus data transmission, realizing real-time and reliability scheduling of bus data, improving the data compatibility and smoothness between multiple networks of the existing bus system, and realizing data fusion in various bus application scenarios.
[0094] Specifically, the above-mentioned bus data control device based on time-sensitive network provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment in which the execution subject is the controller, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0095] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the bus data control method based on the time-sensitive network, for example, including:
[0096] Converting target bus data into time-sensitive network data messages; the target bus data includes three or more types of bus data;
[0097] Data control is performed based on the time-sensitive network data message.
[0098] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0099] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the steps of the bus data control method based on a time-sensitive network provided by the above methods, for example, including:
[0100] Converting target bus data into time-sensitive network data messages; the target bus data includes three or more types of bus data;
[0101] Data control is performed based on the time-sensitive network data message.
[0102] On the other hand, the present application further provides a computer program product, the computer program product comprising a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the steps of the bus data control method based on a time-sensitive network provided by the above methods, for example, including:
[0103] Converting target bus data into time-sensitive network data messages; the target bus data includes three or more types of bus data;
[0104] Data control is performed based on the time-sensitive network data message.
[0105] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0107] It should also be noted that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.
[0108] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0109] "Determine B based on A" in the embodiments of the present application means that the factor A should be considered when determining B. It is not limited to "B can be determined based on A alone", but should also include: "Determine B based on A and C", "Determine B based on A, C and E", "Determine C based on A, and further determine B based on C", etc. In addition, it can also include taking A as a condition for determining B, for example, "When A meets the first condition, use the first method to determine B"; for another example, "When A meets the second condition, determine B", etc.; for another example, "When A meets the third condition, determine B based on the first parameter", etc. Of course, it can also be a condition that takes A as a factor for determining B, for example, "When A meets the first condition, use the first method to determine C, and further determine B based on C", etc.
[0110] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A bus data control method based on a time-sensitive network, characterized in that: include: Convert target bus data into time-sensitive network data messages; The target bus data includes three or more bus data among 1553B bus data, CAN bus data, 422 bus data, ISA bus data, PCI bus data and P2P bus data; Performing data control based on the time-sensitive network data message; The converting the target bus data into a time-sensitive network data message comprises: Performing Ethernet address mapping on the 1553B bus data in the target bus data to obtain the time-sensitive network data message; The performing Ethernet address mapping on the 1553B bus data in the target bus data to obtain the time-sensitive network data message comprises: Based on the controller, the 12-way 1553 bus A-way is combined to virtualize a peripheral Ethernet MAC address, and another peripheral Ethernet interface is virtualized based on the B-way; Based on the controller, the Ethernet MAC and IP table are mapped according to the remote address field, and the destination MAC is filled with the mapped MAC address. When the remote MAC is all 1, the destination MAC is mapped to the broadcast MAC to obtain a time-sensitive network data message; Among them, by adding VLAN and priority in Ethernet data, broadcasting of the same VLAN is achieved and traffic shaping scheduling of the TSN protocol is enjoyed.
2. The bus data control method based on a time-sensitive network according to claim 1, characterized in that: The converting the target bus data into a time-sensitive network data message comprises: Configure a mapping relationship between an ID in a CAN bus data frame in the target bus data and a time-sensitive network; Based on the mapping relationship, the CAN bus data is converted into the time-sensitive network data message.
3. The bus data control method based on a time-sensitive network according to claim 1, characterized in that: The converting the target bus data into a time-sensitive network data message comprises: Based on the configuration information, the bus data 422 in the target bus data is mapped to the time-sensitive network data message.
4. The bus data control method based on a time-sensitive network according to claim 1, characterized in that: The performing data control based on the time-sensitive network data message includes: Parsing the time-sensitive network data message to obtain a CAN bus data frame; Based on the CAN bus data state, the CAN bus data frame is sent.
5. The bus data control method based on a time-sensitive network according to claim 1, characterized in that: The performing data control based on the time-sensitive network data message includes: Parsing the time-sensitive network data message to obtain a parsing result in a 1553B bus format; The parsing result is sent based on the sending address of the 1553B bus data.
6. The bus data control method based on a time-sensitive network according to claim 1, characterized in that: The performing data control based on the time-sensitive network data message includes: Parsing the time-sensitive network data message to obtain 422 bus data; The target 422 bus data is sent according to the 422 bus format.
7. A bus data control device based on a time-sensitive network, characterized in that: include: A conversion module, used for converting target bus data into a time-sensitive network data message; The target bus data includes three or more bus data among 1553B bus data, CAN bus data, 422 bus data, ISA bus data, PCI bus data and P2P bus data; A control module, used for performing data control based on the time-sensitive network data message; The conversion module is specifically used for: Performing Ethernet address mapping on the 1553B bus data in the target bus data to obtain the time-sensitive network data message; The conversion module is further specifically used for: Based on the controller, the 12-way 1553 bus A-way is combined to virtualize a peripheral Ethernet MAC address, and another peripheral Ethernet interface is virtualized based on the B-way; Based on the controller, the Ethernet MAC and IP table are mapped according to the remote address field, and the destination MAC is filled with the mapped MAC address. When the remote MAC is all 1, the destination MAC is mapped to the broadcast MAC to obtain a time-sensitive network data message; Among them, by adding VLAN and priority in Ethernet data, broadcasting of the same VLAN is achieved and traffic shaping scheduling of the TSN protocol is enjoyed.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the bus data control method based on the time-sensitive network as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the bus data control method based on a time-sensitive network as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Gateway data transmission method and gateway equipment
CN113079133A