Vehicle diagnosis method, vehicle diagnosis system, electronic equipment and computer readable storage medium
A dual diagnostic arbitration system with a remote diagnostic controller and target electronic controller resolves conflicts in vehicles without gateways, enhancing diagnostic reliability and preventing failures.
Patent Information
- Application Number
- CN202510540119.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-07-15
AI Technical Summary
In vehicles without gateways, multiple diagnostic access points may easily lead to diagnostic execution conflicts when accessing the vehicle at the same time, and the prior art lacks an effective diagnostic arbitration strategy.
The remote diagnostic controller and the target electronic controller are introduced as two diagnostic arbitration systems. By switching and rejecting diagnostic requests, the diagnosis failure is avoided and the reliability of diagnostic arbitration is improved.
It effectively avoids diagnostic execution conflicts caused by multiple diagnostic access points, and improves the reliability and success rate of diagnosis.
Smart Images

Figure CN120315420A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicles, and in particular, to a vehicle diagnosis method, a vehicle diagnosis system, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the development of the intelligentization and networking of automotive electrical systems, the popularization of high-performance in-vehicle chips, and the application of complex in-vehicle software, on the basis of traditional local diagnosis, the business scenario of remote diagnosis has been extended, which makes the remote diagnosis function increasingly important in vehicle function development.
[0003] In the related art, for a vehicle diagnosis system with local diagnosis and remote diagnosis, on the premise that the vehicle has a gateway, priority processing is performed according to a set of or multiple sets of diagnostic IDs and the diagnostic ID path. For models without a gateway, simultaneous access to the vehicle by multiple diagnostic access points will inevitably cause certain diagnostic execution conflicts. Therefore, for models without a gateway, it is very crucial to formulate a reasonable diagnostic arbitration strategy. Summary of the Invention
[0004] The present invention aims to at least solve one of the technical problems existing in the prior art. For this purpose, the present invention proposes a vehicle diagnosis method. For local diagnosis and remote diagnosis access, two diagnostic arbitration systems / conflict decision-makers are provided, namely a remote diagnosis controller and a target electronic controller, to avoid diagnostic failures caused by multiple diagnostic access situations.
[0005] The present invention further proposes a vehicle diagnosis system.
[0006] The present invention further proposes an electronic device.
[0007] The present invention further proposes a computer-readable storage medium.
[0008] According to the vehicle diagnosis method of the first aspect embodiment of the present invention, the method includes the following steps: receiving a target diagnosis request; obtaining the diagnostic modes of the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed based on the target diagnosis request; according to the diagnostic modes of the remote diagnosis controller and the target electronic controller, the remote diagnosis controller and the target electronic controller switch to the target diagnosis request; or, the remote diagnosis controller and the target electronic controller refuse to switch to the target diagnosis request; or, the remote diagnosis controller switches to the target diagnosis request and the target electronic controller refuses to switch to the target diagnosis request.
[0009] According to the vehicle diagnosis method of an embodiment of the present invention, for a vehicle model without a gateway, when facing local diagnosis and remote diagnosis access, two diagnosis arbitration systems and conflict decision-makers are provided, namely a remote diagnosis controller and a target electronic controller, which improves the reliability of diagnosis arbitration and avoids diagnosis failures caused by various diagnosis access situations.
[0010] According to some embodiments of the present invention, the target diagnosis request is a remote diagnosis request or a local diagnosis request; the method further includes: when a remote diagnosis request is received; if the remote diagnosis controller of the vehicle to be diagnosed is in the local diagnosis mode, the remote diagnosis controller and the target electronic controller maintain the current diagnosis mode; if the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in the non-local diagnosis mode, the remote diagnosis controller and the target electronic controller switch to the remote diagnosis mode; if the remote diagnosis controller of the vehicle to be diagnosed is in the non-local diagnosis mode, and the target electronic controller is in the local diagnosis mode, the remote diagnosis controller switches to the remote diagnosis mode, and the target electronic controller maintains the current local diagnosis mode.
[0011] According to some embodiments of the present invention, the method further includes: if the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in the non-local diagnosis mode, the remote diagnosis controller first switches to the remote diagnosis mode, and the remote diagnosis controller sends a routine service instruction to request and respond to the target electronic controller to switch to the remote diagnosis mode and perform diagnosis; if the remote diagnosis controller of the vehicle to be diagnosed is in the non-local diagnosis mode, and the target electronic controller is in the local diagnosis mode, the remote diagnosis controller switches to the remote diagnosis mode, the target electronic controller maintains the current local diagnosis mode, and the remote diagnosis controller can send a routine service instruction to request and respond to any target electronic controller other than the target electronic controller to switch to the remote diagnosis mode and perform diagnosis.
[0012] According to some embodiments of the present invention, the target diagnosis request is a local diagnosis request or a local diagnosis request; the method further includes: when a local diagnosis request is received; if the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in the non-remote diagnosis mode, the remote diagnosis controller and the target electronic controller switch to the remote diagnosis mode; if the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in the remote diagnosis mode, the remote diagnosis controller maintains the current remote diagnosis mode.
[0013] According to some embodiments of the present invention, the target diagnostic request is one of n groups of diagnostic methods, and each group of the diagnostic methods has a network segment identifier. The method further includes: when the remote diagnostic controller receives a diagnostic request sent through one of the network segment identifiers, the remote diagnostic controller is in the diagnostic method corresponding to the network segment identifier; and when the target electronic controller receives a diagnostic request sent through one of the network segment identifiers, the target electronic controller is in the diagnostic method corresponding to the network segment identifier.
[0014] According to some embodiments of the present invention, the target diagnostic request is a local diagnostic request or a remote diagnostic request. The method further includes: the remote diagnostic controller defaults to the idle mode after power-on; when the remote diagnostic controller receives a local diagnostic request sent by a local diagnostic device through a local diagnostic network segment identifier, the remote diagnostic controller switches from the idle mode to the local diagnostic mode; when the remote diagnostic controller receives a remote diagnostic request sent by itself through a remote diagnostic network segment identifier, the remote diagnostic controller switches from the idle mode to the remote diagnostic mode; when the remote diagnostic controller is in one of the local diagnostic mode and the remote diagnostic mode, and receives the target diagnostic request as the other of the local diagnostic mode and the remote diagnostic mode, the remote diagnostic controller refuses to switch to the target diagnostic request mode until the remote diagnostic controller exits to the idle mode and then the switch can be successful.
[0015] According to some embodiments of the present invention, the target diagnostic request is a local diagnostic request or a remote diagnostic request. The method further includes: the target electronic controller defaults to the idle mode after power-on; when the target electronic controller receives an instruction sent by the remote diagnostic controller, it will switch to the remote diagnostic mode, and the remote diagnostic controller performs diagnostic communication with the target electronic controller by sending a remote diagnostic network segment identifier; when the target electronic controller receives a local diagnostic request sent by a local diagnostic device through a local diagnostic network segment identifier, it will switch to the local diagnostic mode.
[0016] A vehicle diagnostic system according to an embodiment of the second aspect of the present invention includes: a CAN controller; a remote control module including a remote diagnostic controller; an electronic control module including a plurality of electronic controllers; the CAN controller, the remote diagnostic controller are connected to the plurality of electronic controllers.
[0017] An electronic device according to an embodiment of the third aspect of the present invention, the electronic device includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enabling the electronic device to implement the vehicle diagnostic method.
[0018] A computer-readable storage medium according to an embodiment of the fourth aspect of the present invention stores a computer program thereon. When the computer program is executed by a processor of a computer, the computer is caused to execute the vehicle diagnosis method described above.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and / or additional aspects and advantages of the present invention will become apparent and be readily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 is a schematic flowchart of a vehicle diagnosis method according to an embodiment of the present invention; Figure 2 is a schematic flowchart of a vehicle accessing a remote diagnosis task according to an embodiment of the present invention; Figure 3 is a schematic flowchart of a vehicle accessing a local diagnosis task according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0021] Embodiments of the present invention will be described in detail below. The embodiments described with reference to the drawings are exemplary. Embodiments of the present invention will be described in detail below.
[0022] Reference will be made below to Figures 1 - 3 describe a vehicle diagnosis method according to an embodiment of the present invention.
[0023] In an exemplary system architecture of the present invention, it includes a terminal device, an in-vehicle controller, and a network. The terminal device may include various electronic devices such as a smart phone, a tablet computer, a laptop computer, and a desktop computer. The in-vehicle controller may include a CAN controller, a remote diagnosis controller, and several electronic controllers. The CAN controller and the remote diagnosis controller are connected to several electronic controllers. Among them, the CAN controller in the vehicle can be connected to a terminal device such as a local diagnosis device. The network may be a communication medium of various connection types capable of providing a communication link between the terminal device and the in-vehicle controller. According to the implementation requirements, the system architecture in the embodiments of the present invention may have any number of terminal devices, networks, and in-vehicle controllers. As an example, the embodiments of the present invention describe the technical solution by taking the remote diagnosis controller as a TBOX and the local diagnosis device as an OBD device.
[0024] As Figure 1 shown, the vehicle diagnosis method includes the following steps: S1. Receive a target diagnosis request; S2. Obtain the diagnostic modes of the remote diagnostic controller and the target electronic controller of the vehicle to be diagnosed based on the target diagnostic request; S3. According to the diagnostic modes of the remote diagnostic controller and the target electronic controller, the remote diagnostic controller and the target electronic controller switch to the target diagnostic request and perform response and diagnosis for the diagnosis; or, the remote diagnostic controller and the target electronic controller refuse to switch to the target diagnostic request; or, the remote diagnostic controller switches to the target diagnostic request and the target electronic controller refuses to switch to the target diagnostic request.
[0025] Specifically, first, the vehicle-end controller of the vehicle to be diagnosed receives the target diagnostic request. As an example, the target diagnostic request in this embodiment may include: a request for local diagnosis of the vehicle to be diagnosed, and a request for remote diagnosis of the vehicle to be diagnosed. Among them, the vehicle to be diagnosed in this embodiment includes but is not limited to: fully autonomous driving vehicles, semi-autonomous driving vehicles, and ordinary motor-driven vehicles.
[0026] Then, obtain the diagnostic modes of the remote diagnostic controller and the target electronic controller in the vehicle to be diagnosed based on the target diagnostic request. As an example, the diagnostic mode of the remote diagnostic controller in this embodiment may include: idle mode, remote diagnostic mode, and local diagnostic mode. And, the diagnostic mode of the target electronic controller may include: idle mode, remote diagnostic mode, and local diagnostic mode.
[0027] According to the current diagnostic modes of the remote diagnostic controller and the target electronic controller, make the remote diagnostic controller and the target electronic controller enter or refuse to enter the target diagnostic request, or make the remote diagnostic controller enter the target diagnostic request and the target electronic controller refuse to enter the target diagnostic request.
[0028] That is to say, the remote diagnostic controller and the electronic controller are the main bodies for judging which diagnostic mode the controller is in. According to the current diagnostic modes of the remote diagnostic controller and the target electronic controller and the target diagnostic request, judge whether the remote diagnostic controller and the target electronic controller maintain the current diagnostic mode, or enter the target diagnostic request, or the remote diagnostic controller enters the target diagnostic request while the target electronic controller maintains the current diagnostic mode.
[0029] It can be seen from this that for the vehicle models without a gateway in this embodiment, when performing vehicle diagnosis, the priority distinction of multiple diagnostic methods is no longer carried out, but multiple diagnostic methods are placed at the same priority. At the same time, under the same priority, this embodiment can perform corresponding diagnosis on the vehicle to be diagnosed in the order of receiving the target diagnostic request, so as to avoid certain diagnostic execution conflicts caused by multiple diagnostic access points accessing the vehicle at the same time.
[0030] According to some embodiments of the present invention, the target diagnosis request is a remote diagnosis request or a local diagnosis request. As Figure 2 shown, the method further includes: When a remote diagnosis request is received; If the remote diagnosis controller of the vehicle to be diagnosed is in the local diagnosis mode, the remote diagnosis controller and the target electronic controller maintain the current diagnosis mode; If the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in a non-local diagnosis mode, the remote diagnosis controller and the target electronic controller switch to the remote diagnosis mode; If the remote diagnosis controller of the vehicle to be diagnosed is in a non-local diagnosis mode, and the target electronic controller is in the local diagnosis mode, the remote diagnosis controller switches to the remote diagnosis mode, and the target electronic controller maintains the current local diagnosis mode.
[0031] Specifically, since the remote diagnosis controller is an interaction node between the vehicle end and the cloud, that is, the interface between the vehicle end and the cloud, when the remote diagnosis controller receives a remote diagnosis request, the following three situations are implemented: If the remote diagnosis controller of the vehicle to be diagnosed is in the local diagnosis mode, the remote diagnosis controller rejects the remote diagnosis request. At this time, any electronic controller in the vehicle end, including the target electronic controller, cannot be remotely diagnosed, that is, the remote diagnosis controller and the target electronic controller maintain the current diagnosis mode.
[0032] If both the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in a non-local diagnosis mode, that is, the remote diagnosis controller and the target electronic controller are in the idle mode, the remote diagnosis controller can switch to the remote diagnosis mode. At this time, the target electronic controller can be controlled to switch from the idle mode to the remote diagnosis mode.
[0033] If the remote diagnosis controller of the vehicle to be diagnosed is in a non-local diagnosis mode and the target electronic controller is in the local diagnosis mode, the target electronic controller maintains the current diagnosis mode, while the remote diagnosis controller can switch to the remote diagnosis mode. Then, the remote diagnosis controller can control the electronic controllers other than the target electronic controller to perform remote diagnosis.
[0034] As an example, Scenario 1: Local diagnosis is accessed first. Assume that there is a TBOX and 5 ECUs (ABCDE) in the subnet segment. If the target ECU for local diagnosis is the TBOX, at this time the TBOX is in the local diagnosis mode, and the OBD diagnostic device communicates with the TBOX for diagnosis. If a remote diagnosis task accesses at this time, the TBOX rejects the remote diagnosis request. At this time, any electronic controller in the vehicle end (ABCDE cannot be remotely diagnosed).
[0035] Scenario 2: Assume that there is a TBOX and five ECUs named A, B, C, D, and E in a subnetwork segment. At this time, the TBOX is in the idle mode. If a remote diagnostic task is accessed at this time and the target ECU for diagnosis is A, and A is in the idle mode at this time, the remote diagnostic controller switches to the remote diagnostic mode. At this time, it can control A to switch from the idle mode to the remote diagnostic mode.
[0036] Scenario 3: Local diagnosis is accessed first. Assume that there is a TBOX and five ECUs named A, B, C, D, and E in a subnetwork segment. If the target ECU for local diagnosis is A and A is in the local diagnostic mode at this time, the OBD diagnostic device performs diagnostic communication with A through the in-vehicle CAN controller. If a remote diagnostic task is accessed at this time, A rejects the remote diagnostic request. However, at this time, the TBOX can remotely diagnose the four electronic controllers B, C, D, and E.
[0037] According to some embodiments of the present invention, the method further includes: If the remote diagnostic controller and the target electronic controller of the vehicle to be diagnosed are in a non-local diagnostic mode, the remote diagnostic controller first switches to the remote diagnostic mode, and the remote diagnostic controller sends a request and response for the routine service instruction to switch the target electronic controller to the remote diagnostic mode and perform diagnosis; If the remote diagnostic controller of the vehicle to be diagnosed is in a non-local diagnostic mode and the target electronic controller is in the local diagnostic mode, the remote diagnostic controller switches to the remote diagnostic mode, the target electronic controller maintains the current local diagnostic mode, and the remote diagnostic controller can send a request and response for the routine service instruction to switch any target electronic controller other than the target electronic controller to the remote diagnostic mode and perform diagnosis.
[0038] As an example, for Scenario 2 above, when the TBOX is in the idle mode and a remote diagnostic request signal is received from the cloud, the TBOX switches from the idle mode to the remote diagnostic mode. At this time, since A is in the idle mode, the TBOX sends a request and response for Routine Service 31 to let A switch to the remote diagnostic mode and perform diagnosis.
[0039] For Scenario 3 above, when the TBOX is in the idle mode and A is in the local diagnostic mode, when remote diagnosis is accessed, A rejects the remote diagnostic request. When the TBOX receives the remote diagnostic request signal, it will switch from the idle mode to the remote diagnostic mode and send a request for Routine Service 31 to let the electronic controllers other than A switch to the remote diagnostic mode.
[0040] Among them, the TBOX needs to send 31 routine service instructions to enable the target ECU to enter or exit the remote diagnostic mode. The OBD diagnostic device maintains the local diagnostic mode of the target ECU through the diagnostic online message. If the OBD diagnostic device does not send the diagnostic online message, the target ECU automatically exits the local diagnostic mode and returns to the idle mode.
[0041] According to some embodiments of the present invention, the target diagnostic request is a local diagnostic request or a local diagnostic request. As Figure 3 shown, the method further includes: When receiving a local diagnostic request; If the remote diagnostic controller and the target electronic controller of the vehicle to be diagnosed are in the non-remote diagnostic mode, the remote diagnostic controller and the target electronic controller switch to the remote diagnostic mode; If the remote diagnostic controller and the target electronic controller of the vehicle to be diagnosed are in the remote diagnostic mode, the remote diagnostic controller maintains the current remote diagnostic mode.
[0042] As an example, when the TBOX and the target electronic controller A are in the idle mode, if local diagnosis is accessed at this time, the TBOX and the target controller A switch from the idle mode to the local diagnostic mode and perform diagnostic responses and requests.
[0043] When the TBOX and the target electronic controller A are in the remote diagnostic mode, if local diagnosis is accessed at this time, both the TBOX and the target electronic controller A maintain the current diagnostic mode. As an example, assume that there is a TBOX and 5 ECUs in the subnet segment, namely ABCDE. If the target ECU for remote diagnosis is A, at this time the TBOX and A are in the remote diagnostic mode, and the TBOX and A perform diagnostic communication. If a local diagnosis access by an OBD diagnostic device occurs at this time, the TBOX and A reject the local diagnostic request. However, at this time, the OBD diagnostic device can diagnose the BCDE controllers.
[0044] Therefore, in this embodiment, under the same priority, the vehicles to be diagnosed can be diagnosed correspondingly according to the time sequence of receiving the target diagnostic requests. Moreover, for the diagnostic situations of different target controllers, remote diagnosis and local diagnosis can coexist in a specific scenario and are not mutually exclusive.
[0045] According to some embodiments of the present invention, the target diagnostic request is one of n groups of diagnostic methods, and each group of diagnostic methods has a network segment identifier. The method further includes: when the remote diagnostic controller receives a diagnostic request sent through a network segment identifier, the remote diagnostic controller is in the diagnostic method corresponding to the network segment identifier; and when the target electronic controller receives a diagnostic request sent through a network segment identifier, the target electronic controller is in the diagnostic method corresponding to the network segment identifier.
[0046] Thus, for a vehicle model without a gateway, one diagnostic method corresponds to a set of diagnostic IDs. As an example, in this embodiment, two sets of diagnostic IDs are used, that is, the local diagnostic method has a local diagnostic network segment identifier and a remote diagnostic network segment identifier.
[0047] According to some embodiments of the present invention, the target diagnostic request is a local diagnostic request or a remote diagnostic request, and the method further includes: The remote diagnostic controller defaults to the idle mode after power-on. When the remote diagnostic controller receives a local diagnostic request sent from the local diagnostic device through the local diagnostic network segment identifier, the remote diagnostic controller switches from the idle mode to the local diagnostic mode. When the remote diagnostic controller receives a remote diagnostic request sent by itself through the remote diagnostic network segment identifier, the remote diagnostic controller switches from the idle mode to the remote diagnostic mode. When the remote diagnostic controller is in one of the local diagnostic mode and the remote diagnostic mode, and receives a target diagnostic request that is the other of the local diagnostic mode and the remote diagnostic mode, the remote diagnostic controller refuses to switch to the target diagnostic request mode until the remote diagnostic controller exits to the idle mode and then the switch can be successful.
[0048] That is to say, the remote diagnostic controller has an idle mode, a local diagnostic mode, and a remote diagnostic mode. The mode occupation adopts a time sequence mechanism. The applicant can only apply successfully when the remote diagnostic controller is in the idle mode. Once the application is successful, until the applicant no longer uses it and exits to the idle mode, the later applicant can apply successfully. And, if the remote diagnostic controller receives a local diagnostic request sent by the OBD diagnostic device through the local diagnostic network segment identifier, it is determined as local diagnosis; if the remote diagnostic controller receives a remote diagnostic request sent by itself through the remote diagnostic network segment identifier, it is determined as remote diagnosis.
[0049] According to some embodiments of the present invention, the target diagnostic request is a local diagnostic request or a remote diagnostic request, and the method further includes: the target electronic controller defaults to the idle mode after power-on; when the target electronic controller receives an instruction sent from the remote diagnostic controller, it will switch to the remote diagnostic mode, and the remote diagnostic controller performs diagnostic communication with the target electronic controller by sending the remote diagnostic network segment identifier; when the target electronic controller receives a local diagnostic request sent from the local diagnostic device through the local diagnostic network segment identifier, it will switch to the local diagnostic mode.
[0050] Similarly, the target electronic controller is designed the same as the remote diagnostic controller and also has an idle mode, a local diagnostic mode, and a remote diagnostic mode. When the remote diagnostic controller has a remote diagnostic task, the remote diagnostic controller sends a routine diagnostic request for 31 cases to switch the target electronic controller to the remote diagnostic mode. The remote diagnostic controller sends a remote diagnostic network segment identifier to conduct diagnostic communication with the target electronic controller. When an OBD diagnostic device is connected, the target electronic controller receives the local diagnostic network segment identifier and switches to the local diagnostic mode.
[0051] Thus, the diagnostic strategy of the present invention is specifically as follows: When remote diagnosis is accessed, the remote diagnostic controller determines whether it is in the local diagnostic mode. If the remote diagnostic controller is not in the local diagnostic mode, the remote diagnostic controller switches to the remote diagnostic mode. At this time, it is judged what diagnostic mode the target electronic controller of the remote diagnosis is in: 1. If the target electronic controller is in the local diagnostic mode, the target electronic controller maintains the local diagnostic mode, and the remote diagnostic controller can control other electronic controllers to conduct remote diagnosis. By sending a service routine for 31 cases, the electronic controller is switched to the remote diagnostic mode, and a diagnostic request and response are made using the remote diagnostic network segment identifier; 2. If the target electronic controller is in the idle mode, the remote diagnostic controller can control the target electronic controller to switch to the remote diagnostic mode, and a diagnostic request and response are made using the remote diagnostic network segment identifier; if the remote diagnostic controller is in the local diagnostic mode, the remote diagnostic controller refuses to enter the remote diagnostic mode, and the remote diagnostic task cannot be executed.
[0052] When local diagnosis is accessed, the remote diagnostic controller and the target electronic controller determine whether they are in the remote diagnostic mode. If the remote diagnostic controller and the target electronic controller are not in the remote diagnostic mode, the remote diagnostic controller and the target electronic controller switch to the local diagnostic mode, and a diagnostic request and response are made using the local diagnostic network segment identifier; if the remote diagnostic controller and the target electronic controller are in the remote diagnostic mode, they refuse to enter the local diagnostic mode, and the local diagnostic task cannot be executed.
[0053] Therefore, for a vehicle model without a gateway, when facing local diagnosis and remote diagnosis access, based on the local diagnosis network segment identifier and the remote diagnosis network segment identifier, the present invention is provided with two diagnostic arbitration systems and conflict decision-makers, namely, a remote diagnosis controller and a target electronic controller, which improves the reliability of diagnostic arbitration, can be applied to a variety of diagnostic application scenarios, avoids diagnostic failures caused by various diagnostic access situations, and at the same time the diagnostic arbitration strategy is simple and effective. The vehicle diagnostic system according to the second aspect embodiment of the present invention includes: a CAN controller; a remote control module including a remote diagnosis controller; and an electronic control module including a plurality of electronic controllers. The CAN controller, the remote diagnosis controller are connected to the plurality of electronic controllers.
[0054] The electronic device according to the third aspect embodiment of the present invention, the electronic device includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enabling the electronic device to implement the vehicle diagnostic method.
[0055] The computer-readable storage medium according to the fourth aspect embodiment of the present invention, on which a computer program is stored, when the computer program is executed by the processor of the computer, enabling the computer to execute the vehicle diagnostic method.
[0056] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention.
[0057] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "schematic embodiments", "examples", "specific examples", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example.
[0058] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirits of the present invention, and the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A vehicle diagnosis method, characterized in that, The method includes the following steps: Receive a target diagnosis request; Obtain the diagnosis modes of the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed based on the target diagnosis request; According to the diagnosis modes of the remote diagnosis controller and the target electronic controller, the remote diagnosis controller and the target electronic controller switch to the target diagnosis request and respond; or, the remote diagnosis controller and the target electronic controller refuse to switch to the target diagnosis request; or, the remote diagnosis controller switches to the target diagnosis request and the target electronic controller refuses to switch to the target diagnosis request.
2. The vehicle diagnosis method according to claim 1, wherein, The target diagnosis request is a remote diagnosis request or a local diagnosis request; the method further includes: When a remote diagnosis request is received; If the remote diagnosis controller of the vehicle to be diagnosed is in the local diagnosis mode, the remote diagnosis controller and the target electronic controller maintain the current diagnosis mode; If the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in a non-local diagnosis mode, the remote diagnosis controller and the target electronic controller switch to the remote diagnosis mode; If the remote diagnosis controller of the vehicle to be diagnosed is in a non-local diagnosis mode, and the target electronic controller is in the local diagnosis mode, the remote diagnosis controller switches to the remote diagnosis mode, and the target electronic controller maintains the current local diagnosis mode.
3. The vehicle diagnosis method according to claim 2, wherein, The method further includes: If the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in a non-local diagnosis mode, the remote diagnosis controller first switches to the remote diagnosis mode, and the remote diagnosis controller sends a 31 routine service instruction to request and respond to the target electronic controller to switch to the remote diagnosis mode and perform diagnosis; If the remote diagnosis controller of the vehicle to be diagnosed is in a non-local diagnosis mode, and the target electronic controller is in the local diagnosis mode, the remote diagnosis controller switches to the remote diagnosis mode, the target electronic controller maintains the current local diagnosis mode, and the remote diagnosis controller can send a 31 routine service instruction to request and respond to any target electronic controller other than the target electronic controller to switch to the remote diagnosis mode and perform diagnosis.
4. The vehicle diagnosis method according to claim 1, characterized in that, The target diagnosis request is a local diagnosis request or a local diagnosis request; the method further includes: When a local diagnosis request is received; If the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in a non-remote diagnosis mode, the remote diagnosis controller and the target electronic controller switch to the remote diagnosis mode; If the remote diagnosis controller and the target electronic controller of the vehicle to be diagnosed are in the remote diagnosis mode, the remote diagnosis controller and the target electronic controller maintain the current remote diagnosis mode.
5. The vehicle diagnosis method according to claim 1, wherein The target diagnosis request is one of n groups of diagnosis methods, and each group of the diagnosis methods has a network segment identifier, the method further includes: When the remote diagnostic controller receives a diagnostic request sent through one of the network segment identifiers, the remote diagnostic controller is in the diagnostic mode corresponding to the network segment identifier; and, When the target electronic controller receives a diagnostic request sent through one of the network segment identifiers, the target electronic controller is in the diagnostic mode corresponding to the network segment identifier.
6. The vehicle diagnosis method according to claim 5, wherein The target diagnostic request is a local diagnostic request or a remote diagnostic request, and the method further includes: The remote diagnostic controller defaults to the idle mode after power-on; When the remote diagnostic controller receives a local diagnostic request sent by a local diagnostic device through the local diagnostic network segment identifier, the remote diagnostic controller switches from the idle mode to the local diagnostic mode; When the remote diagnostic controller receives a remote diagnostic request sent by itself through the remote diagnostic network segment identifier, the remote diagnostic controller switches from the idle mode to the remote diagnostic mode; When the remote diagnostic controller is in one of the local diagnostic mode and the remote diagnostic mode, and receives the target diagnostic request as the other of the local diagnostic mode and the remote diagnostic mode, the remote diagnostic controller refuses to switch to the target diagnostic request mode until the remote diagnostic controller exits to the idle mode and then can switch successfully.
7. The vehicle diagnosis method according to claim 5, wherein The target diagnostic request is a local diagnostic request or a remote diagnostic request, and the method further includes: The target electronic controller defaults to the idle mode after power-on; When the target electronic controller receives an instruction sent by the remote diagnostic controller, it will switch to the remote diagnostic mode, and the remote diagnostic controller performs diagnostic communication with the target electronic controller by sending the remote diagnostic network segment identifier; When the target electronic controller receives a local diagnostic request sent by a local diagnostic device through the local diagnostic network segment identifier, it will switch to the local diagnostic mode.
8. A vehicle diagnostic system, characterized in that, Including: CAN controller; Remote control module, including a remote diagnostic controller; Electronic control module, including several electronic controllers; the CAN controller, the remote diagnostic controller are connected to several electronic controllers.
9. An electronic device, characterized in that, The electronic device includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enabling the electronic device to implement the vehicle diagnostic method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored thereon, when the computer program is executed by a processor of a computer, causing the computer to execute the vehicle diagnostic method according to any one of claims 1 to 7.