Vehicle diagnosis method, device and equipment and storage medium
By determining the diagnostic routing profile of the vehicle model to which the target vehicle is stored from the directory where the diagnostic routing profile of the target vehicle belongs to, the problem of inconsistent diagnostic routing address in multiple vehicles is solved, and the effect of accurately obtaining the diagnostic routing address of the controller in the vehicle is achieved.
Patent Information
- Application Number
- CN202311418441.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2025-05-02
AI Technical Summary
In multiple vehicles, the diagnostic routing address of the same controller varies depending on the vehicle model, resulting in the inability to accurately obtain the diagnostic routing address of the controller in the vehicle.
By determining the diagnostic routing profile of the vehicle model to which the target vehicle belongs from the directory storing the diagnostic routing profile of the vehicle belongs to the target vehicle, the diagnostic routing profile is obtained on the model as a granularity, and the configuration file is loaded to obtain the diagnostic routing address of the first controller.
Accurately obtaining the diagnostic routing address of the first controller in the target vehicle, solving the problem of different diagnostic routing addresses corresponding to the same controller in different models.
Smart Images

Figure CN119916769A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular to a vehicle diagnosis method, device, equipment and storage medium. Background Art
[0002] With the continuous improvement of vehicle electrification level and the popularization of multi-module structure of vehicles, it is particularly important to diagnose controllers based on diagnostic routing addresses.
[0003] However, for vehicles of multiple models, the diagnostic routing configuration information of all controllers is uniformly stored in a default configuration file. When the diagnostic routing addresses corresponding to the same controller in different models are different, the diagnostic routing addresses of the controllers in the vehicle cannot be accurately obtained. For example, the diagnostic routing addresses of the air-conditioning controller of model A and the air-conditioning controller of model B are different, but in the default configuration file, the air-conditioning controller of model A and the air-conditioning controller of model B correspond to the same diagnostic routing address, resulting in the inability to accurately obtain the diagnostic routing addresses of the air-conditioning controller of model A and the air-conditioning controller of model B. Therefore, how to accurately obtain the diagnostic routing addresses of the controllers in the vehicle has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a vehicle diagnosis method, which determines the diagnostic routing configuration file of the model to which the target vehicle belongs from a directory storing the diagnostic routing configuration files of the model to which the target vehicle belongs, thereby obtaining the diagnostic routing configuration file of the model to which the target vehicle belongs with the model as the granularity. By loading the diagnostic routing configuration file, the diagnostic routing address of the first controller in the target vehicle can be accurately obtained, which effectively solves the problem of different diagnostic routing addresses corresponding to the same controller in different models.
[0005] In a first aspect, the present disclosure provides a vehicle diagnosis method, the method comprising:
[0006] In response to a diagnostic request for a first controller in a target vehicle, querying from a first configuration directory in the target vehicle whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle;
[0007] When it is determined that a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists in the first configuration directory, acquiring the diagnostic routing configuration file;
[0008] The diagnostic routing configuration file is loaded to obtain a diagnostic routing address of the first controller; wherein the diagnostic routing address is used to diagnose the first controller.
[0009] In an optional implementation, in response to the diagnostic request for the first controller in the target vehicle, before querying from the first configuration directory in the target vehicle whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs, the method further includes:
[0010] When it is detected that the target vehicle diagnostic service is started, a diagnostic routing configuration file request of the vehicle model to which the target vehicle belongs is sent to a remote background server; wherein the diagnostic routing configuration file request is used to request the remote background service to return the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs;
[0011] Receiving a response message returned by the remote background server in response to the diagnostic routing configuration file request; wherein the response message carries the diagnostic routing configuration file of the vehicle type to which the target vehicle belongs;
[0012] The diagnostic routing configuration file is saved in a first configuration directory of the target vehicle.
[0013] In an optional implementation manner, the method further includes:
[0014] When it is determined that the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs does not exist in the first configuration directory, querying whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs in the second configuration directory; wherein the second configuration directory is a pre-set directory for storing the correspondence between the vehicle model identification and the diagnostic routing configuration file;
[0015] When it is determined that a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists in the second configuration directory, the diagnostic routing configuration file is acquired.
[0016] In an optional implementation manner, the method further includes:
[0017] When it is determined that the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs does not exist in the second configuration directory, the preset diagnostic routing configuration file in the second configuration directory is used as the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs.
[0018] In an optional implementation manner, before querying from the second configuration directory whether there is a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs, the method further includes:
[0019] Obtaining the whole vehicle configuration word information of the target vehicle, and determining the vehicle model identification of the target vehicle from the whole vehicle configuration word information;
[0020] Accordingly, the querying from the second configuration directory whether there is a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs includes:
[0021] According to the vehicle type identifier of the target vehicle, a query is made from the second configuration directory to determine whether a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists.
[0022] In an optional implementation, the diagnostic routing profile request carries a vehicle identification of the target vehicle, and the diagnostic routing profile request is used to request the remote background server to determine a vehicle model identification of the target vehicle based on the vehicle identification of the target vehicle, and return a diagnostic routing profile of the vehicle model to which the target vehicle belongs based on the vehicle identification of the target vehicle.
[0023] In an optional implementation, the remote background server is used to update the diagnostic routing configuration file library based on an update frequency, and the diagnostic routing configuration file library includes a correspondence between vehicle model identifications and diagnostic routing configuration files.
[0024] In a second aspect, the present disclosure provides a vehicle diagnostic device, the device comprising:
[0025] A first query module is used to query whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from a first configuration directory in the target vehicle in response to a diagnostic request for a first controller in the target vehicle; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle;
[0026] A first acquisition module, configured to acquire the diagnostic routing configuration file when it is determined that the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs exists in the first configuration directory;
[0027] The second acquisition module is used to load the diagnostic routing configuration file to obtain the diagnostic routing address of the first controller; wherein the diagnostic routing address is used to diagnose the first controller.
[0028] In a third aspect, the present disclosure provides a vehicle diagnostic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above method is implemented when the processor executes the computer program.
[0029] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the above method.
[0030] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has at least the following advantages:
[0031] The embodiment of the present disclosure provides a vehicle diagnosis method, in response to a diagnosis request for a first controller in a target vehicle, querying whether there is a diagnostic routing configuration file of the model to which the target vehicle belongs from a first configuration directory in the target vehicle; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle, and when it is determined that there is a diagnostic routing configuration file of the model to which the target vehicle belongs under the first configuration directory, the diagnostic routing configuration file is obtained, the diagnostic routing configuration file is loaded, and the diagnostic routing address of the first controller is obtained, wherein the diagnostic routing address is used to diagnose the first controller. It can be seen that the embodiment of the present disclosure obtains the diagnostic routing configuration file of the model to which the target vehicle belongs with the model as the granularity by determining the diagnostic routing configuration file of the model to which the target vehicle belongs from the directory storing the diagnostic routing configuration file of the model to which the target vehicle belongs, and by loading the diagnostic routing configuration file, the diagnostic routing address of the first controller in the target vehicle can be accurately obtained, which effectively solves the problem of different diagnostic routing addresses corresponding to the same controller in different models. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0034] Figure 1 A flow chart of a vehicle diagnostic method provided by an embodiment of the present disclosure;
[0035] Figure 2 A schematic diagram of the structure of a vehicle diagnostic device provided by an embodiment of the present disclosure;
[0036] Figure 3 A schematic diagram of the structure of a vehicle diagnostic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] 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.
[0038] 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.
[0039] In order to accurately obtain the diagnostic routing address of the first controller in the target vehicle, an embodiment of the present disclosure provides a vehicle diagnostic method.
[0040] Specifically, in response to a diagnostic request for a first controller in a target vehicle, a query is made from a first configuration directory in the target vehicle whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle. When it is determined that there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs in the first configuration directory, the diagnostic routing configuration file is obtained, the diagnostic routing configuration file is loaded, and the diagnostic routing address of the first controller is obtained, wherein the diagnostic routing address is used to diagnose the first controller. It can be seen that the embodiment of the present disclosure obtains the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs with the vehicle model as the granularity by determining the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from the directory storing the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs. By loading the diagnostic routing configuration file, the diagnostic routing address of the first controller in the target vehicle can be accurately obtained, which effectively solves the problem of different diagnostic routing addresses corresponding to the same controller in different vehicle models.
[0041] Based on this, the present disclosure provides a vehicle diagnosis method, referring to Figure 1 , is a flow chart of a vehicle diagnostic method provided by an embodiment of the present disclosure, the method comprising:
[0042] S101: In response to a diagnosis request for a first controller in a target vehicle, query a first configuration directory in the target vehicle to see whether there is a diagnosis routing configuration file of a vehicle model to which the target vehicle belongs.
[0043] The first configuration directory is a pre-set directory for storing a diagnostic routing configuration file of a vehicle type to which the target vehicle belongs, and the diagnostic routing configuration file includes a diagnostic routing address corresponding to each controller in the target vehicle.
[0044] The vehicle diagnosis method provided in the embodiments of the present disclosure can be applied to scenarios where the same controllers of multiple vehicle models have different corresponding diagnosis routing addresses.
[0045] In the disclosed embodiment, the diagnostic routing configuration file includes the correspondence between the controller identifier of the target vehicle model, the diagnostic routing address, and the routing configuration information, wherein the routing configuration information refers to the configuration information related to the diagnostic parameters required on the diagnostic link, such as routing network segment information, routing IP (Internet Protocol Address), etc.
[0046] In the disclosed embodiment, the first controller may be any controller in the target vehicle, such as an air-conditioning controller, an engine controller, a body controller, etc. Accordingly, the diagnostic routing addresses corresponding to the various controllers in the target vehicle are used to realize communication between the diagnostic tool and the corresponding controller in the target vehicle, so that the diagnostic tool can access the corresponding controller based on the diagnostic routing address, thereby realizing diagnosis of the controller.
[0047] In the disclosed embodiment, since the first configuration directory exists in the target vehicle, and the first configuration target is a pre-set directory for storing the diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, when a diagnostic request from the first controller in the target vehicle is received, it is sufficient to directly query whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from the access path based on the first configuration directory in the target vehicle, without having to search for the diagnostic routing configuration file based on the vehicle identification of the target vehicle, such as VIN (Vehicle Identification Number), that is, skipping the process of searching based on the vehicle identification, reducing additional query steps, and shortening the time for obtaining the diagnostic routing configuration file.
[0048] Specifically, in response to a diagnostic request for a first controller in a target vehicle, before querying whether there is a diagnostic routing configuration file for the model of the target vehicle in the first configuration directory in the target vehicle, the diagnostic routing configuration file can be saved in the first configuration directory of the target vehicle.
[0049] In an optional implementation, when it is detected that the diagnostic service of the target vehicle is started, a request for a diagnostic routing configuration file of the model to which the target vehicle belongs is sent to a remote background server, a response message returned by the remote background server to the diagnostic routing configuration file request is received, and the diagnostic routing configuration file is saved to the first configuration directory of the target vehicle.
[0050] The diagnostic routing configuration file request is used to request the remote background service to return the diagnostic routing configuration file of the model of the target vehicle, and the response message carries the diagnostic routing configuration file of the model of the target vehicle.
[0051] In the embodiments of the present disclosure, the remote background server refers to a server used to provide services and resources such as diagnostic routing configuration files. Specifically, the remote background server can be any type of server such as a cloud server, etc. The embodiments of the present disclosure do not impose any limitation on the type of the remote background server.
[0052] In the disclosed embodiment, when it is detected that the diagnostic service of the target vehicle is started, the diagnostic routing configuration file of the model to which the target vehicle belongs can be obtained by sending a diagnostic routing configuration file request for the model to which the target vehicle belongs to a remote background server, and the diagnostic routing configuration file is saved in the first configuration directory of the target vehicle, so that when a diagnostic request for the first controller in the target vehicle is received, the diagnostic routing configuration file of the model to which the target vehicle belongs can be queried from the first configuration directory.
[0053] In an optional implementation, the diagnostic routing profile request may carry a vehicle identification of the target vehicle, so that when the remote background server receives the diagnostic routing profile request, it can determine the model identification of the target vehicle from the vehicle database based on the target vehicle identification, and determine the diagnostic routing profile of the model of the target vehicle based on the target vehicle identification.
[0054] In the disclosed embodiment, the diagnostic routing configuration file request is used to request the remote background server to determine the model identification of the target vehicle based on the vehicle identification of the target vehicle, and return the diagnostic routing configuration file of the model of the target vehicle based on the model identification of the target vehicle.
[0055] After the remote background server obtains the diagnostic routing configuration file of the model to which the target vehicle belongs, it can request a response message returned from the diagnostic routing configuration file, so that after receiving the response message, the target vehicle can parse the response message to obtain the diagnostic routing configuration file of the model to which the target vehicle belongs, and save the diagnostic routing configuration file to the first configuration directory of the target vehicle.
[0056] In addition, in order to obtain the diagnostic routing configuration file of the target vehicle model from the remote background server when the target vehicle model is a new model launched by the automobile manufacturer, in an optional implementation, the remote background server can update the diagnostic routing configuration file library based on the update frequency.
[0057] Specifically, the diagnostic routing configuration file library includes a correspondence between vehicle type identifications and diagnostic routing configuration files.
[0058] In the embodiment of the present disclosure, the update frequency refers to the time interval for updating the diagnosis routing configuration file library.
[0059] In another optional implementation, the remote background server may also update the diagnostic routing configuration file library when receiving a new vehicle model release request or a diagnostic routing configuration file change request.
[0060] S102: When it is determined that a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists in the first configuration directory, the diagnostic routing configuration file is obtained.
[0061] In the disclosed embodiment, since the first configuration directory is a pre-set directory for storing the diagnostic routing configuration files of the model to which the target vehicle belongs, when it is determined that the diagnostic routing configuration files of the model to which the target vehicle belongs exist under the first configuration directory, the diagnostic routing configuration files can be directly obtained based on the access path of the first configuration directory.
[0062] In the disclosed embodiment, when a request to change a diagnostic routing configuration file of a target vehicle type is received, the diagnostic routing configuration file of the target vehicle type can be directly changed without affecting the diagnostic routing configuration files of other vehicle types.
[0063] In addition, when the remote background server fails to send the diagnostic routing configuration file of the model of the target vehicle to the first configuration directory in the target vehicle, in order to obtain the diagnostic routing configuration file of the model of the target vehicle, in an optional implementation, when it is determined that the diagnostic routing configuration file of the model of the target vehicle does not exist in the first configuration directory, it is possible to query whether the diagnostic routing configuration file of the model of the target vehicle exists in the second configuration directory, thereby obtaining the diagnostic routing configuration file when it is determined that the diagnostic routing configuration file of the model of the target vehicle exists in the second configuration directory.
[0064] The second configuration directory is a pre-set directory for storing the correspondence between the vehicle model identification and the diagnostic routing configuration file.
[0065] In the disclosed embodiment, the second configuration directory is different from the first configuration directory. Specifically, the second configuration directory can be understood as a backup configuration directory, which can ensure that even when the diagnostic routing configuration file of the target vehicle model does not exist in the first configuration directory, the corresponding diagnostic routing configuration file can still be obtained and vehicle diagnosis can continue.
[0066] In an optional implementation, before querying from the second configuration directory whether there is a diagnostic routing configuration file for the model of the target vehicle, the entire vehicle configuration word information of the target vehicle can also be obtained, and the model identification of the target vehicle can be determined from the entire vehicle configuration word information, thereby querying from the second configuration directory whether there is a diagnostic routing configuration file for the model of the target vehicle based on the model identification of the target vehicle.
[0067] In the disclosed embodiment, the vehicle configuration word includes a vehicle model, configuration options, controller information, etc. Specifically, the vehicle model identification of the target vehicle can be determined by parsing the vehicle configuration word information of the target vehicle, and then based on the vehicle model identification of the target vehicle, it is possible to query whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from the correspondence between the vehicle model identification and the diagnostic routing configuration file stored in the second configuration directory.
[0068] In addition, in order to ensure the continuity of the program, in an optional implementation, when it is determined that the diagnostic routing configuration file of the model of the target vehicle does not exist in the second configuration directory, the preset diagnostic routing configuration file in the second configuration directory is used as the diagnostic routing configuration file of the model of the target vehicle.
[0069] The preset diagnostic routing configuration file may be any diagnostic routing configuration file under the second configuration directory, and the embodiment of the present disclosure does not impose any limitation thereto.
[0070] S103: Load the diagnostic routing configuration file to obtain the diagnostic routing address of the first controller.
[0071] The diagnostic routing address is used to diagnose the first controller.
[0072] In the disclosed embodiment, after obtaining the diagnostic routing configuration file of the model to which the target vehicle belongs, the diagnostic routing configuration file of the model to which the target vehicle belongs can be loaded by using the first controller identifier carried in the diagnostic request of the first controller in the target vehicle to obtain the diagnostic routing address of the first controller. There is no need to load the diagnostic routing configuration files of the models to which other vehicles belong, thereby reducing the processing of invalid information and improving the loading efficiency of the diagnostic routing configuration files.
[0073] In the vehicle diagnosis method provided by the present disclosure, in response to a diagnosis request for a first controller in a target vehicle, a query is made from a first configuration directory in the target vehicle whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle. When it is determined that there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs in the first configuration directory, the diagnostic routing configuration file is obtained, the diagnostic routing configuration file is loaded, and the diagnostic routing address of the first controller is obtained, wherein the diagnostic routing address is used to diagnose the first controller. It can be seen that the embodiment of the present disclosure obtains the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs with the vehicle model as the granularity by determining the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from the directory storing the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs, and by loading the diagnostic routing configuration file, the diagnostic routing address of the first controller in the target vehicle can be accurately obtained, which effectively solves the problem that the diagnostic routing addresses corresponding to the same controller in different vehicle models are different.
[0074] Based on the same inventive concept as the above-mentioned embodiment, the present disclosure also provides a vehicle diagnostic device, referring to Figure 2 , is a schematic diagram of the structure of a vehicle diagnostic device provided by an embodiment of the present disclosure, wherein the vehicle diagnostic device 200 comprises:
[0075] A first query module 201 is used to query whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from a first configuration directory in the target vehicle in response to a diagnostic request for a first controller in the target vehicle; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle;
[0076] A first acquisition module 202, configured to acquire the diagnostic routing configuration file when it is determined that the diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists in the first configuration directory;
[0077] The second acquisition module 203 is used to load the diagnostic routing configuration file to obtain the diagnostic routing address of the first controller; wherein the diagnostic routing address is used to diagnose the first controller.
[0078] In an optional implementation, the device further includes:
[0079] A sending module, configured to send a diagnostic routing configuration file request of the vehicle model to which the target vehicle belongs to to a remote background server when detecting that the target vehicle diagnostic service is started; wherein the diagnostic routing configuration file request is used to request the remote background service to return the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs;
[0080] A receiving module, configured to receive a response message returned by the remote background server in response to the diagnostic routing configuration file request; wherein the response message carries the diagnostic routing configuration file of the vehicle type to which the target vehicle belongs;
[0081] The saving module is used to save the diagnostic routing configuration file to the first configuration directory of the target vehicle.
[0082] In an optional implementation, the device further includes:
[0083] A second query module is used to query whether there is a diagnostic routing configuration file of the model to which the target vehicle belongs from a second configuration directory when it is determined that the diagnostic routing configuration file of the model to which the target vehicle belongs does not exist in the first configuration directory; wherein the second configuration directory is a pre-set directory for storing the correspondence between the model identification and the diagnostic routing configuration file;
[0084] The third acquisition module is used to acquire the diagnostic routing configuration file when it is determined that the diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists in the second configuration directory.
[0085] In an optional implementation, the device further includes:
[0086] The determination module is used to use the preset diagnostic routing configuration file in the second configuration directory as the diagnostic routing configuration file of the model to which the target vehicle belongs when it is determined that the diagnostic routing configuration file of the model to which the target vehicle belongs does not exist in the second configuration directory.
[0087] In an optional implementation, the device further includes:
[0088] A fourth acquisition module is used to acquire the whole vehicle configuration word information of the target vehicle, and determine the vehicle model identification of the target vehicle from the whole vehicle configuration word information;
[0089] Accordingly, the second query module is specifically used for:
[0090] According to the vehicle type identifier of the target vehicle, a query is made from the second configuration directory to determine whether a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists.
[0091] In an optional implementation, the diagnostic routing profile request carries a vehicle identification of the target vehicle, and the diagnostic routing profile request is used to request the remote background server to determine a vehicle model identification of the target vehicle based on the vehicle identification of the target vehicle, and return a diagnostic routing profile of the vehicle model to which the target vehicle belongs based on the vehicle identification of the target vehicle.
[0092] In an optional implementation, the remote background server is used to update the diagnostic routing configuration file library based on an update frequency, and the diagnostic routing configuration file library includes a correspondence between vehicle model identifications and diagnostic routing configuration files.
[0093] In the vehicle diagnostic device provided by the embodiment of the present disclosure, in response to a diagnostic request for a first controller in a target vehicle, a query is made from the first configuration directory in the target vehicle whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle. When it is determined that there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs in the first configuration directory, the diagnostic routing configuration file is obtained, the diagnostic routing configuration file is loaded, and the diagnostic routing address of the first controller is obtained, wherein the diagnostic routing address is used to diagnose the first controller. It can be seen that the embodiment of the present disclosure obtains the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs with the vehicle model as the granularity by determining the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from the directory storing the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs, and by loading the diagnostic routing configuration file, the diagnostic routing address of the first controller in the target vehicle can be accurately obtained, which effectively solves the problem of different diagnostic routing addresses corresponding to the same controller in different vehicle models.
[0094] In addition to the above-mentioned method and apparatus, the embodiment of the present disclosure further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device implements the vehicle diagnostic method described in the embodiment of the present disclosure.
[0095] In addition, the present disclosure also provides a vehicle diagnostic device, see Figure 3 As shown, it may include:
[0096] Processor 301, memory 302, input device 303 and output device 304. The number of processors 301 in the vehicle diagnostic device can be one or more. Figure 3In some embodiments of the present disclosure, the processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means, wherein: Figure 3 The example of connecting through bus is taken in the following.
[0097] The memory 302 can be used to store software programs and modules. The processor 301 runs the software programs and modules stored in the memory 302, thereby realizing various functional applications and data processing of the vehicle diagnostic device. The memory 302 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc. In addition, the memory 302 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The input device 303 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the vehicle diagnostic device.
[0098] Specifically in this embodiment, the processor 301 will load the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 will run the applications stored in the memory 302, thereby realizing the various functions of the above-mentioned vehicle diagnostic equipment.
[0099] 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 terms "include", "comprise" or any other variants thereof are 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 "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0100] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A vehicle diagnostic method, characterized in that: The method comprises: In response to a diagnostic request for a first controller in a target vehicle, querying from a first configuration directory in the target vehicle whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle; When it is determined that a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists in the first configuration directory, acquiring the diagnostic routing configuration file; The diagnostic routing configuration file is loaded to obtain a diagnostic routing address of the first controller; wherein the diagnostic routing address is used to diagnose the first controller.
2. The method according to claim 1, characterized in that Before the step of responding to the diagnostic request for the first controller in the target vehicle and querying from the first configuration directory in the target vehicle whether there is a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs, the step further includes: When it is detected that the target vehicle diagnostic service is started, a diagnostic routing configuration file request of the vehicle model to which the target vehicle belongs is sent to a remote background server; wherein the diagnostic routing configuration file request is used to request the remote background service to return the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs; Receiving a response message returned by the remote background server in response to the diagnostic routing configuration file request; wherein the response message carries the diagnostic routing configuration file of the vehicle type to which the target vehicle belongs; The diagnostic routing configuration file is saved in a first configuration directory of the target vehicle.
3. The method according to claim 1, characterized in that The method further comprises: When it is determined that the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs does not exist in the first configuration directory, querying whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs in the second configuration directory; wherein the second configuration directory is a pre-set directory for storing the correspondence between the vehicle model identification and the diagnostic routing configuration file; When it is determined that a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists in the second configuration directory, the diagnostic routing configuration file is acquired.
4. The method according to claim 3, characterized in that The method further comprises: When it is determined that the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs does not exist in the second configuration directory, the preset diagnostic routing configuration file in the second configuration directory is used as the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs.
5. The method according to claim 3, characterized in that: Before querying whether there is a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs from the second configuration directory, the method further includes: Obtaining the whole vehicle configuration word information of the target vehicle, and determining the vehicle model identification of the target vehicle from the whole vehicle configuration word information; Accordingly, the querying from the second configuration directory whether there is a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs includes: According to the vehicle type identifier of the target vehicle, a query is made from the second configuration directory to determine whether a diagnostic routing configuration file of the vehicle type to which the target vehicle belongs exists.
6. The method according to claim 2, characterized in that The diagnostic routing configuration file request carries the vehicle identification of the target vehicle, and the diagnostic routing configuration file request is used to request the remote background server to determine the model identification of the target vehicle based on the vehicle identification of the target vehicle, and return the diagnostic routing configuration file of the model of the target vehicle based on the model identification of the target vehicle.
7. The method according to claim 2, characterized in that The remote background server is used to update the diagnostic routing configuration file library based on the update frequency, and the diagnostic routing configuration file library includes the corresponding relationship between the vehicle model identification and the diagnostic routing configuration file.
8. A vehicle diagnostic device, characterized in that: The device comprises: A first query module is used to query whether there is a diagnostic routing configuration file of the vehicle model to which the target vehicle belongs from a first configuration directory in the target vehicle in response to a diagnostic request for a first controller in the target vehicle; wherein the first configuration directory is a pre-set directory for storing diagnostic routing configuration files of the vehicle model to which the target vehicle belongs, and the diagnostic routing configuration file includes diagnostic routing addresses corresponding to each controller in the target vehicle; A first acquisition module, configured to acquire the diagnostic routing configuration file when it is determined that the diagnostic routing configuration file of the vehicle model to which the target vehicle belongs exists in the first configuration directory; The second acquisition module is used to load the diagnostic routing configuration file to obtain the diagnostic routing address of the first controller; wherein the diagnostic routing address is used to diagnose the first controller.
9. A vehicle diagnostic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 7.