Diagnostic device, diagnostic system, method, device, equipment, medium and vehicle

By replacing the OBD interface in vehicle diagnosis, the dependence problem on specific wiring harnesses in the prior art is solved, and a wider range of vehicle diagnostic applications and higher diagnostic flexibility and efficiency are achieved.

CN119536195APending Publication Date: 2025-02-28BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311091091.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

Existing vehicle diagnostic methods rely on specific wiring harnesses and OBD diagnostic ports, resulting in limited application range.

Method used

By replacing the traditional OBD interface with a USB interface, the USB protocol-based communication connection between the diagnostic device and the external diagnostic terminal is realized, and the application scope of vehicle diagnostics is expanded.

Benefits of technology

Reliance on specific wiring harnesses is avoided, the application scope of diagnostic devices and methods is expanded, and the flexibility and efficiency of vehicle diagnosis is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention provides a diagnosis device, a diagnosis system, a diagnosis method, a diagnosis device, equipment, a medium and a vehicle, the diagnosis device comprises a first diagnosis module, the first diagnosis module comprises a first interface and a second interface, and the first diagnosis module is connected with an external diagnosis terminal through the first interface; the first interface comprises an interface generated through a universal serial bus (USB) protocol; the first diagnosis module is used for receiving a diagnosis request of an external diagnosis terminal and sending the diagnosis request to the second diagnosis module; the second diagnosis module comprises a third interface, one end of the second diagnosis module is connected with the second interface through the third interface, the other end of the second diagnosis module is connected with the to-be-diagnosed module, and the second diagnosis module is used for receiving the diagnosis request and obtaining a diagnosis result of the to-be-diagnosed module based on the diagnosis request; and sending the diagnosis result to the first diagnosis module. Through the device, the application range of the diagnosis device and the diagnosis method can be expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle diagnosis technology, and in particular to a diagnostic device, a diagnostic system, a method, a device, a equipment, a medium and a vehicle. Background Art

[0002] At present, the vehicle diagnosis method usually needs to be completed through the OBD diagnostic port in the on-board diagnostic system (OBD), and the diagnostic port usually requires a wiring harness corresponding to the OBD diagnostic port to be connected to complete the vehicle diagnosis. Therefore, the diagnostic method will cause dependence on a specific wiring harness during the diagnostic process, resulting in a smaller application scope of the existing diagnostic method. Summary of the invention

[0003] The present application provides a diagnostic device, a diagnostic system, a method, a device, a equipment, a medium and a vehicle, which can expand the application scope of vehicle diagnosis by adopting a USB interface instead of a traditional OBD interface.

[0004] In a first aspect, an embodiment of the present application provides a diagnostic device, the device comprising:

[0005] A first diagnostic module, the first diagnostic module comprising a first interface and a second interface, the first diagnostic module being connected to an external diagnostic terminal via the first interface, the first interface comprising an interface generated by a universal serial bus USB protocol;

[0006] The first diagnostic module is used to receive the diagnostic request of the external diagnostic terminal and send the diagnostic request to the second diagnostic module through the second interface;

[0007] A second diagnostic module, the second diagnostic module includes a third interface, one end of the second diagnostic module is connected to the second interface via the third interface, and the other end is connected to the module to be diagnosed, the second diagnostic module is used to receive the diagnostic request, and obtain the diagnostic result of the module to be diagnosed based on the diagnostic request, and send the diagnostic result to the first diagnostic module.

[0008] In a second aspect, an embodiment of the present application provides a diagnostic system, the system comprising the diagnostic device in any one embodiment of the first aspect, and an external diagnostic terminal connected to the diagnostic device;

[0009] A fifth interface is provided in the external diagnostic terminal, and the external diagnostic terminal is connected to the diagnostic device via the fourth interface. The fifth interface includes an interface generated by a universal serial bus (USB) protocol, and the first interface includes an interface generated by a universal serial bus (USB) protocol.

[0010] In a third aspect, an embodiment of the present application provides a diagnostic method, which is applied to a diagnostic device in any one of the embodiments of the first aspect, and the method comprises:

[0011] receiving a diagnostic request sent by the first diagnostic module through the second interface;

[0012] diagnose the module to be diagnosed based on the diagnosis request, and obtain a diagnosis result corresponding to the diagnosis request;

[0013] The diagnostic result is sent to the first diagnostic module through the second interface, so that the first diagnostic module sends the diagnostic result to an external diagnostic terminal through the first interface.

[0014] In a fourth aspect, an embodiment of the present application provides a vehicle diagnostic device, the device comprising:

[0015] A first receiving module, used for receiving a diagnosis request sent by the first diagnosis module through the second interface;

[0016] A diagnosis module, configured to diagnose the module to be diagnosed based on the diagnosis request, and obtain a diagnosis result corresponding to the diagnosis request;

[0017] The first sending module is used to send the diagnosis result to the first diagnosis module through the second interface, so that the first diagnosis module sends the diagnosis result to the external diagnosis terminal through the first interface.

[0018] In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0019] When the processor executes the computer program instructions, the diagnostic method in any one of the embodiments of the first aspect is implemented.

[0020] In a sixth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, a diagnostic method as in any one of the embodiments in the third aspect is implemented.

[0021] In a seventh aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a diagnostic method as in any one of the embodiments in the third aspect above.

[0022] In an eighth aspect, an embodiment of the present application provides a vehicle, comprising: a diagnostic device as provided in the first aspect.

[0023] In the diagnostic device, diagnostic system, method, device, equipment, medium and vehicle provided in the embodiments of the present application, a communication connection based on a universal serial bus protocol can be realized between the diagnostic device and an external diagnostic device through a first diagnostic module, so that the diagnostic device can diagnose the vehicle using an external diagnostic terminal through a universal serial bus interface, and the second diagnostic module can further realize the acquisition of the diagnostic results of the module to be diagnosed in the vehicle, complete the diagnosis of the module to be diagnosed, avoid the problem of only being able to diagnose through the OBD diagnostic port, thereby causing dependence on a specific wiring harness, and can be based on a diagnostic device of the USB protocol, and adopt an interface through the USB protocol to connect to an external diagnostic terminal, thereby expanding the application scope of the diagnostic device and the diagnostic method. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0025] Figure 1 is a schematic diagram of the framework structure of a diagnostic device provided by an embodiment of the present application;

[0026] Figure 2 is a schematic diagram of the framework structure of a first diagnostic module provided by an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of the framework structure of a second diagnostic module provided by an embodiment of the present application;

[0028] Figure 4 It is a schematic diagram of the overall framework structure of a diagnostic device provided by an embodiment of the present application;

[0029] Figure 5 It is a schematic diagram of the framework structure of a diagnostic system provided by an embodiment of the present application;

[0030] Figure 6 is a flow chart of a diagnostic method provided by an embodiment of the present application;

[0031] Figure 7 is a structural schematic diagram of a vehicle diagnostic device provided by an embodiment of the present application;

[0032] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0034] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0035] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0036] In order to solve the problems of the prior art, the embodiments of the present application provide a diagnostic device, a diagnostic system, a method, a device, a equipment, a medium and a vehicle.

[0037] The following is an introduction to the diagnostic device provided in the embodiments of the present application.

[0038] Figure 1 A schematic diagram of the framework structure of a diagnostic device provided by an embodiment of the present application is shown. The diagnostic device includes: a first diagnostic module 1, the first diagnostic module 1 includes a first interface 111 and a second interface 12, the first diagnostic module 1 is connected to an external diagnostic terminal 4 through the first interface 111, and the first interface 111 includes an interface generated by a universal serial bus USB protocol; a second diagnostic module 2, the second diagnostic module 2 includes a third interface 23, one end of the second diagnostic module 2 is connected to the second interface 12 through the third interface 23, and the other end is connected to the module to be diagnosed 3.

[0039] In the disclosed embodiment, the diagnostic device may be arranged on the vehicle for diagnosing the whole vehicle fault. The first diagnostic module 1 may include a vehicle computer, the external diagnostic terminal 4 may be a diagnostic instrument, and the first diagnostic module 1 is used to receive a diagnostic request from the external diagnostic terminal 4 and send the diagnostic request to the second diagnostic module 2.

[0040] The first interface 111 is a virtual interface generated based on the USB protocol, and may include a virtual CAN interface 1111 and a USB Ethernet interface 1112, wherein the virtual CAN interface 1111 may be used to transmit CAN data based on the USB protocol, and the USB Ethernet interface 1112 may be used to transmit Ethernet data based on the USB protocol. Correspondingly, the diagnostic request includes CAN data or Ethernet data. Therefore, the first interface 111 may realize the connection between the external diagnostic terminal 4 and the diagnostic device based on the USB protocol, so that the diagnostic device may be connected and communicated through the USB interface.

[0041] The second diagnostic module 2 is used to receive a diagnostic request, and based on the diagnostic request, obtain the diagnostic result of the module to be diagnosed 3, and send the diagnostic result to the first diagnostic module 1. The second diagnostic module 2 may include the remaining functional modules on the vehicle except the vehicle computer, such as a brake test bench, an engine, a side slip test bench, and a lighting tester. The module to be diagnosed 3 is an electronic control unit (ECU) with the second diagnostic module 2. The second diagnostic module 2 and the module to be diagnosed 3 are connected via a CAN bus. The electronic control unit records the driving data of the vehicle, etc. By obtaining the diagnostic result of the electronic control unit, the diagnostic result of the second diagnostic module 2 can be obtained. After the second diagnostic module 2 obtains the diagnostic result, it is necessary to send the diagnostic result to the first diagnostic module 1 so that the first diagnostic module 1 feeds back the diagnostic result to the external diagnostic instrument, so that the tester can obtain the diagnostic result.

[0042] In this embodiment, the first diagnostic module 1 can realize the communication connection between the diagnostic device and the external diagnostic equipment based on the universal serial bus protocol, so that the diagnostic device can diagnose the vehicle using the external diagnostic terminal 4 through the universal serial bus interface, and the second diagnostic module 2 can further realize the acquisition of the diagnostic result of the module to be diagnosed 3 in the vehicle, complete the diagnosis of the module to be diagnosed 3, avoid the problem of only being able to diagnose through the OBD diagnostic port, thereby causing dependence on a specific wiring harness, and can be based on the USB protocol. The diagnostic device can be connected to the external diagnostic terminal 4 through the USB protocol interface, thereby expanding the application scope of the diagnostic device and the diagnostic method.

[0043] Figure 2A schematic diagram of the framework structure of the first diagnostic module provided by an embodiment of the present application is shown. In one embodiment of the present application, the first diagnostic module 1 includes a driver submodule 11 and a fourth interface (not shown) connected to each other, and the first interface 111 is arranged in the driver submodule 11, and the driver submodule 11 is used to establish a connection between the external diagnostic terminal 4 and the first diagnostic module 1 through the fourth interface (not shown). Among them, the external diagnostic terminal 4 and the first diagnostic module 1 can be connected through a virtual CAN bus based on the USB protocol, or through an Ethernet based on the USB protocol. In addition, the fourth includes a USB interface, which is a physical interface for realizing a cable connection between the first diagnostic module 1 and the external diagnostic terminal 4, so that the first diagnostic module 1 and the external diagnostic terminal 4 can complete a virtual CAN bus connection based on the USB protocol or an Ethernet connection based on the USB protocol on the basis of the cable connection.

[0044] In one embodiment of the present application, the first interface 111 includes a virtual CAN interface 1111 and a USB Ethernet interface 1112, and the driver submodule 11 also includes a USB driver unit 112. In this embodiment, since the virtual CAN interface 1111 and the USB Ethernet interface 1112 are both virtual interfaces, the driver submodule 11 is required to generate the virtual CAN interface 1111 and the USB Ethernet interface 1112 based on the USB protocol after the vehicle is powered on, so as to transmit CAN protocol data between the first diagnostic module 1 and the external diagnostic terminal 4 through the virtual CAN interface 1111, or transmit Ethernet protocol data between the first diagnostic module 1 and the external diagnostic terminal 4 through the USB Ethernet interface 1112.

[0045] In one embodiment of the present application, the second interface 12 includes a first CAN interface 122 and a first Ethernet interface 121, the first CAN interface 122 is used to establish a connection with the virtual CAN interface 1111, and the first Ethernet is used to establish a connection with the USB Ethernet interface 1112. It should be noted that the first diagnostic module 1 also includes a CAN driver and an Ethernet driver, and the first CAN interface 122 and the first Ethernet interface 121 are also virtual interfaces. After the diagnostic device is powered on, the first CAN interface 122 needs to be generated through the CAN driver, and the first Ethernet interface 121 needs to be generated through the Ethernet driver. In this embodiment, the second interface 12 can realize internal data forwarding in the first diagnostic module 1 and establish a connection between the first diagnostic module 1 and the second diagnostic module 2.

[0046] In one embodiment of the present application, the first diagnostic module 1 also includes a diagnostic service client 13, one end of the diagnostic service client 13 is connected to the virtual CAN interface 1111 and the USB Ethernet interface 1112, and the other end is connected to the first CAN interface 122 and the first Ethernet interface 121. In this embodiment, when the diagnostic service end receives a diagnostic request through the virtual CAN interface 1111 or the USB Ethernet interface 1112, it determines the data type of the diagnostic request, and sends the diagnostic request to the first CAN interface 122 when the data type is CAN data; when the data type is Ethernet data, the diagnostic request is sent to the first Ethernet interface 121. In addition, in the first diagnostic module 1, the diagnostic request of the USB Ethernet interface 1112 can also be directly sent to the first Ethernet interface 121 without going through the diagnostic service end.

[0047] In one embodiment of the present application, the diagnostic device also includes an Ethernet switch, one end of the Ethernet switch is connected to the second interface 12, and the other end is connected to the third interface 23, and the Ethernet switch is used to transmit Ethernet protocol data between the second interface 12 and the third interface 23; or the second interface 12 and the third interface 23 are connected via a CAN bus to realize the transmission of CAN protocol data between the second interface 12 and the third interface 23.

[0048] In this embodiment, the first diagnostic module 1 and the second diagnostic module 2 are both connected to the Ethernet switch, so that the Ethernet communication between the first diagnostic module 1 and the second diagnostic module 2 can be realized through the Ethernet switch. Alternatively, the first diagnostic module 1 and the second diagnostic module 2 are both connected through a CAN bus, so that the CAN communication between the first diagnostic module 1 and the second diagnostic module can be realized through the CAN bus.

[0049] Figure 3The schematic diagram of the framework structure of the second diagnostic module provided by an embodiment of the present application is shown. In an embodiment of the present application, the second diagnostic module 2 also includes a first diagnostic submodule 21 and a second diagnostic submodule 22, and there may be multiple second diagnostic submodules 22. The first diagnostic submodule 21 and the second diagnostic submodule 22 are both provided with a third interface 23, and the first diagnostic submodule 21 and the second diagnostic submodule 22 are both connected to the Ethernet switch through the third interface 23. Among them, the first diagnostic submodule 21 is used to receive the diagnostic request of the first diagnostic module 1 and forward the diagnostic request to the second diagnostic submodule 22; and in response to the diagnostic request, obtain the first diagnostic result of the first module to be diagnosed 313 connected to the first diagnostic submodule 21; the second diagnostic submodule 22 is used to respond to the diagnostic request, obtain the second diagnostic result of the second module to be diagnosed 323 connected to the second diagnostic submodule 22, and send the second diagnostic result to the first diagnostic submodule 21, so that the first diagnostic submodule 21 collects all the first diagnostic results and sends them together with the second diagnostic result to the first diagnostic module 1.

[0050] In one embodiment of the present application, the third interface 23 includes a second CAN interface 232 and a second Ethernet interface 231; the second CAN interface 232 is used to transmit CAN data with the first CAN interface 122; the second Ethernet interface 231 is used to transmit Ethernet data with the first Ethernet. In this embodiment, similar to the second interface 12, an Ethernet driver and a CAN driver are provided in the first diagnostic submodule 21 and the second diagnostic submodule 22, the Ethernet driver is used to generate the second Ethernet interface 231, and the CAN driver is used to generate the second CAN interface 232. Data transmission between the first diagnostic module 1, the first diagnostic submodule 21 and the second diagnostic submodule 22 can be achieved through the second CAN interface 232 and the second Ethernet interface 231.

[0051] In one embodiment of the present application, the first diagnostic submodule 21 further includes a diagnostic server 211, one end of the diagnostic server 211 is connected to the second CAN interface 232 in the first diagnostic submodule 21, and the other end is connected to the second Ethernet interface 231 in the first diagnostic submodule 21;

[0052] In this embodiment, the diagnostic server 211 is used to receive the diagnostic request through the second CAN interface 232 or the second Ethernet interface 231, and diagnose the first module to be diagnosed 313 connected to the first diagnostic submodule 21 to obtain a first diagnostic result. In addition, the diagnostic request is forwarded to the second diagnostic submodule, and the second diagnostic result fed back by the second diagnostic submodule 22 is received, and the first diagnostic result and the second diagnostic result are sent to the first diagnostic module 1.

[0053] In one embodiment of the present application, the second diagnostic submodule 22 further includes a diagnostic client 221, one end of the diagnostic client 221 is connected to the second CAN interface 232 in the second diagnostic submodule 22, and the other end is connected to the second Ethernet interface 231 in the second diagnostic submodule 22;

[0054] In this embodiment, the diagnostic client 221 is used to receive the diagnostic request through the second CAN interface 232 and the second Ethernet interface 231 in the second diagnostic submodule 22, and perform fault diagnosis on the second diagnostic module connected to the second diagnostic submodule 22 to obtain the second diagnostic result. Among them, the diagnostic request can be sent by the first diagnostic submodule 21, and accordingly, the second diagnostic submodule 22 can send the second diagnostic result to the first diagnostic submodule 21; the diagnostic request can also be sent by the first diagnostic module 1, and accordingly, the second diagnostic submodule 22 can send the second diagnostic result to the first diagnostic module 1.

[0055] Through the diagnostic client 221 and the diagnostic server 211, the vehicle fault diagnosis can be realized, and different types of diagnostic requests can be received, the transmission process of the diagnostic request and the diagnostic result can be completed, and the fault diagnosis based on the USB protocol can be realized.

[0056] In one embodiment of the present application, there are three different transmission modes for the diagnosis request in the diagnosis device. The following describes the transmission process of the diagnosis request and the diagnosis result of the diagnosis device in the above embodiment.

[0057] First, the diagnostic request passes through the following devices in sequence: virtual CAN interface 1111, diagnostic service client 13, first CAN interface 122, second CAN interface 232 in first diagnostic submodule 21 and diagnostic server 211, second CAN interface 232 in second diagnostic submodule 22 and diagnostic client 221.

[0058] Second, the diagnostic request passes through the following devices in sequence: USB Ethernet interface 1112, diagnostic service client 13, second Ethernet interface 231, second Ethernet interface 231 in the first diagnostic submodule 21 and diagnostic server 211, second Ethernet interface 231 in the second diagnostic submodule 22 and diagnostic client 221.

[0059] Third, the diagnostic request passes through the following devices in sequence: USB Ethernet interface 1112 , first Ethernet interface 121 , second Ethernet interface 231 in first diagnostic submodule 21 and diagnostic server 211 , second Ethernet interface 231 in second diagnostic submodule 22 and diagnostic client 221 .

[0060] Through the above-mentioned transmission method of the diagnostic request, different connection methods between the diagnostic device and the external diagnostic terminal 4 can be realized, so that data can be transmitted between the two through the CAN protocol and the Ethernet protocol, increasing the connection methods of the diagnostic device, thereby expanding the application scope of the diagnostic device.

[0061] The following is an introduction to the diagnostic system provided in the embodiments of the present application.

[0062] Figure 5 A schematic diagram of the framework structure of a diagnostic system provided by an embodiment of the present application is shown. The system includes a diagnostic device and an external diagnostic terminal 4 connected to the diagnostic device; a fifth interface is provided in the external diagnostic terminal 4, the external diagnostic terminal 4 is connected to the diagnostic device via the fourth interface (not shown), and the fifth interface includes an interface generated by a universal serial bus USB protocol.

[0063] In this embodiment, the external diagnostic terminal 4 can be a diagnostic instrument, in which a driver submodule 11 is provided, and the fifth interface is provided in the driver submodule 11. The driver submodule 11 also includes a USB driver unit 112, and the USB driver unit 112 is used to generate the fifth interface when the diagnostic instrument is detected to be powered on. The fifth interface includes a virtual CAN interface 1111 and a USB Ethernet interface 1112, the virtual CAN interface 1111 is used to connect to the virtual CAN interface 1111 in the first diagnostic module 1, and the USB Ethernet interface 1112 is used to connect to the USB Ethernet interface 1112 in the first diagnostic module 1, so as to realize the communication connection between the diagnostic instrument and the diagnostic device based on the USB protocol.

[0064] The following is an introduction to the diagnostic method provided in the embodiments of the present application.

[0065] Figure 6 FIG. 1 is a flow chart of a diagnostic method provided by an embodiment of the present application. Figure 4 As shown, the method may specifically include the following steps:

[0066] Step 601, receiving a diagnosis request sent by a first diagnosis module through a second interface;

[0067] In step 601, when implemented specifically, this step can be implemented by the second diagnostic module in the diagnostic device. The diagnostic request includes two types, one of which is a diagnostic request transmitted via the CAN protocol, which can be transmitted via the first CAN interface in the second interface. The other is a diagnostic request transmitted via the Ethernet protocol, which can be transmitted via the first Ethernet interface in the second interface.

[0068] Step 602, diagnosing the module to be diagnosed based on the diagnosis request, and obtaining a diagnosis result corresponding to the diagnosis request;

[0069] In one embodiment of the present application, step 602 further includes:

[0070] Diagnosing the first module to be diagnosed by the first diagnosis submodule to obtain a first diagnosis result of the first module to be diagnosed; and

[0071] sending the diagnosis request to the second diagnosis submodule through the first diagnosis submodule;

[0072] The second module to be diagnosed is diagnosed by the second diagnosis submodule to obtain a second diagnosis result of the second module to be diagnosed.

[0073] In this embodiment, the first diagnostic submodule and the second diagnostic submodule are both provided with a third interface, and the first diagnostic submodule and the second diagnostic submodule are both connected to the Ethernet switch through the third interface. The first diagnostic submodule is used to receive a diagnostic request from the first diagnostic module and forward the diagnostic request to the second diagnostic submodule; and to respond to the diagnostic request to obtain a first diagnostic result of the first module to be diagnosed connected to the first diagnostic submodule; the second diagnostic submodule is used to respond to the diagnostic request to obtain a second diagnostic result of the second module to be diagnosed connected to the second diagnostic submodule, and send the second diagnostic result to the first diagnostic submodule, so that the first diagnostic submodule collects all the first diagnostic results and sends them together with the second diagnostic result to the first diagnostic module.

[0074] Step 603: Send the diagnosis result to the first diagnosis module through the second interface, so that the first diagnosis module sends the diagnosis result to the external diagnosis terminal through the first interface.

[0075] In this embodiment, after the second diagnostic module obtains the first diagnostic result and the second diagnostic result, the first diagnostic result and the second diagnostic result can be sent to the first diagnostic module through the first diagnostic submodule, and then sent to the diagnostic instrument through the first diagnostic module, and the diagnostic results are displayed on the diagnostic instrument to complete the diagnosis of the vehicle.

[0076] In this embodiment, the diagnostic request is received through an interface corresponding to the data type of the diagnostic request, and the vehicle is diagnosed based on the diagnostic request. An external diagnostic terminal can be connected through an interface via a USB protocol, thereby expanding the application scope of the diagnostic method.

[0077] In an embodiment of the present application, before receiving the diagnostic request sent by the first diagnostic module through the second interface, the method further includes:

[0078] receiving, through the first diagnostic submodule, authentication information sent by the first diagnostic module through the second interface;

[0079] Sending the authentication information to the second diagnosis submodule through the first diagnosis submodule, and obtaining an authentication result obtained by the second diagnosis submodule based on the authentication information;

[0080] The authentication result is sent to the first diagnostic module through the first diagnostic submodule, so that the first diagnostic module establishes a communication connection with the external diagnostic terminal.

[0081] In this embodiment, the authentication information may be an authentication key. In order to ensure the security of the diagnostic device, when establishing a communication connection between the external diagnostic terminal and the diagnostic device, it is necessary to verify the authentication key sent by the external diagnostic terminal to determine whether the external diagnostic terminal has access rights to the diagnostic device.

[0082] It should be noted that the communication connection in the above embodiment is used to send data such as diagnostic requests and diagnostic results between the external diagnostic terminal and the diagnostic device. The key can be obtained in the cloud through the external diagnostic terminal. As an example, the process is: use a USB type C cable to connect the diagnostic instrument to the USB port on the first diagnostic module; the diagnostic instrument checks the cable connection, and after the current USB type C cable is successfully connected, "cable connected" is displayed on the diagnostic instrument interface; the staff enters the user name and password on the diagnostic instrument, and the diagnostic instrument begins to request the authentication key from the cloud; after the diagnostic instrument obtains the key, it sends it to the first diagnostic module, and then sends it to the first diagnostic submodule through the first diagnostic module, and finally sends it from the first diagnostic submodule to the second diagnostic submodule.

[0083] During the authentication process, it is performed by the diagnostic server in the first diagnostic submodule and the diagnostic client in the second diagnostic submodule. As an example, the authentication method can be to identify whether its authentication key conforms to the preset key. If it does not conform, the authentication result is considered to be non-conforming, and the communication connection between the first diagnostic module and the external terminal is not established. If the authentication result is conforming, a communication connection between the first diagnostic module and the external diagnostic terminal is established.

[0084] Through the above authentication process, when the diagnostic device is connected to the external diagnostic terminal, the security of the external diagnostic terminal can be verified, thereby improving the information security of the diagnostic device and the vehicle.

[0085] In one embodiment, before receiving, by the first diagnosis submodule, the authentication information sent by the first diagnosis module through the second interface, the method further includes:

[0086] When it is detected that the working state of the second diagnostic module is powered on, generating the first interface through a USB driver unit provided in the first diagnostic module;

[0087] Based on a preset firewall rule, a network address is configured for the first interface so that the first interface receives information sent by the external diagnostic terminal.

[0088] In this embodiment, the first interface includes a virtual CAN interface and a USB Ethernet interface. Since the virtual CAN interface and the USB Ethernet interface are both virtual interfaces, it is necessary to drive the sub-module after the vehicle is powered on, and the USB driver unit in the driver sub-module generates a virtual CAN interface and a USB Ethernet interface based on the USB protocol, so as to realize the transmission of CAN protocol data between the first diagnostic module and the external diagnostic terminal through the virtual CAN interface.

[0089] Among them, the firewall rule can be the network address range allowed for connection by the diagnostic device, through which a port monitored by the external diagnostic terminal and the first diagnostic module, namely the first interface, can be opened, and the access of the external diagnostic terminal can be waited for through the first interface.

[0090] In this embodiment, the connection between the diagnostic device and the external diagnostic terminal can be achieved by virtualizing the first interface, and the connection security between the external diagnostic terminal and the diagnostic device can be improved by firewall rules.

[0091] Figure 7 A schematic structural diagram of a vehicle diagnostic device provided in one embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0092] Reference Figure 7 , the vehicle diagnostic device 700 may include:

[0093] A first receiving module 701, configured to receive a diagnostic request sent by the first diagnostic module through the second interface;

[0094] A diagnosis module 702, configured to diagnose the module to be diagnosed based on the diagnosis request, and obtain a diagnosis result corresponding to the diagnosis request;

[0095] The first sending module 703 is used to send the diagnostic result to the first diagnostic module through the second interface, so that the first diagnostic module sends the diagnostic result to the external diagnostic terminal through the first interface, and the first interface includes an interface generated by a universal serial bus USB protocol.

[0096] Optionally, the vehicle diagnostic device 700 further includes:

[0097] A second receiving module, used for receiving, through the first diagnosis submodule, the authentication information sent by the first diagnosis module through the second interface;

[0098] A second sending module, used to send the authentication information to the second diagnosis submodule through the first diagnosis submodule, and obtain an authentication result obtained by the second diagnosis submodule based on the authentication information;

[0099] The third sending module is used to send the authentication result to the first diagnostic module through the first diagnostic submodule, so that the first diagnostic module establishes a communication connection with the external diagnostic terminal.

[0100] Optionally, the vehicle diagnostic device 700 further includes:

[0101] A detection module, configured to generate the first interface through a USB driver unit provided in the first diagnostic module when detecting that the working state of the first diagnostic module is powered on;

[0102] A configuration module is used to configure a network address for the first interface based on a preset firewall rule so that the first interface receives information sent by the external diagnostic terminal.

[0103] Optionally, the diagnosis module 702 further includes:

[0104] A first diagnosis submodule, configured to diagnose a first module to be diagnosed through the first diagnosis submodule to obtain a first diagnosis result of the first module to be diagnosed; and

[0105] a sending submodule, configured to send the diagnosis request to the second diagnosis submodule through the first diagnosis submodule;

[0106] The second diagnosis submodule is used to diagnose the second module to be diagnosed through the second diagnosis submodule to obtain a second diagnosis result of the second module to be diagnosed.

[0107] The vehicle diagnostic device 700 provided in the embodiment of the present application can implement each process implemented in the aforementioned method embodiment, and will not be described again here to avoid repetition.

[0108] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0109] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0110] The device may include a processor 801 and a memory 802 storing program instructions.

[0111] When the processor 801 executes the program, the steps in any of the above method embodiments are implemented.

[0112] Exemplarily, the program may be divided into one or more modules / units, one or more modules / units are stored in the memory 802 and executed by the processor 801 to complete the present application. One or more modules / units may be a series of program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the program in the device.

[0113] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0114] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.

[0115] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0116] The processor 801 implements any one of the methods in the above embodiments by reading and executing program instructions stored in the memory 802 .

[0117] In one example, the electronic device may further include a communication interface 803 and a bus 310. The processor 801, the memory 802, and the communication interface 803 are connected via the bus 310 and communicate with each other.

[0118] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0119] Bus 810 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0120] In addition, in combination with the method in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores program instructions; when the program instructions are executed by a processor, any one of the methods in the above embodiment is implemented.

[0121] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0122] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0123] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0124] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0125] The functional modules shown in the above block diagram can be implemented as hardware, software, firmware or their combination. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer grids such as the Internet, intranets, etc.

[0126] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0127] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0128] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A diagnostic device, characterized in that: The device includes: A first diagnostic module, the first diagnostic module comprising a first interface and a second interface, the first diagnostic module being connected to an external diagnostic terminal via the first interface, the first interface comprising an interface generated by a universal serial bus USB protocol; The first diagnostic module is used to receive the diagnostic request of the external diagnostic terminal and send the diagnostic request to the second diagnostic module through the second interface; A second diagnostic module, the second diagnostic module includes a third interface, one end of the second diagnostic module is connected to the second interface via the third interface, and the other end is connected to the module to be diagnosed, the second diagnostic module is used to receive the diagnostic request, and obtain the diagnostic result of the module to be diagnosed based on the diagnostic request, and send the diagnostic result to the first diagnostic module.

2. The diagnostic device according to claim 1, characterized in that The first diagnostic module includes a driver module and a fourth interface connected to each other. The first interface is provided in the driver module. The driver module is used to establish a connection between the external diagnostic terminal and the first diagnostic module through the fourth interface.

3. The diagnostic device according to claim 2, characterized in that The first interface includes a virtual CAN interface and a USB Ethernet interface, and the driver submodule also includes a USB driver unit; The USB driver unit is used to generate the virtual CAN interface and the USB Ethernet interface based on the USB protocol when detecting that the diagnostic device is powered on; The virtual CAN interface is used to transmit CAN protocol data; The USB Ethernet interface is used to transmit Ethernet protocol data.

4. The diagnostic device according to claim 3, characterized in that The second interface includes a first CAN interface and a first Ethernet interface, the first CAN interface is used to establish a connection with the virtual CAN interface, and the first Ethernet is used to establish a connection with the USB Ethernet interface.

5. The diagnostic device according to claim 4, characterized in that The first diagnostic module also includes a diagnostic service client, one end of the diagnostic service client is connected to the virtual CAN interface and the USB Ethernet interface, and the other end is connected to the first CAN interface and the first Ethernet interface; The diagnostic service terminal is used to send the diagnostic request received through the virtual CAN interface to the first CAN interface, and to send the diagnostic request received through the USB Ethernet interface to the first Ethernet interface.

6. The diagnostic device according to claim 5, characterized in that The diagnostic device further comprises an Ethernet switch, one end of the Ethernet switch is connected to the second interface, and the other end of the Ethernet switch is connected to the third interface, and the Ethernet switch is used to transmit Ethernet protocol data between the second interface and the third interface.

7. The diagnostic device according to claim 6, characterized in that The second diagnostic module also includes a first diagnostic submodule and a second diagnostic submodule. The first diagnostic submodule and the second diagnostic submodule are both provided with the third interface. The first diagnostic submodule and the second diagnostic submodule are both connected to the Ethernet switch via the third interface.

8. The diagnostic device according to claim 7, characterized in that The third interface includes a second CAN interface and a second Ethernet interface; The second CAN interface is used to transmit CAN data with the first CAN interface; The second Ethernet interface is used to transmit Ethernet data with the first Ethernet.

9. The diagnostic device according to claim 8, characterized in that The first diagnosis submodule further includes a diagnosis server, one end of the diagnosis server is connected to the second CAN interface in the first diagnosis submodule, and the other end of the diagnosis server is connected to the second Ethernet interface in the first diagnosis submodule; The diagnostic server is used for obtaining, in response to the diagnostic request, a first diagnostic result of a first module to be diagnosed connected to the first diagnostic submodule; as well as The diagnostic request is sent to the second diagnostic submodule, a second diagnostic result of a second module to be diagnosed connected to the second diagnostic submodule is obtained, and the first diagnostic result and the second diagnostic result are sent to the first diagnostic module.

10. The diagnostic device according to claim 9, characterized in that The second diagnosis submodule further comprises a diagnosis client, one end of the diagnosis client is connected to the second CAN interface in the second diagnosis submodule, and the other end of the diagnosis client is connected to the second Ethernet interface in the second diagnosis submodule; The diagnostic client is used to obtain the diagnostic result of the module to be diagnosed connected to the second diagnostic submodule in response to the diagnostic request sent by the first diagnostic submodule, and send the diagnostic result to the first diagnostic submodule; or The diagnostic client is used to respond to the diagnostic request sent by the first diagnostic module, obtain the diagnostic result of the module to be diagnosed connected to the second diagnostic submodule, and send the diagnostic result to the first diagnostic module.

11. A diagnostic system, characterized in that: The system comprises the diagnostic device according to any one of claims 1 to 10, and an external diagnostic terminal connected to the diagnostic device; The external diagnostic terminal is provided with a fifth interface, and the external diagnostic terminal is connected to the diagnostic device via the fifth interface. The fifth interface includes an interface generated by a universal serial bus (USB) protocol.

12. A diagnostic method, characterized in that: The second diagnostic module applied to any one of claims 1-10, the method comprising: receiving a diagnostic request sent by the first diagnostic module through the second interface; diagnose the module to be diagnosed based on the diagnosis request, and obtain a diagnosis result corresponding to the diagnosis request; The diagnostic result is sent to the first diagnostic module through the second interface, so that the first diagnostic module sends the diagnostic result to an external diagnostic terminal through the first interface, and the first interface includes an interface generated by a universal serial bus USB protocol.

13. The diagnostic method according to claim 12, characterized in that: Before receiving the diagnostic request sent by the first diagnostic module through the second interface, the method further includes: receiving, through the first diagnostic submodule, authentication information sent by the first diagnostic module through the second interface; Sending the authentication information to the second diagnosis submodule through the first diagnosis submodule, and obtaining an authentication result obtained by the second diagnosis submodule based on the authentication information; The authentication result is sent to the first diagnostic module through the first diagnostic submodule, so that the first diagnostic module establishes a communication connection with the external diagnostic terminal.

14. The diagnostic method according to claim 13, characterized in that: Before the first diagnosis submodule receives the authentication information sent by the first diagnosis module through the second interface, the method further includes: When it is detected that the working state of the first diagnostic module is powered on, generating the first interface through a USB driver unit provided in the first diagnostic module; Based on a preset firewall rule, a network address is configured for the first interface so that the first interface receives information sent by the external diagnostic terminal.

15. The diagnostic method according to claim 12, characterized in that: The diagnosis result includes a first diagnosis result and a second diagnosis result; The diagnosing the module to be diagnosed based on the diagnosis request to obtain a diagnosis result corresponding to the diagnosis request includes: Diagnosing the first module to be diagnosed by the first diagnosis submodule to obtain a first diagnosis result of the first module to be diagnosed; and sending the diagnosis request to the second diagnosis submodule through the first diagnosis submodule; The second module to be diagnosed is diagnosed by the second diagnosis submodule to obtain a second diagnosis result of the second module to be diagnosed.

16. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the diagnostic method according to any one of claims 12 to 15 is implemented.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the diagnostic method according to any one of claims 12 to 15 is implemented.

18. A vehicle, characterized in that: include: A diagnostic device as claimed in any one of claims 1 to 10.