Vehicle remote diagnosis method, system and computer equipment

By combining the remote diagnosis method of MQTT and HTTPS protocols, the integration difficulty of remote diagnosis, offline support, uncontrollable trigger conditions and batch diagnosis in the prior art are solved, efficient and safe remote diagnosis is achieved, and diagnostic tasks are supported for online and offline vehicles, improving diagnosis success rate and efficiency.

CN116149293BActive Publication Date: 2025-08-15JINGWEI HIRAIN (TIANJIN) RES&DEV CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211102074.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-09
Publication Date
2025-08-15
Estimated Expiration
2042-09-09

AI Technical Summary

Technical Problem

The existing remote diagnosis method based on the MQTT protocol has problems such as complex SDK integration, no file transfer, inability to offline diagnosis, uncontrollable diagnostic trigger conditions, and inability to batch diagnosis, resulting in low execution and success rates of remote diagnosis.

Method used

The communication method combined with the MQTT protocol and the HTTPS protocol is adopted to send diagnostic instructions through the MQTT protocol, and the HTTPS protocol obtains diagnostic tasks and diagnostic packets, supports remote diagnosis of online and offline vehicles, and transmits diagnostic task description information and diagnostic packets through the HTTPS protocol. The CDN is used to accelerate the transmission of diagnostic packets to realize diagnosis under specified events and time intervals.

Benefits of technology

It improves the execution rate and success rate of remote diagnosis in complex network environments, enhances the security of data and information, supports batch diagnosis, enriches diagnostic application scenarios, and improves diagnostic efficiency and concurrency capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116149293B_ABST
    Figure CN116149293B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a vehicle remote diagnosis method, system, and computer device. The method includes: creating a diagnostic task; determining whether the vehicle to be diagnosed supports the MQTT protocol; if the vehicle to be diagnosed supports the MQTT protocol, determining whether the vehicle to be diagnosed is online; if the vehicle to be diagnosed is online, sending a diagnostic instruction to all vehicles to be diagnosed associated with the task via the MQTT protocol, and the vehicles to be diagnosed obtain the diagnostic task and download the diagnostic package via the HTTPS protocol; if the vehicle to be diagnosed does not support the MQTT protocol or is offline, the vehicle to be diagnosed periodically pulls the diagnostic task and downloads the diagnostic package via the HTTPS protocol; the vehicle to be diagnosed executes the diagnostic task and obtains the diagnostic result; the vehicle to be diagnosed uploads the diagnostic result to the remote diagnosis platform. The communication protocol method that combines the MQTT protocol with the HTTPS protocol effectively improves the execution rate and success rate of remote diagnosis in complex network environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile technology, and in particular to a vehicle remote diagnosis method, system and computer equipment. Background Art

[0002] Currently, vehicle fault diagnosis methods include local diagnosis through on-board equipment or portable diagnostic instrument hardware, near-field diagnosis through vehicle-to-vehicle interconnection information, and remote diagnosis through cloud platforms. Among them, the main difference between remote diagnosis technology and traditional diagnosis technology is that it enables vehicle manufacturers to switch from passive diagnosis to active diagnosis, and remote diagnosis of vehicles can be performed at any time or regularly through the cloud platform.

[0003] Most remote diagnosis methods use the Transmission Control Protocol (TCP) to establish a connection between the vehicle and the cloud platform. The cloud platform pushes diagnostic instructions to the vehicle in real time through the Message Queuing Telemetry Transport (MQTT) protocol, an application layer protocol based on TCP. The diagnostic module in the vehicle then completes the corresponding diagnosis. However, the diagnostic instruction-based remote diagnosis method based on the MQTT protocol has many problems and defects: First, the integration of the terminal device's Software Development Kit (SDK) is complex. However, terminal devices based on various platforms need to integrate the SDK to implement the MQTT function, which is not only difficult to integrate, but some platforms do not support the MQTT protocol. Second, it does not support files. Remote diagnosis usually requires the transmission of a large number of diagnostic script files and diagnostic log files, which limits the application scenarios of remote diagnosis. Third, it does not support offline messages. Since the vehicle and the diagnostic cloud platform need to complete the communication link connection before the diagnostic function can be realized, the actual operating conditions of the vehicle are very complex, and problems such as connection anomalies, connection interruptions, and uncontrollable connection time often occur. In particular, bandwidth limitations in high-concurrency scenarios lead to vehicle inaccessibility. The problem of not being able to connect to the cloud platform makes it impossible to complete remote diagnosis; fourth, the diagnostic triggering conditions are uncontrollable. The main purpose of remote diagnosis is to achieve vehicle positioning, monitor vehicle fault information, read fault codes, and handle fault alarms, so as to achieve fault diagnosis and repair. When diagnosis can only be triggered based on certain special conditions or needs to be triggered periodically, the inability to control the triggering conditions and maintain the connection between the vehicle and the platform for a long time will undoubtedly occupy a lot of physical and network resources; fifth, batch diagnosis cannot be achieved. Since it needs to connect to the vehicle and implement diagnosis through real-time instructions, it cannot guarantee that a large number of vehicles to be diagnosed are online at the same time and meet the diagnostic conditions at the same time, so it is difficult to achieve batch diagnosis. Summary of the Invention

[0004] This specification provides a vehicle remote diagnosis method, system and computer device to overcome at least one technical problem existing in the prior art.

[0005] In a first aspect, according to an embodiment of this specification, a vehicle remote diagnosis method is provided, comprising:

[0006] Create diagnostic tasks;

[0007] Determine whether the vehicle to be diagnosed supports the MQTT protocol;

[0008] When the vehicle to be diagnosed supports the MQTT protocol, determining whether the vehicle to be diagnosed is online;

[0009] If the vehicle to be diagnosed is online, a diagnostic instruction is sent to all vehicles to be diagnosed associated with the task via the MQTT protocol. The vehicle to be diagnosed obtains the diagnostic task via the HTTPS protocol and downloads the diagnostic package.

[0010] When the vehicle to be diagnosed does not support the MQTT protocol or is not online, the vehicle to be diagnosed periodically pulls the diagnostic task through the HTTPS protocol and downloads the diagnostic package;

[0011] The vehicle to be diagnosed executes the diagnostic task and obtains a diagnostic result;

[0012] The vehicle to be diagnosed uploads the diagnosis result to the remote diagnosis platform.

[0013] Optionally, creating a diagnostic task includes:

[0014] Creating diagnostic task description information through the remote diagnostic platform; the diagnostic task description information includes diagnostic task start time, diagnostic task end time, diagnostic type, diagnostic strategy, diagnostic package type, diagnostic package file, execution time interval, trigger event, trigger delay time, and task description information;

[0015] A diagnostic package is created through the remote diagnostic platform; the diagnostic package includes a diagnostic data file, a list file of ECUs to be diagnosed, a trigger strategy file, a diagnostic script file, and a signature file.

[0016] Further optionally, the creating a diagnosis task further includes:

[0017] The diagnostic task description information is encrypted and signed to obtain encrypted diagnostic task description information.

[0018] Further optionally, determining whether the vehicle to be diagnosed is online includes:

[0019] The vehicle to be diagnosed publishes a status message to a Broker server, the Broker server determines a first target topic corresponding to the status message, and publishes the status message to a first MQTT client subscribed to the first target topic; the first MQTT client includes the vehicle to be diagnosed and the remote diagnosis platform, and the status message includes an online message and an offline message;

[0020] The remote diagnosis platform determines whether the vehicle to be diagnosed is online according to the status message.

[0021] Further optionally, sending the diagnostic instruction to all the vehicles to be diagnosed associated with the task through the MQTT protocol, the vehicles to be diagnosed obtaining the diagnostic task through the HTTPS protocol, and downloading the diagnostic package specifically include:

[0022] The remote diagnosis platform publishes a message to be diagnosed to the Broker server, the Broker server determines a second target topic corresponding to the message to be diagnosed, and publishes the second target topic to a second MQTT client subscribed to the second target topic; the second MQTT client includes the vehicle to be diagnosed and the remote diagnosis platform, and the message to be diagnosed includes a diagnostic instruction;

[0023] According to the message to be diagnosed, the vehicle to be diagnosed sends the current basic information of the vehicle and a request to obtain a diagnostic task to the remote diagnosis platform via the HTTPS protocol;

[0024] The remote diagnosis platform sends encrypted diagnosis task description information and diagnosis package download link information to the vehicle to be diagnosed based on the current basic information of the vehicle and the request to obtain the diagnosis task;

[0025] The vehicle to be diagnosed receives the encrypted diagnostic task description information and the diagnostic package download link information, verifies the integrity and reliability of the message, and if the signature verification is passed, decrypts the encrypted diagnostic task description information, obtains the diagnostic task description information, and downloads the diagnostic package from the remote diagnostic platform through the HTTPS protocol according to the diagnostic package download link information.

[0026] Further optionally, the vehicle to be diagnosed periodically pulls the diagnostic task through the HTTPS protocol, and downloads the diagnostic package specifically including:

[0027] When the vehicle to be diagnosed meets the pull task conditions, the vehicle to be diagnosed establishes remote communication with the remote diagnosis platform based on the HTTPS protocol and sends the vehicle's current basic information and a request to obtain a diagnosis task to the remote diagnosis platform; the pull task conditions include the vehicle being in IGON gear and reaching a preset pull time;

[0028] The remote diagnostic platform extracts the diagnostic task from the database based on the current basic information of the vehicle and the diagnostic task acquisition request; the diagnostic task includes encrypted diagnostic task description information, diagnostic package, and diagnostic package download link information;

[0029] The remote diagnosis platform sends the encrypted diagnosis task description information and the diagnosis package download link information to the vehicle to be diagnosed;

[0030] The vehicle to be diagnosed receives the encrypted diagnostic task description information and the diagnostic package download link information, verifies the integrity and reliability of the message, and if the signature verification is passed, decrypts the encrypted diagnostic task description information, obtains the diagnostic task description information, and downloads the diagnostic package from the remote diagnostic platform through the HTTPS protocol according to the diagnostic package download link information.

[0031] Further optionally, the vehicle to be diagnosed performs the diagnostic task, and obtaining the diagnostic result includes:

[0032] The vehicle to be diagnosed obtains the diagnostic task description information of the diagnostic task, extracts and determines the diagnostic type of the diagnostic task; the diagnostic type includes a trigger type and a periodic type;

[0033] When the diagnosis type is a trigger type, the vehicle to be diagnosed extracts the diagnosis strategy in the diagnosis task description information and checks according to the diagnosis strategy to determine whether the current vehicle state or state combination meets the trigger condition of the diagnosis task;

[0034] If the triggering condition of the diagnostic task is met, the vehicle to be diagnosed extracts the diagnostic script file in the diagnostic package, executes the remote diagnostic task according to the instructions in the diagnostic script file, obtains a diagnostic result, and the vehicle to be diagnosed ends the remote diagnostic task;

[0035] If the triggering condition of the diagnostic task is not met, the vehicle to be diagnosed feeds back the current vehicle state or state combination and the unmet condition set to the remote diagnostic platform;

[0036] The remote diagnostic platform generates and records diagnostic information based on the current vehicle state or state combination and the unsatisfied condition set;

[0037] When the diagnosis type is periodic, the vehicle to be diagnosed extracts the diagnosis task start time, the diagnosis task end time, and the execution time interval in the diagnosis task description information, and extracts the diagnosis script file in the diagnosis package;

[0038] The vehicle to be diagnosed repeatedly executes the instructions in the diagnostic script file according to the diagnostic task start time and the execution time interval to obtain a diagnostic result until the diagnostic task end time is reached, at which time the vehicle to be diagnosed ends the remote diagnostic task.

[0039] Further optionally, the vehicle to be diagnosed uploading the diagnosis result to the remote diagnosis platform includes:

[0040] The vehicle to be diagnosed records the diagnosis result in a diagnosis log;

[0041] After completing the remote diagnosis task, the vehicle to be diagnosed uploads the diagnosis log to the remote diagnosis platform.

[0042] In a second aspect, according to an embodiment of this specification, a vehicle remote diagnosis system is provided, comprising:

[0043] Task creation module, used to create diagnostic tasks on the remote diagnosis platform;

[0044] The protocol judgment module is used to determine whether the vehicle to be diagnosed supports the MQTT protocol;

[0045] An online judgment module, used to judge whether the vehicle to be diagnosed that supports the MQTT protocol is online;

[0046] A first diagnostic task acquisition module is configured to, when the vehicle to be diagnosed supports the MQTT protocol and is online, send a diagnostic instruction to all vehicles to be diagnosed associated with the task via the MQTT protocol, and the vehicles to be diagnosed acquire the diagnostic task via the HTTPS protocol and download a diagnostic package;

[0047] A second diagnostic task acquisition module is configured to cause the vehicle to periodically pull the diagnostic task through the HTTPS protocol and download the diagnostic package when the vehicle to be diagnosed does not support the MQTT protocol or is offline;

[0048] an execution module, configured to execute the diagnostic task on the vehicle to be diagnosed to obtain a diagnostic result;

[0049] A feedback module is used for the vehicle to be diagnosed to upload the diagnosis result to the remote diagnosis platform.

[0050] In a third aspect, according to an embodiment of this specification, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the vehicle remote diagnosis method described in the first aspect are implemented.

[0051] In a fourth aspect, according to an embodiment of this specification, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle remote diagnosis method described in the first aspect are implemented.

[0052] The beneficial effects of the embodiments of this specification are as follows:

[0053] Compared with traditional local diagnosis and near-field diagnosis, this vehicle remote diagnosis method does not require the installation of diagnostic equipment near the vehicle to be diagnosed. Diagnosis can be performed as long as there is a network, which greatly enriches the application scenarios of diagnosis. Compared with the cloud platform in the existing technology, the remote diagnosis platform in this vehicle remote diagnosis method realizes remote diagnosis through real-time diagnostic instructions. Even if the vehicle to be diagnosed is not connected to the remote diagnosis platform in real time, remote diagnosis can be realized. At the same time, diagnosis can be implemented under specified event trigger conditions and specified time intervals, which more effectively improves the execution rate and success rate of remote diagnosis in complex network environments. Compared with the existing technology that only uses the MQTT protocol for online instruction-based remote diagnosis, this method adopts a communication protocol method that combines the MQTT protocol with the HTTPS protocol. Diagnostic instructions are issued through the MQTT protocol, and diagnostic tasks and diagnostic packages are obtained through the HTTPS protocol. This greatly improves the concurrency capability of remote diagnosis and avoids the loss of data packets caused by the use of the MQTT protocol. Both the diagnostic task description information and the diagnostic package are transmitted through the HTTPS protocol to ensure the security of data information. In addition, the transmission of diagnostic packages using the HTTPS protocol can be accelerated using CDN, which improves transmission efficiency. The diagnostic log file is automatically uploaded after the remote diagnostic task is completed. This method of collecting diagnostic results does not require a long wait for the diagnostic results, greatly improving diagnostic efficiency. At the same time, remote diagnosis using tasks can enable diagnosis of a large number of vehicles at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0055] Figure 1 A flow chart of a vehicle remote diagnosis method provided in an embodiment of this specification;

[0056] Figure 2 This is a schematic diagram of a vehicle remote diagnosis method implemented by an embodiment of this specification. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of this specification and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to the process, method, product, or apparatus.

[0059] The embodiments of this specification disclose a vehicle remote diagnosis method, which is described in detail below.

[0060] Figure 1 and Figure 2 A vehicle remote diagnosis method provided according to an embodiment of this specification is shown.

[0061] like Figure 1 and Figure 2 As shown, the vehicle remote diagnosis method includes:

[0062] Step 100: Create a diagnostic task.

[0063] Creating a diagnostic task through the remote diagnostic platform mainly includes the following two steps:

[0064] (1) Create diagnostic task description information.

[0065] In one embodiment, diagnostic task description information is created through a remote diagnostic platform, and the diagnostic task description information includes but is not limited to diagnostic task start time, diagnostic task end time, diagnostic type, diagnostic strategy, diagnostic package type, diagnostic package file, execution time interval, trigger event, trigger delay time and task description information, wherein the diagnostic type includes trigger type and periodic type.

[0066] In another embodiment, the remote diagnosis platform encrypts and signs the created diagnosis task description information to obtain encrypted diagnosis task description information to ensure communication security.

[0067] (2) Create a diagnostic package.

[0068] In one embodiment, a diagnostic package is created through a remote diagnostic platform, which includes but is not limited to a diagnostic data file (e.g., a .bin file, a .s19 file, etc.), a list file of ECUs to be diagnosed, a trigger strategy file, a diagnostic script file (including a diagnostic sequence), and a signature file.

[0069] Step 200: Determine whether the vehicle to be diagnosed supports the MQTT protocol.

[0070] Since the Agent program of the vehicle to be diagnosed runs on the on-board telematics box (T-BOX) or gateway, if the device of the vehicle to be diagnosed is not convenient for integrating the SDK of the MQTT protocol, it is impossible to receive diagnostic instructions based on the MQTT protocol, that is, it does not support the MQTT protocol. Correspondingly, if the device of the vehicle to be diagnosed is integrated with the SDK of the MQTT protocol, it can receive diagnostic instructions based on the MQTT protocol, that is, it supports the MQTT protocol.

[0071] When the vehicle to be diagnosed supports the MQTT protocol, the process proceeds from step 200 to step 300 ; when the vehicle to be diagnosed does not support the MQTT protocol, the process proceeds from step 200 to step 900 .

[0072] Step 300: Determine whether the vehicle to be diagnosed is online.

[0073] MQTT communication is implemented through a topic-based publish / subscribe model. This decouples publishers and subscribers, but because there's no direct connection between them, an intermediary, the Broker server, is required to store and forward messages. The remote diagnostic platform uses the Broker server and subscribed topics to determine whether the vehicle being diagnosed is online.

[0074] In one embodiment, the vehicle to be diagnosed publishes a status message to the Broker server. The Broker server determines the first target topic corresponding to the status message and publishes the status message to the first MQTT client that subscribes to the first target topic. The first target topic is the topic of whether the vehicle is online. Correspondingly, the status message includes online messages and offline messages. The first MQTT client includes the vehicle to be diagnosed and the remote diagnosis platform. The vehicle to be diagnosed is the publisher and the remote diagnosis platform is the subscriber. The remote diagnosis platform determines whether the vehicle to be diagnosed is online based on the status message published by the Broker server. When the published status message is an online message, the vehicle to be diagnosed is judged to be online. When the published status message is an offline message, the vehicle to be diagnosed is judged to be offline, that is, not online. For example, in a specific implementation process, the vehicle to be diagnosed publishes a message with the topic / topic / online / vin to the Broker server. The remote diagnosis platform subscribes to the topic / topic / online / + to the Broker server at the same time to receive the connection information of the vehicle to be diagnosed.

[0075] If the vehicle to be diagnosed is online, the process proceeds from step 300 to step 400 ; if the vehicle to be diagnosed is offline, the process proceeds from step 300 to step 900 .

[0076] Step 400: Send diagnostic instructions to all task-associated vehicles to be diagnosed via the MQTT protocol.

[0077] After creating the diagnostic task, the remote diagnostic platform immediately sends the diagnostic task to all online vehicles to be diagnosed that are associated with the task, and uses the MQTT protocol to send diagnostic instructions and the HTTPS protocol to obtain diagnostic tasks and diagnostic packages to realize remote diagnosis of online vehicles to be diagnosed.

[0078] In one embodiment, the remote diagnosis platform publishes a message to be diagnosed to a Broker server. The Broker server determines the second target topic corresponding to the message to be diagnosed, and publishes the second target topic to a second MQTT client that subscribes to the second target topic. The second target topic is the topic of the diagnostic task, the message to be diagnosed includes diagnostic instructions, the second MQTT client includes the vehicle to be diagnosed and the remote diagnosis platform, the remote diagnosis platform is the publisher, and the vehicle to be diagnosed is the subscriber. For example, in a specific implementation process, the remote diagnosis platform publishes a message with the topic / topic / vin / campaign / {id} through the Broker server to notify the vehicle to be diagnosed that there is a diagnostic task to be executed. Since the vehicle to be diagnosed has subscribed to the / topic / vin / campaign message, it can immediately receive the relevant message.

[0079] Step 500: The vehicle to be diagnosed obtains a diagnostic task via the HTTPS protocol.

[0080] After the vehicle to be diagnosed receives the message about the diagnostic task, it immediately triggers the operation of pulling the diagnostic task, sends the vehicle's current basic information to the remote diagnostic platform through the HTTPS protocol and obtains the diagnostic task. The remote diagnostic platform sends the encrypted diagnostic task description information and the diagnostic package download link information to the vehicle to be diagnosed.

[0081] In one embodiment, the vehicle to be diagnosed immediately triggers a diagnostic task pull operation based on the pending diagnosis message. It sends the vehicle's current basic vehicle information and a diagnostic task request to the remote diagnostic platform via the HTTPS protocol. The remote diagnostic platform receives the vehicle's current basic vehicle information and the diagnostic task request and, based on the vehicle's current basic vehicle information and the diagnostic task request, sends the corresponding encrypted diagnostic task description and diagnostic package download link to the vehicle to be diagnosed. The vehicle to be diagnosed then receives the encrypted diagnostic task description and diagnostic package download link.

[0082] Step 600: The vehicle to be diagnosed downloads a diagnostic package via the HTTPS protocol.

[0083] The embodiment of the present invention adopts a communication protocol method that combines the MQTT protocol with the HTTPS protocol. All data links are through the HTTPS protocol. Therefore, the vehicle to be diagnosed will download the diagnostic package from the remote diagnostic platform in the form of the HTTPS protocol, and its download link comes from the diagnostic task.

[0084] In one embodiment, after the vehicle to be diagnosed receives the encrypted diagnostic task description information and the diagnostic package download link information, it verifies the integrity and reliability of the message. If the signature verification is passed, the encrypted diagnostic task description information is decrypted to obtain the diagnostic task description information, and the download link of the diagnostic package is obtained according to the diagnostic package download link information, thereby downloading the diagnostic package from the remote diagnostic platform through the HTTPS protocol. If the message is unreliable or incomplete, an error code is directly returned.

[0085] Step 700: The vehicle to be diagnosed performs a diagnostic task and obtains a diagnostic result.

[0086] The vehicle to be diagnosed performs the diagnosis task according to the diagnosis type of the diagnosis task.

[0087] When the diagnostic type of the diagnostic task is trigger type, the vehicle to be diagnosed will be checked in sequence according to the various diagnostic strategies defined in the diagnostic strategy to determine whether the current vehicle state or state combination meets the trigger conditions of the trigger diagnostic task. If so, the vehicle to be diagnosed will immediately execute the remote diagnostic task according to the instructions of the diagnostic script file and record the diagnostic results in the diagnostic log. The remote diagnostic task ends. If not, the vehicle to be diagnosed will not be executed, but the diagnostic task will remain valid until the end time of the diagnostic task. At the same time, the current vehicle state or state combination and the set of unsatisfied conditions will be returned to the remote diagnostic platform, and the remote diagnostic platform will record the diagnostic information.

[0088] In one embodiment, the vehicle to be diagnosed obtains diagnostic task description information for a diagnostic task, extracts and determines the diagnostic type of the diagnostic task. If the diagnostic type is trigger-type, the vehicle to be diagnosed extracts the diagnostic strategy from the diagnostic task description information and checks against the diagnostic strategy to determine whether the current vehicle state or state combination meets the diagnostic task trigger conditions. If the diagnostic task trigger conditions are met, the vehicle to be diagnosed extracts the diagnostic script file from the diagnostic package and executes the remote diagnostic task according to the instructions in the diagnostic script file, obtaining a diagnostic result, and then terminates the remote diagnostic task. If the diagnostic task trigger conditions are not met, the diagnostic task remains active until the diagnostic task expiration time. During this period, if the diagnostic task trigger conditions are met, the vehicle to be diagnosed executes the remote diagnostic task and obtains a diagnostic result, thereby terminating the remote diagnostic task. If the diagnostic task trigger conditions are not met by the diagnostic task expiration time, the vehicle to be diagnosed reports the current vehicle state or state combination and the set of unmet conditions to the remote diagnostic platform. The remote diagnostic platform generates and records diagnostic information based on the current vehicle state or state combination and the set of unmet conditions.

[0089] When the diagnostic task is of periodic type, the vehicle to be diagnosed repeatedly executes the instructions of the diagnostic script file according to the diagnostic task start time and execution interval, and records the diagnostic results in the diagnostic log until the diagnostic task end time arrives, at which point the remote diagnostic task ends.

[0090] In one embodiment, when the diagnosis type is periodic, the vehicle to be diagnosed extracts the diagnostic task start time, diagnostic task end time and execution time interval in the diagnostic task description information, and extracts the diagnostic script file in the diagnostic package. The vehicle to be diagnosed repeatedly executes the instructions in the diagnostic script file according to the diagnostic task start time and execution time interval to obtain the diagnostic results until the diagnostic task end time is reached, and the vehicle to be diagnosed ends the remote diagnostic task.

[0091] Step 800: The vehicle to be diagnosed uploads the diagnosis results to the remote diagnosis platform.

[0092] In one embodiment, the vehicle to be diagnosed records the diagnosis result in a diagnosis log. After completing the remote diagnosis task, the vehicle to be diagnosed uploads the diagnosis log to the remote diagnosis platform.

[0093] The diagnostic task is a triggered one. When the triggering conditions are met, the vehicle to be diagnosed executes the remote diagnostic task according to the instructions in the diagnostic script file and records the diagnostic results in the diagnostic log. At the end of the remote diagnostic task, the vehicle to be diagnosed uploads the diagnostic results to the remote diagnostic platform in the form of a log. The diagnostic task is a periodic one. The vehicle to be diagnosed repeatedly executes the instructions in the diagnostic script file according to the diagnostic task start time and execution interval, and records the diagnostic results in the diagnostic log until the diagnostic task end time is reached. At this point, the remote diagnostic task ends and the vehicle to be diagnosed uploads the diagnostic results to the remote diagnostic platform in the form of a log.

[0094] Step 900: The vehicle to be diagnosed periodically pulls diagnostic tasks via the HTTPS protocol.

[0095] When the vehicle to be diagnosed does not support the MQTT protocol or is offline, the main diagnostic program of the vehicle to be diagnosed uses the active pull task method to achieve remote diagnosis. The trigger condition for the pull task is when the vehicle is in the IGON gear, and the pull method is scheduled, such as pulling once every 6 hours. When the vehicle to be diagnosed does not support the MQTT protocol or is offline, messages cannot be sent to the vehicle to be diagnosed via the MQTT protocol, but the created diagnostic tasks can be stored in the database of the remote diagnostic platform. When the vehicle to be diagnosed is connected to the remote diagnostic platform next time, the remote diagnostic platform can send the encrypted diagnostic task description information and the diagnostic package download link information to the vehicle to be diagnosed. The vehicle to be diagnosed completes the remote diagnosis by receiving the diagnostic task and downloading the diagnostic package.

[0096] Specifically, in one embodiment, when the vehicle to be diagnosed meets the conditions for pulling the task, the vehicle to be diagnosed establishes remote communication with the remote diagnosis platform based on the HTTPS protocol, and sends the vehicle's current basic information and a request to obtain the diagnostic task to the remote diagnosis platform, wherein the pulling task conditions (i.e., the triggering conditions for the pulling task) include the vehicle being in the IGON gear and reaching the preset pulling time. That is, when the vehicle is in the IGON gear, the vehicle to be diagnosed connects to the remote diagnosis platform via the HTTPS protocol to obtain the diagnostic task, or reaches the preset pulling time, for example, at intervals of a preset time period, the vehicle to be diagnosed is connected to the remote diagnosis platform via the HTTPS protocol to obtain the diagnostic task. The remote diagnosis platform receives the vehicle's current basic information and the request to obtain the diagnostic task sent by the vehicle to be diagnosed, and extracts the diagnostic task from the database based on the vehicle's current basic information and the request to obtain the diagnostic task, wherein the diagnostic task includes encrypted diagnostic task description information, diagnostic package, and diagnostic package download link information. The remote diagnosis platform sends the extracted encrypted diagnostic task description information and diagnostic package download link information to the vehicle to be diagnosed. The vehicle to be diagnosed receives the encrypted diagnostic task description information and diagnostic package download link information and verifies the integrity and reliability of the message. If the signature verification passes, the encrypted diagnostic task description information is decrypted to obtain the diagnostic task description information, and the download link of the diagnostic package is obtained according to the diagnostic package download link information, thereby downloading the diagnostic package from the remote diagnosis platform through the HTTPS protocol. If the message is unreliable or incomplete, an error code is directly returned.

[0097] To sum up, this specification discloses a vehicle remote diagnosis method, which adopts a communication protocol method that combines the MQTT protocol and the HTTPS protocol. Regardless of whether the vehicle to be diagnosed is online or not, a diagnostic task can be created through the remote diagnosis platform. When the vehicle to be diagnosed is online, a diagnostic instruction can be immediately sent to the vehicle to be diagnosed through the MQTT protocol to notify the vehicle to be diagnosed that there is a new diagnostic task. The vehicle to be diagnosed obtains the diagnostic task in real time through the HTTPS protocol and completes the remote diagnosis. When the vehicle to be diagnosed is offline, the remote diagnosis platform can store the diagnostic task for a long time. Once the vehicle to be diagnosed actively connects to the remote diagnosis platform through the HTTPS protocol, it can immediately obtain the diagnostic task and complete the remote diagnosis.

[0098] Compared with traditional local diagnosis and near-field diagnosis, this vehicle remote diagnosis method does not require the installation of diagnostic equipment near the vehicle to be diagnosed. Diagnosis can be performed as long as there is a network, which greatly enriches the application scenarios of diagnosis. Compared with the cloud platform in the existing technology, the remote diagnosis platform in this vehicle remote diagnosis method realizes remote diagnosis through real-time diagnostic instructions. Even if the vehicle to be diagnosed is not connected to the remote diagnosis platform in real time, remote diagnosis can be realized. At the same time, diagnosis can be implemented under specified event trigger conditions and specified time intervals, which more effectively improves the execution rate and success rate of remote diagnosis in complex network environments. Compared with the existing technology that only uses the MQTT protocol for online instruction-based remote diagnosis, this method adopts a communication protocol method that combines the MQTT protocol with the HTTPS protocol. Diagnostic instructions are issued through the MQTT protocol, and diagnostic tasks and diagnostic packages are obtained through the HTTPS protocol. This greatly improves the concurrency capability of remote diagnosis and avoids the loss of data packets caused by the use of the MQTT protocol. Both the diagnostic task description information and the diagnostic package are transmitted through the HTTPS protocol to ensure the security of data information. In addition, the transmission of diagnostic packages using the HTTPS protocol can be accelerated using CDN, which improves transmission efficiency. The diagnostic log file is automatically uploaded after the remote diagnostic task is completed. This method of collecting diagnostic results does not require a long wait for the diagnostic results, greatly improving diagnostic efficiency. At the same time, remote diagnosis using tasks can enable diagnosis of a large number of vehicles at the same time.

[0099] The embodiments of this specification also disclose a vehicle remote diagnosis system, including a task creation module, a protocol judgment module, an online judgment module, a first diagnostic task acquisition module, a second diagnostic task acquisition module, an execution module and a feedback module.

[0100] Among them, the task creation module is used to create diagnostic tasks on the remote diagnosis platform.

[0101] The protocol judgment module is used to determine whether the vehicle to be diagnosed supports the MQTT protocol.

[0102] The online judgment module is used to determine whether the vehicle to be diagnosed that supports the MQTT protocol is online.

[0103] The first diagnostic task acquisition module is used to send diagnostic instructions to all task-associated vehicles to be diagnosed through the MQTT protocol when the vehicle to be diagnosed supports the MQTT protocol and is online. The vehicle to be diagnosed obtains the diagnostic task through the HTTPS protocol and downloads the diagnostic package.

[0104] The second diagnostic task acquisition module is used for the vehicle to be diagnosed to periodically pull diagnostic tasks and download diagnostic packages through the HTTPS protocol when the vehicle to be diagnosed does not support the MQTT protocol or is not online.

[0105] The execution module is used to execute the diagnostic task on the vehicle to be diagnosed to obtain the diagnostic result.

[0106] The feedback module is used for the vehicle to be diagnosed to upload the diagnosis results to the remote diagnosis platform.

[0107] The vehicle remote diagnostic system provided in this embodiment is based on the same concept as the vehicle remote diagnostic method of the present invention, and the technical effects it brings are the same as those of the vehicle remote diagnostic method embodiment of the present invention. Therefore, the specific limitations of the vehicle remote diagnostic system can be found in the above-mentioned limitations of the vehicle remote diagnostic method and will not be repeated here. The various modules in the above-mentioned vehicle remote diagnostic system can be implemented in whole or in part through software, hardware, or a combination thereof. In addition, the above-mentioned modules can be embedded in or independent of the processor of the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules.

[0108] The embodiments of this specification also disclose a computer device, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the above-mentioned vehicle remote diagnosis method when executing the computer program.

[0109] The embodiments of this specification also disclose a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned vehicle remote diagnosis method are implemented.

[0110] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0111] Those skilled in the art will appreciate that the modules in the apparatuses of the embodiments may be distributed in the apparatuses of the embodiments as described in the embodiments, or may be located in one or more apparatuses different from the embodiments with corresponding changes. The modules in the above embodiments may be combined into one module or further divided into multiple sub-modules.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A vehicle remote diagnosis method, characterized in that: include: Creating a diagnostic task; wherein the creating the diagnostic task includes: creating diagnostic task description information through the remote diagnostic platform; the diagnostic task description information includes diagnostic task start time, diagnostic task end time, diagnostic type, diagnostic strategy, diagnostic package type, diagnostic package file, execution time interval, trigger event, trigger delay time, and task description information; creating a diagnostic package through the remote diagnostic platform; the diagnostic package includes a diagnostic data file, a list file of ECUs to be diagnosed, a trigger strategy file, a diagnostic script file, and a signature file; Determine whether the vehicle to be diagnosed supports the MQTT protocol; When the vehicle to be diagnosed supports the MQTT protocol, determining whether the vehicle to be diagnosed is online; wherein, determining whether the vehicle to be diagnosed is online comprises: the vehicle to be diagnosed publishes a status message to a Broker server, the Broker server determines a first target topic corresponding to the status message, and publishes the status message to a first MQTT client subscribed to the first target topic; the first MQTT client includes the vehicle to be diagnosed and the remote diagnosis platform, the status message includes an online message and an offline message; the remote diagnosis platform determines whether the vehicle to be diagnosed is online based on the status message; If the vehicle to be diagnosed is online, a diagnostic instruction is sent to all vehicles to be diagnosed associated with the task via the MQTT protocol. The vehicle to be diagnosed obtains the diagnostic task in real time via the HTTPS protocol and downloads the diagnostic package; When the vehicle to be diagnosed does not support the MQTT protocol or is offline, the vehicle to be diagnosed periodically pulls the diagnostic task through the HTTPS protocol and downloads the diagnostic package; wherein the pulling task conditions for periodically pulling the diagnostic task include the vehicle being in IGON gear and reaching a preset pulling time; The vehicle to be diagnosed executes the diagnostic task and obtains a diagnostic result; The vehicle to be diagnosed uploads the diagnosis result to the remote diagnosis platform; Among them, the diagnostic package under the HTTPS protocol is transmitted using CDN acceleration.

2. The vehicle remote diagnosis method according to claim 1, characterized in that: The creating of the diagnosis task further includes: The diagnostic task description information is encrypted and signed to obtain encrypted diagnostic task description information.

3. The vehicle remote diagnosis method according to claim 1, characterized in that: The step of sending the diagnostic command to all vehicles to be diagnosed associated with the task through the MQTT protocol, and the vehicles to be diagnosed obtaining the diagnostic task through the HTTPS protocol and downloading the diagnostic package specifically includes: The remote diagnosis platform publishes a message to be diagnosed to the Broker server, the Broker server determines a second target topic corresponding to the message to be diagnosed, and publishes the second target topic to a second MQTT client subscribed to the second target topic; the second MQTT client includes the vehicle to be diagnosed and the remote diagnosis platform, and the message to be diagnosed includes a diagnostic instruction; According to the message to be diagnosed, the vehicle to be diagnosed sends the current basic information of the vehicle and a request to obtain a diagnostic task to the remote diagnosis platform via the HTTPS protocol; The remote diagnosis platform sends encrypted diagnosis task description information and diagnosis package download link information to the vehicle to be diagnosed based on the current basic information of the vehicle and the request to obtain the diagnosis task; The vehicle to be diagnosed receives the encrypted diagnostic task description information and the diagnostic package download link information, verifies the integrity and reliability of the message, and if the signature verification is passed, decrypts the encrypted diagnostic task description information, obtains the diagnostic task description information, and downloads the diagnostic package from the remote diagnostic platform through the HTTPS protocol according to the diagnostic package download link information.

4. The vehicle remote diagnosis method according to claim 1, characterized in that: The vehicle to be diagnosed periodically pulls the diagnostic task through the HTTPS protocol, and downloads the diagnostic package specifically including: When the vehicle to be diagnosed meets the pull task conditions, the vehicle to be diagnosed establishes remote communication with the remote diagnosis platform based on the HTTPS protocol, and sends the vehicle's current basic information and a request to obtain a diagnosis task to the remote diagnosis platform; The remote diagnostic platform extracts the diagnostic task from the database based on the current basic information of the vehicle and the diagnostic task acquisition request; the diagnostic task includes encrypted diagnostic task description information, diagnostic package, and diagnostic package download link information; The remote diagnosis platform sends the encrypted diagnosis task description information and the diagnosis package download link information to the vehicle to be diagnosed; The vehicle to be diagnosed receives the encrypted diagnostic task description information and the diagnostic package download link information, verifies the integrity and reliability of the message, and if the signature verification is passed, decrypts the encrypted diagnostic task description information, obtains the diagnostic task description information, and downloads the diagnostic package from the remote diagnostic platform through the HTTPS protocol according to the diagnostic package download link information.

5. The vehicle remote diagnosis method according to claim 1, characterized in that: The vehicle to be diagnosed performs the diagnostic task, and the diagnostic result obtained includes: The vehicle to be diagnosed obtains the diagnostic task description information of the diagnostic task, extracts and determines the diagnostic type of the diagnostic task; the diagnostic type includes a trigger type and a periodic type; When the diagnosis type is a trigger type, the vehicle to be diagnosed extracts the diagnosis strategy in the diagnosis task description information and checks according to the diagnosis strategy to determine whether the current vehicle state or state combination meets the trigger condition of the diagnosis task; If the triggering condition of the diagnostic task is met, the vehicle to be diagnosed extracts the diagnostic script file in the diagnostic package, executes the remote diagnostic task according to the instructions in the diagnostic script file, obtains a diagnostic result, and the vehicle to be diagnosed ends the remote diagnostic task; If the triggering condition of the diagnostic task is not met, the vehicle to be diagnosed feeds back the current vehicle state or state combination and the unmet condition set to the remote diagnostic platform; The remote diagnostic platform generates and records diagnostic information based on the current vehicle state or state combination and the unsatisfied condition set; When the diagnosis type is periodic, the vehicle to be diagnosed extracts the diagnosis task start time, the diagnosis task end time, and the execution time interval in the diagnosis task description information, and extracts the diagnosis script file in the diagnosis package; The vehicle to be diagnosed repeatedly executes the instructions in the diagnostic script file according to the diagnostic task start time and the execution time interval to obtain a diagnostic result until the diagnostic task end time is reached, at which time the vehicle to be diagnosed ends the remote diagnostic task.

6. The vehicle remote diagnosis method according to claim 5, characterized in that: The vehicle to be diagnosed uploads the diagnosis result to the remote diagnosis platform including: The vehicle to be diagnosed records the diagnosis result in a diagnosis log; After completing the remote diagnosis task, the vehicle to be diagnosed uploads the diagnosis log to the remote diagnosis platform.

7. A vehicle remote diagnosis system, characterized in that: include: A task creation module is used to create a diagnostic task on a remote diagnostic platform; wherein the task creation module is specifically used to: create diagnostic task description information through the remote diagnostic platform, and create a diagnostic package through the remote diagnostic platform; the diagnostic task description information includes the diagnostic task start time, diagnostic task end time, diagnostic type, diagnostic strategy, diagnostic package type, diagnostic package file, execution time interval, trigger event, trigger delay time, and task description information; the diagnostic package includes a diagnostic data file, a list file of ECUs to be diagnosed, a trigger strategy file, a diagnostic script file, and a signature file; The protocol judgment module is used to determine whether the vehicle to be diagnosed supports the MQTT protocol; An online judgment module is used to determine whether the vehicle to be diagnosed that supports the MQTT protocol is online; wherein the online judgment module is specifically used to: the vehicle to be diagnosed publishes a status message to a Broker server, the Broker server determines a first target topic corresponding to the status message, and publishes the status message to a first MQTT client that subscribes to the first target topic; the first MQTT client includes the vehicle to be diagnosed and the remote diagnosis platform, the status message includes an online message and an offline message; the remote diagnosis platform determines whether the vehicle to be diagnosed is online based on the status message; A first diagnostic task acquisition module is configured to send diagnostic instructions to all vehicles to be diagnosed that are associated with the task via the MQTT protocol when the vehicle to be diagnosed supports the MQTT protocol and is online. The vehicle to be diagnosed obtains the diagnostic task in real time via the HTTPS protocol and downloads the diagnostic package. A second diagnostic task acquisition module is configured to cause the vehicle to periodically pull the diagnostic task and download the diagnostic package via the HTTPS protocol when the vehicle to be diagnosed does not support the MQTT protocol or is offline; wherein the pulling task conditions for periodically pulling the diagnostic task include the vehicle being in IGON gear and reaching a preset pulling time; an execution module, configured to execute the diagnostic task on the vehicle to be diagnosed to obtain a diagnostic result; A feedback module, configured for the vehicle to be diagnosed to upload the diagnosis result to the remote diagnosis platform; Among them, the diagnostic package under the HTTPS protocol is transmitted using CDN acceleration.

8. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the vehicle remote diagnosis method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Information acquisition method, device and system, readable storage medium and electronic equipment

    CN111131358A

  • Automobile remote diagnosis method and system

    CN111781911A

  • Vehicle remote diagnosis method and system, vehicle and computer readable storage medium

    CN114924548A