CN115913809B - Data distribution communication method, system, computer device and storage medium - Google Patents

Data distribution communication method, system, computer device and storage medium Download PDF

Info

Publication number
CN115913809B
CN115913809B CN202211180655.2A CN202211180655A CN115913809B CN 115913809 B CN115913809 B CN 115913809B CN 202211180655 A CN202211180655 A CN 202211180655A CN 115913809 B CN115913809 B CN 115913809B
Authority
CN
China
Prior art keywords
data
communication
control unit
management message
message communication
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.)
Active
Application number
CN202211180655.2A
Other languages
Chinese (zh)
Other versions
CN115913809A (en
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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202211180655.2A priority Critical patent/CN115913809B/en
Publication of CN115913809A publication Critical patent/CN115913809A/en
Application granted granted Critical
Publication of CN115913809B publication Critical patent/CN115913809B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to the technical field of vehicle-mounted technology, in particular to a data distribution communication method, a system, computer equipment and a storage medium, wherein the method comprises the following steps: determining a management message communication mode which can be carried by the micro control unit according to a preset communication mechanism; dividing the management message communication mode by utilizing data in the micro control unit; preprocessing data; and carrying out data distribution on the processed data by using the divided management message communication mode so as to communicate by using the distributed data. Therefore, the problems that in the related art, the DDS protocol stack cannot be carried due to limited operation resources of the MCU, a large number of management message communication modes cannot be used in the MCU, the DDS protocol stack is only deployed on the MPU, the whole vehicle communication architecture is complex, the communication delay is high and the like are solved.

Description

Data distribution communication method, system, computer device and storage medium
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a data distribution communication method, a system, a computer device, and a storage medium.
Background
With the rapid development of intellectualization and networking, more and more interactive data are carried on an automobile network, the transmission of the data by using a traditional controller area network (Controller Area Network, CAN) and a local interconnect network (Local Interconnect Network, LIN) is far insufficient, the vehicle-mounted Ethernet is added to greatly change the vehicle-mounted network architecture, and meanwhile, the service-oriented architecture (service-oriented architecture, SOA) design enables the system design to be more decentralised, so that the problem of decoupling upper-layer design and lower-layer transmission by adopting a communication middleware is very important. In the vehicle-mounted field, a plurality of communication middleware protocols are sequentially presented, and data distribution services (Data Distribution Service, DDS) are increasingly favored by host factories as communication middleware. At present, each host factory uses DDS as a vehicle-mounted communication middleware to decouple the connection between the application layer and the bottom layer transmission of the controller gradually, advances the SOA architecture design, and completes the transmission of the Ethernet data of the whole vehicle.
However, there are still many limitations in using a DDS protocol stack on the micro control unit (Micro Control Unit, MCU), for example, the limited memory resources in the MCU may not use a large amount of management message communication modes (topic) in the MCU, so that most host factories cannot or unintentionally deploy the DDS protocol stack on the MCU, but only deploy the DDS protocol stack on the MPU (Microprocessor Unit, microprocessor), which may result in complex overall vehicle communication architecture and high communication delay.
How to deploy a DDS protocol stack on an MCU to realize that a large number of management message communication modes can be used for whole vehicle communication is a problem to be solved.
Disclosure of Invention
The application provides a data distribution communication method, a system, computer equipment and a storage medium, which are used for solving the problems that in the related art, the DDS protocol stack cannot be carried due to limited operation resources of an MCU, a large number of management message communication modes cannot be used in the MCU, and the DDS protocol stack is only deployed on an MPU, so that the whole vehicle communication architecture is complex, the communication delay is high and the like.
An embodiment of a first aspect of the present application provides a data distribution communication method, which is applied to a micro control unit, including the following steps: determining a management message communication mode which can be carried by the micro control unit according to a preset communication mechanism; dividing the management message communication mode by utilizing the data in the micro control unit; preprocessing the data; and carrying out data distribution on the processed data by using the divided management message communication mode so as to communicate by using the distributed data.
According to the technical means, the embodiment of the application can determine the management message communication mode carried by the micro control unit according to the preset communication mechanism, divide the management message communication mode by utilizing the data in the micro control unit, preprocess the data, distribute the processed data by utilizing the divided management message communication mode so as to communicate by utilizing the distributed data, and can use a large number of management message communication modes (topic) in the micro control unit, so that the Ethernet node in the whole vehicle can normally operate a data distribution service protocol stack in a micro control unit chip to finish Ethernet communication.
Optionally, in one embodiment of the present application, before determining, according to a preset communication mechanism, a management message communication manner that can be carried by the micro control unit, the method includes: making a name and an identification of the management message communication mode of the client control unit; in the domain participant discovery phase, placing entities requiring communication in a domain, so that the entities of the communication complete a simple participant discovery protocol with each other; in the end point discovery stage, according to the name and the identification of the management message communication mode, establishing communication connection between a server control unit and the management message communication mode of the client control unit so as to complete a simple end point discovery protocol; and establishing the preset communication mechanism according to the simple participant discovery protocol and the simple breakpoint discovery protocol.
According to the technical means, the embodiment of the application can establish the preset communication mechanism by completing the simple participant discovery protocol and the simple endpoint discovery protocol, so that normal communication between the MCU chip and the MPU chip is completed under the condition that the numbers of topics which can be carried in the MCU chip and the MPU chip are different.
Optionally, in an embodiment of the present application, in the endpoint discovery stage, establishing a communication connection between a server control unit and the client control unit according to the name and the identifier of the management message communication mode includes: when a server control unit receives a remote procedure call protocol request of a client control unit, filtering the remote procedure call protocol request according to a method hash identification of the server control unit to obtain a remote procedure call protocol request conforming to the server control unit; when the client control unit receives the remote procedure call protocol reply of the server control unit, the remote procedure call protocol reply is filtered according to the global unique identifier of the client control unit, and a remote procedure call protocol request conforming to the client control unit is obtained, so that communication connection of the server control unit and the client control unit in a management message communication mode is established.
According to the technical means, when the server control unit receives the call protocol request of the client control unit, the request which does not belong to the client control unit can be filtered according to the method hash identification, and when the client control unit receives the call protocol reply of the server control unit, the response which does not belong to the client control unit is filtered according to the global unique identifier, so that the communication connection between the client and the server is established, the data can be conveniently loaded and displayed, the data can be screened according to the requirement, and the data quantity is reduced.
Optionally, in one embodiment of the present application, the preprocessing the data includes: according to the data communication channel in the micro control unit, carrying out data communication between different domains; according to the data interaction channel in the micro control unit, carrying out data interaction between different communication protocols; and carrying out redundancy processing on the data after the data communication and the data interaction to obtain the processed data.
According to the technical means, the embodiment of the application can perform data communication between different domains and data interaction between different communication protocols by constructing the data communication channel and the data interaction channel, and obtain the processed data through redundancy processing, so that the random use of the quality of service policy (Quality ofService, qoS) in the micro control unit can be realized, the real-time, efficient and flexible distribution of the data can be ensured, and the application requirements of various distributed real-time communication can be met.
Optionally, in one embodiment of the present application, before the data communication between the different domains according to the data communication channel in the micro control unit, the method includes: a first routing table for communications between the domains is determined; and establishing communication connection between entities of communication of different domains according to the first routing table to create the data communication channel.
According to the technical means, the embodiment of the application can establish communication connection by means of the routing table for the communication between the domains, so that the entity between different domains can establish communication.
Optionally, in one embodiment of the present application, before performing data interaction between different communication protocols according to a data interaction channel in the micro control unit, the method includes: formulating a second routing table for communication between different communication protocols; and establishing communication connection between different communication protocols according to the second routing table so as to establish the data interaction channel.
According to the technical means, the embodiment of the application CAN filter irrelevant CAN messages according to the content of the routing table by making the routing table among different communication protocols, and only receive and forward the CAN messages in the routing table.
Optionally, in an embodiment of the present application, the dividing the management message communication manner by using data in the micro control unit includes: determining the maximum value of the quantity of the management message communication modes carried by the micro control unit chip; carding the data type of the bearing data in the micro control unit chip; after dividing the management message communication modes according to a preset principle, judging whether the number of the management message communication modes obtained by dividing the management message communication modes according to the data types reaches the maximum value, wherein the preset principle is that the data types are configured in one-to-one correspondence with the management message communication modes; and dividing the management message communication modes according to the data types when the number of the divided management message communication modes does not reach the maximum value and a part of management message communication modes are reserved for later function expansion.
According to the technical means, the embodiment of the application can divide the data type of the bearing data in the micro control unit chip and the management message communication mode in a one-to-one correspondence manner, so that the data can be conveniently distinguished and analyzed.
Optionally, in an embodiment of the present application, the dividing the management message communication manner by using data in the micro control unit includes: when the number of the divided management message communication modes does not reach the maximum value, or the number of the divided management message communication modes reaches the maximum value and the management message communication modes with partial number not reserved are used for later function expansion, judging whether the management message communication modes meet service definition of a service-oriented architecture; and if the management message communication mode meets the service definition of the service-oriented architecture, classifying the data of the micro control chip according to the characteristics of the service-oriented architecture, dividing the data of the same type into one management message communication mode, and marking each data.
According to the technical means, the embodiment of the application can classify the data according to the service definition characteristics, the data can be divided into 3 topics (management message communication modes) according to the request, the response and the notification, the data can be classified according to the service characteristics, the number of topics is reduced, and the communication delay can be reduced. In this case, since a large amount of data is contained in one topic, the two parties of communication need to mark different data, so that the data can be conveniently distinguished and analyzed.
Optionally, in an embodiment of the present application, the dividing the management message communication manner by using data in the micro control unit includes: and if the management message communication mode meets the service definition of the service-oriented architecture, classifying the data according to the functional security level, classifying the data belonging to the same functional security level into one management message communication mode, and marking each data.
According to the technical means, the embodiment of the application can classify the data according to the functional security level, reduce the number of topic use and reduce communication delay. In this case, since a large amount of data is contained in one topic, the two parties of communication need to mark different data, so that the data can be conveniently distinguished and analyzed.
An embodiment of a second aspect of the present application provides a data distribution communication system including: the determining module is used for determining a management message communication mode which can be carried by the micro control unit according to a preset communication mechanism; the division module is used for dividing the management message communication mode by utilizing the data in the micro control unit; the preprocessing module is used for preprocessing the data; and the data distribution communication module is used for carrying out data distribution on the divided management message communication mode by utilizing the processed data so as to carry out communication by utilizing the distributed data.
Optionally, in one embodiment of the present application, the method includes: the first formulating module is used for formulating the name and the identification of the management message communication mode of the client control unit before the management message communication mode which can be carried by the micro control unit is determined according to a preset communication mechanism; a processing module, configured to, in a domain participant discovery phase, place entities that need to communicate in a domain, so that the communicating entities complete a simple participant discovery protocol with each other; the first establishing module is used for establishing communication connection between the server control unit and the client control unit in the management message communication mode according to the name and the identification of the management message communication mode in the endpoint discovery stage so as to complete a simple endpoint discovery protocol; and the second establishing module is used for establishing the preset communication mechanism according to the simple participant discovery protocol and the simple breakpoint discovery protocol.
Optionally, in an embodiment of the present application, the first building module is further configured to, when the server control unit receives a remote procedure call protocol request of the client control unit, filter the remote procedure call protocol request according to a method hash identifier of the server control unit, to obtain a remote procedure call protocol request conforming to the server control unit;
when the client control unit receives the remote procedure call protocol reply of the server control unit, the remote procedure call protocol reply is filtered according to the global unique identifier of the client control unit, and a remote procedure call protocol request conforming to the client control unit is obtained, so that communication connection of the server control unit and the client control unit in a management message communication mode is established.
Optionally, in one embodiment of the present application, the preprocessing module is further configured to perform data communication between different domains according to a data communication channel in the micro control unit; according to the data interaction channel in the micro control unit, carrying out data interaction between different communication protocols; and carrying out redundancy processing on the data after the data communication and the data interaction to obtain the processed data.
Optionally, in one embodiment of the present application, further includes: the second formulating module is used for formulating a first routing table of communication between domains before the data communication between different domains is carried out according to the data communication channel in the micro control unit; and a third establishing module, configured to establish a communication connection between entities of communication in different domains according to the first routing table, so as to create the data communication channel.
Optionally, in one embodiment of the present application, further includes: the third formulating module is used for formulating a second routing table for communication between different communication protocols before data interaction between different communication protocols is carried out according to the data interaction channel in the micro control unit; and the fourth establishing module is used for establishing communication connection among different communication protocols according to the second routing table so as to establish the data interaction channel.
Optionally, in an embodiment of the present application, the dividing module is further configured to determine a maximum value of the number of management message communication modes carried by the micro control unit chip; carding the data type of the bearing data in the micro control unit chip; after dividing the management message communication modes according to a preset principle, judging whether the number of the management message communication modes obtained by dividing the management message communication modes according to the data types reaches the maximum value, wherein the preset principle is that the data types are configured in one-to-one correspondence with the management message communication modes; and dividing the management message communication modes according to the data types when the number of the divided management message communication modes does not reach the maximum value and a part of management message communication modes are reserved for later function expansion.
Optionally, in an embodiment of the present application, the dividing module is further configured to determine whether the management message communication manner meets a service definition of a service-oriented architecture when the number of the divided management message communication manners does not reach the maximum value, or when the number of the divided management message communication manners reaches the maximum value without reserving a part of the number of the management message communication manners for later function expansion; and if the management message communication mode meets the service definition of the service-oriented architecture, classifying the data of the micro control chip according to the characteristics of the service-oriented architecture, dividing the data of the same type into one management message communication mode, and marking each data.
Optionally, in an embodiment of the present application, the dividing module is further configured to classify the data according to a functional security level if the management message communication manner meets a service definition of the service oriented architecture, divide the data belonging to the same functional security level into one management message communication manner, and mark each data.
An embodiment of a third aspect of the present application provides a computer apparatus comprising: the data distribution communication system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to realize the data distribution communication method according to the embodiment.
A fourth aspect of the present application provides a non-transitory computer readable storage medium having a computer program stored thereon, the program being executed by a processor for implementing the data distribution communication method as described in the above embodiments.
Therefore, the application has at least the following beneficial effects:
1. The embodiment of the application can determine the management message communication mode carried by the micro control unit according to the preset communication mechanism, divide the management message communication mode by utilizing the data in the micro control unit, preprocess the data, distribute the processed data by utilizing the divided management message communication mode so as to utilize the distributed data for communication, and can use a large number of management message communication modes (topic) in the micro control unit, so that the Ethernet nodes in the whole vehicle can normally operate the data distribution service protocol stack in the micro control unit chip to finish Ethernet communication.
2. The embodiment of the application can establish a preset communication mechanism by completing a simple participant discovery protocol and a simple endpoint discovery protocol, thereby completing normal communication between an MCU chip and an MPU chip under the condition that the numbers of topics which can be carried in the MCU chip and the MPU chip are different.
3. According to the embodiment of the application, when the server control unit receives the call protocol request of the client control unit, the request which does not belong to the client control unit is filtered according to the method hash identification, and when the client control unit receives the call protocol reply of the server control unit, the response which does not belong to the client control unit is filtered according to the global unique identifier, so that the communication connection between the client and the server is established, the data can be conveniently loaded and displayed, the data can be screened according to the requirement, and the data quantity is reduced.
4. The embodiment of the application can carry out data communication between different domains and data interaction between different communication protocols by setting up the data communication channel and the data interaction channel, and obtain the processed data through redundant processing, thereby realizing random use of a service quality strategy (Quality ofService, qoS) in the micro control unit, ensuring real-time, efficient and flexible distribution of the data and meeting various application requirements of distributed real-time communication.
5. The embodiment of the application can establish communication connection through the routing table for controlling communication between domains, so that the entity between different domains can establish communication.
6. The embodiment of the application CAN filter irrelevant CAN messages according to the content of the routing table by making the routing table among different communication protocols, and only receive and forward the CAN messages in the routing table.
7. The embodiment of the application can divide the data type of the bearing data in the micro control unit chip and the management message communication mode in a one-to-one correspondence way, thereby being convenient for data distinguishing and analyzing.
8. The embodiment of the application can classify the data into 3 topics (management message communication modes) according to the service definition characteristics, reduce the number of topics used and reduce the communication delay. In this case, since a large amount of data is contained in one topic, the two parties of communication need to mark different data, so that the data can be conveniently distinguished and analyzed.
9. The embodiment of the application can classify the data according to the functional security level, reduce the number of topic use and reduce communication delay. In this case, since a large amount of data is contained in one topic, the two parties of communication need to mark different data, so that the data can be conveniently distinguished and analyzed.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart of a data distribution communication method according to an embodiment of the present application;
Fig. 2 is a block diagram of a simple DDS communication system according to an embodiment of the present application;
FIG. 3 is a flow chart of a design of topic partitioning in an MCU chip according to an embodiment of the present application;
FIG. 4 is a flowchart of setting up data communication channels between different domains in an MCU chip according to an embodiment of the present application;
fig. 5 is a flowchart of setting up a data interaction channel between different communication protocols of a CAN and a DDS in an MCU chip according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a data package format according to an embodiment of the present application;
Fig. 7 is a flowchart of completing a DDS-based ethernet communication redundancy design in an MCU chip according to an embodiment of the present application;
FIG. 8 is a flow chart of a design of a topic unequal communication mechanism in an MCU chip according to an embodiment of the application;
Fig. 9 is a block diagram of a data distribution communication system according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Reference numerals illustrate: the system comprises a determining module-100, a dividing module-200, a preprocessing module-300, a data distribution communication module-400, a memory-1001, a processor-1002 and a communication interface-1003.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the application.
The data distribution communication method, system, computer device, and storage medium of the embodiments of the present application are described below with reference to the accompanying drawings. In view of the above-mentioned problems in the background art, the present application provides a data distribution communication method, which is applied to a micro control unit, in the method, a management message communication mode that can be carried by the micro control unit is determined according to a preset communication mechanism, the management message communication mode is divided by using data in the micro control unit, the data is preprocessed, the processed data is distributed by using the divided management message communication mode, so that the distributed data is used for communication, a large number of management message communication modes (topic) can be used in the micro control unit, so that an ethernet node in the whole vehicle can normally operate a data distribution service protocol stack in a chip of the micro control unit, and ethernet communication is completed. Therefore, the problems that in the related art, the DDS protocol stack cannot be carried due to limited operation resources of the MCU, a large number of management message communication modes cannot be used in the MCU, the DDS protocol stack is only deployed on the MPU, the whole vehicle communication architecture is complex, the communication delay is high and the like are solved.
Specifically, fig. 1 is a schematic flow chart of a data distribution communication method according to an embodiment of the present application.
In order to solve the problem of deployment of a DDS protocol stack on an MCU, the embodiment of the application provides a design method based on a DDS communication system on an MCU chip, so that an Ethernet node in the whole vehicle can normally operate the DDS protocol stack no matter the MCU chip or the MPU chip to complete Ethernet communication. As shown in fig. 2, a simple system structure schematic is used to show a communication system structure block diagram of the embodiment of the present application, including CAN nodes and ethernet nodes, which is not limited in detail, and the post design CAN be extended on the basis of the simple system structure schematic. In the communication system of the embodiment of the application, S201 represents a CAN node, S202 represents that the ECU has both CAN communication capability and Ethernet communication capability, wherein S201 and S202 are connected through a CAN network segment, and data interaction is performed according to a traditional CAN communication mode; the S202 and the S203 are connected through the Ethernet, and the DDS protocol stack is adopted as a communication middleware.
As shown in fig. 1, the data distribution communication method includes the steps of:
In step S101, according to a preset communication mechanism, a management message communication mode that can be carried by the micro control unit is determined.
The DDS data distribution service is a new generation of distributed real-time communication middleware protocol, adopts a publish/subscribe system architecture, emphasizes the centering of data, provides rich QoS service quality strategies, ensures the real-time, efficient and flexible distribution of the data, and can meet the application requirements of various distributed real-time communication. In terms of state confirmation of both communication parties, each entity in the DDS protocol stack has an automatic keep-alive and declaring survival mechanism, and the embodiment of the application can determine the communication mode of the management message carried by the micro control unit according to a preset communication mechanism, so that both communication parties can know the life cycle and the survivability of the opposite terminal in real time and process in time.
In step S102, the management message communication mode is divided by data in the micro control unit.
In one embodiment of the present application, partitioning management messaging means using data in a micro control unit includes: determining the maximum value of the quantity of management message communication modes carried by the micro control unit chip; carding the data type of the bearing data in the micro control unit chip; after the management message communication modes are divided according to a preset principle, judging whether the number of the management message communication modes after the management message communication modes are divided according to the data types reaches the maximum value, wherein the preset principle is that the data types are configured in one-to-one correspondence with the management message communication modes; when the number of the divided management message communication modes does not reach the maximum value and a part of the management message communication modes are reserved for later function expansion, the management message communication modes are divided according to the data types.
The preset rule may assign a topic to a data type or class of data.
In order to facilitate data distinguishing and analysis, the embodiment of the application can reasonably calculate and deploy a DDS protocol stack according to the resource allocation situation in the MCU chip and the resource situation occupied by each entity of the DDS, obtain the maximum topic number which can be borne by the MCU chip under the condition of the available resources in the MCU chip through calculation or simulation, and bear communication data of one data type by one topic, and comb the data type which needs to be transmitted through the DDS protocol stack according to the service or functional design of the whole vehicle; calculating according to a data type or a data type rule of distributing a topic, and judging whether the maximum topic carding carried by the MCU chip is met or not; if the data and topic can be matched, one data type can be put into one topic according to the requirement; when the data designed at the present stage does not meet the requirement and partial number of topics are reserved for later function expansion, the embodiment of the application can judge whether the maximum topics carding carried by the MCU chip is met or not, and divide the topics in the MCU chip according to the data type.
In one embodiment of the present application, partitioning management messaging means using data in a micro control unit includes: when the number of the divided management message communication modes does not reach the maximum value, or the number of the divided management message communication modes reaches the maximum value and the management message communication modes with partial number not reserved are used for the later function expansion, judging whether the management message communication modes meet the service definition of the service-oriented architecture; if the management message communication mode meets the service definition of the service-oriented architecture, classifying the data of the micro control chip according to the characteristics of the service-oriented architecture, dividing the data of the same type into one management message communication mode, and marking each data.
Specifically, when the number of the divided topics does not reach the maximum value or the number of unreserved partial topics is used for the later function expansion, because the communication of the current automobile industry is based on the Service defined by the Service oriented architecture (Service-Oriented Architecture), the embodiment of the application can judge whether the topics meet the Service definition of the Service oriented architecture or not, if so, the embodiment of the application can classify the data into 3 topics according to the characteristics of the Service, and the data can be divided into 3 topics according to the request, the response and the notification, thereby reducing the number of the topics used and reducing the communication delay. In this case, since a large amount of data is contained in one topic, the two parties of communication need to mark different data, so that the data can be conveniently distinguished and analyzed.
In one embodiment of the present application, partitioning management messaging means using data in a micro control unit includes: if the management message communication mode does not meet the service definition of the service-oriented architecture, classifying the data according to the functional security level, classifying the data belonging to the same functional security level into one management message communication mode, and marking each data.
It can be understood that when topic does not meet the service definition of the service-oriented architecture, the embodiment of the application can classify the data according to the functional security level, reduce the number of topic used, reduce the communication delay, and mark different data by referring to the implementation manner of the embodiment, thereby facilitating the data distinction and analysis.
In summary, the data types are divided, if the maximum number of requirements is not met, all requests in the SOA service can be mapped to request topic, all responses are mapped to response topic, and all notifications are mapped to notification topic according to SOA service characteristics based on an RPC (Remote Procedure Call Protocol ) framework; when the number of the divided tubes topic does not reach the maximum value, topic division can be performed according to the security level; after division is completed, the embodiment of the application can divide national standard data, cloud platform management and control data, file data in a vehicle and the like, and respectively allocate independent topics according to data types.
The following details of step S102 in the embodiment of the present application with reference to fig. 3 specifically include the following steps:
S301: according to the resource allocation situation in the MCU chip, reasonably calculating and deploying the DDS protocol stack and the resource situation occupied by each entity of the DDS, and then obtaining the maximum topic number which can be borne by the MCU chip under the condition of the available resources in the MCU chip through calculation or simulation;
S303: a topic bears communication data of a data type, and the data type which is required to be transmitted through a DDS protocol stack is combed according to the service or function design of the whole vehicle;
S303: calculating according to a data type or a data type rule of distributing a topic, and judging whether the maximum topic carding carried by the MCU chip is met or not;
s304: when the data designed at the present stage meet the requirements, the requirements such as later functional expansion and the like are also considered, the number of partial topics is reserved, and whether the maximum topics carding carried by the MCU chip is met or not is judged under the condition;
S305: if the data and topic can be matched, one data type can be put into one topic according to the requirement;
s306: when S303 does not meet the requirement, as the communication of the automobile industry at the present stage is based on the service defined by the SOA architecture, the data can be classified according to the characteristics of the service, and the number of topic uses is reduced;
s307: according to the service definition characteristics, the data can be classified according to the request, response and notification and divided into 3 topics; in this case, one topic contains a large amount of data, and the two communication parties need to identify different data, so that the data can be conveniently distinguished and analyzed;
S308: whether data which is not suitable for SOA service, such as log data, exists in the whole vehicle or not is combed;
S309: for the situation that a lot of data which is not suitable for SOA service exists in the whole vehicle, the data can be reasonably distributed into the independent topics under the condition that the number of topics deployed is enough;
S310: if the data definition is not carried out according to the SOA service in the whole vehicle, the data can be classified according to the functional security level, and meanwhile, different data are required to be identified by referring to S307, so that the data can be conveniently distinguished and analyzed.
In step S103, data is preprocessed.
In one embodiment of the application, preprocessing data includes: according to the data communication channel in the micro control unit, data communication between different domains is carried out; according to the data interaction channel in the micro control unit, carrying out data interaction between different communication protocols; and carrying out redundancy processing on the data after data communication and data interaction to obtain the processed data.
Because the data interaction between different domains cannot be performed, in practical application, certain data inevitably exists and the cross-domain interaction is actually needed, in this case, the gateway can respectively establish connection with the entities needing to interact data in different domains (domains) in the service discovery stage. During data communication, the gateway reads the source ECU data through the subscriber entity established in the source domain, and then the gateway sends the data to the destination ECU data through the publisher entity established in the destination domain.
It should be noted that, in the embodiment of the present application, data communication channels between different domains may be built in the MCU chip to perform data communication between different domains, as shown in fig. 4, and specific steps are as follows:
s401: formulating a routing table for communication among domains, wherein the routing table needs to comprise: communication data needing to be routed, a receiving and transmitting node of the data, domain where the data is located, and DDS entity information of the data, and content can be added according to actual conditions;
S402: the gateway respectively completes service discovery with entities in different domains and establishes communication connection. When the data transmitting end is A and the data receiving end is B, two entities X, Y are created in the gateway when the A and the B are in different domains, X and A are in one domain, and the two entities can establish communication connection so as to normally perform data interaction; y and B are in one domain, two entities can establish communication connection, data interaction can be normally carried out, and X and Y are used as entities for carrying out data exchange of different domains in the gateway;
S403: the gateway completes the interaction of the direct data of different domains. When data communication is performed, if the gateway receives the data sent by the A to the X, the gateway sends the data to the B through the data of the X entity A, and then the entity Y is called to complete the data routing;
S404: qos compatibility matching. Because both sides of actual communication are A and B, the Qos of A and B needs to consider the compatibility problem, and meanwhile, the Qos as X and Y needs to be matched with A, B, so that the communication failure caused by the Qos design problem is avoided. If A is reliability, B may be best_ effert, where X may be reliability or best_ effert, but Y must be best_ effert.
Further, according to the embodiment of the application, data interaction between different communication protocols CAN be performed according to the data interaction channel in the micro control unit, mainly the data interaction channel between different communication protocols of CAN and DDS is built in the MCU chip, and specific CAN message forwarding CAN be performed for CAN to DDS, forwarding delay is controllable, forwarding condition design, data encapsulation format design, topic design corresponding to the CAN message and the like.
The specific CAN message is forwarded mainly to avoid invalid load and filter irrelevant data; the forwarding delay is required to be evaluated according to forwarding conditions, hardware processing capacity and the like, and meanwhile, a data user is required to judge the availability of data according to the forwarding delay; the forwarding condition is that the gateway is required to transmit and receive data according to the designed forwarding condition, so that the asynchronism among different gateways is avoided; the data encapsulation format is designed to ensure that the data of the receiving and transmitting sides are readable, the sender needs to carry out data encapsulation according to the message encapsulation format, and the receiver needs to carry out unpacking according to the encapsulation format; the topic design corresponding to the CAN message is designed to be compatible with different communication protocols. As shown in fig. 5, the specific steps are as follows:
s501: designing a CAN-DDS routing table, and formulating the routing table according to the functional requirements;
S502: the gateway filters the irrelevant CAN message. The gateway filters invalid CAN messages from the source network segment according to the content in the CAN-DDS routing table, and only receives and forwards the CAN messages in the routing table;
S503: and (5) gateway forwarding condition design. In order to ensure the forwarding time and consider the limitation of resources in MCU, the gateway is internally provided with forwarding conditions as follows: 1) When the CAN message period is less than or equal to 50ms, the forwarding time T=5ms, the gateway forwards the received CAN message once every 5ms, and after the data is forwarded, T is set for rechemg; if no data is received in the forwarding period, the data is not forwarded in the period, and the timer is set. 2) When the CAN message period is more than 50ms, the forwarding time T=10ms, the gateway forwards the received CAN message once every 10ms, and after the data is forwarded, T is set for rechemg; if no data is received in the forwarding period, the data is not forwarded in the period, and a timer is set;
S504: topic design. When one MCU is accessed into a plurality of CAN network segments and data of the plurality of CAN network segments need to be forwarded at the same time, one topic needs to design a plurality of subsets of different types to bear the data of the different CAN network segments, namely, one CAN network segment data is packaged into one data subset;
S505: and (5) packaging data. To ensure that both parties can properly parse and identify data, a uniform package format needs to be designed, as shown in fig. 6. Wherein, the Payload part content is shown in the following table, and table 1 is a Payload part information table in the data encapsulation format;
TABLE 1
S506: when the forwarding condition is met, the gateway calls a DDS protocol stack to encapsulate data into an RTPS (real-time polling service) data packet, and sends the data to an Ethernet network segment to a receiver;
S507: and (5) calculating forwarding delay. When the forwarding time t=5 ms, the maximum forwarding delay of a single CAN message is 5ms; when the forwarding time t=10 ms, the maximum forwarding delay of a single CAN packet is 10ms.
Further, the data after data communication and data interaction can have main data and redundant data, and the embodiment of the application can complete the identification of the main data and the redundant data by processing the redundant data, thereby meeting the DDS redundant design requirement.
Specifically, in a communication architecture where CAN and ethernet coexist, CAN data mainly bear safety-related content, and in CAN data, main data and redundant data exist in the content of driving safety, so as to meet safety requirements, and signals of the main path and the redundant path CAN are transmitted to the same ethernet node (such as an intelligent driving control module) through the CAN to the ethernet. As shown in fig. 7, the embodiment of the present application describes in detail the preprocessing of the ethernet communication redundant data based on DDS completed in the MCU chip, including the following steps:
S701: the CAN node data is sent to a main CAN network segment according to the safety requirement, and the redundant signals are sent to a redundant CAN network segment;
S702: the gateway puts the data into the corresponding topic according to the receiving channel of the signal, wherein the gateway receives the data of the main CAN network segment and then puts the data into the main topic; the gateway receives the data of the redundant CAN network segment and then puts the data into the redundant topic;
S703: in the gateway, qos is designed for writers in the data main topic from the main CAN segment, which are ownershped. Kind= EXCLUSIVE, OWNERSHIP _stream. Value=10, respectively, and Qos is designed for writers in the data redundancy topic from the redundancy CAN segment, which are ownershped. Kind= EXCLUSIVE, OWNERSHIP _stream. Value=2, respectively; the OWNERSHIP_STRENTH.value can be configured according to requirements, and the larger the value is, the higher the receiving end processes preferentially;
S704: when two topic data in S603 are sent to the receiving end at the same time, the receiving end determines main data and redundant data according to the size of ownersfip_stream.
In step S104, the data distribution is performed on the processed data by using the divided management message communication method to communicate by using the distributed data.
After reasonably dividing the management message communication mode, the embodiment of the application can utilize the divided management message communication mode to carry out data distribution on the processed data so as to utilize the distributed data to carry out communication, and can use a large number of management message communication modes (topics) in the micro control unit, so that the Ethernet nodes in the whole vehicle can normally operate a data distribution service protocol stack in the micro control unit chip to complete Ethernet communication.
In one embodiment of the present application, before determining a management message communication manner that can be carried by the micro control unit according to a preset communication mechanism, the method includes: making a name and an identification of a management message communication mode of a client control unit; in the domain participant discovery phase, the entities needing to be communicated are placed in a domain, so that the entities in communication complete a simple participant discovery protocol with each other; in the end point discovery stage, according to the name and the identification of the management message communication mode, establishing communication connection between the server control unit and the client control unit in the management message communication mode so as to complete a simple end point discovery protocol; the preset communication mechanism is established according to the simple participant discovery protocol and the simple breakpoint discovery protocol.
According to the resource situation of each chip mentioned in the background art, the numbers of topics that can be carried in the MCU chip and the MPU chip are different, and in order to complete normal communication between the two, a simple participant discovery protocol and a simple endpoint discovery protocol need to be completed. In the domain participant discovery stage, the embodiment of the application needs all participants in one domain (domain), so that the domain participants deployed in the MCU chip and the domain participants deployed in the MPU chip which need to interact can be placed in one domain, so that the communicating entities can complete a simple participant discovery protocol with each other; in the endpoint discovery stage, all DDS entities deployed in the MPU chip need to be found and matched with the DDS entities deployed in the MCU chip, and the entities deployed in the MPU chip need to send all information to the entities deployed in the MCU chip, wherein the information comprises: the entity deployed in the MCU chip selectively learns the received topic_name according to the self requirement, and simultaneously sends EDP messages to the entity deployed in the MPU chip needing to establish connection according to the learned topic_name and type_name information, so that endpoint discovery is completed, and a mechanism of unequal communication is completed after two discovery stages are completed.
The following describes in detail the implementation process of establishing the preset communication mechanism in the embodiment of the present application with reference to fig. 8, which specifically includes the following steps:
S801: in the early design stage, when the MCU is used as a client, the service or method required to be called by each MCU is concentrated in a request topic, a response topic and a notification topic, but the names of the topics need to be added with an identifier 'MCU_C', so that SEDP (simple endpoint discovery protocol) is conveniently completed. ;
S802: in the domain participant discovery phase, all MCUs and MPUs can complete SPDP (simple participant discovery protocol) with each other in one domain;
S803: in the endpoint discovery stage, the client MCU sends data with an MCU_C topic name, the server MCU/the server MPU selects topic which can be provided for the client MCU by itself, the topic needs to be forcedly matched with the topic of the client MCU to establish connection, meanwhile, the server MCU or the server MPU sends the topic name and the method hash id carried by itself to the client MCU through the topic_data, and the client MCU completes SEDP (simple endpoint discovery protocol) according to a service method required by the method hash id matching.
Optionally, in an embodiment of the present application, in the endpoint discovery stage, establishing a communication connection of the management message communication mode of the server control unit and the client control unit according to the name and the identifier of the management message communication mode includes: when the server control unit receives the remote procedure call protocol request of the client control unit, filtering the remote procedure call protocol request according to the method hash identification of the server control unit to obtain a remote procedure call protocol request conforming to the server control unit; when the client control unit receives the remote procedure call protocol reply of the server control unit, the remote procedure call protocol reply is filtered according to the global unique identifier of the client control unit, and a remote procedure call protocol request conforming to the client control unit is obtained, so that communication connection of the management message communication mode of the server control unit and the client control unit is established.
According to the embodiment of the application, when the server control unit receives the call protocol request of the client control unit, the request which does not belong to the client control unit is filtered according to the method hash identification, and when the client control unit receives the call protocol reply of the server control unit, the response which does not belong to the client control unit is filtered according to the global unique identifier, so that the communication connection between the client and the server is established, the data can be conveniently loaded and displayed, the data can be screened according to the requirement, and the processed data volume is reduced. Specifically, step S804 shown in fig. 8 is implemented: in the data communication phase: when receiving an RPC (Remote Procedure Call ) request of the client MCU, the server MCU/the server MPU filters out requests which do not belong to the server MCU according to a method hash id; when the client MCU side receives the RPC reply of the server MCU/the server MPU, the response which does not belong to the client MCU side is filtered according to the GUID (Globally Unique Identifier, global unique identifier).
In one embodiment of the application, before data communication between different domains is performed according to a data communication channel in the micro control unit, it includes: a first routing table for communications between the domains is determined; communication connections between entities of the communication of the different domains are established according to the first routing table to create a data communication channel.
The first routing table in the embodiment of the present application may include: communication data needing to be routed, a receiving and transmitting node of the data, domain where the data is located, and DDS entity information of the data can be added according to actual situations. And completing service discovery according to the entities in different domains of the routing table, and establishing communication connection so that the entities in different domains can establish communication.
Optionally, in one embodiment of the present application, before performing data interaction between different communication protocols according to a data interaction channel in the micro control unit, the method includes: formulating a second routing table for communication between different communication protocols; and establishing communication connection between different communication protocols according to the second routing table to create a data interaction channel.
The second routing table in the embodiment of the application is a CAN-to-DDS routing table, and CAN be formulated according to the functional requirements without specific limitation. By using the second routing table of the embodiment of the application, communication connection among different communication protocols is established, so that invalid CAN messages from a source network segment are filtered according to the content of the routing table, and only the CAN messages in the routing table are received and forwarded.
According to the data distribution communication method provided by the embodiment of the application, the management message communication mode which can be carried by the micro control unit is determined according to the preset communication mechanism, the management message communication mode is divided by the data in the micro control unit, the data is preprocessed, the processed data is distributed by the divided management message communication mode so as to communicate by the distributed data, a large number of management message communication modes (topic) can be used in the micro control unit, and the Ethernet nodes in the whole vehicle can normally operate a data distribution service protocol stack on a micro control unit chip to complete Ethernet communication. Therefore, the problems that in the related art, the DDS protocol stack cannot be carried due to limited operation resources of the MCU, a large number of management message communication modes cannot be used in the MCU, the DDS protocol stack is only deployed on the MPU, the whole vehicle communication architecture is complex, the communication delay is high and the like are solved.
A data distribution communication system according to an embodiment of the present application, which is applied to a micro control unit, will be described next with reference to the accompanying drawings.
Fig. 9 is a block diagram of a data distribution communication system according to an embodiment of the present application.
As shown in fig. 9, the data distribution communication system 10 includes: the determining module 100, the dividing module 200, the preprocessing module 300 and the data distribution communication module 400.
The determining module 100 is configured to determine, according to a preset communication mechanism, a management message communication manner that can be carried by the micro control unit; the division module 200 is configured to divide the management message communication mode by using data in the micro control unit; a preprocessing module 300 for preprocessing data; the data distribution communication module 400 is configured to perform data distribution on the divided management message communication manner by using the processed data, so as to perform communication by using the distributed data.
In one embodiment of the present application, the system 10 of the present embodiment further comprises: the system comprises a first formulating module, a processing module, a first establishing module and a second establishing module.
The first formulating module is used for formulating names and identifications of management message communication modes of the client control units before determining the management message communication modes which can be carried by the micro control units according to a preset communication mechanism; the processing module is used for placing the entities needing to be communicated in one domain in the domain participant discovery stage so that the communicating entities can complete a simple participant discovery protocol; the first establishing module is used for establishing communication connection between the server control unit and the client control unit in the endpoint discovery stage according to the name and the identifier of the management message communication mode so as to complete a simple endpoint discovery protocol; and the second establishing module is used for establishing a preset communication mechanism according to the simple participant discovery protocol and the simple breakpoint discovery protocol.
In one embodiment of the present application, the first building module is further configured to filter the remote procedure call protocol request according to the method hash identifier of the server control unit when the server control unit receives the remote procedure call protocol request of the client control unit, to obtain a remote procedure call protocol request conforming to the server control unit; when the client control unit receives the remote procedure call protocol reply of the server control unit, the remote procedure call protocol reply is filtered according to the global unique identifier of the client control unit, and a remote procedure call protocol request conforming to the client control unit is obtained, so that communication connection of the management message communication mode of the server control unit and the client control unit is established.
In one embodiment of the present application, the preprocessing module 300 is further configured to perform data communication between different domains according to the data communication channel in the micro control unit; according to the data interaction channel in the micro control unit, carrying out data interaction between different communication protocols; and carrying out redundancy processing on the data after data communication and data interaction to obtain the processed data.
In one embodiment of the present application, the system 10 of the present embodiment further comprises: the second formulating module and the third establishing module.
The second formulating module is used for formulating a first routing table of communication between domains before carrying out data communication between different domains according to the data communication channel in the micro control unit; and the third establishing module is used for establishing communication connection between entities of communication of different domains according to the first routing table so as to establish a data communication channel.
In one embodiment of the present application, the system 10 of the present embodiment further comprises: the third formulating module and the fourth establishing module.
The third formulating module is used for formulating a second routing table for communication between different communication protocols before data interaction between different communication protocols is carried out according to the data interaction channel in the micro control unit; and the fourth establishing module is used for establishing communication connection among different communication protocols according to the second routing table so as to establish a data interaction channel.
Optionally, in one embodiment of the present application, the partitioning module 200 is further configured to determine a maximum value of the number of management message communication modes carried by the micro control unit chip; carding the data type of the bearing data in the micro control unit chip; after the management message communication modes are divided according to a preset principle, judging whether the number of the management message communication modes after the management message communication modes are divided according to the data types reaches the maximum value, wherein the preset principle is that the data types are configured in one-to-one correspondence with the management message communication modes; when the number of the divided management message communication modes does not reach the maximum value and a part of the management message communication modes are reserved for later function expansion, the management message communication modes are divided according to the data types.
In one embodiment of the present application, the partitioning module 200 is further configured to determine whether the management message communication manner satisfies a service definition of the service-oriented architecture when the number of the partitioned management message communication manners does not reach a maximum value, or when the number of the partitioned management message communication manners reaches a maximum value without reserving a part of the number of the management message communication manners for the later function expansion; if the management message communication mode meets the service definition of the service-oriented architecture, classifying the data of the micro control chip according to the characteristics of the service-oriented architecture, dividing the data of the same type into one management message communication mode, and marking each data.
In one embodiment of the present application, the partitioning module 200 is further configured to classify the data according to the functional security level if the management message communication manner satisfies the service definition of the service oriented architecture, partition the data belonging to the same functional security level into one management message communication manner, and mark each data.
It should be noted that the foregoing explanation of the embodiment of the data distribution communication method is also applicable to the data distribution communication system of this embodiment, and will not be repeated here.
According to the data distribution communication system provided by the embodiment of the application, the management message communication mode which can be carried by the micro control unit is determined according to the preset communication mechanism, the management message communication mode is divided by the data in the micro control unit, the data is preprocessed, the processed data is distributed by the divided management message communication mode so as to communicate by the distributed data, a large number of management message communication modes (topic) can be used in the micro control unit, and the Ethernet nodes in the whole vehicle can normally operate a data distribution service protocol stack on a micro control unit chip to complete Ethernet communication. Therefore, the problems that in the related art, the DDS protocol stack cannot be carried due to limited operation resources of the MCU, a large number of management message communication modes cannot be used in the MCU, the DDS protocol stack is only deployed on the MPU, the whole vehicle communication architecture is complex, the communication delay is high and the like are solved.
Fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device may include:
Memory 1001, processor 1002, and a computer program stored on memory 1001 and executable on processor 1002.
The processor 1002 implements the data distribution communication method provided in the above-described embodiment when executing a program.
Further, the computer device further includes:
A communication interface 1003 for communication between the memory 1001 and the processor 1002.
Memory 1001 for storing computer programs that may be run on processor 1002.
Memory 1001 may include high-speed RAM (Random Access Memory ) memory, and may also include non-volatile memory, such as at least one disk memory.
If the memory 1001, the processor 1002, and the communication interface 1003 are implemented independently, the communication interface 1003, the memory 1001, and the processor 1002 may be connected to each other through a bus and perform communication with each other. The bus may be an ISA (Industry Standard Architecture ) bus, a PCI (PERIPHERAL COMPONENT, external device interconnect) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 10, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 1001, the processor 1002, and the communication interface 1003 are integrated on a chip, the memory 1001, the processor 1002, and the communication interface 1003 may complete communication with each other through internal interfaces.
The processor 1002 may be a CPU (Central Processing Unit ) or an ASIC (Application SPECIFIC INTEGRATED Circuit, application specific integrated Circuit) or one or more integrated circuits configured to implement embodiments of the present application.
The embodiment of the application also provides a non-volatile computer readable storage medium containing a computer program, on which the computer program is stored, which when executed by a processor implements the data distribution communication method as above.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable gate arrays, field programmable gate arrays, and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (10)

1. A data distribution communication method applied to a micro control unit, comprising the following steps:
determining a management message communication mode which can be carried by the micro control unit according to a preset communication mechanism;
Dividing the management message communication mode by utilizing the data in the micro control unit;
preprocessing the data;
carrying out data distribution on the processed data by using the divided management message communication mode so as to communicate by using the distributed data;
before determining the communication mode of the management message which can be carried by the micro control unit according to the preset communication mechanism, the method comprises the following steps:
Making a name and an identification of the management message communication mode of the client control unit;
In the domain participant discovery phase, placing entities requiring communication in a domain, so that the entities of the communication complete a simple participant discovery protocol with each other;
In the end point discovery stage, according to the name and the identification of the management message communication mode, establishing communication connection between a server control unit and the management message communication mode of the client control unit so as to complete a simple end point discovery protocol;
Establishing the preset communication mechanism according to the simple participant discovery protocol and the simple endpoint discovery protocol;
The dividing the management message communication mode by using the data in the micro control unit comprises the following steps:
Determining the maximum value of the quantity of the management message communication modes carried by the micro control unit chip;
carding the data type of the bearing data in the micro control unit chip;
After dividing the management message communication modes according to a preset principle, judging whether the number of the management message communication modes obtained by dividing the management message communication modes according to the data types reaches the maximum value, wherein the preset principle is that the data types are configured in one-to-one correspondence with the management message communication modes;
And dividing the management message communication modes according to the data types when the number of the divided management message communication modes does not reach the maximum value and a part of management message communication modes are reserved for later function expansion.
2. The method according to claim 1, wherein in the endpoint discovery phase, establishing a communication connection between a server control unit and the client control unit according to the name and the identifier of the management message communication mode includes:
When a server control unit receives a remote procedure call protocol request of a client control unit, filtering the remote procedure call protocol request according to a method hash identification of the server control unit to obtain a remote procedure call protocol request conforming to the server control unit;
when the client control unit receives the remote procedure call protocol reply of the server control unit, the remote procedure call protocol reply is filtered according to the global unique identifier of the client control unit, and a remote procedure call protocol request conforming to the client control unit is obtained, so that communication connection of the server control unit and the client control unit in a management message communication mode is established.
3. The method of claim 1, wherein the preprocessing the data comprises:
According to the data communication channel in the micro control unit, carrying out data communication between different domains;
According to the data interaction channel in the micro control unit, carrying out data interaction between different communication protocols;
and carrying out redundancy processing on the data after the data communication and the data interaction to obtain the processed data.
4. A method according to claim 3, characterized in that before said data communication between different domains according to the data communication channel in the micro control unit, it comprises:
A first routing table for communications between the domains is determined;
and establishing communication connection between entities of communication of different domains according to the first routing table to create the data communication channel.
5. A method according to claim 3, characterized in that before data interaction between different communication protocols takes place according to a data interaction channel in the micro control unit, it comprises:
Formulating a second routing table for communication between different communication protocols;
And establishing communication connection between different communication protocols according to the second routing table so as to establish the data interaction channel.
6. The method of claim 1, wherein said dividing the management messaging means using data in the micro control unit comprises:
when the number of the divided management message communication modes does not reach the maximum value, or the number of the divided management message communication modes reaches the maximum value and the management message communication modes with partial number not reserved are used for later function expansion, judging whether the management message communication modes meet service definition of a service-oriented architecture;
And if the management message communication mode meets the service definition of the service-oriented architecture, classifying the data of the micro control unit according to the characteristics of the service-oriented architecture, dividing the data of the same type into one management message communication mode, and marking each data.
7. The method of claim 6, wherein said dividing the management messaging means using data in the micro control unit comprises:
And if the management message communication mode meets the service definition of the service-oriented architecture, classifying the data according to the functional security level, classifying the data belonging to the same functional security level into one management message communication mode, and marking each data.
8. A data distribution communication system applied to a micro control unit, for implementing the data distribution communication method according to any one of claims 1 to 7, comprising:
The determining module is used for determining a management message communication mode which can be carried by the micro control unit according to a preset communication mechanism;
The division module is used for dividing the management message communication mode by utilizing the data in the micro control unit;
the preprocessing module is used for preprocessing the data;
and the data distribution communication module is used for carrying out data distribution on the divided management message communication mode by using the processed data so as to carry out communication by using the distributed data.
9. A computer device, characterized in that it comprises a processor and a memory, on which a computer program is stored, which computer program, when being executed by the processor, implements the data distribution communication method of any of claims 1-7.
10. A non-transitory computer readable storage medium containing a computer program, wherein the computer program, when executed by one or more processors, implements the data distribution communication method of any of claims 1-7.
CN202211180655.2A 2022-09-26 Data distribution communication method, system, computer device and storage medium Active CN115913809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211180655.2A CN115913809B (en) 2022-09-26 Data distribution communication method, system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211180655.2A CN115913809B (en) 2022-09-26 Data distribution communication method, system, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN115913809A CN115913809A (en) 2023-04-04
CN115913809B true CN115913809B (en) 2024-05-03

Family

ID=

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101551702B1 (en) * 2014-07-01 2015-09-11 국방과학연구소 Apparatus and Method for delivering a spatiotemporal location information of a flying object in real time based on Data Distribution System
CN106412023A (en) * 2016-09-05 2017-02-15 南京臻融软件科技有限公司 Multi-source data distribution method based on distribution subscription mechanism
CN106411972A (en) * 2015-07-29 2017-02-15 中国科学院沈阳自动化研究所 Real-time data distribution system and method based on Openflow protocol
KR20180026301A (en) * 2016-09-02 2018-03-12 주식회사 포스코아이씨티 Big Data Analysis System for Smart Factory
CN107844325A (en) * 2017-10-27 2018-03-27 上海斐讯数据通信技术有限公司 The acquisition methods and system of a kind of distributed data
CN109474471A (en) * 2018-11-30 2019-03-15 中国人民解放军陆军工程大学 The RTPS agreement accelerated method and its node and system of a kind of DDS network
CN109547543A (en) * 2018-11-15 2019-03-29 上海赫千电子科技有限公司 The distributed operating system and operation method of vehicle-mounted Ethernet
CN110086891A (en) * 2019-06-25 2019-08-02 奥特酷智能科技(南京)有限公司 The method of distributed communication is realized in automatic Pilot based on DDS agreement
CN110225074A (en) * 2019-01-04 2019-09-10 国网浙江省电力有限公司 A kind of communication packet dissemination system and distribution method based on device address domain
CN110688383A (en) * 2019-09-26 2020-01-14 中国银行股份有限公司 Data acquisition method and system
CN111934840A (en) * 2020-06-29 2020-11-13 北京百度网讯科技有限公司 Communication method of client and server, gateway, electronic equipment and storage medium
CN112367233A (en) * 2020-09-27 2021-02-12 上海赫千电子科技有限公司 Vehicle-mounted network ECU communication method and device based on service-oriented architecture
CN112688952A (en) * 2020-12-28 2021-04-20 京信网络系统股份有限公司 Message processing method, device, radio remote unit and medium
CN113794582A (en) * 2021-08-10 2021-12-14 中国电子科技集团公司电子科学研究院 Heaven and earth integrated network communication management protocol and method
CN113810475A (en) * 2021-08-30 2021-12-17 中国电子科技集团公司第五十四研究所 Wifi probe equipment management and control system based on big data architecture
KR20220027716A (en) * 2020-08-27 2022-03-08 (주)구름네트웍스 Recording medium
CN114401269A (en) * 2021-12-08 2022-04-26 国电南瑞科技股份有限公司 Business data distribution method and system and Internet of things management platform
KR102396923B1 (en) * 2021-12-29 2022-05-12 한화시스템 주식회사 Performance verification method in data distribution service
CN114745364A (en) * 2022-03-28 2022-07-12 重庆长安汽车股份有限公司 Internet of vehicles data distribution system and method based on MQTT protocol
CN114866528A (en) * 2022-04-01 2022-08-05 广东美味鲜调味食品有限公司 Data communication method based on MQTT and Websocket

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101551702B1 (en) * 2014-07-01 2015-09-11 국방과학연구소 Apparatus and Method for delivering a spatiotemporal location information of a flying object in real time based on Data Distribution System
CN106411972A (en) * 2015-07-29 2017-02-15 中国科学院沈阳自动化研究所 Real-time data distribution system and method based on Openflow protocol
KR20180026301A (en) * 2016-09-02 2018-03-12 주식회사 포스코아이씨티 Big Data Analysis System for Smart Factory
CN106412023A (en) * 2016-09-05 2017-02-15 南京臻融软件科技有限公司 Multi-source data distribution method based on distribution subscription mechanism
CN107844325A (en) * 2017-10-27 2018-03-27 上海斐讯数据通信技术有限公司 The acquisition methods and system of a kind of distributed data
CN109547543A (en) * 2018-11-15 2019-03-29 上海赫千电子科技有限公司 The distributed operating system and operation method of vehicle-mounted Ethernet
CN109474471A (en) * 2018-11-30 2019-03-15 中国人民解放军陆军工程大学 The RTPS agreement accelerated method and its node and system of a kind of DDS network
CN110225074A (en) * 2019-01-04 2019-09-10 国网浙江省电力有限公司 A kind of communication packet dissemination system and distribution method based on device address domain
CN110086891A (en) * 2019-06-25 2019-08-02 奥特酷智能科技(南京)有限公司 The method of distributed communication is realized in automatic Pilot based on DDS agreement
CN110688383A (en) * 2019-09-26 2020-01-14 中国银行股份有限公司 Data acquisition method and system
CN111934840A (en) * 2020-06-29 2020-11-13 北京百度网讯科技有限公司 Communication method of client and server, gateway, electronic equipment and storage medium
KR20220027716A (en) * 2020-08-27 2022-03-08 (주)구름네트웍스 Recording medium
CN112367233A (en) * 2020-09-27 2021-02-12 上海赫千电子科技有限公司 Vehicle-mounted network ECU communication method and device based on service-oriented architecture
CN112688952A (en) * 2020-12-28 2021-04-20 京信网络系统股份有限公司 Message processing method, device, radio remote unit and medium
CN113794582A (en) * 2021-08-10 2021-12-14 中国电子科技集团公司电子科学研究院 Heaven and earth integrated network communication management protocol and method
CN113810475A (en) * 2021-08-30 2021-12-17 中国电子科技集团公司第五十四研究所 Wifi probe equipment management and control system based on big data architecture
CN114401269A (en) * 2021-12-08 2022-04-26 国电南瑞科技股份有限公司 Business data distribution method and system and Internet of things management platform
KR102396923B1 (en) * 2021-12-29 2022-05-12 한화시스템 주식회사 Performance verification method in data distribution service
CN114745364A (en) * 2022-03-28 2022-07-12 重庆长安汽车股份有限公司 Internet of vehicles data distribution system and method based on MQTT protocol
CN114866528A (en) * 2022-04-01 2022-08-05 广东美味鲜调味食品有限公司 Data communication method based on MQTT and Websocket

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
A DDS-based distributed simulation approach for engineering-level models;Dohyung Kim;《Proceedings of the Winter Simulation Conference 2014》;20150126;全文 *
基于Actor模型的数据分发系统的设计与实现;黄善柒;《中国优秀硕士论文全文数据库》;20180315;全文 *
基于DDS的传感器数据分发系统的设计与实现;韩军;王永生;;舰船电子工程;20181020(第10期);全文 *
基于数据分发服务的远程过程调用机制的研究与实现;严静;《中国优秀硕士论文全文数据库》;20180415;全文 *
实时数据分发服务系统重构正确性保证研究;杨曙辉;王小非;陈龙;;舰船电子工程;20090120(第01期);全文 *

Similar Documents

Publication Publication Date Title
US6434612B1 (en) Connection control interface for asynchronous transfer mode switches
US7594052B2 (en) Integrated circuit and method of communication service mapping
US7257817B2 (en) Virtual network with adaptive dispatcher
US7733841B2 (en) Vehicle network with time slotted access and method
CN110474792B (en) Network configuration method, equipment and system
CN112491984B (en) Container editing engine cluster management system based on virtual network bridge
JP2007521584A (en) Interprocessor communication network that dynamically dedicates port groups
US20240045657A1 (en) System architecture for implementing dds communication based on autosar, communication method, and device
CN115913809B (en) Data distribution communication method, system, computer device and storage medium
US10893001B2 (en) Method for coordinating access to a resource of a distributed computer system, computer system and computer program
CN115913809A (en) Data distribution communication method, system, computer device and storage medium
CN112671914B (en) IOT (Internet of things) equipment communication method and system based on actor model
CN114911577A (en) Method, device, equipment and storage medium for setting network isolation rule
CN114866467A (en) Cluster communication method, device, system, equipment and readable storage medium
CN113110111B (en) Distributed semi-physical simulation system based on NS3
WO2023246127A1 (en) System and methods for mission execution in network
CN116248775A (en) Interaction method and device of DDS gateway, electronic equipment and storage medium
Mohamed Self-configuring communication middleware model for multiple network interfaces
JP2000151739A (en) Information processor, distributed processor and network system
CN115174687A (en) Service calling method and device, electronic equipment and storage medium
Li et al. Multicast Transmission in DDS Based on the Client-Server Discovery Model
CN115811465A (en) Network configuration method, agent component, controller, electronic device, and storage medium
Kim et al. A method for improving the reliability of the gateway system by using OSEK and duplication scheme
CN113892247A (en) Relay device, vehicle, communication method, and communication program
CN117319220A (en) Architecture design method for cloud access third-party ecological platform

Legal Events

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