CN115913809A - Data distribution communication method, system, computer device and storage medium - Google Patents
Data distribution communication method, system, computer device and storage medium Download PDFInfo
- Publication number
- CN115913809A CN115913809A CN202211180655.2A CN202211180655A CN115913809A CN 115913809 A CN115913809 A CN 115913809A CN 202211180655 A CN202211180655 A CN 202211180655A CN 115913809 A CN115913809 A CN 115913809A
- Authority
- CN
- China
- Prior art keywords
- data
- management message
- control unit
- communication
- 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.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 431
- 238000000034 method Methods 0.000 title claims abstract description 97
- 230000007246 mechanism Effects 0.000 claims abstract description 29
- 238000007781 pre-processing Methods 0.000 claims abstract description 16
- 230000003993 interaction Effects 0.000 claims description 43
- 230000006870 function Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 11
- 238000001914 filtration Methods 0.000 claims description 9
- 238000000638 solvent extraction Methods 0.000 claims description 6
- 238000013461 design Methods 0.000 description 19
- 230000004044 response Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 7
- 238000004806 packaging method and process Methods 0.000 description 7
- 230000004069 differentiation Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 238000009960 carding Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 230000035899 viability Effects 0.000 description 1
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The application relates to the technical field of vehicles, 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 borne by a micro control unit according to a preset communication mechanism; dividing the management message communication mode by using data in the micro control unit; preprocessing the data; and performing 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 MCU cannot carry a DDS protocol stack due to limited operation and storage resources, a large number of management message communication modes cannot be used in the MCU, and the whole vehicle communication architecture is complex, communication delay is high and the like due to the fact that only the DDS protocol stack is arranged on the MPU are solved.
Description
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a data distribution communication method, system, computer device, and storage medium.
Background
With the rapid development of intellectualization and networking, interactive data carried on an automobile Network is more and more, the data is far from being transmitted by using a traditional Controller Area Network (CAN) and a Local Interconnect Network (LIN), the vehicle-mounted Network architecture is greatly changed by adding the vehicle-mounted ethernet, and meanwhile, the system design is more decentralized by adopting a service-oriented architecture (SOA) design, so that the problem of decoupling the upper layer design and the lower layer transmission by adopting a communication middleware is very important. Some communication middleware protocols appear in the vehicle-mounted field successively, and Data Distribution Service (DDS) is more and more favored by host manufacturers as the communication middleware. At present, each host factory gradually uses DDS as a vehicle-mounted communication middleware to decouple the transmission relation between the application layer and the bottom layer of the controller, the SOA architecture design is promoted, and the transmission of the Ethernet data of the whole vehicle is completed.
However, there are still many limitations to use the DDS protocol stack on the MCU (Micro Control Unit, MCU), for example, limited run-time resources in the MCU may not use a large number of management message communication modes (topic) in the MCU, so that most host factories cannot or unwittingly deploy the DDS protocol stack on the MCU, and only deploy the DDS protocol stack on the MPU (Micro processor Unit, microprocessor) may result in a complex communication architecture of the whole vehicle and high communication delay.
How to deploy the DDS protocol stack on the MCU to realize the communication mode capable of using a large amount of management messages for the whole vehicle communication is an urgent problem to be solved.
Disclosure of Invention
The application provides a data distribution communication method, a data distribution communication system, computer equipment and a storage medium, and aims to solve the problems that in the related art, a DDS protocol stack cannot be carried due to limited memory 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 arranged on the 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, and includes the following steps: determining a management message communication mode which can be borne by the micro control unit according to a preset communication mechanism; dividing the management message communication mode by using data in the micro control unit; preprocessing the data; and performing data distribution on the processed data by using a divided management message communication mode so as to communicate by using the distributed data.
According to the technical means, the management message communication mode which can be borne by the micro control unit can be 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 as to communicate by using the distributed data, and 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 run a data distribution service protocol stack on a micro control unit chip to complete Ethernet communication.
Optionally, in an embodiment of the application, before determining, according to a preset communication mechanism, a management message communication mode that can be carried by the micro control unit, the method includes: formulating a name and an identification of the management message communication mode of the client control unit; in the discovery phase of the domain participants, entities needing to communicate are placed in a domain, so that the entities needing to communicate mutually complete a simple participant discovery protocol; in the end point discovery stage, according to the name and the identification of the management message communication mode, establishing the communication connection of the management message communication mode between the server control unit and 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 number of topics which can be carried in the MCU chip and the MPU chip is different.
Optionally, in an embodiment of the present application, in the endpoint discovery phase, establishing a communication connection between the server control unit and the management message communication mode of 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 identifier of the server control unit to obtain a remote procedure call protocol request conforming to the server control unit; and when the client control unit receives a remote procedure call protocol reply of the server control unit, filtering the remote procedure call protocol reply according to the global unique identifier of the client control unit to obtain a remote procedure call protocol request conforming to the client control unit so as to establish communication connection of a management message communication mode of the server control unit and the client control unit.
According to the technical means, the server control unit can filter the requests which do not belong to the server according to the hash identifier when receiving the call protocol request of the client control unit, and the client control unit can filter the responses which do not belong to the server according to the global unique identifier when receiving the call protocol reply of the server control unit, so that the communication connection between the client and the server is established, data can be conveniently loaded and displayed, and the data can be screened according to the requirements, and the data volume is reduced.
Optionally, in an embodiment of the present application, the preprocessing the data includes: performing data communication between different domains according to a data communication channel in the micro control unit; performing data interaction between different communication protocols according to a data interaction channel in the micro control unit; 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 carry out data communication among different domains and data interaction among different communication protocols by building the data communication channel and the data interaction channel, and obtain the processed data through redundancy processing, so that the Quality of Service (QoS) can be randomly used in the micro control unit to ensure that the data is distributed efficiently and flexibly in real time, and various distributed real-time communication application requirements can be met.
Optionally, in an embodiment of the present application, before performing data communication between different domains according to a data communication channel in the micro control unit, the method includes: a first routing table for communication between domains is made; and establishing communication connection between entities communicating in different domains according to the first routing table so as to create the data communication channel.
According to the technical means, the embodiment of the application can establish communication connection by customizing the routing table for communication between domains, so that entities between different domains can establish communication.
Optionally, in an 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 create the data interaction channel.
According to the technical means, the routing table between different communication protocols CAN be established, so that irrelevant CAN messages are filtered according to the content of the routing table, and only the CAN messages in the routing table are received and forwarded.
Optionally, in an embodiment of the application, the dividing the management message communication manner by using the data in the micro control unit includes: determining the maximum value of the number of the management message communication modes borne by the micro control unit chip; combing the data type of the data loaded 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 or not, wherein the preset principle is that the data types and the management message communication modes are configured in a one-to-one correspondence manner; and 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, dividing the management message communication modes according to the data types.
According to the technical means, the data type of the data loaded in the micro control unit chip and the management message communication mode can be divided in a one-to-one corresponding mode, and data distinguishing and analyzing are facilitated.
Optionally, in an embodiment of the present application, the dividing the management message communication manner by using the 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 of the number of the unreserved parts are used for later-stage function extension, judging whether the management message communication modes meet service definition oriented to a service architecture or not; 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 a management message communication mode, and marking each data.
According to the technical means, the embodiment of the application can classify data according to the request, the response and the notification according to the service definition characteristics, divide the data into 3 topics (management message communication modes), classify the data according to the service characteristics, reduce the number of used topics and reduce the communication delay. In this case, because a large amount of data is contained in one topic, the two communication parties need to mark different data, which is convenient for data differentiation and analysis.
Optionally, in an embodiment of the present application, the dividing the management message communication manner by using the data in the micro control unit includes: 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 data can be classified according to the functional security level, the number of topic used 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 communicating parties need to mark different data, which is convenient for data differentiation and analysis.
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 borne by the micro control unit according to a preset communication mechanism; the dividing module is used for dividing the management message communication mode by using 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.
Optionally, in an 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 borne by the micro control unit is determined according to the preset communication mechanism; the processing module is used for placing entities needing to communicate in a domain participant discovery stage so that the entities needing to communicate mutually complete a simple participant discovery protocol; a first establishing module, configured to establish, in an endpoint discovery phase, a communication connection between a server control unit and a client control unit in a management message communication manner according to the name and the identifier of the management message communication manner, 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 establishing module is further configured to, when the server control unit receives a remote procedure call protocol request from the client control unit, filter the remote procedure call protocol request according to the method hash identifier of the server control unit, so as to obtain a remote procedure call protocol request conforming to the server control unit;
when the client control unit receives a remote procedure call protocol reply of a server control unit, the remote procedure call protocol reply is filtered according to the global unique identifier of the client control unit, a remote procedure call protocol request conforming to the client control unit is obtained, and communication connection of a management message communication mode of the server control unit and the client control unit is established.
Optionally, in an 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; performing data interaction between different communication protocols according to a data interaction channel in the micro control unit; and carrying out redundancy processing on the data after the data communication and the data interaction to obtain the processed data.
Optionally, in an embodiment of the present application, the method further includes: a second formulating module, configured to formulate a first routing table for inter-domain communication before performing data communication between different domains according to a data communication channel in the micro control unit; and a third establishing module, configured to establish a communication connection between entities communicating in different domains according to the first routing table, so as to create the data communication channel.
Optionally, in an embodiment of the present application, the method further includes: the third formulating module is used for formulating a second routing table for communication among different communication protocols before data interaction among 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 between different communication protocols according to the second routing table so as to create 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 mcu chip; combing the data type of the data loaded 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 or not, wherein the preset principle is that the data types and the management message communication modes are configured in a one-to-one correspondence manner; and 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, dividing the management message communication modes according to the data types.
Optionally, in an embodiment of the present application, the dividing module is further configured to determine whether the management message communication manners meet a service definition oriented to a service architecture when the number of the divided management message communication manners does not reach the maximum value, or the number of the divided management message communication manners reaches the maximum value and the number of the management message communication manners not reserved is used for later-stage function extension; 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 a management message communication mode, and marking each data.
Optionally, in an embodiment of the application, the dividing module is further configured to, if the management message communication manner meets the service definition of the service-oriented architecture, classify the data according to a functional security level, 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 device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the data distribution communication method as described in the above embodiments.
A fourth aspect of the present application provides a non-volatile computer readable storage medium with a computer program stored thereon, where the computer program is executed by a processor, and is used for implementing the data distribution communication method as described in the foregoing embodiments.
Therefore, the application has at least the following beneficial effects:
1. according to the embodiment of the application, the management message communication mode which can be borne by the micro control unit can be 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, the distributed data is used for communication, and 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 run a data distribution service protocol stack on a micro control unit chip, and Ethernet communication is completed.
2. According to the embodiment of the application, the preset communication mechanism can be established 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 can be completed under the condition that the number of topics which can be carried in the MCU chip and the MPU chip is 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 server control unit is filtered according to the Hash identifier, and when the client control unit receives the call protocol reply of the server control unit, the response which does not belong to the server 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 is conveniently loaded and displayed, the data can be screened according to the requirement, and the data volume is reduced.
4. According to the embodiment of the application, data communication among different domains and data interaction among different communication protocols can be carried out by building the data communication channel and the data interaction channel, processed data can be obtained through redundancy processing, and Quality of Service (QoS) can be randomly used in the micro control unit, so that the data can be distributed efficiently and flexibly in real time, and various distributed real-time communication application requirements can be met.
5. The embodiment of the application can establish communication connection by customizing the routing table of communication between the domains, so that entities among different domains can establish communication.
6. According to the embodiment of the application, the routing table between different communication protocols CAN be established, so that irrelevant CAN messages are filtered according to the content of the routing table, and only the CAN messages in the routing table are received and forwarded.
7. According to the embodiment of the application, the data types of the data carried in the micro control unit chip and the management message communication modes can be divided in a one-to-one correspondence mode, and the data can be conveniently distinguished and analyzed.
8. According to the service definition characteristics, the embodiment of the application can classify the data according to the request, the response and the notification, divide the data into 3 topics (management message communication modes), classify the data according to the service characteristics, reduce the number of used topics and reduce the communication delay. In this case, since a large amount of data is contained in one topic, the two communicating parties need to mark different data, which is convenient for data differentiation and analysis.
9. According to the embodiment of the application, data can be classified according to the functional safety level, the number of topic applications is reduced, and the communication delay can be reduced. In this case, because a large amount of data is contained in one topic, the two communication parties need to mark different data, which is convenient for data differentiation and analysis.
Additional aspects and advantages of the present 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 present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a data distribution communication method provided in an embodiment of the present application;
fig. 2 is a block diagram of a simple DDS communication system provided in an embodiment of the application;
FIG. 3 is a flowchart of a topic partition design in an MCU chip according to an embodiment of the present application;
fig. 4 is a flowchart for building data communication channels between different domains in an MCU chip according to an embodiment of the present application;
fig. 5 is a flowchart of establishing 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 diagram illustrating a data packaging format according to an embodiment of the present application;
fig. 7 is a flowchart illustrating implementation of a DDS-based ethernet communication redundancy design in an MCU chip according to an embodiment of the present application;
fig. 8 is a flowchart of a design of a topic unequal communication mechanism in an MCU chip according to an embodiment of the present application;
fig. 9 is a block schematic diagram of a data distribution communication system provided in accordance with an embodiment of the present application;
fig. 10 is a schematic structural diagram of a computer device provided according to an embodiment of the present application.
Description of the reference numerals: the device comprises a determination module-100, a division 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
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A data distribution communication method, system, computer device, and storage medium according to an embodiment of the present application are described below with reference to the drawings. In order to solve the problems mentioned in the background art, the application provides a data distribution communication method, which is applied to a micro control unit, in the method, a management message communication mode capable of being 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 as to communicate by using the distributed data, and 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 on a micro control unit chip to complete Ethernet communication. Therefore, the problems that in the related art, the MCU cannot carry a DDS protocol stack due to limited operation and storage resources, a large number of management message communication modes cannot be used in the MCU, and the whole vehicle communication architecture is complex, communication delay is high and the like due to the fact that only the DDS protocol stack is arranged on the MPU are solved.
Specifically, fig. 1 is a schematic flowchart of a data distribution communication method provided in an embodiment of the present application.
In order to solve the problem of deploying a DDS protocol stack on an MCU, embodiments of the present application provide a DDS communication system design method based on an MCU chip, so that ethernet nodes in a finished vehicle can normally operate the DDS protocol stack regardless of whether the MCU chip or the MPU chip, thereby completing ethernet communication. As shown in fig. 2, a simple system structure diagram is used to show a communication system structure block diagram of the embodiment of the present application, including a CAN node and an ethernet node, which is not specifically limited, and the post design may be expanded on this basis. 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 perform data interaction according to a traditional CAN communication mode; s202 and S203 are connected through Ethernet, and both adopt DDS protocol stack as communication middleware.
As shown in fig. 1, the data distribution communication method includes the steps of:
in step S101, a management message communication mode that can be borne by the mcu is determined according to a preset communication mechanism.
DDS data distribution service is a new generation of distributed real-time communication middleware protocol, adopts a publish/subscribe system architecture, emphasizes taking data as a center, provides rich QoS (quality of service) strategies to ensure that the data is distributed efficiently and flexibly in real time, and can meet various distributed real-time communication application requirements. In the aspect of status confirmation of both communication parties, each entity in the DDS protocol stack has a mechanism for automatically keeping alive and declaring survival, and in the embodiment of the present application, a management message communication mode that can be carried by the micro control unit can be determined according to a preset communication mechanism, so that both communication parties can know the life cycle and the viability of an opposite end in real time and can perform processing in time.
In step S102, the management message communication method is divided by data in the micro control unit.
In one embodiment of the present application, dividing the management message communication manner by using data in the micro control unit includes: determining the maximum value of the number of management message communication modes borne by the micro-control unit chip; combing the data type of the data loaded 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 or not, wherein the preset principle is that the data types and the management message communication modes are configured in a one-to-one correspondence manner; and 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, dividing the management message communication modes according to the data types.
The preset rule may be to assign a topic to one data type or one class of data.
In order to facilitate data distinguishing and analysis, the embodiment of the application can reasonably calculate and deploy the resource conditions occupied by the DDS protocol stack and the DDS entities according to the resource distribution condition in the MCU chip, obtain the maximum number of topics which can be borne by the MCU chip under the condition of available resources in the MCU chip through calculation or simulation, one topic bears communication data of one data type, and comb the data types which need to be transmitted through the DDS protocol stack according to the service or function design of the whole vehicle; calculating according to a principle that one topic is distributed to one data type or one type of data, and judging whether the maximum topic carding which can be carried by the MCU chip is met; if the data and topic can be matched, a data type can be put into one topic according to requirements; when the data designed at the present stage does not meet the requirements and part of the topic is reserved for later-stage function extension, the embodiment of the application can judge whether the maximum topic carding which can be carried by the MCU chip is met or not, and divide the topic in the MCU chip according to the data type.
In one embodiment of the present application, 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 of the number of the unreserved parts are used for later-stage function expansion, judging whether the management message communication modes meet the service definition of a service-oriented architecture or not; if the management message communication mode meets the service definition of the service-oriented architecture, the data of the micro-control chip is classified according to the characteristics of the service-oriented architecture, the data of the same type is divided into one management message communication mode, and each data is marked.
Specifically, when the divided topic number does not reach the maximum value or the unreserved topic number is used for later-stage function extension, because the communication in the current automobile industry is a Service defined based on an SOA (Service-Oriented Architecture), the embodiment of the present application can determine whether the topic meets the Service definition of the Service-Oriented Architecture, and if the topic meets the Service definition, the embodiment of the present application can classify the data according to the request, the response and the notification according to the characteristics of the Service, and divide the data into 3 topics, so as to reduce the number of used topics, and reduce the communication delay. In this case, since a large amount of data is contained in one topic, the two communicating parties need to mark different data, which is convenient for data differentiation and analysis.
In one embodiment of the present application, dividing the management message communication manner by using data in the 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, dividing 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 the topic does not satisfy the service definition of the service-oriented architecture, the embodiment of the present application may further classify the data according to the functional security level, reduce the number of used topic, and reduce the communication delay, and the implementation manner of the above embodiment is referred to mark different data, so as to facilitate data differentiation and analysis.
In summary, the partitioning is performed according to the data types, if the maximum number requirement is not met, all requests in the SOA service may be mapped to the request topic, all responses are mapped to the response topic, and all notifications are mapped to the notification topic according to the SOA service characteristic based on an RPC (Remote Procedure Call Protocol) framework; when the number of the divided pipes topic does not reach the maximum value, topic division can be carried out according to the safety level; after the division is completed, the method and the device for dividing the data can further divide national standard data, cloud platform control data, vehicle-mounted internal file data and the like, and allocate independent topics according to data types.
Step S102 in the embodiment of the present application is described in detail below with reference to fig. 3, which specifically includes the following steps:
s301: according to the resource distribution condition in the MCU chip, reasonably calculating the resource conditions occupied by each entity of the DDS protocol stack and the DDS, and then obtaining the maximum topic number which can be borne by the MCU chip under the condition of available resources in the MCU chip through calculation or simulation;
s303: one topoic bears communication data of one data type, and the data type needing 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 the principle that one topic is allocated to one data type or one class of data, and judging whether the maximum topic carding which can be carried by the MCU chip is met;
s304: when the data designed at the present stage meets the requirements, the requirements of later-stage function expansion and the like are also considered, the number of the topic is reserved, and whether the maximum topic carding which can be borne by the MCU chip is met or not is judged under the condition;
s305: if the data and topic can be matched, a data type can be put into one topic according to requirements;
s306: when the S303 does not meet the requirements, because 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 used is reduced;
s307: according to the service definition characteristics, data can be classified according to requests, responses and notifications and divided into 3 topics; in this case, one topic contains a large amount of data, and two communication parties need to identify different data, so that data can be distinguished and analyzed conveniently;
s308: whether data which are not suitable for SOA service exist in the whole vehicle is combed, such as log data and the like;
s309: for the fact that a lot of data which are not suitable for SOA service exist in the whole vehicle, the data can be reasonably distributed into the individual topics under the condition that the deployment quantity of the topics is enough;
s310: if the data definition is not performed according to the SOA service in the whole vehicle, the data can be classified according to the functional safety level, and meanwhile, different data need to be identified by referring to S307, so that the data can be distinguished and analyzed conveniently.
In step S103, data is preprocessed.
In one embodiment of the present application, preprocessing data comprises: performing data communication between different domains according to a data communication channel in the micro control unit; performing data interaction between different communication protocols according to a data interaction channel in the micro control unit; and carrying out redundancy processing on the data after data communication and data interaction to obtain the processed data.
In this case, in the service discovery phase, the gateway may establish a connection with an entity that needs to interact data in different domains (domains) respectively. During data communication, the gateway reads source ECU data through a subscriber entity established in the source domain, and then the gateway sends the data to the destination ECU data through a publisher entity established in the destination domain.
It should be noted that, in the embodiment of the present application, a data communication channel between different domains may be built in the MCU chip, so as to perform data communication between different domains, as shown in fig. 4, the specific steps are as follows:
s401: establishing a routing table for communication among domains, wherein the routing table needs to comprise: communication data needing routing, data receiving and transmitting nodes, domain where the data is located, and DDS entity information of the data can be added according to actual conditions;
s402: the gateway completes service discovery with entities of different domains respectively and establishes communication connection. When the data sending end is A, the data receiving end is B, and A and B are in different domains, two entities X and Y are established in the gateway, wherein X and A are in one domain, and the two entities can establish communication connection to normally carry out data interaction; y and B are in a domain, and two entities can establish communication connection and can normally carry out data interaction, 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 direct data of different domains. During data communication, if the gateway receives the data sent to X by A, the gateway passes through the data of X entity A and then calls entity Y to send the data to entity B to complete data routing;
s404: and matching the Qos compatibility. Because the two sides of actual communication are A and B, the Qos of A and B need to consider the compatibility problem, and simultaneously, the Qos of X and Y needs to be matched with A and B, thereby avoiding communication failure caused by the design problem of Qos. For example, when A is reliability, B may be best _ benefit, where X may be reliability or best _ benefit, but Y must be best _ benefit.
Furthermore, the embodiment of the application CAN perform data interaction between different communication protocols according to a data interaction channel in the micro control unit, mainly builds a data interaction channel between different communication protocols of the CAN and the DDS in the MCU chip, and CAN forward a specific CAN message aiming at the conversion from the CAN to the DDS, wherein the forwarding delay is controllable, the forwarding condition design, the data packaging format design, the topic design corresponding to the CAN message and the like are performed.
The specific CAN message is forwarded mainly by avoiding invalid load and filtering out irrelevant data; the forwarding delay needs to be evaluated according to forwarding conditions, hardware processing capacity and the like, and meanwhile, a data user needs to judge the availability of data according to the forwarding delay; the forwarding condition is that the gateway is required to receive and transmit data according to the designed forwarding condition, so as to avoid asynchronism among different gateways; the data packaging format is designed to ensure that data of a transmitting party and a receiving party can be read, a transmitting party needs to package the data according to the message packaging format, and a receiving party needs to unpack the data according to the packaging format; the topic 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 function requirements;
s502: the gateway filters the unrelated CAN message. The gateway filters invalid CAN messages from a source network segment according to the content in the CAN-to-DDS routing table, and only receives and forwards the CAN messages in the routing table;
s503: and (4) designing gateway forwarding conditions. In order to ensure the forwarding in time and consider the limitation of resources in the MCU, the gateway sets 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 data forwarding, the T position is re-timed; 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 data forwarding, the T position is re-timed; if no data is received in the forwarding period, the data is not forwarded in the period, and the timer is set;
s504: topic design. When one MCU accesses a plurality of CAN network segments and simultaneously needs to forward data of the plurality of CAN network segments, one topoic needs to design a plurality of subsets of different types to bear the data of different CAN network segments, namely one CAN network segment data is encapsulated into one data subset;
s505: and (5) data encapsulation. In order to ensure that both parties can correctly parse and identify data, a uniform packaging format needs to be designed, as shown in fig. 6. Wherein, the content of Payload part is shown in the following table, table 1 is a Payload part information table in data packaging format;
TABLE 1
S506: when the forwarding condition is met, the gateway calls a DDS protocol stack to package the data into an RTPS (real-time Polling Service) data packet and sends the data packet to an Ethernet network segment to a receiving party;
s507: and calculating the forwarding time delay. When the forwarding time T =5ms, the maximum forwarding delay of a single CAN message is 5ms; when the forwarding time T =10ms, the maximum forwarding delay of a single CAN message 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, so that the DDS redundancy design requirement is met.
Specifically, in a communication architecture in which the CAN and the ethernet exist simultaneously, the CAN data mainly bear safety-related contents, main data exist in the CAN data for the contents of traffic safety, one redundant data meets 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-ethernet. As shown in fig. 7, the embodiment of the present application describes in detail how the MCU chip completes the preprocessing of the ethernet communication redundant data based on the DDS, and includes the following steps:
s701: according to the CAN node data, a main signal is sent to a main CAN network segment, and a redundant signal is 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, designing Qos for writers in data master topic from a master CAN segment, wherein the Qos are respectively OWNERSHIP.kind = EXCLUSIVE and OWNERSHIP _ STRENTH.value =10, and designing Qos for writers in data redundancy topic from a redundancy CAN segment, wherein the Qos are respectively OWNERSHIP.kind = EXCLUSIVE and OWNERSHIP _ STRENTH.value =2; value can be configured according to requirements, and the larger the value is, the receiving end performs processing preferentially;
s704: when two pieces of topic data in S603 are sent to the receiving end at the same time, the receiving end determines the main data and the redundant data according to the size of ownersp _ standard.value, where the receiving end processes the topic data sent by the sending end having the largest ownersp _ standard.value value, and if the sending end having the largest ownersp _ standard.value fails, the receiving end obtains the data sent by the sending end having the relatively lower value.
In step S104, the processed data is distributed by the divided management message communication method to communicate with the distributed data.
After the management message communication mode is reasonably divided, the embodiment of the application can utilize the divided management message communication mode to distribute the data of the processed data so as to utilize the distributed data to communicate, 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 run a data distribution service protocol stack on a chip of the micro control unit to complete Ethernet communication.
In an embodiment of the present application, before determining, according to a preset communication mechanism, a management message communication mode that can be carried by a micro control unit, the method includes: formulating a name and an identification of a management message communication mode of a client control unit; in the discovery phase of the domain participants, entities needing to communicate are placed in a domain, so that the communicating entities mutually complete a simple participant discovery protocol; in the end point discovery stage, according to the name and the identification of the management message communication mode, the communication connection of the management message communication mode of the server control unit and the client control unit is established so as to complete a simple end point discovery protocol; and establishing a preset communication mechanism according to the simple participant discovery protocol and the simple breakpoint discovery protocol.
According to the resource conditions of the chips mentioned in the above background art, the number of topics that can be carried in the MCU chip and the MPU chip is different, and in order to complete normal communication between the two chips, a simple participant discovery protocol and a simple endpoint discovery protocol need to be completed. In a domain participant discovery phase, all participants are required to be in one domain (domain), so that the domain participants deployed in an MCU chip and the domain participants deployed in an MPU chip which need to interact can be placed in one domain, and communication entities can complete a simple participant discovery protocol; in the end point discovery phase, all DDS entities deployed in the MPU chip need to be discovered and matched with DDS entities deployed in the MCU chip, and all information of the entities deployed in the MPU chip needs to be sent to the entities deployed in the MCU chip, where the information includes: the entity deployed in the MCU chip selectively learns the received topic _ name according to the self requirement, and simultaneously sends an EDP message to the entity deployed in the MPU chip needing to establish connection according to the learned topic _ name and type _ name information, so as to complete endpoint discovery, and complete the mechanism of unequal communication after completing two discovery stages.
The following describes in detail the implementation process of establishing the preset communication mechanism according to the embodiment of the present application with reference to fig. 8, and the specific steps are as follows:
s801: in the early stage of design, when the MCUs serve as clients, services or methods which need to be called by each MCU are collectively placed in a request topic, a response topic and a notification topic, but before the names of the topics, an identifier "MCU _ C" needs to be added, so that the SEDP (simple endpoint discovery protocol) can be completed. (ii) a
S802: in the discovery phase of the domain participants, all the MCUs and MPUs can complete SPDP (simple participant discovery protocol) in one domain;
s803: in an endpoint discovery phase, a client MCU sends data with an MCU _ C topic name, a server MCU/a server MPU selects topics which can be provided for the client MCU by itself, the topics need to be forcibly matched with the topics of the client MCU to establish connection, meanwhile, the server MCU or the server MPU sends the topic name and the method hash id which are provided by itself to the client MCU through the topic _ data, and the client MCU completes SEDP (simple endpoint discovery protocol) according to the method hash id matching required service method.
Optionally, in an embodiment of the present application, in the endpoint discovery phase, establishing, according to the name and the identifier of the management message communication mode, a communication connection of the management message communication mode between the server control unit and the client control unit includes: when the server control unit receives a 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 the remote procedure call protocol request conforming to the server control unit; and when the client control unit receives the remote procedure call protocol reply of the server control unit, filtering the remote procedure call protocol reply according to the global unique identifier of the client control unit to obtain a remote procedure call protocol request conforming to the client control unit so as to establish communication connection of a management message communication mode of the server control unit and the client control unit.
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 server control unit is filtered according to the Hash identifier, and when the client control unit receives the call protocol reply of the server control unit, the response which does not belong to the server 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 is conveniently loaded and displayed, the data can be screened according to the requirement, and the data processing amount is reduced. Specifically, step S804 shown in fig. 8: in the data communication phase: when the service end MCU/the service end MPU receives an RPC (Remote Procedure Call) request of the client end MCU, filtering out a request which does not belong to the service end MCU/the service end MPU according to the method hash id; and when the client side MCU side receives the RPC reply of the server side MCU/the server side MPU, filtering out the response which does not belong to the client side MCU side according to a GUID (Global Unique Identifier).
In one embodiment of the present application, before performing data communication between different domains according to a data communication channel in the micro control unit, the method includes: making a first routing table for communication between domains; communication connections between communicating entities of different domains are established according to the first routing table to create a data communication channel.
In this embodiment, the first routing table may include: the communication data, the data transmitting and receiving nodes, the domain where the data is located and the DDS entity information of the data which need to be routed can also be added according to the actual situation. 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 an 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 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 functional requirements without specific limitations. The second routing table in the embodiment of the application is utilized to establish communication connection among different communication protocols, 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 borne 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 as to communicate by using the distributed data, and 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 run a data distribution service protocol stack on a micro control unit chip to complete Ethernet communication. Therefore, the problems that in the related technology, the MCU has limited operation and storage resources and cannot carry a DDS protocol stack, so that a large number of management message communication modes cannot be used in the MCU, and the whole vehicle communication architecture is complex, the communication delay is high and the like due to the fact that only the DDS protocol stack is arranged on the MPU are solved.
Next, a data distribution communication system applied to a micro control unit according to an embodiment of the present application will be described with reference to the drawings.
Fig. 9 is a block schematic 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: a determination module 100, a partitioning module 200, a preprocessing module 300, and a data distribution communication module 400.
The determining module 100 is configured to determine, according to a preset communication mechanism, a management message communication mode that can be borne by the micro control unit; a dividing module 200, configured to divide a management message communication manner by using data in the micro control unit; a preprocessing module 300, configured to preprocess data; and a data distribution communication module 400, configured to perform data distribution on the divided management message communication method 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 application embodiment further comprises: the device 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 the name and the identification of the management message communication mode of the client control unit before determining the management message communication mode which can be borne by the micro control unit according to a preset communication mechanism; the processing module is used for placing entities needing to communicate in a domain participant discovery stage so that the communicating entities mutually complete a simple participant discovery protocol; the first establishing module is used for establishing the communication connection of the management message communication modes of the server control unit and the client control unit 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 a preset communication mechanism according to the simple participant discovery protocol and the simple breakpoint discovery protocol.
In an embodiment of the application, the first establishing 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, so as to obtain the 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, a remote procedure call protocol request conforming to the client control unit is obtained, and communication connection of a 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 200 is further configured to perform data communication between different domains according to a data communication channel in the micro control unit; performing data interaction between different communication protocols according to a data interaction channel in the micro control unit; 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 application embodiment further comprises: the second establishing module and the third establishing module.
The second establishing module is used for establishing a first routing table for communication among domains before data communication among different domains is carried out according to a data communication channel in the micro control unit; and the third establishing module is used for establishing communication connection among entities of communication in different domains according to the first routing table so as to create a data communication channel.
In one embodiment of the present application, the system 10 of the present application embodiment further comprises: the third establishing 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 a data interaction channel in the micro control unit; and the fourth establishing module is used for establishing communication connection between different communication protocols according to the second routing table so as to create a data interaction channel.
Optionally, in an 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 mcu chip; combing the data type of the data loaded 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 or not, wherein the preset principle is that the data types and the management message communication modes are configured in a one-to-one correspondence manner; and 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, dividing the management message communication modes according to the data types.
In an embodiment of the present application, the dividing module 200 is further configured to determine whether the management message communication manners satisfy the service definition facing the service architecture when the number of the divided management message communication manners does not reach the maximum value, or the number of the divided management message communication manners reaches the maximum value and the management message communication manners of the number of the unreserved portions are used for the later-stage function extension; if the management message communication mode meets the service definition of the service-oriented architecture, the data of the micro-control chip is classified according to the characteristics of the service-oriented architecture, the data of the same type is classified into one management message communication mode, and each data is marked.
In an embodiment of the present application, the dividing module 200 is further configured to classify data according to a functional security level if the management message communication manner satisfies a service definition of a service-oriented architecture, divide 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 on the data distribution communication method embodiment is also applicable to the data distribution communication system of this embodiment, and details are not described here.
According to the data distribution communication system provided by the embodiment of the application, the management message communication mode which can be borne by the micro control unit is determined according to the preset communication mechanism, the management message communication mode is divided by using the data in the micro control unit, the data is preprocessed, the processed data is distributed by using the divided management message communication mode so as to communicate by using the distributed data, and 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 run 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 MCU cannot carry a DDS protocol stack due to limited operation and storage resources, a large number of management message communication modes cannot be used in the MCU, and the whole vehicle communication architecture is complex, communication delay is high and the like due to the fact that only the DDS protocol stack is arranged on the MPU 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:
The processor 1002 executes the program to implement the data distribution communication method provided in the above-described embodiment.
Further, the computer device further includes:
a communication interface 1003 for communicating between the memory 1001 and the processor 1002.
A memory 1001 for storing computer programs that may be run on the processor 1002.
The Memory 1001 may include a high-speed RAM (Random Access Memory) Memory, and may also include a nonvolatile 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 interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but that does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 1001, the processor 1002, and the communication interface 1003 are integrated on one chip, the memory 1001, the processor 1002, and the communication interface 1003 may complete communication with each other through an internal interface.
The processor 1002 may be a Central Processing Unit (CPU), application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
Embodiments of the present application also provide a non-transitory computer-readable storage medium containing a computer program, on which the computer program is stored, and when the computer program is executed by a processor, the method for data distribution communication as above is implemented.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," 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 application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, e.g., two, three, etc., unless specifically limited 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 steps of a custom logic function or process, and alternate 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 implementing the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above 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. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a programmable gate array, a field programmable gate array, or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (12)
1. A data distribution communication method is applied to a micro control unit and is characterized by comprising the following steps:
determining a management message communication mode which can be borne by the micro control unit according to a preset communication mechanism;
dividing the management message communication mode by using data in the micro control unit;
preprocessing the data;
and carrying out data distribution on the processed data by utilizing a divided management message communication mode so as to communicate by utilizing the distributed data.
2. The method according to claim 1, wherein before determining the management message communication mode that can be carried by the mcu according to the preset communication mechanism, the method comprises:
formulating a name and an identification of the management message communication mode of the client control unit;
in the discovery phase of the domain participants, entities needing to communicate are placed in a domain, so that the entities needing to communicate mutually complete a simple participant discovery protocol;
in the end point discovery stage, according to the name and the identification of the management message communication mode, establishing the communication connection of the management message communication mode between the server control unit and 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.
3. The method according to claim 2, wherein, in the endpoint discovery phase, establishing a communication connection of the management message communication mode between the server side control unit and the client side control unit according to the name and the identifier of the management message communication mode comprises:
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 identifier of the server control unit to obtain the remote procedure call protocol request conforming to the server control unit;
and when the client control unit receives a remote procedure call protocol reply of the server control unit, filtering the remote procedure call protocol reply according to the global unique identifier of the client control unit to obtain a remote procedure call protocol request conforming to the client control unit so as to establish communication connection of a management message communication mode of the server control unit and the client control unit.
4. The method of claim 1, wherein the preprocessing the data comprises:
carrying out data communication among different domains according to a data communication channel in the micro control unit;
performing data interaction between different communication protocols according to a data interaction channel in the micro control unit;
and carrying out redundancy processing on the data after the data communication and the data interaction to obtain the processed data.
5. The method of claim 4, prior to said communicating data between different domains according to a data communication channel in said micro control unit, comprising:
a first routing table for communication between domains is made;
and establishing communication connection between entities communicating in different domains according to the first routing table so as to create the data communication channel.
6. The method of claim 4, wherein before performing data interaction between different communication protocols according to a data interaction channel in the MCU, the method 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 create the data interaction channel.
7. The method of claim 1, wherein said partitioning the management message communication pattern using data in the mcu comprises:
determining the maximum value of the number of the management message communication modes borne by the micro-control unit chip;
combing the data type of the data loaded 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 or not, wherein the preset principle is that the data types and the management message communication modes are configured in a one-to-one correspondence manner;
and 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, dividing the management message communication modes according to the data types.
8. The method of claim 7, wherein said partitioning the management message communication mode 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 of the number of the unreserved parts are used for later-stage function extension, judging whether the management message communication modes meet service definition oriented to a service architecture or not;
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.
9. The method of claim 8, wherein said partitioning the management message communication mode using data in the micro-control unit comprises:
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.
10. A data distribution communication system for use in a micro-control unit, comprising:
the determining module is used for determining a management message communication mode which can be borne by the micro control unit according to a preset communication mechanism;
the dividing module is used for dividing the management message communication mode by using 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.
11. A computer arrangement, characterized in that the computer arrangement comprises a processor and a memory, the memory having stored thereon a computer program which, when executed by the processor, carries out the data distribution communication method of any one of claims 1-9.
12. 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 one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211180655.2A CN115913809B (en) | 2022-09-26 | 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 | 2022-09-26 | Data distribution communication method, system, computer device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115913809A true CN115913809A (en) | 2023-04-04 |
CN115913809B CN115913809B (en) | 2024-05-03 |
Family
ID=86471566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211180655.2A Active CN115913809B (en) | 2022-09-26 | 2022-09-26 | Data distribution communication method, system, computer device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115913809B (en) |
Citations (20)
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 |
CN106412023A (en) * | 2016-09-05 | 2017-02-15 | 南京臻融软件科技有限公司 | Multi-source data distribution method based on distribution subscription mechanism |
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 | 中国人民解放军陆军工程大学 | RTPS (real time packet service) protocol acceleration method of DDS (direct digital synthesizer) network, node and system thereof |
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 |
-
2022
- 2022-09-26 CN CN202211180655.2A patent/CN115913809B/en active Active
Patent Citations (20)
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 | 中国人民解放军陆军工程大学 | RTPS (real time packet service) protocol acceleration method of DDS (direct digital synthesizer) network, node and system thereof |
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)
Title |
---|
DOHYUNG KIM: "A DDS-based distributed simulation approach for engineering-level models", 《PROCEEDINGS OF THE WINTER SIMULATION CONFERENCE 2014》, 26 January 2015 (2015-01-26) * |
严静: "基于数据分发服务的远程过程调用机制的研究与实现", 《中国优秀硕士论文全文数据库》, 15 April 2018 (2018-04-15) * |
杨曙辉;王小非;陈龙;: "实时数据分发服务系统重构正确性保证研究", 舰船电子工程, no. 01, 20 January 2009 (2009-01-20) * |
韩军;王永生;: "基于DDS的传感器数据分发系统的设计与实现", 舰船电子工程, no. 10, 20 October 2018 (2018-10-20) * |
黄善柒: "基于Actor模型的数据分发系统的设计与实现", 《中国优秀硕士论文全文数据库》, 15 March 2018 (2018-03-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN115913809B (en) | 2024-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104219127B (en) | A kind of creation method and equipment of virtual network example | |
CN112671882B (en) | Same-city double-activity system and method based on micro-service | |
CN112104754B (en) | Network proxy method, system, device, equipment and storage medium | |
WO2022222901A1 (en) | System architecture for implementing dds communication on basis of autosar, communication method, and device | |
CN106970843B (en) | Remote calling method and device | |
CN112838940A (en) | Network controller framework and data processing method | |
CN111447143A (en) | Business service data transmission method and device, computer equipment and storage medium | |
JP2024001296A (en) | Management device, vehicle communication system, vehicle communication management method, and vehicle communication management program | |
CN112468589A (en) | Data distribution method and device, computer equipment and storage medium | |
CN112398845A (en) | Data transmission method, data transmission device, data transmission system and electronic equipment | |
CN106941522B (en) | Lightweight distributed computing platform and data processing method thereof | |
CN113360386A (en) | Switching chip drive test method, device, electronic equipment and storage medium | |
CN114816651A (en) | Communication method, device and system | |
CN105791147A (en) | Connection method of load equalizer, instantiated deployment method and device for business | |
CN115913809B (en) | Data distribution communication method, system, computer device and storage medium | |
CN116567094A (en) | Service information processing method based on micro service system | |
CN109525539B (en) | Capability calling method, call receipt method, information processing method and system | |
CN115988078A (en) | Communication method, system, electronic device and storage medium | |
CN115314375A (en) | Block chain network cross-domain networking method, device, storage medium and program product | |
CN113141390B (en) | Netconf channel management method and device | |
CN114911577A (en) | Method, device, equipment and storage medium for setting network isolation rule | |
CN114422569A (en) | Message pushing method and device of cloud desktop | |
CN112118275B (en) | Overload processing method, internet of things platform and computer readable storage medium | |
CN115883283A (en) | Deployment method and device of containerization VNF | |
CN113110111B (en) | Distributed semi-physical simulation system based on NS3 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |