Data communication method, data communication device and readable storage medium

By determining the target gateway and activating the path in the vehicle service architecture, the data communication between the upper computer and the target gateway is solved, and more efficient data transmission is achieved.

CN120455199APending Publication Date: 2025-08-08VOYAH AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510706986.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

The existing vehicle data communication methods have the problem of low data communication efficiency.

Method used

Before the upper computer sends the request instruction to the target node, it determines the target gateway connected to the target node in at least two gateways, and activates the path between the upper computer and the target gateway, and controls the upper computer to send the request instruction to the target gateway. After receiving the request instruction, the target gateway sends the request instruction to the target node.

Benefits of technology

The data communication process between the upper computer and the target node is optimized, data communication errors are avoided, and data communication efficiency of the vehicle service architecture is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455199A_ABST
    Figure CN120455199A_ABST
Patent Text Reader

Abstract

The invention discloses a data communication method, a data communication device and a readable storage medium, and relates to the technical field of new energy automobiles. The data communication method comprises the steps that before an upper computer sends a request instruction to a target node, the target gateway connected with the target node in at least two gateways is determined, a target path between the upper computer and the target gateway is activated, and the target node is a node in at least four nodes; controlling the upper computer to send a request instruction to the target gateway; and under the condition that the target gateway receives the request instruction, controlling the target gateway to send the request instruction to the target node. According to the invention, the data communication efficiency of the vehicle service architecture is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, vehicle data communication typically uses the LIN (Local Interconnect Network) bus. One end of the LIN bus connects to actuators or sensors, and the other end connects to a host computer. The LIN bus utilizes a single-master, multi-slave communication scheme. These actuators and sensors are known as slave nodes, while the host computer is known as the master node. However, existing vehicle data communication methods suffer from technical issues such as low data communication efficiency. Summary of the Invention

[0003] Embodiments of the present application provide a data communication method, a data communication device, and a readable storage medium, which are used to solve technical problems such as low data communication efficiency in the prior art.

[0004] In a first aspect of an embodiment of the present application, a data communication method is provided, which is applied to a vehicle service architecture. The vehicle service architecture includes a host computer, at least two gateways, and at least four nodes. The host computer is connected to a first end of each gateway, and a second end of each gateway is connected to at least two nodes, and each node is connected to only one gateway. The method includes:

[0005] Before the host computer sends a request instruction to the target node, determining a target gateway connected to the target node among the at least two gateways, and activating a path between the host computer and the target gateway, wherein the target node is a node among the at least four nodes;

[0006] Control the host computer to send request instructions to the target gateway;

[0007] When the target gateway receives the request instruction, it controls the target gateway to send the request instruction to the target node.

[0008] In some embodiments, when the target node is the first node, determining a target gateway connected to the target node among the at least two gateways and activating a target path between the host computer and the target gateway includes:

[0009] Determine a first gateway connected to the first node, and use the first gateway as a target gateway;

[0010] Determine a first path between the host computer and the first node, and use the first path as a target path;

[0011] Activate the first pathway.

[0012] In some embodiments, determining a first gateway to which the first node is connected includes:

[0013] Obtain the protocol address and port information corresponding to the first node;

[0014] A first gateway connected to the first node is determined according to the protocol address and port information.

[0015] In some embodiments, activating the first pathway comprises:

[0016] Control the host computer to send an activation instruction to the first gateway;

[0017] When the first gateway receives the activation instruction, the first gateway is controlled to respond to the activation instruction so that the first path is in an activated state.

[0018] In some embodiments, when the request instruction is a first diagnostic request, controlling the host computer to send the request instruction to the target gateway includes:

[0019] Control the host computer to send a handshake instruction to the first gateway;

[0020] Controlling the first gateway to respond to the handshake instruction to establish a vehicle diagnostic protocol between the host computer and the first gateway;

[0021] Based on the vehicle diagnostic protocol, the host computer is controlled to send a first diagnostic request to the first gateway.

[0022] In some embodiments, when the target node includes the second node and the third node, determining a target gateway connected to the target node among the at least two gateways and activating a target path between the host computer and the target gateway includes:

[0023] Determine a second gateway connected to the second node and a third gateway connected to the third node, and use the second gateway and the third gateway as target gateways;

[0024] Determine a second path between the host computer and the second node and a third path between the host computer and the third node, and use the second path and the third path as target paths;

[0025] Activate the second and third pathways respectively.

[0026] In some embodiments, when the request instruction includes the second diagnostic request and the third diagnostic request, controlling the host computer to send the request instruction to the target gateway includes:

[0027] Controlling the host computer to send a second diagnostic request to the second gateway through the second path;

[0028] The host computer is controlled to send a third diagnostic request to the third gateway through the third path.

[0029] In some embodiments, after controlling the target gateway to send a request instruction to the target node, the method further includes:

[0030] When the target node receives the request instruction, controlling the target node to respond to the request instruction to obtain a response result corresponding to the request instruction;

[0031] Control the target node to send a response result to the target gateway;

[0032] When the target gateway receives the response result, it controls the target gateway to send the response result to the host computer.

[0033] In some embodiments, after determining the target gateway connected to the target node among the at least two gateways, the method further includes:

[0034] When the target gateway includes the first gateway and the target node includes the first node, activating a first path between the host computer and the first gateway, and controlling the host computer to send a first diagnostic request to the first gateway, wherein the first node is a node connected to the first gateway;

[0035] When the first gateway receives the first diagnostic request, the first gateway is controlled to send the first diagnostic request to the first node.

[0036] In some embodiments, after controlling the first gateway to send the first diagnostic request to the first node, the method further includes:

[0037] When the first node receives the first diagnostic request, controlling the first node to respond to the first diagnostic request to obtain a first diagnostic result corresponding to the first diagnostic request;

[0038] Controlling the first node to send a first diagnostic result to the first gateway;

[0039] When the first gateway receives the first diagnosis result, the first gateway is controlled to send the first diagnosis result to the host computer.

[0040] In some embodiments, where the target node comprises the first node and the target gateway comprises the first gateway, the method further comprises:

[0041] Obtain the protocol address and port information corresponding to the first node;

[0042] A first gateway connected to the first node is determined according to the protocol address and port information.

[0043] In some embodiments, activating the first path between the host computer and the first gateway includes:

[0044] Control the host computer to send an activation instruction to the first gateway;

[0045] When the first gateway receives the activation instruction, the first gateway is controlled to respond to the activation instruction so that the first path is in an activated state.

[0046] In some embodiments, controlling the host computer to send the first diagnostic request to the first gateway includes:

[0047] Control the host computer to send a handshake instruction to the first gateway;

[0048] Controlling the first gateway to send a response handshake instruction to establish a vehicle diagnostic protocol between the host computer and the first gateway;

[0049] Based on the vehicle diagnostic protocol, the host computer is controlled to send a first diagnostic request to the first gateway.

[0050] In some embodiments, after determining the target gateway connected to the target node among the at least two gateways, the method further includes:

[0051] In a case where the target node includes a first node and a second node, and the target gateway includes a first gateway and a second gateway, activating a first path between the host computer and the first gateway, and activating a second path between the host computer and the second gateway, wherein the second node is a node connected to the second gateway;

[0052] Controlling the host computer to send a first diagnostic request to the first gateway, and controlling the host computer to send a second diagnostic request to the second gateway;

[0053] When the first gateway receives the first diagnostic request and the second gateway receives the second diagnostic request, the first gateway is controlled to send the first diagnostic request to the first node, and the second gateway is controlled to send the second diagnostic request to the second node.

[0054] In some embodiments, after controlling the second gateway to send the second diagnostic request to the second node, the method further includes:

[0055] When the first node receives a first diagnostic request and the second node receives a second diagnostic request, controlling the first node to respond to the first diagnostic request to obtain a first diagnostic result corresponding to the first diagnostic request, and controlling the second node to respond to the second diagnostic request to obtain a second diagnostic result corresponding to the second diagnostic request;

[0056] Controlling the first node to send a first diagnostic result to the first gateway, and controlling the second node to send a second diagnostic result to the second gateway;

[0057] When the first gateway receives the first diagnostic result and the second gateway receives the second diagnostic result, the first gateway is controlled to send the first diagnostic result to the host computer, and the second gateway is controlled to send the second diagnostic result to the host computer.

[0058] The data communication method in this embodiment, when the host computer sends a first diagnostic request to the first node, needs to first activate the path between the host computer and the first gateway, and then control the first gateway to send the first diagnostic request to the first node. This optimizes the data communication process between the host computer and the first node, avoids data communication errors between the host computer and the first node, and thereby improves the data communication efficiency of the vehicle service architecture.

[0059] A second aspect of the present application provides another data communication device, comprising a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, implements the steps of the data communication method described in any of the aforementioned embodiments. Therefore, the data communication device possesses all the advantages of the data communication method described in any of the aforementioned embodiments, and further description thereof is omitted.

[0060] A third aspect of the present application provides a readable storage medium having a program or instructions stored thereon. When executed by a processor, the program or instructions implement the steps of the data communication method described in any of the aforementioned embodiments. Therefore, the readable storage medium possesses all the beneficial effects of the data communication method described in any of the aforementioned embodiments, and further description thereof is omitted. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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 labor.

[0062] Figure 1 A flow chart of a data communication method provided in an embodiment of the present application;

[0063] Figure 2 A block diagram of the functional modules of a data communication device provided in an embodiment of the present application;

[0064] Figure 3 A schematic diagram of the vehicle service architecture provided in an embodiment of the present application;

[0065] Figure 4 A functional diagram of the vehicle service architecture provided in an embodiment of the present application;

[0066] Figure 5 This is a structural block diagram of the data communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to better understand the technical solutions provided by the embodiments of this specification, the technical solutions of the embodiments of this specification are described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of this specification and the specific features in the embodiments are detailed descriptions of the technical solutions of the embodiments of this specification, rather than limitations on the technical solutions of this specification. In the absence of conflict, the embodiments of this specification and the technical features in the embodiments can be combined with each other.

[0068] In this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the statement "comprising a ..." do not exclude the presence of other identical elements in the process, method, article or equipment comprising the elements. The term "two or more" includes two or more than two cases.

[0069] In some embodiments, as Figure 1 As shown, an embodiment of the present application provides a data communication method, including:

[0070] Step S101, before the host computer sends a request instruction to the target node, determining a target gateway connected to the target node among at least two gateways, and activating a target path between the host computer and the target gateway;

[0071] Step S102, controlling the host computer to send a request instruction to the target gateway;

[0072] Step S103: When the target gateway receives the request instruction, the target gateway is controlled to send the request instruction to the target node.

[0073] In this embodiment, a data communication method is proposed, which is applied to a vehicle service architecture, which is a service architecture for detecting and upgrading vehicle software.

[0074] For example, through the vehicle service architecture, software faults in the vehicle can be detected.

[0075] For example, through the vehicle service architecture, the vehicle's software can be upgraded to resolve the vehicle's software faults.

[0076] Specifically, the vehicle service architecture includes a host computer, at least two gateways and at least four nodes. The host computer is connected to the first end of each gateway, and the second end of each gateway is connected to at least two nodes. The host computer refers to a device that can directly issue control commands, the node is a service node inside the vehicle, and the gateway is a communication device used to connect the host computer and the node.

[0077] Exemplarily, the node may be specifically a LIN node.

[0078] Exemplarily, the node may be a vehicle audio control node, and the vehicle audio parameters may be acquired through the audio control node.

[0079] For example, the node may be a throttle control node of a vehicle, and the operating parameters of the vehicle throttle may be obtained through the throttle control node.

[0080] Exemplarily, the node may be a vehicle window control node, through which operating parameters of the vehicle windows may be acquired.

[0081] During a process of performing fault detection on a vehicle, a target node among at least four nodes is determined, wherein the target node is a node among the at least four nodes.

[0082] Exemplarily, the target node may be any one of the at least four nodes.

[0083] Exemplarily, the target node may be two nodes among the at least four nodes. Before the control host computer sends a request instruction to the target node, a target gateway connected to the target node among the at least two gateways is determined based on the target node, wherein the request instruction is an instruction requesting determination of a problem with the target node.

[0084] Exemplarily, the target gateway may be any one of the at least two gateways.

[0085] Exemplarily, the target gateway may be two gateways among the at least two gateways.

[0086] Exemplarily, the request instruction may be an instruction for obtaining operating parameters of the target node.

[0087] Exemplarily, the request instruction may be an instruction for determining a fault type of the target node.

[0088] Exemplarily, the request instruction may be an instruction to upgrade the software corresponding to the target node.

[0089] , activate the target path between the host computer and the target gateway to make the target path in an activated state, wherein the target path is the communication path between the host computer and the target gateway, the target node is the node connected to the target gateway, and the target gateway is the gateway among the at least two gateways.

[0090] Exemplarily, the interface parameters of the target node are acquired, and based on the interface parameters of the target node, the target gateway connected to the target node can be determined.

[0091] For example, when the target channel is in an activated state, it indicates that data communication is possible between the host computer and the target gateway.

[0092] For example, when the host computer needs to perform diagnostic flashing on the target node, a TCP (Transmission Control Protocol, a connection-oriented, reliable, byte stream-based transport layer communication protocol) socket connection can be established between the host computer and the target gateway through the IP address and Port port to activate the target path.

[0093] For example, after the host computer and the target gateway complete the data transmission, the target channel needs to be switched from an active state to a closed state.

[0094] When the target path is in an activated state, the host computer is controlled to send a request instruction to the target gateway, and the target gateway is controlled to receive the request instruction, wherein the request instruction is a diagnostic request sent by the host computer to the target gateway.

[0095] When the target gateway receives the request instruction, it controls the target gateway to send the request instruction to the target node.

[0096] Exemplarily, when the target gateway receives the request instruction, it may perform a traversal query on multiple nodes connected to the target gateway to determine the target node among the multiple nodes.

[0097] It should be noted that, in this embodiment, when the host computer sends a request instruction to the target node, it is necessary to first activate the path between the host computer and the target gateway, and then control the target gateway to send the request instruction to the target node, thereby optimizing the data communication process between the host computer and the target node, avoiding data communication errors between the host computer and the target node, and thereby improving the data communication efficiency of the vehicle service architecture.

[0098] The data communication method in this embodiment optimizes the data communication process between the host computer, multiple gateways and multiple nodes within the vehicle service architecture, thereby improving the data communication efficiency of the vehicle service architecture.

[0099] In some embodiments, embodiments of the present application provide a data communication method that determines a target gateway connected to a target node among at least two gateways and activates a target path between a host computer and the target gateway, including:

[0100] Determine a first gateway connected to the first node, and use the first gateway as a target gateway;

[0101] Determine a first path between the host computer and the first node, and use the first path as a target path;

[0102] Activate the first pathway.

[0103] In this embodiment, when the target node is the first node, the first gateway connected to the first node is determined, and the first gateway is used as the target gateway.

[0104] A first path between the host computer and the first node is determined, the first path is used as a target path, and the first path is activated.

[0105] The first gateway is any one of the at least two gateways, the first node is a node connected to the first gateway, and the first path is a communication path between the host computer and the first gateway.

[0106] Exemplarily, the host computer may include a display, and the first diagnostic result may be displayed on the display.

[0107] In some embodiments, an embodiment of the present application provides a data communication method for determining a first gateway to which a first node is connected, comprising:

[0108] Obtain the protocol address and port information corresponding to the first node;

[0109] A first gateway connected to the first node is determined according to the protocol address and port information.

[0110] In this embodiment, the physical parameters of the first node are acquired to obtain the protocol address and port information corresponding to the first node, wherein the protocol address is the address information of the first node, and the port information is the information of the connection port in the first node.

[0111] Exemplarily, the protocol address may specifically be an IP address.

[0112] For example, the port information may specifically be parameter information of the port.

[0113] Based on the protocol address and port information, parameter query is performed on multiple gateways to determine a first gateway connected to the first node.

[0114] In some embodiments, an embodiment of the present application provides a data communication method for activating a first path between a host computer and a first gateway, comprising:

[0115] Control the host computer to send an activation instruction to the first gateway;

[0116] When the first gateway receives the activation instruction, the first gateway is controlled to respond to the activation instruction so that the first path is in an activated state.

[0117] In this embodiment, the host computer is controlled to send an activation instruction to the first gateway, wherein the activation instruction is an instruction to activate the first path.

[0118] Exemplarily, the host computer may be controlled to periodically and continuously send activation instructions to the first gateway.

[0119] When the first gateway receives the activation instruction, the first gateway is controlled to respond to the activation instruction so that the first path between the host computer and the first gateway is in an activated state.

[0120] In some embodiments, an embodiment of the present application provides a data communication method for controlling a host computer to send a first diagnostic request to a first gateway, including:

[0121] Control the host computer to send a handshake instruction to the first gateway;

[0122] Controlling the first gateway to send a response handshake instruction to establish a vehicle diagnostic protocol between the host computer and the first gateway;

[0123] Based on the vehicle diagnostic protocol, the host computer is controlled to send a first diagnostic request to the first gateway.

[0124] In this embodiment, when the request instruction is a first diagnostic request, the host computer is controlled to send a handshake instruction to the first gateway, wherein the first diagnostic request is a diagnostic request sent by the host computer to the first gateway, and the handshake instruction is an instruction to control the host computer and the first gateway to complete the handshake.

[0125] Exemplarily, the host computer may be controlled to periodically send handshake instructions to the first gateway.

[0126] Exemplarily, the first diagnostic request may be a request instruction for obtaining operating parameters of the first node.

[0127] Exemplarily, the first diagnostic request may be a request instruction to determine a fault type of the first node.

[0128] Exemplarily, the first diagnostic request may be a request instruction to upgrade software corresponding to the first node.

[0129] When the first gateway receives the handshake instruction, the first gateway is controlled to respond to the handshake instruction to establish a vehicle diagnostic protocol between the host computer and the first gateway, wherein the vehicle diagnostic protocol is a communication connection protocol between the host computer and the first gateway.

[0130] Exemplarily, the vehicle diagnostic protocol may be a DoIP (Diagnostic Communication over Internet Protocol, an IP network-based automobile diagnostic protocol) protocol.

[0131] Based on the vehicle diagnostic protocol, the host computer is controlled to send a first diagnostic request to the first gateway.

[0132] For example, after the DoIP connection is completed, the host computer may inform the first gateway of the object that needs to be diagnosed and flashed through the target logical address, thereby sending a diagnostic flash request to the LIN node under the first gateway.

[0133] For example, in order to achieve accurate addressing of diagnostic flash objects during protocol conversion, the gateway needs to implement a mapping relationship between the target logical address of DoIP and the NAD (an identification code) of DoLIN. The gateway can send a request to the LIN node with the correct NAD based on the target logical address information attached to the DoIP request sent by the host computer. At the same time, the gateway can also send a response to the host computer with the correct DoIP logical address based on the NAD sent by the LIN node.

[0134] In some embodiments, determining a target gateway connected to a target node among at least two gateways and activating a target path between a host computer and the target gateway includes:

[0135] Determine a second gateway connected to the second node and a third gateway connected to the third node, and use the second gateway and the third gateway as target gateways;

[0136] Determine a second path between the host computer and the second node and a third path between the host computer and the third node, and use the second path and the third path as target paths;

[0137] Activate the second and third pathways respectively.

[0138] In this embodiment, when the target node includes the second node and the third node, the second gateway connected to the second node and the third gateway connected to the third node are respectively determined, and the second gateway and the third gateway are used as the target gateways.

[0139] The second path between the host computer and the second node and the third path between the host computer and the third node are respectively determined, and the second path and the third path are taken as target paths, thereby activating the second path and the third path.

[0140] The second path is a communication path between the host computer and the second gateway, and the second node is a node connected to the second gateway.

[0141] The third path is a communication path between the host computer and the third gateway, and the third node is a node connected to the third gateway.

[0142] For example, the host computer in this example can send instructions to different nodes in different branches at the same time.

[0143] Exemplarily, the second node is any one of a plurality of nodes connected to the second gateway.

[0144] Exemplarily, the third node is any one of a plurality of nodes connected to the third gateway.

[0145] Exemplarily, the activation instruction is sent to the second gateway and the third gateway at the same time, so that both the second path and the third path are in an activated state.

[0146] It should be noted that the vehicle service architecture of this embodiment can send diagnostic requests to nodes under multiple different gateways at the same time, thereby realizing fault diagnosis of nodes under multiple different gateways at the same time, so as to improve the fault diagnosis efficiency of the vehicle service architecture.

[0147] In some embodiments, controlling the host computer to send a request instruction to the target gateway includes:

[0148] Controlling the host computer to send a second diagnostic request to the second gateway through the second path;

[0149] The host computer is controlled to send a third diagnostic request to the third gateway through the third path.

[0150] In this embodiment, when the request instruction includes the second diagnostic request and the third diagnostic request, the host computer is controlled to send the second diagnostic request to the second gateway through the second path.

[0151] At the same time, the host computer is controlled to send a third diagnostic request to the third gateway through the third path.

[0152] The second diagnostic request is a diagnostic request sent to the second node, and the third diagnostic request is a diagnostic request sent to the third node.

[0153] Exemplarily, a vehicle diagnostic protocol is established between the host computer and the second gateway and the third gateway respectively. After the vehicle diagnostic protocol is established, the host computer is controlled to send a second diagnostic request and a third diagnostic request to the second gateway and the third gateway respectively.

[0154] In some embodiments, after controlling the target gateway to send a request instruction to the target node, the method further includes:

[0155] When the target node receives the request instruction, controlling the target node to respond to the request instruction to obtain a response result corresponding to the request instruction;

[0156] Control the target node to send a response result to the target gateway;

[0157] When the target gateway receives the response result, it controls the target gateway to send the response result to the host computer.

[0158] In this embodiment, when the target node receives the request instruction, the target node is controlled to respond to the request instruction to obtain a response result corresponding to the request instruction, wherein the response result is a result obtained after the target node responds to the request instruction.

[0159] Exemplarily, when the request instruction is a request instruction for obtaining operating parameters of the target node, the response result is the obtained operating parameters.

[0160] Exemplarily, when the request instruction is a request instruction for determining the fault type of the target node, the response result is a predicted result of the fault type.

[0161] Exemplarily, when the request instruction is a request instruction to upgrade the software corresponding to the target node, the response result is the upgraded software version.

[0162] Control the target node to send a response result to the target gateway, and control the target gateway to receive the response result.

[0163] When the target gateway receives the response result, it controls the target gateway to send the response result to the host computer.

[0164] Exemplarily, the request instruction may be a first diagnostic request, and the response result may specifically be a first diagnostic result, wherein the first diagnostic result is a data result obtained after the first node executes the first diagnostic request.

[0165] When the first path is in an activated state, the host computer is controlled to send a first diagnostic request to the first gateway, and the first gateway is controlled to receive the first diagnostic request.

[0166] When the first gateway receives the first diagnostic request, the first gateway is controlled to send the first diagnostic request to the first node.

[0167] For example, when the first gateway receives the first diagnosis request, a traversal query may be performed on multiple nodes connected to the first gateway to determine a first node among the multiple nodes.

[0168] Exemplarily, after controlling the first gateway to send the first diagnostic request to the first node, controlling the first node to receive the first diagnostic request.

[0169] When the first node receives the first diagnostic request, the first node is controlled to respond to the first diagnostic request to obtain a first diagnostic result corresponding to the first diagnostic request.

[0170] Exemplarily, when the first diagnostic request is a request instruction for obtaining operating parameters of the first node, the first diagnostic result is the obtained operating parameters.

[0171] Exemplarily, when the first diagnostic request is a request instruction to determine the fault type of the first node, the first diagnostic result is a predicted result of the fault type.

[0172] Exemplarily, when the first diagnostic request is a request instruction to upgrade the software corresponding to the first node, the first diagnostic result is the upgraded software version.

[0173] The first node is controlled to send a first diagnosis result to the first gateway, and the first gateway is controlled to receive the first diagnosis result.

[0174] When the first gateway receives the first diagnosis result, the first gateway is controlled to send the first diagnosis result to the host computer.

[0175] For example, after the host computer receives the first diagnostic result, it may perform fault analysis on the first diagnostic result to determine whether the first node has a fault or an abnormality.

[0176] Exemplarily, the request instruction may include a second diagnostic request and a third diagnostic request, and the response result may correspondingly include the second diagnostic result and the third diagnostic result, wherein the second diagnostic result is the data result obtained after the second node executes the second diagnostic request, and the third diagnostic result is the data result obtained after the third node executes the third diagnostic request. Exemplarily, when the second and third pathways are activated, the host computer is controlled to send the second diagnostic request to the second gateway, and the host computer is controlled to send the third diagnostic request to the third gateway.

[0177] The second gateway is controlled to receive the second diagnostic request, and the third gateway is controlled to receive the third diagnostic request.

[0178] When the second gateway receives the second diagnostic request and the third gateway receives the third diagnostic request, the second gateway is controlled to send the second diagnostic request to the second node, and the third gateway is controlled to send the third diagnostic request to the third node.

[0179] Exemplarily, the second node is controlled to receive the second diagnostic request, and the third node is controlled to receive the third diagnostic request.

[0180] When the second node receives the second diagnostic request and the third node receives the third diagnostic request, the second node is controlled to respond to the second diagnostic request to obtain a second diagnostic result corresponding to the second diagnostic request, and the third node is controlled to respond to the third diagnostic request to obtain a third diagnostic result corresponding to the third diagnostic request.

[0181] The second node is controlled to send the second diagnostic result to the second gateway, and the third node is controlled to send the third diagnostic result to the third gateway.

[0182] The second gateway is controlled to receive the second diagnosis result, and the third gateway is controlled to receive the third diagnosis result.

[0183] When the second gateway receives the second diagnostic result and the third gateway receives the third diagnostic result, the second gateway is controlled to send the second diagnostic result to the host computer, and the third gateway is controlled to send the third diagnostic result to the host computer.

[0184] For example, the host computer may analyze and process the second diagnosis result and the third diagnosis result at the same time, and display the second diagnosis result and the third diagnosis result at the same time.

[0185] In some embodiments, as Figure 2 As shown, an embodiment of the present application provides a data communication device 800, including:

[0186] The processing unit 802 is configured to determine a target gateway connected to the target node among the at least two gateways and activate a target path between the host computer and the target gateway before the host computer sends a request instruction to the target node, wherein the target node is a node among the at least four nodes;

[0187] The control unit 804 is used to control the host computer to send a request instruction to the target gateway;

[0188] The control unit 804 is further configured to control the target gateway to send a request instruction to the target node when the target gateway receives the request instruction.

[0189] In this embodiment, a data communication device 800 is proposed, which is applied to a vehicle service architecture, which is a service architecture for detecting and upgrading vehicle software.

[0190] For example, through the vehicle service architecture, software faults in the vehicle can be detected.

[0191] For example, through the vehicle service architecture, the vehicle's software can be upgraded to resolve the vehicle's software faults.

[0192] Specifically, the vehicle service architecture includes a host computer, at least two gateways and at least four nodes. The host computer is connected to the first end of each gateway, and the second end of each gateway is connected to at least two nodes. The host computer refers to a device that can directly issue control commands, the node is a service node inside the vehicle, and the gateway is a communication device used to connect the host computer and the node.

[0193] Exemplarily, the node may be specifically a LIN node.

[0194] Exemplarily, the node may be a vehicle audio control node, and the vehicle audio parameters may be acquired through the audio control node.

[0195] For example, the node may be a throttle control node of a vehicle, and the operating parameters of the vehicle throttle may be obtained through the throttle control node.

[0196] Exemplarily, the node may be a vehicle window control node, through which operating parameters of the vehicle windows may be acquired.

[0197] During a process of performing fault detection on a vehicle, a target node among at least four nodes is determined, wherein the target node is a node among the at least four nodes.

[0198] Exemplarily, the target node may be any one of the at least four nodes.

[0199] Exemplarily, the target nodes may be two nodes among the at least four nodes.

[0200] Before the host computer is controlled to send a request instruction to the target node, a target gateway connected to the target node among at least two gateways is determined based on the target node, wherein the request instruction is an instruction requesting determination of a problem with the target node.

[0201] Exemplarily, the target gateway may be any one of the at least two gateways.

[0202] Exemplarily, the target gateway may be two gateways among the at least two gateways.

[0203] When the target node includes the target node and the target gateway includes the target gateway, activation connection processing is performed on the target path to put the target path into an activated state, wherein the target path is a communication path between the host computer and the target gateway, the target node is a node connected to the target gateway, and the target gateway is any gateway of at least two gateways.

[0204] Exemplarily, the interface parameters of the target node are acquired, and based on the interface parameters of the target node, the target gateway connected to the target node can be determined.

[0205] For example, when the target channel is in an activated state, it indicates that data communication is possible between the host computer and the target gateway.

[0206] For example, when the host computer needs to perform diagnostic flashing on the target node, a TCP (Transmission Control Protocol, a connection-oriented, reliable, byte stream-based transport layer communication protocol) socket connection can be established between the host computer and the target gateway through the IP address and Port port to activate the target path.

[0207] For example, after the host computer and the target gateway complete the data transmission, the target channel needs to be switched from an active state to a closed state.

[0208] When the target path is in an activated state, the host computer is controlled to send a request instruction to the target gateway, and the target gateway is controlled to receive the request instruction, wherein the request instruction is a diagnostic request sent by the host computer to the target gateway.

[0209] Exemplarily, the request instruction may be a request instruction for obtaining operating parameters of a target node.

[0210] Exemplarily, the request instruction may be a request instruction for determining a fault type of the target node.

[0211] Exemplarily, the request instruction may be a request instruction for upgrading software corresponding to the target node.

[0212] When the target gateway receives the request instruction, it controls the target gateway to send the request instruction to the target node.

[0213] Exemplarily, when the target gateway receives the request instruction, it may perform a traversal query on multiple nodes connected to the target gateway to determine the target node among the multiple nodes.

[0214] It should be noted that, in this embodiment, when the host computer sends a request instruction to the target node, it is necessary to first activate the path between the host computer and the target gateway, and then control the target gateway to send the request instruction to the target node, thereby optimizing the data communication process between the host computer and the target node, avoiding data communication errors between the host computer and the target node, and thereby improving the data communication efficiency of the vehicle service architecture.

[0215] For example, the structure of the vehicle service architecture is as follows Figure 3 As shown, the host computer is connected to gateway 1, gateway 2, and gateway 3 via Ethernet physical links, and each gateway is connected to node 1, node 2, and node 3 via LIN physical links.

[0216] For example, Figure 4 As shown, the UDS (Unified Diagnostic Services) protocol based on DoIP is used between the host computer and the gateway, and the UDS protocol based on DoLIN (LIN bus communication protocol) is used between the gateway and the node.

[0217] The process is divided into two parts: step 1 and step 2. Step 1 realizes the activation of the DoIP connection between the host computer and the gateway. Specifically, in step 1, a TCP link can be established between the host computer and the gateway, and the routing activation between the host computer and the gateway can be completed to realize data communication between the host computer and the gateway.

[0218] Step 2 implements the UDS diagnostic flashing of the node. Specifically, the request instruction can be a UDS diagnostic request based on DoIP. When the host computer sends the UDS diagnostic request to the target node, when the target gateway receives the UDS diagnostic request, the target gateway replies with the DoIP confirmation character (ACK) to the host computer and forwards the UDS diagnostic request based on DoLIN to the target node according to NAD.

[0219] When the target node receives the UDS diagnostic request based on DoIP, the target node may send a UDS diagnostic response based on DoLIN to the target gateway.

[0220] When the target gateway receives the UDS diagnostic response based on DoLIN, the target gateway may send the UDS diagnostic response based on DoIP to the host computer, so that the host computer processes the data of the UDS diagnostic response.

[0221] In addition, after the host computer diagnosis is completed, the TCP link between the host computer and the target gateway needs to be closed.

[0222] The data communication device 800 in this embodiment optimizes the data communication process between the host computer, multiple gateways and multiple nodes within the vehicle service architecture, thereby improving the data communication efficiency of the vehicle service architecture.

[0223] In some embodiments, an embodiment of the present application provides a data communication device 800, including:

[0224] The control unit 804 is further configured to determine a first gateway connected to the first node and use the first gateway as a target gateway;

[0225] The control unit 804 is further configured to determine a first path between the host computer and the first node, and use the first path as a target path;

[0226] The control unit 804 is further configured to activate the first path.

[0227] In some embodiments, an embodiment of the present application provides a data communication device 800, including:

[0228] The control unit 804 is further configured to obtain the protocol address and port information corresponding to the first node;

[0229] The control unit 804 is further configured to determine a first gateway connected to the first node according to the protocol address and port information.

[0230] In some embodiments, an embodiment of the present application provides a data communication device 800, including:

[0231] The control unit 804 is further configured to control the host computer to send an activation instruction to the first gateway;

[0232] The control unit 804 is further configured to control the first gateway to respond to the activation instruction when the first gateway receives the activation instruction, so as to activate the first path.

[0233] In some embodiments, an embodiment of the present application provides a data communication device 800, including:

[0234] The control unit 804 is further configured to control the host computer to send a handshake instruction to the first gateway;

[0235] The control unit 804 is further configured to control the first gateway to respond to the handshake instruction to establish a vehicle diagnostic protocol between the host computer and the first gateway;

[0236] The control unit 804 is further configured to control the host computer to send a first diagnostic request to the first gateway based on the vehicle diagnostic protocol.

[0237] In some embodiments, an embodiment of the present application provides a data communication device 800, including:

[0238] The control unit 804 is further configured to determine a second gateway connected to the second node and a third gateway connected to the third node, and use the second gateway and the third gateway as target gateways;

[0239] The control unit 804 is further configured to determine a second path between the host computer and the second node and a third path between the host computer and the third node, and use the second path and the third path as target paths;

[0240] The control unit 804 is further configured to activate the second path and the third path respectively.

[0241] In some embodiments, an embodiment of the present application provides a data communication device 800, including:

[0242] The control unit 804 is further configured to control the host computer to send a second diagnostic request to the second gateway via the second path;

[0243] The control unit 804 is further configured to control the host computer to send a third diagnostic request to the third gateway via a third path.

[0244] In some embodiments, an embodiment of the present application provides a data communication device 800, including:

[0245] The control unit 804 is further configured to control the target node to respond to the request instruction when the target node receives the request instruction, so as to obtain a response result corresponding to the request instruction;

[0246] The control unit 804 is further configured to control the target node to send a response result to the target gateway;

[0247] The control unit 804 is further configured to control the target gateway to send a response result to the host computer when the target gateway receives the response result.

[0248] In some embodiments, as Figure 5 As shown, a data communication device 900 is provided. The data communication device 900 includes a processor 902 and a memory 904. The memory 904 stores a computer program. When the computer program is executed by the processor 902, the steps of the data communication method described in any of the above embodiments are implemented. Therefore, the data communication device 900 has all the advantages of the data communication method described in any of the above embodiments, and no further details are given here.

[0249] In some embodiments, a readable storage medium is provided on which a program is stored. When the program is executed by a processor, the steps of the data communication method in any of the above embodiments are implemented, thereby having all the beneficial technical effects of the data communication method in any of the above embodiments.

[0250] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0251] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-readable program code.

[0252] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0253] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0254] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0255] An embodiment of the present application further provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device executes the process of the data communication method.

[0256] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)).

[0257] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0258] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0259] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0260] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0261] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0262] 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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.

[0263] Although the preferred embodiments of this specification have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of this specification.

[0264] Obviously, those skilled in the art may make various changes and modifications to this specification without departing from the spirit and scope of this specification. Thus, if such changes and modifications fall within the scope of the claims of this specification and their equivalents, this specification is intended to include such changes and modifications.

Claims

1. A data communication method, characterized in that: Applied to a vehicle service architecture, the vehicle service architecture includes a host computer, at least two gateways, and at least four nodes, the host computer is connected to a first end of each gateway, the second end of each gateway is connected to at least two nodes, and each node is connected to only one gateway, the method includes: Before the host computer sends a request instruction to the target node, determining a target gateway connected to the target node among the at least two gateways, and activating a target path between the host computer and the target gateway, wherein the target node is a node among the at least four nodes; Controlling the host computer to send the request instruction to the target gateway; When the target gateway receives the request instruction, the target gateway is controlled to send the request instruction to the target node.

2. The method according to claim 1, characterized in that When the target node is the first node, determining a target gateway connected to the target node among the at least two gateways and activating a target path between the host computer and the target gateway includes: Determine a first gateway connected to the first node, and use the first gateway as the target gateway; Determine a first path between the host computer and the first node, and use the first path as the target path; Activate the first pathway.

3. The method according to claim 2, characterized in that The determining the first gateway connected to the first node includes: Obtaining the protocol address and port information corresponding to the first node; The first gateway connected to the first node is determined according to the protocol address and the port information.

4. The method according to claim 2, characterized in that The activating the first pathway comprises: Controlling the host computer to send an activation instruction to the first gateway; When the first gateway receives the activation instruction, the first gateway is controlled to respond to the activation instruction so that the first path is in the activation state.

5. The method according to claim 2, characterized in that When the request instruction is a first diagnostic request, controlling the host computer to send the request instruction to the target gateway includes: Controlling the host computer to send a handshake instruction to the first gateway; controlling the first gateway to respond to the handshake instruction to establish a vehicle diagnostic protocol between the host computer and the first gateway; Based on the vehicle diagnostic protocol, the host computer is controlled to send the first diagnostic request to the first gateway.

6. The method according to claim 1, characterized in that When the target node includes a second node and a third node, determining a target gateway connected to the target node among the at least two gateways and activating a target path between the host computer and the target gateway includes: Determine a second gateway connected to the second node and a third gateway connected to the third node, and use the second gateway and the third gateway as the target gateways; Determine a second path between the host computer and the second node and a third path between the host computer and the third node, and use the second path and the third path as the target path; The second path and the third path are activated respectively.

7. The method according to claim 6, characterized in that When the request instruction includes the second diagnostic request and the third diagnostic request, controlling the host computer to send the request instruction to the target gateway includes: Controlling the host computer to send the second diagnostic request to the second gateway through the second path; The host computer is controlled to send the third diagnostic request to the third gateway through the third path.

8. The method according to any one of claims 1 to 6, characterized in that After controlling the target gateway to send the request instruction to the target node, the method further includes: When the target node receives the request instruction, controlling the target node to respond to the request instruction to obtain a response result corresponding to the request instruction; Controlling the target node to send the response result to the target gateway; When the target gateway receives the response result, the target gateway is controlled to send the response result to the host computer.

9. A data communication device, characterized in that: include: processor; A memory, wherein a program or instruction is stored in the memory, and when the processor executes the program or instruction in the memory, the steps of the data communication method according to any one of claims 1 to 8 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the data communication method according to any one of claims 1 to 8 are implemented.