CN114915516A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN114915516A
CN114915516A CN202210511085.4A CN202210511085A CN114915516A CN 114915516 A CN114915516 A CN 114915516A CN 202210511085 A CN202210511085 A CN 202210511085A CN 114915516 A CN114915516 A CN 114915516A
Authority
CN
China
Prior art keywords
communication
controller
service
data
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210511085.4A
Other languages
Chinese (zh)
Inventor
孙荫权
张晓谦
李岩
田学明
于士淇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202210511085.4A priority Critical patent/CN114915516A/en
Publication of CN114915516A publication Critical patent/CN114915516A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40234Local Interconnect Network LIN
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention discloses a communication method and a communication device. The method comprises the following steps: in the process of communication based on the target communication protocol, a first communication role of a first controller communication terminal and a second communication role of a second controller communication terminal are determined. If the first communication role is a data sender and the second communication role is a data receiver, sequencing the communication service to be sent of the first controller communication end to obtain an identifiable communication message of the second controller communication end, and sending the identifiable communication message to the second controller communication end based on a target communication protocol. And if the first communication role is a data receiver and the second communication role is a data sender, performing deserialization processing on the communication message to be sent of the communication end of the second controller to obtain the identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on a target communication protocol to realize the mutual communication between the communication end of the first controller and the communication end of the second controller.

Description

Communication method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
With the rapid development of electronic communication technology, intelligent driving has advanced people's lives. Currently, a controller of a smart driving vehicle includes a signal-based communication terminal and a service-based communication terminal. The signal-based communication terminal generally uses a Controller Area Network (CAN) protocol and a lin (local Interconnect Network) bus protocol for communication, and supports a high-safety and high-real-time control application algorithm. The service-based communication end uses the Ethernet to provide a high-speed communication mechanism, application dynamic management and object-oriented service communication. However, in the prior art, the communication terminals of the controllers in the intelligent driving vehicle cannot realize mutual communication.
Disclosure of Invention
The invention provides a communication method and a communication device, which aim to solve the problem that communication between communication ends of controllers in an intelligent driving vehicle cannot be realized in the prior art.
According to an aspect of the present invention, there is provided a communication method, the method including:
in the process that a first controller communication end and a second controller communication end communicate based on a target communication protocol, determining a first communication role of the first controller communication end and a second communication role of the second controller communication end;
if the first communication role is a data sender and the second communication role is a data receiver, determining communication service to be sent of the communication end of the first controller, carrying out serialization processing on the communication service to be sent to obtain an identifiable communication message of the communication end of the second controller, and sending the identifiable communication message to the communication end of the second controller based on the target communication protocol;
and if the first communication role is a data receiver and the second communication role is a data sender, determining a communication message to be sent of the communication end of the second controller, performing deserialization processing on the communication message to be sent to obtain identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on the target communication protocol.
According to another aspect of the present invention, a communication apparatus is provided. The device includes:
the role determination module is used for determining a first communication role of a first controller communication end and a second communication role of a second controller communication end in the process of communication between the first controller communication end and the second controller communication end based on a target communication protocol;
the first communication module is used for determining communication services to be sent of the communication end of the first controller if the first communication role is a data sender and the second communication role is a data receiver, performing serialization processing on the communication services to be sent to obtain identifiable communication messages of the communication end of the second controller, and sending the identifiable communication messages to the communication end of the second controller based on the target communication protocol;
and the second communication module is used for determining a communication message to be sent of the communication end of the second controller if the first communication role is a data receiver and the second communication role is a data sender, performing deserialization processing on the communication message to be sent to obtain identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on the target communication protocol.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the communication method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the communication method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, in the process that the communication end of the first controller and the communication end of the second controller communicate based on the target communication protocol, the first communication role of the communication end of the first controller and the second communication role of the communication end of the second controller are determined, so that whether the communication end of the first controller and the communication end of the second controller are a data sending party or a data receiving party can be determined. After the communication role is determined, if the first communication role is a data sender and the second communication role is a data receiver, the communication service to be sent of the communication end of the first controller can be determined, and then the communication service to be sent can be subjected to serialization processing, so that the identifiable communication message of the communication end of the second controller can be obtained, and the identifiable communication message can be sent to the communication end of the second controller based on the target communication protocol. If the first communication role is a data receiver and the second communication role is a data sender, the communication message to be sent of the communication end of the second controller can be determined, and then the communication message to be sent can be subjected to deserialization processing, so that the identifiable communication service of the communication end of the first controller can be obtained, and then the identifiable communication service can be sent to the communication end of the first controller based on the target communication protocol. The problem of among the prior art can't realize intercommunication between each controller communication terminal among the intelligent driving vehicle, realize intercommunication between each controller communication terminal among the intelligent driving vehicle to reach the technical effect who promotes the communication performance of vehicle.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a communication method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a communication method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a communication method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a communication method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a communication device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart illustrating a communication method according to an embodiment of the present invention, where the embodiment is applicable to a situation where communication terminals of controllers in an intelligent vehicle communicate with each other, and the method may be performed by a communication device, where the communication device may be implemented in a form of hardware and/or software, and the communication device may be configured in an electronic device such as a computer or a server.
As shown in fig. 1, the method of the present embodiment includes:
s110, in the process that the first controller communication end and the second controller communication end communicate based on the target communication protocol, a first communication role of the first controller communication end and a second communication role of the second controller communication end are determined.
The target communication protocol is a rule and an agreement which are required to be followed by the first controller communication terminal and the second controller communication terminal to complete communication or service. In the implementation of the present invention, the target communication protocol may be a Data Distribution Service (DDS) protocol. The DDS protocol is adopted for communication, so that the data can be distributed efficiently and flexibly in real time, and various distributed real-time communication application requirements can be met. Accordingly, the communication based on the target communication protocol may be ethernet communication based on the DDS protocol.
The first controller communication terminal may be a controller communication terminal based on service communication, such as a microprocessor unit (MPU) terminal. The second controller communication terminal may be a controller communication terminal based on signal communication, such as a Micro Control Unit (MCU) terminal. The first communication role is the communication role of the communication end of the first controller. The second communication role is the communication role of the communication end of the second controller. The communication roles may include a data receiver and a data sender.
Specifically, in the process of performing ethernet communication between the first controller communication terminal and the second controller communication terminal based on the target communication protocol, it may be determined whether the first communication role of the first controller communication terminal is a data sender or a data receiver, and it may be determined whether the second communication role of the second controller communication terminal is a data receiver or a data sender. It is to be understood that if the first communication role is a data sender, then the second communication role is a data receiver. Accordingly, if the first communication role is a data receiver, the second communication role is a data sender.
Illustratively, the first controller communication end is an MPU end, the second controller communication end is an MCU end, and the target communication protocol is a DDS protocol. In the process that the MPU end and the MCU end carry out Ethernet communication based on the DDS protocol, whether the communication roles of the MPU end and the MCU end are a data sending party or a data receiving party can be determined.
And S120, if the first communication role is a data sender and the second communication role is a data receiver, determining the communication service to be sent of the communication end of the first controller, carrying out serialization processing on the communication service to be sent to obtain an identifiable communication message of the communication end of the second controller, and sending the identifiable communication message to the communication end of the second controller based on a target communication protocol.
The communication service to be sent can be understood as a service that the communication terminal of the first controller needs to send to the communication terminal of the second controller. The identifiable communication message may be a message identifiable by the communication terminal of the second controller, which is obtained by performing serialization processing on the communication service to be sent of the communication terminal of the first controller. The serializing the communication service to be transmitted may be a serializing of the communication service to be transmitted by a serializing alignment algorithm.
Specifically, if the first communication role is a data sender and the second communication role is a data receiver, it may be determined that the first controller communication end needs to send a communication service to be sent to the second controller communication end. After the communication service to be sent is determined, the communication service to be sent can be serialized by calling a serialization alignment algorithm. And then the identifiable communication message of the second control communication terminal can be obtained. Therefore, the recognizable communication message can be sent to the second controller communication terminal based on the target communication message, so that the second controller communication can recognize the communication data contained in the recognizable communication message after receiving the recognizable communication message.
Along the above example, in the process of transmitting the communication service of the MPU side to the MCU side, the serialization processing of the communication service of the MPU side may be performed. Therefore, the recognizable communication message of the MCU terminal can be obtained. And then the identifiable message can be sent to the MCU terminal.
S130, if the first communication role is a data receiver and the second communication role is a data sender, determining a communication message to be sent of the communication end of the second controller, performing deserialization processing on the communication message to be sent to obtain identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on a target communication protocol.
The communication message to be sent can be understood as a message that the communication end of the second controller needs to send to the communication end of the first controller. The identifiable communication service may be a service identifiable by the communication end of the first controller obtained by performing deserialization processing on the communication packet to be sent at the communication end of the second controller. The deserializing of the communication message to be sent may be deserializing of the communication message to be sent by a deserializing alignment algorithm.
Specifically, if the first communication role is a data receiver and the second communication role is a data sender, it may be determined that the communication end of the second controller needs to send a to-be-sent communication packet to the communication end of the first controller. After the communication message to be sent is determined, the deserializing processing can be carried out on the communication message to be sent by calling the deserializing alignment algorithm corresponding to the serializing alignment algorithm, so that identifiable communication service which can be identified by the communication end of the first controller can be obtained. And further, the recognizable communication service can be sent to the first controller communication terminal based on the target communication protocol, so that the first controller communication terminal can recognize the communication data in the recognizable communication service after receiving the recognizable communication service.
Along the above example, in the process of sending the communication message of the MCU to the MPU, the communication message of the MCU may be deserialized. So that recognizable communication services of the MPU side can be obtained. And then the identifiable communication service can be transmitted to the MPU side.
It should be noted that, in the embodiment of the present invention, in the implementation of the present invention, serialization may be used to facilitate storing data or transmitting data in a network, and deserialization is reverse engineering of serialization and may be used to recover serialized data.
In addition, although the embodiments of the present invention describe S110, S120, and S130, in a specific implementation process, the execution sequence of S120 and S130 may be arbitrary. It can be understood that, in the operation S130, after determining the communication packet to be sent at the communication end of the second controller, the communication packet to be sent may be serialized, so that the identifiable communication service at the communication end of the first controller can be obtained. Accordingly, in the re-execution of S120 operation, after determining the communication service to be sent of the first controller communication end, the communication service to be sent may be deserialized, so that the identifiable communication packet of the second controller communication end may be obtained.
According to the technical scheme of the embodiment of the invention, in the process of communication between the first controller communication terminal and the second controller communication terminal based on the target communication protocol, whether the first controller communication terminal and the second controller communication terminal are data sending terminals or data receiving terminals can be determined by determining the first communication role of the first controller communication terminal and the second communication role of the second controller communication terminal. After the communication role is determined, if the first communication role is a data sender and the second communication role is a data receiver, the communication service to be sent of the communication end of the first controller can be determined, and then the communication service to be sent can be subjected to serialization processing, so that the identifiable communication message of the communication end of the second controller can be obtained, and the identifiable communication message can be sent to the communication end of the second controller based on the target communication protocol. If the first communication role is a data receiver and the second communication role is a data sender, the communication message to be sent of the communication end of the second controller can be determined, and then the communication message to be sent can be subjected to deserialization processing, so that the identifiable communication service of the communication end of the first controller can be obtained, and then the identifiable communication service can be sent to the communication end of the first controller based on the target communication protocol. The problem of among the prior art can't realize intercommunication between each controller communication terminal among the intelligent driving vehicle, realize intercommunication between each controller communication terminal among the intelligent driving vehicle to reach the technical effect who promotes the communication performance of vehicle.
Example two
Fig. 2 is a flowchart of a communication method according to a second embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, the determining a communication service to be sent of the communication end of the first controller includes: determining the communication service type of the communication between the first controller communication terminal and the second controller communication terminal; and when the communication service type is a service event type, determining to-be-sent communication data of the first controller communication terminal, performing abstraction processing on the to-be-sent communication data to obtain an event communication service of the service event type, and using the event communication service as the to-be-sent communication service of the first controller communication terminal. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of this embodiment specifically includes:
s210, in the process that the first controller communication end and the second controller communication end communicate based on the target communication protocol, a first communication role of the first controller communication end and a second communication role of the second controller communication end are determined.
S220, if the first communication role is a data sender and the second communication role is a data receiver, determining the communication service type of the communication between the first controller communication end and the second controller communication end.
The communication service type can represent the type of the service received or sent by the communication terminal of the first controller. The service received or transmitted by the first controller communication terminal may include at least one of an event, a method, and a field. Specifically, when the service received or sent by the communication end of the first controller is an event, the communication service type is a service event type; or, when the service received or sent by the first controller communication terminal is a method, the communication service type is a service method type; or, when the service received or sent by the communication terminal of the first controller is field, the communication service type is the service field type.
Specifically, if the first communication role is a data sender and the second communication role is a data receiver, the communication service type of the communication service to be sent, which is sent by the first controller communication end to the second controller communication end, may be determined, that is, it may be determined whether the service to be sent, which is sent by the first controller communication end to the second controller communication end, is an event, a method, or a field.
And S230, when the communication service type is the service event type, determining to-be-sent communication data of the communication end of the first controller, performing abstraction processing on the to-be-sent communication data to obtain an event communication service of the service event type, and using the event communication service as the to-be-sent communication service of the communication end of the first controller.
The communication data to be sent may be an instruction or a message sent by the first controller communication terminal to the second controller communication terminal.
Specifically, when the communication service type is a service event type, it can be understood that when the communication service to be sent, which is required to be sent by the communication terminal of the first controller to the communication terminal of the second controller, is an event, the communication data to be sent of the communication terminal of the first controller can be determined. After determining the communication data to be sent, the communication data to be sent at the communication end of the first controller may be abstracted into an event. And then an event communication service of the service event type can be obtained. Therefore, the event communication service can be used as a communication service to be sent of the communication terminal of the first controller.
S240, carrying out serialization processing on the communication service to be sent to obtain the identifiable communication message of the communication end of the second controller, and sending the identifiable communication message to the communication end of the second controller based on the target communication protocol.
And S250, if the first communication role is a data receiver and the second communication role is a data sender, determining a communication message to be sent of the communication end of the second controller, performing deserialization processing on the communication message to be sent to obtain identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on a target communication protocol.
It can be understood that, if the communication service type of the communication between the first controller communication terminal and the second controller communication terminal is a service event type, the communication packet to be sent of the second controller communication terminal may be determined in the following manner:
and determining the initial message to be sent of the second and controller communication terminals, and further performing message packaging processing on the initial message to be sent based on the target communication protocol, so that the packaged message can be obtained. And then the packaged message can be used as a communication message to be sent of a communication end of the second controller. The initial message to be sent may be a message generated based on an original communication protocol of the communication end of the second controller, where the original communication protocol may be a CAN protocol or a LIN protocol.
The message format of the initial message to be sent may be communication protocol binding of signals such as a CAN protocol or a LIN protocol and splicing of signal-based payloads. The message format of the communication message to be sent can be DDS communication protocol binding and signal-based payload splicing. It should be noted that, the concrete representation form of the splicer used for splicing may be various, such as "+" and "-", and is not limited in this respect.
According to the technical scheme of the embodiment of the invention, the communication service type of communication between the first controller communication terminal and the second controller communication terminal is determined. When the communication service type is the service event type, determining to-be-sent communication data of the first controller communication end, performing abstraction processing on the to-be-sent communication data to obtain an event communication service of the service event type, and taking the event communication service as the to-be-sent communication service of the first controller communication end.
EXAMPLE III
Fig. 3 is a flowchart of a communication method according to a third embodiment of the present invention, and based on the foregoing embodiment, the communication service to be sent of the communication end of the first controller is further optimized. And further optimizing the communication message to be sent of the communication end of the second controller. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 3, the method of this embodiment specifically includes:
s301, in the process that the first controller communication end and the second controller communication end communicate based on the target communication protocol, a first communication role of the first controller communication end and a second communication role of the second controller communication end are determined.
S302, if the first communication role is a data sender and the second communication role is a data receiver, determining the communication service type of the communication between the first controller communication end and the second controller communication end.
S303, when the communication service type is the service method type and the first controller communication end does not store the data calculation method, determining a service method request of the first controller communication end, generating a communication message with the recognizable method of the second controller communication end based on the service method request, and sending the communication message with the recognizable method to the second controller communication end.
The service method request may be understood as a request that the first controller communication terminal sends a service method to the second controller communication terminal, and may be used to request a data calculation method stored in the second controller communication terminal. The service method request may carry at least one piece of data to be calculated and a method identifier of a data calculation method used for calculating the data to be calculated.
Specifically, when the communication service type is the service method type and the first controller communication terminal does not store the data calculation method, it can be understood that, when the communication service to be sent, which the first controller communication terminal needs to send to the second controller communication terminal, is the method and the first controller communication terminal does not store the data calculation method, a service method request carrying the data to be calculated can be generated at the first controller communication terminal. And further, the recognizable method communication message of the second controller communication end can be generated based on the service method request and the data to be calculated carried by the service method request. Therefore, the recognizable method communication message can be sent to the second controller communication end, so that the second controller communication end receives the recognizable method communication message and recognizes the service method request and the data to be calculated in the recognizable method communication message.
S304, when the second controller communication terminal identifies the service method request and the data to be calculated in the identifiable method communication message, determining a target calculation method corresponding to the service method request in the data calculation method, and obtaining a calculation result according to the target calculation method and the data to be calculated.
The target calculation method can be understood as a data calculation method which needs to calculate data to be calculated currently.
Specifically, when the second controller communication terminal identifies the service method request and the data to be calculated in the identifiable method communication message, the target calculation method corresponding to the service method request in the data calculation method may be determined. And then the data to be calculated can be substituted into the target calculation method. So that a calculation result can be obtained.
S305, abstracting the calculation result into a method communication service corresponding to the service method type, and taking the method communication service as a communication service to be sent of the communication end of the first controller.
A method communication service may be understood as a communication service of a service method type, among others.
Specifically, after the calculation result is obtained, the calculation result may be abstracted based on the service method type. And then, method communication service corresponding to the service method type can be obtained. Therefore, the method communication service can be used as the communication service to be sent of the communication terminal of the first controller.
S306, carrying out serialization processing on the communication service to be sent to obtain the identifiable communication message of the communication end of the second controller, and sending the identifiable communication message to the communication end of the second controller based on the target communication protocol.
S307, if the first communication role is a data receiving party and the second communication role is a data sending party, determining the communication service type of the communication between the first controller communication end and the second controller communication end.
S308, when the communication service type is the service method type, the communication service method is stored in the first controller communication end, and the communication service method is not stored in the second controller communication end, determining a data communication message sent by the second controller communication end in the first controller communication end, and obtaining the identifiable method request and the data to be calculated of the first controller communication end based on the data communication message.
The data to be calculated can be loaded in a data communication message sent by a second controller communication terminal in the first controller communication terminal. The recognizable method request may be understood as a communication service method request for calculating data to be calculated in the communication side of the second controller.
Specifically, when the communication service type is the service method type, and the communication service method is stored in the first controller communication end and the communication service method is not stored in the second controller communication end, the data communication packet sent by the second controller communication end in the first controller communication end may be determined. And then the data communication message can be analyzed. So that the recognizable method requests and the data to be calculated of the communication end of the first controller can be obtained.
S309, determining a target service method corresponding to the identifiable method request in the communication service methods, obtaining a calculation result based on the target service method and the data to be calculated, abstracting the calculation result into an identifiable calculation result communication message of the second controller communication end of the service method type, and taking the identifiable calculation result communication message as a communication message to be sent of the second controller communication end.
The target service method may be a communication service method corresponding to the identifiable method request of the second controller communication terminal in the first controller communication terminal.
Specifically, after the recognizable method request and the data to be calculated of the communication end of the first controller are obtained, a target service method corresponding to the recognizable method request in the communication service method may be determined. And then the data to be calculated can be substituted into the target service method for calculation. So that a calculation result can be obtained. After the calculation result is obtained, the calculation result may be abstracted into an identifiable calculation result communication packet of the second controller communication end of the service method type. Further, the communication message of the calculation result can be identified as the communication message to be sent of the communication terminal of the second controller.
S310, performing deserialization processing on the communication message to be sent to obtain identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on the target communication protocol.
The technical scheme of the embodiment of the invention further details how the first controller communication terminal obtains the method communication service of the service method type when the type of the service sent by the first controller communication terminal is the method. And further refining how the second controller communication terminal can obtain the recognizable calculation result communication message when the type of the service received by the first controller communication terminal is the method.
Example four
Fig. 4 is a flowchart of a communication method according to a fourth embodiment of the present invention, where on the basis of the foregoing embodiment, the determining a communication service to be sent of a communication end of the first controller includes: and when the communication service type is a service field type, determining a data setting message of the communication end of the second controller, performing deserialization processing on the data setting message to obtain an identifiable data setting service of the communication end of the first controller, and using the identifiable data setting service as a communication service to be sent of the communication end of the first controller. Optionally, the determining the communication packet to be sent at the communication end of the second controller includes: and when the communication service type is the service field type, determining the data setting method service of the communication end of the second controller, and performing serialization processing on the data setting method service to obtain the identifiable data setting message of the communication end of the second controller. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 4, the method of this embodiment specifically includes:
s410, in the process that the first controller communication end and the second controller communication end communicate based on the target communication protocol, a first communication role of the first controller communication end and a second communication role of the second controller communication end are determined.
And S420, if the first communication role is a data sender and the second communication role is a data receiver, determining the communication service type of the communication between the first controller communication end and the second controller communication end.
S430, when the communication service type is the service field type, determining a data setting message of the communication end of the second controller, performing deserialization processing on the data setting message to obtain an identifiable data setting service of the communication end of the first controller, and taking the identifiable data setting service as a communication service to be sent of the communication end of the first controller.
The data setting message can be understood as a message for assigning values to data. The identifiable data setting service may be understood as a message that duplicates data.
Specifically, when the communication service type is a service field type, it can be understood that, when the service to be sent, which is required to be sent to the communication end of the second controller by the communication end of the first controller, is a field, the message of the service field type sent by the communication end of the second controller can be acquired. If the service field type message sent by the second control communication terminal is a data setting message, the data setting message can be subjected to deserialization processing. And further, identifiable data setting service of the communication end of the first controller can be obtained. Therefore, the identifiable data setting service can be used as the communication service to be sent of the communication terminal of the first controller.
Optionally, when the communication service type is the service field type, determining a data acquisition message of the communication end of the second controller, performing deserialization processing on the data acquisition message to obtain an identifiable data acquisition service of the communication end of the first controller, and using the identifiable data acquisition service as a communication service to be sent of the communication end of the first controller.
The data acquisition message may be understood as a message for acquiring data content. The identifiable data acquisition service may be understood as a service that acquires data content.
Specifically, when the communication service type is the service field type, the message of the service field type sent by the second control communication terminal may be obtained. If the message data acquisition message of the service field type sent by the second control communication terminal is the message data acquisition message, the data acquisition message can be subjected to deserialization processing. And further, identifiable data acquisition service of the communication end of the first controller can be obtained. Therefore, the identifiable data acquisition service can be used as a communication service to be sent of the communication terminal of the first controller.
Further, when the first controller communication terminal receives the identifiable data setting service, it is possible to identify target setting field data in the identifiable data setting service and to determine field data to be updated in the first controller communication terminal corresponding to the target setting field data. And then the field data to be updated in the communication terminal of the first controller can be updated to the target setting field data, so as to update the field data. Wherein the target setting field data is understood as data of a field that needs to be set currently. The field data to be updated can be understood as data of which the field needs to be updated.
S440, carrying out serialization processing on the communication service to be sent to obtain the identifiable communication message of the communication end of the second controller, and sending the identifiable communication message to the communication end of the second controller based on the target communication protocol.
S450, if the first communication role is a data receiver and the second communication role is a data sender, determining the communication service type of the communication between the first controller communication end and the second controller communication end.
And S460, when the communication service type is the service field type, determining the data setting field service of the communication end of the first controller, and performing serialization processing on the data setting field service to obtain the identifiable data setting message of the communication end of the second controller.
Here, the data set field service may be understood as a service for setting field data, e.g., the data set field service may be set ().
Specifically, when the communication service type is the service field type, the service of the service field type sent by the communication end of the first controller may be determined. And if the service of the service field type sent by the communication end of the first controller is the data setting field service. And then the data setting field service can be serialized, so that the identifiable data setting message of the second controller communication end can be obtained.
Optionally, when the communication service type is the service field type, determining the data acquisition field service of the communication end of the first controller, and performing serialization processing on the data acquisition field service to obtain the identifiable data acquisition packet of the communication end of the second controller.
The data acquisition field service may be understood as a service for acquiring field data, for example, the data acquisition field service may be get ().
Specifically, when the communication service type is the service field type, the service sent by the communication end of the first controller may be determined. When the service sent by the first controller communication end is a data acquisition field service, the data acquisition field service may be serialized. And then the identifiable data acquisition message of the communication end of the second controller can be obtained.
S470, performing deserialization processing on the communication message to be sent to obtain the identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on the target communication protocol.
The technical scheme of the embodiment of the invention further details how the first controller communication terminal obtains the field setting service or the field obtaining service of the service field type when the type of the service sent by the first controller communication terminal is the field. And further detailing how the second controller communication terminal obtains the identifiable data acquisition message or the identifiable data setting message when the type of the service received by the first controller communication terminal is a field.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a communication device according to a fifth embodiment of the present invention. As shown in fig. 5, the apparatus includes: a role determination module 510, a first communication module 520, and a second communication module 530.
The role determination module 510 is configured to determine a first communication role of a first controller communication end and a second communication role of a second controller communication end in a process that the first controller communication end and the second controller communication end communicate based on a target communication protocol;
a first communication module 520, configured to determine a communication service to be sent at a communication end of the first controller if the first communication role is a data sender and the second communication role is a data receiver, perform serialization processing on the communication service to be sent, obtain an identifiable communication packet at the communication end of the second controller, and send the identifiable communication packet to the communication end of the second controller based on the target communication protocol;
a second communication module 530, configured to determine, if the first communication role is a data receiver and the second communication role is a data sender, a to-be-sent communication packet at the communication end of the second controller, perform deserialization on the to-be-sent communication packet to obtain an identifiable communication service of the communication end of the first controller, and send the identifiable communication service to the communication end of the first controller based on the target communication protocol.
According to the technical scheme of the embodiment of the invention, in the process that the communication end of the first controller and the communication end of the second controller communicate based on the target communication protocol, the role determination module determines the first communication role of the communication end of the first controller and the second communication role of the communication end of the second controller, so that whether the communication end of the first controller and the communication end of the second controller are a data sending party or a data receiving party can be determined. After the communication role is determined, if the first communication role is a data sender and the second communication role is a data receiver, the communication service to be sent of the communication end of the first controller can be determined through the first communication module, and then the communication service to be sent can be subjected to serialization processing, so that the recognizable communication message of the communication end of the second controller can be obtained, and the recognizable communication message can be sent to the communication end of the second controller based on the target communication protocol. If the first communication role is a data receiver and the second communication role is a data sender, the communication message to be sent of the communication end of the second controller can be determined through the second communication module, and then the communication message to be sent can be subjected to deserialization processing, so that the identifiable communication service of the communication end of the first controller can be obtained, and then the identifiable communication service can be sent to the communication end of the first controller based on the target communication protocol. The problem of among the prior art can't realize intercommunication between each controller communication terminal among the intelligent driving vehicle is solved, realized intercommunication between each controller communication terminal among the intelligent driving vehicle to reach the technical effect who promotes the communication performance between each controller among the vehicle.
Optionally, the first communication module 520 is configured to determine a communication service type of the communication between the first controller communication end and the second controller communication end; and when the communication service type is a service event type, determining to-be-sent communication data of the first controller communication terminal, performing abstraction processing on the to-be-sent communication data to obtain an event communication service of the service event type, and using the event communication service as the to-be-sent communication service of the first controller communication terminal.
Optionally, the first communication module 520 is configured to, when the communication service type is a service method type and the first controller communication end does not store a data calculation method, determine a service method request of the first controller communication end, generate an identifiable method communication packet of the second controller communication end based on the service method request, and send the identifiable method communication packet to the second controller communication end; when the second controller communication terminal identifies the service method request and the data to be calculated in the identifiable method communication message, determining a target calculation method corresponding to the service method request in the data calculation method, and obtaining a calculation result according to the target calculation method and the data to be calculated; abstracting the calculation result into method communication service corresponding to the service method type, and using the method communication service as communication service to be sent of the first controller communication terminal.
Optionally, the second communication module 530 is configured to, when the communication service type is a service method type, and the first controller communication end stores a communication service method and the second controller communication end does not store a communication service method, determine a data communication packet sent by the second controller communication end in the first controller communication end, and obtain, based on the data communication packet, an identifiable method request and data to be calculated of the first controller communication end; determining a target service method corresponding to the identifiable method request in the communication service methods, and obtaining a calculation result based on the target service method and the data to be calculated; and abstracting the calculation result into an identifiable calculation result communication message of the second controller communication end of the service method type, and taking the identifiable calculation result communication message as a communication message to be sent of the second controller communication end.
Optionally, the first communication module 520 is configured to determine, when the communication service type is a service field type, a data setting packet of the communication end of the second controller, perform deserialization processing on the data setting packet to obtain an identifiable data setting service of the communication end of the first controller, and use the identifiable data setting service as a communication service to be sent of the communication end of the first controller.
Optionally, the first communication module 520 is further configured to, when the communication service type is a service field type, determine the data acquisition packet at the communication end of the second controller, perform deserialization on the data acquisition packet to obtain an identifiable data acquisition service at the communication end of the first controller, and use the identifiable data acquisition service as a communication service to be sent at the communication end of the first controller.
Optionally, the apparatus further comprises: a field data updating module, configured to, when the first controller communication terminal receives the identifiable data setting service, identify target setting field data in the identifiable data setting service, determine field data to be updated in the first controller communication terminal corresponding to the target setting field data, and update the field data to be updated in the first controller communication terminal to the target setting field data.
Optionally, the second communication module 530 is configured to determine, when the communication service type is a service field type, a data setting field service of the communication end of the first controller, and perform serialization processing on the data setting field service to obtain an identifiable data setting packet of the communication end of the second controller.
Optionally, the second communication module 530 is further configured to determine, when the communication service type is a service field type, a data acquisition field service of the communication end of the first controller, perform serialization processing on the data acquisition field service, and obtain an identifiable data acquisition packet of the communication end of the second controller.
The communication device provided by the embodiment of the invention can execute the communication method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the communication apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the present invention.
EXAMPLE six
FIG. 6 illustrates a schematic structural diagram of an electronic device 10 that may be used to implement an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the communication method.
In some embodiments, the communication method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the communication method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the communication method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of communication, comprising:
in the process that a first controller communication end and a second controller communication end communicate based on a target communication protocol, determining a first communication role of the first controller communication end and a second communication role of the second controller communication end;
if the first communication role is a data sender and the second communication role is a data receiver, determining communication service to be sent of the communication end of the first controller, carrying out serialization processing on the communication service to be sent to obtain an identifiable communication message of the communication end of the second controller, and sending the identifiable communication message to the communication end of the second controller based on the target communication protocol;
and if the first communication role is a data receiver and the second communication role is a data sender, determining a communication message to be sent of the communication end of the second controller, performing deserialization processing on the communication message to be sent to obtain identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on the target communication protocol.
2. The method of claim 1, wherein the determining the communication service to be sent of the first controller communication terminal comprises:
determining the communication service type of the communication between the first controller communication terminal and the second controller communication terminal;
and when the communication service type is a service event type, determining to-be-sent communication data of the first controller communication terminal, performing abstraction processing on the to-be-sent communication data to obtain an event communication service of the service event type, and using the event communication service as the to-be-sent communication service of the first controller communication terminal.
3. The method of claim 2, wherein the determining the communication service to be sent of the first controller communication terminal comprises:
when the communication service type is a service method type and the first controller communication terminal does not store a data calculation method, determining a service method request of the first controller communication terminal, generating an identifiable method communication message of the second controller communication terminal based on the service method request, and sending the identifiable method communication message to the second controller communication terminal;
when the second controller communication terminal identifies the service method request and the data to be calculated in the identifiable method communication message, determining a target calculation method corresponding to the service method request in the data calculation method, and obtaining a calculation result according to the target calculation method and the data to be calculated;
abstracting the calculation result into method communication service corresponding to the service method type, and using the method communication service as communication service to be sent of the first controller communication terminal.
4. The method according to claim 2, wherein the determining the communication message to be sent of the communication terminal of the second controller comprises:
when the communication service type is a service method type, and the first controller communication terminal stores a communication service method and the second controller communication terminal does not store a communication service method, determining a data communication message sent by the second controller communication terminal in the first controller communication terminal, and obtaining an identifiable method request and data to be calculated of the first controller communication terminal based on the data communication message;
determining a target service method corresponding to the identifiable method request in the communication service methods, and obtaining a calculation result based on the target service method and the data to be calculated;
and abstracting the calculation result into an identifiable calculation result communication message of the second controller communication end of the service method type, and taking the identifiable calculation result communication message as a communication message to be sent of the second controller communication end.
5. The method of claim 2, wherein the determining the communication service to be sent of the first controller communication terminal comprises:
and when the communication service type is a service field type, determining a data setting message of the communication end of the second controller, performing deserialization processing on the data setting message to obtain an identifiable data setting service of the communication end of the first controller, and using the identifiable data setting service as a communication service to be sent of the communication end of the first controller.
6. The method of claim 5, further comprising:
and when the communication service type is a service field type, determining a data acquisition message of the communication end of the second controller, performing deserialization processing on the data acquisition message to obtain identifiable data acquisition service of the communication end of the first controller, and using the identifiable data acquisition service as communication service to be sent of the communication end of the first controller.
7. The method of claim 6, further comprising:
when the first controller communication terminal receives the identifiable data setting service, identifying target setting field data in the identifiable data setting service, determining field data to be updated in the first controller communication terminal corresponding to the target setting field data, and updating the field data to be updated in the first controller communication terminal to the target setting field data.
8. The method according to claim 2, wherein the determining the communication message to be sent of the communication terminal of the second controller comprises:
and when the communication service type is the service field type, determining the data setting field service of the communication end of the first controller, and performing serialization processing on the data setting field service to obtain the identifiable data setting message of the communication end of the second controller.
9. The method of claim 8, further comprising:
and when the communication service type is a service field type, determining the data acquisition field service of the communication end of the first controller, and performing serialization processing on the data acquisition field service to obtain the identifiable data acquisition message of the communication end of the second controller.
10. A communications apparatus, comprising:
the role determination module is used for determining a first communication role of a first controller communication end and a second communication role of a second controller communication end in the process of communication between the first controller communication end and the second controller communication end based on a target communication protocol;
the first communication module is used for determining communication services to be sent of the communication end of the first controller if the first communication role is a data sender and the second communication role is a data receiver, performing serialization processing on the communication services to be sent to obtain identifiable communication messages of the communication end of the second controller, and sending the identifiable communication messages to the communication end of the second controller based on the target communication protocol;
and the second communication module is used for determining a communication message to be sent of the communication end of the second controller if the first communication role is a data receiver and the second communication role is a data sender, performing deserialization processing on the communication message to be sent to obtain identifiable communication service of the communication end of the first controller, and sending the identifiable communication service to the communication end of the first controller based on the target communication protocol.
CN202210511085.4A 2022-05-11 2022-05-11 Communication method and device Pending CN114915516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210511085.4A CN114915516A (en) 2022-05-11 2022-05-11 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210511085.4A CN114915516A (en) 2022-05-11 2022-05-11 Communication method and device

Publications (1)

Publication Number Publication Date
CN114915516A true CN114915516A (en) 2022-08-16

Family

ID=82766897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210511085.4A Pending CN114915516A (en) 2022-05-11 2022-05-11 Communication method and device

Country Status (1)

Country Link
CN (1) CN114915516A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115623070A (en) * 2022-12-12 2023-01-17 南京芯驰半导体科技有限公司 IDL message processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100287600A1 (en) * 2009-05-11 2010-11-11 International Business Machines Corporation Assigning User Requests of Different Types or Protocols to a User by Trust Association Interceptors
CN107332854A (en) * 2017-07-17 2017-11-07 联动优势科技有限公司 A kind of sequence of message machinery of consultation and service providing device
CN112532564A (en) * 2019-09-17 2021-03-19 中国移动通信集团广东有限公司 Service calling method and device and electronic equipment
CN113839902A (en) * 2020-06-08 2021-12-24 腾讯科技(深圳)有限公司 Communication protocol adaptation method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100287600A1 (en) * 2009-05-11 2010-11-11 International Business Machines Corporation Assigning User Requests of Different Types or Protocols to a User by Trust Association Interceptors
CN107332854A (en) * 2017-07-17 2017-11-07 联动优势科技有限公司 A kind of sequence of message machinery of consultation and service providing device
CN112532564A (en) * 2019-09-17 2021-03-19 中国移动通信集团广东有限公司 Service calling method and device and electronic equipment
CN113839902A (en) * 2020-06-08 2021-12-24 腾讯科技(深圳)有限公司 Communication protocol adaptation method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115623070A (en) * 2022-12-12 2023-01-17 南京芯驰半导体科技有限公司 IDL message processing method and device, electronic equipment and storage medium
CN115623070B (en) * 2022-12-12 2023-03-10 南京芯驰半导体科技有限公司 IDL message processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN113242358A (en) Audio data processing method, device and system, electronic equipment and storage medium
CN112698872A (en) Voice data processing method, device, equipment and storage medium
CN115794313A (en) Virtual machine debugging method, system, electronic equipment and storage medium
CN114915516A (en) Communication method and device
CN112631800A (en) Kafka-oriented data transmission method and system, computer equipment and storage medium
CN113420275B (en) Data connection processing method, related device and computer program product
CN114579311A (en) Method, apparatus, device and storage medium for executing distributed computing task
CN115167351A (en) Controller function updating method and system, vehicle and server
CN113126958B (en) Decision scheduling customization method and system based on information flow
CN112311833B (en) Data updating method and device
CN115600671B (en) Data processing method, device, equipment and storage medium of deep learning framework
CN114116095B (en) Input method, input device, electronic equipment, medium and product
CN113568936B (en) Real-time stream data storage method, device and terminal equipment
CN115378991B (en) Message processing method, device, equipment and computer storage medium
CN110262756B (en) Method and device for caching data
CN117938831A (en) Data transmission method and device, electronic equipment and storage medium
CN116319633A (en) Instant messaging method, device, equipment and storage medium
CN114356505A (en) Method, apparatus, device, medium and product for scheduling groups of containers
CN116954941A (en) Message processing method and device, storage medium and electronic equipment
CN116279215A (en) Data processing method and device, electronic equipment and storage medium
CN115801718A (en) Message processing method and device, electronic equipment and message processing system
CN114896014A (en) Desktop image display method, device, equipment and storage medium
CN115225556A (en) Detection method, device, equipment and storage medium
CN117675897A (en) Application interaction method, device, equipment and storage medium

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