Diagnostic methods, devices, and storage media
By connecting the host computer and the diagnostic device via the SOME/IP protocol, diagnostic requests can be sent directly and diagnostic scripts can be executed, solving the problems of high cost and low reusability of existing vehicle diagnostic methods and realizing an efficient and low-cost diagnostic process.
Patent Information
- Application Number
- CN202310133989.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-02-17
AI Technical Summary
Existing vehicle diagnostic methods are costly and have low reusability of diagnostic instructions.
The host computer connects to the diagnostic device via the SOME/IP protocol, directly sending diagnostic requests. The diagnostic device obtains and executes the diagnostic script to obtain the diagnostic results, saving VCI hardware costs and improving the transmission efficiency and reuse rate of diagnostic requests.
It reduces diagnostic costs, improves the transmission efficiency and reuse rate of diagnostic requests, and enables flexibility and efficiency of local diagnostic tasks.
Smart Images

Figure CN116489182B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control technology, and more specifically, to a diagnostic method, apparatus, and computer-readable storage medium. Background Technology
[0002] With the development of automotive electronics and network technology, the capabilities of vehicle controllers are constantly improving, and vehicle domain controllers are gradually being applied to vehicles.
[0003] Currently, when vehicle diagnostics are required, a computer can be connected to the vehicle via a VCI. The vehicle sends diagnostic commands in serial format to the VCI via a serial cable. The VCI then converts the diagnostic commands into UDS format diagnostic commands and sends the converted UDS format diagnostic commands back to the vehicle. The vehicle then performs diagnostics based on the UDS format diagnostic commands to obtain diagnostic results, thereby achieving vehicle diagnostics.
[0004] However, existing diagnostic methods are costly and have low reusability of diagnostic instructions. Summary of the Invention
[0005] In view of this, this application proposes a diagnostic method, apparatus, and computer-readable storage medium to solve the above problems.
[0006] In a first aspect, embodiments of this application provide a diagnostic method for a diagnostic device connected to a host computer via the SOME / IP protocol. The method includes: receiving a diagnostic request sent by the host computer via the SOME / IP protocol; obtaining a diagnostic script based on the diagnostic request; controlling the diagnostic engine of the diagnostic device to execute the diagnostic script to obtain a diagnostic result; sending a result feedback request to the host computer via the SOME / IP protocol based on the diagnostic result, so that the host computer returns a result feedback instruction via the SOME / IP protocol based on the result feedback request; and sending the diagnostic result to the host computer according to the result feedback instruction.
[0007] Secondly, embodiments of this application provide a diagnostic device, the vehicle including:
[0008] One or more processors;
[0009] Memory;
[0010] One or more applications, wherein the applications are stored in memory and configured to be executed by one or more processors, and the applications are configured to perform the methods of the first aspect described above.
[0011] Thirdly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the method described in the first aspect.
[0012] This application provides a diagnostic method, apparatus, and computer-readable storage medium. In this application, the host computer and the diagnostic device are connected via the SOME / IP protocol. The host computer can directly send diagnostic requests via the SOME / IP protocol, and the diagnostic device can obtain the diagnostic script based on the diagnostic request. Then, the diagnostic engine executes the diagnostic script to obtain the diagnostic results, thus realizing the local diagnostic task. During the diagnostic process, the host computer does not need to call VCI to send and receive diagnostic requests, which saves the hardware cost of VCI, reduces the diagnostic cost, and improves the transmission efficiency and reuse rate of diagnostic requests.
[0013] These or other aspects of this application will become more apparent from the description of the following embodiments. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 A schematic diagram of a vehicle hardware environment applicable to embodiments of this application is shown.
[0016] Figure 2 A flowchart of a diagnostic method according to an embodiment of this application is shown.
[0017] Figure 3 A schematic diagram illustrating the format of a diagnostic request according to an embodiment of this application is shown;
[0018] Figure 4 A schematic diagram of a vehicle diagnostic process according to an embodiment of this application is shown;
[0019] Figure 5 A flowchart of a diagnostic method according to yet another embodiment of this application is shown.
[0020] Figure 6 A flowchart of a diagnostic method according to another embodiment of this application is shown.
[0021] Figure 7 A structural block diagram of a diagnostic device according to an embodiment of this application is shown.
[0022] Figure 8This invention provides a structural block diagram of a vehicle according to one embodiment of the present application.
[0023] Figure 9 This paper shows a structural block diagram of a host computer according to an embodiment of this application;
[0024] Figure 10 A structural block diagram of a computer-readable storage medium provided in an embodiment of this application is shown. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. 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.
[0026] like Figure 1 As shown, the application scenario applicable to this application embodiment includes a vehicle 10 and a host computer 20, which are connected via a wired or wireless network. The vehicle 10 can be a sedan, bus, SUV, or truck with autonomous driving capabilities, and it can also be a vehicle with a diagnostic engine used for vehicle diagnostics.
[0027] The host computer 20 can be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a personal computer or other devices.
[0028] The host computer 20 can construct a diagnostic request and a diagnostic script, and send the diagnostic request and diagnostic script to the vehicle 10. The vehicle 10 performs a diagnosis based on the diagnostic request and diagnostic script, obtains a diagnostic result, and then sends the diagnostic result back to the host computer 20.
[0029] Vehicle 10 can be used as a diagnostic device to control the diagnostic engine to run diagnostic scripts according to diagnostic requests, obtain diagnostic results, and feed the diagnostic results back to the host computer.
[0030] As one possible implementation, the vehicle self-diagnostic system (On-Board Diagnostics, OBD) in vehicle 10 can be used as a diagnostic device to control the diagnostic engine to run diagnostic scripts according to diagnostic requests, obtain diagnostic results, and feed the diagnostic results back to the host computer.
[0031] Reference Figure 2 , Figure 2 A flowchart of a diagnostic method according to an embodiment of this application is shown. The method is used in a diagnostic device and includes:
[0032] S110: Receive the diagnostic request sent by the host computer via the SOME / IP protocol, and obtain the diagnostic script according to the diagnostic request.
[0033] In this application, the diagnostic device can be a vehicle or a vehicle self-diagnostic system within a vehicle. The diagnostic device can be an electric vehicle or a gasoline-powered vehicle with a built-in diagnostic engine. The vehicle can be a sedan, SUV, bus, or truck, etc. The diagnostic engine can be used for vehicle diagnostics.
[0034] The host computer can refer to a personal computer or server connected to the diagnostic device, and this application does not specifically limit this. The host computer can connect to the diagnostic device via wired or wireless network and establish communication between them through the SOME / IP protocol. For example, the diagnostic device connects to the host computer through the OBD interface.
[0035] In some possible implementations, the diagnostic device also connects to a host computer via the HTTP protocol. Establishing this communication connection between the vehicle and the host computer can include: configuring the diagnostic device as a sender for the SOME / IP protocol and a requester for the HTTP protocol using pre-defined code; and activating the vehicle diagnostic service of the diagnostic device.
[0036] First, the host computer and the diagnostic device are connected via the OBD interface to form a local area network. The host computer acts as the client (requesting end) of the SOME / IP protocol, and the diagnostic device acts as the server (sender) of the SOME / IP protocol. At the same time, the host computer acts as the server (sender) of the HTTP protocol, and the diagnostic device acts as the client (requesting end) of the HTTP protocol. The host computer and the diagnostic device are configured through preset code (the preset code can be code in any language format), thereby establishing a communication connection between the host computer and the diagnostic device.
[0037] After successfully connecting to the local area network as a SOME / IP server, the diagnostic device starts the vehicle diagnostic service, which mainly includes two parts: (1) a service for receiving diagnostic requests based on Request & Response Method messages, used to receive diagnostic requests sent by the host computer; and (2) a service for the diagnostic engine status based on Event message type, used to periodically send diagnostic engine status information to the host computer. The diagnostic engine status information (i.e., the diagnostic engine status information below) includes whether the diagnostic script is running or has finished running.
[0038] After activating the vehicle diagnostic service, the diagnostic device can broadcast diagnostic function activation information via the SOME / IP protocol at a preset period. Upon receiving this information, the host computer sends a diagnostic engine status subscription message to the diagnostic device via the SOME / IP protocol. In response to the subscription message, the host computer sends its diagnostic engine status information to the host computer via the SOME / IP protocol. This allows the diagnostic device to determine the availability of the diagnostic engine. If the engine is available, the host computer receives diagnostic operations and, based on the operations and a preset template, sends a diagnostic request to the host computer via the SOME / IP protocol. The preset period can be 5 seconds, etc., and is not limited to this specific period in this application.
[0039] The diagnostic function activation information may include the service ID and service instance ID of the vehicle diagnostic service. This information can be in the form of a SOME / IP SD message, used to inform the host computer that the vehicle diagnostic function has been enabled. The host computer can then send diagnostic engine status subscription information to the diagnostic device based on this SOME / IP SD message, thus subscribing to the diagnostic device's SOME / IP service. This allows the diagnostic device to report diagnostic engine status information based on the subscribed SOME / IP service.
[0040] The diagnostic engine can be determined to be available when its status information indicates the diagnostic script has finished running, and unavailable when its status information indicates the diagnostic script is running. Pre-set templates can be customized according to requirements. Users can fill in the required parameters in the pre-set templates through diagnostic operations. The host computer can then generate diagnostic requests based on the diagnostic operations and the pre-set templates.
[0041] In some implementations, after the vehicle diagnostic service is started, the diagnostic device broadcasts diagnostic function activation information (e.g., an OfferServe message) to inform the host computer that the vehicle diagnostic service has been started and can receive diagnostic requests.
[0042] When the diagnostic device's OfferService message times out (e.g., the sending period exceeds the preset period, possibly due to vehicle malfunction), the host computer will not receive the OfferService message. In this case, the host computer needs to send a FindService message to prompt the diagnostic device to restart the diagnostic service and reply with the corresponding OfferService message.
[0043] After receiving a diagnostic request, the diagnostic device can send a diagnostic response to the host computer, allowing the host computer to determine that the diagnostic device has received the diagnostic request based on the response. Simultaneously, the diagnostic device acquires the diagnostic script, which can be stored locally in the vehicle, on the host computer, or on other servers (such as a physical server or a network server).
[0044] A diagnostic request may include message type, protocol version, signaling sending time (the time when the diagnostic request is sent), task number, and user-defined parameters, the content of which is defined according to different diagnostic request message types.
[0045] The diagnostic request may also include information such as the location where the diagnostic script is saved, the execution conditions of the diagnostic script, and the script execution parameters. The location where the diagnostic script is saved may refer to the storage address of the diagnostic script, which is used by the diagnostic device to obtain the diagnostic script based on the location where the diagnostic script is saved.
[0046] For example, the format of a diagnostic script can be as follows:
[0047]
[0048]
[0049] messageType: Message type; protocolVersion: Protocol version; timeestamp: Signaling transmission time; taskID: Task ID; customParameter: User-defined parameters, the content of which is defined according to different diagnostic request message types.
[0050] Refer to the format of the diagnostic request Figure 3 As shown, the host computer generates diagnostic instructions based on the diagnostic operation and preset template. The host computer then converts the diagnostic instructions into JSON format instruction data, converts the JSON format instruction data into bytecode, and adds SOME / IP signaling header information to the bytecode to obtain a diagnostic request. After that, the host computer sends the diagnostic request to the diagnostic device, which receives the diagnostic request. After receiving the diagnostic request, the diagnostic device can parse the SOME / IP signaling header information through the diagnostic device's CCU to obtain a diagnostic message, and send the diagnostic message to the diagnostic engine. The diagnostic engine then obtains the diagnostic script based on the diagnostic message.
[0051] S120: Control the diagnostic engine to execute the diagnostic script and obtain the diagnostic results.
[0052] After obtaining the diagnostic script, the diagnostic device controls the diagnostic engine to execute the diagnostic script, and after the diagnostic script is executed, the diagnostic results of the diagnostic device are obtained.
[0053] S130. Based on the diagnostic results, a result feedback request is sent to the host computer via the SOME / IP protocol, so that the host computer returns a result feedback instruction via the SOME / IP protocol based on the result feedback request.
[0054] S140. Based on the result feedback instruction, send the diagnostic results to the host computer.
[0055] After obtaining the diagnostic results, the diagnostic device sends a result feedback request to the host computer to inform the host computer that the diagnosis is complete and the diagnostic results can be sent. Based on the result feedback request, the host computer returns a result feedback instruction, which is used by the diagnostic device to send the diagnostic results.
[0056] In one implementation, the diagnostic device is also connected to a host computer via the HTTP protocol; S140 may include: according to the result feedback instruction, sending the diagnostic result to the host computer via the HTTP protocol, so that the host computer responds to the received diagnostic result by returning a result feedback response to the vehicle via the HTTP protocol.
[0057] The diagnostic device can send a script completion command (i.e., a result return request) to the host computer via the vehicle diagnostic service. The host computer can then send a result return command and wait for the diagnostic device to send the diagnostic results back via an HTTP request.
[0058] Upon receiving the result feedback command, the diagnostic device sends the diagnostic results to the host computer. The host computer receives the diagnostic results and returns a result feedback response to the diagnostic device via HTTP protocol, informing the device that the diagnostic results have been received. The host computer can also store and output the diagnostic results for user viewing and management.
[0059] After receiving the result feedback request, the host computer sends an HTTP request (i.e., a result feedback instruction) to the diagnostic device according to the URL in the result feedback request, so that the diagnostic device can transmit the diagnostic results according to the result feedback instruction.
[0060] In one possible scenario, the diagnostic process refers to Figure 4 As shown, the diagnostic process includes:
[0061] The diagnostic device and the host computer form a local area network and establish a communication connection using the SOME / IP protocol;
[0062] Broadcast SOME / IP SD message (Diagnostic device activates vehicle diagnostic service);
[0063] The host computer subscribes to the SOME / IP service based on the SOME / IP SD message (achieved by sending diagnostic engine status subscription information to the diagnostic device);
[0064] If the host computer fails to subscribe to the SOME / IP service, the host computer sends a Find Service message.
[0065] The diagnostic device sends an Offer Service message (used to subscribe to the SOME / IP service) based on the Find Service message;
[0066] The diagnostic device sends diagnostic engine status information;
[0067] The host computer responds to the received diagnostic engine status information and returns a result (used to notify the diagnostic device that the diagnostic engine status information has been received; these two steps are cyclical and can be repeated according to a preset period until the host computer starts the diagnostic task).
[0068] The host computer initiates the diagnostic task (by sending a diagnostic request);
[0069] The diagnostic device returns the startup result (returns a diagnostic response);
[0070] The diagnostic device is requesting a diagnostic script (the diagnostic script for this scenario is stored on the host computer);
[0071] The host computer sends out diagnostic scripts;
[0072] The diagnostic device controls the diagnostic engine to execute diagnostic scripts.
[0073] After the diagnostic device completes the execution of the diagnostic script, it obtains the diagnostic results and sends a diagnostic result request (that is, a request to send the results back).
[0074] The host computer responds to the diagnostic result request (that is, the command to return the result);
[0075] The diagnostic device requests the upload of diagnostic results based on the diagnostic findings;
[0076] The host computer receives the diagnostic results and returns a diagnostic result response (that is, the feedback response in the above embodiment, used to notify the diagnostic device that the diagnostic results have been received).
[0077] In this embodiment, the host computer and the diagnostic device are connected via the SOME / IP protocol. The host computer can directly send diagnostic requests via the SOME / IP protocol, and the diagnostic device can obtain the diagnostic script based on the diagnostic request. Then, the diagnostic engine executes the diagnostic script to obtain the diagnostic results, thus realizing the local diagnostic task. During the diagnostic process, the host computer does not need to call VCI to send and receive diagnostic requests, which saves the hardware cost of VCI, reduces the diagnostic cost, and improves the transmission efficiency and reuse rate of diagnostic requests.
[0078] Reference Figure 5 , Figure 5 A flowchart of a diagnostic method according to yet another embodiment of this application is shown. The method is used for a vehicle and includes:
[0079] S210: Receive the diagnostic request sent by the host computer via the SOME / IP protocol, and obtain the diagnostic script according to the diagnostic request.
[0080] The description of S210 is the same as that of S110 above, and will not be repeated here.
[0081] S220. During the execution of the diagnostic script by the control diagnostic engine, obtain interaction information; generate an interaction request based on the interaction information.
[0082] The interactive information includes parameters required during the execution of the diagnostic script and / or prompts generated during the execution of the diagnostic script.
[0083] In this embodiment, during the execution of the diagnostic script by the diagnostic engine, when a certain parameter is needed and / or an information prompt is generated, interactive information can be generated based on the certain parameter and / or the information prompt, and then an interactive request can be generated based on the interactive information.
[0084] S230: Send an interaction request to the host computer via the SOME / IP protocol, so that the host computer returns an interaction response via the SOME / IP protocol based on the interaction request; according to the interaction response, control the diagnostic engine to continue executing the diagnostic script and obtain the diagnostic results.
[0085] The interactive response is used to indicate to the host computer that the interactive request has been received. After receiving the interactive request, the diagnostic device sends the interactive request to the host computer. When the host computer receives the interactive request, it returns an interactive response, which is used to notify the diagnostic device that the interactive request has been received. The interactive response may also include parameters required by the interactive request. At the same time, based on the interactive response, the host computer controls the diagnostic engine to continue executing the diagnostic script until the diagnostic script finishes running and the diagnostic results are obtained.
[0086] By obtaining interactive responses through interactive requests, we can avoid diagnostic failures caused by missing parameters during the execution of diagnostic scripts by the diagnostic engine.
[0087] The format of the interaction request can refer to the format of the diagnostic request above (e.g., Figure 3 As shown in the image, this will not be elaborated upon further here.
[0088] S240: In response to the request to modify engine parameters sent by the host computer via the SOME / IP protocol, send a response to modify engine parameters to the host computer via the SOME / IP protocol; modify the parameters of the diagnostic engine according to the parameter modification information in the request to modify engine parameters, and obtain the modified diagnostic engine.
[0089] The "Modify Engine Parameters Response" indicates that the "Modify Engine Parameters Response" has been received. The host computer can also obtain the "Modify Engine Parameters Response" based on the modification operation and send it to the diagnostic device. The diagnostic device receives the "Modify Engine Parameters Response" and returns a "Modify Engine Parameters Response," which notifies the host computer that the "Modify Engine Parameters Response" has been received.
[0090] Subsequently, the diagnostic device can modify the parameters of the diagnostic engine according to the parameter modification information in the engine parameter modification request, resulting in a modified diagnostic engine that can be used in the next diagnostic process. The parameter modification information may include modification information for the diagnostic engine execution conditions and modification information for the diagnostic engine execution time parameters.
[0091] It should be noted that in this embodiment, S240 can be executed before S210. That is, modifying the diagnostic engine parameters can be done before the diagnosis (for the current diagnosis) or after the diagnosis (for the next diagnosis).
[0092] S250: Based on the diagnostic results, send a result feedback request to the host computer via the SOME / IP protocol, so that the host computer returns a result feedback instruction via the SOME / IP protocol based on the result feedback request; and send the diagnostic results to the host computer according to the result feedback instruction.
[0093] The description of S250 is the same as that of S130-S140 above, and will not be repeated here.
[0094] In this embodiment, the diagnostic engine can be modified to diversify its parameters and improve its applicability. At the same time, during the diagnostic process, interaction between the vehicle and the host computer can be performed, making the diagnostic process smoother and improving the diagnostic success rate.
[0095] Reference Figure 6 , Figure 6 A flowchart of a diagnostic method according to yet another embodiment of this application is shown. The method is used for a vehicle and includes:
[0096] S310: Receive a diagnostic request sent by the host computer via the SOME / IP protocol; obtain the diagnostic script based on the diagnostic request.
[0097] The description of S310 is the same as that of S110 above, and will not be repeated here.
[0098] S320. If the diagnostic request is determined to belong to the diagnostic engine signaling category based on the header information of the SOME / IP signaling in the diagnostic request, the bytecode in the diagnostic request is converted into the target format to obtain the conversion information; the diagnostic script is obtained based on the diagnostic script name in the conversion information.
[0099] The target format can be JSON format. The diagnostic engine signaling categories can include diagnostic requests, diagnostic responses, result feedback requests, interactive requests, interactive responses, abort requests, abort responses, diagnostic execution condition parameter modification requests (one type of engine parameter modification request), diagnostic execution condition parameter modification request responses (one type of engine parameter modification response), diagnostic engine time parameter modification requests (one type of engine parameter modification request), and diagnostic engine time parameter modification request responses (one type of engine parameter modification response).
[0100] For a detailed description of the diagnostic engine signaling categories, please refer to Table 1, which is as follows:
[0101] Table 1
[0102]
[0103] The format of the diagnostic engine signaling category information can refer to the format of the diagnostic request above (e.g., Figure 3 As shown in the figure, the structure is similar and will not be described in detail.
[0104] For example, in response to a diagnostic request, such as Figure 3 As shown, the CCU of the diagnostic device can determine the header information of the SOME / IP signaling in the diagnostic request. If the header information of the SOME / IP signaling determines that it is a diagnostic engine signaling type, the diagnostic message in the diagnostic request is obtained. The diagnostic message is in bytecode format. The message is then converted to obtain JSON format conversion information. The diagnostic engine then obtains the diagnostic script based on the diagnostic script name and the storage address of the diagnostic script in the conversion information (from the network server, physical server, host computer, or vehicle local machine, etc.).
[0105] S330: Control the diagnostic engine to execute the diagnostic script; in response to the abort request sent by the host computer via the SOME / IP protocol, control the diagnostic engine to stop executing the diagnostic script; generate an abort response and send the abort response to the host computer via the SOME / IP protocol.
[0106] During the execution of the diagnostic script by the diagnostic device, the host computer can also receive a stop operation, obtain a stop request based on the stop operation, send the stop request to the vehicle, control the diagnostic engine to stop executing the diagnostic script, stop diagnosing the vehicle, generate a stop response, and then send the stop response to the host computer so that the host computer can determine that the vehicle has stopped the diagnostic process.
[0107] In this embodiment, the diagnostic process can be stopped at any time, which improves the controllability of the vehicle diagnostic process and makes the diagnostic process more flexible.
[0108] In this application, the host computer can be a personal computer, and the diagnostic device does not need to be connected to a server (network server or physical server), thus realizing a local diagnostic solution and greatly saving maintenance costs. Simultaneously, by connecting the diagnostic device and the host computer via a local area network and establishing a SOME / IP protocol connection, a single host computer can simultaneously diagnose multiple vehicles and invoke the diagnostic engine locally, improving the flexibility of local diagnostics. When the diagnostic device supports WiFi connectivity, it can also solve the geographical limitations of after-sales diagnostics.
[0109] Reference Figure 7 , Figure 7 This diagram illustrates a structural block diagram of a diagnostic device according to an embodiment of this application. Device 800 is used for diagnostic purposes, and the diagnostic device is connected to a host computer via the SOME / IP protocol. Device 800 includes:
[0110] The request receiving module 810 is used to receive diagnostic requests sent by the host computer via the SOME / IP protocol;
[0111] The script acquisition module 820 is used to acquire the diagnostic script based on the diagnostic request;
[0112] The diagnostic module 830 is used to control the diagnostic engine of the diagnostic device to execute diagnostic scripts and obtain diagnostic results.
[0113] The result request module 840 is used to send a result feedback request to the host computer via the SOME / IP protocol based on the diagnostic results, so that the host computer can return a result feedback instruction via the SOME / IP protocol based on the result feedback request.
[0114] The result sending module 850 is used to send the diagnostic results to the host computer according to the result feedback instruction.
[0115] Furthermore, the diagnostic module 830 is also used to acquire interactive information during the execution of the diagnostic script by the diagnostic engine. The interactive information includes parameters required during the execution of the diagnostic script and / or prompts generated during the execution of the diagnostic script. Based on the interactive information, it generates an interactive request. It sends the interactive request to the host computer via the SOME / IP protocol, so that the host computer returns an interactive response via the SOME / IP protocol based on the interactive request. The interactive response is used to indicate that the host computer has received the interactive request. Based on the interactive response, it controls the diagnostic engine to continue executing the diagnostic script and obtain the diagnostic result.
[0116] Furthermore, the device also includes a modification module, which is used to respond to a modification engine parameter request sent by the host computer via the SOME / IP protocol, send a modification engine parameter response to the host computer via the SOME / IP protocol, and the modification engine parameter response indicates that the modification engine parameter request has been received; and modify the parameters of the diagnostic engine according to the parameter modification information in the modification engine parameter request to obtain the modified diagnostic engine.
[0117] Furthermore, the diagnostic module 830 is also used to respond to an abort request sent by the host computer via the SOME / IP protocol, control the diagnostic engine to stop executing the diagnostic script, generate an abort response, and send the abort response to the host computer via the SOME / IP protocol.
[0118] Furthermore, the script acquisition module 820 is also used to determine, based on the header information of the SOME / IP signaling in the diagnostic request, that the diagnostic request belongs to the diagnostic engine signaling category, convert the bytecode in the diagnostic request into the target format to obtain conversion information; and to obtain the diagnostic script based on the diagnostic script name in the conversion information.
[0119] Furthermore, the diagnostic device is also connected to the host computer via the HTTP protocol. The result sending module 850 is also used to send the diagnostic results to the host computer via the HTTP protocol according to the result feedback instruction, so that the host computer responds to the received diagnostic results and returns a result feedback response to the diagnostic device via the HTTP protocol.
[0120] Furthermore, the device also includes an access module for connecting to a host computer; configuring the diagnostic device as a sender for the SOME / IP protocol and a requester for the HTTP protocol through pre-set code; and starting the vehicle diagnostic service of the diagnostic device.
[0121] Furthermore, the access module is also used to broadcast diagnostic function activation information via the SOME / IP protocol according to a preset period through the vehicle diagnostic service. This allows the host computer to receive the diagnostic function activation information and, based on the information, send diagnostic engine status subscription information to the diagnostic device via the SOME / IP protocol. In response to the diagnostic engine status subscription information, the host computer sends diagnostic engine status information to the host computer via the SOME / IP protocol. This allows the diagnostic device to determine whether the diagnostic engine is available based on the diagnostic engine status information. If the diagnostic engine is available, the host computer receives diagnostic operations and, based on the diagnostic operations and a preset template, sends diagnostic requests to the diagnostic device via the SOME / IP protocol.
[0122] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0123] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0124] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0125] Please see Figure 8 This document illustrates a structural block diagram of a diagnostic device 900 provided in an embodiment of this application. The diagnostic device 900 in this application can be a vehicle or a vehicle self-diagnostic system. The diagnostic device 900 includes one or more components: a processor 910, a memory 920, and one or more application programs. The one or more application programs can be stored in the memory 920 and configured to be executed by the one or more processors 910. The one or more programs are configured to perform the methods described in the foregoing method embodiments.
[0126] The processor 910 may include one or more processing cores. The processor 910 connects to various parts of the vehicle 900 via various interfaces and lines, and performs various functions and processes data of the vehicle 900 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 920, and by calling data stored in the memory 920. Optionally, the processor 910 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 910 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and Modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem handles wireless communication. It is understandable that the aforementioned modem may not be integrated into the processor 910, but may be implemented using a separate communication chip.
[0127] The memory 920 may include random access memory (RAM) or read-only memory (ROM). The memory 920 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 920 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the vehicle 900 during use (such as phonebooks, audio and video data, chat log data, etc.).
[0128] Please see Figure 9 This diagram illustrates a structural block diagram of a host computer 1000 provided in an embodiment of this application. Typically, the host computer includes: at least one processor 1001, a memory 1002, and an installer for application software stored in the memory and executable on the processor. The installer is configured to implement the steps of the application software installation method described above.
[0129] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array).
[0130] The memory 1002 may include one or more storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory storage media in the memory 1002 are used to store at least one instruction, which is executed by the processor 1001 to implement the application software installation method provided in the method embodiments of this application.
[0131] In some embodiments, the terminal may also optionally include a communication interface 1003 and at least one peripheral device. The processor 1001, memory 1002, and communication interface 1003 can be connected via a bus or signal line. Each peripheral device can be connected to the communication interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1004, a display screen 1005, and a power supply 1006.
[0132] The communication interface 1003 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the communication interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the communication interface 1003 can be implemented on separate chips or circuit boards, and this embodiment is not limited to this.
[0133] The radio frequency (RF) circuit 1004 is used to receive and transmit RF signals, also known as electromagnetic signals. The RF circuit 1004 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.
[0134] Display screen 1005 is used to display a user interface (UI). This UI may include graphics, text, icons, video, and any combination thereof. When display screen 1005 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1001 for processing. In this case, display screen 1005 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard.
[0135] The power supply 1006 is used to power various components in an electronic device. The power supply 1006 can be AC power, DC power, a disposable battery, or a rechargeable battery. When the power supply 1006 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0136] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0137] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0138] refer to Figure 10 , Figure 10 A structural block diagram of a computer-readable storage medium provided in an embodiment of this application is shown. The computer-readable storage medium 1100 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0139] Computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage medium 1100 includes a non-volatile computer-readable storage medium. Computer-readable storage medium 1100 has storage space for program code 1110 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 1110 may, for example, be compressed in a suitable form.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A diagnostic method, characterized in that, A diagnostic device is used, the diagnostic device being connected to a host computer via an OBD interface, and the diagnostic device and the host computer communicating via the SOME / IP protocol. The method includes: Receive diagnostic requests sent by the host computer via the SOME / IP protocol; Based on the diagnostic request, obtain the diagnostic script; Control the diagnostic engine to execute the diagnostic script; During the process of controlling the diagnostic engine to execute the diagnostic script, interactive information is acquired, including parameters required during the execution of the diagnostic script and / or prompts generated during the execution of the diagnostic script. Based on the interaction information, an interaction request is generated; The interaction request is sent to the host computer via the SOME / IP protocol, so that the host computer returns an interaction response via the SOME / IP protocol based on the interaction request. The interaction response is used to indicate that the host computer has received the interaction request. Based on the interactive response, control the diagnostic engine to continue executing the diagnostic script and obtain the diagnostic result; Based on the diagnostic results, a result feedback request is sent to the host computer via the SOME / IP protocol, so that the host computer returns a result feedback instruction via the SOME / IP protocol based on the result feedback request. According to the result feedback instruction, the diagnostic result is sent to the host computer.
2. The method according to claim 1, characterized in that, The method further includes: In response to the request to modify engine parameters sent by the host computer via the SOME / IP protocol, a response to modify engine parameters is sent to the host computer via the SOME / IP protocol, the response indicating that the request to modify engine parameters has been received; Based on the parameter modification information in the engine parameter modification request, the diagnostic engine is modified to obtain the modified diagnostic engine.
3. The method according to claim 1, characterized in that, The method further includes: In response to the abort request sent by the host computer via the SOME / IP protocol, the diagnostic engine is controlled to stop executing the diagnostic script; Generate an abort response and send the abort response to the host computer via the SOME / IP protocol.
4. The method according to claim 1, characterized in that, The step of obtaining the diagnostic script according to the diagnostic request includes: If the diagnostic request is determined to belong to the diagnostic engine signaling category based on the header information of the SOME / IP signaling in the diagnostic request, the bytecode in the diagnostic request is converted into the target format to obtain the conversion information; The diagnostic script is obtained based on the diagnostic script name in the conversion information.
5. The method according to claim 1, characterized in that, The diagnostic device is also connected to the host computer via the HTTP protocol; the step of sending the diagnostic result to the host computer according to the result feedback instruction includes: According to the result feedback instruction, the diagnostic result is sent to the host computer via the HTTP protocol, so that the host computer responds to the received diagnostic result by returning a result feedback response to the diagnostic device via the HTTP protocol.
6. The method according to claim 5, characterized in that, The method further includes: Connect to the host computer; The diagnostic device is configured as a sender for the SOME / IP protocol and a requester for the HTTP protocol using pre-defined code. Initiate the vehicle diagnostic service of the diagnostic device.
7. The method according to claim 6, characterized in that, After activating the vehicle diagnostic service of the diagnostic device, the method further includes: The vehicle diagnostic service broadcasts diagnostic function activation information via the SOME / IP protocol at a preset period, so that after the host computer receives the diagnostic function activation information, it sends diagnostic engine status subscription information to the diagnostic device via the SOME / IP protocol according to the diagnostic function activation information. In response to the diagnostic engine status subscription information, the diagnostic engine status information is sent to the host computer via the SOME / IP protocol, so that the diagnostic device can determine whether the diagnostic engine is available based on the diagnostic engine status information, and if the diagnostic engine is available, receive diagnostic operations, and send the diagnostic request to the diagnostic device via the SOME / IP protocol based on the diagnostic operations and the preset template.
8. A diagnostic device, characterized in that, The diagnostic device includes: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Automobile diagnosis system and method thereof
CN107526353A
Vehicle cloud diagnosis method and device, vehicle and storage medium
CN115695394A
