A diagnostic method for a vehicle and related apparatus
Simultaneous diagnostics of multiple electronic control units in a vehicle are achieved by using User Datagram Protocol (UDP), which solves the problems of communication link complexity and high maintenance costs caused by Transmission Control Protocol (TCP), and improves diagnostic efficiency and resource utilization.
Patent Information
- Application Number
- CN202211235304.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-10-10
AI Technical Summary
In the existing technology, the diagnosis of vehicle electronic control units is mainly carried out through the transmission control protocol (TCP), which results in complex communication links and high maintenance costs.
The User Datagram Protocol (UDP) is used for one-to-many information transmission, enabling simultaneous diagnosis of multiple electronic control units in the vehicle and simplifying the establishment and maintenance of communication links.
It improves diagnostic efficiency, reduces communication complexity and maintenance costs, and enhances the resource utilization of diagnostic equipment.
Smart Images

Figure CN115542883B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle management, in particular to a diagnosis method for a vehicle and a related device. BACKGROUND
[0002] Vehicle travel is the choice of most travelers at present. In order to ensure the stable operation of the vehicle, it is necessary to periodically diagnose various electronic control units in the vehicle.
[0003] In the related art, the diagnosis of electronic control units in the vehicle is mainly performed through the transmission control protocol (TCP) in the diagnostic communication over Internet Protocol (DoIP), which requires the construction of a large number of communication links and has high maintenance costs and complex communication when applied to the diagnosis of in-vehicle electronic control units. SUMMARY
[0004] To solve the above technical problems, the present application provides a diagnosis method for a vehicle, which realizes efficient diagnosis of in-vehicle electronic control units through the user datagram protocol.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] In a first aspect, the embodiments of the present application disclose a diagnosis method for a vehicle, comprising:
[0007] obtaining a diagnosis request sent by a diagnosis device through a user datagram protocol, the diagnosis request being used to request diagnosis of electronic control units in the vehicle;
[0008] simultaneously sending the diagnosis request to multiple electronic control units in the vehicle through the user datagram protocol;
[0009] receiving diagnosis responses generated by the multiple electronic control units based on the diagnosis request through the user datagram protocol;
[0010] sending the diagnosis responses to the diagnosis device through the user datagram protocol.
[0011] In a possible implementation, before the diagnosis request sent by the diagnosis device is obtained through the user datagram protocol, the method further comprises:
[0012] establishing a communication link between the diagnostic device and the plurality of electronic control units, the communication link being a communication link corresponding to the user datagram protocol, the communication link supporting simultaneous information transmission with the plurality of electronic control units;
[0013] the sending of the diagnostic request to the plurality of electronic control units in the vehicle simultaneously through the user datagram protocol comprises:
[0014] the sending of the diagnostic request to the plurality of electronic control units in the vehicle simultaneously through the communication link.
[0015] In a possible implementation, the diagnostic request comprises a target unit code, the plurality of electronic control units each have a corresponding unit code, and the sending of the diagnostic request to the plurality of electronic control units in the vehicle simultaneously through the communication link comprises:
[0016] determining a target electronic control unit corresponding to the target unit code among the plurality of electronic control units;
[0017] the sending of the diagnostic request to the target electronic control unit simultaneously through the communication link.
[0018] In a possible implementation, the diagnostic response is generated in the following manner:
[0019] randomly generating a plurality of response times corresponding to the plurality of electronic control units respectively;
[0020] in response to reaching the response time, generating a diagnostic response corresponding to the plurality of electronic control units respectively.
[0021] In a possible implementation, after the receiving of the diagnostic response generated by the electronic control unit based on the diagnostic request through the user datagram protocol, the method further comprises:
[0022] the receiving of a secondary diagnostic response generated by the electronic control unit based on the diagnostic request through the user datagram protocol, the secondary diagnostic response being the same as the diagnostic response;
[0023] the sending of the secondary diagnostic response to the diagnostic device through the user datagram protocol.
[0024] In a possible implementation, the obtaining of the diagnostic request sent by the diagnostic device through the user datagram protocol comprises:
[0025] in response to a time difference between a time point of the last time when the diagnostic request is received and a current time point reaching a preset time difference, the obtaining of the diagnostic request sent by the diagnostic device through the user datagram protocol.
[0026] In a second aspect, the embodiments of the present application disclose a diagnosis device for a vehicle, the device comprising an acquisition unit, a first sending unit, a first receiving unit and a second sending unit:
[0027] The acquisition unit is configured to acquire a diagnosis request sent by a diagnosis equipment through a user datagram protocol, the diagnosis request being configured to request diagnosis of electronic control units in the vehicle;
[0028] The first sending unit is configured to send the diagnosis request to a plurality of electronic control units in the vehicle through the user datagram protocol at the same time;
[0029] The first receiving unit is configured to receive diagnosis responses generated by the plurality of electronic control units based on the diagnosis request through the user datagram protocol;
[0030] The second sending unit is configured to send the diagnosis responses to the diagnosis equipment through the user datagram protocol.
[0031] In a possible implementation, the device further comprises an establishment unit:
[0032] The establishment unit is configured to establish a communication link between the diagnosis equipment and the plurality of electronic control units, the communication link being a communication link corresponding to the user datagram protocol, and the communication link supporting information transmission with the plurality of electronic control units at the same time;
[0033] The first sending unit is specifically configured to:
[0034] send the diagnosis request to the plurality of electronic control units in the vehicle through the communication link at the same time.
[0035] In a possible implementation, the diagnosis request comprises a target unit code, and the plurality of electronic control units each have a corresponding unit code, and the first sending unit is specifically configured to:
[0036] determine a target electronic control unit corresponding to the target unit code in the plurality of electronic control units;
[0037] send the diagnosis request to the target electronic control unit through the communication link at the same time.
[0038] In a possible implementation, the diagnosis responses are generated in the following manner:
[0039] randomly generating response times corresponding to the plurality of electronic control units respectively;
[0040] In response to reaching the response time, a diagnostic response corresponding to each of the plurality of electronic control units is generated.
[0041] In a possible implementation, the apparatus further includes a second receiving unit:
[0042] The second receiving unit is configured to receive, through the user datagram protocol, a secondary diagnostic response generated by the electronic control unit based on the diagnostic request, the secondary diagnostic response being the same as the diagnostic response.
[0043] In a possible implementation, the obtaining unit is specifically configured to:
[0044] In response to a time difference between the time when the last diagnostic request is received and the current time reaching a preset time difference, the diagnostic request sent by the diagnostic device is obtained through the user datagram protocol.
[0045] In a third aspect, an embodiment of the present application discloses a computer device, which includes a processor and a memory:
[0046] The memory is configured to store program code and transmit the program code to the processor.
[0047] The processor is configured to execute the diagnostic method for a vehicle according to any one of the first aspect based on instructions in the program code.
[0048] In a fourth aspect, an embodiment of the present application discloses a computer readable storage medium, which is configured to store a computer program, and the computer program is configured to execute the diagnostic method for a vehicle according to any one of the first aspect.
[0049] In a fifth aspect, an embodiment of the present application discloses a computer program product including instructions, which, when executed on a computer, cause the computer to execute the diagnostic method for a vehicle according to any one of the first aspect.
[0050] As can be seen from the above technical solutions, in the process of vehicle diagnosis, the processing device can obtain the diagnostic request sent by the diagnostic device through the user datagram protocol, and the diagnostic request is used to request to diagnose the electronic control unit in the vehicle. Since the user datagram protocol supports one-to-many information transmission, the processing device can send the diagnostic request to multiple electronic control units in the vehicle through the user datagram protocol, and can also receive the diagnostic response generated by the multiple electronic control units based on the diagnostic request through the user datagram protocol, and finally send the diagnostic response to the diagnostic device through the user datagram protocol. Thus, the processing device can diagnose multiple electronic control units at a time, thereby improving the diagnosis efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort based on these drawings.
[0052] Figure 1 A schematic diagram of a vehicle diagnosis method provided by an embodiment of the present application;
[0053] Figure 2 A flowchart of a diagnosis method for a vehicle provided by an embodiment of the present application;
[0054] Figure 3 A schematic diagram of a diagnosis method for a vehicle in an actual application scenario provided by an embodiment of the present application;
[0055] Figure 4 A structural block diagram of a diagnosis device for a vehicle provided by an embodiment of the present application. DETAILED DESCRIPTION
[0056] The embodiments of the present application will be described below with reference to the accompanying drawings.
[0057] In the related art, diagnosis is mainly performed through a transmission control protocol (TCP). However, as shown in Figure 1 , a DoIP node in Figure 1 is an electronic control unit, and diagnosis through TCP needs the following steps:
[0058] 1. TCP connection: according to the requirements of the DoIP protocol, the interaction of diagnosis messages needs to be transmitted through TCP, so it is necessary to first establish a TCP connection;
[0059] 2. Route activation: Ensure that the DoIP(diagnostic communication over Internet Protocol, diagnostic communication based on network protocol) entity allows the diagnostic state to enter, and the DoIP(diagnostic communication over Internet Protocol, diagnostic communication based on network protocol) entity does not accept any diagnostic request before the route is activated;
[0060] 3. Diagnosis: After the route is activated, the normal diagnostic request and diagnostic response process can be entered;
[0061] 4. Keep-alive: Since TCP can only maintain a one-to-one communication link, in order to ensure that the communication link is not occupied for a long time, if there is no diagnostic request from the diagnostic device within 300s, the DoIP(diagnostic communication over Internet Protocol, diagnostic communication based on network protocol) entity will detect whether the diagnostic device is in an active state through a keep-alive request. If the response of the diagnostic device cannot be received, the DoIP(diagnostic communication over Internet Protocol, diagnostic communication based on network protocol) entity will break the TCP(transmission control protocol, transmission control protocol) connection and release the communication link.
[0062] In order to solve the above technical problems, the application provides a diagnostic method for a vehicle. The processing device can simultaneously perform diagnosis on multiple electronic control units through a user datagram protocol capable of one-to-many communication link, thereby improving the diagnostic efficiency.
[0063] It can be understood that the method can be applied to a processing device capable of vehicle diagnosis, such as a vehicle gateway connected to an electronic control unit and a diagnostic device. The method can be independently executed by a terminal device or a server, or can be applied to a network scenario of terminal device and server communication, and can be executed by the terminal device and the server in cooperation. The terminal device can be a computer, a mobile phone or the like. The server can be an application server or a Web server. In actual deployment, the server can be a standalone server or a cluster server.
[0064] Next, a diagnostic method for a vehicle provided by the embodiment of the application will be described in combination with the drawings. Referring to Figure 2 , Figure 2 A flowchart of a diagnostic method for a vehicle provided by the embodiment of the application is shown in the figure. The method comprises:
[0065] S201: Obtain a diagnosis request sent by a diagnosis device through a user datagram protocol.
[0066] The diagnosis request is used to request diagnosis of an electronic control unit (ECU for short) in a vehicle, and the diagnosis device is a device that can diagnose the state of the electronic control unit based on information fed back by the electronic control unit.
[0067] S202: Simultaneously send the diagnosis request to multiple electronic control units in the vehicle through the user datagram protocol.
[0068] Since the user datagram protocol (UDP for short) supports one-to-many communication links, in this application scenario, the processing device can send information to multiple electronic control units simultaneously through the user datagram protocol.
[0069] S203: Receive diagnosis responses generated by the multiple electronic control units based on the diagnosis request through the user datagram protocol.
[0070] Similarly, the processing device can also receive the diagnosis responses returned by the multiple electronic control units through the UDP, without switching different communication links, further improving the diagnosis efficiency. The diagnosis response is used to identify the running state of the electronic control unit.
[0071] S204: Send the diagnosis response to the diagnosis device through the user datagram protocol.
[0072] As can be seen from the above technical solution, in the process of vehicle diagnosis, the processing device can obtain a diagnosis request sent by a diagnosis device through a user datagram protocol, and the diagnosis request is used to request diagnosis of an electronic control unit in a vehicle. Since the user datagram protocol supports one-to-many information transmission, the processing device can simultaneously send the diagnosis request to multiple electronic control units in the vehicle through the user datagram protocol, and can also receive diagnosis responses generated by the multiple electronic control units based on the diagnosis request through the user datagram protocol, and finally send the diagnosis response to the diagnosis device through the user datagram protocol. Thus, the processing device can diagnose multiple electronic control units at a time, improving the diagnosis efficiency.
[0073] In a possible implementation, before obtaining the diagnostic request sent by the diagnostic device through the user datagram protocol, the processing device can first establish a communication link with the diagnostic device and with the plurality of electronic control units, the communication link being a communication link corresponding to the user datagram protocol, and the communication link supporting simultaneous information transmission with the plurality of electronic control units.
[0074] The processing device can simultaneously send the diagnostic request to the plurality of electronic control units in the vehicle through the communication link.
[0075] In a possible implementation, to enable more accurate sending of the diagnostic request to the electronic control unit, the processing device can implement sending of the diagnostic request to a specific electronic control unit in the plurality of electronic control units through coding. The diagnostic request includes a target unit code, and the target unit code is used to identify the electronic control unit to which the diagnosis is directed. The plurality of electronic control units respectively have corresponding unit codes, and the unit codes are used to identify the corresponding electronic control units.
[0076] The processing device can determine a target electronic control unit corresponding to the target unit code in the plurality of electronic control units, and the target electronic control unit is the electronic control unit to which the diagnosis is directed.
[0077] The processing device can simultaneously send the diagnostic request to the target electronic control unit through the communication link, thereby implementing diagnosis of the specific electronic control unit.
[0078] Since the application can exchange information in a one-to-many manner, a plurality of electronic control units may, at the same time, return diagnostic responses to the processing device. In a possible implementation, to avoid a situation in which too many electronic control units return diagnostic responses at the same time, causing the processing device to receive too much information in a short time and thus causing excessive processing pressure and information congestion, the processing device can set a response time for the electronic control units. The response time can be a random value in a fixed range, for example, a random value of 0-500 ms. After receiving the diagnostic request, the electronic control device needs to wait for the response time before returning the diagnostic response, thereby enabling the information transmission time of the plurality of electronic control devices to be staggered to a certain extent.
[0079] The diagnostic response is generated in the following manner:
[0080] The processing device can randomly generate a plurality of response times corresponding to the plurality of electronic control units, respectively. In response to reaching the response time, the electronic control unit can generate a diagnostic response corresponding to the plurality of electronic control units, respectively.
[0081] In a possible implementation, to ensure stability of information transmission based on the user datagram protocol, after receiving the diagnostic response generated by the electronic control unit based on the diagnostic request through the user datagram protocol, the electronic control unit can repeatedly send the diagnostic response to ensure that the diagnostic device can receive the diagnostic response.
[0082] The processing device can receive, through the user datagram protocol, a secondary diagnostic response generated by the electronic control unit based on the diagnostic request, the secondary diagnostic response being the same as the diagnostic response and being used to identify the running state of the electronic control unit. The processing device can send, through the user datagram protocol, the secondary diagnostic response to the diagnostic device.
[0083] In a possible implementation, to avoid receiving too many diagnostic requests in a short time and causing excessive information processing pressure in a one-to-many communication scenario, in a possible implementation, the processing device can preset a preset time difference for receiving diagnostic requests as the time interval.
[0084] The processing device records the elapsed time after receiving a diagnostic request, and in response to the time difference between the time of receiving the last diagnostic request and the current time reaching the preset time difference, the processing device can obtain the diagnostic request sent by the diagnostic device through the user datagram protocol. Thus, the problem of obtaining too many diagnostic requests in a short time can be avoided. The preset time difference can also be set to a value in a range from 0 to 500 ms.
[0085] To facilitate understanding of the technical solutions provided in the embodiments of the present application, next, a diagnostic method for a vehicle provided in the embodiments of the present application will be introduced in combination with an actual application scenario.
[0086] Referring to Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a diagnostic method for a vehicle provided in an actual application scenario of the embodiments of the present application.
[0087] Because the in-vehicle local area network environment has a simple network structure and reliable physical link communication, for such a communication environment, the UDP (user datagram protocol) protocol can be selected for communication between stages. The UDP (user datagram protocol) protocol is relatively simple, and protocol implementation is not complex, and communication efficiency is also relatively high, and is more suitable for deployment on a resource-constrained vehicle ECU (electronic control unit).
[0088] Because the UDP (user datagram protocol) communication protocol is adopted, the TCP (transmission control protocol) connection establishment process is not needed, and thus an independent communication link does not need to be established for each ECU.
[0089] The processing device can remove the routing activation process, and whether to allow diagnosis is determined by the ECU, for example, when the ECU allows diagnosis and does not allow diagnosis, the processing device or the diagnosis device can be sent corresponding information.
[0090] In addition, because the UDP is a one-to-many connection, when different ECUs are diagnosed, different communication links do not need to be switched, and only one general one-to-many link needs to be maintained, so the link is always in an application state and does not need to be kept alive.
[0091] Because the UDP (Unified Diagnostic Services) can be used not only for point-to-point unicast communication, but also for one-to-many broadcast or multicast communication, after the vehicle gateway receives a function addressing request, a broadcast or multicast message can be sent to implement a diagnosis request for the ECUs (electronic control units) in the vehicle, the communication is more efficient, and the resource occupation of the vehicle gateway is less.
[0092] When the vehicle gateway receives a diagnosis request from a diagnosis device, the diagnosis request is first forwarded to the ECUs (electronic control units) in the vehicle by broadcast or multicast, and then the ECUs send their responses to the diagnosis request to the vehicle gateway.
[0093] To avoid the centralized response of the ECUs (electronic control units) causing communication congestion of the vehicle gateway, resulting in some response messages being unable to be received by the vehicle gateway, all ECUs (electronic control units) need to delay for a period of time before sending the response message, and the delay time is a random value between 0 and 500 ms. To further ensure reliability, the ECU (electronic control unit) needs to respond twice in succession, and the interval between the two responses is also a random value between 0 and 500 ms.
[0094] The diagnosis device cannot send any diagnosis request within 1 second after sending a function addressing diagnosis request, otherwise the vehicle gateway will reject the request.
[0095] Based on the diagnosis method for the vehicle provided in the above embodiments, the embodiments of the present application further provide a diagnosis device for the vehicle, which is described below with reference to Figure 4 , Figure 4 The diagnosis device for the vehicle provided in the embodiments of the present application has the structure shown in the block diagram, which includes an acquisition unit 401, a first sending unit 402, a first receiving unit 403 and a second sending unit 404:
[0096] The acquisition unit 401 is configured to acquire a diagnosis request sent by a diagnosis equipment through a user datagram protocol, wherein the diagnosis request is used to request to diagnose an electronic control unit in a vehicle.
[0097] The first sending unit 402 is configured to send the diagnosis request to multiple electronic control units in the vehicle through the user datagram protocol at the same time.
[0098] The first receiving unit 403 is configured to receive a diagnosis response generated by the multiple electronic control units based on the diagnosis request through the user datagram protocol.
[0099] The second sending unit 404 is configured to send the diagnosis response to the diagnosis equipment through the user datagram protocol.
[0100] In a possible implementation, the device further includes an establishment unit:
[0101] The establishment unit is configured to establish a communication link between the diagnosis equipment and the multiple electronic control units, wherein the communication link is a communication link corresponding to the user datagram protocol, and the communication link supports information transmission with the multiple electronic control units at the same time.
[0102] The first sending unit 402 is specifically configured to:
[0103] Send the diagnosis request to the multiple electronic control units in the vehicle through the communication link at the same time.
[0104] In a possible implementation, the diagnosis request includes a target unit code, and the multiple electronic control units each have a corresponding unit code, and the first sending unit 402 is specifically configured to:
[0105] Determine a target electronic control unit corresponding to the target unit code in the multiple electronic control units.
[0106] Send the diagnosis request to the target electronic control unit through the communication link at the same time.
[0107] In a possible implementation, the diagnosis response is generated in the following manner:
[0108] randomly generating a response time corresponding to each of the plurality of electronic control units;
[0109] in response to reaching the response time, generating a diagnostic response corresponding to each of the plurality of electronic control units.
[0110] In a possible implementation, the apparatus further includes a second receiving unit:
[0111] The second receiving unit is configured to receive, through the user datagram protocol, a secondary diagnostic response generated by the electronic control unit based on the diagnostic request, the secondary diagnostic response being the same as the diagnostic response.
[0112] In a possible implementation, the obtaining unit 401 is specifically configured to:
[0113] In response to a time difference between the time when the diagnostic request is received and a last time when a diagnostic request is received reaching a preset time difference, obtaining, through the user datagram protocol, the diagnostic request sent by the diagnostic device.
[0114] The embodiment of the present application further provides a computer device, and the processor included in the terminal device further has the following functions:
[0115] obtaining, through the user datagram protocol, the diagnostic request sent by the diagnostic device, the diagnostic request being used for requesting to diagnose the electronic control unit in the vehicle;
[0116] simultaneously sending, through the user datagram protocol, the diagnostic request to a plurality of electronic control units in the vehicle;
[0117] receiving, through the user datagram protocol, a diagnostic response generated by the plurality of electronic control units based on the diagnostic request;
[0118] sending, through the user datagram protocol, the diagnostic response to the diagnostic device.
[0119] The units described in the embodiments of the present disclosure can be implemented in the form of software, or can be implemented in the form of hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0120] In addition, the embodiment of the present application further provides a storage medium, which is used for storing a computer program, and the computer program is used for executing the diagnostic method for the vehicle provided in the above embodiments.
[0121] The embodiment of the present application further provides a computer program product including instructions, which, when executed on a computer, cause the computer to execute the diagnostic method for the vehicle provided in the above embodiments.
[0122] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware, and the foregoing program can be stored in a computer readable storage medium, and the program performs the steps of the above-mentioned method embodiments when executed; and the foregoing storage medium can be at least one of the following: read-only memory (English: read-only memory, abbreviation: ROM), RAM, magnetic disk or optical disk and various storage medium capable of storing program codes.
[0123] It should be noted that each of the embodiments in the specification is described in a progressive manner, and the same and similar parts between each embodiment can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, they are described more simply, and the relevant parts can be referred to the part of the description of the method embodiments. The above-described device and system embodiments are only illustrative, and the units described as separate components can be or can not be physically separated, and the components shown as units can be or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiments according to the actual needs. Those skilled in the art can understand and implement without creative labor.
[0124] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited to this. Any skilled person in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A diagnostic method for a vehicle, characterized by, The method comprises: obtaining a diagnosis request sent by a diagnosis device through a user datagram protocol, the diagnosis request being used for requesting diagnosis of electronic control units in a vehicle; sending the diagnosis request to a plurality of electronic control units in the vehicle through the user datagram protocol at the same time; receiving diagnosis responses generated by the plurality of electronic control units based on the diagnosis request through the user datagram protocol; sending the diagnosis responses to the diagnosis device through the user datagram protocol; the diagnosis responses are generated in the following manner: randomly generating response times corresponding to the plurality of electronic control units respectively; generating diagnosis responses corresponding to the plurality of electronic control units respectively in response to the response times being reached.
2. The method of claim 1, wherein, Before the step of obtaining the diagnosis request sent by the diagnosis device through the user datagram protocol, the method further comprises: establishing a communication link between the diagnosis device and the plurality of electronic control units, the communication link being a communication link corresponding to the user datagram protocol, and the communication link supporting information transmission with the plurality of electronic control units at the same time; the step of sending the diagnosis request to the plurality of electronic control units in the vehicle through the user datagram protocol at the same time comprises: sending the diagnosis request to the plurality of electronic control units in the vehicle through the communication link at the same time.
3. The method of claim 2, wherein, The diagnosis request comprises a target unit code, the plurality of electronic control units respectively have corresponding unit codes, and the step of sending the diagnosis request to the plurality of electronic control units in the vehicle through the communication link at the same time comprises: determining a target electronic control unit corresponding to the target unit code in the plurality of electronic control units; sending the diagnosis request to the target electronic control unit through the communication link at the same time.
4. The method of claim 1, wherein, After the step of receiving the diagnosis responses generated by the electronic control units based on the diagnosis request through the user datagram protocol, the method further comprises: receiving secondary diagnosis responses generated by the electronic control units based on the diagnosis request through the user datagram protocol, the secondary diagnosis responses being the same as the diagnosis responses; sending the secondary diagnosis responses to the diagnosis device through the user datagram protocol.
5. The method of claim 1, wherein, The step of obtaining the diagnosis request sent by the diagnosis device through the user datagram protocol comprises: obtaining the diagnosis request sent by the diagnosis device through the user datagram protocol in response to a time difference between a time point of a previous diagnosis request and a current time point reaching a preset time difference.
6. A diagnostic device for a vehicle, characterized by The apparatus comprises an obtaining unit, a first sending unit, a first receiving unit, and a second sending unit: the obtaining unit is configured to obtain a diagnosis request sent by a diagnosis device through a user datagram protocol, the diagnosis request being used for requesting diagnosis of electronic control units in a vehicle; the first sending unit is configured to send the diagnosis request to a plurality of electronic control units in the vehicle through the user datagram protocol at the same time; the first receiving unit is configured to receive diagnosis responses generated by the plurality of electronic control units based on the diagnosis request through the user datagram protocol; The second sending unit is configured to send the diagnostic response to the diagnostic device through the user datagram protocol. The diagnostic response is generated by: randomly generating a response time corresponding to each of the plurality of electronic control units; generating a diagnostic response corresponding to each of the plurality of electronic control units in response to reaching the response time.
7. A computer device, comprising: The computer device comprises a processor and a memory: The memory is configured to store program code and transmit the program code to the processor; The processor is configured to execute the diagnostic method for a vehicle according to any one of claims 1-5 according to instructions in the program code.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium is configured to store a computer program for executing the diagnostic method for a vehicle according to any one of claims 1-6.
9. A computer program product comprising instructions which, when executed on a computer, cause the computer to carry out the diagnostic method for a vehicle according to any one of claims 1-5.
Citation Information
Patent Citations
Radio communication system and method therefor and portable radio communication unit and method therefor
CN101043750A
Network connector and vehicle diagnostic method
CN108303964A
Remote diagnosis method and device and related equipment
CN114979239A