Vehicle data communication method and device, communication equipment and storage medium
By integrating multiple Ethernet network ports in vehicle communication devices and adapting them during data transmission, the hardware cost and space occupation problems caused by inconsistent Ethernet communication methods between vehicle devices are solved, and multiple Ethernet networks are realized. Compatibility and data transfer efficiency.
Patent Information
- Application Number
- CN202310583036.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-11-22
AI Technical Summary
Different Ethernet communication methods between vehicle devices lead to increased hardware cost and space occupation, and multiple communication device network ports are required to be configured to meet data interaction needs.
Design a vehicle data communication method, by integrating multiple Ethernet network ports in the communication device, determine the transmission network information when obtaining data uploaded by the vehicle device. If the Ethernet is different, the data will be converted to meet the transmission requirements of the target Ethernet and send through the corresponding network port.
Compatibility with multiple Ethernet communication requirements between vehicle devices is achieved, hardware cost and space occupation is reduced, and the need to configure corresponding data interaction devices for each Ethernet device is avoided.
Smart Images

Figure CN119012163A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle communication technology, and in particular, relates to a vehicle data communication method, device, communication equipment and storage medium. Background Art
[0002] Stable communication between vehicle devices is the basis for controlling vehicles to achieve autonomous driving. Different vehicle devices usually have different functions, and when vehicle devices of different types and functions interact with each other, network ports of corresponding communication devices need to be configured to meet vehicle communication requirements.
[0003] However, there are many communication modes for vehicle equipment, such as vehicle Ethernet, industrial Ethernet, etc. Therefore, the number of network ports required to set up communication devices on the vehicle will increase. Based on this, a large number of network ports of communication devices will result in a large amount of space required for installation and setting of the vehicle, and will increase the hardware cost of setting up the communication devices in the vehicle. Summary of the invention
[0004] The embodiments of the present application provide a vehicle data communication method, apparatus, communication device and storage medium, which can solve the problem of increasing the hardware cost and configuration space required for the vehicle when meeting the communication requirements between different Ethernet networks.
[0005] In a first aspect, an embodiment of the present application provides a vehicle data communication method, which is applied to a communication device, wherein the communication device integrates multiple Ethernets, and the communication device communicates with the vehicle device through network ports corresponding to the multiple Ethernets; the method includes:
[0006] When the first data uploaded by any vehicle device is obtained, transmission network information for transmitting the first data is determined; the transmission network information includes a first Ethernet used by the vehicle device when transmitting the first data and a target IP address; the target IP address is used to identify a target device to receive the first data;
[0007] Determine a second Ethernet used by the target device for data transmission;
[0008] If the first Ethernet is different from the second Ethernet, converting the first data into the second data; the second data meets the transmission requirements of the second Ethernet;
[0009] The second data is sent to the target device according to the network port of the second Ethernet.
[0010] In a second aspect, an embodiment of the present application provides a vehicle data communication device, which is applied to a communication device, wherein the communication device integrates multiple Ethernets, and the communication device communicates with the vehicle device through ports corresponding to the multiple Ethernets; the device includes:
[0011] A transmission network information determination module, used to determine the transmission network information for transmitting the first data when the first data uploaded by any vehicle device is obtained; the transmission network information includes the first Ethernet used by the vehicle device when transmitting the first data and the target IP address; the target IP address is used to identify the target device to receive the first data;
[0012] A second Ethernet determining module, used to determine a second Ethernet used by the target device for data transmission;
[0013] A conversion module, configured to convert the first data into the second data if the first Ethernet is different from the second Ethernet; the second data meets the transmission requirements of the second Ethernet;
[0014] The second data sending module is used to send the second data to the target device according to the network port of the second Ethernet.
[0015] In a third aspect, an embodiment of the present application provides a communication device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect described above when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the first aspect described above is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a communication device, enables the communication device to execute the method of the first aspect.
[0018] Compared with the prior art, the beneficial effect of the embodiment of the present application is that a variety of Ethernet network ports can be pre-integrated on the communication device. After that, when the first data uploaded by any vehicle device is obtained, the first Ethernet used to transmit the first data and the target IP address used to identify the target device to receive the first data are determined. After that, when it is determined that the second Ethernet used to communicate with the target device is different from the first Ethernet, in order to be able to transmit the first data to the target device, the first data can be converted into second data that meets the transmission requirements of the second Ethernet. Then, the second data is sent to the target device through the network port of the second Ethernet. Based on this, when the communication requirements corresponding to multiple vehicle devices are inconsistent, the vehicle devices can also communicate normally to be compatible with the communication requirements between different Ethernets. Furthermore, there is no need to configure corresponding data interaction devices for each vehicle device using different Ethernets, thereby reducing the hardware cost required for the vehicle and the configuration space required. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 This is a schematic diagram of an application scenario of a communication device in a vehicle data communication method provided by an embodiment of the present application;
[0021] Figure 2 is a flow chart of a method for communicating vehicle data provided by an embodiment of the present application;
[0022] Figure 3 This is a schematic diagram of an application scenario in which a communication device and a domain controller perform data interaction in a vehicle data communication method provided by an embodiment of the present application;
[0023] Figure 4 It is a structural schematic diagram of a vehicle data communication device provided by an embodiment of the present application;
[0024] Figure 5 It is a structural diagram of a communication device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0025] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0026] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0027] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0028] Stable communication between vehicle devices is the basis for controlling vehicles to achieve autonomous driving. Different vehicle devices usually have different functions, and when different types and functions of vehicle devices interact with each other, the network ports of the corresponding communication devices need to be configured to meet the needs of vehicle communication devices.
[0029] Specifically, the communication information in unmanned vehicles usually uses industrial-grade communication equipment, and the corresponding network port is single. For example, it is necessary to use a switch, gateway, or router and other communication equipment to convert the data of a certain vehicle equipment. Therefore, the number of network ports of communication equipment required to be set up in the vehicle system will increase. Based on this, a large number of network ports of communication equipment will result in the vehicle needing to use a lot of space for installation and setting, and will increase the hardware cost of setting up the communication equipment interface in the vehicle.
[0030] Based on this, in order to reduce the installation space and hardware cost, the embodiment of the present application provides a vehicle data communication method, which is applied to a communication device. Figure 1 , Figure 1 1 is a schematic diagram of an application scenario of a communication device in a vehicle data communication method provided by an embodiment of the present application. The communication device integrates multiple Ethernets, so the communication device can communicate with the vehicle device through the network ports corresponding to the multiple Ethernets.
[0031] Exemplarily, Ethernet includes but is not limited to industrial Ethernet and vehicle-mounted Ethernet. The type and quantity of each Ethernet can be set according to actual conditions. Figure 1 , Figure 1 1000BAS-T1 stands for Gigabit Automotive Ethernet; 100BASE-T1 stands for 100M Automotive Ethernet; 1000BAS-TX stands for Gigabit Industrial Ethernet. As the transmission protocols of Gigabit Automotive Ethernet and Gigabit Industrial Ethernet are different, vehicle equipment using Industrial Ethernet cannot directly transmit data with vehicle equipment using Automotive Ethernet.
[0032] See also Figure 2 , Figure 2 The following is a flowchart of a method for communicating vehicle data provided by an embodiment of the present application. The method includes the following steps:
[0033] S201. When the first data uploaded by any vehicle device is obtained, determine the transmission network information for transmitting the first data; the transmission network information includes the first Ethernet used by the vehicle device when transmitting the first data and the target IP address; the target IP address is used to identify the target device that needs to receive the first data.
[0034] In one embodiment, the vehicle equipment includes but is not limited to various sensor devices, human-computer interaction devices, and domain controllers required for automatic vehicle driving. The target device can be a vehicle device or an external device. For example, it can be various sensor devices or domain controllers on a vehicle, without limitation.
[0035] Among them, the vehicle device is a domain controller, which usually communicates with the outside through the vehicle Ethernet. For example, it obtains data from the communication device through the vehicle Ethernet, or transmits the data to be sent to the communication device through the vehicle Ethernet.
[0036] However, the Ethernet corresponding to each sensor device may be an in-vehicle Ethernet or various industrial Ethernets. Based on this, when the various sensor devices interact with each other, the vehicle devices of the same Ethernet can directly interact with each other. Otherwise, when the various sensor devices are of different Ethernets, unified data interaction is required according to the communication device. Or, when the various sensor devices are of industrial Ethernet, data interaction with the domain controller will not be possible.
[0037] Specifically, the sensor device mainly collects environmental data when the vehicle is driving and sends it to the domain controller so that it can control the vehicle's automatic driving based on the collected environmental data. However, the domain controller only uses the vehicle Ethernet. Therefore, when the sensor device uses industrial Ethernet, it is necessary to use the method corresponding to S201-S204 for communication.
[0038] The communication device integrates multiple Ethernets, each Ethernet corresponds to a network port, and the network port can be a physical interface or a virtual interface, which is not limited. In this embodiment, the network port is usually a physical interface.
[0039] In one embodiment, when the communication device needs to exchange data with each vehicle device, each vehicle device needs to establish a connection with the corresponding Ethernet network port in advance. In this way, the communication device can obtain the first data uploaded by each vehicle device based on the connected network port.
[0040] In one embodiment, the above-mentioned transmission network information may include not only the first Ethernet and the target IP address, but also the source IP address of the vehicle device, the source network port or the destination network port of the target device, etc., without limitation.
[0041] The communication device may pre-store the Internet Protocol Address (IP address) of each vehicle device and the corresponding Ethernet used by the vehicle device. The IP address is used to identify the vehicle device to determine the target device to receive the first data, or to determine the vehicle device to send the first data.
[0042] Therefore, when the vehicle device transmits the first data, it usually needs to carry the target IP address of the target device receiving the first data, so that the communication device can forward the first data to the target device corresponding to the target IP address. Among them, the target device can also be one of the vehicle devices.
[0043] It should be noted that, because the vehicle device needs to use the corresponding Ethernet when transmitting the first data to the communication device, the communication device can directly determine the above transmission network information.
[0044] S202: Determine a second Ethernet used by the target device for data transmission.
[0045] In one embodiment, it has been described above that the communication device may pre-store the Ethernet used by each vehicle device. Therefore, when determining the target device, the second Ethernet may be determined based on the pre-stored association relationship.
[0046] S203: If the first Ethernet is different from the second Ethernet, convert the first data into second data; the second data meets the transmission requirements of the second Ethernet.
[0047] In one embodiment, when the first Ethernet and the second Ethernet are different, the network protocols corresponding to the different Ethernets are usually different. Therefore, the communication device cannot directly send the first data to the target device through the second Ethernet. Based on this, the communication device needs to convert the first data.
[0048] In one embodiment, the above-mentioned conversion of the first data into the second data is specifically converting the first data into the second data satisfying the second Ethernet protocol. The Ethernet protocol can be used to limit information such as the rate, transmission bit rate, and data code structure during data transmission.
[0049] The communication device may parse the first data using the first Ethernet protocol to obtain the valid information to be sent, and then re-encapsulate the valid information using the second Ethernet protocol to obtain the second data.
[0050] For example, when using the Ethernet protocol to send or receive data, the bytes included in the frame structure of the data may be: protocol version (Protocol Version), data type (Message Type), data length (Length), and source address (Request ID) and other bytes, and the data stored in each byte is different.
[0051] In one embodiment, after parsing the above-mentioned multiple information, the communication device may re-encapsulate the data to obtain the second data, so as to meet the transmission requirements of the second Ethernet.
[0052] In another embodiment, when the first Ethernet and the second Ethernet are the same, it can be considered that the vehicle device uploading the first data and the target device both use the same Ethernet. That is, the network port through which the vehicle device uploading the first data and the target device are connected to the communication device is the same. Therefore, the communication device can directly send the first data to the target device based on the network port of the first Ethernet.
[0053] S204: Send the second data to the target device according to the network port of the second Ethernet.
[0054] In one embodiment, the network port has been explained above and will not be described again. After determining the second Ethernet, the communication device may send the second data to the target device through the network port of the second Ethernet.
[0055] In this embodiment, a variety of Ethernet network ports may be pre-integrated on the communication device. Afterwards, when the first data uploaded by any vehicle device is obtained, the first Ethernet used to transmit the first data and the target IP address used to identify the target device to receive the first data are determined. Afterwards, when it is determined that the second Ethernet required to communicate with the target device is different from the first Ethernet, in order to be able to transmit the first data to the target device, the first data can be converted into second data that meets the transmission requirements of the second Ethernet. Then, the second data is sent to the target device through the network port of the second Ethernet. Based on this, when the communication requirements corresponding to multiple vehicle devices are inconsistent, the vehicle devices can also communicate normally to be compatible with the communication requirements between different Ethernets. Furthermore, there is no need to configure corresponding data interaction devices for each vehicle device using different Ethernets, thereby reducing the hardware cost required for the vehicle and the configuration space required.
[0056] In another embodiment, based on the above explanation of the IP address, it can be known that the above IP address can be used to identify the vehicle device. However, the IP address specifically consists of two parts, namely the network segment address and the host address. Among them, the network segment address is used to identify the area where the vehicle device is located. The host address is used to identify the vehicle device in the area. For example, in the same network segment address, multiple vehicle devices can be included, and the host address of each vehicle device is different.
[0057] For example, when the first IP address of the communication device is 192.168.1.x and the second IP address of the vehicle device is 192.168.1.y, it can be considered that the first IP address and the second IP address are both in the same network segment 192.168.1; x and y are the host addresses between the communication device and the vehicle device, respectively, which are used to distinguish the devices in the same network segment. Therefore, x and y are different, and different vehicle devices correspond to different y.
[0058] However, it should be noted that vehicle devices between different network segment addresses will be in different network areas. At this time, when vehicle devices between two different network segment addresses communicate, they need to rely on third-party devices for forwarding. For example, gateway devices. However, when using third-party devices, hardware costs will increase and space in the vehicle will be occupied.
[0059] Based on this, in order to reduce hardware costs and reduce the occupied vehicle space, the communication device can establish a local area network between each sensor device and the communication device in advance based on the first IP address of the communication device and the second IP address of each sensor device; the first IP address and the second IP address are in the same network segment. Afterwards, data interaction is performed with each sensor device based on the local area network and the Ethernet corresponding to each sensor device; the data interaction at least includes obtaining the first data from the sensor device, or sending the second data to the sensor device.
[0060] Based on the above explanation of IP addresses, when setting up sensor devices and communication devices, the first IP address and the second IP address with the same network segment can be used preferentially so that the communication device and the sensor device can communicate only based on the network port corresponding to the Ethernet on the communication device, thereby reducing the required hardware devices (for example, gateway devices), reducing hardware costs and reducing occupied space.
[0061] Among them, a local area network is a computer group composed of multiple computers interconnected in a limited area. Its main characteristics are: it covers a small geographical area, and data is transmitted only within a relatively independent local area. When using the corresponding transmission medium for networking, the data transmission rate is high.
[0062] Therefore, based on the above description, it can be known that the sensor device and the communication device are installed in the same vehicle, so the geographical coverage is small and data transmission is only performed in a relatively independent local range. Furthermore, when the first IP address of the communication device and the second IP address of each sensor device are in the same network segment and in the same local area network, the data transmission rate between each sensor device and the communication device can be further improved on the basis of enabling sensor devices with different second IP addresses to normally exchange data.
[0063] In another embodiment, since the sensor device does not have an Internet access function, when the data collected by the sensor device (such as a video captured by a camera device) needs to be uploaded to an external device, it needs to be implemented through a communication device with an Internet access function. The external device can be a physical device such as a mobile phone or a tablet computer, or a cloud device such as a cloud server or a cloud platform, without limitation.
[0064] However, the data collected by the sensor device is raw data and cannot be directly uploaded by the communication device. Therefore, it needs to be converted by the domain controller. That is, in this embodiment, the domain controller also needs to implement the Internet access function based on the IoT card of the communication device.
[0065] Specifically, for data interaction between the domain controller and the external device, when the communication device receives the first data sent by the domain controller based on the vehicle Ethernet, the first data can be uploaded to the external device based on the Internet of Things card. Alternatively, when the communication device receives the first data based on the Internet of Things card, the network port based on the vehicle Ethernet transmits the first data to the domain controller.
[0066] However, when setting an IoT card on a communication device, there may be a large amount of data traffic. Based on this, when the communication device only uses a single IoT card, it may not be able to meet the data transmission needs between the uplink vehicle device and the downlink vehicle device in the vehicle, which will cause data traffic congestion.
[0067] Based on this, in order to meet the Internet access function of the domain controller and avoid traffic congestion, in this embodiment, the communication device can be equipped with at least two Internet of Things cards. Figure 1 The communication device is provided with sim card 1 and sim card 2, which are respectively IoT card 1 and IoT card 2. The IoT card can support 3G, 4G or 5G communications, which is not limited.
[0068] In addition, in order to avoid poor contact of the plug-in IoT card due to vibration during driving, which would cause the vehicle's network signal to deteriorate, in this embodiment, the communication device can be welded to each IoT card to improve the connection between the IoT card and the communication device.
[0069] The communication device may also have a wireless WiFi function, so that when the external device needs to access the sensor device or the domain controller, the external device can use the wireless WiFi function to wirelessly connect to the communication device when the network ports of the communication device are all occupied, so as to access the sensor device or the domain controller based on the communication device. The external device may be a mobile phone, a tablet computer, an ultra-mobile personal computer (UMPC), etc., which is not limited to this.
[0070] It should be added that when the communication device has two IoT cards, in order to reasonably utilize each IoT card and avoid traffic congestion due to excessive data traffic, in this embodiment, the communication device can determine a target IoT card from at least two IoT cards according to the data type of the received first data; then, the target IoT card is used to send the first data to the external device.
[0071] The above data types include but are not limited to vehicle driving data or vehicle status data, and different IoT cards can be used for data exchange for different data types. That is, the communication device can route the first data to be transmitted to the corresponding target IoT card according to the data type, so as to reasonably select the IoT card to realize data transmission.
[0072] It should be noted that the premise of determining the target IoT card according to the data type is that the network status of at least two IoT cards are in normal state before the target IoT card can be selected. Therefore, when multiple IoT cards may be faulty, the communication device can only use the normal IoT cards to interact with the domain controller and external devices. At this time, in this scenario, if any network status is in an abnormal state, the communication device needs to determine the IoT card corresponding to the normal state as the target IoT card.
[0073] Specifically, when the network status of one of the two IoT cards is in an abnormal state, all data flows between the external device and the domain controller will be interacted through the other IoT card in a normal state. At this time, the IoT card in a normal state is the target IoT card. After the IoT card in an abnormal state returns to normal, the target IoT card is determined based on the data type.
[0074] Furthermore, in this embodiment, the communication device may have two first IP addresses, which may be 192.168.1.x and 192.168.2.x respectively. When interacting with the domain controller, the communication device may select different first IP addresses to obtain first data of different data types. Then, the first data is routed to the corresponding Internet of Things card according to the first IP address used. Alternatively, when the communication device receives the first data from an external device based on Internet of Things card 1 or Internet of Things card 2, the corresponding first IP address may be selected according to the Internet of Things card of the received first data, and the first data may be transmitted to the domain controller.
[0075] Therefore, it can be considered that the communication device pre-establishes a routing relationship between each first IP address and the Internet of Things card.
[0076] Specifically, refer to Figure 3 , Figure 3 This is a schematic diagram of an application scenario in which a communication device and a domain controller perform data interaction in a vehicle data communication method provided by an embodiment of the present application. Among them, the communication device includes two first IP addresses, which can specifically be 192.168.1.x and 192.168.2.x. And, it also includes Internet of Things Card 1 and Internet of Things Card 2. Among them, when the domain controller needs to send the first data to the external device, it is necessary to first transmit the first data to the communication device based on the on-board Ethernet and the first IP address. Then, when the network status of Internet of Things Card 1 and Internet of Things Card 2 are both normal, the communication device can first select the corresponding target Internet of Things Card according to the data type of the first data. Then, the first data is routed to the target Internet of Things Card to transmit the first data to the external device. When the network status of Internet of Things Card 1 or Internet of Things Card 2 is in an abnormal state, the communication device can use the Internet of Things Card with a normal network status to interact with the external device.
[0077] See also Figure 4 , Figure 4 1 is a structural block diagram of a vehicle data communication device provided in an embodiment of the present application. The vehicle data communication device in this embodiment includes modules for executing Figure 2 For details, please refer to the steps in the corresponding embodiment. Figure 2 as well as Figure 2 For the convenience of explanation, only the parts related to this embodiment are shown. Among them, the communication device for vehicle data is applied to the communication device, the communication device integrates multiple Ethernets, and the communication device communicates with the vehicle device through the ports corresponding to the multiple Ethernets; see Figure 4 The vehicle data communication device 400 may include a transmission network information determination module 410, a second Ethernet determination module 420, a conversion module 430 and a second data sending module 440, wherein:
[0078] The transmission network information determination module 410 is used to determine the transmission network information of the transmitting vehicle device when transmitting the first data when the first data uploaded by any vehicle device is obtained; the transmission network information includes the first Ethernet used by the first data and the target IP address; the target IP address is used to identify the target device that needs to receive the first data.
[0079] The second Ethernet determining module 420 is used to determine the second Ethernet used by the target device for data transmission.
[0080] The conversion module 430 is configured to convert the first data into the second data if the first Ethernet is different from the second Ethernet; the second data meets the transmission requirements of the second Ethernet.
[0081] The second data sending module 440 is used to send the second data to the target device according to the network port of the second Ethernet.
[0082] In one embodiment, the vehicle equipment includes a domain controller; the communication device 400 for vehicle data further includes:
[0083] The first data interaction module is used to perform data interaction with the domain controller using the vehicle-mounted Ethernet; the data interaction at least includes obtaining first data from the domain controller, or sending second data to the domain controller.
[0084] In one embodiment, the vehicle device includes a plurality of sensor devices; the communication device 400 for vehicle data further includes:
[0085] The local area network establishment module is used to establish a local area network between each sensor device and the communication device according to the first IP address of the communication device and the second IP address of each sensor device; the first IP address and the second IP address are in the same network segment.
[0086] The second data interaction module is used to perform data interaction with each sensor device based on the local area network and the Ethernet corresponding to each sensor device; the data interaction at least includes obtaining first data from the sensor device, or sending second data to the sensor device.
[0087] In one embodiment, the communication device includes at least two IoT cards, the vehicle device includes a domain controller, and the target device includes an external device; the communication device 400 for vehicle data further includes:
[0088] The first determination module is used to determine a target Internet of Things card from at least two Internet of Things cards according to a data type of the first data.
[0089] The first data sending module is used to send first data to an external device using a target Internet of Things card.
[0090] In one embodiment, the vehicle data communication device 400 further includes:
[0091] The network status determination module is used to determine the network status of each IoT card.
[0092] The second determination module is used to determine a target Internet of Things card from at least two Internet of Things cards according to the data type of the first data if the network status is all in a normal state.
[0093] In one embodiment, the vehicle data communication device 400 further includes:
[0094] The third determination module is used to determine the Internet of Things card corresponding to the normal state as the target Internet of Things card if any network state is in an abnormal state.
[0095] In one embodiment, the vehicle data communication device 400 further includes:
[0096] The data processing module is used for sending the first data to the target device according to the network port of the first Ethernet if the first Ethernet is the same as the second Ethernet.
[0097] When it is understood that Figure 4 In the structural block diagram of the vehicle data communication device shown, each module is used to execute Figure 2 The steps in the corresponding embodiments, and for Figure 2 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figure 2 as well as Figure 2 The relevant descriptions in the corresponding embodiments are not repeated here.
[0098] Figure 5 is a structural block diagram of a communication device provided by an embodiment of the present application. Figure 5 As shown, the communication device 500 of this embodiment includes: a processor 510, a memory 520, and a computer program 530 stored in the memory 520 and executable on the processor 510, such as a program of the vehicle data communication method. When the processor 510 executes the computer program 530, the steps in each embodiment of the vehicle data communication method described above are implemented, such as Figure 1 Alternatively, the processor 510 implements the above when executing the computer program 530 Figure 4 The functions of each module in the corresponding embodiment are, for example, Figure 4 For details on the functions of modules 410 to 440, please refer to Figure 4 Related description in the corresponding embodiment.
[0099] Exemplarily, the computer program 530 may be divided into one or more modules, one or more modules are stored in the memory 520, and are executed by the processor 510 to implement the vehicle data communication method provided in the embodiment of the present application. One or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 530 in the communication device 500. For example, the computer program 530 may implement the vehicle data communication method provided in the embodiment of the present application.
[0100] The communication device 500 may include, but is not limited to, a processor 510 and a memory 520. Those skilled in the art will appreciate that Figure 5 It is only an example of the communication device 500 and does not constitute a limitation of the communication device 500. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the communication device may also include input and output devices, network access devices, buses, etc.
[0101] The processor 510 may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0102] The memory 520 may be an internal storage unit of the communication device 500, such as a hard disk or memory of the communication device 500. The memory 520 may also be an external storage device of the communication device 500, such as a plug-in hard disk, a smart memory card, a flash memory card, etc. equipped on the communication device 500. Furthermore, the memory 520 may also include both an internal storage unit of the communication device 500 and an external storage device.
[0103] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to perform the vehicle data communication method in each of the above embodiments.
[0104] An embodiment of the present application provides a computer program product. When the computer program product is executed on a communication device, the communication device executes the vehicle data communication method in each of the above embodiments.
[0105] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A vehicle data communication method, characterized in that: Applied to a communication device, the communication device integrates multiple Ethernets, and the communication device communicates with vehicle equipment through network ports corresponding to the multiple Ethernets respectively; the method includes: When the first data uploaded by any of the vehicle devices is obtained, transmission network information for transmitting the first data is determined; the transmission network information includes a first Ethernet used by the vehicle device when transmitting the first data and a target IP address; the target IP address is used to identify a target device that needs to receive the first data; Determine a second Ethernet used by the target device for data transmission; If the first Ethernet is different from the second Ethernet, converting the first data into second data; the second data meets the transmission requirements of the second Ethernet; The second data is sent to the target device according to the network port of the second Ethernet.
2. The method according to claim 1, characterized in that: The vehicle device includes a domain controller; the method further includes: The vehicle-mounted Ethernet is used to perform data interaction with the domain controller; the data interaction at least includes obtaining the first data from the domain controller, or sending the second data to the domain controller.
3. The method according to claim 1, characterized in that The vehicle device includes a plurality of sensor devices; the method further includes: According to the first IP address of the communication device and the second IP address of each of the sensor devices, a local area network is established between each of the sensor devices and the communication device; the first IP address and the second IP address are in the same network segment; Data interaction is performed with each sensor device based on the local area network and the Ethernet corresponding to each sensor device; the data interaction at least includes obtaining the first data from the sensor device, or sending the second data to the sensor device.
4. The method according to any one of claims 1 to 3, characterized in that: The communication device includes at least two Internet of Things cards, the vehicle device includes a domain controller, and the target device includes an external device; the method further includes: Determine a target Internet of Things card from at least two of the Internet of Things cards according to the data type of the first data; The target Internet of Things card is used to send the first data to the external device.
5. The method according to claim 4, characterized in that Before determining the target Internet of Things card from the two Internet of Things cards according to the data type of the first data, the method further includes: Determine the network status of each of the IoT cards; If the network states are all in a normal state, a target Internet of Things card is determined from at least two of the Internet of Things cards according to the data type of the first data.
6. The method according to claim 5, characterized in that After determining the network status of each of the IoT cards, the method further includes: If any of the network states is in an abnormal state, the Internet of Things card corresponding to the normal state is determined as the target Internet of Things card.
7. The method according to any one of claims 1 to 3 or 5 or 6, characterized in that: After determining the second Ethernet used by the target device for data transmission, the method further includes: If the first Ethernet is the same as the second Ethernet, the first data is sent to the target device according to the network port of the first Ethernet.
8. A vehicle data communication device, characterized in that: Applied to a communication device, the communication device integrates multiple Ethernets, and the communication device communicates with vehicle equipment through ports corresponding to the multiple Ethernets; the device includes: a transmission network information determination module, used to determine the transmission network information for transmitting the first data when the first data uploaded by any of the vehicle devices is obtained; the transmission network information includes the first Ethernet used by the vehicle device when transmitting the first data and the target IP address; the target IP address is used to identify the target device to receive the first data; A second Ethernet determining module, used to determine a second Ethernet used by the target device for data transmission; a conversion module, configured to convert the first data into second data if the first Ethernet is different from the second Ethernet; the second data meets the transmission requirements of the second Ethernet; The second data sending module is used to send the second data to the target device according to the network port of the second Ethernet.
9. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
