Communication method, device, vehicle and electronic equipment between vehicle-mounted containers
Through communication middleware, the dedicated data transmission channel is built between the on-board containers, which solves the problem of data transmission stability and delay between the on-board containers, achieves rapid and stable transmission and unified configuration, and reduces network intrusion.
Patent Information
- Application Number
- CN202211187301.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-09-28
AI Technical Summary
In the prior art, data transmission between on-board containers has stability problems and delays, and a unified rule configuration lacks, resulting in unstable and delayed data transmission.
By introducing communication middleware, the first proxy node obtains information about container applications, builds a management channel to interact with other proxy nodes, determines matching container applications, and establishes exclusive data transmission channels, configures policy routing and priorities to realize the between container applications. Fast and stable data transmission.
It realizes fast and stable data transmission between vehicle-mounted container applications, reduces intrusion into existing networks, unifies the rule configuration of data transmission paths, and facilitates monitoring and management and post-maintenance.
Smart Images

Figure CN115665221B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a method, device, vehicle, electronic device and computer-readable storage medium for communication between vehicle-mounted containers. Background Art
[0002] In related technologies, vehicle containers carry various applications through containers, decoupling software and hardware. With the rapid development of intelligent and connected vehicles, applications run in vehicle containers with independent operating environments, making application-level migration faster.
[0003] However, in the prior art, containers are simply grouped, and the containers within the groups and the internal applications are mapped. During data transmission, the on-board applications within the containers have difficulty finding each other, and the stability of data transmission cannot be ensured. When data needs to be transmitted, it is necessary to invade the existing network, pass through many paths, and there is no unified rule configuration, which leads to delays in data transmission.
[0004] Therefore, there is an urgent need for a method that enables fast and stable data transmission between vehicle-mounted container applications when using container technology, reduces the intrusion of existing networks, and unifies the rule configuration of transmission paths. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a method, device, vehicle, electronic device and computer-readable storage medium for communication between vehicle-mounted containers.
[0006] According to a first aspect of an embodiment of the present disclosure, a communication method between vehicle-mounted containers is provided, including: a first proxy node obtains application information sent by at least one first container application; the first proxy node establishes a management channel with other proxy nodes through a communication middleware; through the management channel, the first proxy node and the other proxy nodes interact with each other to obtain the application information; the first proxy node obtains application information corresponding to the other proxy nodes based on the interaction, and determines a second container application that matches the first container application, the second container application being a container application corresponding to the second proxy node; the first container application establishes a data transmission channel with the second container application through the communication middleware.
[0007] In some embodiments, the first proxy node obtains application information sent by at least one first container application, including: the first container application sends the application information to a broadcast address monitored by the first proxy node, the application information including application participant information and application endpoint information; and the application information corresponding to the first container application is recorded by the first proxy node.
[0008] In some embodiments, the first agent node builds a management channel with other agent nodes through a communication middleware, including: the first agent node and the other agent nodes exchange node information; according to the communication middleware protocol, all agent nodes participating in the communication are discovered; according to the communication middleware, a management channel between the first agent node and the other agent nodes is established.
[0009] In some embodiments, the first container application establishes a data transmission channel with the second container application through the communication middleware, including: configuring the policy routing of the first container application according to the application information of the first container application; notifying the first container application, the first proxy node obtains all the application participant information, and establishes the data transmission channel with the second container application based on the policy routing according to the communication middleware.
[0010] In some embodiments, after the first container application establishes a data transmission channel with the second container application through the communication middleware, the method includes: the first container application notifies the first proxy node that the data transmission channel has been established; the first proxy node notifies the time queue management module to configure the priority of the data frames to be scheduled, and determines the frame sequence of each of the data frames to be scheduled.
[0011] In some embodiments, the first proxy node notifies the time queue management module to configure the priority of the message queue to be scheduled and determines the frame sequence of each message queue to be scheduled, specifically including: performing time synchronization on the first container application and the second container application according to the time queue management module; configuring a time window for each data frame to be scheduled, and performing time scheduling on the data frame to be scheduled through the time window; configuring a preemption strategy for the data frame to be scheduled according to the first proxy node, the preemption strategy including preemption and non-preemption; when the preemption strategy of the data frame to be scheduled is preemption, performing the time scheduling preemption according to the priority of the data frame to be scheduled.
[0012] According to a second aspect of an embodiment of the present disclosure, a communication device between vehicle-mounted containers is provided, including: a first proxy node, a first container application, a second proxy node, a second container application, a time queue management module and a switch, wherein the first proxy node, the second proxy node and the time queue management module are all communicatively connected; the first container application is communicatively connected to the first proxy node, and the second container application is communicatively connected to the second proxy node; the first proxy node is used to obtain application information sent by at least one first container application; the first proxy node is also used to establish a management channel with other proxy nodes through a communication middleware; the first proxy node is also used to interact with the other proxy nodes through the management channel to obtain the application information obtained by each of them; the first proxy node is also used to obtain the application information corresponding to the other proxy nodes according to the interaction, and determine a second container application matching the first container application, the second container application being a container application corresponding to the second proxy node; the first container application is used to establish a data transmission channel with the second container application through the communication middleware.
[0013] According to a third aspect of an embodiment of the present disclosure, a vehicle is provided, storing a set of instruction sets, wherein the instruction sets are executed by the vehicle to implement the communication method between vehicle-mounted containers provided by the first aspect of the present disclosure.
[0014] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the communication method between vehicle-mounted containers provided in the first aspect of the present disclosure.
[0015] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the communication method between vehicle-mounted containers provided in the first aspect of the present disclosure are implemented.
[0016] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the vehicle-mounted container application builds an exclusive data transmission channel with other vehicle-mounted container applications through the communication middleware, unifies the data transmission configuration, and realizes fast and stable data transmission between other vehicle-mounted applications. Moreover, through the specific data transmission channel, the time delay and the difficulty of monitoring the container network are avoided. When the vehicle-mounted application uses the container technology, the communication middleware can be used to ensure that the communication nodes can discover each other, and the occupancy of the existing network is reduced, which is convenient for monitoring management and later maintenance.
[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] Figure 1 The present invention is a flow chart showing a method for communication between vehicle-mounted containers according to an exemplary embodiment.
[0020] Figure 2 The following is a flowchart of obtaining application information according to an exemplary embodiment.
[0021] Figure 3 The present invention is a flow chart of a method for establishing a management channel according to an exemplary embodiment.
[0022] Figure 4 The present invention is a flow chart of a method for establishing a data transmission channel shown in an exemplary embodiment.
[0023] Figure 5 The present invention is a flow chart of a method for monitoring connection status according to an exemplary embodiment.
[0024] Figure 6 The present invention is a flowchart of a priority configuration method according to an exemplary embodiment.
[0025] Figure 7 The present invention is a flow chart of a time synchronization method shown in an exemplary embodiment.
[0026] Figure 8 The present invention is a flow chart of a frame sequence transmission method according to an exemplary embodiment.
[0027] Fig. 9 The present invention is a block diagram of a communication device between vehicle-mounted containers according to an exemplary embodiment.
[0028] Fig.10 is a block diagram of a vehicle according to an exemplary embodiment.
[0029] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail below with reference to the accompanying drawings.
[0031] It should be pointed out that the relevant embodiments and drawings are only for describing exemplary embodiments provided by the present disclosure, rather than all embodiments of the present disclosure, and it should not be understood that the present disclosure is limited to the relevant exemplary embodiments.
[0032] It should be noted that the terms "first", "second", etc. used in the present disclosure are only used to distinguish different steps, devices or modules, etc. The related terms neither represent any specific technical meanings nor indicate the order or interdependence between them.
[0033] It should be noted that the modifications of the terms "one", "multiple", and "at least one" used in the present disclosure are illustrative rather than restrictive. Unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] It should be noted that the term "and / or" used in this disclosure is used to describe the association relationship between associated objects, and generally indicates that there are at least three association relationships. For example, A and / or B can at least indicate the existence of three association relationships: A exists alone, A and B exist at the same time, and B exists alone.
[0035] It should be noted that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. Unless otherwise specified, the scope of the present disclosure is not limited by the order of description of the steps in the relevant embodiments.
[0036] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0037] Exemplary Methods
[0038] Figure 1 is a flow chart of a method for communication between vehicle-mounted containers according to an exemplary embodiment. Figure 1 As shown, a communication method between vehicle-mounted containers is used in vehicle-mounted containers, comprising the following steps:
[0039] In step S110, the first proxy node obtains application information sent by at least one first container application.
[0040] In some embodiments, the vehicle-mounted application is deployed in a container to form a container application. Before the first container application needs to transmit data, a domain is constructed through the communication middleware, and the domain includes multiple first container applications and a first proxy node. The first proxy node is connected to the first container application in communication. When the first container application needs to transmit data with other applications, the corresponding application information is sent to the first proxy node. The application information includes the participant information and endpoint information of the first container application, which is convenient for determining the container application that needs to transmit data based on the participant information. At the same time, the corresponding endpoint can be determined through the endpoint information to achieve connection with the corresponding container application. The first proxy node can receive application information sent by multiple container applications.
[0041] In step S120, the first proxy node establishes a management channel with other proxy nodes through the communication middleware.
[0042] In some embodiments, after the first proxy node receives application information of the container application and determines that data transmission between the container applications is required, the first proxy node exchanges proxy node information with other proxy nodes that have received application information and need to perform data transmission, and builds a management channel between all proxy nodes that need to perform data transmission based on the communication middleware, and the proxy nodes can perform further data interaction through the management channel.
[0043] In step S130, the first proxy node exchanges the application information obtained by each of the first proxy node and other proxy nodes through the management channel.
[0044] In some embodiments, after establishing a management channel, the first proxy node and other proxy nodes exchange their acquired application information through the management channel to determine the container application that requires data transmission and the corresponding endpoint for receiving and sending information, so as to facilitate subsequent communication based on the endpoint.
[0045] In step S140, the first proxy node obtains application information corresponding to other proxy nodes according to the interaction, and determines a second container application that matches the first container application, where the second container application is a container application corresponding to the second proxy node.
[0046] In some embodiments, after the first proxy node interacts through management data, it obtains application information corresponding to other proxy nodes, determines a second container application that needs to communicate data with the first container application, and the second container application is connected to a second proxy node. Similarly, the second container application starts the data transmission process by sending its application information to the second proxy node.
[0047] In step S150, the first container application establishes a data transmission channel with the second container application through the communication middleware.
[0048] In some embodiments, the first container application receives application information of other container applications through the first proxy node. After determining that the object to which data needs to be transmitted is the second container application, a data transmission channel between the first container application and the second container application is established through the communication middleware, so that data can be directly connected between the first container application and the second container application through the data transmission channel, thereby achieving fast and stable data transmission. The first container application can also transmit data through the data transmission channel between other container applications, unifying the rule configuration of the data transmission path, facilitating monitoring management and subsequent maintenance. In addition, it also reduces the intrusion into the existing network, and can independently perform data transmission between container applications.
[0049] In the above embodiment, the first proxy node obtains application information sent by at least one first container application, and builds a management channel with other proxy nodes through the communication middleware. Through the management channel, the first proxy node and the other proxy nodes exchange the application information they have obtained, and determine the second container application that matches the first container application based on the application information obtained interactively. The second container application is a container application corresponding to the second proxy node. The first container application establishes a data transmission channel with the second container application through the communication middleware. Through the exclusive data transmission channel between the container applications, the data transmission configuration is unified, and fast and stable data transmission between the container applications can be achieved, which is convenient for monitoring the container network and avoiding time delays. In addition, the communication middleware can realize mutual discovery between communication nodes, reduce the intrusion into the existing network, and facilitate monitoring management and later maintenance.
[0050] Figure 2 FIG. 1 is a flow chart of obtaining application information according to an exemplary embodiment. Figure 2 As shown, the method for obtaining application information is used in step S110, and includes the following steps:
[0051] Step S210: The first container application sends application information to a broadcast address monitored by the first proxy node, where the application information includes application participant information and application endpoint information.
[0052] Specifically, when the first container application needs to transmit data, the communication middleware protocol is used to send application information to the broadcast address listened by the first proxy node. The application information is the participant information and endpoint information of the first container application. The first container application can be identified according to the participant information, and the connection with the first container application can be achieved according to the endpoint information. The participant information includes the internal application ID, the group ID of the container, and the host IP of the container; wherein, the internal application ID is used to identify the container application; the group ID of the container is used to build the domain of the communication middleware to ensure that the communication can be better carried out without interference. All communications occur in the domain, and a domain includes multiple container applications and proxy nodes; the host IP of the container is used to realize data transmission between different hosts. After determining the participant information, the corresponding endpoint information is determined according to the participant. The endpoint information is the endpoint for communication in the container application, and the container application sends and receives data through the determined endpoint.
[0053] Step S220: Record application information corresponding to the first container application through the first proxy node.
[0054] Specifically, the first proxy node obtains application information corresponding to the first container application by monitoring the broadcast address, records the information, and determines the container application that needs to perform data transmission.
[0055] In this embodiment, the first container application notifies the first proxy node of the information that needs to be transmitted data by sending application information to the broadcast address. The first proxy node records the application information of the first container application to facilitate subsequent interaction with other proxy nodes, and determines the corresponding container application to which the first container application needs to transmit data, so that data transmission between the proxy node and the container application can be achieved without occupying the IP address.
[0056] Figure 3 FIG. 1 is a flow chart of a method for establishing a management channel according to an exemplary embodiment. Figure 3 As shown, the management channel establishment method is used in step S120, including the following steps:
[0057] Step S310: The first proxy node exchanges node information with other proxy nodes.
[0058] Specifically, after obtaining the application information of the first container application, the first proxy node interacts with other proxy nodes in the domain through a communication middleware protocol to perform node information exchange, and determines node information that needs to participate in communication.
[0059] Step S320: discover all proxy nodes participating in the communication according to the communication middleware protocol.
[0060] Specifically, a communication middleware protocol is used to discover all proxy nodes participating in the communication, ensuring that the communicating nodes can discover each other, facilitating subsequent data transmission between the nodes.
[0061] Step S330: establishing a management channel between the first proxy node and other proxy nodes according to the communication middleware.
[0062] Specifically, after obtaining all proxy nodes that need to participate in communication in the domain, a management channel is established between all proxy nodes through the communication middleware. The first proxy node and any other node can realize data transmission between different proxy nodes through the management channel, which facilitates data interaction between proxy nodes.
[0063] In this embodiment, after receiving the application information, the first proxy node exchanges their respective node information with other proxy nodes, and discovers all proxy nodes participating in the communication according to the communication middleware protocol, establishes management channels between all proxy nodes, and thus realizes data transmission between all proxy nodes.
[0064] Figure 4 FIG. 1 is a flow chart of a method for establishing a data transmission channel according to an exemplary embodiment. Figure 4 As shown, the data transmission channel establishment method is used in step S150, comprising the following steps:
[0065] Step S410: configure policy routing of the first container application according to application information of the first container application.
[0066] Specifically, after exchanging application information through the management channel, the first proxy node determines through interaction the second container application to which the first container application needs to perform data transmission. In order to perform data transmission between the first container application and the second container application, the policy routing of the first container application is configured according to the application information of the first container application, and the routing configuration of the first container application is determined. According to the policy routing and communication middleware protocol, it is ensured that different topics have consistent priorities and determined scheduling from the link layer, network layer and application layer, thereby ensuring low jitter of upper-layer application messages.
[0067] Step S420, notifying the first container application, the first proxy node obtains information of all application participants, and establishes a data transmission channel with the second container application based on policy routing according to the communication middleware.
[0068] Specifically, after the first proxy node interacts with the application information, it notifies the first container application, obtains the information of all application participants, and establishes a data transmission channel with the second container application based on the policy routing according to the communication middleware, so that the first container application and the second container application can directly connect data through the data transmission channel. After obtaining the information of all application participants, the data transmission channel between all application participants can be constructed according to the communication middleware, thereby realizing direct data connection between all container applications, realizing data communication of vehicle-mounted container applications, and ensuring high bandwidth and low jitter of data transmission.
[0069] When the communication middleware finds that the data transmission channel is established, it allocates an IP to the container application based on policy routing, rather than using the bridge mode in advance to pre-allocate the IP, thereby reducing the occupancy of the IP address and improving the data transmission speed.
[0070] In this embodiment, policy routing is configured for the first container application through application information, and after the first proxy node interacts with the application information, the first container application is notified, the first proxy node obtains information of all application participants, and establishes a data transmission channel between the first container application and the second container application based on the communication middleware and policy routing. Through the data transmission channel, direct data connection between the first container application and the second container application can be achieved, data transmission between vehicle-mounted container applications can be achieved, and high bandwidth and low jitter of container application message transmission can be guaranteed.
[0071] Figure 5 FIG. 1 is a flow chart of a method for monitoring connection status according to an exemplary embodiment. Figure 5 As shown, the method for monitoring the connection status is used in step S150, and includes the following steps:
[0072] Step S510: Setting a heartbeat monitoring process corresponding to the first container application on the first proxy node.
[0073] Specifically, in order to monitor the connection status between the first proxy node and the first container application and ensure the normal operation of data transmission, a corresponding heartbeat monitoring process is set on the first proxy node to monitor the heartbeat status of the first container application.
[0074] Step S520: monitor the heartbeat status of the first container application through the heartbeat monitoring process, and determine the connection status between the first container application and the first proxy node according to the heartbeat status.
[0075] Specifically, after the data channel is established, the heartbeat status of the first container application is monitored through the set heartbeat monitoring process. When it is monitored that the heartbeat response of the first container application is normal, that is, the connection between the first container application and the first proxy node through the endpoint is normal, and the first container application can transmit information to the first proxy node through the endpoint or receive information sent by the first proxy node.
[0076] Step S530: When the heartbeat of the first container application does not respond, it is determined that the first container application is disconnected from the first proxy node, and the connection relationship between the first container application and the first proxy node is released.
[0077] Specifically, when it is detected that the heartbeat of the first container application does not respond, it is determined that the first container application is disconnected from the first proxy node, and the first container application cannot send information to the first proxy node through the endpoint, or receive information from the first proxy node. At this time, the IP allocated to the first container application is released to reduce the occupation of the IP address, thereby improving the data transmission speed.
[0078] In this embodiment, by setting a heartbeat monitoring process of the first container application on the first proxy node, monitoring the heartbeat status of the first container application, and judging the connection relationship between the first container application and the first proxy node according to the heartbeat status, when the heartbeat is normal, the connectivity between the first container application and the first proxy node can be guaranteed, and data transmission between the two can be achieved. When the heartbeat is abnormal, the IP of the container application with the abnormal heartbeat is released, thereby reducing the IP address occupancy and improving the data transmission speed.
[0079] Figure 6 FIG. 1 is a flow chart of a priority configuration method shown in an exemplary embodiment. Figure 6 As shown, the priority configuration method is used in step S150, comprising the following steps:
[0080] Step S610: The first container application notifies the first proxy node that a data transmission channel has been established.
[0081] Specifically, after the data transmission channel is established, the first container application notifies the proxy node that link data transmission has been established, so that the first proxy node can subsequently notify the time queue management module to sort the queues of the scheduled data frames.
[0082] Step S620: The first proxy node notifies the time queue management module to configure the priority of the data frames to be scheduled, and determines the frame sequence of each data frame to be scheduled.
[0083] Specifically, the first proxy node notifies the time queue management module, and the time queue management module configures the priority of the data frame to be scheduled, determines the frame sequence of each data frame to be scheduled, and transmits the data in sequence according to the determined frame sequence when performing data transmission between the first container application and the second container application.
[0084] In this embodiment, after the data transmission channel is established, the proxy node is notified through the first container application to determine that the data transmission channel between the first container application and the second container application has been established, and the time queue management module is notified through the first proxy node to configure the priority of the data frame to be scheduled of the first container application, and determine the frame sequence of data transmission. When sending the data frame to be scheduled, the first container application carries the configured priority, and performs data transmission according to the priority, ensuring that important data can be transmitted first.
[0085] Figure 7 FIG. 1 is a flow chart of a time synchronization method shown in an exemplary embodiment. Figure 7 As shown, the time synchronization method is used in step S620, comprising the following steps:
[0086] Step S710: Time synchronization is performed on the first container application and the second container application according to the time queue management module.
[0087] Specifically, when performing priority configuration, the time queue management module is used to perform high-precision time synchronization on the first container application and the second container application, thereby ensuring the data transmission time within the container application.
[0088] Step S720, configuring a time window for each data frame to be scheduled, and performing time scheduling on the data frame to be scheduled through the time window.
[0089] Specifically, a scheduling rule set with different delay requirements of the switch is configured, and a gate loop list is used to control the switching time window of each queue to realize the function of the time-aware shaper. According to the priority of each data frame to be scheduled, the scheduling rule and time window of each scheduled data frame are configured in the scheduling rule set, and the corresponding time scheduling is performed through the time window to realize the delay requirements of different data frames to be scheduled.
[0090] Step S730: configuring a preemption strategy for the data frame to be scheduled according to the first proxy node, where the preemption strategy includes preemption and non-preemption.
[0091] Specifically, according to the preemption strategy of the data frame to be scheduled configured by the first proxy node, it is defined whether different data frames to be scheduled can be preempted. When preemption is possible, the preemption time is scheduled for priority transmission. When preemption is not possible, data transmission is performed according to the set frame sequence.
[0092] Step S740: When the preemption strategy of the data frame to be scheduled is preemption, time scheduling preemption is performed according to the priority of the data frame to be scheduled.
[0093] Specifically, when the preemption strategy of the data frame to be scheduled is defined as preemption, time scheduling is preempted according to the priority of the data frame to be scheduled. Data frames with high priority can preempt the time scheduling of data frames with low priority, thereby ensuring the transmission delay determinism and bandwidth stability of important data frames.
[0094] In this embodiment, when performing priority configuration, the time queue management module is used to synchronize the time of the first container application and the second container application to ensure the consistency of data transmission time, configure the time window of each data frame to be scheduled, and schedule the data frame to be scheduled through the time window; whether the data frame to be scheduled can be preempted is configured according to the first proxy node. When preemption is possible, time scheduling is preempted according to the priority, so that important data frames to be scheduled can be transmitted first, ensuring low latency and high bandwidth of important data.
[0095] Figure 8 FIG. 1 is a flow chart of a frame sequence transmission method shown in an exemplary embodiment. Figure 8 As shown, the frame sequence transmission method is used in step S620, comprising the following steps:
[0096] Step S810: The first container application obtains a frame sequence of data frames to be scheduled, where the data frames to be scheduled carry corresponding priorities.
[0097] Specifically, when data is transmitted through the data transmission channel, the first container application obtains the configured frame sequence of the data to be scheduled, and the frame sequence carries the priority of the data frame to be scheduled, so as to facilitate data transmission and reception.
[0098] Step S820: The first container application transmits the data frame to be scheduled to the second container application through the data transmission channel based on the frame sequence.
[0099] Specifically, the transmission order of the data frames to be scheduled is determined according to the frame sequence, and the first container application transmits the data frames to be scheduled to the second container application through the data transmission channel according to the transmission order, thereby achieving priority transmission of important data frames.
[0100] Step S830: The second container application receives the data frame to be scheduled based on the priority of the data frame to be scheduled.
[0101] Specifically, when receiving the data frames to be scheduled, the second container application receives the data frames to be scheduled in sequence based on their priorities, ensuring that important data frames can be received first, thereby achieving priority transmission and reception of important data frames.
[0102] In this embodiment, the first container application obtains a frame sequence of data to be scheduled, the frame sequence carries the priority of the data frame to be scheduled, and transmits the data frame to be scheduled based on the frame sequence through the data transmission channel. The second container application receives the data frame to be scheduled according to the priority, thereby realizing direct data connection between the first container application and the second container application, and ensuring priority transmission and reception of important frames.
[0103] Exemplary Devices
[0104] Figure 2 FIG. 1 is a block diagram of a communication device between vehicle-mounted containers according to an exemplary embodiment. Figure 2 The device 200 includes a first container application 210, a first proxy node 220, a second container application 230, a second proxy node 240 and a time queue management module 250; the first proxy node 220, the second proxy node 240 and the time queue management module 250 are all communicatively connected; the first container application 210 is communicatively connected to the first proxy node 220, and the second container application 230 is communicatively connected to the second proxy node 240.
[0105] The first proxy node 220 is used to obtain application information sent by at least one first container application;
[0106] The first proxy node 220 is further used to establish a management channel with other proxy nodes through the communication middleware;
[0107] The first proxy node 220 is also used for the first proxy node to exchange application information obtained by each of the first proxy node and other proxy nodes through a management channel;
[0108] The first proxy node 220 is further configured to obtain application information corresponding to other proxy nodes according to the interaction, and determine a second container application that matches the first container application, where the second container application is a container application corresponding to the second proxy node;
[0109] The first container application 210 is used to establish a data transmission channel with the second container application through the communication middleware.
[0110] In this embodiment, application information sent by at least one first container application 210 is obtained through the first proxy node 220, and a management channel with other proxy nodes is constructed based on the communication middleware. Application information is exchanged through the management channel, and the second container application 230 and the corresponding second proxy node 240 matching the first container application 210 are determined. A data transmission channel between the first container application 210 and the second container application 230 is established through the communication middleware. Through the exclusive data transmission channel between the container applications, the data transmission configuration is unified, and fast and stable data transmission between the container applications can be achieved, which is convenient for monitoring the container network and avoiding time delays. In addition, the communication middleware can realize mutual discovery between communication nodes, reduce the intrusion into the existing network, and facilitate monitoring management and later maintenance.
[0111] In some embodiments, it also includes: an information sending module, which is used for the first container application to send application information to the broadcast address monitored by the first proxy node, and the application information includes application participant information and application endpoint information; an information recording module is used to record the application information corresponding to the first container application through the first proxy node.
[0112] In some embodiments, it also includes: a monitoring process setting module, which is used to set a heartbeat monitoring process corresponding to the first container application at the first proxy node; a connection status judgment module, which is used to monitor the heartbeat status of the first container application through the heartbeat monitoring process, and judge the connection status between the first container application and the first proxy node according to the heartbeat status; a connection relationship release module, which is used to determine that the first container application is disconnected from the first proxy node when the heartbeat of the first container application does not respond, and release the connection relationship between the first container application and the first proxy node.
[0113] In some embodiments, it also includes: an information interaction module, used for the first agent node and other agent nodes to exchange node information; a node discovery module, used to discover all agent nodes participating in the communication according to the communication middleware protocol; a management channel establishment module, used to establish a management channel between the first agent node and other agent nodes according to the communication middleware.
[0114] In some embodiments, it also includes: a policy routing configuration module, which is used to configure the policy routing of the first container application according to the application information of the first container application; a data transmission channel establishment module, which is used to notify the first container application, the first proxy node obtains all application participant information, and the communication middleware establishes a data transmission channel with the second container application based on the policy routing.
[0115] In some embodiments, it also includes: a notification module, used by the first container application to notify the first proxy node that the data transmission channel has been established; a priority configuration module, used by the first proxy node to notify the time queue management module to perform priority configuration on the data frames to be scheduled, and determine the frame sequence of each data frame to be scheduled.
[0116] In some embodiments, it also includes: a time synchronization module, which is used to synchronize the time of the first container application and the second container application according to the time queue management module; a time window configuration module, which is used to configure the time window of each data frame to be scheduled, and time schedule the data frame to be scheduled through the time window; a preemption strategy configuration module, which is used to configure the preemption strategy of the data frame to be scheduled according to the first proxy node, and the preemption strategy includes preemption and non-preemption; a time scheduling preemption module, which is used to preempt the time scheduling according to the priority of the data frame to be scheduled when the preemption strategy of the data frame to be scheduled is preemption.
[0117] In some embodiments, the system further includes: a frame sequence acquisition module, which is used by the first container application to acquire a frame sequence of data frames to be scheduled, wherein the data frames to be scheduled carry corresponding priorities; a frame sequence transmission module, which is used by the first container application to transmit the data frames to be scheduled to the second container application through the data transmission channel based on the frame sequence; and a data frame receiving module, which is used by the second container application to receive the data frames to be scheduled based on the priorities of the data frames to be scheduled.
[0118] In the above embodiment, through the operation of the device, a communication method between vehicle-mounted containers is implemented, ensuring that the device can implement all contents of the communication method between vehicle-mounted containers.
[0119] Example Vehicles
[0120] Fig.10 is a block diagram of a vehicle 800 according to an exemplary embodiment. The vehicle 800 may be a fuel vehicle, a hybrid vehicle, an electric vehicle, a fuel cell vehicle or other types of vehicles.
[0121] Reference Fig.10 The vehicle 800 may include multiple subsystems, for example, a driving system 810, a control system 820, a perception system 830, a communication system 840, an information display system 850, and a computing system 860. The vehicle 800 may also include more or fewer subsystems, and each subsystem may also include multiple components, which are not described one by one here.
[0122] The driving system 810 includes components that provide power movement for the vehicle 800, such as an engine, an energy source, a transmission device, etc.
[0123] The control system 820 includes components that provide control for the vehicle 800, such as vehicle control, cockpit equipment control, and driving assistance control.
[0124] The perception system 830 includes components that provide the vehicle 800 with surrounding environment perception, such as a vehicle positioning system, a laser sensor, a voice sensor, an ultrasonic sensor, a camera device, and the like.
[0125] The communication system 840 includes components that provide communication connections for the vehicle 800, such as mobile communication networks (such as 3G, 4G, 5G networks, etc.), WiFi, Bluetooth, and Internet of Vehicles.
[0126] The information display system 850 includes components that provide various information displays for the vehicle 800, such as vehicle information display, navigation information display, entertainment information display, etc.
[0127] The computing and processing system 860 includes components that provide data computing and processing capabilities for the vehicle 800. The computing and processing system 860 may include at least one processor 861 and a memory 862. The processor 861 may execute instructions stored in the memory 862.
[0128] The processor 861 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.
[0129] Memory 862 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0130] In the embodiment of the present disclosure, a set of instruction sets is stored in the memory 862, and the processor 861 can execute the instruction set to implement all or part of the steps of the communication method between vehicle-mounted containers described in any of the above exemplary embodiments.
[0131] Exemplary Electronic Devices
[0132] Fig.111 is a block diagram of an electronic device 900 according to an exemplary embodiment. The electronic device 900 may be a vehicle controller, a vehicle terminal, a vehicle computer or other types of electronic devices.
[0133] Reference Fig.11 , the electronic device 900 may include at least one processor 910 and a memory 920. The processor 910 may execute instructions stored in the memory 920. The processor 910 is communicatively connected to the memory 920 via a data bus. In addition to the memory 920, the processor 910 may also be communicatively connected to an input device 930, an output device 940, and a communication device 950 via a data bus.
[0134] The processor 910 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.
[0135] The memory 920 may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0136] In the embodiment of the present disclosure, executable instructions are stored in the memory 920, and the processor 910 can read the executable instructions from the memory 920 and execute the instructions to implement all or part of the steps of the communication method between vehicle-mounted containers described in any of the above exemplary embodiments.
[0137] Exemplary computer-readable storage media
[0138] In addition to the above methods and devices, the exemplary embodiments of the present disclosure may also be a computer program product or a computer-readable storage medium storing the computer program product. The computer product includes computer program instructions that can be executed by a processor to implement all or part of the steps described in any method in the above exemplary embodiments.
[0139] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and also conventional procedural programming languages, such as "C" language or similar programming languages and scripting languages (e.g., Python). The program code may be executed entirely on the user computing device, partially on the user computing device, as an independent software package, partially on the user computing device and partially on the remote computing device, or entirely on the remote computing device or server.
[0140] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of readable storage media include: a static random access memory (SRAM) with one or more wires electrically connected, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic storage, a flash memory, a magnetic disk or an optical disk, or any suitable combination of the above.
[0141] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0142] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A communication method between vehicle-mounted containers, characterized in that: include: The first proxy node obtains application information sent by at least one first container application, where the application information includes application participant information and application endpoint information; The first agent node establishes a management channel with other agent nodes through the communication middleware; The first proxy node exchanges the application information obtained by each of the first proxy node and the other proxy nodes through the management channel; The first proxy node obtains application information corresponding to the other proxy nodes according to the interaction, and determines a second container application that matches the first container application, where the second container application is a container application corresponding to the second proxy node; The first container application establishes a data transmission channel with the second container application through the communication middleware, including: configuring the policy routing of the first container application according to the application information of the first container application; notifying the first container application, the first proxy node obtains all the application participant information, and establishes a data transmission channel with the second container application based on the policy routing according to the communication middleware, so that different topics have consistent priorities and determined scheduling at the link layer, network layer and application layer; wherein, a heartbeat monitoring process corresponding to the first container application is set on the first proxy node; the heartbeat status of the first container application is monitored by the heartbeat monitoring process, and the connection status between the first container application and the first proxy node is determined according to the heartbeat status; when the heartbeat of the first container application does not respond, it is determined that the first container application is disconnected from the first proxy node, and the connection relationship between the first container application and the first proxy node is released; After the data transmission channel is established, it also includes: the first container application notifies the first proxy node that the data transmission channel has been established; the first proxy node notifies the time queue management module to configure the priority of the data frame to be scheduled, and determines the frame sequence of each data frame to be scheduled, including: according to the time queue management module, the first container application and the second container application are synchronized; the time window of each data frame to be scheduled is configured, and the data frame to be scheduled is time scheduled through the time window; the preemption strategy of the data frame to be scheduled is configured according to the first proxy node, and the preemption strategy includes preemption and non-preemption; when the preemption strategy of the data frame to be scheduled is preemption, the time scheduling is preempted according to the priority of the data frame to be scheduled; The time scheduling includes: configuring a scheduling rule set for different delay requirements of the switch, and using a gate cycle list to control the switch time window of each queue; configuring the scheduling rule and time window of each data frame to be scheduled in the scheduling rule set according to the priority of each data frame to be scheduled, and performing corresponding scheduling through the time window; After determining the frame sequence of each of the data frames to be scheduled, the method further includes: the first container application acquires the frame sequence of the data frames to be scheduled, the data frames to be scheduled carry corresponding priorities; the first container application transmits the data frames to be scheduled to the second container application through the data transmission channel based on the frame sequence; and the second container application receives the data frames to be scheduled based on the priorities of the data frames to be scheduled.
2. The method for communication between vehicle-mounted containers according to claim 1, characterized in that: The first proxy node obtains application information sent by at least one first container application, including: The first container application sends the application information to a broadcast address monitored by the first proxy node; The application information corresponding to the first container application is recorded by the first proxy node.
3. The method for communication between vehicle-mounted containers according to claim 1, characterized in that: The first agent node establishes a management channel with other agent nodes through the communication middleware, including: The first proxy node and the other proxy nodes exchange node information; According to the communication middleware protocol, all proxy nodes involved in the communication are discovered; According to the communication middleware, a management channel between the first agent node and other agent nodes is established.
4. A communication device between vehicle-mounted containers, characterized in that: include: A first proxy node, a first container application, a second proxy node, a second container application, and a time queue management module, wherein the first proxy node, the second proxy node, and the time queue management module are all communicatively connected; the first container application is communicatively connected to the first proxy node, and the second container application is communicatively connected to the second proxy node; The first proxy node is used to obtain application information sent by at least one first container application, where the application information includes application participant information and application endpoint information; The first proxy node is also used to build a management channel with other proxy nodes through the communication middleware; The first proxy node is further configured to interact with the other proxy nodes through the management channel to obtain the application information respectively; The first proxy node is further used to obtain application information corresponding to the other proxy nodes according to the interaction, and determine a second container application matching the first container application, where the second container application is a container application corresponding to the second proxy node; The first container application is used to establish a data transmission channel with the second container application through the communication middleware, including: a policy routing configuration module, used to configure the policy routing of the first container application according to the application information of the first container application; a data transmission channel establishment module, used to notify the first container application, the first proxy node obtains all application participants, and establishes a data transmission channel with the second container application based on the policy routing according to the communication middleware, so that different topics have consistent priorities and determined scheduling at the link layer, network layer and application layer; The device also includes: a monitoring process setting module, used to set a heartbeat monitoring process corresponding to the first container application on the first proxy node; a connection status judgment module, used to monitor the heartbeat status of the first container application through the heartbeat monitoring process, and judge the connection status between the first container application and the first proxy node according to the heartbeat status; a connection relationship release module, used to determine that the first container application is disconnected from the first proxy node when the heartbeat of the first container application does not respond, and release the connection relationship between the first container application and the first proxy node; A notification module, used for the first container application to notify the first proxy node that the data transmission channel has been established; a priority configuration module, used for the first proxy node to notify the time queue management module to perform priority configuration on the data frames to be scheduled, and determine the frame sequence of each of the data frames to be scheduled; A time synchronization module, used to perform time synchronization on the first container application and the second container application according to the time queue management module; a time window configuration module, used to configure the time window of each data frame to be scheduled, and time schedule the data frame to be scheduled through the time window; a preemption strategy configuration module, used to configure the preemption strategy of the data frame to be scheduled according to the first proxy node, and the preemption strategy includes preemption and non-preemption; a time scheduling preemption module, used to perform the time scheduling preemption according to the priority of the data frame to be scheduled when the preemption strategy of the data frame to be scheduled is preemption; wherein the time window configuration module is specifically used to configure a scheduling rule set for different delay requirements of the switch, and use a gate cycle list to control the switch time window of each queue; according to the priority of each data frame to be scheduled, configure the scheduling rule and time window of each data frame to be scheduled in the scheduling rule set, and perform corresponding scheduling through the time window; a frame sequence acquisition module, used for the first container application to acquire a frame sequence of a data frame to be scheduled, the data frame to be scheduled carrying a corresponding priority; a frame sequence transmission module, used for the first container application to transmit the data frame to be scheduled to the second container application through the data transmission channel based on the frame sequence; and a data frame receiving module, used for the second container application to receive the data frame to be scheduled based on the priority of the data frame to be scheduled.
5. The vehicle-mounted container communication device according to claim 4, characterized in that: Also includes: An information sending module, configured for the first container application to send the application information to a broadcast address monitored by the first proxy node; An information recording module is used to record the application information corresponding to the first container application through the first proxy node.
6. The vehicle-mounted container communication device according to claim 4, characterized in that: Also includes: An information exchange module, used for the first proxy node to exchange node information with the other proxy nodes; The node discovery module is used to discover all proxy nodes participating in the communication according to the communication middleware protocol; A management channel establishing module is used to establish a management channel between the first agent node and other agent nodes according to the communication middleware.
7. A vehicle, characterized in that: A set of instruction sets is stored, and the instruction sets are executed by the vehicle to implement the communication method between vehicle-mounted containers described in any one of claims 1-3.
8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the communication method between vehicle-mounted containers described in any one of claims 1-3.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by the processor, the steps of the communication method between vehicle-mounted containers described in any one of claims 1-3 are implemented.
Citation Information
Patent Citations
Method for automatically generating distributed test run middleware heterogeneous gateway
CN103593416A
Dynamic management platform and method for network security basic information
CN108429755A
Time-sensitive network hybrid flow scheduling method
CN112291161A
Information transmission method and system based on service grid
CN114422489A
Information processing apparatus, information processing method, and computer program
US20200036774A1
