Vehicle communication method and apparatus, device, and readable storage medium

By establishing a communication connection between the vehicle and the cloud server, building a virtual LAN and recording the virtual and real IP address mapping relationship of the device, the distance and cost problems between vehicles and vehicles and other devices are solved, and efficient and low-cost Multi-scene communication.

WO2025031293A1PCT designated stage expired Publication Date: 2025-02-13ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/109540
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-07
Filing Date
2024-08-02
Publication Date
2025-02-13

AI Technical Summary

Technical Problem

When the prior art realizes communication between vehicles and vehicles with other devices, there are problems such as limited communication distance, transmission rate affected by the number of equipment hops, high implementation costs and limited application scenarios.

Method used

By establishing a communication connection between the vehicle and the cloud server, using the public IP address of the cloud server as the routing node to build a virtual LAN, the vehicle and other devices communicate through the virtual IP address, and the cloud server records the virtual IP address and the real IP of the device. The mapping relationship of addresses.

Benefits of technology

It realizes efficient and low-cost communication between vehicles and other networkable devices, is not restricted by distance, is suitable for a variety of vehicle application scenarios, and supports data transmission of multiple network layer protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024109540_13022025_PF_FP_ABST
    Figure CN2024109540_13022025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a vehicle communication method and apparatus, a device, 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, and the cloud server records a mapping relationship between a virtual IP address and a real IP address of a device in the local area network. Without the need for any additional communication device, data is transmitted on the basis of a communication network of a vehicle itself, achieving mutual communication between the vehicle and another networkable device. The solution is easy to implement and the implementation cost is low, communication is not limited by the distance, the communication efficiency is high, and the present application is suitable for application scenarios of various vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Vehicle communication method, device, equipment and readable storage medium 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 increasingly 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] Summary of the Invention

[0004] In view of this, the present application provides a vehicle communication method, apparatus, device and readable storage medium.

[0005] Specifically, this application is implemented through the following technical solutions:

[0006] According to a first aspect of an embodiment of the present application, a vehicle communication method is provided, applied to a first vehicle that has established a communication connection with a cloud server, the method comprising:

[0007] Obtaining a first virtual IP address of a communication partner, wherein the communication partner also establishes a communication connection with the cloud server;

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

[0009] 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 first connection information of the communication object; the first connection information includes a mapping relationship between the real IP address of the communication object and the first virtual IP address.

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

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

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

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

[0014] Sending a network request to the cloud server to join the target virtual local area network based on the target virtual local area network information, so that the cloud server configures the second virtual IP address for the first vehicle and records the second connection information when the first vehicle joins the target virtual local area network; wherein the second virtual IP address and the target virtual local area network belong to the same network segment, and the second connection information includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0015] Obtain the second virtual IP address configured by the cloud server for the first vehicle.

[0016] Optionally, the target virtual local area network information is obtained by any of the following methods:

[0017] Receiving information of the target virtual local area network input by a user;

[0018] Applying to the cloud server to establish the target virtual local area network to obtain information of the target virtual local area network fed back by the cloud server; or

[0019] Send a LAN query request to the cloud server to obtain information about the target virtual LAN from a response result fed back by the cloud server, wherein the response result includes one or more virtual LANs built on the cloud server, and the target virtual LAN is one of the one or more virtual LANs.

[0020] Optionally, the method also includes: in response to the first virtual IP address and the second virtual IP address not belonging to the same virtual local area network, determining the network segment information of the second virtual local area network where the communication object is located based on the first virtual IP address of the communication object; and sending a networking request to join the second virtual local area network to the cloud server based on the network segment information.

[0021] Optionally, the method also includes: in response to receiving a second data packet forwarded by the cloud server, decapsulating the second data packet according to the frame format of the point-to-point protocol to obtain communication data; recording the virtual IP address of the sender device of the second data packet and recording the cloud server that forwards the second data packet.

[0022] According to a second aspect of an embodiment of the present application, a vehicle communication device is provided, applied to a first vehicle that has established a communication connection with a cloud server, the device comprising:

[0023] An address acquisition module, configured to acquire a first virtual IP address of a communication partner, wherein the communication partner also establishes a communication connection with the cloud server;

[0024] an encapsulation module, configured to encapsulate the data to be transmitted 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 both belonging to a first virtual local area network; wherein the first virtual local area network is established by the cloud server;

[0025] 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 first connection information of the communication object; the first connection information includes a mapping relationship between the real IP address of the communication object and the first virtual IP address.

[0026] Optionally, the address acquisition module is specifically configured to:

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

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

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

[0030] Sending a network request to the cloud server to join the target virtual local area network based on the target virtual local area network information, so that the cloud server configures the second virtual IP address for the first vehicle and records the second connection information when the first vehicle joins the target virtual local area network; wherein the second virtual IP address and the target virtual local area network belong to the same network segment, and the second connection information includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0031] Obtain the second virtual IP address configured by the cloud server for the first vehicle.

[0032] Optionally, 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:

[0033] Receiving information of the target virtual local area network input by a user;

[0034] Applying to the cloud server to establish the target virtual local area network to obtain information of the target virtual local area network fed back by the cloud server; or

[0035] Send a LAN query request to the cloud server to obtain information about the target virtual LAN from a response result fed back by the cloud server, wherein the response result includes one or more virtual LANs built on the cloud server, and the target virtual LAN is one of the one or more virtual LANs.

[0036] Optionally, the device also includes a networking request sending module, which is used to determine the network segment information of the second virtual local area network where the communication object is located based on the first virtual IP address of the communication object in response to the first virtual IP address and the second virtual IP address not belonging to the same virtual local area network; and send a networking request to join the second virtual local area network to the cloud server based on the network segment information.

[0037] Optionally, the device also includes a recording module for, in response to receiving a second data packet forwarded by the cloud server, decapsulating the second data packet according to the frame format of the point-to-point protocol to obtain communication data; recording the virtual IP address of the sender device of the second data packet and recording the cloud server that forwards the second data packet.

[0038] 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; and the processor is used to execute the above-mentioned vehicle communication method by calling the computer program.

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

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

[0041] The technical solution provided in this application builds on the existing vehicle networking communication architecture by using the public IP address of a cloud server as a routing node to establish a virtual local area network (VLAN). The cloud server then records the mapping between the virtual IP addresses and real IP addresses of devices in the LAN. Without relying on any additional communication equipment, data is transmitted over the vehicle's own communication network, enabling communication between the vehicle and other networked devices. This solution is easy to implement and low-cost, with no distance restrictions, high communication efficiency, and applicability to a variety of vehicle application scenarios.

[0042] It should be understood that the above general description and the detailed description below are merely exemplary and explanatory and cannot limit the present application. In addition, any embodiment in the present application does not necessarily achieve all the effects described above. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] FIG1 is a flow chart of a vehicle communication method according to an exemplary embodiment of the present application.

[0045] FIG2 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.

[0046] FIG3 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.

[0047] FIG4 is a schematic diagram illustrating an example application scenario of an embodiment of the present application.

[0048] FIG5 is a schematic structural diagram of a vehicle communication device according to an exemplary embodiment of the present application.

[0049] FIG6 is a hardware diagram of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0050] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

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

[0052] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish the same type of information from one another. For example, a first vehicle could be referred to as a second vehicle, and similarly, a second vehicle could be referred to as a first vehicle, without departing from the scope of this application. Depending on the context, the term "if" as used herein can be interpreted as "at the time of," "when," or "in response to determining."

[0053] With the continuous development of Internet of Vehicles (IoV) technology, the demand for IoV application scenarios is gradually expanding. At the same time, users are demanding communication between vehicles and with other elements in the transportation system, such as vehicles communicating with roadside infrastructure, bicycles, and pedestrians, to bring convenience to driving.

[0054] In related technologies, methods for achieving communication between vehicles and between vehicles and other devices mainly include wireless mesh communication and vehicle-to-vehicle (V2V) technology communication.

[0055] Specifically, 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 vehicles to 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. Vehicles need 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.

[0056] Among them, wireless mesh communication refers to the use of wireless mesh to conduct a decentralized, rapid self-organizing network. When a vehicle is equipped with high-power on-board mesh equipment, multiple on-board wireless nodes can form an ad hoc network, forming an interconnected network system to provide more reliable and efficient on-board wireless communication services. However, because 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 communication, it is necessary to schedule base stations and set specific operating frequency bands, channel bandwidths, transmission channels, etc. The software implementation is complex and the overall implementation cost of the solution is high. In addition, this method is mainly suitable for fleet management in specific scenarios and is not suitable for large-scale networking of sales vehicles.

[0057] When V2V technology is used to achieve communication, the principle behind this technology is to use the transmission unit carried by each vehicle to send signals through a high-speed wireless network at a frequency of 10 times per second. This signal includes but is not limited to information such as the vehicle's current speed, direction, geographic location, route, etc., so that other vehicles within the communication range can receive the signal in real time and the on-board units of the vehicles that receive the signal at the same time send similar feedback signals, thereby forming information exchange and realizing communication between vehicles. Based on the above implementation principle, dedicated V2X wireless communication hardware needs to be installed on the vehicle and a strong infrastructure needs to be established, so the implementation cost is relatively high. In addition, this technology is greatly affected by interference factors in the surrounding environment, the communication distance is limited, and the application scenarios are also relatively limited.

[0058] In the above two methods, due to the use of wireless communication, the communication distance and communication rate are limited by greater interference factors from the surrounding environment; in the process of networking implementation, vehicles need to install specific wireless communication dedicated equipment, the configuration cost is high, and the vehicle near-field communication is also limited by the rate and scene setting protocol. As a result, the application scenarios of the two methods are limited and are not suitable for large-scale, long-distance vehicle communication scenarios.

[0059] In view of this, in order to solve the above technical problems, the present application provides a vehicle communication method, which can be applied to various scenarios in which vehicles communicate with other vehicles or other devices, such as communication scenarios between vehicles and mobile phones, computers, remote testing equipment, etc. This application does not impose specific restrictions on this.

[0060] This vehicle communication method is applied to a first vehicle that has established a communication connection with a cloud server. It is understood that the "first" in the first vehicle has no specific meaning and is only used to distinguish other vehicles of the same type. This embodiment of the application utilizes the vehicle's own 4G or 5G communication network to achieve vehicle communication without the need for additional configuration equipment. As shown in Figure 1, the vehicle communication method may include the following steps S101-S103.

[0061] S101, obtaining a first virtual IP address of a communication partner, wherein the communication partner also establishes a communication connection with the cloud server.

[0062] The communication partner refers to a device or equipment with network connectivity that the first vehicle desires 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, the communication partner for the first vehicle may be at least one other object in the same fleet; or, in a remote testing scenario, the communication partner for the first vehicle may be a remote test device or computer device.

[0063] The first virtual IP address is a virtual IP address configured when the communication partner joins a virtual local area network, and is used to identify the virtual local area network to which the communication partner belongs. The virtual local area network to which the communication partner joins is established through the cloud server connected to the first vehicle.

[0064] S102, in response to the fact that the first virtual IP address and the second virtual IP address of the first vehicle both belong to a first virtual local area network, 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; wherein, the first virtual local area network is established through a cloud server.

[0065] That is, after obtaining the first virtual IP address of the communication partner, the first vehicle can first determine whether the communication partner and the first vehicle are in the same virtual local area network based on the first virtual IP address and the vehicle's own second virtual IP address. Specifically, the first network address of the virtual local area network where the communication partner 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 and the second network address are the same and have the same subnet mask, then the communication partner and the first vehicle are determined to be in the same virtual local area network, that is, the first virtual IP address and the first vehicle's second virtual IP address both belong to the first virtual local area network.

[0066] 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, communication can be carried out between the first vehicle and the communication object.

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

[0068] When using the point-to-point protocol frame format to encapsulate data packets to be transmitted, the network layer protocol of the data packets to be transmitted is not restricted, enabling the simultaneous transmission of data packets from multiple network layer protocols on the same link. For the first vehicle and the communication partner, data transmission in various scenarios can be encapsulated using the point-to-point protocol after joining the same virtual local area network, without the need to configure a specific protocol communication link for each required scenario.

[0069] 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 includes the mapping relationship between the real IP address of the communication object and the first virtual IP address.

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

[0071] When the first vehicle determines to send a first data packet to a communication partner, the first data packet is first sent to the cloud server. Upon receiving the first data packet, the cloud server first decapsulates the first data packet to obtain 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 partner. Next, based on the connection information of the stored device, the cloud server determines the real IP address corresponding to the destination IP address, converts the destination IP address into the real IP address of the communication partner, and then re-encapsulates the encapsulated data packet and sends it to the communication partner, thereby completing the communication data transmission between the first vehicle and the communication partner.

[0072] In this embodiment, without adding additional communication equipment, the vehicle's own communication network is utilized, with the cloud server's public IP address used as a routing node to establish a virtual local area network (VLAN). By placing the vehicle and other networked devices in the same VLAN, communication between the vehicle and other networked devices is achieved. This solution is simple to configure, easy to implement, and inexpensive to implement. Communication between the vehicle and other devices is not limited by distance, resulting in high communication efficiency.

[0073] 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 applicable to a variety of different vehicle application scenarios.

[0074] In some embodiments, the acquisition of the first virtual IP address of the communication partner in step S101 may include any of the following methods:

[0075] The first method: receiving a first virtual IP address input by a user; or,

[0076] The second method: 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,

[0077] The third method: when the first vehicle has joined the virtual local area network, a device query request is sent to the cloud server, and the device query request is used to obtain information about devices in the same virtual local area network, and the information includes at least the device name and 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.

[0078] Among them, the first way is that when the user has learned the first virtual IP address of the communication object, the user can choose to directly enter the virtual IP address of the communication object in the interactive interface.

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

[0080] The third method is that after the first vehicle has joined the virtual local area network built by the cloud server, it can first request the cloud server to view the device information in the same local area network as itself. The device information includes at least 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.

[0081] In the embodiment of the present disclosure, the virtual IP 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 user operations and brings a good experience to users.

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

[0083] Sending a network request to the cloud server to join the target virtual local area network based on the target virtual local area network information, so that the cloud server configures the second virtual IP address for the first vehicle and records the connection information when the first vehicle joins the target virtual local area network; wherein the second virtual IP address and the target virtual local area network belong to the same network segment, and the connection information includes at least a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0084] Obtain a second virtual IP address configured by the cloud server for the first vehicle.

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

[0086] The information of the above-mentioned target virtual local area network may at least include at least one of the information that can uniquely identify the virtual local area network, such as the virtual local area network identification ID, virtual IP address, etc.; the above-mentioned networking request is used to apply to the cloud server for connection to the target virtual local area network, 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 local area network and payload data; wherein, the payload data may also include vehicle information such as the license plate number and appearance picture of the first vehicle.

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

[0088] It is understandable that other devices that need to communicate with the first vehicle can also join the virtual local area network 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 local area network as the first vehicle to facilitate mutual communication.

[0089] In this disclosed embodiment, the public IP address of a cloud server is used as a routing node to combine vehicles and other networked devices into a virtual local area network (VLAN). The cloud server then records the mapping between the virtual network addresses and the real network addresses of devices within the VLAN, enabling communication between vehicles and other devices within the same VLAN. This solution offers advantages such as simple configuration, ease of implementation, low cost, rapid networking, and unrestricted distance communication.

[0090] 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 include at least:

[0091] receiving target virtual local area network information input by the user; or,

[0092] 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

[0093] When the first vehicle establishes a communication connection with the cloud server, a local area network query request is sent to the cloud server to obtain information about the target virtual local area network from a response result fed back by the cloud server, wherein the response result includes one or more virtual local area networks established on the cloud server, and the target virtual local area network is one of the one or more virtual local area networks.

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

[0095] 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 wants to join, he 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 wants to build a virtual LAN that is only used for communication between itself and the communication object, it can apply 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.

[0096] In the embodiment of the present disclosure, by providing users with multiple ways to determine the target virtual local area network to join, the function of users choosing 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.

[0097] In some embodiments, before encapsulating the data to be transmitted 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:

[0098] According to the first virtual IP address of the communication object, the network segment information of the second virtual local area network where the communication object is located is determined; and according to the network segment information, a networking request for joining the second virtual local area network is sent to the cloud server.

[0099] That is, if the first vehicle detects that the first virtual IP address of the communication partner 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 partner.

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

[0101] 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 then apply to the cloud server to join the virtual LAN with the network address 10.2.1.0 / 24.

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

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

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

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

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

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

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

[0109] 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 first virtual local area network. Relative to the sending device of the second data packet, the first vehicle is the communication object of the sending device.

[0110] Upon receiving the second data packet, the first vehicle needs to decapsulate the second data packet, obtain the communication data, and determine the virtual IP address of the sender device based on the header information. Furthermore, if the local device information table does not include the virtual IP address, the first vehicle can request information about the sender device, such as its name, device image, and device number, from the cloud server based on the sender device's virtual IP address, and store the sender device information and its virtual IP address in the local device information table.

[0111] In an embodiment of the present disclosure, by recording the virtual IP address of the sender device of the second data packet and recording 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, it can be returned along the original transmission link of the second data packet.

[0112] In some embodiments, the cloud server records the mapping relationship between the real IP and virtual IP of the device in the virtual local area network 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.

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

[0114] In order to facilitate those skilled in the art to 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.

[0115] Referring to FIG. 2 , FIG. 2 schematically shows a scenario diagram of a vehicle joining a virtual local area network.

[0116] In the embodiment of the present application, the public IP of the cloud server is used as a routing node, and a virtual local area network is created through point-to-point communication and tunnel technology for networking. 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.

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

[0118] In the case that neither vehicle C1 nor vehicle C2 joins a virtual local area network, if vehicle C1 desires to communicate with vehicle C2, as shown in Figure 3. The vehicle communication method provided in the embodiment of the present application involves interaction between vehicles C1, C2 and a cloud server S, and may include the following steps S301-S306.

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

[0120] When vehicles C1 and C2 wish to communicate, they must join the same virtual local area network (VLAN). For either vehicle C1 or C2, VLAN V1 can be set as the default VLAN. If no VLAN information input by the user is received, the default VLAN V1 can be set to connect. Alternatively, when vehicles C1 and C2 wish to join a VLAN, they can each obtain information about an established VLAN from the cloud server and agree to join the same VLAN, such as V1.

[0121] The networking request carries at least the vehicle's real IP address, the cloud server's public IP address, virtual local area network (VLAN) V1 information, and payload data. The cloud server's public IP address may be pre-stored locally in the vehicle; the VLAN V1 information may include at least one of the VLAN's ID and IP address.

[0122] It is understandable that vehicles C1 and C2 are not required to send networking requests simultaneously, and the step sequence shown in FIG3 is only for illustrative description and does not limit the actual execution steps of this application.

[0123] S302, the cloud server listens to the networking port 1818. When receiving a networking request, it parses and determines the source vehicle of the networking request and the virtual local area network to which the vehicle joins based on the information carried in the networking request, configures a virtual IP address for the vehicle, and records the mapping relationship between the vehicle's real IP address and the virtual IP address.

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

[0125] As shown in Figure 2, vehicles C1 and C2 join the virtual LAN V1. The cloud server configures a virtual IP address of 10.8.0.22 / 24 for vehicle C1 and a virtual IP address of 10.8.0.20 / 24 for vehicle C2.

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

[0127] S303, vehicle C1 obtains the virtual IP address of vehicle C2.

[0128] The virtual IP address of vehicle C2 can be directly input by the user in the interactive interface; or, if the user cannot know the virtual IP address of vehicle C2, the user can enter other information that can uniquely identify vehicle C2 in the interactive interface, such as the 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.

[0129] 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 to the cloud server.

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

[0131] 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 based on the stored mapping relationship, and sends the re-capsulated data packet to the vehicle C2 corresponding to the real IP address.

[0132] That is, after the cloud server decapsulates and obtains the destination IP address, 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.

[0133] Alternatively, during the repackaging process, the destination IP address in the message header of the first data packet can be replaced from a virtual IP address to a real IP address, and the data packet can be repacked in the format before depackaging. For example, the IP header of the first data packet mentioned above includes the source IP address 10.8.0.22 and the destination IP address 10.8.0.20. After depackaging by the cloud server, it is determined that the real IP address corresponding to the destination IP is y1.y2.y3.y4. The repackaging IP header can include the source IP address 10.8.0.22 and the destination IP address y1.y2.y3.y4.

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

[0135] 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 itself, thus obtaining the route of vehicle C1's virtual IP address. This allows vehicle C2 to send a response data packet back to vehicle C1 along the original route.

[0136] In the disclosed embodiment, a virtual 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.

[0137] In another embodiment, for the scenario shown in FIG2 , the cloud server S runs a point-to-point communication server program, and the vehicles C1 and C2 respectively run a point-to-point communication client program.

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

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

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

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

[0142] If vehicles C1 and C2 do not receive a password verification failure prompt message within the preset time, they confirm access to the virtual local area network V1 and data transmission between the two vehicles can be carried out.

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

[0144] The vehicle communication method provided in the embodiments of this application can not only realize free communication between vehicles, but can also be extended to the communication scenarios between vehicles and other devices. As shown in Figure 4, 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 between multiple vehicles, vehicle data synchronization, device management, and interconnection between vehicles and mobile phones. Communication between devices in a local area network is not limited by distance.

[0145] 4 , the solution will be described below in conjunction with several exemplary communication scenarios.

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

[0147] Alternatively, in a fleet management scenario, a core vehicle in the fleet can first send a request to the cloud server to establish a virtual local area network (VLAN), thereby creating a VLAN for the fleet. This core vehicle can be any vehicle in the fleet. For example, the lead vehicle used to manage the fleet's member vehicles can be used as the core vehicle, or any non-leader vehicle can be designated as the core vehicle. Once the VLAN is established, other vehicles in the fleet can request to connect to the VLAN using the cloud server's public IP address and VLAN information, allowing all member vehicles in the fleet to communicate with each other.

[0148] Alternatively, for vehicles on a road exchanging driving status information, a large virtual local area network (VLAN) could be pre-established and set as the default VLAN for vehicles. In this information exchange scenario, vehicles on the road could request to connect to the default VLAN and, after joining, exchange driving status information with other vehicles in the same VLAN.

[0149] Corresponding to the embodiment of the aforementioned vehicle communication method, as shown in FIG5 , the present application further provides an embodiment of a vehicle communication method apparatus, which is applied to a first vehicle that has established a communication connection with a cloud server, and the apparatus includes:

[0150] An address acquisition module 501 is configured to acquire a first virtual IP address of a communication partner, wherein the communication partner also establishes a communication connection with the cloud server;

[0151] an encapsulation module 502 for encapsulating the data to be transmitted 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 both belonging to a first virtual local area network (VLAN), wherein the first virtual local area network is established by the cloud server;

[0152] 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 first connection information of the communication object; the first connection information includes the mapping relationship between the real IP address of the communication object and the first virtual IP address.

[0153] In some embodiments, the address acquisition module is specifically configured to:

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

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

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

[0157] Sending a network request to the cloud server to join the target virtual local area network based on the target virtual local area network information, so that the cloud server configures the second virtual IP address for the first vehicle and records the second connection information when the first vehicle joins the target virtual local area network; wherein the second virtual IP address and the target virtual local area network belong to the same network segment, and the second connection information includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address;

[0158] Obtain the second virtual IP address configured by the cloud server for the first vehicle.

[0159] 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:

[0160] Receiving information of the target virtual local area network input by a user;

[0161] Applying to the cloud server to establish the target virtual local area network to obtain information of the target virtual local area network fed back by the cloud server; or

[0162] Send a LAN query request to the cloud server to obtain information about the target virtual LAN from a response result fed back by the cloud server, wherein the response result includes one or more virtual LANs built on the cloud server, and the target virtual LAN is one of the one or more virtual LANs.

[0163] In some embodiments, the device also includes a networking request sending module, which is used to determine the network segment information of the second virtual local area network where the communication object is located based on the first virtual IP address of the communication object in response to the first virtual IP address and the second virtual IP address not belonging to the same virtual local area network; and send a networking request to join the second virtual local area network to the cloud server based on the network segment information.

[0164] In some embodiments, the device also includes a recording module for, in response to receiving a second data packet forwarded by the cloud server, decapsulating the second data packet according to the frame format of the point-to-point protocol to obtain communication data; recording the virtual IP address of the sender device of the second data packet and recording the cloud server that forwards the second data packet.

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

[0166] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely 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.

[0167] An embodiment of the present application also provides an electronic device, a structural diagram of the electronic device is shown in Figure 6, 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 any step of the vehicle communication method provided in any embodiment or any optional implementation method of the present application.

[0168] 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).

[0169] In the technical solution provided in this application, based on the existing vehicle networking communication architecture, a virtual local area network is built 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 help of 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, the communication efficiency is high, and it is suitable for application scenarios of various vehicles.

[0170] 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 of the present application when executed by a processor.

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

[0172] In the technical solution provided in this application, based on the existing vehicle networking communication architecture, a virtual local area network is built 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 help of 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, the communication efficiency is high, and it is suitable for application scenarios of various vehicles.

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

[0174] Although this specification contains many specific implementation details, these should not be construed as limiting the scope of any invention or the scope of what is claimed, but rather are intended primarily to describe features of specific embodiments of particular inventions. Certain features described in this specification in the context of multiple embodiments may also be implemented in combination in a single embodiment. On the other hand, various features described in the context of a single embodiment may also be implemented separately in multiple embodiments or in any suitable subcombination.

[0175] The above descriptions are merely some embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, 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, applied to a first vehicle that has established a communication connection with a cloud server, the method comprising: Acquire a first virtual IP address of a communication object, wherein the communication object also establishes a communication connection with the cloud server; In response to the first virtual IP address and the second virtual IP address of the first vehicle both belonging to a first virtual local area network, According to the first virtual IP address and the point-to-point protocol, the data to be sent is encapsulated to obtain a first data packet; wherein the first virtual local area network is established by the 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 first connection information of the communication object; the first connection information 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 first virtual local area network, the information including device names and virtual IP addresses; 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 configures the second virtual IP address for the first vehicle and records the second connection information when the first vehicle joins the target virtual local area network; wherein the second virtual IP address and the target virtual local area network belong to the same network segment, and the second connection information includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address; Obtain the second virtual IP address configured by the cloud server for the first vehicle.

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: Receiving information of the target virtual local area network input by a user; Applying to the cloud server to establish the target virtual local area network to obtain information of the target virtual local area network fed back by the cloud server; or, A LAN query request is sent to the cloud server to obtain information about the target virtual LAN from a response result fed back by the cloud server, wherein the response result includes one or more virtual LANs built on the cloud server, and the target virtual LAN is one of the one or more virtual LANs.

5. The method according to claim 1, further comprising: In response to the first virtual IP address and the second virtual IP address not belonging to the same virtual local area network, 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; A networking request for joining the second virtual local area network is sent to the cloud server according to the network segment information.

6. The method according to claim 1, further comprising: In response to receiving a second data packet forwarded by the cloud server, Decapsulating the second data packet according to a frame format of the point-to-point protocol to obtain communication data; Record the virtual IP address of the sender device of the second data packet and record the cloud server that forwards the second data packet.

7. A vehicle communication device, applied to a first vehicle that has established a communication connection with a cloud server, the device comprising: An address acquisition module, used to acquire a first virtual IP address of a communication object, wherein the communication object also establishes a communication connection with the cloud server; 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 both belonging to a first virtual local area network; wherein the first virtual local area network is established by the 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 first connection information of the communication object; the first connection information includes a 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 configures the second virtual IP address for the first vehicle and records the second connection information when the first vehicle joins the target virtual local area network; the second connection information includes a mapping relationship between the real IP address of the first vehicle and the second virtual IP address; Obtain the second virtual IP address configured by the cloud server for the first vehicle.

9. An electronic device, comprising: 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, wherein the program, when executed by a processor, implements the vehicle communication method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method, system for realizing intercommunication between cloud intranet and cloud extranet, equipment and medium

    CN113783765A

  • Private network access control method, virtual reality equipment control method and equipment

    CN115842697A

  • Selective tracking of acknowledgments to improve network device buffer utilization and traffic shaping

    US20210144095A1