Vehicle communication method, device and equipment and readable storage medium

By using cloud servers to build a virtual LAN in vehicle communication, the problem of restricted communication methods between vehicles is solved, and efficient, low-cost, and no distance restrictions between vehicles is achieved.

CN119450408APending Publication Date: 2025-02-14ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310993965.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Existing inter-vehicle communication methods such as wireless Mesh and V2V technologies are affected by environmental interference, high costs and limited application scenarios, making it difficult to achieve large-scale and long-distance vehicle communication.

Method used

A virtual LAN is built through a cloud server, and the vehicle's own communication network is used for data transmission, so as to realize mutual communication between the vehicle and other networkable devices. The specific steps include obtaining the virtual IP address of the communication object, encapsulating the data packet and sending it to the cloud server, and the cloud server forwards the data packet based on the connection information.

Benefits of technology

It realizes free communication between vehicles, reduces communication costs, and expands application scenarios. Communication is not limited by distance and is efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450408A_ABST
    Figure CN119450408A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle communication method, device and equipment and a readable storage medium, the method is based on an existing vehicle networking communication architecture, a public IP of a cloud server is used as a routing node to build a virtual local area network for networking, the cloud server records a mapping relation between a virtual IP address and a real IP address of equipment in the local area network, and the real IP address of the equipment in the local area network is recorded. According to the technical scheme, data transmission is carried out based on the communication network of the vehicle under the condition that no extra communication equipment is needed, mutual communication between the vehicle and other networking equipment is achieved, the scheme is easy to achieve, the achieving cost is low, communication is not limited by distance, the communication efficiency is high, and the method is suitable for application scenes of various vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle communication method, device, equipment and readable storage medium. Background Art

[0002] As the demand for vehicle networking scenarios becomes more and more diverse, users are increasingly demanding communications between vehicles and between vehicles and other elements in the transportation system, such as communications between vehicles and roadside infrastructure, bicycles, and pedestrians.

[0003] The solutions for realizing inter-vehicle communication in related technologies include: the first is to realize inter-vehicle communication by using wireless mesh network Mesh. This networking method requires that the vehicle be equipped with high-power on-board Mesh equipment, so as to form a self-organizing network with multiple on-board wireless nodes, and realize inter-vehicle communication based on wireless communication technology; the second is to realize inter-vehicle communication by using V2V (vehicle-to-vehicle communication) technology. The vehicle needs to be installed with dedicated V2V wireless communication hardware, and realize inter-vehicle communication by using the signals sent by the transmission unit carried by each vehicle through the high-speed wireless network.

[0004] However, in the above two methods, due to the use of wireless communication, the interference factors of the surrounding environment are relatively large, and the communication distance and communication rate are limited; in the process of networking implementation, the vehicle needs to install specific wireless communication dedicated equipment, the configuration cost is relatively high, and the vehicle near-field communication is also limited by the rate and scene setting protocol, resulting in limited application scenarios of the two methods, which are not suitable for large-scale, long-distance vehicle communication scenarios. Summary of the invention

[0005] In view of this, in order to solve the above technical problems, the present application provides a vehicle communication method, device, equipment and readable storage medium.

[0006] Specifically, the present application is implemented through the following technical solutions:

[0007] According to a first aspect of an embodiment of the present application, a vehicle communication method is provided, which is applied to a first vehicle, and the method includes:

[0008] Obtaining a first virtual IP address of a communication partner;

[0009] In response to the first virtual IP address and the second virtual IP address of the first vehicle belonging to the same first virtual local area network, encapsulating the data to be sent according to the first virtual IP address and the point-to-point protocol to obtain a first data packet; wherein the first virtual local area network is established by a cloud server;

[0010] The first data packet is sent to the cloud server so that the cloud server forwards the first data packet to the communication object according to the connection information of the communication object; the connection information at least includes a mapping relationship between the real IP address of the communication object and the first virtual IP address.

[0011] Optionally, obtaining the first virtual IP address of the communication object includes:

[0012] When the first vehicle has joined the virtual local area network, sending a device query request to the cloud server, the device query request is used to obtain information of devices in the same virtual local area network, the information including at least a device name and a virtual IP address;

[0013] The information of the device is obtained according to the response result of the cloud server, and the first virtual IP address of the communication object is determined.

[0014] Optionally, the second virtual IP address of the first vehicle is obtained in the following manner:

[0015] According to the information of the target virtual local area network, a networking request for joining the target virtual local area network is sent to the cloud server, so that the cloud server records the connection information when the first vehicle joins the target virtual local area network; the connection information at least includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0016] Obtain a second virtual IP address configured by the cloud server for the first vehicle, where the second virtual IP address and the target virtual local area network belong to the same network segment.

[0017] Optionally, the information of the target virtual local area network is obtained by any of the following methods, which at least include:

[0018] receiving target virtual local area network information input by a user; or,

[0019] When the first vehicle establishes a communication connection with the cloud server, applying to the cloud server for establishing a target virtual local area network;

[0020] Obtaining information of the target virtual local area network fed back by the cloud server; or,

[0021] When the first vehicle establishes a communication connection with the cloud server, sending a local area network query request to the cloud server, wherein the local area network query request is used to obtain a virtual local area network established on the cloud server;

[0022] According to the response result of the cloud server, one of the virtual local area networks is determined to be the target virtual local area network, and information of the target virtual local area network is obtained from the response result.

[0023] Optionally, before encapsulating the data to be sent, in response to the first virtual IP address and the second virtual IP address of the first vehicle not belonging to the same first virtual local area network, the method further includes:

[0024] Determine the network segment information of the second virtual local area network where the communication object is located according to the first virtual IP address of the communication object;

[0025] The information of the second virtual local area network corresponding to the network segment information is obtained from the cloud server, and a networking request for joining the second virtual local area network is sent to the cloud server.

[0026] Optionally, in response to receiving a second data packet forwarded by the cloud server, the method further includes:

[0027] According to the frame format of the point-to-point protocol, the second data packet is decapsulated to obtain communication data, and the virtual IP address of the sender device of the second data packet and the cloud server that forwards the second data packet are recorded.

[0028] According to a second aspect of an embodiment of the present application, a vehicle communication device is provided, applied to a first vehicle, the device comprising:

[0029] An address acquisition module, used to acquire a first virtual IP address of a communication object;

[0030] an encapsulation module, configured to encapsulate the data to be sent according to the first virtual IP address and a point-to-point protocol to obtain a first data packet in response to the first virtual IP address and the second virtual IP address of the first vehicle belonging to the same first virtual local area network; wherein the first virtual local area network is established by a cloud server;

[0031] A sending module is used to send the first data packet to the cloud server so that the cloud server forwards the first data packet to the communication object according to the connection information of the communication object; the connection information at least includes the mapping relationship between the real IP address of the communication object and the first virtual IP address.

[0032] Optionally, the address acquisition module is specifically used to:

[0033] When the first vehicle has joined the virtual local area network, sending a device query request to the cloud server, the device query request is used to obtain information of devices in the same virtual local area network, the information including at least a device name and a virtual IP address;

[0034] The information of the device is obtained according to the response result of the cloud server, and the first virtual IP address of the communication object is determined.

[0035] Optionally, the second virtual IP address of the first vehicle is obtained in the following manner:

[0036] According to the information of the target virtual local area network, a networking request for joining the target virtual local area network is sent to the cloud server, so that the cloud server records the connection information when the first vehicle joins the target virtual local area network; the connection information at least includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0037] Obtain a second virtual IP address configured by the cloud server for the first vehicle, where the second virtual IP address and the target virtual local area network belong to the same network segment.

[0038] Optionally, when acquiring the second virtual IP address of the first vehicle, the information of the target virtual local area network is acquired by any of the following methods, which at least include:

[0039] receiving target virtual local area network information input by a user; or,

[0040] When the first vehicle establishes a communication connection with the cloud server, applying to the cloud server for establishing a target virtual local area network;

[0041] Obtaining information of the target virtual local area network fed back by the cloud server; or,

[0042] When the first vehicle establishes a communication connection with the cloud server, sending a local area network query request to the cloud server, wherein the local area network query request is used to obtain a virtual local area network established on the cloud server;

[0043] According to the response result of the cloud server, one of the virtual local area networks is determined to be the target virtual local area network, and information of the target virtual local area network is obtained from the response result.

[0044] Optionally, before encapsulating the data to be sent, in response to the first virtual IP address and the second virtual IP address of the first vehicle not belonging to the same first virtual local area network, the device further includes:

[0045] Determine the network segment information of the second virtual local area network where the communication object is located according to the first virtual IP address of the communication object;

[0046] The information of the second virtual local area network corresponding to the network segment information is obtained from the cloud server, and a networking request for joining the second virtual local area network is sent to the cloud server.

[0047] Optionally, in response to receiving a second data packet forwarded by the cloud server, the device further includes:

[0048] According to the frame format of the point-to-point protocol, the second data packet is decapsulated to obtain communication data, and the virtual IP address of the sender device of the second data packet and the cloud server that forwards the second data packet are recorded.

[0049] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the above-mentioned vehicle communication method by calling the computer program.

[0050] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned vehicle communication method is implemented.

[0051] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0052] In the technical solution provided in the present application, based on the existing vehicle networking communication architecture, a virtual local area network is established by using the public IP of the cloud server as a routing node, and the cloud server records the mapping relationship between the virtual IP address and the real IP address of the device in the local area network. Without the need for any additional communication equipment, data is transmitted based on the vehicle's own communication network, thereby realizing mutual communication between the vehicle and other networked devices. The solution is easy to implement and has a low implementation cost. Communication is not limited by distance, has high communication efficiency, and is suitable for application scenarios of various vehicles.

[0053] It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. In addition, any embodiment in the present application does not need to achieve all the above effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] 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.

[0055] Figure 1 It is a flow chart of a vehicle communication method shown in an exemplary embodiment of the present application;

[0056] Figure 2 is a schematic diagram of a scenario in which a vehicle joins a virtual local area network, shown in an exemplary embodiment of the present application;

[0057] Figure 3 is a schematic diagram of a process involving interaction between a vehicle and a cloud server shown in an exemplary embodiment of the present application;

[0058] Figure 4This is a schematic diagram of an example application scenario of an embodiment of the present application;

[0059] Figure 5 is a structural schematic diagram of a vehicle communication device shown in an exemplary embodiment of the present application;

[0060] Figure 6 It is a hardware schematic diagram of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0061] 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.

[0062] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0063] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first vehicle may also be referred to as the second vehicle, and similarly, the second vehicle may also be referred to as the first vehicle. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0064] With the continuous development of Internet of Vehicles technology, the demand for Internet of Vehicles application scenarios has gradually enriched. At the same time, users have put forward the demand for communication between vehicles and other elements in the transportation system, such as communication between vehicles and roadside infrastructure, bicycles and pedestrians, to bring convenience to vehicle driving.

[0065] In the related technologies, the methods for realizing communication between vehicles and between vehicles and other devices mainly include adopting wireless mesh communication and adopting V2V technology communication.

[0066] Among them, the use of wireless Mesh communication refers to the use of wireless Mesh for a decentralized rapid self-organizing network. When the vehicle itself is equipped with high-power vehicle-mounted Mesh equipment, multiple vehicle-mounted wireless nodes are organized into a self-organizing network to form an interconnected network system, providing more reliable and efficient vehicle-mounted wireless communication services. However, since the communication is based on WI-FI wireless communication technology, the communication distance of devices in the Mesh network is limited, and its transmission rate is affected by the number of device hops; at the same time, when using Mesh to achieve communication, it is necessary to dispatch base stations and set specific working frequency bands, channel bandwidths, transmission channels, etc. The software implementation is complex, the overall implementation cost of the solution is high, and it is only suitable for fleet management in specific scenarios, and is not suitable for large-scale networking of sales vehicles.

[0067] When V2V technology is used to achieve communication, the principle of V2V technology is to use the transmission unit on each vehicle to send signals through a high-speed wireless network 10 times per second. The signal will include but is not limited to the vehicle's current speed, direction, geographic location, route and other information, so that other vehicles within the communication range can receive the signal in real time and send similar feedback signals from their own on-board units at the same time, thereby forming information exchange and realizing communication between vehicles. Based on the above implementation principle, V2X wireless communication dedicated hardware needs to be installed on the vehicle to establish a strong infrastructure. The implementation cost is high, and it is subject to greater interference factors from the surrounding environment, the communication distance is limited, and its application scenarios are also relatively limited.

[0068] In view of this, in order to solve the above-mentioned technical problems, the present application provides a vehicle communication method, which can be applied to various scenarios in which a vehicle communicates with other vehicles or other devices, such as communication scenarios between a vehicle and a mobile phone, a computer, a remote testing device, etc. The present application does not impose any specific restrictions on this.

[0069] The vehicle communication method is applied to a first vehicle. It is understandable that the "first" in the first vehicle has no specific meaning and is only used to distinguish other vehicles of the same type. The embodiment of the present application is based on the 4G or 5G communication network of the vehicle itself, and realizes vehicle communication without the need for additional configuration equipment. Figure 1 As shown, the vehicle communication method may include the following steps:

[0070] S101, obtaining a first virtual IP address of a communication object;

[0071] The communication object refers to a device or equipment with a network connection function that the first vehicle expects to communicate with, including but not limited to vehicles, electronic equipment, test equipment, servers, etc. For example, if vehicles in the same fleet need to communicate with each other, for the first vehicle, the communication object may be at least one other object in the same fleet; or, in a remote test scenario, for the first vehicle, the communication object may be a remote test device or a computer device.

[0072] The first virtual IP address refers to the virtual IP address configured when the communication object joins the virtual local area network, and is used to identify the virtual local area network to which the communication object belongs. The virtual local area network joined by the communication object is established through the cloud server connected by the first vehicle.

[0073] S102, in response to the first virtual IP address and the second virtual IP address of the first vehicle belonging to the same first virtual local area network, encapsulating the data to be sent according to the first virtual IP address and the point-to-point protocol to obtain a first data packet; wherein the first virtual local area network is established by a cloud server;

[0074] That is, after obtaining the first virtual IP address of the communication object, the first vehicle can first determine whether the communication object and the first vehicle are in the same virtual local area network based on the first virtual IP address and the second virtual IP address of the vehicle itself. Specifically, the first network address of the virtual local area network where the communication object is located can be calculated based on the first virtual IP address and its configured subnet mask. Similarly, the second network address of the virtual local area network where the first vehicle is located can be calculated. If the first network address is the same as the second network address and the subnet mask is the same, it is determined that the communication object and the first vehicle are in the same virtual local area network, that is, the first virtual IP address and the second virtual IP address of the first vehicle belong to the same first virtual local area network.

[0075] Based on the principle that different devices in the same network segment of a local area network can communicate with each other and the IP addresses of the devices cannot be repeated, when the first virtual IP address and the second virtual IP address belong to the same virtual local area network, the first virtual IP address and the second virtual IP address are different, and at this time the first vehicle and the communication object can communicate.

[0076] The above-mentioned encapsulation of the data to be sent includes: first, taking the first virtual IP address and the second virtual IP address as the destination IP address and the source IP address respectively, marking the data to be sent with an IP header, and encapsulating to obtain a data packet to be sent; next, according to the point-to-point protocol frame format, marking the data packet to be sent with a frame header, encapsulating to obtain a data frame to be sent, and determining that the data frame to be sent is the first data packet.

[0077] When the point-to-point protocol frame format is used to encapsulate the data packet to be sent, the network layer protocol of the data packet to be sent is not restricted, and support for the simultaneous transmission of multiple network layer protocol data packets on the same link is achieved. For the first vehicle and the communication object, data transmission in various scenarios can use point-to-point protocol encapsulation data after joining the same virtual local area network, without the need to configure a corresponding specific protocol communication link for each required scenario.

[0078] S103, sending the first data packet to the cloud server, so that the cloud server forwards the first data packet to the communication object according to the connection information of the communication object; the connection information at least includes the mapping relationship between the real IP address of the communication object and the first virtual IP address.

[0079] The connection information of the communication object refers to the information recorded by the cloud server when the communication object is connected to the virtual local area network. The connection information may also include the name, device number and other information of the communication object.

[0080] When the first vehicle determines to send the first data packet to the communication object, the first data packet is first sent to the cloud server. When the cloud server receives the first data packet, it first decapsulates the first data packet and obtains the source IP address and destination IP address carried in the data packet, where the destination IP address is the first virtual IP address of the communication object; next, according to the connection information of the stored device, the real IP address corresponding to the destination IP address is determined, the destination IP address is converted into the real IP address of the communication object, and then encapsulated again, and the encapsulated data packet is sent to the communication object, thereby realizing the communication data transmission between the first vehicle and the communication object.

[0081] In the embodiment of the present application, without adding additional communication equipment, the vehicle's own communication network is utilized, and the public IP of the cloud server is used as a routing node to build a virtual local area network for networking. The vehicle and other networked devices are in the same virtual local area network, thereby enabling mutual communication between the vehicle and other networked devices. The solution configuration is simple, easy to implement, and has a low implementation cost. The communication between the vehicle and other devices is not limited by distance, and the communication efficiency is high.

[0082] In addition, in the above embodiment, the data between the first vehicle and the communication object are encapsulated in a point-to-point protocol frame format, so that the solution supports data transmission of various specific network layer protocols in multiple scenarios, thereby making the above vehicle communication method suitable for a variety of different vehicle application scenarios.

[0083] In some embodiments, the acquisition of the first virtual IP address of the communication object described in step S101 above may include any of the following methods:

[0084] receiving a first virtual IP address input by a user; or,

[0085] According to the information of the communication object input by the user, query whether the information of the communication object is included in the locally stored device information table; if the information of the communication object is included, obtain the first virtual IP address of the communication object; or,

[0086] When the first vehicle has joined the virtual LAN, a device query request is sent to the cloud server, where the device query request is used to obtain information about devices in the same virtual LAN, where the information includes at least a device name and a virtual IP address; the device information is obtained based on a response result from the cloud server, and the first virtual IP address of the communication object is determined.

[0087] The first method refers to that when the user has learned the first virtual IP address of the communication object, the user can choose to directly input the virtual IP address of the communication object in the interactive interface.

[0088] The second method means that when the device names, virtual IP addresses, device numbers and other information of various devices have been stored locally in the first vehicle, the user can choose to enter information such as device names or device numbers that can identify the communication objects in the interactive interface, so that the vehicle can search the local storage for the device virtual IP address indicated by the user input information in the interactive interface.

[0089] The third method means that after the first vehicle has joined the virtual LAN built by the cloud server, it can first request the cloud server to view the device information in the same LAN as itself, and the device information at least includes the device virtual IP address, and / or device name, device number, device picture and other information; after receiving the response from the cloud server, the user can select a device as the communication object, thereby obtaining the first virtual IP address of the communication object.

[0090] In the embodiments of the present disclosure, the virtual IP address of the communication object is determined by directly obtaining the virtual IP address input by the user or searching and determining the virtual IP address in the local storage according to the user input, which simplifies the user operation and brings a good experience to the user.

[0091] In some embodiments, the second virtual IP address of the first vehicle described in step S102 above may be obtained in the following manner:

[0092] According to the information of the target virtual local area network, a networking request for joining the target virtual local area network is sent to the cloud server, so that the cloud server records the connection information when the first vehicle joins the target virtual local area network; the connection information at least includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0093] Obtain a second virtual IP address configured by the cloud server for the first vehicle, where the second virtual IP address and the target virtual local area network belong to the same network segment.

[0094] That is, when the first vehicle has not joined a virtual local area network, the first vehicle can obtain the corresponding virtual IP address configured by the cloud server by applying to the cloud server to join a certain virtual local area network.

[0095] The information of the above-mentioned target virtual LAN may at least include at least one item of the information that can uniquely identify the virtual LAN, such as the identification ID of the virtual LAN and the virtual IP address; the above-mentioned networking request is used to apply to the cloud server for connection to the target virtual LAN, and may at least include the real IP address of the first vehicle, the public IP address of the cloud server, the information of the target virtual LAN and the payload data, wherein the payload data may also include vehicle information such as the license plate number and appearance picture of the first vehicle.

[0096] After receiving the networking request, the cloud server determines the source of the request by parsing the networking request, and can use the pre-configured DHCP (Dynamic Host Configuration Protocol) service to configure a virtual IP for the first vehicle and feed back the virtual IP address to the first vehicle.

[0097] It is understandable that other devices that need to communicate with the first vehicle can also join the virtual LAN built by the cloud server in the above manner and obtain the virtual IP address of the device, so that they are in the same virtual LAN as the first vehicle to facilitate mutual communication.

[0098] In the disclosed embodiment, the public IP address of the cloud server is used as a routing node to combine the vehicle and other networked devices into a virtual local area network, and the cloud server records the mapping relationship between the virtual network address and the real network address of the device in the virtual local area network to achieve mutual communication between the vehicle and other devices in the same virtual local area network. It has the characteristics of simple configuration, easy implementation and low implementation cost, fast networking and communication without distance restrictions.

[0099] In some embodiments, in the process of obtaining the second virtual IP address of the first vehicle in step S102, the information of the target virtual local area network may be obtained by any of the following methods, which may at least include:

[0100] receiving target virtual local area network information input by a user; or,

[0101] When the first vehicle establishes a communication connection with the cloud server, applying to the cloud server for establishing a target virtual local area network; obtaining information of the target virtual local area network fed back by the cloud server; or,

[0102] When the first vehicle establishes a communication connection with the cloud server, a local area network query request is sent to the cloud server, and the local area network query request is used to obtain the virtual local area network built on the cloud server; according to the response result of the cloud server, one of the virtual local area networks is determined to be the target virtual local area network, and the information of the target virtual local area network is obtained from the response result.

[0103] That is, for the first vehicle, before sending a networking request to the cloud server, the information of the target virtual local area network to which the vehicle joins is first determined.

[0104] There are multiple ways to obtain the target virtual LAN information: the first way is that when the user knows any identification information of the target virtual LAN that he or she wishes to join, the user can directly enter the information of the target virtual LAN in the interactive interface, such as the name of the known target virtual LAN; the second way is that when the first vehicle wishes to build a virtual LAN that is only used for communication between itself and the communication object, an application can be made to the cloud server to establish a virtual LAN and use the virtual LAN as the target virtual LAN; the third way is to first view the virtual LANs that have been established, and the user can select one from the virtual LANs as the target virtual LAN to join.

[0105] In the disclosed embodiment, by providing the user with a variety of ways to determine the target virtual local area network to join, the function of the user's choice to join the virtual local area network is enriched, the user operation is simplified, and a basis is provided for realizing communication between the first vehicle and other devices.

[0106] In some embodiments, before encapsulating the data to be sent in step S102, in response to the first virtual IP address and the second virtual IP address of the first vehicle not belonging to the same virtual local area network, the vehicle communication method further includes:

[0107] According to the first virtual IP address of the communication object, determine the network segment information of the second virtual local area network where the communication object is located; obtain the information of the second virtual local area network corresponding to the network segment information from the cloud server, and send a networking request to join the second virtual local area network to the cloud server.

[0108] That is, if the first vehicle detects that the first virtual IP address of the communication object and its own second virtual IP address do not belong to the same virtual local area network, it means that the first vehicle is currently unable to perform data transmission with the communication object.

[0109] In order to further realize communication with the communication object, the first vehicle can choose to apply to the cloud server to join the virtual local area network where the communication object is located; specifically, first based on the first virtual IP address of the communication object, the network segment information of the local area network where the communication object is located can be calculated; then, based on the network segment information, a request can be made to the cloud server to check which virtual local area network the network segment information belongs to, so as to obtain the information of the virtual local area network and apply to join the virtual local area network.

[0110] For example, assuming that the first virtual IP address is 10.1.1.2 / 24 and the second virtual IP address is 10.2.1.1 / 24, the network address of the virtual LAN to which the first virtual IP address belongs is calculated to be 10.1.1.0 / 24, and the network address of the virtual LAN to which the second virtual IP address belongs is 10.2.1.0 / 24. Since the network addresses are different, the first vehicle and the communication object are not in the same LAN. The first vehicle can apply to the cloud server to join the virtual LAN with a network address of 10.1.1.0 / 24.

[0111] In the embodiment of the present disclosure, if the communication object and the first vehicle are not in the same virtual local area network, normal communication between the vehicle and the communication object is achieved by switching the virtual local area network where the vehicle is located. The operation is simple and automatic, bringing a good experience to the user.

[0112] In some embodiments, before sending the first data packet to the cloud server, the above-mentioned vehicle communication method may further include an encryption step, specifically including encrypting the first data packet according to a preset encryption algorithm.

[0113] The preset encryption algorithm includes but is not limited to AES (Advanced Encryption Standard) algorithm, DES (Data Encryption Standard) algorithm and other message encryption algorithms, and the encryption algorithm is extensible.

[0114] Encrypting the first data packet may include encrypting a message header and a payload respectively, so that the first data packet cannot be tracked by protocol features during data transmission.

[0115] In the disclosed embodiment, by encrypting the first data packet, the data protection strength is enhanced, and the security of data transmission between the first vehicle and the communication object is improved.

[0116] In some embodiments, when it is determined that the first virtual IP address and the second virtual IP address belong to the same first virtual local area network, the vehicle communication method further includes:

[0117] In response to receiving the second data packet forwarded by the cloud server, the second data packet is decapsulated according to the frame format of the point-to-point protocol to obtain communication data, and the virtual IP address of the sender device of the second data packet and the cloud server that forwards the second data packet are recorded.

[0118] That is, the first vehicle can receive a second data packet from the communication object in response to the first data packet during the communication process with the communication object; or it can receive a second data packet sent by other devices in the same first local area network as the first vehicle. Relative to the sender device of the second data packet, the first vehicle is the communication object of the sender device.

[0119] When the first vehicle receives the second data packet, it needs to decapsulate the second data packet, obtain the communication data, and determine the virtual IP address of the sender device according to the header information. Further, when the local device information table does not include the virtual IP address, the first vehicle can request the cloud server to obtain the information of the sender device, such as the name, device picture, device number, etc., according to the virtual IP address of the sender device, and store the information of the sender device and its virtual IP address in the local device information table.

[0120] In the disclosed embodiment, by recording the virtual IP address of the sender device of the second data packet and the cloud server that forwards the second data packet, when a response data packet is sent to the sender device for the second data packet, the transmission link of the second data packet can be returned along the original path.

[0121] In some embodiments, the cloud server records the mapping relationship between the real IP and virtual IP of the device in the virtual LAN through the Keepalive message mechanism, and when the device is disconnected for a set period of time, the virtual IP address of the device is recovered and its corresponding IP mapping relationship is deleted.

[0122] In the disclosed embodiment, the device status in the virtual LAN is detected through the Keepalive mechanism, and the mapping relationship is deleted when the virtual LAN is disconnected for more than a set period of time, thereby achieving timely updating of the IP mapping relationship stored locally on the server and maintaining normal device communication.

[0123] In order to help those skilled in the art better understand the vehicle communication method provided in the embodiments of the present application, the present application is described in detail below in conjunction with some specific application scenarios.

[0124] See also Figure 2 As shown, Figure 2 A schematic diagram of a scenario in which a vehicle joins a virtual local area network is schematically shown.

[0125] The embodiment of the present application uses the public IP of the cloud server as a routing node, creates a virtual local area network through point-to-point communication and tunnel technology for networking, and the cloud server records the mapping relationship between the virtual IP address and the real IP address of the vehicle equipment added to the virtual local area network, thereby realizing networking and data forwarding of vehicles and other devices.

[0126] like Figure 2 As shown, the scene includes a first vehicle C1, a second vehicle C2, and a cloud server S. The real public IP address of the cloud server is X1.X2.X3.X4, the domain name is abc.vvv.com, the networking port corresponding to the virtual local area network V1 is 1818, and the set virtual networking IP address and subnet mask are 10.8.0.1 / 24.

[0127] In the case that neither vehicle C1 nor vehicle C2 joins the virtual local area network, if vehicle C1 wishes to communicate with vehicle C2, Figure 3 As shown, the vehicle communication method provided in the embodiment of the present application involves the interaction between vehicles C1, C2 and a cloud server S, and may include the following steps:

[0128] S301, vehicles C1 and C2 send networking requests to the cloud server to join the virtual local area network V1 respectively;

[0129] When vehicles C1 and C2 wish to communicate, they need to join the same virtual local area network. For vehicle C1 or C2, the virtual local area network V1 can be set as the default local area network, and when the virtual local area network information input by the user is not received, the connection to the default local area network V1 can be set; or, when vehicles C1 and C2 wish to join a virtual local area network, they can respectively obtain the information of the established virtual local area network from the cloud server, and both parties agree to join the same virtual local area network, such as V1.

[0130] The networking request at least carries the real IP address of the vehicle, the public IP address of the cloud server, the information of the virtual local area network V1 and the payload data. The public IP address of the cloud server can be pre-stored in the vehicle; the information of the virtual local area network V1 can at least include at least one of the identification ID and IP address of the virtual local area network.

[0131] It is understandable that vehicles C1 and C2 do not need to send networking requests simultaneously. Figure 3 The step sequence shown is for exemplary purposes only and does not limit the actual execution steps of the present application.

[0132] S302, the cloud server monitors the networking port 1818. When receiving a networking request, the cloud server parses and determines the source vehicle of the networking request and the virtual local area network to which the vehicle joins according to the information carried in the networking request, configures a virtual IP address for the vehicle, and records the mapping relationship between the real IP address of the vehicle and the virtual IP address;

[0133] The cloud server can configure the virtual IP address by using the DHCP (Dynamic Host Configuration Protocol) service in the related technology.

[0134] like Figure 2 As shown, vehicles C1 and C2 join the virtual LAN V1, and the cloud server configures the virtual IP for C1 as 10.8.0.22 / 24 and the virtual IP for C2 as 10.8.0.20 / 24.

[0135] In one example, the payload data of the networking request carries attribute information of the vehicle itself, such as the vehicle name, license plate number, etc. The cloud server parses the networking request to obtain and record the attribute information.

[0136] S303, vehicle C1 obtains the virtual IP address of vehicle C2;

[0137] The virtual IP address of C2 can be directly input by the user in the interactive interface; or, if the user cannot know the virtual IP address of C2, the user can enter other information that can uniquely identify vehicle C2 in the interactive interface, such as a license plate number, and request the cloud server to obtain the virtual IP address of the vehicle indicated by the input information based on the information input by the user.

[0138] S304, vehicle C1 encapsulates the data to be sent into a point-to-point protocol frame format according to the point-to-point protocol and the virtual IP address of C2, obtains a first data packet and sends it;

[0139] According to the virtual IP addresses of vehicles C1 and C2, the IP header of the encapsulated data packet to be sent includes the source IP address 10.8.0.22 and the destination IP address 10.8.0.20.

[0140] S305, the cloud server decapsulates the received first data packet to obtain the destination IP address, determines the real IP address corresponding to the destination IP address according to the stored mapping relationship, and sends the re-capsulated data packet to the vehicle C2 corresponding to the real IP address;

[0141] That is, after the cloud server obtains the destination IP address after decapsulation, since the destination IP address is a virtual IP address, the actual recipient of the first data packet can be determined based on the mapping relationship; during the re-encapsulation process, the message header information of the original data packet does not need to be modified, and the data packet can be directly re-encapsulated according to the format before decapsulation.

[0142] Alternatively, during the re-encapsulation process, the destination IP address in the message header of the first data packet can be replaced by the real IP address from the virtual IP address, and then the data packet can be re-encapsulated in the format before decapsulation. For example, the IP header of the first data packet includes the source IP address 10.8.0.22 and the destination IP address 10.8.0.20. After the cloud server decapsulates and determines that the real IP corresponding to the destination IP is y1.y2.y3.y4, the re-encapsulated IP header can include the source IP address 10.8.0.22 and the destination IP address y1.y2.y3.y4.

[0143] S306, when vehicle C2 receives the first data packet forwarded from the cloud server, it decapsulates the first data packet to obtain communication data and stores the source IP address locally.

[0144] After receiving the data from vehicle C1, vehicle C2 can record the data packet with IP address 10.8.0.22 forwarded from cloud server S to the vehicle, that is, it obtains the route of the virtual IP address of vehicle C1, so that when vehicle C2 sends a response data packet to vehicle C1, it can return to vehicle C1 by the original route.

[0145] In the disclosed embodiment, a local area network is established through a cloud server, and the first vehicle and the second vehicle are connected to the same virtual local area network according to a networking request. Based on the mapping relationship between the real IP address and the virtual IP address of the vehicle recorded by the cloud server, data forwarding between the first vehicle and the second vehicle is achieved.

[0146] In another embodiment, Figure 2 In the scenario shown, the cloud server S runs a point-to-point communication server program, and vehicles C1 and C2 run point-to-point communication client programs respectively.

[0147] The communication between vehicles C1 and C2 can also be achieved in the following ways:

[0148] Cloud server S runs the peer-to-peer communication server program, listens to port 1818, sets the virtual IP 10.8.0.1 / 24 as a routing node, and sets the virtual LAN V1 access password.

[0149] Vehicle C1 and vehicle C2 respectively run the point-to-point communication client program and send a networking request to the cloud server, along with the virtual LAN access password, to achieve an encrypted connection to the virtual LAN V1.

[0150] The cloud server S will perform password verification on the networking request. After the access password verification is passed, the cloud server S will record the mapping relationship between the virtual IP address and the real IP address of vehicle C1 and vehicle C2.

[0151] If vehicles C1 and C2 do not receive a prompt message indicating that the password verification has failed within a preset time, they confirm access to the virtual local area network V1 and data can be sent between the two vehicles.

[0152] In the disclosed embodiments, corresponding point-to-point communication programs are run in the server and the vehicle, so that different vehicles can join the same virtual local area network. The rapid deployment of vehicle communications provided in the embodiments of the present application can be achieved by running independent programs, making the solution easy to configure and implement.

[0153] The vehicle communication method provided in the embodiment of the present application can not only realize free communication between vehicles, but also be extended to the communication scenarios between vehicles and other devices, such as Figure 4 As shown, applicable scenarios include but are not limited to sharing of external services provided by vehicles, remote maintenance and debugging of vehicles, sharing of resources (photos or videos) between vehicles, collaboration among multiple vehicles, vehicle data synchronization, equipment management, interconnection between vehicles and mobile phones, etc. Communication between devices within the local area network is not limited by distance.

[0154] See also Figure 4 ,Next, the solution is described in combination of several exemplary ,communication scenarios.

[0155] For example, in a remote debugging scenario, the vehicle to be debugged and the test tool at the remote end can respectively run the point-to-point communication client program, send a networking request to the cloud server, and join the same virtual LAN. After-sales maintenance personnel can then use the virtual LAN to achieve remote communication and command control with the vehicle to be debugged, and perform maintenance and debugging.

[0156] Alternatively, in a fleet management scenario, the core vehicle in the fleet can first send a request to the cloud server to establish a virtual LAN, thereby creating a virtual LAN for the fleet, wherein the core vehicle can be any vehicle in the fleet, for example, the leader vehicle used to manage the member vehicles in the fleet can be used as the core vehicle, or any non-leader vehicle can be designated as the core vehicle; after the virtual LAN is established, other vehicles in the fleet can apply to connect to the virtual LAN through the public IP address of the cloud server and the virtual LAN information, so that all member vehicles of the fleet in the same virtual LAN can communicate with each other.

[0157] Alternatively, in the scenario of exchanging driving status information between vehicles on a traffic road, a virtual local area network with a larger network segment range can be pre-built, and the virtual local area network can be set as the default virtual local area network that vehicles join. For this information exchange scenario, vehicles on the traffic road can apply to connect to the default virtual local area network, and after joining the virtual local area network, they can exchange driving status information with other vehicles in the same virtual local area network.

[0158] Corresponding to the above-mentioned embodiment of the vehicle communication method, see Figure 5 As shown, the present application also provides an embodiment of a vehicle communication method device, which is applied to a first vehicle, and the device includes:

[0159] An address acquisition module 501 is used to acquire a first virtual IP address of a communication object;

[0160] The encapsulation module 502 is configured to encapsulate the data to be sent according to the first virtual IP address and the point-to-point protocol to obtain a first data packet in response to the first virtual IP address and the second virtual IP address of the first vehicle belonging to the same first virtual local area network; wherein the first virtual local area network is established by a cloud server;

[0161] The sending module 503 is used to send the first data packet to the cloud server so that the cloud server forwards the first data packet to the communication object according to the connection information of the communication object; the connection information at least includes the mapping relationship between the real IP address of the communication object and the first virtual IP address.

[0162] In some embodiments, the address acquisition module is specifically used to:

[0163] When the first vehicle has joined the virtual local area network, sending a device query request to the cloud server, the device query request is used to obtain information of devices in the same virtual local area network, the information including at least a device name and a virtual IP address;

[0164] The information of the device is obtained according to the response result of the cloud server, and the first virtual IP address of the communication object is determined.

[0165] In some embodiments, the second virtual IP address of the first vehicle is obtained by:

[0166] According to the information of the target virtual local area network, a networking request for joining the target virtual local area network is sent to the cloud server, so that the cloud server records the connection information when the first vehicle joins the target virtual local area network; the connection information at least includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0167] Obtain a second virtual IP address configured by the cloud server for the first vehicle, where the second virtual IP address and the target virtual local area network belong to the same network segment.

[0168] In some embodiments, when obtaining the second virtual IP address of the first vehicle, the information of the target virtual local area network is obtained by any of the following methods, which at least include:

[0169] receiving target virtual local area network information input by a user; or,

[0170] When the first vehicle establishes a communication connection with the cloud server, applying to the cloud server for establishing a target virtual local area network;

[0171] Obtaining information of the target virtual local area network fed back by the cloud server; or,

[0172] When the first vehicle establishes a communication connection with the cloud server, sending a local area network query request to the cloud server, wherein the local area network query request is used to obtain a virtual local area network established on the cloud server;

[0173] According to the response result of the cloud server, one of the virtual local area networks is determined to be the target virtual local area network, and information of the target virtual local area network is obtained from the response result.

[0174] In some embodiments, before encapsulating the data to be sent, in response to the first virtual IP address and the second virtual IP address of the first vehicle not belonging to the same virtual local area network, the apparatus further includes:

[0175] Determine the network segment information of the second virtual local area network where the communication object is located according to the first virtual IP address of the communication object;

[0176] The information of the second virtual local area network corresponding to the network segment information is obtained from the cloud server, and a networking request for joining the second virtual local area network is sent to the cloud server.

[0177] In some embodiments, in response to receiving a second data packet forwarded by the cloud server, the apparatus further includes:

[0178] According to the frame format of the point-to-point protocol, the second data packet is decapsulated to obtain communication data, and the virtual IP address of the sender device of the second data packet and the cloud server that forwards the second data packet are recorded.

[0179] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0180] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0181] The present application also provides an electronic device. The structural diagram of the electronic device is as follows: Figure 6 As shown, the electronic device 600 includes at least one processor 601, a memory 602 and a bus 603, and the at least one processor 601 is electrically connected to the memory 602; the memory 602 is configured to store at least one computer-executable instruction, and the processor 601 is configured to execute the at least one computer-executable instruction, thereby executing the steps of any vehicle communication method provided in any embodiment or any optional implementation manner in the present application.

[0182] Furthermore, the processor 601 may be a Field-Programmable Gate Array (FPGA) or other devices with logic processing capabilities, such as a Microcontroller Unit (MCU) or a Central Process Unit (CPU).

[0183] In the technical solution provided in the present application, based on the existing vehicle networking communication architecture, a virtual local area network is established by using the public IP of the cloud server as a routing node, and the cloud server records the mapping relationship between the virtual IP address and the real IP address of the device in the local area network. Without the need for any additional communication equipment, data is transmitted based on the vehicle's own communication network, thereby realizing mutual communication between the vehicle and other networked devices. The solution is easy to implement and has a low implementation cost. Communication is not limited by distance, has high communication efficiency, and is suitable for application scenarios of various vehicles.

[0184] An embodiment of the present application also provides another readable storage medium storing a computer program, which is used to implement the steps of any vehicle communication method provided in any embodiment or any optional implementation manner in the present application when executed by a processor.

[0185] The readable storage medium provided in the embodiments of the present application includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the readable storage medium includes any medium that can store or transmit information in a readable form by a device (e.g., a computer).

[0186] In the technical solution provided in the present application, based on the existing vehicle networking communication architecture, a virtual local area network is established by using the public IP of the cloud server as a routing node, and the cloud server records the mapping relationship between the virtual IP address and the real IP address of the device in the local area network. Without the need for any additional communication equipment, data is transmitted based on the vehicle's own communication network, thereby realizing mutual communication between the vehicle and other networked devices. The solution is easy to implement and has a low implementation cost. Communication is not limited by distance, has high communication efficiency, and is suitable for application scenarios of various vehicles.

[0187] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

[0188] Although this specification contains many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of specific embodiments of specific inventions. Certain features described in multiple embodiments within this specification can also be implemented in combination in a single embodiment. On the other hand, various features described in a single embodiment can also be implemented separately in multiple embodiments or in any suitable sub-combination.

[0189] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A vehicle communication method, characterized in that: Applied to a first vehicle, the method comprises: Obtaining a first virtual IP address of a communication partner; In response to the first virtual IP address and the second virtual IP address of the first vehicle belonging to the same first virtual local area network, encapsulating the data to be sent according to the first virtual IP address and the point-to-point protocol to obtain a first data packet; wherein the first virtual local area network is established by a cloud server; The first data packet is sent to the cloud server so that the cloud server forwards the first data packet to the communication object according to the connection information of the communication object; the connection information at least includes a mapping relationship between the real IP address of the communication object and the first virtual IP address.

2. The method according to claim 1, characterized in that The obtaining of the first virtual IP address of the communication object comprises: When the first vehicle has joined the first virtual local area network, sending a device query request to the cloud server, the device query request is used to obtain information of devices in the same first virtual local area network, the information including at least a device name and a virtual IP address; The information of the device is obtained according to the response result of the cloud server, and the first virtual IP address of the communication object is determined.

3. The method according to claim 1, characterized in that The second virtual IP address of the first vehicle is obtained in the following manner: According to the information of the target virtual local area network, a networking request for joining the target virtual local area network is sent to the cloud server, so that the cloud server records the connection information when the first vehicle joins the target virtual local area network; the connection information at least includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address; Obtain a second virtual IP address configured by the cloud server for the first vehicle, where the second virtual IP address and the target virtual local area network belong to the same network segment.

4. The method according to claim 3, characterized in that The target virtual local area network information is obtained by any of the following methods, which at least include: receiving target virtual local area network information input by a user; or, When the first vehicle establishes a communication connection with the cloud server, applying to the cloud server for establishing a target virtual local area network; Obtaining information of the target virtual local area network fed back by the cloud server; or, When the first vehicle establishes a communication connection with the cloud server, sending a local area network query request to the cloud server, wherein the local area network query request is used to obtain a virtual local area network established on the cloud server; According to the response result of the cloud server, one of the virtual local area networks is determined to be the target virtual local area network, and information of the target virtual local area network is obtained from the response result.

5. The method according to claim 1, characterized in that Before encapsulating the data to be sent, in response to the first virtual IP address and the second virtual IP address of the first vehicle not belonging to the same first virtual local area network, the method further includes: Determine the network segment information of the second virtual local area network where the communication object is located according to the first virtual IP address of the communication object; The information of the second virtual local area network corresponding to the network segment information is obtained from the cloud server, and a networking request for joining the second virtual local area network is sent to the cloud server.

6. The method according to claim 1, characterized in that In response to receiving a second data packet forwarded by the cloud server, the method further includes: According to the frame format of the point-to-point protocol, the second data packet is decapsulated to obtain communication data, and the virtual IP address of the sender device of the second data packet and the cloud server that forwards the second data packet are recorded.

7. A vehicle communication device, characterized in that: Applied to a first vehicle, the device comprises: An address acquisition module, used to acquire a first virtual IP address of a communication object; an encapsulation module, configured to encapsulate the data to be sent according to the first virtual IP address and a point-to-point protocol to obtain a first data packet in response to the first virtual IP address and the second virtual IP address of the first vehicle belonging to the same first virtual local area network; wherein the first virtual local area network is established by a cloud server; A sending module is used to send the first data packet to the cloud server so that the cloud server forwards the first data packet to the communication object according to the connection information of the communication object; the connection information at least includes the mapping relationship between the real IP address of the communication object and the first virtual IP address.

8. The device according to claim 7, characterized in that The second virtual IP address of the first vehicle is obtained in the following manner: According to the information of the target virtual local area network, a networking request for joining the target virtual local area network is sent to the cloud server, so that the cloud server records the connection information when the first vehicle joins the target virtual local area network; the connection information at least includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address; Obtain a second virtual IP address configured by the cloud server for the first vehicle, where the second virtual IP address and the target virtual local area network belong to the same network segment.

9. An electronic device, characterized in that: include: Memory, processor; The memory is used to store computer programs; The processor is used to call the computer program to implement the vehicle communication method as described in any one of claims 1-6.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle communication method according to any one of claims 1 to 6 is implemented.