A diagnostic fault analysis method, apparatus, device, and medium
Patent Information
- Application Number
- CN202311001060.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-09
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-08-09
AI Technical Summary
[0003]考虑到安全原因,外部诊断设备与车辆网关之间的通讯报文都使用随机密钥进行加密,这样一来便会造成采集的通讯报文无法直接进行查看分析,同时,由于加密密钥会随机变化,因此解密的过程也较为繁琐
[0033]As can be seen, this application proposes a diagnostic fault analysis method applied to a target gateway, comprising: verifying the target information recorded in a target authorization file; the target authorization file is an authorization file obtained by the target diagnostic device from the target platform; the target platform receives file application information sent by the target diagnostic device and verifies the file application information; if the verification passes, the target authorization file is generated based on the file application information; if the verification passes, the encrypted transmission of communication messages is stopped so as to perform diagnostic fault analysis based on the communication messages. In other words, the target gateway in this application receives the target authorization file obtained by the target diagnostic device from the target platform and verifies the target information recorded in the target authorization file. After the verification passes, the encrypted transmission of communication messages is stopped. This eliminates the need for decryption of communication messages and changes to the vehicle's wiring method, allowing for direct acquisition of unencrypted communication messages and analysis of vehicle diagnostic faults based on these messages, thus improving the efficiency of vehicle diagnostic fault analysis.
Smart Images

Figure CN116866073B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle diagnostic technology, and in particular to a diagnostic fault analysis method, apparatus, equipment, and medium. Background Technology
[0002] With the continuous development of automotive electronics technology, electronic control units (ECUs) have been widely used in modern automobiles. Currently, vehicle diagnostics primarily involve external diagnostic equipment interacting with the vehicle's gateway via the OBD (On-Board Diagnostic) interface. This gateway then transmits diagnostic communication messages to other ECUs within the vehicle. When a vehicle diagnostic fault occurs, it is necessary to collect the communication messages between the external diagnostic equipment and the vehicle to analyze the fault.
[0003] For security reasons, communication messages between external diagnostic equipment and the vehicle gateway are encrypted using a random key. This makes the collected communication messages unviewable and unanalyzable. Furthermore, the decryption process is cumbersome because the encryption key changes randomly. Collecting communication messages between the gateway and the electronic control unit (ECU) requires disconnecting the vehicle and connecting it to the ECU's subnet bus, which is inaccessible to personnel unfamiliar with the vehicle's subnet bus and wiring methods. Additionally, collecting communication messages between the gateway and the ECU may not reproduce the problem; for example, the ECU might send normal communication messages to the gateway, but a problem might occur when the gateway forwards them to the diagnostic equipment.
[0004] Therefore, when a vehicle diagnostic fault occurs, how to promptly view the communication messages in order to analyze the vehicle diagnostic fault based on the communication messages is an urgent problem to be solved in this field. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide a diagnostic fault analysis method, apparatus, device, and medium that can promptly view communication messages in order to analyze vehicle faults based on the communication messages. The specific solution is as follows:
[0006] In a first aspect, this application discloses a fault diagnosis and analysis method applied to a target gateway, comprising:
[0007] The target information recorded in the target authorization file is verified; the target authorization file is the authorization file obtained by the target diagnostic device from the target platform. The target platform receives the file application information sent by the target diagnostic device and verifies the file application information. If the verification passes, the target authorization file is generated based on the file application information.
[0008] If the verification passes, the encrypted transmission of the communication message is stopped so that fault analysis can be performed based on the communication message.
[0009] Optionally, the target information includes the target device digital certificate, target vehicle information, and target time.
[0010] Optionally, the verification of the target information includes:
[0011] Determine whether the target device digital certificate is consistent with the preset device digital certificate, and determine whether the target vehicle information is consistent with the current vehicle information;
[0012] Accordingly, if the verification passes, the encrypted transmission of the communication message is stopped, including:
[0013] If the target device digital certificate is consistent with the preset device digital certificate, and the target vehicle information is consistent with the current vehicle information, then the encrypted transmission of the communication message is stopped.
[0014] Optionally, after suspending the encrypted transmission of the communication message if the verification passes, the method further includes:
[0015] If a fault diagnosis analysis completion instruction is received, encrypted transmission of the communication message is resumed.
[0016] Optionally, after suspending the encrypted transmission of the communication message if the verification passes, the method further includes:
[0017] If the target time is exceeded, the encrypted transmission of the communication message will be restored.
[0018] Secondly, this application discloses a fault diagnosis analysis method applied to a target diagnostic device, comprising:
[0019] Send file request information to the target platform so that the target platform can verify the file request information. If the verification is successful, generate the target authorization file based on the file request information.
[0020] The target authorization file generated by the target platform is obtained and sent to the target gateway so that the target gateway can verify the target information recorded in the target authorization file. If the verification is successful, the encrypted transmission of the communication message is stopped so that fault diagnosis and analysis can be performed based on the communication message.
[0021] Thirdly, this application discloses a fault diagnosis and analysis method applied to a target platform, including:
[0022] Obtain the document request information sent by the target diagnostic device;
[0023] The file application information is verified. If the verification passes, a target authorization file is generated based on the file application information and sent to the target diagnostic device. The target diagnostic device then sends the target authorization file to the target gateway. The target gateway verifies the target information recorded in the target authorization file. If the verification passes, the encrypted transmission of communication messages is stopped so that fault analysis can be performed based on the communication messages.
[0024] Optionally, the verification of the file application information includes:
[0025] Verify whether the target device digital certificate in the document application information is a legitimate device digital certificate, verify whether the target vehicle information in the document application information is registered vehicle information, and then verify whether the target time in the document application information is within a preset time range.
[0026] Fourthly, this application discloses a fault diagnosis and analysis device applied to a target gateway, comprising:
[0027] The verification module is used to verify the target information recorded in the target authorization file; the target authorization file is the authorization file obtained by the target diagnostic device from the target platform. The target platform receives the file application information sent by the target diagnostic device and verifies the file application information. If the verification passes, the target authorization file is generated based on the file application information.
[0028] The encryption module is used to stop the encrypted transmission of communication messages if the verification passes, so as to perform fault diagnosis and analysis based on the communication messages.
[0029] Fifthly, this application discloses an electronic device, comprising:
[0030] Memory, used to store computer programs;
[0031] A processor is used to execute the computer program to implement the aforementioned disclosed diagnostic fault analysis method.
[0032] Sixthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed diagnostic fault analysis method.
[0033] As can be seen, this application proposes a diagnostic fault analysis method applied to a target gateway, comprising: verifying the target information recorded in a target authorization file; the target authorization file is an authorization file obtained by the target diagnostic device from the target platform; the target platform receives file application information sent by the target diagnostic device and verifies the file application information; if the verification passes, the target authorization file is generated based on the file application information; if the verification passes, the encrypted transmission of communication messages is stopped so as to perform diagnostic fault analysis based on the communication messages. In other words, the target gateway in this application receives the target authorization file obtained by the target diagnostic device from the target platform and verifies the target information recorded in the target authorization file. After the verification passes, the encrypted transmission of communication messages is stopped. This eliminates the need for decryption of communication messages and changes to the vehicle's wiring method, allowing for direct acquisition of unencrypted communication messages and analysis of vehicle diagnostic faults based on these messages, thus improving the efficiency of vehicle diagnostic fault analysis. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0035] Figure 1 This is a flowchart of a fault diagnosis and analysis method disclosed in this application;
[0036] Figure 2 This is a flowchart of a specific fault diagnosis and analysis method disclosed in this application;
[0037] Figure 3 This is a flowchart of a specific fault diagnosis and analysis method disclosed in this application;
[0038] Figure 4 This is a schematic diagram of the structure of a fault diagnosis and analysis device disclosed in this application;
[0039] Figure 5 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0040] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] Communication messages between external diagnostic equipment and the vehicle gateway cannot be directly viewed and analyzed due to encryption technology, and the decryption process is also quite cumbersome. Collecting communication messages between the gateway and the electronic control unit (ECU) requires disconnecting the vehicle and connecting it to the ECU's subnet bus. Furthermore, collecting communication messages between the gateway and the ECU may not necessarily reproduce the problem.
[0042] Therefore, this application proposes a fault diagnosis and analysis scheme that can promptly view communication messages in order to analyze vehicle faults based on the communication messages.
[0043] This application discloses a fault diagnosis and analysis method applied to a target gateway. See [link to relevant documentation]. Figure 1 As shown, the method includes:
[0044] Step S11: Verify the target information recorded in the target authorization file; the target authorization file is the authorization file obtained by the target diagnostic device from the target platform. The target platform receives the file application information sent by the target diagnostic device and verifies the file application information. If the verification passes, the target authorization file is generated based on the file application information.
[0045] In this embodiment, the target authorization file is sent to the target gateway by the target diagnostic device. Specifically, the target diagnostic device obtains the target authorization file from the target platform and sends the target authorization file to the target gateway. For the target platform, when it receives the file application information sent by the target diagnostic device, it verifies the file application information. If the verification passes, it generates the target authorization file based on the file application information.
[0046] It should be noted that the target information includes the target device digital certificate, target vehicle information, and target time. Understandably, the device digital certificate is used to verify the legitimacy of the diagnostic device; each diagnostic device has a unique built-in device digital certificate. The target vehicle information includes the vehicle's VIN (Vehicle Identification Number), model year, configuration code, etc., and the target time is the time when the target gateway is requested to suspend encrypted communication messages.
[0047] After obtaining the target information, it is determined whether the target device digital certificate is consistent with the preset device digital certificate, and whether the target vehicle information is consistent with the current vehicle information. It should be noted that the preset device digital certificate is sent to the target gateway by the diagnostic device. The target gateway compares the target device digital certificate in the target authorization file with the sent preset device digital certificate to ensure that the current diagnostic device and the diagnostic device in the target authorization file are consistent. Furthermore, it compares the vehicle information in the target authorization file with the current vehicle's own information to ensure that the target authorization file is authorized for the current vehicle.
[0048] Step S12: If the verification passes, the encrypted transmission of the communication message is stopped so that fault analysis can be performed based on the communication message.
[0049] In this embodiment, if the target device digital certificate is consistent with the preset device digital certificate, and the target vehicle information is consistent with the current vehicle information, the verification is successful. Then, the encrypted transmission of the communication message is stopped according to the target time in the target authorization file, so that technicians can collect the communication messages between the diagnostic device and the target gateway through the vehicle's on-board diagnostic system interface. Since the communication messages are in plaintext at this time, the fault can be directly analyzed and diagnosed through the content and response of the communication messages.
[0050] Understandably, after completing the diagnostic fault analysis, the encrypted transmission of communication messages can be restored to ensure the security of the communication messages.
[0051] Therefore, in one specific implementation, after receiving the fault diagnosis analysis completion instruction sent by the operator, the encrypted transmission of the communication message is resumed.
[0052] In a second specific implementation, if the target time is exceeded, the encrypted transmission of the communication message is restored.
[0053] As can be seen, this application proposes a diagnostic fault analysis method applied to a target gateway, comprising: verifying the target information recorded in a target authorization file; the target authorization file is an authorization file obtained by the target diagnostic device from the target platform; the target platform receives file application information sent by the target diagnostic device and verifies the file application information; if the verification passes, the target authorization file is generated based on the file application information; if the verification passes, the encrypted transmission of communication messages is stopped so as to perform diagnostic fault analysis based on the communication messages. In other words, the target gateway in this application receives the target authorization file obtained by the target diagnostic device from the target platform and verifies the target information recorded in the target authorization file. After the verification passes, the encrypted transmission of communication messages is stopped. This eliminates the need for decryption of communication messages and changes to the vehicle's wiring method, allowing for direct acquisition of unencrypted communication messages and analysis of vehicle diagnostic faults based on these messages, thus improving the efficiency of vehicle diagnostic fault analysis.
[0054] This application discloses a specific fault diagnosis and analysis method applied to target diagnostic equipment. See [link to relevant documentation]. Figure 2 As shown, it specifically includes:
[0055] Step S21: Send file request information to the target platform so that the target platform can verify the file request information. If the verification is successful, generate the target authorization file based on the file request information.
[0056] Step S22: Obtain the target authorization file generated by the target platform and send the target authorization file to the target gateway so that the target gateway can verify the target information recorded in the target authorization file. If the verification is successful, the encrypted transmission of the communication message is stopped so that fault diagnosis and analysis can be performed based on the communication message.
[0057] In this embodiment, the target diagnostic device sends file request information to the target platform so that the target platform can verify the file request information. If the verification passes, the target authorization file is generated based on the file request information. The file request information includes the target device's digital certificate, target vehicle information, and target time. Further, after the target platform generates the target authorization file, the target diagnostic device sends the target authorization file to the target gateway so that the target gateway can verify the target information recorded in the target authorization file. If the verification passes, the encrypted transmission of communication messages is stopped so that fault analysis can be performed based on the communication messages. In summary, the target gateway in this application receives the target authorization file obtained by the target diagnostic device from the target platform and verifies the target information recorded in the target authorization file. After successful verification, the encrypted transmission of communication messages is stopped. This eliminates the need for decryption of communication messages and changes to the vehicle's wiring method, allowing for direct acquisition of unencrypted communication messages and analysis of vehicle faults based on these messages, thus improving the efficiency of vehicle fault analysis.
[0058] This application discloses a specific fault diagnosis and analysis method applied to a target platform. (See also...) Figure 3 As shown, it specifically includes:
[0059] Step S31: Obtain the file request information sent by the target diagnostic device.
[0060] In this embodiment, the target platform is a target authorized platform. Specifically, when a problem occurs during vehicle diagnostics using diagnostic equipment, such as unreadable fault codes, abnormal signal values, or unsuccessful firmware flashing, the device can request to enter debug mode to analyze the cause of the failure by collecting communication packets. To enter debug mode, the diagnostic equipment must first request a target authorization file from the target authorized platform. After obtaining the target authorization file, it sends the file to the target gateway. Once the target gateway verifies the file, it can enter debug mode to suspend the encrypted transmission of communication packets.
[0061] When applying for the target authorization document, the diagnostic device sends the target device digital certificate, target vehicle information, and target time to the target authorization platform. It should be noted that, for vehicle security, the encryption interruption time needs to be limited.
[0062] Step S32: Verify the file application information. If the verification passes, generate a target authorization file based on the file application information and send the target authorization file to the target diagnostic device. The target diagnostic device then sends the target authorization file to the target gateway. The target gateway verifies the target information recorded in the target authorization file. If the verification passes, it stops the encrypted transmission of communication messages so that fault analysis can be performed based on the communication messages.
[0063] In this embodiment, verifying the document application information includes: verifying whether the target device digital certificate in the document application information is a legitimate device digital certificate, verifying whether the target vehicle information in the document application information is registered vehicle information, and then verifying whether the target time in the document application information is within a preset time range. Specifically, firstly, the target device digital certificate is verified in a PKI (Public Key Infrastructure) system to check whether the target device digital certificate is a legitimate and valid device certificate. Then, the target vehicle information is queried in the vehicle management system to determine whether the vehicle to be analyzed is a registered and validly produced and sold vehicle. Finally, the target time is verified to be within a preset time range.
[0064] After all the above verifications pass, the target authorization platform will issue the target authorization file to the diagnostic device. After obtaining the target authorization file, the diagnostic device can send the target authorization file to the target gateway to request the target gateway to enable the debug mode. After enabling the debug mode to the target gateway, the target gateway first verifies the target authorization file. The specific verification process is shown in the aforementioned disclosed embodiments and will not be described in detail here. If the verification passes, the debug mode can be enabled according to the target time in the target authorization file. In the debug mode, the communication packets between the diagnostic device and the target gateway are no longer encrypted.
[0065] Once debug mode is enabled, technicians can directly collect communication messages between the diagnostic equipment and the target gateway through the vehicle's on-board diagnostic system interface, and analyze vehicle diagnostic faults based on these messages.
[0066] Once the diagnostic analysis is complete, the diagnostic device can send a command to the target gateway to disable debug mode. This will cause communication messages between the diagnostic device and the target gateway to be re-encrypted. Additionally, since the target license file includes a target time period, the target gateway will automatically disable debug mode if the target time is exceeded.
[0067] In summary, when vehicle diagnostics encounter problems, the diagnostic device can request authorization for a debug mode from the target platform. Specifically, the device's digital certificate, vehicle information, and the authorization request date are uploaded to the target platform. After approval, the target platform issues a target authorization file. The diagnostic device then sends this file to the target gateway. Once the gateway verifies the validity of the authorization file, it enters debug mode according to the information within. In debug mode, encryption of communication packets is suspended. After debugging, the diagnostic device can send a command to the target gateway to close the debug mode, or the target gateway will automatically close the debug mode when the authorization file expires. In other words, this application allows switching between normal and debug modes via the target authorization file. This enables faster and more intuitive fault diagnosis through communication packet analysis when problems arise.
[0068] Accordingly, this application also discloses a fault diagnosis and analysis device applied to a target gateway, see [link to relevant documentation]. Figure 4 As shown, the device includes:
[0069] The verification module 11 is used to verify the target information recorded in the target authorization file; the target authorization file is the authorization file obtained by the target diagnostic device from the target platform. The target platform receives the file application information sent by the target diagnostic device and verifies the file application information. If the verification passes, the target authorization file is generated based on the file application information.
[0070] The encryption module 12 is used to stop the encrypted transmission of communication messages if the verification passes, so as to perform fault diagnosis analysis based on the communication messages.
[0071] For more detailed information on the working process of each of the above modules, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.
[0072] As can be seen, this application proposes a diagnostic fault analysis device applied to a target gateway, comprising: a verification module for verifying target information recorded in a target authorization file; the target authorization file is an authorization file obtained by the target diagnostic device from a target platform; the target platform receives file application information sent by the target diagnostic device and verifies the file application information; if the verification passes, the target authorization file is generated based on the file application information; and a termination encryption module for terminating the encrypted transmission of communication messages if the verification passes, so as to perform diagnostic fault analysis based on the communication messages. In other words, the target gateway in this application receives the target authorization file obtained by the target diagnostic device from the target platform and verifies the target information recorded in the target authorization file. After the verification passes, the encrypted transmission of communication messages is terminated. This eliminates the need for decryption of communication messages and changes to the vehicle's wiring method, allowing for direct acquisition of unencrypted communication messages and analysis of vehicle diagnostic faults based on these messages, thus improving the efficiency of vehicle diagnostic fault analysis.
[0073] In some specific embodiments, the target information includes the target device digital certificate, the target vehicle information, and the target time.
[0074] In some specific embodiments, the verification module 11 may specifically include:
[0075] A consistency determination unit is used to determine whether the target device digital certificate is consistent with the preset device digital certificate, and to determine whether the target vehicle information is consistent with the current vehicle information;
[0076] Accordingly, the abort encryption module 12 may specifically include:
[0077] The encryption termination unit is used to terminate the encrypted transmission of the communication message if the target device digital certificate is consistent with the preset device digital certificate and the target vehicle information is consistent with the current vehicle information.
[0078] In some specific embodiments, after terminating the encryption module 12, the method may further include:
[0079] The first encrypted transmission recovery unit is used to restore the encrypted transmission of the communication message if it receives an analysis completion instruction for diagnosing a fault.
[0080] In some specific embodiments, after terminating the encryption module 12, the method may further include:
[0081] The second encrypted transmission recovery unit is used to restore the encrypted transmission of the communication message if the target time is exceeded.
[0082] In some specific embodiments, before the verification module 11, there may further be:
[0083] The document application information verification unit is used to verify whether the target device digital certificate in the document application information is a legitimate device digital certificate, and to verify whether the target vehicle information in the document application information is registered vehicle information. Then, it verifies whether the target time in the document application information is within a preset time range.
[0084] Furthermore, embodiments of this application also provide an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0085] Figure 4 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the following steps:
[0086] The target information recorded in the target authorization file is verified; the target authorization file is the authorization file obtained by the target diagnostic device from the target platform. The target platform receives the file application information sent by the target diagnostic device and verifies the file application information. If the verification passes, the target authorization file is generated based on the file application information.
[0087] If the verification passes, the encrypted transmission of the communication message is stopped so that fault analysis can be performed based on the communication message.
[0088] In some specific embodiments, the processor executes a computer program stored in the memory, specifically implementing the following steps:
[0089] The target information includes the target device's digital certificate, the target vehicle information, and the target time.
[0090] In some specific embodiments, the processor executes a computer program stored in the memory, specifically implementing the following steps:
[0091] Determine whether the target device digital certificate is consistent with the preset device digital certificate, and determine whether the target vehicle information is consistent with the current vehicle information;
[0092] Accordingly, if the verification passes, the encrypted transmission of the communication message is stopped, including:
[0093] If the target device digital certificate is consistent with the preset device digital certificate, and the target vehicle information is consistent with the current vehicle information, then the encrypted transmission of the communication message is stopped.
[0094] In some specific embodiments, the processor may further perform the following steps by executing a computer program stored in the memory:
[0095] If a fault diagnosis analysis completion instruction is received, encrypted transmission of the communication message is resumed.
[0096] In some specific embodiments, the processor may further perform the following steps by executing a computer program stored in the memory:
[0097] If the target time is exceeded, the encrypted transmission of the communication message will be restored.
[0098] In some specific embodiments, the processor executes a computer program stored in the memory, specifically implementing the following steps:
[0099] Send file request information to the target platform so that the target platform can verify the file request information. If the verification is successful, generate the target authorization file based on the file request information.
[0100] The target authorization file generated by the target platform is obtained and sent to the target gateway so that the target gateway can verify the target information recorded in the target authorization file. If the verification is successful, the encrypted transmission of the communication message is stopped so that fault diagnosis and analysis can be performed based on the communication message.
[0101] In some specific embodiments, the processor executes a computer program stored in the memory, specifically implementing the following steps:
[0102] Obtain the document request information sent by the target diagnostic device;
[0103] The file application information is verified. If the verification passes, a target authorization file is generated based on the file application information and sent to the target diagnostic device. The target diagnostic device then sends the target authorization file to the target gateway. The target gateway verifies the target information recorded in the target authorization file. If the verification passes, the encrypted transmission of communication messages is stopped so that fault analysis can be performed based on the communication messages.
[0104] In some specific embodiments, the processor executes a computer program stored in the memory, specifically implementing the following steps:
[0105] Verify whether the target device digital certificate in the document application information is a legitimate device digital certificate, verify whether the target vehicle information in the document application information is registered vehicle information, and then verify whether the target time in the document application information is within a preset time range.
[0106] In addition, the electronic device 20 in this embodiment can specifically be an electronic computer.
[0107] In this embodiment, the power supply 26 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 24 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0108] Furthermore, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored thereon may include computer programs 221, and the storage method may be temporary storage or permanent storage. The computer programs 221 may include, in addition to computer programs capable of performing the fault diagnosis and analysis method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, computer programs capable of performing other specific tasks.
[0109] Furthermore, embodiments of this application also disclose a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed diagnostic fault analysis method.
[0110] For the specific steps of this method, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.
[0111] The various embodiments in this application are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. For the same or similar parts between the various embodiments, refer to each other. As for the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and relevant parts can be referred to the method section.
[0112] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0113] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0114] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0115] The above provides a detailed description of a fault diagnosis and analysis method, apparatus, device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for diagnosing and analyzing faults, characterized in that, Applied to the target gateway, including: The target information recorded in the target authorization file is verified; the target authorization file is the authorization file obtained by the target diagnostic device from the target platform. The target platform receives the file application information sent by the target diagnostic device and verifies the file application information. If the verification passes, the target authorization file is generated based on the file application information. If the verification passes, the encrypted transmission of the communication message is stopped so that fault analysis can be performed based on the plaintext of the communication message. The target information includes the target diagnostic device digital certificate, the target vehicle information, and the target time; wherein, the device digital certificate is used to characterize the legitimacy of the diagnostic device, the target vehicle information includes the vehicle identification number, model year, and configuration code, and the target time is the time when the target gateway is requested to suspend encrypted communication messages.
2. The fault diagnosis and analysis method according to claim 1, characterized in that, The verification of the target information includes: Determine whether the target diagnostic device digital certificate is consistent with the preset device digital certificate, and determine whether the target vehicle information is consistent with the current vehicle information; Accordingly, if the verification passes, the encrypted transmission of the communication message is stopped, including: If the target diagnostic device digital certificate is consistent with the preset device digital certificate, and the target vehicle information is consistent with the current vehicle information, then the encrypted transmission of the communication message is stopped.
3. The fault diagnosis and analysis method according to claim 1, characterized in that, If the verification passes, the encrypted transmission of the communication message is stopped, and the method further includes: If a fault diagnosis analysis completion instruction is received, encrypted transmission of the communication message is resumed.
4. The fault diagnosis and analysis method according to claim 1, characterized in that, If the verification passes, the encrypted transmission of the communication message is stopped, and the method further includes: If the target time is exceeded, the encrypted transmission of the communication message will be restored.
5. A method for diagnosing and analyzing faults, characterized in that, Applications in target diagnostic equipment include: Send file request information to the target platform so that the target platform can verify the file request information. If the verification is successful, generate the target authorization file based on the file request information. The target authorization file generated by the target platform is obtained and sent to the target gateway so that the target gateway can verify the target information recorded in the target authorization file. If the verification is successful, the encrypted transmission of the communication message is stopped so that fault diagnosis and analysis can be performed based on the plaintext communication message. The target information includes the target diagnostic device digital certificate, the target vehicle information, and the target time; wherein, the device digital certificate is used to characterize the legitimacy of the diagnostic device, the target vehicle information includes the vehicle identification number, model year, and configuration code, and the target time is the time when the target gateway is requested to suspend encrypted communication messages.
6. A method for diagnosing and analyzing faults, characterized in that, Applied to target platforms, including: Obtain the document request information sent by the target diagnostic device; The file application information is verified. If the verification passes, a target authorization file is generated based on the file application information and sent to the target diagnostic device. The target diagnostic device then sends the target authorization file to the target gateway. The target gateway verifies the target information recorded in the target authorization file. If the verification passes, the encrypted transmission of the communication message is stopped so that fault analysis can be performed based on the plaintext communication message. The target information includes the target diagnostic device digital certificate, the target vehicle information, and the target time; wherein, the device digital certificate is used to characterize the legitimacy of the diagnostic device, the target vehicle information includes the vehicle identification number, model year, and configuration code, and the target time is the time when the target gateway is requested to suspend encrypted communication messages.
7. The fault diagnosis and analysis method according to claim 6, characterized in that, The verification of the file application information includes: Verify whether the target diagnostic device digital certificate in the document application information is a valid device digital certificate, verify whether the target vehicle information in the document application information is registered vehicle information, and then verify whether the target time in the document application information is within a preset time range.
8. A fault diagnosis and analysis device, characterized in that, Applied to the target gateway, including: The verification module is used to verify the target information recorded in the target authorization file; the target authorization file is the authorization file obtained by the target diagnostic device from the target platform. The target platform receives the file application information sent by the target diagnostic device and verifies the file application information. If the verification passes, the target authorization file is generated based on the file application information. The encryption module is used to stop the encrypted transmission of communication messages if the verification passes, so as to perform fault diagnosis and analysis based on the plaintext of the communication messages. The target information includes the target diagnostic device digital certificate, the target vehicle information, and the target time; wherein, the device digital certificate is used to characterize the legitimacy of the diagnostic device, the target vehicle information includes the vehicle identification number, model year, and configuration code, and the target time is the time when the target gateway is requested to suspend encrypted communication messages.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the diagnostic fault analysis method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer programs are executed by a processor, they implement the diagnostic fault analysis method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Control method and device for debugging mode of in-vehicle infotainment system and electronic equipment
CN116069645A