A remote diagnosis method, device and related equipment

By parsing UDP messages to obtain IP addresses and establishing independent data transmission channels, it solves the problem that vehicles with multiple IP addresses cannot be diagnosed in existing DOIP remote diagnosis, realizes multi-channel parallel data interaction, and improves the diagnosis success rate and efficiency.

CN114979239BActive Publication Date: 2024-09-10LAUNCH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210570092.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2024-09-10
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

The existing DOIP remote diagnosis can only support one IP address, causing multiple electronic control units on the vehicle to be unable to perform diagnosis at the same time, resulting in diagnosis failure.

Method used

Obtain the IP address by parsing the UDP message sent by the diagnostic device, determine the data transmission channel, and establish an independent data transmission channel for each electronic control unit to achieve multi-channel parallel data interaction.

Benefits of technology

It realizes that each channel between the vehicle and the diagnostic equipment transmits data of one IP address, solves the problem that vehicles with multiple IP addresses cannot perform remote diagnosis, and improves the diagnosis success rate and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114979239B
    Figure CN114979239B
Patent Text Reader

Abstract

The embodiment of the present application discloses a remote diagnosis method, apparatus, device and storage medium. The method of the embodiment of the present application includes: obtaining a first UDP message sent by the diagnostic device through the server; parsing the first UDP message to obtain a corresponding first IP address; determining a corresponding first data transmission channel according to the first IP address; sending the first UDP message to the electronic control unit corresponding to the first IP address on the vehicle through the first data transmission channel. Therefore, through the remote diagnosis method of the embodiment of the present application, the IP address can be obtained by parsing the UDP message sent by the diagnostic device through the server, so that the data transmission channel between the vehicle and the client can be determined according to the IP address, so that each channel between the vehicle and the diagnostic device transmits data of one IP address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular to a remote diagnosis method, apparatus, and related equipment. Background Art

[0002] With the development of in-vehicle Ethernet technology and the gradual maturity of 5G technology, the use of diagnostic over internet protocol (DOIP) to achieve remote real-time diagnosis of vehicles will greatly reduce the number and time of vehicle returns to the factory. In fact, users and car manufacturers can obtain the real-time status of the vehicle at any time and place. If there is a fault that endangers driving safety, it will be fed back to the user in a timely manner for safety protection; at the same time, it also provides the most timely and effective data for car manufacturers' return to the factory for maintenance.

[0003] However, the existing DOIP remote diagnosis has the disadvantage of only supporting one Internet Protocol (IP), which makes it impossible to perform DOIP remote diagnosis on some vehicles. For example, there are many car models, and there will be multiple electronic control units (ECUs) on the vehicle side communicating with the diagnostic equipment at the same time. Each ECU has an independent network card and an independent IP address. The diagnostic equipment will establish multiple connections and communicate with different ECUs in parallel. However, through this method, only data from one IP address can be forwarded at the same time. If there are multiple IP addresses on the vehicle side, the diagnostic equipment cannot simulate it, resulting in diagnostic failure. Summary of the invention

[0004] The embodiment of the present application provides a remote diagnosis method for realizing multi-channel parallel data interaction.

[0005] A first aspect of an embodiment of the present application provides a remote diagnosis method, which is applied to a client in a remote diagnosis system; the client is respectively connected to a vehicle and a server, and the server is connected to a diagnosis device; the method comprises:

[0006] Obtaining a first UDP message sent by the diagnostic device through the server;

[0007] Parsing the first UDP message to obtain a corresponding first IP address;

[0008] Determine a corresponding first data transmission channel according to the first IP address;

[0009] The first UDP message is sent to the electronic control unit corresponding to the first IP address on the vehicle through the first data transmission channel.

[0010] Optionally, the method further comprises:

[0011] Obtaining a second UDP message broadcast by the vehicle;

[0012] Parsing the second UDP message to obtain a corresponding second IP address;

[0013] If the second IP address is a newly added IP address, a second data transmission channel is created between the electronic control units corresponding to the second IP address.

[0014] Optionally, after creating the second data transmission channel, the method further includes:

[0015] The second UDP message and the corresponding identification number of the second data transmission channel are sent to the server.

[0016] Optionally, before obtaining the second UDP message broadcast by the vehicle, the method further includes:

[0017] Detect whether the network of the network diagnostic protocol DOIP of the vehicle is connected, and if so, execute the step of obtaining the second UDP message broadcast by the vehicle.

[0018] A second aspect of the embodiment of the present application provides a remote diagnosis method, which is applied to a server in a remote diagnosis system; the server is respectively connected to a diagnosis device and a client, and the client is connected to a vehicle; the method includes:

[0019] Acquire a third User Datagram Protocol UDP message sent by the vehicle through the client;

[0020] Parsing the third UDP message to obtain a corresponding third IP address;

[0021] Determine a corresponding third data transmission channel according to the third IP address;

[0022] The third UDP message is sent to the diagnostic device through the third data transmission channel to achieve data interaction between the vehicle and the diagnostic device.

[0023] Optionally, the method further comprises:

[0024] Receive a second UDP message and an identification number sent by the client;

[0025] If the target identification number is a newly added identification number, a second data transmission channel corresponding to the newly added identification number is established between the diagnostic device.

[0026] Optionally, the step of creating a second data transmission channel corresponding to the newly added identification number with the diagnostic device includes:

[0027] Create a virtual network card;

[0028] Broadcast the second UDP message through the virtual network card;

[0029] Receiving a socket connection request sent by the diagnostic device based on the second IP address carried in the second UDP message;

[0030] A second data transmission channel is established with the diagnostic device based on the socket connection request.

[0031] A third aspect of the embodiment of the present application provides a remote diagnosis device, applied to a client, including:

[0032] An acquiring unit, configured to acquire a first UDP message sent by the diagnostic device through the server;

[0033] A parsing unit, configured to parse the first UDP message to obtain a corresponding first IP address;

[0034] A determining unit, configured to determine a corresponding first data transmission channel according to the first IP address;

[0035] A sending unit is used to send the first UDP message to the electronic control unit corresponding to the first IP address on the vehicle through the first data transmission channel.

[0036] Optionally, the device further includes: a creating unit.

[0037] The acquisition unit is further used to acquire the second UDP message broadcast by the vehicle;

[0038] The parsing unit is further used to parse the second UDP message to obtain the corresponding second IP address;

[0039] The creation unit is used to create a second data transmission channel between the electronic control unit corresponding to the second IP address when the second IP address is a newly added IP address.

[0040] Optionally,

[0041] The sending unit is further used to send the second UDP message and the corresponding identification number of the second data transmission channel to the server.

[0042] Optionally, the device further comprises a detection unit.

[0043] The detection unit is used to detect whether the network of the network diagnostic protocol DOIP of the vehicle is connected, and if so, execute the step of obtaining the second UDP message broadcast by the vehicle.

[0044] A remote diagnostic device provided in a third aspect of an embodiment of the present application is used to execute the method described in the first aspect.

[0045] A fourth aspect of the embodiments of the present application provides a remote diagnosis device, which is applied to a server, including:

[0046] An acquiring unit, configured to acquire a third User Datagram Protocol UDP message sent by the vehicle through the client;

[0047] A parsing unit, configured to parse the third UDP message to obtain a corresponding third IP address;

[0048] A determining unit, configured to determine a corresponding third data transmission channel according to the third IP address;

[0049] A sending unit is used to send the third UDP message to the diagnostic device through the third data transmission channel to achieve data interaction between the vehicle and the diagnostic device.

[0050] Optionally, the device further includes: a receiving unit and a creating unit.

[0051] The receiving unit is used to receive the second UDP message and the identification number sent by the client;

[0052] The creation unit is used to create a second data transmission channel corresponding to the newly added identification number between the diagnostic device and the target identification number when the target identification number is a newly added identification number.

[0053] Optionally, the device further includes a broadcasting unit and an establishing unit.

[0054] The creation unit is specifically used to create a virtual network card;

[0055] The broadcast unit is used to broadcast the second UDP message through the virtual network card;

[0056] The receiving unit is specifically configured to receive a socket connection request sent by the diagnostic device based on the second IP address carried in the second UDP message;

[0057] The establishing unit is used to establish a second data transmission channel with the diagnostic device based on the socket connection request.

[0058] A fourth aspect of an embodiment of the present application provides a remote diagnostic device for executing the method described in the second aspect.

[0059] A fifth aspect of the embodiments of the present application provides a remote diagnosis device, including:

[0060] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0061] The memory is a short-term storage memory or a persistent storage memory;

[0062] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method described in any one of the first aspect or the second aspect.

[0063] A sixth aspect of an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes instructions, and when the instructions are executed on a computer, the computer executes the method described in any one of the first aspect or the second aspect.

[0064] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0065] The embodiment of the present application proposes a remote diagnosis method, which can parse the UDP message sent by the diagnostic device to the client through the server, so as to obtain the IP address, and thus determine the data transmission channel between the vehicle and the client according to the IP address. In the present application, different electronic control units in the client and the vehicle are provided with different data transmission channels, and each electronic control unit corresponds to a data transmission channel, so that each channel between the vehicle and the diagnostic device transmits data of an IP address, and different channels do not affect each other. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0067] Figure 1 A schematic diagram of a device architecture of a remote diagnosis method disclosed in an embodiment of the present application;

[0068] Figure 2 An interactive flow chart of a remote diagnosis method disclosed in an embodiment of the present application;

[0069] Figure 3 An interactive flow chart of another remote diagnosis method disclosed in an embodiment of the present application;

[0070] Figure 4 A schematic diagram of the structure of a remote diagnosis device disclosed in an embodiment of the present application;

[0071] Figure 5 A schematic diagram of the structure of another remote diagnosis device disclosed in an embodiment of the present application;

[0072] Figure 6 A schematic diagram of the structure of a remote diagnostic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0074] The embodiment of the present application provides a remote diagnosis method for realizing multi-channel parallel data interaction.

[0075] This method aims to solve the problem that the existing DOIP remote diagnosis can only support one IP, which makes it impossible to perform DOIP remote diagnosis on some vehicles. For example, many models of a certain car manufacturer will have multiple ECUs communicating with the diagnostic equipment at the same time on the vehicle side. Each ECU has an independent network card and an independent IP address. The diagnostic equipment will establish multiple socket connections and communicate with different ECUs in parallel. Among them, DOIP is a diagnostic method based on the IP protocol, that is, a method of performing vehicle diagnosis based on the unified diagnostic services (UDS) through the transmission control protocol (TCP) or IP and Ethernet.

[0076] It is important to understand that ECU, in Chinese, is generally called computer control module, or electronic control unit, commonly known as driving computer, on-board computer, etc. ECU can be said to be one of the core electronic components of modern cars. For example, the ECU of a car is equivalent to the human brain and the CPU of a computer. ECU is the brain nerve center system of the car. It is generally installed under the dashboard of the driver's seat or near the wiper linkage lever. The function of ECU is to monitor various input data (such as braking, shifting, etc.) and various states of car operation (acceleration, slipping, fuel consumption, etc.) at any time, and calculate the information sent by various sensors according to the pre-designed program. After processing, the various parameters are sent to the relevant actuators to perform various predetermined control functions. For example, ECU determines the optimal injection amount after analysis, budgeting, processing and storage based on the signals from the car sensors, and controls the fuel injection amount of the injector, so that the car can always maintain the optimal air-fuel ratio, thereby improving economy, power and reducing exhaust emissions. The original ECU was used to control the initial ignition and fuel injection of the engine. With the improvement of electronic automation of cars, the control scope of ECU is also increasing, such as lighting control, airbag control, fuel heating control, exhaust control, brake control, exhaust gas recirculation system (EGR), etc. For the convenience of description, the specific functions of ECU will not be described in detail later.

[0077] It can also be understood that the socket connection in the embodiment of the present application, that is, the socket, is the cornerstone of communication and the basic operating unit of network communication that supports TCP or IP protocol. It is an abstract representation of the endpoint in the process of network communication, and contains five kinds of information necessary for network communication: the protocol used for the connection, the IP address of the local host, the protocol port of the local process, the IP address of the remote host, and the protocol port of the remote process. When the application layer communicates data through the transport layer, TCP will encounter the problem of providing concurrent services for multiple application processes at the same time. Multiple TCP connections or multiple application processes may need to transmit data through the same TCP protocol port. In order to distinguish different application processes and connections, many computer operating systems provide a socket interface for the application to interact with TCP or IP protocols. The application layer can distinguish communications from different application processes or network connections through the socket interface with the transport layer to realize concurrent services for data transmission. For the convenience of description, the socket will not be repeated in the following. In the embodiment of the present application, the socket mainly plays the role of a communication channel.

[0078] See also Figure 1 , Figure 1 A schematic diagram of a device architecture based on remote diagnosis disclosed in an embodiment of the present application.

[0079] The following device architecture is often used in DOIP remote diagnosis, which generally includes a cloud platform 100, a C-terminal connector 101, a vehicle 102, a B-terminal connector 103, and a diagnostic device 104. The vehicle 102 is connected to the C-terminal connector, the diagnostic device 104 is connected to the B-terminal connector 103, and the cloud platform 100 is connected to the C-terminal connector 101 and the B-terminal connector 103 respectively through the internet.

[0080] In the embodiment of the present application, the C-end connector 101 is the client described in the previous section, that is, the client of remote diagnosis. The B-end connector 103 is the server described in the previous section, that is, the server of remote diagnosis. The client publishes the demand for remote diagnosis and requests service, and the server provides the service.

[0081] Among them, the cloud platform 100 can be understood as a communication network. The above cloud platform 100 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud platform that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform. In the embodiment of the present application, the cloud platform 100 mainly exists as a channel for data interaction between the B-end connector 103 and the C-end connector 101. For the convenience of understanding, the role of the cloud platform 100 will not be repeated in the following.

[0082] In the embodiment of the present application, the C-end connector 101 is mainly an Ethernet card connecting the C-end and the vehicle 102. It is not difficult to understand that the C-end connector 101 can also be other devices. The embodiment of the present application does not limit the specific device of the C-end connector 101, and will not be elaborated on later.

[0083] The vehicle 102 mainly includes a vehicle ECU or a gateway. It is not difficult to understand that the vehicle 102 may also include other devices. The embodiment of the present application does not limit the specific devices included in the vehicle 102, and no further description will be given later. At the same time, for the convenience of description, the vehicle 102 will only be illustrated by the vehicle ECU, and no further description will be given later.

[0084] The B-end connector 103 is mainly an Ethernet card connecting the B-end and the diagnostic device 104. Because there are multiple ECUs on the vehicle 102, and the B-end connector 103 physically has only one network card for DOIP communication, the B-end connector 103 needs to create a virtual network card for each ECU on the vehicle 102. Each virtual network card simulates an ECU on the vehicle 102. It is not difficult to understand that the B-end connector 103 can also be other devices. The embodiment of the present application does not limit the specific device of the B-end connector 103, and it will not be repeated later.

[0085] The diagnostic equipment 104 is a non-disassembly inspection and testing mechanical equipment that can quickly and accurately check the technical conditions of the automobile, assembly and mechanism, and draw reliable conclusions. It mainly includes wheel balancers, lighting testers, reaction brake test benches, chassis dynamometers, side slip test benches, front wheel alignment instruments, engine test benches, exhaust gas analyzers, exhaust smoke meters and noise meters, etc. In the embodiment of the present application, the diagnostic equipment 104 mainly processes the vehicle data obtained by the ECU on the vehicle 102. For ease of understanding, the functions of the diagnostic equipment 104 will be described in detail later.

[0086] See also Figure 2 , Figure 2 This is an interactive flow chart of a remote diagnosis method disclosed in an embodiment of the present application, including steps 201 to 208.

[0087] 201. The server sends a first UDP message to the client.

[0088] After the server obtains the first user datagram protocol (UDP) message sent by the diagnostic device, it will transparently transmit the obtained first UDP message to the client through the network, so that the client can receive the first UDP message sent by the diagnostic device.

[0089] 202. The client parses the first UDP message to obtain the corresponding first IP address.

[0090] After receiving the first UDP message, the client will parse the first UDP message to obtain the first IP address carried in the first UDP message. It should be understood that the first IP address is associated with the first UDP message.

[0091] 203. The client determines a corresponding first data transmission channel according to the first IP address.

[0092] After obtaining the first IP address, the client searches the local storage space according to the first IP address to find the first data transmission channel carrying the first IP address identifier. Correspondingly, the client can determine the corresponding first data transmission channel according to the first IP address.

[0093] 204. The client sends the first UDP message to the electronic control unit corresponding to the first IP address on the vehicle through the first data transmission channel.

[0094] When the client determines the first data transmission channel and receives the first UDP message forwarded by the server, the first UDP message can be sent to the vehicle through the first data transmission channel. Specifically, the vehicle can have multiple electronic control units ECU, and each ECU has its own specific IP address. Therefore, correspondingly, the client sends the first UDP message to the ECU corresponding to the first IP address through the first data transmission channel, thereby realizing data interaction between the vehicle and the diagnostic device.

[0095] 205. The client sends a third UDP message to the server.

[0096] After the client obtains the third UDP message sent by the vehicle, it will transparently transmit the obtained third UDP message to the server through the network, so that the server can receive the third UDP message sent by the diagnostic device.

[0097] It can be understood that in this embodiment, the third UDP message can be associated with the first UDP message. In other words, after the client sends the third UDP message to the server, the server can process the third UDP message through a series of steps to form the first UDP message, thereby transparently transmitting the first UDP message to the client through the network. Specifically, the association relationship between the first UDP message and the third UDP message is not limited here, and the first UDP message and the third UDP message may not have an association relationship, in which case steps 201 to 204 may not be performed. For the convenience of description, this will not be described in detail later.

[0098] 206. The server parses the third UDP message to obtain a corresponding third IP address.

[0099] After the server receives the third UDP message, it will parse the third UDP message to obtain the third IP address carried in the third UDP message. It should be understood that the third IP address is associated with the third UDP message. It should also be understood that if the first UDP message is associated with the third UDP message, then correspondingly, the first IP address and the third IP address will also be associated. It can also be understood that under certain conditions, the first IP address and the third IP address can be the same IP address as the third IP address. Specifically, the association between the first IP address and the third IP address is not limited here, and it will not be elaborated on later.

[0100] 207. The server determines a corresponding third data transmission channel according to the third IP address.

[0101] After the server obtains the third IP address, it will search the local storage space according to the third IP address, so as to find the third data transmission channel carrying the third IP address identifier. Correspondingly, the server can determine the corresponding third data transmission channel according to the third IP address.

[0102] 208. The server sends the third UDP message to the diagnostic device through the third data transmission channel to achieve data interaction between the vehicle and the diagnostic device.

[0103] When the server determines the third data transmission channel and receives the third UDP message forwarded by the server, it can send the third UDP message to the diagnostic device through the third data transmission channel. Correspondingly, the server sends the third UDP message to the dispute device through the third data transmission channel corresponding to the third IP address, thereby realizing data interaction between the vehicle and the diagnostic device.

[0104] In this embodiment, step 205 to step 208 may be performed first, and then step 201 to step 204; or step 201 to step 204 may be performed first, and then step 205 to step 208. Specifically, the execution order of steps 201 to step 208 is not limited here.

[0105] Through the remote diagnosis method of the embodiment of the present application, the client can obtain the IP address by parsing the UDP message sent by the diagnostic device through the server, so as to determine the data transmission channel between the vehicle and the client according to the IP address. Similarly, after receiving the UDP message sent by the vehicle, the server will also parse and obtain the IP address, and then select the data transmission channel corresponding to the IP address to send the UDP message to the diagnostic device, thereby realizing the transmission of data of one IP address per channel between the vehicle and the diagnostic device.

[0106] The remote diagnosis method in the embodiment of the present application is described in detail below. Figure 3 , Figure 3 This is an interactive flow chart of another remote diagnosis method disclosed in an embodiment of the present application, including steps 301 to 310.

[0107] 301. The client receives a message from the ECU.

[0108] When the vehicle ECU in the client detects a DOIP network connection, it means that the vehicle ECU has detected corresponding fault information of the vehicle, and then the vehicle ECU will obtain the IP address corresponding to the vehicle ECU in the DOIP network connection according to the DOIP network connection.

[0109] When the vehicle ECU obtains the IP address, it will package the IP address and the vehicle fault information, and then the vehicle ECU will broadcast the vehicle declaration message in the form of UDP, that is, send a UDP message to the C end of the client.

[0110] It is not difficult to understand that the UDP message does not include information about the network connection status, but if the UDP message can be received, then the network must be connected. It should be understood that this embodiment does not limit the specific content carried by the status information.

[0111] At this time, the C end in the client receives the message from the vehicle ECU.

[0112] Of course, it is also important to understand that the presence of a fault does not affect the UDP message broadcast by the vehicle ECU or gateway. As long as the ECU or gateway exists, it will be broadcast after the network connection. The UDP message is only for the diagnostic device to know which devices are on the vehicle, and does not include diagnostic data. Diagnostic data is carried out in TCP communication.

[0113] At this time, the UDP message sent by the vehicle ECU or gateway contains:

[0114]

[0115] It should be noted that this message structure only lists the data of a message structure, and the data of the corresponding structure can be added or modified according to the actual business logic, and this embodiment does not limit this.

[0116] 302. The client obtains the IP address and port number sent by the ECU.

[0117] After receiving the UDP message, the C end of the client will parse the UDP message to know the IP address of the ECU. At the same time, correspondingly, the port number of the vehicle ECU and the UDP port number sent by the ECU can also be obtained.

[0118] 303. If the IP address is a new IP, the client creates a new channel.

[0119] When the C end obtains the IP address, it will compare the newly obtained IP address with all IP addresses stored in the local storage space. When it is found that no identical IP address is found, it can be determined that the newly obtained IP address is a new IP address and the new IP address is stored in the local storage space.

[0120] The C end will establish a channel based on the new IP address. The channel includes a group of threads that independently process the data of this channel. The threads include TCP and UDP sending and receiving threads and status management threads. It can be understood that this channel is the second data transmission channel described in the above section, that is, the communication channel between the vehicle ECU and the client. In other words, the C end can establish a TCP socket connection based on this new IP address and communicate. It is not difficult to understand that when the C end establishes a TCP connection, it can obtain the corresponding TCP port number.

[0121] It is understandable that when the C end finds that the IP address is not a new IP, that is, the C end has already established a channel according to the IP address, step 303 is not executed, but step 304 is directly executed. It should be understood that when the C end sends that the IP address is not a new IP, the channel that has been created is the first data transmission channel described in the above part.

[0122] Correspondingly, for ease of understanding, the channel data structure is explained:

[0123]

[0124] It should be noted that this data structure only lists the data required for a logical channel, and the structural part of the response can be increased or modified according to the actual business logic, and this embodiment does not limit this.

[0125] That is to say, in the implementation of multiple IPs, after the C end receives the vehicle UDP message, it obtains the IP address of the vehicle ECU. If it is a new IP address, a new channel is created on the C end.

[0126] 304. The client packages the channel number and data and transmits them to the server.

[0127] After the client establishes a communication channel with the vehicle ECU, it can be understood that the channel is the data transmission channel described in the aforementioned section, and the data transmission channel can be the first data transmission channel or the second data transmission channel described in the aforementioned section, because in this embodiment, the first data transmission channel or the second data transmission channel are both data transmission channels between the client and the vehicle ECU, and for the convenience of description, they will not be elaborated on later.

[0128] A one-byte channel field is added to the data (including transparent DOIP data and notification commands of status changes) interacting between the B end in the server and the C end in the client to identify the channel number of the communication channel between the vehicle ECU and the client. The channel field can be an IP address, that is, the channel established according to which segment of the IP address is added to the corresponding IP address on the channel. It can also be understood that the one-byte channel field described in this embodiment is only one of the specific embodiments, and it may not be limited to one byte here. If it is an IP address, 4 bytes are required. At the same time, it can be understood that it can be not only a number here, but also an IP address, as long as it can uniquely distinguish an IP on the car. For the convenience of description, the existence form of the channel field will no longer be restricted in the future.

[0129] However, it should be noted that, for the convenience of description, the channel field in this embodiment is specifically illustrated by an IP address, which will not be described in detail later.

[0130] It is not difficult to understand that when the B or C end receives the transparently transmitted data, it will hand over the data to the corresponding channel for processing according to the channel number.

[0131] In this implementation, the aforementioned steps 301-304 can be simply described as when the C end receives the vehicle UDP message, it will compare the IP of the vehicle ECU. If it is a new IP address, it will create a set of independent threads to process the UDP and TCP transmission and reception of this IP, and at the same time, transparently transmit the data with the channel number to the B end. It is not difficult to understand that transparent transmission, in this embodiment, means that the C end or the B end sends the received DOIP data to the B end or the C end as it is through the cloud (cloud platform).

[0132] It can also be understood that the notification command of the state change described in step 304 in this embodiment is generally a state notification instruction that the DOIP network is connected. It should be understood that the state notification instruction in this embodiment is mainly related to remote diagnosis. For example, notification of TCP connection establishment and disconnection, notification of network disconnection, etc., so that the B and C states are consistent. For example, the B end establishes a TCP connection with the diagnostic instrument, and notifies the C end to establish a connection with the vehicle. For example, after the C end disconnects the TCP connection with the vehicle ECU, the B end is notified to disconnect, so that the diagnostic instrument will reconnect immediately. For example, if the C end detects that the network is disconnected, it needs to notify the B end, and the B end needs to clear the previously saved vehicle information and re-receive the UDP message.

[0133] That is to say, after the C end of the client receives the UDP message from the vehicle, it forwards the UDP message to the B end.

[0134] 305. The server receives the transparently transmitted UDP data.

[0135] The server B receives the UDP message transmitted by the client C. It can be understood that the UDP message transmitted is transmitted through Figure 1 The data is transmitted via the cloud platform described in .

[0136] 306. The server parses the data to obtain the channel number.

[0137] When the server B receives the UDP message transmitted by the client C, it will parse the UDP message and obtain the corresponding channel field.

[0138] When the B side obtains the channel field, it will search for the channel field stored in the local storage space based on the latest obtained channel field.

[0139] If the corresponding channel field is not found, it means that the channel between the B end and the diagnostic device is not established, and step 307 is executed.

[0140] If the corresponding channel field is found, it means that the channel between terminal B and the diagnostic device is successfully established, and step 310 is executed. In other words, when terminal B needs to transparently transmit data to terminal C, the corresponding channel will be found according to the channel field, and terminal B will transparently transmit data to terminal C through the channel.

[0141] 307. If the channel is not created, the server creates a virtual network card.

[0142] When the corresponding channel field is not found, it means that the channel between end B and the diagnostic device has not been established. At this time, end B will create a virtual network card based on the latest acquired channel field and broadcast the UDP message through the virtual network card. It is understandable that because there are multiple ECUs on the vehicle side, and end B physically has only one network card for DOIP communication, end B needs to create a virtual network card for each vehicle's ECU. Each virtual network card is a model of an ECU on a vehicle. In other words, there is a corresponding relationship between the IP of the virtual network card and the IP of the ECU.

[0143] That is to say, after receiving the UDP message forwarded by end C, if end B finds that the channel field is a new channel, it virtualizes a network card, obtains the IP address, and thus establishes a new channel with the same channel number.

[0144] It should also be understood that the B end determines whether it is a new channel based on the channel field. The IP of the virtual network card created by the B end may also be different from the IP corresponding to the C end, and this embodiment does not limit this.

[0145] 308. The server starts the DHCP client to apply for an IP address.

[0146] When the B side in the server receives the UDP message, the B side will broadcast the vehicle declaration message to the diagnostic device through the virtual network card.

[0147] Then, after receiving the UDP message, the diagnostic device will parse the UDP message to obtain the IP address of the B end and the virtual address of the vehicle gateway or ECU (usually a 16-bit ID). In other words, the diagnostic device can obtain the IP address or virtual address of the vehicle ECU or gateway through the UDP message.

[0148] After receiving the UDP message, the diagnostic device will establish a TCP socket connection with the IP corresponding to the virtual network card. When the diagnostic device establishes a new TCP socket connection, the server will start the dynamic host configuration protocol (DHCP) client to apply for an IP. It is not difficult to understand that if the DHCP client does not obtain an IP, it will start autoIP to automatically obtain an IP.

[0149] It is important to understand that DHCP is a network protocol for a local area network. It has two main uses:

[0150] 1. Automatically assign IP addresses to internal networks or Internet service providers.

[0151] 2. Provide users or internal network administrators with a means of centrally managing all computers.

[0152] It is also necessary to understand that a DHCP service process is running in the diagnostic device, and the DHCP client running in the server can enable the diagnostic device to run the DHCP service process, thereby applying for an IP.

[0153] It should also be understood that this embodiment does not limit the use of DHCP, and DHCP may also have other functions.

[0154] 309. The server creates a channel.

[0155] After the B side in the server establishes a TCP socket connection with the diagnostic device, a channel will be created based on the IP address and socket connection request obtained by the DHCP client. It can be understood that this channel is the second data transmission channel or the third data transmission channel described in the above section. It should be understood that if the IP address is a newly added IP address, it can be understood as the second data transmission channel; if the IP address is not a newly added IP address, it can be understood as the third data transmission channel. At the same time, a one-byte channel field will be added to the data exchanged between the B side and the diagnostic device in the server to identify the channel number.

[0156] It is understandable that after the server creates a channel, for example, there are three IPs on the vehicle, namely 192.168.100.1, 192.168.100.2, or 192.168.100.3. At this time, when the C end receives the UDP messages from these three IPs, it will create three channels with channel numbers 1, 2, and 3 when it receives them for the first time.

[0157] When the B end receives the UDP data of the three IPs forwarded by the C end for the first time, it will find that there is a new channel, and will create a virtual network card and apply for an address. Assume that when receiving channel 1, the network card created is 192.168.1.100; when receiving channel 2, the network card created is 192.168.1.101; when receiving channel 3, the network card created is 192.168.1.102.

[0158] In the subsequent communication, when the B end receives the data through 192.168.1.102, it knows that it is channel 3 and forwards it to the C end. When the C end sees that it is channel 3, it knows to send the data to 192.168.100.3 on the vehicle. Similarly, when the C end receives the data from 192.168.100.3, it knows that it is channel 3 and forwards it to the B end. The B end will send it to the diagnostic device through the IP 192.168.1.102.

[0159] In other words, the channel field sent by the virtual network card is consistent with the channel field added by the C end. It can also be understood that the IP of the C end connected to the vehicle ECU and the IP of the virtual network card on the B end are one-to-one corresponding. According to which IP obtains the data, you can know the corresponding channel.

[0160] 310. The server sends diagnostic data to the client.

[0161] It should be understood that after receiving the UDP message, the diagnostic device obtains the IP address of the B side in the server and parses the UDP message to obtain the virtual address of the vehicle gateway or ECU (usually a 16-bit ID).

[0162] Then the diagnostic device will establish a TCP connection with end B. When the TCP connection is established, end B will send a status notification instruction to end C. The status notification instruction at this time is to notify end C to establish a TCP connection with the vehicle ECU. Then the diagnostic device sends a route activation command to the vehicle via TCP, and the vehicle returns a route activation response. At this point, the diagnostic device can communicate with the vehicle ECU via TCP to exchange diagnostic data.

[0163] It is also necessary to understand that the status notification instructions in this embodiment are mainly related to remote diagnosis. For example, notifying the establishment and disconnection of TCP connections, notifying network disconnection, etc., so that the B and C states are consistent. For example, the B end establishes a TCP connection with the diagnostic instrument, and notifies the C end to establish a connection with the vehicle. For example, after the C end disconnects the TCP connection with the vehicle ECU, the B end is notified to disconnect, so that the diagnostic instrument will reconnect immediately. For example, if the C end detects that the network is disconnected, it needs to notify the B end, and the B end needs to clear the previously saved vehicle information and re-receive the UDP message.

[0164] At the same time, there is a channel identifier corresponding to the client channel. However, the channel identifier is not sent through the TCP connection. The B end sends the data to the corresponding channel for processing according to the channel number. Thus, the B end sends the corresponding diagnostic data to the C end of the client.

[0165] It can be seen that, at the software level, this method establishes a channel for each IP address. The channel includes a group of threads that independently process the data of this channel. The threads include TCP or UDP transceiver threads and state management threads. Each channel can independently complete the data forwarding between the ECU and the diagnostic device, thereby realizing multi-IP simultaneous communication. A one-byte channel field is added to the data interacted between the B end and the C end (including the transparent DOIP data and the notification command of the state change), and the channel number is identified. After the B end and the C end receive the transparent data, the data is handed over to the corresponding channel for processing according to the channel number. After the C end receives the vehicle UDP message, it will compare the sender's IP. If it is a new IP address, it will create a group of independent threads to process the UDP or TCP transceiver of this IP, and at the same time, the data plus the channel number is transparently transmitted to the B end. After the B end receives the transparent UDP data, if the corresponding channel does not exist, a virtual network card is created to create the corresponding channel. Thus, multiple virtual channels are established between the B end and the C end, and multiple IPs are communicated in parallel between the diagnostic device and the vehicle ECU.

[0166] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0167] If the plan involves sensitive information (such as user information, corporate information), it should be stated that the collection, use and processing of sensitive information must comply with the laws, regulations and standards of relevant countries and regions, and must be carried out with the permission or consent of the relevant entities (such as users or companies).

[0168] This embodiment provides a remote diagnosis method, which can parse the UDP message sent by the diagnostic device to the client through the server, so as to obtain the IP address, and thus determine the data transmission channel between the vehicle and the client according to the IP address. At the same time, every time the client finds a new IP address, there will be a new set of data transmission channels between the client and the vehicle, so that each channel between the vehicle and the diagnostic device transmits data of one IP address, and different channels do not affect each other.

[0169] Correspondingly, every time the client discovers a new IP address, there will be a new set of channels between the client and the vehicle. At the same time, a virtual network card will be created on the server for each new channel, and the corresponding channel between the server and the diagnostic device will be created through the virtual network card. Each set of channels independently handles the data communication of an IP, and different channels do not affect each other. In this way, DOIP diagnosis of multiple IPs is supported.

[0170] A remote diagnosis method in an embodiment of the present application is described above. The structure of a remote diagnosis device in an embodiment of the present application is described below. Figure 4 , a structure of a remote diagnosis device, applied to a client, comprising:

[0171] An acquisition unit 401 is used to acquire a first UDP message sent by a diagnostic device through a server;

[0172] The parsing unit 402 is used to parse the first UDP message to obtain the corresponding first IP address;

[0173] A determining unit 403 is configured to determine a corresponding first data transmission channel according to the first IP address;

[0174] The sending unit 404 is used to send the first UDP message to the electronic control unit corresponding to the first IP address on the vehicle through the first data transmission channel.

[0175] Exemplarily, the device further includes: a creating unit 405 .

[0176] The acquisition unit 401 is further used to acquire the second UDP message broadcast by the vehicle;

[0177] The parsing unit 402 is further configured to parse the second UDP message to obtain a corresponding second IP address;

[0178] The creation unit 405 is used to create a second data transmission channel between the electronic control units corresponding to the second IP address when the second IP address is a newly added IP address.

[0179] For example,

[0180] The sending unit 404 is further configured to send the second UDP message and the corresponding identification number of the second data transmission channel to the server.

[0181] Exemplarily, the device further includes a detection unit 406 .

[0182] The detection unit 406 is used to detect whether the network of the network diagnostic protocol DOIP of the vehicle is connected, and if so, execute the step of obtaining the second UDP message broadcast by the vehicle.

[0183] The structure of another remote diagnosis device in the embodiment of the present application is described below. Figure 5 , another structure based on the remote diagnosis device, applied to the server, includes:

[0184] An acquisition unit 501 is used to acquire a third user datagram protocol UDP message sent by the vehicle through the client;

[0185] The parsing unit 502 is used to parse the third UDP message to obtain a corresponding third IP address;

[0186] A determining unit 503 is configured to determine a corresponding third data transmission channel according to the third IP address;

[0187] The sending unit 504 is used to send the third UDP message to the diagnostic device through the third data transmission channel to achieve data interaction between the vehicle and the diagnostic device.

[0188] Exemplarily, the device further includes: a receiving unit 505 and a creating unit 506 .

[0189] The receiving unit 505 is used to receive the second UDP message and the identification number sent by the client;

[0190] The creation unit 506 is configured to create a second data transmission channel corresponding to the newly added identification number with the diagnostic device when the target identification number is a newly added identification number.

[0191] Exemplarily, the apparatus further includes a broadcasting unit 507 and an establishing unit 508 .

[0192] A creation unit 506, specifically used to create a virtual network card;

[0193] A broadcast unit 507, configured to broadcast a second UDP message through a virtual network card;

[0194] The receiving unit 505 is specifically configured to receive a socket connection request sent by the diagnostic device based on the second IP address carried in the second UDP message;

[0195] The establishing unit 508 is configured to establish a second data transmission channel with the diagnostic device based on the socket connection request.

[0196] See below Figure 6 , a remote diagnostic device disclosed in an embodiment of the present application includes:

[0197] CPU 601, memory 605, input / output interface 604, wired or wireless network interface 603 and power supply 602;

[0198] The memory 605 is a temporary storage memory or a permanent storage memory;

[0199] The CPU 601 is configured to communicate with the memory 605 and execute the instructions in the memory 605 to perform the aforementioned Figure 2 or Figure 3 The method in the illustrated embodiment.

[0200] The embodiment of the present application also provides a chip system, characterized in that the chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the aforementioned Figure 2 or Figure 3 The method in the illustrated embodiment.

[0201] Those skilled in the art can 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.

[0202] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, 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 interfaces, devices or units, which can be electrical, mechanical or other forms.

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

[0204] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0205] 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 to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A remote diagnosis method, characterized in that: A client used in a remote diagnosis system; the client is connected to the vehicle and the server in communication, and the server is connected to the diagnosis device in communication; the method includes: Obtaining a first User Datagram Protocol (UDP) message sent by the diagnostic device through the server; Parsing the first UDP message to obtain a corresponding first Internet Protocol IP address; Determine a corresponding first data transmission channel according to the first IP address; Sending the first UDP message to the electronic control unit corresponding to the first IP address on the vehicle through the first data transmission channel; When the client receives the third UDP message sent by the vehicle, the client sends the third UDP message to the server, so that the server parses the third UDP message and obtains the corresponding third IP address; wherein the third IP address is used by the server to determine the corresponding third data transmission channel, so that the server sends the third UDP message to the diagnostic device through the third data transmission channel, so as to realize that each data transmission channel between the vehicle and the diagnostic device transmits data of one IP address.

2. A remote diagnosis method, characterized in that: A server end used in a remote diagnosis system; the server end is respectively connected to a diagnosis device and a client end, and the client end is connected to a vehicle end; the method includes: When the client obtains the second User Datagram Protocol UDP message broadcast by the vehicle, after obtaining the corresponding second Internet Protocol IP address by parsing the obtained second UDP message, the client receives the second UDP message and the corresponding identification number of the second data transmission channel; wherein the identification number is associated with the second IP address, and the second data transmission channel is a data transmission channel created by the client according to the second IP address; If the identification number is a newly added identification number, a second data transmission channel corresponding to the newly added identification number is created between the diagnostic device; wherein any data transmission channel includes a group of threads, the threads are used to process data of the current data transmission channel, and the second data transmission channel is used to realize data interaction between the diagnostic device and the electronic control unit of the vehicle.

3. The method according to claim 2, characterized in that Before the client obtains the second UDP message broadcast by the vehicle, the client further detects whether the network of the network diagnostic protocol DOIP of the vehicle is connected. The method further includes: If the vehicle's DOIP network is connected, the client executes the step of obtaining the second UDP message broadcast by the vehicle.

4. The method according to claim 2, characterized in that: The step of establishing the second data transmission channel corresponding to the newly added identification number with the diagnostic device comprises: Create a virtual network card; Broadcast the second UDP message through the virtual network card; Receiving a socket connection request sent by the diagnostic device based on the second IP address carried in the second UDP message; A second data transmission channel is established with the diagnostic device based on the socket connection request.

5. A remote diagnostic device, characterized in that: A client used in a remote diagnosis system; the client is connected to the vehicle and the server in communication, and the server is connected to the diagnosis device in communication; the remote diagnosis device includes: An acquiring unit, configured to acquire a first User Datagram Protocol (UDP) message sent by the diagnostic device through the server; A parsing unit, configured to parse the first UDP message to obtain a corresponding first Internet Protocol IP address; A determining unit, configured to determine a corresponding first data transmission channel according to the first IP address; a sending unit, configured to send the first UDP message to an electronic control unit corresponding to the first IP address on the vehicle through the first data transmission channel; The acquisition unit is further used to send the third UDP message to the server after the client receives the third UDP message sent by the vehicle, so that the server parses the third UDP message and obtains the corresponding third IP address; wherein the third IP address is used by the server to determine the corresponding third data transmission channel, so that the server sends the third UDP message to the diagnostic device through the third data transmission channel, so as to realize that each data transmission channel between the vehicle and the diagnostic device transmits data of one IP address.

6. A remote diagnostic device, characterized in that: A server end used in a remote diagnosis system; the server end is respectively connected to the diagnosis device and the client end, and the client end is connected to the vehicle end; the remote diagnosis device includes: A receiving unit, configured to receive the second UDP message sent by the client and an identification number of a corresponding second data transmission channel after the client obtains the second User Datagram Protocol UDP message broadcast by the vehicle and obtains the corresponding second Internet Protocol IP address by parsing the obtained second UDP message; wherein the identification number is associated with the second IP address, and the second data transmission channel is a data transmission channel created by the client according to the second IP address; A creation unit is used to create a second data transmission channel corresponding to the newly added identification number between the diagnostic device and the diagnostic device when the identification number is a newly added identification number; wherein any data transmission channel includes a group of threads, the threads are used to process data of the current data transmission channel, and the second data transmission channel is used to realize data interaction between the diagnostic device and the electronic control unit of the vehicle.

7. A remote diagnostic device, characterized in that: The remote diagnostic device comprises: CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 4.