Vehicle diagnosis method and device, electronic equipment and computer readable storage medium
By communicating directly with the vehicle using local diagnostic equipment and distributing diagnostic scripts and data via SOMEIP and HTTP protocols respectively, the problem of cumbersome operation and low efficiency in traditional vehicle diagnostic methods is solved, achieving efficient vehicle fault diagnosis.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LAUNCH TECH CO LTD
- Filing Date
- 2023-04-21
- Publication Date
- 2026-08-04
AI Technical Summary
Traditional vehicle diagnostic methods are cumbersome, inefficient, and rely on the CAN protocol, which limits the gateway's capabilities and makes it impossible to efficiently diagnose vehicle faults.
By communicating directly with the vehicle through local diagnostic equipment, vehicle information is obtained, and diagnostic scripts and data are sent out using SOMEIP and HTTP protocols respectively, enabling direct communication with the vehicle gateway and avoiding reliance on diagnostic tools.
It improves the efficiency of vehicle diagnostics, enables the separate transmission of diagnostic scripts and data, optimizes protocol selection, and enhances diagnostic efficiency.
Smart Images

Figure CN116466688B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive Ethernet technology, and in particular to a vehicle diagnostic method, as well as a vehicle diagnostic device, electronic device, and computer-readable storage medium. Background Technology
[0002] Automotive aftermarket diagnostics primarily utilizes diagnostic tools and accompanying diagnostic programs to detect vehicle faults. Currently, traditional vehicle diagnostic methods mainly involve a local diagnostic application connecting to the vehicle via the diagnostic tool, communicating with the vehicle using the CAN (Controller Area Network) protocol, and returning results to the diagnostic tool client. Throughout this process, all commands and communications involve the local diagnostic application sending diagnostic commands to the vehicle gateway via the diagnostic tool, which then forwards them to each ECU (Electronic Control Unit). Clearly, this approach is not only cumbersome but also inefficient. Furthermore, the limited transmission capacity of the CAN protocol restricts the capabilities of the vehicle gateway, making it highly dependent on external diagnostic equipment and inconvenient.
[0003] Therefore, how to achieve faster and more efficient vehicle fault diagnosis is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] The purpose of this application is to provide a vehicle diagnostic method that can achieve faster and more efficient vehicle diagnostics; another purpose of this application is to provide a vehicle diagnostic device, electronic device, and computer-readable storage medium, all of which have the above-mentioned beneficial effects.
[0005] In a first aspect, this application provides a vehicle diagnostic method applied to a local diagnostic device, comprising:
[0006] Obtain vehicle information for the target vehicle;
[0007] Based on the vehicle information, obtain the target diagnostic script and target diagnostic data;
[0008] The target diagnostic script is sent to the gateway of the target vehicle via a first communication protocol, and the target diagnostic data is sent to the gateway of the target vehicle via a second communication protocol, so that the target vehicle can use the target diagnostic script and the target diagnostic data to perform vehicle diagnostics.
[0009] Optionally, the step of sending the target diagnostic script to the gateway of the target vehicle via the first communication protocol includes:
[0010] The target diagnostic script is sent to the gateway of the target vehicle via the SOMEIP protocol.
[0011] Optionally, the step of sending the target diagnostic data to the gateway of the target vehicle via the second communication protocol includes:
[0012] The target diagnostic data is sent to the gateway of the target vehicle via the HTTP protocol.
[0013] Optionally, obtaining the vehicle information of the target vehicle includes:
[0014] When the access information of the target vehicle is detected, a vehicle diagnostic command is executed.
[0015] The vehicle information of the target vehicle is obtained according to the vehicle diagnostic instructions.
[0016] Optionally, obtaining the target diagnostic script and target diagnostic data based on the vehicle information includes:
[0017] The vehicle information is uploaded to the server so that the server can determine the target diagnostic script and the target diagnostic data based on the vehicle information.
[0018] Receive the target diagnostic script and target diagnostic data fed back by the server.
[0019] Optionally, the vehicle diagnostic method further includes:
[0020] The vehicle diagnostic results of the target vehicle are received via the SOMEIP protocol;
[0021] The vehicle diagnostic logs of the target vehicle are received via the HTTP protocol.
[0022] Optionally, the vehicle diagnostic method further includes:
[0023] The vehicle diagnostic results are output to a display device;
[0024] The vehicle diagnostic logs are uploaded to the server.
[0025] Secondly, this application also discloses a vehicle diagnostic device for use with local diagnostic equipment, comprising:
[0026] The first acquisition module is used to acquire vehicle information of the target vehicle;
[0027] The second acquisition module is used to acquire the target diagnostic script and target diagnostic data based on the vehicle information;
[0028] The distribution module is used to distribute the target diagnostic script to the gateway of the target vehicle through a first communication protocol, and to distribute the target diagnostic data to the gateway of the target vehicle through a second communication protocol, so that the target vehicle can use the target diagnostic script and the target diagnostic data to perform vehicle diagnosis.
[0029] Thirdly, this application also discloses an electronic device, comprising:
[0030] Memory, used to store computer programs;
[0031] A processor for executing the computer program to implement the steps of any of the vehicle diagnostic methods described above.
[0032] Fourthly, this application also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the vehicle diagnostic methods described above.
[0033] This application provides a vehicle diagnostic method applied to a local diagnostic device, including acquiring vehicle information of a target vehicle; acquiring a target diagnostic script and target diagnostic data based on the vehicle information; sending the target diagnostic script to the gateway of the target vehicle via a first communication protocol, and sending the target diagnostic data to the gateway of the target vehicle via a second communication protocol, so that the target vehicle can perform vehicle diagnostics using the target diagnostic script and the target diagnostic data.
[0034] By applying the technical solution provided in this application, during the vehicle diagnostic process, the local diagnostic device communicates directly with the vehicle to be diagnosed (i.e., the target vehicle) to obtain vehicle information, and further obtains the target diagnostic script and target diagnostic data applicable to the vehicle to be diagnosed. Then, based on the different data types of the two, different communication protocols are used to send them to the gateway of the vehicle to be diagnosed. That is, the first communication protocol is used to send the target diagnostic script, and the second communication protocol is used to send the target diagnostic data, thereby realizing vehicle diagnosis. It can be seen that, based on this implementation method, direct communication between the local diagnostic device and the vehicle to be diagnosed is realized without relying on the diagnostic instrument. Moreover, the separation of diagnostic script and diagnostic data is realized based on the first and second communication protocols, which helps to achieve the use of the optimal protocol for content delivery and greatly improves the efficiency of vehicle diagnosis.
[0035] The vehicle diagnostic device, electronic device, and computer-readable storage medium provided in this application also have the above-mentioned technical effects, and will not be described in detail here. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the prior art and the embodiments of this application, the accompanying drawings used in the description of the prior art and the embodiments of this application will be briefly introduced below. Of course, the accompanying drawings described below with respect to the embodiments of this application are only a part of the embodiments in this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort, and such other drawings also fall within the protection scope of this application.
[0037] Figure 1 A schematic flowchart of a vehicle diagnostic method provided in this application;
[0038] Figure 2 This application provides a schematic diagram of the structure of a vehicle diagnostic system.
[0039] Figure 3 A flowchart illustrating another vehicle diagnostic method provided in this application;
[0040] Figure 4 A schematic diagram of the structure of a vehicle diagnostic device provided in this application;
[0041] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation
[0042] The core of this application is to provide a vehicle diagnostic method that can achieve faster and more efficient vehicle diagnostics; another core aspect of this application is to provide a vehicle diagnostic device, electronic device, and computer-readable storage medium, all of which have the aforementioned beneficial effects.
[0043] To provide a clearer and more complete description of the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0044] This application provides a vehicle diagnostic method.
[0045] Please refer to Figure 1 , Figure 1 This is a schematic flowchart of a vehicle diagnostic method provided in this application. The vehicle diagnostic method is applied to a local diagnostic device and may include the following steps S101 to S103.
[0046] S101: Obtain vehicle information of the target vehicle;
[0047] This step aims to obtain vehicle information of the target vehicle, which is the vehicle that needs to be diagnosed. For the local diagnostic equipment, it can communicate directly with the target vehicle to obtain its vehicle information.
[0048] The vehicle information is used to obtain diagnostic information applicable to the target vehicle (i.e., the target diagnostic script and target diagnostic data described below). Its specific content is not unique; it only needs to achieve the acquisition of diagnostic information. For example, it may include, but is not limited to, the target vehicle's manufacturer information, model information, and ID information. This application does not limit this. Furthermore, the method of obtaining vehicle information is not unique. It may involve issuing an information acquisition command to the target vehicle to achieve proactive acquisition of vehicle information, or the target vehicle may directly upload its own vehicle information to the local diagnostic device after connecting to it, thus achieving proactive uploading of vehicle information.
[0049] The acquisition of vehicle information can be in response to vehicle diagnostic commands, which are instructions that control the local diagnostic equipment to initiate the vehicle diagnostic process. Of course, the method of acquiring vehicle diagnostic commands is not unique; it can be input directly by the user through the user interface, or it can automatically respond to preset trigger conditions, such as automatically responding to the access signal of the target vehicle. This application does not limit the specific method of acquisition; it can be configured by technicians according to actual needs.
[0050] S102: Obtain the target diagnostic script and target diagnostic data based on vehicle information;
[0051] This step aims to acquire the target diagnostic script and target diagnostic data based on the vehicle information of the target vehicle. The target diagnostic script informs the target vehicle which diagnostic functions need to be performed and how to perform them, while the target diagnostic data consists of relevant data supporting the vehicle diagnostic script. Both are diagnostic information applicable to the target vehicle.
[0052] Understandably, different types of vehicles may have different diagnostic functions, methods, and procedures. Therefore, for different vehicle types, diagnostic scripts and data corresponding to that type can be pre-created. Then, the vehicle information for that type can be mapped one-to-one with its corresponding diagnostic script and data and stored. Thus, upon receiving vehicle information for the target vehicle, the target diagnostic script and data can be retrieved from all the corresponding relationships based on that vehicle information.
[0053] S103: The target diagnostic script is sent to the gateway of the target vehicle through the first communication protocol, and the target diagnostic data is sent to the gateway of the target vehicle through the second communication protocol, so that the target vehicle can use the target diagnostic script and the target diagnostic data to perform vehicle diagnosis.
[0054] This step aims to distribute the target diagnostic script and target diagnostic data to enable diagnostic functions for the target vehicle. During implementation, different communication protocols can be used to distribute the target diagnostic script and target diagnostic data. Specifically, the target diagnostic script is distributed to the target vehicle's gateway using a first communication protocol, and the target diagnostic data is distributed to the target vehicle's gateway using a second communication protocol. Thus, the target vehicle can execute the target diagnostic script using the target diagnostic data to achieve vehicle diagnostic functions.
[0055] The specific types of the first and second communication protocols do not affect the implementation of this technical solution; they can be set by technical personnel according to the actual situation. To ensure vehicle diagnostic efficiency, the optimal communication protocol can be selected based on the data format of the data to be transmitted. That is, the first communication protocol can use the communication protocol most suitable for script transmission, and the second communication protocol can implement the communication protocol most suitable for data transmission, thereby enabling the rapid delivery of the target diagnostic script and target diagnostic data.
[0056] As can be seen, the vehicle diagnostic method provided in this application involves direct communication between the local diagnostic device and the vehicle to be diagnosed (i.e., the target vehicle) during the vehicle diagnostic process. This allows the local device to obtain vehicle information and further acquire target diagnostic scripts and target diagnostic data applicable to the vehicle. Then, based on the different data types of these two components, different communication protocols are used to send them to the gateway of the vehicle to be diagnosed. Specifically, the first communication protocol is used to send the target diagnostic script, and the second communication protocol is used to send the target diagnostic data, thereby achieving vehicle diagnostics. This implementation method enables direct communication between the local diagnostic device and the vehicle to be diagnosed, eliminating the need for a diagnostic instrument. Furthermore, the separation of diagnostic scripts and diagnostic data based on the first and second communication protocols facilitates the use of the optimal protocol for content delivery, significantly improving vehicle diagnostic efficiency.
[0057] Based on the above embodiments:
[0058] In one embodiment of this application, the above-mentioned distribution of the target diagnostic script to the gateway of the target vehicle via the first communication protocol may include: distributing the target diagnostic script to the gateway of the target vehicle via the SOMEIP (Scalableservice-Oriented Middleware over IP) protocol.
[0059] This application provides a specific type of first communication protocol, namely the SOMEIP protocol. That is, during the distribution of a target diagnostic script, the SOMEIP protocol can be used to distribute it to the target vehicle's gateway. It is understood that the target diagnostic script, i.e., the diagnostic program, has relatively small data size, making the SOMEIP protocol more suitable for enabling rapid transmission of small data within the same local area network.
[0060] In one embodiment of this application, the above-mentioned sending of target diagnostic data to the gateway of the target vehicle via the second communication protocol may include: sending the target diagnostic data to the gateway of the target vehicle via the HTTP protocol (Hypertext Transfer Protocol).
[0061] This application provides a specific type of second communication protocol, namely the HTTP protocol. That is, during the distribution of target diagnostic data, the HTTP protocol can be used to send the data to the target vehicle's gateway. It is understood that target diagnostic data mainly consists of diagnostic parameter information, and its data volume is relatively large, making the HTTP protocol more suitable for transmitting large amounts of data via hypertext.
[0062] In one embodiment of this application, obtaining the vehicle information of the target vehicle may include the following steps:
[0063] When the access information of the target vehicle is detected, respond to the vehicle diagnostic command;
[0064] Obtain vehicle information of the target vehicle based on vehicle diagnostic instructions.
[0065] This application provides a method for obtaining vehicle information. Specifically, vehicle diagnostic commands can automatically respond to the access information of the target vehicle. That is, for the local diagnostic device, it can monitor the relevant interfaces (interfaces connected to the vehicle) in real time. Once the access information of the target vehicle is detected, it can automatically respond to the vehicle diagnostic command and then obtain the vehicle information of the target vehicle according to the vehicle diagnostic command.
[0066] In one possible implementation, obtaining the vehicle information of the target vehicle according to the vehicle diagnostic command may include: obtaining the vehicle information of the target vehicle through the SOMEIP protocol in response to the vehicle diagnostic command.
[0067] Understandably, the vehicle information of the target vehicle is also small data; therefore, the local diagnostic device can also acquire vehicle information based on the SOMEIP protocol. In this process, the local diagnostic device can send an information acquisition command to the target vehicle via the SOMEIP protocol. The target vehicle then responds to the command, collects its own vehicle information, and sends this information back to the local diagnostic device via the SOMEIP protocol.
[0068] In one embodiment of this application, the above-mentioned acquisition of the target diagnostic script and target diagnostic data based on vehicle information may include the following steps:
[0069] The vehicle information is uploaded to the server so that the server can determine the target diagnostic script and target diagnostic data based on the vehicle information.
[0070] Receive the target diagnostic script and target diagnostic data from the server.
[0071] This application provides a method for obtaining target diagnostic scripts and target diagnostic data based on vehicle information. As described above, for different types of vehicles, diagnostic scripts and diagnostic data corresponding to that type of vehicle can be pre-created. Then, the vehicle information of that type of vehicle is mapped one-to-one with its corresponding diagnostic script and diagnostic data and stored. Based on this, the mapping relationship between vehicle information and diagnostic scripts and diagnostic data can be stored in a server. Thus, the target diagnostic script and target diagnostic data corresponding to the target vehicle can be obtained through the server.
[0072] During implementation, the local diagnostic device can upload vehicle information to the server. The server can then query the corresponding diagnostic script and diagnostic data (i.e., the target diagnostic script and target diagnostic data) in its stored mapping relationship and feed them back to the local diagnostic device. This enables the local diagnostic device to acquire the target diagnostic script and target diagnostic data.
[0073] The server's functions are not limited to storing the aforementioned correspondences; it can also perform corresponding management functions, such as updating diagnostic scripts, updating diagnostic data, and updating correspondences.
[0074] In one embodiment of this application, the vehicle diagnostic method may further include the following steps:
[0075] Receive vehicle diagnostic results for the target vehicle via the SOMEIP protocol;
[0076] Receive vehicle diagnostic logs from the target vehicle via HTTP protocol.
[0077] The vehicle diagnostic method provided in this application can further acquire vehicle diagnostic results and vehicle diagnostic logs. The vehicle diagnostic results determine whether a fault exists in the target vehicle, while the vehicle diagnostic logs contain various log information generated during the vehicle diagnostic process, such as the detection time and results of various functional tests. Clearly, the vehicle diagnostic results are only a general diagnostic result, representing small data, and can be transmitted using the SOMEIP protocol; the vehicle diagnostic logs, on the other hand, contain various data information, representing large data, and can be transmitted using the HTTP protocol. Therefore, for the local diagnostic device, it can receive the vehicle diagnostic results from the target vehicle via the SOMEIP protocol and the vehicle diagnostic logs from the target vehicle via the HTTP protocol.
[0078] In one embodiment of this application, the vehicle diagnostic method may further include the following steps:
[0079] Output the vehicle diagnostic results to the display device;
[0080] Upload the vehicle diagnostic logs to the server.
[0081] The vehicle diagnostic method provided in this application embodiment can further realize the visualization of vehicle diagnostic results and the uploading and saving of vehicle diagnostic logs. For the local device, after receiving the vehicle diagnostic results and vehicle diagnostic logs from the target vehicle, it can output the vehicle diagnostic results to the display device for visualization to inform the staff about the diagnostic results of the target vehicle; and upload the vehicle diagnostic logs to the server for saving so that the staff can trace the source of the anomaly later.
[0082] Based on the above embodiments, this application provides another vehicle diagnostic method.
[0083] First, please refer to Figure 2 , Figure 2 This is a schematic diagram of a vehicle diagnostic system provided in this application. The vehicle diagnostic system mainly includes:
[0084] (1) Cloud server: responsible for managing and distributing diagnostic scripts, diagnostic data, local diagnostic application client upgrade packages, and receiving diagnostic logs;
[0085] (2) Local diagnostic instrument (local diagnostic device): Essentially an application platform for vehicle diagnostics, responsible for displaying the user interface, downloading diagnostic scripts and diagnostic data and sending them to the vehicle gateway, as well as displaying diagnostic results and uploading diagnostic logs;
[0086] (3) Vehicle: Responsible for performing diagnostic tasks and providing feedback on diagnostic results and diagnostic logs.
[0087] For further information, please refer to [link / reference]. Figure 3 , Figure 3 This is a flowchart illustrating another vehicle diagnostic method provided in this application. This vehicle diagnostic method is implemented based on the aforementioned vehicle diagnostic system, and its implementation process may include the following steps:
[0088] (1) Connect to the vehicle and open the client;
[0089] (2) The local diagnostic application (deployed on the local diagnostic device) obtains vehicle information through the SOMEIP protocol and uploads it to the cloud server;
[0090] (3) The cloud server returns the diagnostic data and diagnostic scripts corresponding to the vehicle information;
[0091] (4) The local diagnostic application uses the SOMEIP protocol to send diagnostic scripts and the HTTP protocol to send diagnostic data.
[0092] (5) The vehicle CCU (vehicle main control unit) executes the diagnostic script, completes the diagnostic function, returns the diagnostic results using the SOMEIP protocol, and returns the diagnostic log using the HTTP protocol;
[0093] (6) The local diagnostic application outputs the diagnostic results to the display interface and uploads the diagnostic logs to the cloud server;
[0094] (7) The program ends.
[0095] As can be seen, the vehicle diagnostic method provided in this application involves direct communication between the local diagnostic device and the vehicle to be diagnosed (i.e., the target vehicle) during the vehicle diagnostic process. This allows the local device to obtain vehicle information and further acquire target diagnostic scripts and target diagnostic data applicable to the vehicle. Then, based on the different data types of these two components, different communication protocols are used to send them to the gateway of the vehicle to be diagnosed. Specifically, the first communication protocol is used to send the target diagnostic script, and the second communication protocol is used to send the target diagnostic data, thereby achieving vehicle diagnostics. This implementation method enables direct communication between the local diagnostic device and the vehicle to be diagnosed, eliminating the need for a diagnostic instrument. Furthermore, the separation of diagnostic scripts and diagnostic data based on the first and second communication protocols facilitates the use of the optimal protocol for content delivery, significantly improving vehicle diagnostic efficiency.
[0096] This application provides a vehicle diagnostic device.
[0097] Please refer to Figure 4 , Figure 4 This is a schematic diagram of a vehicle diagnostic device provided in this application. The vehicle diagnostic device is applied to a local diagnostic equipment and may include:
[0098] The first acquisition module 1 is used to acquire vehicle information of the target vehicle;
[0099] The second acquisition module 2 is used to acquire the target diagnostic script and target diagnostic data based on vehicle information;
[0100] The distribution module 3 is used to distribute the target diagnostic script to the gateway of the target vehicle through the first communication protocol and distribute the target diagnostic data to the gateway of the target vehicle through the second communication protocol, so that the target vehicle can use the target diagnostic script and the target diagnostic data to perform vehicle diagnosis.
[0101] As can be seen, the vehicle diagnostic device provided in this application embodiment communicates directly with the vehicle to be diagnosed (i.e., the target vehicle) during the vehicle diagnostic process to obtain vehicle information of the vehicle to be diagnosed, so as to further obtain the target diagnostic script and target diagnostic data applicable to the vehicle to be diagnosed. Then, according to the different data types of the two, different communication protocols are used to send them to the gateway of the vehicle to be diagnosed. That is, the target diagnostic script is sent using the first communication protocol and the target diagnostic data is sent using the second communication protocol, thereby realizing vehicle diagnosis. It can be seen that, based on this implementation method, direct communication between the local diagnostic device and the vehicle to be diagnosed is realized without relying on the diagnostic instrument. Moreover, the separation of diagnostic script and diagnostic data is realized based on the first and second communication protocols, which helps to realize the use of the optimal protocol for content delivery and greatly improves the efficiency of vehicle diagnosis.
[0102] In one embodiment of this application, the aforementioned distribution module 3 can be specifically used to distribute the target diagnostic script to the gateway of the target vehicle via the SOMEIP protocol.
[0103] In one embodiment of this application, the aforementioned sending module 3 can be specifically used to send target diagnostic data to the gateway of the target vehicle via the HTTP protocol.
[0104] In one embodiment of this application, the first acquisition module 1 described above may be specifically used to respond to a vehicle diagnostic command when the access information of the target vehicle is detected; and to acquire the vehicle information of the target vehicle according to the vehicle diagnostic command.
[0105] In one embodiment of this application, the second acquisition module 2 described above may be specifically used to upload vehicle information to a server so that the server can determine the target diagnostic script and target diagnostic data based on the vehicle information; and receive the target diagnostic script and target diagnostic data fed back by the server.
[0106] In one embodiment of this application, the vehicle diagnostic device may further include a return module for receiving vehicle diagnostic results of the target vehicle via the SOMEIP protocol and receiving vehicle diagnostic logs of the target vehicle via the HTTP protocol.
[0107] In one embodiment of this application, the vehicle diagnostic device may further include an upload module for outputting vehicle diagnostic results to a display device and uploading vehicle diagnostic logs to a server.
[0108] For a description of the apparatus provided in the embodiments of this application, please refer to the above method embodiments; further details will not be repeated here.
[0109] This application provides an electronic device.
[0110] Please refer to Figure 5 , Figure 5 This application provides a schematic diagram of the structure of an electronic device, which may include:
[0111] Memory, used to store computer programs;
[0112] A processor, used to execute computer programs, can implement the steps of any of the vehicle diagnostic methods described above.
[0113] like Figure 5 The diagram shows the structural composition of an electronic device, which may include a processor 10, a memory 11, a communication interface 12, and a communication bus 13. The processor 10, memory 11, and communication interface 12 all communicate with each other through the communication bus 13.
[0114] In this embodiment, the processor 10 may be a central processing unit (CPU), an application-specific integrated circuit, a digital signal processor, a field-programmable gate array, or other programmable logic devices.
[0115] The processor 10 can call programs stored in the memory 11. Specifically, the processor 10 can execute operations in the embodiments of the vehicle diagnostic method.
[0116] The memory 11 is used to store one or more programs. The programs may include program code, which includes computer operation instructions. In this embodiment, the memory 11 stores at least a program for implementing the following functions:
[0117] Obtain vehicle information for the target vehicle;
[0118] Obtain the target diagnostic script and target diagnostic data based on vehicle information;
[0119] The target diagnostic script is sent to the target vehicle's gateway via the first communication protocol, and the target diagnostic data is sent to the target vehicle's gateway via the second communication protocol, so that the target vehicle can use the target diagnostic script and target diagnostic data to perform vehicle diagnostics.
[0120] In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; and the data storage area may store data created during use.
[0121] In addition, memory 11 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.
[0122] Communication interface 12 can be an interface for the communication module, used to connect with other devices or systems.
[0123] Of course, it should be noted that, Figure 5 The structure shown does not constitute a limitation on the electronic device in the embodiments of this application. In practical applications, the electronic device may include more than Figure 5 More or fewer components as shown, or combinations of certain components.
[0124] This application provides a computer-readable storage medium.
[0125] The computer-readable storage medium provided in this application embodiment stores a computer program, which, when executed by a processor, can implement the steps of any of the vehicle diagnostic methods described above.
[0126] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0127] For a description of the computer-readable storage medium provided in the embodiments of this application, please refer to the above method embodiments; further details will not be repeated here.
[0128] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0129] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0130] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0131] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the methods and core ideas of this application. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of this application.
Claims
1. A vehicle diagnosis method characterized by, Applied to local diagnostic devices, including: Obtain vehicle information for the target vehicle; Based on the vehicle information, obtain the target diagnostic script and target diagnostic data; The target diagnostic script is sent to the gateway of the target vehicle through a first communication protocol, and the target diagnostic data is sent to the gateway of the target vehicle through a second communication protocol, so that the target vehicle can use the target diagnostic script and the target diagnostic data to perform vehicle diagnosis. The step of sending the target diagnostic script to the gateway of the target vehicle via the first communication protocol includes: The target diagnostic script is sent to the gateway of the target vehicle via the SOMEIP protocol; The step of sending the target diagnostic data to the gateway of the target vehicle via the second communication protocol includes: The target diagnostic data is sent to the gateway of the target vehicle via the HTTP protocol.
2. The vehicle diagnosis method according to claim 1, characterized by, The acquisition of vehicle information of the target vehicle includes: When the access information of the target vehicle is detected, a vehicle diagnostic command is executed. The vehicle information of the target vehicle is obtained according to the vehicle diagnostic instructions.
3. The vehicle diagnostic method of claim 1, wherein The step of obtaining the target diagnostic script and target diagnostic data based on the vehicle information includes: The vehicle information is uploaded to the server so that the server can determine the target diagnostic script and the target diagnostic data based on the vehicle information. Receive the target diagnostic script and target diagnostic data fed back by the server.
4. The vehicle diagnostic method of claim 1, wherein Also includes: The vehicle diagnostic results of the target vehicle are received via the SOMEIP protocol; The vehicle diagnostic logs of the target vehicle are received via the HTTP protocol.
5. The vehicle diagnostic method of claim 4, wherein, Also includes: The vehicle diagnostic results are output to a display device; The vehicle diagnostic logs are uploaded to the server.
6. A vehicle diagnostic device, characterized in that, Applied to local diagnostic devices, including: The first acquisition module is used to acquire vehicle information of the target vehicle; The second acquisition module is used to acquire the target diagnostic script and target diagnostic data based on the vehicle information; The distribution module is used to distribute the target diagnostic script to the gateway of the target vehicle through a first communication protocol, and distribute the target diagnostic data to the gateway of the target vehicle through a second communication protocol, so that the target vehicle can use the target diagnostic script and the target diagnostic data to perform vehicle diagnosis; Specifically, the distribution module can be used to distribute the target diagnostic script to the gateway of the target vehicle via the SOMEIP protocol; Specifically, the delivery module can be used to deliver target diagnostic data to the gateway of the target vehicle via the HTTP protocol.
7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the vehicle diagnostic method as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the vehicle diagnostic method as described in any one of claims 1 to 5.