Communication method and device between vehicle hosts, equipment and medium
By deploying multiple servers and clients in vehicle hosts and using FDBUS communication technology to establish communication links within the same LAN, the technical problems of communication between vehicle hosts are solved, efficient data transmission and functional collaboration are achieved, and the efficiency is improved User experience.
Patent Information
- Application Number
- CN202410830604.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-03
AI Technical Summary
The existing communication technology between vehicle hosts cannot realize communication between the Android system and the QNX system, resulting in the inability of data transmission and functional collaboration between vehicle hosts.
By deploying multiple servers and clients in the vehicle host, using FDBUS communication technology to establish communication links within the same LAN, data transmission and functional collaboration between different systems are realized, and communication between the Android system and the QNX system is supported. .
It achieves efficient data transmission and functional collaboration between vehicle hosts, enhances users' in-car entertainment and information interaction experience, supports multi-screen interaction and device control, and reduces equipment costs and development cycles.
Smart Images

Figure CN118590519A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle communication technology, and in particular to a communication method, device, equipment and medium between vehicle hosts. Background Art
[0002] In recent years, with the continuous advancement of vehicle technology, more and more vehicles are equipped with multiple hosts, such as cockpit hosts and cabin hosts. By configuring multiple hosts inside the vehicle, users can meet different usage needs at the same time, such as watching a movie while playing a game, thus providing more choices and personalized experience.
[0003] In the related technology, the current vehicle host is usually an Android system, or an Android system with a built-in QNX system. The existing FDBUS (Fast Distributed Bus) communication-based technology can be used to achieve simple communication between the Android system in the vehicle host and the built-in QNX system, but does not support communication between the vehicle host and the Android system or QNX system in another vehicle host, resulting in the inability of vehicle hosts to communicate.
[0004] Therefore, there is an urgent need to provide a communication solution between vehicle hosts. Summary of the invention
[0005] The present application provides a method, device, equipment and medium for communication between vehicle hosts, so as to solve the problem that vehicle hosts cannot communicate with each other in the related art.
[0006] In a first aspect, an embodiment of the present application provides a communication method between vehicle hosts, which is applied to a first vehicle host, wherein the first vehicle host and the second vehicle host are both first systems, wherein a first server 11, a second server 12 and a third server 13 are deployed in the first system of the first vehicle host, and a first client 21 and a third server 22 are deployed in the first system of the second vehicle host; the communication method includes:
[0007] The first server 11 obtains a first connection request from the first client 21;
[0008] The first server 11 responds to the first connection request and returns the address information of the first server 11 to the first client 21;
[0009] Based on the address information, a communication connection is established between the first client 21 and the first server 11 .
[0010] In a possible implementation, the first server 11 responds to the first connection request and returns the address information of the first server 11 to the first client 21, including: when the first server 11 goes online, it requests the third server 13 to register the service, and obtains the service name assigned to the first server 11 by the third server 13; based on the service name, the first server 11 binds the online service and broadcasts the online notification to the third server 13; the third server 13 responds to the online notification and notifies the first client 21 that subscribes to the service name online notification of the service name; the third server 13 returns the address information of the first server 11 to the first client 21 based on the address mapping table query request sent by the third server 22.
[0011] In a possible implementation, the third server 13, the third server 22 and the second server 12 are located in the same local area network, wherein the local area network is established in the following manner: the third server 13 and the third server 22 are both connected to the second server 12, the host information of the third server 13 and the host information of the third server 22 are registered in the second server 12, and a host address table is generated; based on the host information of the third server 13, the second server 12 establishes a communication connection with the third server 13, and based on the host information of the third server 22, the second server 12 establishes a communication connection with the third server 22; the second server 12 broadcasts the host address table to the third server 13 and the third server 22; the third server 13 and the third server 22 both obtain the host information of other third servers from the host address table, establish a communication connection with each other, and form a local area network.
[0012] In a possible implementation, the communication connection between the first server 11 and the first client 21 includes: the first server 11 receives the subscription request of the first client 21 for the target service, and transmits the business data of the target service to the first client 21; or, based on the first server 11 responding to the business data request of the first client 21 for the target service, forwarding the business data of the target service to the first client 21.
[0013] In a possible implementation, a second system is built into the first system of the first vehicle host, the second server 12 is deployed in the second system, the first client 14 is also deployed in the first system of the first vehicle host, the first server 31, the third server 32 and the first client 33 are deployed in the second system of the first vehicle host, and the third server 32 is also located in the above-mentioned local area network; the communication method also includes: the first server 31 obtains a second connection request from the first client 21; the first server 31 responds to the second connection request and returns the address information of the first server 31 to the first client 21; based on the address information, a communication connection is established between the first client 21 and the first server 31.
[0014] In a possible implementation, the second system is built into the first system of the second vehicle host, the first client 23 is also deployed in the first system of the second vehicle host, and the first server 41, the third server 42 and the first client 43 are deployed in the second system of the second vehicle host; the communication method also includes: the first server 11 obtains the third connection request of the first client 43; the first server 11 responds to the third connection request and returns the address information of the first server 11 to the first client 43; based on the address information, a communication connection is established between the first client 43 and the first server 11.
[0015] In a possible implementation, the communication method between vehicle hosts also includes: the first client 14 sends a fourth connection request to the first server 41; the first client 14 receives address information of the first server 41; and based on the address information, establishes a communication connection between the first server 41 and the first client 14.
[0016] In a possible implementation, the communication method between vehicle hosts also includes at least one of the following: increasing the transmission threshold of business data between the first client and the first server; compressing business data that exceeds the transmission threshold and transmitting the compressed business data; and when the amount of business data exceeds the transmission threshold, packetizing and transmitting the business data.
[0017] In a second aspect, the present application provides a communication device between vehicle hosts, which is applied to a first vehicle host, the first vehicle host and the second vehicle host are both first systems, a first server 11, a second server 12 and a third server 13 are deployed in the first system of the first vehicle host, and a first client 21 and a third server 22 are deployed in the first system of the second vehicle host; the communication device includes:
[0018] An acquisition module, used for acquiring a first connection request from a first client 21;
[0019] A response module, used to respond to the first connection request and return the address information of the first server 11 to the first client 21;
[0020] The processing module is used to establish a communication connection between the first client 21 and the first server 11 based on the address information.
[0021] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0022] Memory for storing computer-executable instructions;
[0023] A processor is used to execute computer-executable instructions stored in the memory to implement the method described in any one of the first aspects.
[0024] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed, they are used to implement any method described in the first aspect.
[0025] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in any one of the first aspects when executed.
[0026] The communication method, device, equipment and medium between vehicle hosts provided in the present application are applied to a first vehicle host, the first vehicle host and the second vehicle host are both the first system, the first server 11, the second server 12 and the third server 13 are deployed in the first system of the first vehicle host, and the first client 21 and the third server 22 are deployed in the first system of the second vehicle host; the first server 11 obtains the first connection request of the first client 21, responds to the first connection request, returns the address information of the first server 11 to the first client 21, and establishes a communication connection between the first client 21 and the first server 11 based on the address information, so as to communicate between the first server 11 and the first client 21. In this process, by deploying multiple servers and clients in the first vehicle host and the second vehicle host, based on the collaborative work between different servers, the communication between the first server and the first client is established, thereby establishing a communication link between the vehicle hosts, so that data can be transmitted between different vehicle hosts, thereby providing users with richer functions and services, and further improving the user's experience in in-vehicle entertainment and information interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0028] Figure 1 A schematic diagram of a communication architecture between vehicle hosts provided by an exemplary embodiment of the present application;
[0029] Figure 2 A flow chart of a method for communicating between vehicle hosts provided by an exemplary embodiment of the present application;
[0030] Figure 3 A schematic diagram of another communication architecture between vehicle hosts provided by an exemplary embodiment of the present application;
[0031] Figure 4 A schematic diagram of another communication architecture between vehicle hosts provided for an exemplary embodiment of the present application;
[0032] Figure 5 A schematic diagram of the structure of a vehicle host room provided for an exemplary embodiment of the present application;
[0033] Figure 6 A schematic diagram of the communication timing between the vehicle host Android system provided by the exemplary embodiment of the present application;
[0034] Figure 7 A schematic diagram of a structure of a communication device between vehicle hosts provided by an exemplary embodiment of the present application;
[0035] Figure 8 A schematic diagram of the structure of an electronic device provided for an exemplary embodiment of the present application.
[0036] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0037] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0038] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, products or equipment.
[0039] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0040] Since the existing technologies based on FDBUS communication are all based on communication between Linux systems and QNX systems, they can only perform some simple data transmission and status notification operations, and do not involve the implementation of complex functions; the existing technologies based on FDBUS communication can be used to implement simple communication between the Android system and the built-in QNX system in the vehicle host, but do not support communication between the vehicle host and the Android system or QNX system in another vehicle host, resulting in the inability to communicate between vehicle hosts.
[0041] In order to solve the above problems, an embodiment of the present application provides a communication solution between vehicle hosts. By deploying the hosts in the vehicle in the same local area network, based on the FDBUS communication technology framework, and using the data format agreed upon by each business side as a carrier, data is transmitted and distributed to each business side, thereby establishing a communication link between vehicle hosts, so that data can be efficiently transmitted between different systems, thereby providing users with richer functions and services, and further enhancing the user's experience in in-vehicle entertainment and information interaction.
[0042] Figure 1 A schematic diagram of a communication architecture between vehicle hosts provided by an exemplary embodiment of the present application. Figure 1 As shown, the communication architecture diagram includes a first vehicle host and a second vehicle host, wherein the first vehicle host and the second vehicle host are located in the same local area network and are both first systems, a first server 11, a second server 12 and a third server 13 are deployed in the first system of the first vehicle host, a first client 21 and a third server 22 are deployed in the first system of the second vehicle host, and the third server 13, the third server 22 and the second server 12 are located in the same local area network.
[0043] It should be noted that the above communication architecture diagram is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not subject to Figure 1 The communication architecture diagram shown in the figure is limited. Figure 1 The communication architecture diagram shown in the figure is shown in the figure. Figure 2 A communication method between vehicle hosts according to an exemplary embodiment of the present application is described.
[0044] Figure 2 A flow chart of a method for communicating between vehicle hosts provided by an exemplary embodiment of the present application. The method for communicating between vehicle hosts provided by an embodiment of the present application is applied to a first vehicle host, such as Figure 2 As shown, the communication method includes:
[0045] S201 , the first server 11 obtains a first connection request from the first client 21 .
[0046] For example, Figure 1As shown, the first vehicle host and the second vehicle host are both the first system, the first vehicle host and the second vehicle host are located in the same local area network, and the transmission nodes through which the first connection request passes include the first client 21, the third server 22, the second server 12, the third server 13 and the first server 11; wherein, the first system may be an Android system or a Hongmeng system, etc., the first server may be specifically an FDBUS server, the first client may be specifically an FDBUS client, and the FDBUS communication technology is used between the first server and the first client; the second server may be specifically a host server (HostServer), and the third server may be specifically a name server (Nameserver). It should also be noted that the vehicle host may also be called an entertainment host.
[0047] In one implementation, the first vehicle host and the second vehicle host are connected by a Gigabit Ethernet cable, so that the first vehicle host and the second vehicle host are located in the same local area network. In another implementation, the first vehicle host and the second vehicle host are connected by a wireless connection via WIFI, Bluetooth, 4G / 5G, Near Field Communication (NFC), etc., so that the first vehicle host and the second vehicle host are located in the same local area network.
[0048] Correspondingly, when the first vehicle host is powered on, the first server 11 is created according to the preset rules. When the second vehicle host is powered on, the first client 21 is created according to the preset rules. Based on the above-mentioned local area network, the first server 11 obtains the first connection request of the first client 21, wherein the transmission nodes through which the first connection request passes include the first client 21, the third server 22, the second server 12, the third server 13 and the first server 11.
[0049] S202 , the first server 11 responds to the first connection request and returns address information of the first server 11 to the first client 21 .
[0050] For example, based on the above-mentioned local area network, the first server 11 responds to the first connection request and returns the address information of the first server 11 to the first client 21 according to a preset rule.
[0051] S203 . Establish a communication connection between the first client 21 and the first server 11 based on the address information.
[0052] Correspondingly, still refer to Figure 1The first client 21 connects to the first server 11 according to the returned address information and the preset rules, thereby establishing a communication link between the first server 11 and the first client 21, and then realizing the communication connection between the first system (e.g., Android system) of the first vehicle host and the first system (e.g., Android system) of the second vehicle host.
[0053] The communication method between vehicle hosts provided in the embodiment of the present application establishes communication between the first server and the first client based on the collaborative work between different server ends by deploying multiple server ends and client ends in the first vehicle host and the second vehicle host, thereby establishing a communication link between the vehicle hosts, so that data can be transmitted between different vehicle hosts, thereby providing users with richer functions and services, and further enhancing the user's experience in in-vehicle entertainment and information interaction.
[0054] In some embodiments, a local area network is established in the following manner: connecting both the third server 13 and the third server 22 to the second server 12, registering the host information of the third server 13 and the host information of the third server 22 in the second server 12, and generating a host address table; based on the host information of the third server 13, the second server 12 establishes a communication connection with the third server 13, and based on the host information of the third server 22, the second server 12 establishes a communication connection with the third server 22; the second server 12 broadcasts the host address table to the third server 13 and the third server 22; the third server 13 and the third server 22 both obtain the host information of other third servers from the host address table, establish a communication connection with each other, and form a local area network.
[0055] For example, Figure 1As shown, the third server 13 is connected to the second server 12 based on the configuration information in the locally pre-stored configuration file, and the host information of the third server 13 is registered with the second server 12; at the same time, the third server 22 is connected to the second server 12 based on the configuration information in the locally pre-stored configuration file, and the host information of the third server 22 is registered with the second server 12; correspondingly, the second server 12 collects the host information of the third server 13 and the host information of the third server 22, and generates a host address table; based on the host information of the third server 13, the second server 12 establishes a communication connection with the third server 13; based on The second server 12 obtains the host information of the third server 22, and establishes a communication connection with the third server 22; the second server 12 broadcasts the host address table to other third servers connected to it (for example, the third server 13 and the third server 22); further, the third server 13 obtains the host information of the third server 22 from the host address table, and establishes a communication connection with the third server 22; the third server 22 obtains the host information of the third server 13 from the host address table, and establishes a communication connection with the third server 13; thereby forming a local area network between the third server 13, the third server 22 and the second server 12.
[0056] Based on the above embodiments, in some embodiments, the first server 11 responds to the first connection request and returns the address information of the first server 11 to the first client 21, including: when the first server 11 goes online, it requests the third server 13 to register the service, and obtains the service name assigned to the first server 11 by the third server 13; based on the service name, the first server 11 binds the online service and broadcasts the online notification to the third server 13; the third server 13 responds to the online notification and notifies the first client 21 that subscribes to the service name online notification of the service name; the third server 13 returns the address information of the first server 11 to the first client 21 based on the address mapping table query request sent by the third server 22.
[0057] The service name online notification is subscribed by the first client when the first client requests the third server 22 for the address information of the first server 11 when the service name is not online; the address mapping table query request is sent by the third server 22 based on the service name.
[0058] For example, when the first server 11 goes online, it connects to the local third server 13 and requests the third server 13 to register the service, and obtains the service name "fdb_muticomm_service" assigned by the third server 13 to the first server 11; the local third server 13 broadcasts "fdb_muticomm_service" to the third server 22; after receiving the broadcast, the third server 22 notifies the local first client 21 of the news that "fdb_muticomm_service" is online, and the first client 21 connects to the third server 22 and applies for service name resolution, and the third server 22 searches The third server 13 searches the local address mapping table for the address information of "fdb_muticomm_service" based on the address mapping table query request sent by the third server 22. If so, the address information of "fdb_muticomm_service" (i.e., the address information of the first server 11) is sent to the third server 22; the third server 22 sends the received address information of the first server 11 to the first client 21, and the first client 21 establishes a communication connection with the first server 11 based on the received address information.
[0059] Based on the above embodiments, Figure 3 Another schematic diagram of a communication architecture between vehicle hosts provided by an exemplary embodiment of the present application. Figure 3 As shown, the second system is built into the first system of the first vehicle host, the second server 12 is deployed in the second system, the first client 14 is also deployed in the first system of the first vehicle host, the first server 31, the third server 32 and the first client 33 are deployed in the second system, and the third server 32 is also located in the above-mentioned local area network.
[0060] Therefore, in some embodiments, the communication method also includes: based on the local area network, the first server 31 obtains a second connection request from the first client 21; the first server 31 responds to the second connection request and returns the address information of the first server 31 to the first client 21; based on the address information, a communication connection is established between the first client 21 and the first server 31 to carry out communication between the first server 31 and the first client 21, wherein the communication nodes through which the first server 31 and the first client 21 communicate include the first client 21, the first server 11, the first client 14 and the first server 31.
[0061] Among them, the transmission nodes through which the second connection request passes include the first client 21, the third server 22, the second server 12, the third server 13, the third server 32, the first server 11, the first server 31, the first client 14 and the first client 33; among them, the second system can be a QNX system, etc.
[0062] For example, refer to Figure 3 , the third server 13, the third server 22 and the third server 32 are respectively connected to the second server 12 based on the configuration information in the locally pre-stored configuration file, and register their respective host information to the second server 12; correspondingly, the second server 12 collects the host information of the third server 13, the third server 22 and the third server 32, and generates a host address table; based on the host information of the third server 13, the second server 12 establishes a communication connection with the third server 13, based on the host information of the third server 22, the second server 12 establishes a communication connection with the third server 22, and based on the host information of the third server 32, the second server 12 establishes a communication connection with the third server 32; the second server 12 broadcasts the host address table to other third servers connected thereto; further, each third server obtains the host information of other third servers from the host address table, establishes a communication connection with other third servers, thereby forming a local area network between the third server 13, the third server 22, the third server 32 and the second server 12.
[0063] Further, when the first server 31 goes online, it connects to the local third server 32, and requests the third server 32 to register the service, and obtains the service name "fdb_muticomm_service" assigned by the third server 32 to the first server 32; the local third server 32 broadcasts "fdb_muticomm_service" to the third server 22 and the third server 13; after receiving the broadcast, the third server 22 and the third server 13 notify the local first client 21 and the first client 21 of the news that the "fdb_muticomm_service" is online. Client 14; all first clients connect to the local third server and apply for service name resolution. The local third server searches the local address mapping table and sends the service name resolution application to all other third servers at the same time; correspondingly, after receiving the application, other third servers will search their respective address mapping tables and return the search results to the third server that initiated the application (i.e., the third server 32). The third server 32 forwards the received return result to the first client that initiated the application (i.e., the first client 21). The first client 21 uses the actual address in the return result to establish a connection with the first server 32. Figure 3As shown, the communication nodes through which the first server 31 and the first client 21 communicate include the first client 21, the first server 11, the first client 14 and the first server 31, and communication can be carried out between the first server 31 and the first client 21, thereby establishing a communication channel between the second system (e.g., QNX system) of the first vehicle host and the first system (e.g., Android system) of the second vehicle host.
[0064] For example, Figure 4 Another schematic diagram of a communication architecture between vehicle hosts provided by an exemplary embodiment of the present application. Figure 4 As shown, the second system is built into the first system of the second vehicle host, the first client 23 is also deployed in the first system of the second vehicle host, the first server 41, the third server 42 and the first client 43 are deployed in the second system, and the third server 42 is also located in the above-mentioned local area network.
[0065] Furthermore, in some embodiments, the communication method also includes: based on the local area network, the first server 11 obtains a third connection request from the first client 43; the first server 11 responds to the third connection request and returns the address information of the first server 11 to the first client 43; based on the address information, a communication connection is established between the first client 43 and the first server 11 to carry out communication between the first server 11 and the first client 43, wherein the communication nodes through which the first server 11 and the first client 43 communicate include the first client 43, the first server 41, the first client 23, the first client 21 and the first server 11.
[0066] Among them, the transmission nodes through which the third connection request passes include the first client 43, the third server 42, the second server 12, the third server 22, the third server 13, the third server 32, the first server 41, the first server 11, the first server 31, the first client 21, the first client 23, the first client 14 and the first client 33.
[0067] like Figure 4 As shown, the third server 42, the third server 32, the third server 13, the third server 22 and the second server 12 are located in the same local area network. It can be understood that the establishment method of the local area network is the same as the establishment method of the local area network described in the above embodiment, which will not be repeated here.
[0068] Correspondingly, still refer to Figure 4, the first server 11 obtains the third connection request of the first client 43, that is, through the first client 43 in the second system of the second vehicle host, it requests to establish a connection with the first server 11 in the first system of the first vehicle host. Correspondingly, when the first server 11 goes online, it connects to the local third server 13, and requests the third server 13 to register the service, and obtains the service name "fdb_muticomm_service" assigned by the third server 13 to the first server 11; the local third server 13 broadcasts "fdb_muticomm_service" to the third server 22, the third server 32 and the third server 42; after receiving the broadcast, the third server 22, the third server 32 and the third server 42 notify the local first client 21, the first client 21 and the first client 32 of the news that the "fdb_muticomm_service" is online. Client 23, first client 33 and first client 43; all first clients are connected to the local third server and apply for service name resolution. The local third server searches the local address mapping table and sends the service name resolution application to all other third servers at the same time; correspondingly, after receiving the application, other third servers will search their respective address mapping tables and return the search results to the third server that initiated the application (i.e., the third server 13). The third server 13 forwards the received return result to the first client that initiated the application (i.e., the first client 43). The first client 43 uses the actual address in the return result to establish a connection with the first server 11. Figure 4 As shown, the communication nodes through which the first server 11 and the first client 43 communicate include the first client 43, the first server 41, the first client 23, the first client 21 and the first server 11, thereby establishing a communication channel between the first system (e.g., Android system) of the first vehicle host and the second system (e.g., QNX system) of the second vehicle host.
[0069] On the basis of the above embodiments, in some embodiments, the communication method between vehicle hosts also includes: based on the local area network, the first client 14 sends a fourth connection request to the first server 41; the first client 14 receives the address information of the first server 41; based on the address information, a communication connection is established between the first server 41 and the first client 14 to communicate between the first client 14 and the first server 41, wherein the communication nodes through which the first client 14 and the first server 41 communicate include the first client 14, the first server 11, the first client 21, the first client 23 and the first server 41.
[0070] Among them, the transmission nodes through which the fourth connection request passes include the first client 14, the third server 13, the second server 12, the third server 22, the third server 32, the third server 42, the first server 11, the first server 31, the first server 41, the first client 21, the first client 23, the first client 43 and the first client 33.
[0071] For example, still refer to Figure 4 , the first client 14 sends a fourth connection request to the first server 41, that is, the first client 14 in the first system of the first vehicle host requests to establish a connection with the first server 41 in the second system of the second vehicle host; based on the local area network composed of the third server 42, the third server 32, the third server 13, the third server 22 and the second server 12, the first client 14 receives the address information of the first server 41; correspondingly, based on the address information, a communication connection is established between the first server 41 and the first client 14, thereby establishing a communication channel between the first system (for example, Android system) of the first vehicle host and the second system (for example, QNX system) of the second vehicle host, so that when the user wants to control the first vehicle host through the second vehicle host, the control message can be transmitted through the communication channel between the first system of the first vehicle host and the second system of the second vehicle host, thereby completing the control operation on the first vehicle host.
[0072] The above embodiment introduces the process of establishing a communication connection between vehicle hosts. Next, the specific application of the communication connection between vehicle hosts will be introduced.
[0073] In some embodiments, the communication connection between the first server 11 and the first client 21 includes: the first server 11 receives the subscription request of the first client 21 for the target service, and transmits the business data of the target service to the first client 21; or, based on the first server 11 responding to the business data request of the first client 21 for the target service, forwarding the business data of the target service to the first client 21.
[0074] For example, the first server 11 receives a subscription request from the first client 21 for a target service, the subscription request carries a message identifier of the target service, such as a message identifier of "54321"; correspondingly, the first server 11 transmits the received service data related to the target service (i.e., service data carrying the message identifier of "54321") to the first client 21. Alternatively, the user triggers a request for service data of the target service through the display screen (i.e., TV screen) of the second vehicle host, and correspondingly, the first server 11 responds to the service data request from the first client 21 for the target service and forwards the service data of the target service to the first client 21.
[0075] For example, Figure 5 This is a schematic diagram of the structure of the vehicle host provided by the exemplary embodiment of the present application. Figure 5 As shown, the first vehicle host and the second vehicle host are both Android-QNX dual systems, wherein the Android system refers to the first system and the QNX system refers to the second system; relevant applications are deployed in the Android system and the QNX system of each vehicle host, and users can access the relevant applications through the system human-machine interface (Human-Machine Interface, SystemHMI) of each vehicle host. Correspondingly, after the first vehicle host and the second vehicle host are powered on, the FDBUS server (i.e., the first server) is initialized in the Android system of the first vehicle host, and the FDBUS client (i.e., the first client) is initialized in the QNX system; the FDBUS client is initialized in the Android system and the QNX system of the second vehicle host respectively; when the FDBUS server in the Android system of the first vehicle host is online, each FDBUS client requests to establish a connection with the FDBUS server; when each FDBUS client is connected to the FDBUS server, it subscribes to the first server for the message to be monitored, thereby establishing a communication link between each FDBUS client and the FDBUS server, and when the above communication link is ready, the initialization operation of the first vehicle host and the second vehicle host is completed. Correspondingly, the vehicle setting module in the first vehicle host sends a setting request to the second vehicle host, such as controlling a TV screen, armrest screen or ceiling screen, etc. After receiving the setting request from the first vehicle host, the second vehicle host forwards the setting request message to the QNX system of the second vehicle host. The QNX system monitors the application of the setting request message, so after receiving the setting request message, it sends instructions to the relevant device (TV screen, armrest screen or ceiling screen), thereby completing the purpose of controlling the device. In addition, if the map module in the second vehicle host sends a request for synchronizing location information or navigation information to the map module in the first vehicle host, the map module in the first vehicle host collects data after receiving the request from the map module in the second vehicle host, and sends the collected data information to the map module in the second vehicle host. After receiving the data information, the map module in the second vehicle host updates the relevant data information and displays it on the relevant controls of the second vehicle host.
[0076] Correspondingly, the volume can also be adjusted through the control knob of the first vehicle host. The QNX system of the first vehicle host will report the volume message to the Android system of the first vehicle host. The Android system of the first vehicle host will forward the received message to the Android system of the second vehicle host. The Android system of the second vehicle host will control the volume of the second vehicle host based on the received message, thereby achieving device status synchronization between the first vehicle host and the second vehicle host.
[0077] Taking into account the technical difficulties of simultaneously deploying ternary content addressable memory (TCAM) on multiple vehicle entertainment hosts, TCAM can be deployed only on the first vehicle host, and the second vehicle host forwards the IPCP (IP Control Plane) request message of each application to the first vehicle host through FDBUS, which is uniformly processed by the first vehicle host, and then the response message of TCAM is returned to the second vehicle host through the communication link between the first vehicle host and the second vehicle host, thereby realizing the IPCP function of the second vehicle host, so that TCAM can be deployed on a desktop vehicle head unit (Desktop Head Unit, DHU for short), and another DHU device can realize Internet sharing and control of TCAM devices based on the communication link between the first vehicle host and the second vehicle host, so that the development of the communication link can be realized at a lower cost and a shorter development cycle on the basis of not completely relying on the operating system communication technology, thereby achieving the purpose of reducing equipment costs and shortening development cycles.
[0078] The embodiment of the present application establishes a communication link between vehicle hosts, so that data can be efficiently transmitted between different systems, thereby achieving a multi-screen interactive effect, thereby providing users with richer functions and services, and further enhancing the user's experience in in-vehicle entertainment and information interaction.
[0079] Furthermore, considering that the FDBUS communication technology in the related art is restricted by the protocol, it cannot transmit large data such as pictures and files, and the FDBUS communication link will be disconnected if the limit is exceeded. In response to such problems, in some embodiments, the transmission threshold of the business data between the first client and the first server is increased. For example, in the related art, the maximum transmission threshold of the business data between the first client and the first server is 30KB. The embodiment of the present application adjusts the transmission window size in the FDBUS protocol, modifies the window management mechanism in the FDBUS protocol stack, and increases the window size, thereby improving the throughput of data transmission; further, the FDBUS protocol stack is optimized, and support for large data transmission is added to the protocol stack, such as by optimizing buffer management and improving data processing efficiency, etc., thereby increasing the transmission threshold of the business data between the first client and the first server, for example, it can support the maximum transmission of 150KB of large data, so as to better achieve the effect of multi-screen interaction.
[0080] In some embodiments, the business data exceeding the transmission threshold is compressed and the compressed business data is transmitted.
[0081] For example, when the size of the business data to be transmitted exceeds the transmission threshold, the business data exceeding the transmission threshold is compressed to obtain compressed business data, which is then transmitted via FDBUS and decompressed at the receiving end. By compressing large data before transmission, the amount of data can be reduced, thereby improving the efficiency and stability of data transmission.
[0082] In some embodiments, when the amount of business data exceeds a transmission threshold, the business data is transmitted in packets.
[0083] For example, when the size of the business data to be transmitted exceeds the transmission threshold, the big data of the business data is divided into multiple small data packets, the size of each data packet is within the range allowed by the FDBUS protocol, and these small data packets are reassembled into the original big data at the receiving end. For example, the business data is sent from the first vehicle host and received by the second vehicle host. The business data is packetized and transmitted during the transmission process. The total time is within 1 to 2 milliseconds, and the CPU occupancy rate of the program at both ends of the transmission and reception is within 5%, and the memory occupancy rate is within 25MB. By packetizing the big data before transmission, so that the packetized data packets can be transmitted on the FDBUS communication link, the disconnection of the FDBUS communication link due to exceeding the transmission threshold can be reduced, thereby improving the reliability of data transmission and the real-time performance of data transmission and reception, and reducing resource consumption during data transmission, thereby further improving the user's experience in in-car entertainment and information interaction.
[0084] Next, the communication process between vehicle hosts is introduced through a complete embodiment, and the communication process between Android systems in the vehicle hosts is taken as an example.
[0085] For example, Figure 6 The communication timing diagram between the vehicle host Android system provided by the exemplary embodiment of the present application. Among them, the FDBUS server is the first server 11, the FDBUS client is the first client 21, the host service is the second server 12, the first name service is the third server 13, and the second name service is the third server 22. Figure 6 As shown, the communication process between the vehicle host Android system includes the following steps:
[0086] S601: The FDBUS client in the second vehicle host requests to establish a connection with the target service.
[0087] For example, the FDBUS client in the second vehicle host requests to establish a connection with the FDBUS server named "fdb_muticomm_service", and the FDBUS client asks the second name service for the actual address of "fdb_muticomm_service", such as "connect("svc: / / fdb_multicomm_service")"; if "fdb_muticomm_service" is not online yet, the actual address of "fdb_muticomm_service" cannot be resolved, and the online notification of the "fdb_muticomm_service" service is subscribed to the second name service.
[0088] S602: The FDBUS server in the first vehicle host requests an address to be allocated when it comes online.
[0089] For example, the FDBUS server in the first vehicle host calls bind("svc: / / fdb_multicomm_service") to go online, and requests the first name service to register a service name for the FDBUS server and allocate an address.
[0090] S603: The first name service registers a service name for the FDBUS server and allocates an address.
[0091] S604: The first name service returns the allocated address to the FDBUS server.
[0092] For example, the allocated "ipc: / / @ / tmp / fdb-ipc1" and "tcp: / / 0:65498" are returned to the FDBUS server.
[0093] S605. The FDBUS server binds and launches the service according to the assigned address.
[0094] For example, the FDBUS server binds the online service through bind("ipc: / / @ / tmp / fdb-ipc1") and bind("65498").
[0095] S606: Broadcast online notification.
[0096] The FDBUS server online notification will be broadcast to other name services.
[0097] S607: Send the address to the FDBUS client that subscribes to the service online notification.
[0098] For example, send "ipc: / / @ / tmp / fdb-ipc1" to the FDBUS client.
[0099] S608. The FDBUS client establishes a connection with the FDBUS server according to the address.
[0100] For example, establish a connection with the FDBUS server through connect("ipc: / / @ / tmp / fdb-ipc1").
[0101] S609: The FDBUS client and the FDBUS server receive a connection success notification.
[0102] For example, the FDBUS client and FDBUS server receive the onOnline callback when the connection is successful.
[0103] S610. The FDBUS client subscribes to a target service from the FDBUS server.
[0104] For example, the FDBUS client subscribes to the target service with the message identifier "54321" from the FDBUS server, and the corresponding subscription function is subscribe(54321).
[0105] S611. The FDBUS server triggers the callback function after receiving the subscription message.
[0106] For example, the FDBUS server calls back onSubscribe(54321) after receiving the subscription message.
[0107] S612. The FDBUS client sends other service messages to the FDBUS server.
[0108] For example, the FDBUS client sends a service message with a message identifier of "12345" to the FDBUS server through invoke(12345, jsonStr).
[0109] S613. The FDBUS server receives other business messages through callback.
[0110] For example, the FDBUS server receives a service message with a message identifier of "12345" through the callback onInvoke(12345, jsonStr).
[0111] S614. When receiving the service data related to the target service, the FDBUS server broadcasts the service data of the target service to the FDBUS client subscribed to the target service.
[0112] That is, when the FDBUS server receives the business data related to the target service (that is, the business data carrying the message identifier "54321"), it transmits the business data related to the target service to the FDBUS client through broadcast(54321,jsonStr).
[0113] S615. The FDBUS client receives the business data of the target service through callback.
[0114] For example, the FDBUS client successfully receives the business data of the target service with the subscribed message ID "54321" through onBroadcast(54321,jsonStr).
[0115] In summary, this application has at least the following advantages:
[0116] 1. By deploying multiple servers and clients in the first vehicle host and the second vehicle host, communication between the first server and the first client is established based on the collaborative work between different servers, thereby establishing a communication link between the vehicle hosts, so that data can be transmitted between different vehicle hosts, thereby providing users with richer functions and services, and further enhancing the user's experience in in-vehicle entertainment and information interaction.
[0117] 2. By establishing communication links between the first system of the first vehicle host and the first system of the second vehicle host, the first system of the first vehicle host and the second system of the second vehicle host, the second system of the first vehicle host and the first system of the second vehicle host, etc., data can be transmitted between different operating systems, thereby realizing multi-screen interaction between different hosts, control or reverse control operations between hosts, and providing users with richer functions and services.
[0118] 2. By increasing the transmission threshold of business data between the first client and the first server, and adopting a compressed transmission or packet transmission mechanism when the size of the business data exceeds the transmission threshold, the disconnection of the FDBUS communication link due to exceeding the transmission threshold is reduced, thereby improving the reliability of data transmission and the real-time performance of data transmission and reception, and reducing resource consumption during data transmission, thereby improving the user's experience in in-vehicle entertainment and information interaction.
[0119] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0120] Figure 7 A schematic diagram of a structure of a communication device between vehicle hosts provided in an exemplary embodiment of the present application. The communication device between vehicle hosts provided in an embodiment of the present application is applied to a first vehicle host, and the first vehicle host and the second vehicle host are both first systems. A first server 11, a second server 12, and a third server 13 are deployed in the first system of the first vehicle host, and a first client 21 and a third server 22 are deployed in the first system of the second vehicle host. The third server 13, the third server 22, and the second server 12 are located in the same local area network. Figure 7 As shown, the communication device 70 includes an acquisition module 71, a response module 72 and a processing module 73, wherein:
[0121] An acquisition module 71 is used to acquire a first connection request from the first client 21, wherein the transmission nodes through which the first connection request passes include the first client 21, the third server 22, the second server 12, the third server 13 and the first server 11;
[0122] The response module 72 is used to respond to the first connection request and return the address information of the first server 11 to the first client 21;
[0123] The processing module 73 is used to establish a communication connection between the first client 21 and the first server 11 based on the address information, so as to perform communication between the first server 11 and the first client 21 .
[0124] In a possible implementation, the response module 72 can be specifically used for: when the first server 11 goes online, requesting registration service from the third server 13, and obtaining the service name assigned by the third server 13 to the first server 11; based on the service name, the first server 11 binds the online service, and broadcasts the online notification to the third server 13; the third server 13 responds to the online notification, and notifies the first client 21 that subscribes to the service name online notification of the service name through the local area network, wherein the service name online notification is subscribed by the first client when requesting the address information of the first server 11 from the third server 22 when the service name is not online; the third server 13 returns the address information of the first server 11 to the first client 21 based on the address mapping table query request sent by the third server 22, and the address mapping table query request is sent by the third server 22 based on the service name.
[0125] In one possible implementation, a local area network is established in the following manner: both the third server 13 and the third server 22 are connected to the second server 12, and the host information of the third server 13 and the host information of the third server 22 are registered to the second server 12, and the host information of the third server 13 and the host information of the third server 22 are registered in the second server 12 to generate a host address table; based on the host information of the third server 13, the second server 12 establishes a communication connection with the third server 13, and based on the host information of the third server 22, the second server 12 establishes a communication connection with the third server 22; the second server 12 broadcasts the host address table to the third server 13 and the third server 22; the third server 13 and the third server 22 both obtain the host information of other third servers from the host address table, establish a communication connection with each other, and form a local area network.
[0126] In one possible implementation, the communication connection between the first server 11 and the first client 21 includes: the first server 11 receives the subscription request of the first client 21 for the target service, and transmits the business data of the target service to the first client 21; or, based on the first server 11 responding to the business data request of the first client 21 for the target service, forwarding the business data of the target service to the first client 21.
[0127] In a possible implementation manner, the second system is built into the first system of the first vehicle host, the second server 12 is deployed in the second system, the first client 14 is also deployed in the first system of the first vehicle host, the first server 31, the third server 32 and the first client 33 are deployed in the second system, and the third server 32 is also located in the above-mentioned local area network; the acquisition module 71 can be specifically used to: based on the local area network, the first server 31 acquires the second connection request of the first client 21, wherein the transmission nodes through which the second connection request passes include the first client 21, the third server 22, the second server 12, the third server 13, the third server 32, the first client 33, the third server 32, the first client 33, the first client 33, and the third server 32. Server 32, first server 11, first server 31, first client 14 and first client 33; the response module 72 can be specifically used to: respond to the second connection request and return the address information of the first server 31 to the first client 21; the processing module 73 can be specifically used to: establish a communication connection between the first client 21 and the first server 31 based on the address information, so as to communicate between the first server 31 and the first client 21, wherein the communication nodes through which the first server 31 and the first client 21 communicate include the first client 21, the first server 11, the first client 14 and the first server 31.
[0128] In a possible implementation manner, the second system is built into the first system of the second vehicle host, the first client 23 is also deployed in the first system of the second vehicle host, the first server 41, the third server 42 and the first client 43 are deployed in the second system, and the third server 42 is also located in the above-mentioned local area network; the acquisition module 71 can also be used for: based on the local area network, the first server 11 obtains the third connection request of the first client 43, wherein the transmission nodes through which the third connection request passes include the first client 43, the third server 42, the second server 12, the third server 22, the third server 13, the third server 32, the first server 41, the first server 11, the first server 31, the first client 21, the first client 23, the first client 14 and the first client 33; the response module 72 can also be used to: respond to the third connection request, and return the address information of the first server 11 to the first client 43; the processing module 73 can also be used to: establish a communication connection between the first client 43 and the first server 11 based on the address information, so as to communicate between the first server 11 and the first client 43, wherein the communication nodes through which the first server 11 and the first client 43 communicate include the first client 43, the first server 41, the first client 23, the first client 21 and the first server 11.
[0129] In a possible implementation manner, the acquisition module 71 may also be used for: based on the local area network, the first client 14 sends a fourth connection request to the first server 41, wherein the transmission nodes through which the fourth connection request passes include the first client 14, the third server 13, the second server 12, the third server 22, the third server 32, the third server 42, the first server 11, the first server 31, the first server 41, the first client 21, the first client 23, the first client 43 and the first client 33; the response module 72 may also be used for: receiving address information of the first server 41; the processing module 73 may also be used for: establishing a communication connection between the first server 41 and the first client 14 based on the address information, so as to communicate between the first client 14 and the first server 41, wherein the communication nodes through which the first client 14 and the first server 41 communicate include the first client 14, the first server 11, the first client 21, the first client 23 and the first server 41.
[0130] In a possible implementation, the processing module 73 can also be used to: increase the transmission threshold of business data between the first client and the first server; compress business data that exceeds the transmission threshold, and transmit the compressed business data; when the data volume of the business data exceeds the transmission threshold, sub-packetize and transmit the business data.
[0131] The communication device between vehicle hosts provided in the embodiment of the present application can implement the technical solution shown in the above-mentioned communication method embodiment between vehicle hosts. Its implementation principle and beneficial effects are similar and will not be repeated here.
[0132] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0133] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0134] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, referred to as DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. Available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, Digital Video Discs (DVDs)), or semiconductor media (eg, solid state disks (SSDs)).
[0135] Figure 8 The schematic diagram of the structure of the electronic device provided by the exemplary embodiment of the present application. Figure 8 As shown, the electronic device 80 of this embodiment includes:
[0136] At least one processor 81; and a memory 82 communicatively connected to the at least one processor;
[0137] The memory 82 stores instructions that can be executed by the at least one processor 81, and the instructions are executed by the at least one processor 81 to enable the electronic device to execute the method described in any of the above embodiments.
[0138] Optionally, the memory 82 may be independent or integrated with the processor 81 .
[0139] The memory 82 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0140] The processor 81 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. Specifically, when implementing the communication method between vehicle hosts described in the aforementioned method embodiment, the electronic device may be, for example, an electronic device with processing functions such as a server.
[0141] Optionally, the electronic device may further include a communication interface 83. In a specific implementation, if the communication interface 83, the memory 82 and the processor 81 are implemented independently, the communication interface 83, the memory 82 and the processor 81 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0142] Optionally, in a specific implementation, if the communication interface 83, the memory 82 and the processor 81 are integrated on a chip, the communication interface 83, the memory 82 and the processor 81 can communicate through an internal interface.
[0143] The implementation principle and technical effects of the electronic device provided in this embodiment can be found in the aforementioned embodiments and will not be described in detail here.
[0144] An embodiment of the present application also provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed, they are used to implement the method steps in the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0145] The above-mentioned computer readable storage medium 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 storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0146] An exemplary readable storage medium is coupled to the processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in a dedicated integrated circuit. Of course, the processor and the readable storage medium can also exist as discrete components in the communication device between vehicle hosts.
[0147] The embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed, the method steps in the above method embodiment are implemented. The specific implementation method and technical effect are similar and will not be repeated here.
[0148] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0149] It should be understood that the present application is not limited to the precise 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 application is limited only by the appended claims.
Claims
1. A communication method between vehicle hosts, characterized in that: Applied to a first vehicle host, the first vehicle host and the second vehicle host are both first systems, a first server (11), a second server (12) and a third server (13) are deployed in the first system of the first vehicle host, and a first client (21) and a third server (22) are deployed in the first system of the second vehicle host; The communication method comprises: The first server (11) obtains a first connection request from the first client (21); The first server (11) responds to the first connection request and returns address information of the first server (11) to the first client (21); Based on the address information, a communication connection is established between the first client (21) and the first server (11).
2. The method for communication between vehicle hosts according to claim 1, characterized in that: The first server (11) responds to the first connection request and returns address information of the first server (11) to the first client (21), including: When the first server (11) comes online, it requests the third server (13) to register a service, and obtains a service name allocated by the third server (13) to the first server (11); Based on the service name, the first server (11) binds the online service and broadcasts an online notification to the third server (13); The third server (13) responds to the online notification and notifies the first client (21) that subscribes to the online notification of the service name of the service name; The third server (13) returns the address information of the first server (11) to the first client (21) based on the address mapping table query request sent by the third server (22).
3. The communication method between vehicle hosts according to claim 1 or 2, characterized in that: The communication connection between the first server (11) and the first client (21) includes: The first server (11) receives a subscription request from the first client (21) for a target service, and transmits business data related to the target service to the first client (21); Alternatively, based on the first server (11) responding to the first client (21)'s request for service data of the target service, the service data of the target service is forwarded to the first client (21).
4. The method for communication between vehicle hosts according to claim 1 or 2, characterized in that: The first system of the first vehicle host has a built-in second system, the second server (12) is deployed in the second system, the first system of the first vehicle host also has a first client (14) deployed in it, and the second system of the first vehicle host has a first server (31), a third server (32) and a first client (33) deployed in it; The communication method further comprises: The first server (31) obtains a second connection request from the first client (21), wherein: The first server (31) responds to the second connection request and returns address information of the first server (31) to the first client (21); Based on the address information, a communication connection is established between the first client (21) and the first server (31).
5. The method for communication between vehicle hosts according to claim 4, characterized in that: The first system of the second vehicle host has a built-in second system, the first system of the second vehicle host also has a first client (23) deployed in it, and the second system of the second vehicle host has a first server (41), a third server (42) and a first client (43) deployed in it; The communication method further comprises: The first server (11) obtains a third connection request from the first client (43); The first server (11) responds to the third connection request and returns the address information of the first server (11) to the first client (43); Based on the address information, a communication connection is established between the first client (43) and the first server (11).
6. The method for communication between vehicle hosts according to claim 5, characterized in that: Also includes: The first client (14) sends a fourth connection request to the first server (41); The first client (14) receives address information of the first server (41); Based on the address information, a communication connection is established between the first server (41) and the first client (14).
7. The method for communication between vehicle hosts according to claim 1 or 2, characterized in that: Also includes at least one of the following: Increasing a transmission threshold of service data between the first client and the first server; Compressing the service data exceeding the transmission threshold, and transmitting the compressed service data; When the data volume of the service data exceeds the transmission threshold, the service data is packetized and transmitted.
8. A communication device between vehicle hosts, characterized in that: Applied to a first vehicle host, the first vehicle host and the second vehicle host are both first systems, a first server (11), a second server (12) and a third server (13) are deployed in the first system of the first vehicle host, and a first client (21) and a third server (22) are deployed in the first system of the second vehicle host; The communication device comprises: An acquisition module, used for acquiring a first connection request from the first client (21); a response module, used for responding to the first connection request and returning address information of the first server (11) to the first client (21); A processing module is used to establish a communication connection between the first client (21) and the first server (11) based on the address information.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory is used to store computer-executable instructions; The processor is used to execute the computer-executable instruction to implement the communication method between vehicle hosts according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, they are used to implement the communication method between vehicle hosts according to any one of claims 1 to 7.
Citation Information
Cited By
Services application unified data exchange mechanism and dynamic scheduling fault tolerance method and system
CN120371478A
