Data processing method and apparatus based on redundancy of vehicle bus and Ethernet communication
By establishing port mapping between Ethernet and vehicle bus and generating macro indexes in locomotive network communication, the problems of data parsing errors and low efficiency in multi-functional vehicle bus and Ethernet communication are solved, and efficient synchronous processing of data parsing is achieved.
Patent Information
- Application Number
- CN202210918345.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-01
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-08-01
AI Technical Summary
In locomotive network communication, when the multi-functional vehicle bus communicates with Ethernet, data parsing errors occur frequently and efficiency is low, especially since the data parsing process is not standardized.
By determining the mapping data between the Ethernet mapping port and the vehicle bus port, a port macro index is generated, and data from the Ethernet or vehicle bus is retrieved through this index, ensuring the consistency and efficiency of data parsing.
This effectively avoids parsing errors caused by large arrays during Ethernet data exchange, improves the execution efficiency of data parsing, and ensures the synchronous processing of MVB bus and Ethernet data.
Smart Images

Figure CN117544484B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of locomotive network control technology, and more specifically, to a data processing method and apparatus based on vehicle bus and Ethernet communication redundancy. Background Technology
[0002] Currently, locomotive network communication mostly adopts a fully redundant design mode of multi-function vehicle bus (MVB) and Ethernet. In the whole vehicle control network (TCMS), the network control module (EGWM), input / output units (CIO, MIO), driver display unit (DDU), and other traction control units (TCU), event recording unit (EDRM), etc., all adopt redundant connection of multi-function vehicle bus and Ethernet. That is, the data transmitted in multi-function vehicle bus and Ethernet is consistent at any time, and the communication line can be automatically switched in the event of a failure in any network communication line.
[0003] Currently, when the multi-function vehicle bus (MVB) communicates simultaneously with Ethernet, both are handled separately without unified standardization. Specifically, the MVB calls its data processing function to parse or send data based on port and offset information. During Ethernet data exchange, all data at the same address in each Ethernet communication is retrieved and stored in an array. Therefore, the data in this array corresponds to data from multiple ports of the MVB. However, during data parsing, the offset of the data needs to be calculated by accumulating data from multiple port addresses, which can easily lead to parsing errors. Furthermore, when parsing MVB and Ethernet data, both data are retrieved simultaneously before parsing, resulting in low execution efficiency. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a data processing method and apparatus based on vehicle bus and Ethernet communication redundancy, which can improve the execution efficiency of data parsing. It effectively avoids parsing errors caused by the large arrays received and sent each time during Ethernet data exchange.
[0005] In a first aspect, the present invention provides a data processing method based on redundancy between vehicle bus and Ethernet communication, the method comprising:
[0006] Determine the Ethernet mapping port and establish the mapping data between the Ethernet mapping port and the vehicle bus port;
[0007] Generate a port macro index based on the mapping data;
[0008] The port macro index is used to access the Ethernet communication data or the vehicle bus bus data.
[0009] The determination of the Ethernet mapping port includes:
[0010] Based on the ports of the vehicle bus, a mapping port is established that corresponds one-to-one with the ports of the vehicle bus.
[0011] The step of generating a port macro index based on the mapping data includes:
[0012] The port macro index is obtained by storing the mapped ports of the Ethernet and the ports of the vehicle bus using a structure array.
[0013] The step of calling the Ethernet communication data or the vehicle bus data through the port macro index includes:
[0014] If the confidence level of the network signal corresponding to the Ethernet is greater than the confidence level of the network signal corresponding to the vehicle bus, the communication data of the Ethernet can be retrieved through the port macro index.
[0015] If the confidence level of the network signal corresponding to the Ethernet is less than or equal to the confidence level of the network signal corresponding to the vehicle bus, the bus data of the vehicle bus is retrieved through the port macro index.
[0016] Secondly, the present invention provides a data processing apparatus based on vehicle bus and Ethernet communication redundancy, the apparatus comprising:
[0017] The mapping unit is used to determine the Ethernet mapping port and establish the mapping data between the Ethernet mapping port and the vehicle bus port.
[0018] An indexing unit is used to generate a port macro index based on the mapping data;
[0019] The calling unit is used to call the Ethernet communication data or the vehicle bus bus data through the port macro index.
[0020] The mapping unit includes:
[0021] The mapping module is used to establish a one-to-one mapping port between the ports of the vehicle bus and the ports of the vehicle bus.
[0022] The index unit includes:
[0023] The index module is used to store the mapped ports of the Ethernet and the ports of the vehicle bus in the form of a structure array to obtain a port macro index.
[0024] The calling unit includes:
[0025] The first calling module is used to call the communication data of the Ethernet through the port macro index when the network signal confidence level corresponding to the Ethernet is greater than the network signal confidence level corresponding to the vehicle bus.
[0026] The second calling module is used to call the bus data of the vehicle bus through the port macro index when the network signal confidence level corresponding to the Ethernet is less than or equal to the network signal confidence level corresponding to the vehicle bus.
[0027] Thirdly, the present invention provides an electronic device, comprising: a processor, a memory, a communication interface, and a communication bus; wherein,
[0028] The processor, communication interface, and memory communicate with each other via a communication bus;
[0029] The processor is used to call computer instructions in memory to execute the steps of the data processing method described above, which is based on vehicle bus and Ethernet communication redundancy.
[0030] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions that, when executed, cause the computer to perform the steps of the data processing method based on vehicle bus and Ethernet communication redundancy described above.
[0031] This invention proposes a data processing method and apparatus based on redundancy between vehicle bus and Ethernet communication. It determines the Ethernet mapping port and establishes mapping data between the Ethernet mapping port and the vehicle bus port; generates a port macro index based on the mapping data; and calls the Ethernet communication data or the vehicle bus data through the port macro index. This improves the execution efficiency of data parsing and effectively avoids parsing errors caused by the large arrays received and sent each time during Ethernet data exchange.
[0032] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the embodiments or the prior art will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a flowchart illustrating a data processing method based on vehicle bus and Ethernet communication redundancy provided by the present invention.
[0035] Figure 2 This is a schematic diagram illustrating the data mapping relationship between Ethernet and MVB bus in a data processing method based on vehicle bus and Ethernet communication redundancy provided by the present invention.
[0036] Figure 3 This diagram illustrates the correspondence between port mapping and macro index in a data processing method based on vehicle bus and Ethernet communication redundancy provided by the present invention.
[0037] Figure 4 This is a schematic diagram of a data processing device based on vehicle bus and Ethernet communication redundancy provided by the present invention.
[0038] Figure 5 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0040] This invention provides a data processing method based on redundancy between vehicle bus and Ethernet communication. It is applicable to locomotive network control systems where both a vehicle bus (a serial data communication bus primarily used, but not exclusively used, for interconnected devices requiring interoperability and interchangeability) and Ethernet coexist. The method processes data transmitted from the vehicle bus via Ethernet and parses and applies it according to the vehicle bus protocol. In this embodiment, an MVB (Multifunction Vehicle Bus) bus is used as an example.
[0041] See Figure 1 As shown, the data processing method based on vehicle bus and Ethernet communication redundancy specifically includes the following:
[0042] S101: Determine the Ethernet mapping port and establish the mapping data between the Ethernet mapping port and the vehicle bus port;
[0043] The locomotive network control system adopts a dual transmission redundancy design of MVB bus and Ethernet. The data transmitted in the MVB bus and Ethernet are completely consistent, and the Ethernet communication protocol is consistent with the MVB bus communication.
[0044] In this step, Ethernet mapping ports are established based on the ports of the vehicle bus (MVB bus), corresponding one-to-one with the ports of the vehicle bus (MVB bus).
[0045] MVB bus communication is defined using ports, and the storage area size of a port is determined by its configured code (F_CODE) value. In this embodiment, a port uses 32 bytes (i.e., the code F_CODE value is 4), and one port number corresponds to one 32-byte storage area. During data reception and transmission, the value of a variable can be accessed simply by knowing its port number and its offset within the 32-byte range (byte variables use byte offsets, and bit variables use both byte offsets and bit offsets within the same byte).
[0046] For example, the communication functions used in MVB bus communication are shown below:
[0047] get_uchar(int port_num, int ofs_byte) / / Byte retrieval function, where port_num is the port number and ofs_byte is the offset position of the variable in 32 bytes.
[0048] `put_uchar(int port_num, int ofs_byte, unsigned char value)` / / This function writes bytes. `port_num` is the port number, `ofs_byte` is the offset of the variable within 32 bytes, and `value` is the value to be written. `int` and `unsigned` are both array types.
[0049] Ethernet communication data reception and transmission use char arrays, and each frame contains data from multiple ports. To prevent errors caused by the cumbersome process of Ethernet data parsing, such as... Figure 2 As shown, establishing mapping data between the Ethernet mapping port and the vehicle bus port ensures that the Ethernet data reception and transmission method is the same as that of the MVB bus. Only function overloading is needed. The function that exchanges data via Ethernet only needs to differ from the port number transmitted in the MVB bus communication method. Other parameters such as offsets are exactly the same. This also effectively prevents errors caused by inconsistency between Ethernet data acquisition and MVB bus, and prepares for the consistency of subsequent MVB bus and Ethernet data synchronization processing.
[0050] An example of Ethernet data exchange is as follows:
[0051] get_uchar(char*rdp_port,int ofs_byte) / / Byte retrieval function, rdp_port is the port mapping pointer, and ofs_byte is the offset position of the variable in 32 bytes;
[0052] put_uchar(char*rdp_port, int ofs_byte, unsigned char value) / / Byte write function, rdp_port is the port mapping pointer, ofs_byte is the offset position of the variable in 32 bytes, and value is the value to be written.
[0053] As described above, mapping Ethernet data to the MVB bus port mode and using function overloading to implement Ethernet data transmission and reception ensures consistency with the MVB bus method. This means that values can be accessed or written using only the port number and value offset. Because MVB is completely consistent with Ethernet, data exchange can be achieved by referring to the MVB bus communication protocol, eliminating the need for separate processing of Ethernet data and avoiding data parsing errors after Ethernet data reception.
[0054] S102: Generate a port macro index based on the mapping data;
[0055] In this step, a port macro index is obtained by storing the Ethernet mapping port and the vehicle bus port using a structure array.
[0056] To further optimize MVB bus and Ethernet data exchange, data selection is performed based on network signal priority during communication redundancy. The MVB bus and Ethernet receive functions are further encapsulated, storing Ethernet mapping ports and MVB bus ports in a structure array. A macro definition is used to establish a unique port macro index for the mapping ports of the MVB bus and Ethernet, such as... Figure 3 As shown, when passing port information parameters, only the macro index is passed. There is no need to consider the current communication method, and there is no need to call the MVB bus and Ethernet data exchange functions at the same time. Only the encapsulated function needs to be called to automatically perform data redundancy filtering, making function calls more convenient.
[0057] For example: Port index configuration array structure information:
[0058]
[0059] Example of a data exchange function for configuring macro indexes:
[0060] getUchar(int index, int ofs_byte, int commType) / / Byte retrieval function, where index is the port index, ofs_byte is the offset of the variable in 32 bytes, and commType is the communication redundancy filter signal (MVB or Ethernet).
[0061] putUchar(int index, int ofs_byte, unsigned char value, int commType) / / Byte write function, index is the port index number, ofs_byte is the offset position of the variable in 32 bytes, and commType is the communication redundancy filter signal (MVB or Ethernet).
[0062] As can be seen from the above description, by establishing a unique index between the Ethernet mapping port and the MVB bus port, when accessing the port, it is only necessary to use the port index to access both the Ethernet mapping port and the MVB bus port. Therefore, in the data exchange function, it is only necessary to pass the port index number and call the last encapsulated function once, without needing to pay attention to the specific communication method.
[0063] S103: Call the Ethernet communication data or the vehicle bus bus data through the port macro index.
[0064] In this step, a port macro index is used to map MVB ports to Ethernet mapped ports one-to-one. That is, one port macro index corresponds to one MVB port and one Ethernet mapped port. Therefore, when the getUchar function is called in the data transmission and reception function, only the port macro index needs to be passed. Inside this function, the overloaded function get_uchar is called to obtain the data from MVB and Ethernet respectively. Then, the return value is obtained according to the current communication selection mode or the current communication trust mode passed by the current commType parameter, and the data exchange can be completed.
[0065] The current communication selection mode or current communication trust mode selects data based on network signal priority signals when communication redundancy occurs. If the confidence level of the network signal corresponding to Ethernet is greater than that of the network signal corresponding to the vehicle bus, Ethernet communication data is retrieved via port macro index; if the confidence level of the network signal corresponding to Ethernet is less than or equal to that of the network signal corresponding to the vehicle bus, vehicle bus data is retrieved via port macro index.
[0066] As described above, when both MVB bus and Ethernet communication are present, Ethernet data can be automatically parsed and used in accordance with the MVB bus data protocol. A one-to-one mapping relationship is established between Ethernet data and MVB data, and port information is indexed, using macro indexes to correspond one-to-one with each port. Therefore, when calling functions to retrieve parsed data, it is not necessary to consider whether the information being retrieved is MVB or Ethernet; the program automatically handles the filtering.
[0067] As described above, the data processing method based on redundancy between vehicle bus and Ethernet communication provided in this embodiment of the invention normalizes Ethernet and MVB bus communication. During data exchange, it does not need to concern itself with the specific offset of the data to be parsed or sent in the Ethernet receive array; it only needs to refer to the MVB bus protocol to maintain consistency with MVB bus communication. Simultaneously, it automatically filters the currently trusted communication method within the function, i.e., whether to trust MVB bus or Ethernet data. Compared with the previously designed method of simultaneously receiving MVB bus and Ethernet data and then filtering the data, this method has higher execution efficiency. It also effectively avoids parsing errors that occur due to the large arrays received and sent each time during Ethernet data exchange.
[0068] This invention provides a specific implementation of a data processing device based on vehicle bus and Ethernet communication redundancy that can realize all the contents of the data processing method based on vehicle bus and Ethernet communication redundancy. See [link to specific implementation details]. Figure 4 The data processing device based on vehicle bus and Ethernet communication redundancy specifically includes the following:
[0069] Mapping unit 10 is used to determine the mapping port of Ethernet and establish mapping data between the mapping port of Ethernet and the port of vehicle bus;
[0070] Index unit 20 is used to generate a port macro index based on the mapping data;
[0071] Calling unit 30 is used to call the Ethernet communication data or the vehicle bus bus data through the port macro index.
[0072] Furthermore, the mapping unit includes:
[0073] The mapping module is used to establish a one-to-one mapping port between the ports of the vehicle bus and the ports of the vehicle bus.
[0074] Furthermore, the indexing unit includes:
[0075] The index module is used to store the mapped ports of the Ethernet and the ports of the vehicle bus in the form of a structure array to obtain a port macro index.
[0076] Furthermore, the calling unit includes:
[0077] The first calling module is used to call the communication data of the Ethernet through the port macro index when the network signal confidence level corresponding to the Ethernet is greater than the network signal confidence level corresponding to the vehicle bus.
[0078] The second calling module is used to call the bus data of the vehicle bus through the port macro index when the network signal confidence level corresponding to the Ethernet is less than or equal to the network signal confidence level corresponding to the vehicle bus.
[0079] The embodiments of the data processing device based on vehicle bus and Ethernet communication redundancy provided by the present invention can be used to execute the processing flow of the embodiments of the data processing method based on vehicle bus and Ethernet communication redundancy in the above embodiments. Its functions will not be repeated here, but can be referred to the detailed description of the above method embodiments.
[0080] As described above, the data processing apparatus based on vehicle bus and Ethernet communication redundancy provided in this embodiment of the invention determines the Ethernet mapping port and establishes mapping data between the Ethernet mapping port and the vehicle bus port; generates a port macro index based on the mapping data; and calls the Ethernet communication data or the vehicle bus bus data through the port macro index. This improves the execution efficiency of data parsing and effectively avoids parsing errors caused by the large arrays received and sent each time during Ethernet data exchange.
[0081] This invention provides an embodiment of an electronic device for implementing all or part of the data processing method embodiment based on vehicle bus and Ethernet communication redundancy. See also: Figure 5 The electronic device specifically includes the following components:
[0082] The system includes a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can call computer instructions stored in the memory 830 to execute the following methods:
[0083] Determine the Ethernet mapping port and establish the mapping data between the Ethernet mapping port and the vehicle bus port;
[0084] Generate a port macro index based on the mapping data;
[0085] The port macro index is used to access the Ethernet communication data or the vehicle bus bus data.
[0086] This invention provides a computer-readable storage medium for implementing all or part of the data processing method based on vehicle bus and Ethernet communication redundancy in the embodiments described above. The computer-readable storage medium stores computer instructions, which, when executed, cause the computer to perform all the steps of the data processing method based on vehicle bus and Ethernet communication redundancy in the above embodiments. For example, when the processor executes the computer instructions, it implements the following steps:
[0087] Determine the Ethernet mapping port and establish the mapping data between the Ethernet mapping port and the vehicle bus port;
[0088] Generate a port macro index based on the mapping data;
[0089] The port macro index is used to access the Ethernet communication data or the vehicle bus bus data.
[0090] While this invention provides the method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-inventive labor. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual device or client product execution, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment).
[0091] In the embodiments provided by this invention, it should be understood that the disclosed methods and apparatus can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0092] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0093] In addition, the functional units in the embodiments provided by the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0094] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0095] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device (system) embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0096] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Those skilled in the art will understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0097] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or substitution of these aspects and / or embodiments. Furthermore, each aspect and / or embodiment of the present invention can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0098] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. All should be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A data processing method based on redundancy between vehicle bus and Ethernet communication, characterized in that, include: Determine the Ethernet mapping port and establish mapping data between the Ethernet mapping port and the vehicle bus port; wherein, determining the Ethernet mapping port includes: establishing a one-to-one mapping port with the vehicle bus port based on the vehicle bus port; Generating a port macro index based on the mapping data includes: storing the mapped ports of the Ethernet and the ports of the vehicle bus using a structure array to obtain the port macro index; wherein, the data structure of the elements in the structure array is as follows: Wherein, portIndex is the port macro index, mvbPort is the MVB port number, and ethPort is the Ethernet mapped port pointer; the Ethernet communication data or the vehicle bus bus data can be retrieved through the port macro index.
2. The data processing method based on vehicle bus and Ethernet communication redundancy according to claim 1, characterized in that, The step of calling the Ethernet communication data or the vehicle bus data through the port macro index includes: If the confidence level of the network signal corresponding to the Ethernet is greater than the confidence level of the network signal corresponding to the vehicle bus, the communication data of the Ethernet can be retrieved through the port macro index. If the confidence level of the network signal corresponding to the Ethernet is less than or equal to the confidence level of the network signal corresponding to the vehicle bus, the bus data of the vehicle bus is retrieved through the port macro index.
3. A data processing device based on vehicle bus and Ethernet communication redundancy, characterized in that, include: A mapping unit is used to determine the mapping port of the Ethernet and establish mapping data between the mapping port of the Ethernet and the port of the vehicle bus; wherein, the mapping unit includes a mapping module, which is used to establish a mapping port that corresponds one-to-one with the port of the vehicle bus based on the port of the vehicle bus. An indexing unit is used to generate a port macro index based on the mapping data; the indexing unit includes an indexing module, which is used to store the mapped ports of the Ethernet and the ports of the vehicle bus using a structure array to obtain the port macro index; wherein, the data structure of the elements in the structure array is as follows: Where portIndex is the port macro index, mvbPort is the MVB port number, and ethPort is the Ethernet mapped port pointer; The calling unit is used to call the Ethernet communication data or the vehicle bus bus data through the port macro index.
4. The data processing device based on vehicle bus and Ethernet communication redundancy according to claim 3, characterized in that, The invocation unit includes: The first calling module is used to call the communication data of the Ethernet through the port macro index when the network signal confidence level corresponding to the Ethernet is greater than the network signal confidence level corresponding to the vehicle bus. The second calling module is used to call the bus data of the vehicle bus through the port macro index when the network signal confidence level corresponding to the Ethernet is less than or equal to the network signal confidence level corresponding to the vehicle bus.
5. An electronic device, characterized in that, include: Processor, memory, communication interface, and communication bus; among which, The processor, communication interface, and memory communicate with each other via a communication bus; The processor is used to invoke computer instructions in memory to execute the steps of the data processing method based on vehicle bus and Ethernet communication redundancy as described in any one of claims 1-2.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which, when executed, cause the computer to perform the steps of the data processing method based on vehicle bus and Ethernet communication redundancy as described in any one of claims 1-2.
