CN115542883A - Diagnosis method for vehicle and related device - Google Patents

Diagnosis method for vehicle and related device Download PDF

Info

Publication number
CN115542883A
CN115542883A CN202211235304.7A CN202211235304A CN115542883A CN 115542883 A CN115542883 A CN 115542883A CN 202211235304 A CN202211235304 A CN 202211235304A CN 115542883 A CN115542883 A CN 115542883A
Authority
CN
China
Prior art keywords
diagnosis
electronic control
diagnostic
user datagram
datagram protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211235304.7A
Other languages
Chinese (zh)
Inventor
王莉莉
杨伟男
孙雷霸
王万荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC Motor Corp Ltd
Original Assignee
SAIC Motor Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SAIC Motor Corp Ltd filed Critical SAIC Motor Corp Ltd
Priority to CN202211235304.7A priority Critical patent/CN115542883A/en
Publication of CN115542883A publication Critical patent/CN115542883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the application discloses a diagnosis method and a related device for a vehicle. Since the user datagram protocol supports one-to-many information transmission, the processing device may send the diagnostic request to the plurality of electronic control units in the vehicle at the same time through the user datagram protocol, may also receive a diagnostic response generated by the plurality of electronic control units based on the diagnostic request through the user datagram protocol, and finally sends the diagnostic response to the diagnostic device through the user datagram protocol. Thus, the processing device can be diagnosed with a plurality of electronic control units at a time, and the diagnosis efficiency is improved.

Description

Diagnosis method for vehicle and related device
Technical Field
The present application relates to the field of vehicle management technologies, and in particular, to a diagnostic method for a vehicle and a related apparatus.
Background
When a vehicle travels, which is the current travel choice of most travelers, various electronic control units in the vehicle need to be diagnosed regularly in order to ensure the stable operation of the vehicle.
In the related art, the diagnosis of the electronic control unit in the vehicle is mainly performed by a Transmission Control Protocol (TCP) in a diagnostic over Internet Protocol (DoIP) based ethernet, and when the Protocol standard is applied to the diagnosis of the electronic control unit in the vehicle, a large number of communication links need to be constructed, and the maintenance cost is high and the communication is complex.
Disclosure of Invention
In order to solve the technical problem, the application provides a diagnosis method for a vehicle, and efficient diagnosis of an in-vehicle electronic control unit is achieved through a user datagram protocol.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application discloses a diagnostic method for a vehicle, the method including:
acquiring a diagnosis request sent by diagnosis equipment through a user datagram protocol, wherein the diagnosis request is used for requesting to diagnose an electronic control unit in a vehicle;
sending the diagnostic requests to a plurality of electronic control units in the vehicle simultaneously via the user datagram protocol;
receiving, by the user datagram protocol, diagnostic responses generated by the plurality of electronic control units based on the diagnostic requests;
and sending the diagnosis response to the diagnosis equipment through the user datagram protocol.
In a possible implementation manner, before the obtaining, by the user datagram protocol, the diagnosis request sent by the diagnosis device, the method further includes:
establishing communication links with the diagnostic equipment and the electronic control units, wherein the communication links are corresponding to the user datagram protocol and support information transmission with the electronic control units at the same time;
the sending the diagnostic request to a plurality of electronic control units in the vehicle simultaneously via the user datagram protocol comprises:
sending the diagnostic requests simultaneously to the plurality of electronic control units in the vehicle over the communication link.
In one possible implementation, the sending the diagnostic request to the plurality of electronic control units in the vehicle simultaneously through the communication link includes:
determining a target electronic control unit corresponding to the target unit code in the plurality of electronic control units;
and simultaneously sending the diagnosis request to the target electronic control unit through the communication link.
In one possible implementation, the diagnostic response is generated by:
randomly generating response time corresponding to the electronic control units respectively;
and generating diagnostic responses corresponding to the electronic control units respectively in response to the response time.
In a possible implementation manner, after receiving, by the user datagram protocol, a diagnosis response generated by the electronic control unit based on the diagnosis request, the method further includes:
receiving a secondary diagnosis response generated by the electronic control unit based on the diagnosis request through the user datagram protocol, wherein the secondary diagnosis response is the same as the diagnosis response;
and sending the secondary diagnosis response to the diagnosis equipment through the user datagram protocol.
In a possible implementation manner, the obtaining, by a user datagram protocol, a diagnosis request sent by a diagnosis device includes:
and acquiring the diagnosis request sent by the diagnosis equipment through a user datagram protocol in response to the time difference with the last time of receiving the diagnosis request reaching a preset time difference.
In a second aspect, an embodiment of the present application discloses a diagnostic apparatus for a vehicle, the apparatus including an acquisition unit, a first transmission unit, a first reception unit, and a second transmission unit:
the acquisition unit is used for acquiring a diagnosis request sent by diagnosis equipment through a user datagram protocol, and the diagnosis request is used for requesting to diagnose an electronic control unit in a vehicle;
the first sending unit is used for sending the diagnosis requests to a plurality of electronic control units in the vehicle simultaneously through the user datagram protocol;
the first receiving unit is used for receiving diagnosis responses generated by the electronic control units based on the diagnosis requests through the user datagram protocol;
the second sending unit is configured to send the diagnosis response to the diagnosis device through the user datagram protocol.
In a possible implementation manner, the apparatus further includes a building unit:
the establishing unit is used for establishing communication links with the diagnostic equipment and the electronic control units, the communication links are corresponding to the user datagram protocol, and the communication links support information transmission with the electronic control units at the same time;
the first sending unit is specifically configured to:
sending the diagnostic requests simultaneously to the plurality of electronic control units in the vehicle over the communication link.
In a possible implementation manner, the diagnosis request includes a target unit code, the electronic control units respectively have corresponding unit codes, and the first sending unit is specifically configured to:
determining a target electronic control unit corresponding to the target unit code in the plurality of electronic control units;
and simultaneously sending the diagnosis request to the target electronic control unit through the communication link.
In one possible implementation, the diagnostic response is generated by:
randomly generating response time corresponding to the electronic control units respectively;
and generating diagnosis responses corresponding to the electronic control units respectively in response to the response time.
In one possible implementation manner, the apparatus further includes a second receiving unit:
and the second receiving unit is used for receiving a secondary diagnosis response generated by the electronic control unit based on the diagnosis request through the user datagram protocol, and the secondary diagnosis response is the same as the diagnosis response.
In a possible implementation manner, the obtaining unit is specifically configured to:
and acquiring the diagnosis request sent by the diagnosis equipment through a user datagram protocol in response to that the time difference with the time of last receiving the diagnosis request reaches a preset time difference.
In a third aspect, an embodiment of the present application discloses a computer device, including a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the diagnostic method for a vehicle of any one of the first aspect according to instructions in the program code.
In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium for storing a computer program for executing the diagnostic method for a vehicle of any one of the first aspect.
In a fifth aspect, embodiments of the present application disclose a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of diagnosing for a vehicle of any one of the first aspects.
According to the technical scheme, in the vehicle diagnosis process, the processing device can acquire the diagnosis request sent by the diagnosis device through the user datagram protocol, and the diagnosis request is used for requesting to diagnose the electronic control unit in the vehicle. Since the user datagram protocol supports one-to-many information transmission, the processing device may simultaneously send the diagnosis request to the plurality of electronic control units in the vehicle through the user datagram protocol, may also receive, through the user datagram protocol, a diagnosis response generated by the plurality of electronic control units based on the diagnosis request, and finally sends the diagnosis response to the diagnosis device through the user datagram protocol. Thus, the processing device can be diagnosed with a plurality of electronic control units at a time, and the diagnosis efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a vehicle diagnostic method provided by an embodiment of the present application;
FIG. 2 is a flow chart of a diagnostic method for a vehicle according to an embodiment of the present application;
fig. 3 is a schematic diagram of a vehicle diagnosis method in an actual application scenario provided in the embodiment of the present application;
fig. 4 is a block diagram of a diagnostic apparatus for a vehicle according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
In the related art, the diagnosis is mainly performed by a Transmission Control Protocol (TCP). However, as shown in fig. 1, the DoIP node in fig. 1 is an electronic control unit, and the following steps are required for diagnosis by TCP:
tcp (transmission control protocol) build-up: according to the requirements of the DoIP protocol, the interaction of the diagnostic messages needs to be transmitted through a TCP (transmission control protocol), so that a TCP (transmission control protocol) connection needs to be established first;
2. and (3) route activation: ensuring that a DoIP (diagnostic communication over Internet Protocol, network Protocol-based diagnostic communication) entity is allowed to enter a diagnostic state, and the DoIP (diagnostic communication over Internet Protocol, network Protocol-based diagnostic communication) entity does not accept any diagnostic request before the route is not activated;
3. and (3) diagnosis: after the route is activated, a normal diagnosis request and a normal diagnosis response process can be entered;
4. keep alive: since the TCP can only maintain one-to-one communication link, in order to ensure that the communication link is not occupied inefficiently for a long time, if the diagnostic device does not have any diagnostic request within 300s, the DoIP (diagnostic communication over Internet Protocol, network Protocol-based diagnostic communication) entity will detect whether the diagnostic device is in an active state through the keep-alive request, and if the diagnostic device does not receive a response, the DoIP (diagnostic communication over Internet Protocol, network Protocol-based diagnostic communication) entity will disconnect the TCP (transmission control Protocol) connection and release the communication link.
In order to solve the technical problem, the present application provides a diagnostic method for a vehicle, in which a processing device may perform diagnosis on a plurality of electronic control units simultaneously through a user datagram protocol capable of performing one-to-many communication links, thereby improving diagnostic efficiency.
It will be appreciated that the method may be applied to a processing device that is capable of vehicle diagnostics, such as an on-board gateway having a connected electronic control unit and diagnostic device. The method can be independently executed through the terminal equipment or the server, can also be applied to a network scene of communication between the terminal equipment and the server, and can be executed through the cooperation of the terminal equipment and the server. The terminal device may be a computer, a mobile phone, or the like. The server may be understood as an application server or a Web server, and in actual deployment, the server may be an independent server or a cluster server.
Next, a vehicle-specific diagnostic method provided in an embodiment of the present application will be described with reference to the drawings. Referring to fig. 2, fig. 2 is a flowchart of a diagnostic method for a vehicle according to an embodiment of the present application, where the method includes:
s201: and acquiring a diagnosis request sent by the diagnosis equipment through a user datagram protocol.
The diagnosis request is for requesting a diagnosis of an Electronic Control Unit (ECU) in the vehicle, and the diagnosis device is a device that can diagnose a state of the ECU based on information fed back from the ECU.
S202: diagnostic requests are sent simultaneously to a plurality of electronic control units in the vehicle via user datagram protocol.
Since a User Datagram Protocol (UDP) supports one-to-many communication links, in this application scenario, the processing device may send information to a plurality of electronic control units through the UDP at the same time.
S203: and receiving diagnosis responses generated by the plurality of electronic control units based on the diagnosis requests through a user datagram protocol.
Similarly, the processing device can also receive the diagnosis responses returned by the plurality of electronic control units through the UDP without switching different communication links, thereby further improving the diagnosis efficiency. The diagnostic response is used to identify the operating state of the electronic control unit.
S204: and sending a diagnosis response to the diagnosis equipment through a user datagram protocol.
According to the technical scheme, in the vehicle diagnosis process, the processing device can acquire the diagnosis request sent by the diagnosis device through the user datagram protocol, and the diagnosis request is used for requesting to diagnose the electronic control unit in the vehicle. Since the user datagram protocol supports one-to-many information transmission, the processing device may simultaneously send the diagnosis request to the plurality of electronic control units in the vehicle through the user datagram protocol, may also receive, through the user datagram protocol, a diagnosis response generated by the plurality of electronic control units based on the diagnosis request, and finally sends the diagnosis response to the diagnosis device through the user datagram protocol. Thus, the processing device can be diagnosed with a plurality of electronic control units at a time, and the diagnosis efficiency is improved.
In a possible implementation manner, before obtaining the diagnosis request sent by the diagnosis device through the user datagram protocol, the processing device may first establish a communication link between the processing device and the diagnosis device and between the processing device and the plurality of electronic control units, where the communication link is a communication link corresponding to the user datagram protocol, and the communication link supports information transmission with the plurality of electronic control units at the same time.
The processing device may send the diagnostic requests to the plurality of electronic control units in the vehicle simultaneously over the communication link.
In one possible implementation, in order to be able to send the diagnosis request to the electronic control unit more accurately, the processing device may implement, by means of coding, that the request transmission may be made to a specific electronic control unit of the plurality of electronic control units. The diagnosis request comprises a target unit code which is used for identifying the electronic control unit for which the diagnosis is aimed. The plurality of electronic control units are respectively provided with corresponding unit codes, and the unit codes are used for identifying the corresponding electronic control units.
The processing device may determine a target electronic control unit of the plurality of electronic control units that corresponds to the target unit code, which is the electronic control unit for which the diagnosis is made.
The processing device may simultaneously send the diagnostic request to the target electronic control unit over the communication link to thereby effect a diagnosis for the particular electronic control unit.
Since the information can be exchanged in a one-to-many manner, a plurality of electronic control units may return a diagnosis response to the processing device at the same time. In a possible implementation manner, in order to avoid the problem that too many electronic control units return diagnosis responses at the same time, so that the processing device receives too many information in a short time to process the problems of too much pressure and information blockage, the processing device may set a response time for the electronic control units, wherein the response time may be a random value in a fixed range, for example, a random value of 0 to 500 ms. After receiving the diagnosis request, the electronic control device needs to wait for the response time and then return a diagnosis response, so that the information transmission time of the electronic control devices can be staggered to a certain extent.
The diagnostic response is generated by:
the processing device may randomly generate response times corresponding to the respective plurality of electronic control units, and in response to reaching the response times, the electronic control unit may generate diagnostic responses corresponding to the respective plurality of electronic control units.
In a possible implementation manner, in order to ensure stability of information transmission based on a user datagram protocol, after receiving a diagnostic response generated by the electronic control unit based on the diagnostic request through the user datagram protocol, the electronic control unit may repeatedly send the diagnostic response to ensure that the diagnostic device can receive the diagnostic response.
The processing device may receive, through the user datagram protocol, a secondary diagnosis response generated by the electronic control unit based on the diagnosis request, where the secondary diagnosis response is the same as the diagnosis response and is used to identify an operating state corresponding to the electronic control unit. The processing device may send the secondary diagnosis response to the diagnosis device through the user datagram protocol.
In order to avoid receiving too many diagnosis requests in a short time, which may cause excessive information processing pressure in a one-to-many communication scenario, in one possible implementation, the processing device may preset a preset time difference for receiving the diagnosis requests as a time interval.
After the processing device receives a diagnosis request, the processing device records the elapsed time length, and when the time difference between the processing device and the time when the processing device receives the diagnosis request last time reaches the preset time difference, the processing device can acquire the diagnosis request sent by the diagnosis device through a user datagram protocol. Therefore, the problem that too many diagnosis requests are acquired in a short time can be avoided. The preset time difference may also be set to a value in the range of 0 to 500 ms.
In order to facilitate understanding of the technical solution provided by the embodiment of the present application, a diagnosis method for a vehicle provided by the embodiment of the present application will be described below with reference to a practical application scenario.
Referring to fig. 3, fig. 3 is a schematic view of a diagnostic method for a vehicle in an actual application scenario provided by the embodiment of the present application.
The LAN environment network in the vehicle has simple structure and reliable physical link communication. For such a communication environment, a UDP (user datagram protocol) protocol may be selected for communication between the respective phases. The UDP (user datagram protocol) protocol is relatively simple, the protocol implementation is not complicated, the communication efficiency is relatively high, and the UDP is more suitable for being deployed on a vehicle-mounted ECU (electronic control unit) with relatively less resources.
Because a User Datagram Protocol (UDP) communication protocol is used, a connection establishment process of a Transmission Control Protocol (TCP) is not required, and thus an independent communication link does not need to be established for each ECU.
The processing device may remove the route activation procedure and the ECU may decide whether to allow the diagnosis, for example, when the ECU allows the diagnosis and does not allow the diagnosis, the processing device or the diagnosis device may be sent corresponding information.
In addition, since the UDP is a one-to-many connection, it is not necessary to switch different communication links when diagnosing different ECUs, and only a total one-to-many link needs to be maintained, so that the link is always in an applied state and does not need to keep alive.
Since 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. Therefore, after the vehicle-mounted gateway receives the function addressing request, the diagnosis request to an in-vehicle Electronic Control Unit (ECU) can be realized by sending a broadcast or multicast message, the communication is more efficient, and the resource occupation to the vehicle-mounted gateway is less.
When the on-board gateway receives a diagnosis request from the diagnosis device, the diagnosis request is first forwarded to an in-vehicle ECU (electronic control unit) by broadcast or multicast, and then the ECU sends its own response to the diagnosis request to the on-board gateway.
In order to avoid communication congestion caused by centralized response of an ECU (electronic control unit) to a vehicle-mounted gateway and to prevent a part of response messages from being received by the vehicle-mounted gateway, all ECUs (electronic control units) need to delay a period of time and then send response messages, the delay time is a random value between 0 and 500ms, in order to ensure reliability, the ECUs (electronic control units) need to continuously respond twice, and the interval between two responses is also a random value between 0 and 500 ms.
The diagnostic device cannot send any diagnostic request again within 1 second of the functional addressing diagnostic request, and the vehicle-mounted gateway of the wrong person rejects the request.
Based on the diagnosis method for the vehicle provided in the foregoing embodiment, the embodiment of the present application further provides a diagnosis device for the vehicle, referring to fig. 4, fig. 4 is a block diagram of a structure of the diagnosis device for the vehicle provided in the embodiment of the present application, and the device includes an obtaining unit 401, a first transmitting unit 402, a first receiving unit 403, and a second transmitting unit 404:
the obtaining unit 401 is configured to obtain, through a user datagram protocol, a diagnosis request sent by a diagnosis device, where the diagnosis request is used to request a diagnosis of an electronic control unit in a vehicle;
the first sending unit 402, configured to send the diagnosis request to a plurality of electronic control units in the vehicle at the same time through the user datagram protocol;
the first receiving unit 403 is configured to receive, through the user datagram protocol, the diagnosis responses generated by the plurality of electronic control units based on the diagnosis request;
the second sending unit 404 is configured to send the diagnosis response to the diagnosis device through the user datagram protocol.
In a possible implementation manner, the apparatus further includes a creating unit:
the establishing unit is used for establishing communication links with the diagnostic equipment and the electronic control units, the communication links are corresponding to the user datagram protocol, and the communication links support information transmission with the electronic control units at the same time;
the first sending unit 402 is specifically configured to:
sending the diagnostic requests simultaneously to the plurality of electronic control units in the vehicle over the communication link.
In a possible implementation manner, the diagnosis request includes a target unit code, the electronic control units respectively have corresponding unit codes, and the first sending unit 402 is specifically configured to:
determining a target electronic control unit corresponding to the target unit code in the plurality of electronic control units;
and simultaneously sending the diagnosis request to the target electronic control unit through the communication link.
In one possible implementation, the diagnostic response is generated by:
randomly generating response time corresponding to the electronic control units respectively;
and generating diagnostic responses corresponding to the electronic control units respectively in response to the response time.
In a possible implementation manner, the apparatus further includes a second receiving unit:
and the second receiving unit is used for receiving a secondary diagnosis response generated by the electronic control unit based on the diagnosis request through the user datagram protocol, and the secondary diagnosis response is the same as the diagnosis response.
In a possible implementation manner, the obtaining unit 401 is specifically configured to:
and acquiring the diagnosis request sent by the diagnosis equipment through a user datagram protocol in response to that the time difference with the time of last receiving the diagnosis request reaches a preset time difference.
The embodiment of the present application further provides a computer device, where a processor included in the terminal device further has the following functions:
acquiring a diagnosis request sent by diagnosis equipment through a user datagram protocol, wherein the diagnosis request is used for requesting to diagnose an electronic control unit in a vehicle;
sending the diagnostic requests to a plurality of electronic control units in the vehicle simultaneously via the user datagram protocol;
receiving, by the user datagram protocol, diagnostic responses generated by the plurality of electronic control units based on the diagnostic requests;
and sending the diagnosis response to the diagnosis equipment through the user datagram protocol.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
In addition, the embodiment of the application also provides a storage medium which is used for storing a computer program which is used for executing the diagnosis method for the vehicle provided by the embodiment.
Embodiments of the present application further provide a computer program product including instructions, which when run on a computer, cause the computer to execute the diagnostic method for a vehicle provided by the above embodiments.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware associated with program instructions, where the program may be stored in a computer-readable storage medium, and when executed, performs the steps including the method embodiments; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as a read-only memory (ROM), a RAM, a magnetic disk, or an optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A diagnostic method for a vehicle, the method comprising:
acquiring a diagnosis request sent by diagnosis equipment through a user datagram protocol, wherein the diagnosis request is used for requesting to diagnose an electronic control unit in a vehicle;
sending the diagnostic requests to a plurality of electronic control units in the vehicle simultaneously via the user datagram protocol;
receiving, by the user datagram protocol, diagnostic responses generated by the plurality of electronic control units based on the diagnostic requests;
and sending the diagnosis response to the diagnosis equipment through the user datagram protocol.
2. The method of claim 1, wherein prior to said obtaining a diagnostic request sent by a diagnostic device via a user datagram protocol, the method further comprises:
establishing communication links with the diagnostic equipment and the electronic control units, wherein the communication links are corresponding to the user datagram protocol and support information transmission with the electronic control units at the same time;
the sending the diagnostic request to a plurality of electronic control units in the vehicle simultaneously via the user datagram protocol comprises:
simultaneously sending the diagnostic requests to the plurality of electronic control units in the vehicle over the communication link.
3. The method of claim 2, wherein the diagnostic request includes a target cell code, the plurality of electronic control units each have a corresponding cell code, and the sending the diagnostic request simultaneously to the plurality of electronic control units in the vehicle over the communication link comprises:
determining a target electronic control unit corresponding to the target unit code in the plurality of electronic control units;
and simultaneously sending the diagnosis request to the target electronic control unit through the communication link.
4. The method of claim 2, wherein the diagnostic response is generated by:
randomly generating response time corresponding to the electronic control units respectively;
and generating diagnosis responses corresponding to the electronic control units respectively in response to the response time.
5. The method of claim 1, wherein after said receiving, via said user datagram protocol, a diagnostic response generated by said electronic control unit based on said diagnostic request, said method further comprises:
receiving a secondary diagnosis response generated by the electronic control unit based on the diagnosis request through the user datagram protocol, wherein the secondary diagnosis response is the same as the diagnosis response;
and sending the secondary diagnosis response to the diagnosis equipment through the user datagram protocol.
6. The method of claim 1, wherein obtaining the diagnostic request sent by the diagnostic device via a user datagram protocol comprises:
and acquiring the diagnosis request sent by the diagnosis equipment through a user datagram protocol in response to that the time difference with the time of last receiving the diagnosis request reaches a preset time difference.
7. A diagnostic apparatus for a vehicle, characterized in that the apparatus comprises an acquisition unit, a first transmission unit, a first reception unit, and a second transmission unit:
the acquisition unit is used for acquiring a diagnosis request sent by diagnosis equipment through a user datagram protocol, and the diagnosis request is used for requesting to diagnose an electronic control unit in a vehicle;
the first sending unit is used for sending the diagnosis requests to a plurality of electronic control units in the vehicle simultaneously through the user datagram protocol;
the first receiving unit is configured to receive, through the user datagram protocol, the diagnosis responses generated by the plurality of electronic control units based on the diagnosis request;
the second sending unit is configured to send the diagnosis response to the diagnosis device through the user datagram protocol.
8. A computer device, the computer device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the diagnostic method for a vehicle of any one of claims 1-6 according to instructions in the program code.
9. A computer-readable storage medium characterized in that the computer-readable storage medium stores a computer program for executing the diagnostic method for a vehicle of any one of claims 1 to 6.
10. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the diagnostic method for a vehicle of any one of claims 1-6.
CN202211235304.7A 2022-10-10 2022-10-10 Diagnosis method for vehicle and related device Pending CN115542883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211235304.7A CN115542883A (en) 2022-10-10 2022-10-10 Diagnosis method for vehicle and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211235304.7A CN115542883A (en) 2022-10-10 2022-10-10 Diagnosis method for vehicle and related device

Publications (1)

Publication Number Publication Date
CN115542883A true CN115542883A (en) 2022-12-30

Family

ID=84732786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211235304.7A Pending CN115542883A (en) 2022-10-10 2022-10-10 Diagnosis method for vehicle and related device

Country Status (1)

Country Link
CN (1) CN115542883A (en)

Similar Documents

Publication Publication Date Title
CN111555953B (en) Remote diagnosis method, device and system based on vehicle-mounted Ethernet and TSP (Total suspended particulate) server
US7623472B2 (en) Dynamic peer application discovery
CN110012083B (en) Data transmission method, server and data transmission device
CN111866063B (en) Online updating system, method and device for AI algorithm of industrial Internet of things
CN113157466A (en) Message pushing method, device, system, electronic equipment and storage medium
CN113905050B (en) Method, device and system for detecting internet access information
CN111884875A (en) Offline device determination method and device
CN111787031B (en) Method for sending control instruction of Internet of things equipment based on distributed technology
CN107613023B (en) Equipment connection method and device
CN107819599B (en) Message processing method and device
CN117155829A (en) Heartbeat detection method, device and system of network card, electronic equipment and storage medium
CN115542883A (en) Diagnosis method for vehicle and related device
CN117014514A (en) Scheduling method, device, equipment and medium of vehicle cloud communication gateway
CN107071038B (en) Method and device for transmitting multimedia data
CN111385324A (en) Data communication method, device, equipment and storage medium
CN111565235A (en) Method and device for obtaining address of multimedia message service server
CN115695497A (en) Diagnostic data remote transmission method and device, electronic equipment and medium
CN108989467B (en) Centralized addressing method
CN112995095B (en) Data processing method, device and computer readable storage medium
EP1780942A1 (en) Method for automatically discovering a bus system in a multipoint transport network, multipoint transport network and network node
CN110890989A (en) Channel connection method and device
CN115499791B (en) Service-oriented communication method, device, electronic equipment and storage medium
CN114500660B (en) Request processing method, device, equipment and computer readable storage medium
WO2024001564A1 (en) Configuration data refreshing method, apparatus, system, storage medium, and electronic apparatus
CN109302375A (en) Access the method and device of network protocol multi-media sub-system IMS system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination