Diagnosis control method and device, electronic equipment and storage medium
Automatically launching the vehicle diagnostic application through near-field communication tags solves the problems of cumbersome operation and low diagnostic efficiency in existing technologies, achieves seamless connection and efficient diagnosis, and meets the instant diagnosis needs in fast-paced life scenarios.
Patent Information
- Application Number
- CN202510886474.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-12
AI Technical Summary
Existing vehicle diagnostic solutions are cumbersome to operate and prone to diagnostic failure or delay due to human error. They also lack intelligent triggering mechanisms and cannot meet the instant diagnostic needs of fast-paced life scenarios.
By acquiring diagnostic control parameters through near-field communication tags, the diagnostic application of the terminal device is automatically started, and a communication connection is established with the vehicle's diagnostic module to extract and execute diagnostic task instructions. This eliminates the need for manual application startup, achieving seamless connection and diagnostic control.
Reduce manual operations, improve diagnostic efficiency, achieve seamless connection, meet the instant diagnosis needs of fast-paced life scenarios, and enhance user experience.
Smart Images

Figure CN120630952A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle diagnosis and control technology, and in particular to a diagnosis and control method, device, electronic device and storage medium. Background Art
[0002] With the continuous advancement of automotive electronics, on-board diagnostics (OBD) systems have become an integral part of modern vehicles. The current vehicle diagnostic process involves manually opening the OBD control application on a terminal device, selecting the vehicle to be diagnosed, and establishing a connection with the OBD system. Once the connection is established, the diagnostic process is manually initiated. This demonstrates that existing vehicle diagnostic solutions are cumbersome and prone to diagnostic failures or delays due to manual errors.
[0003] Therefore, existing vehicle diagnostic solutions have the problem of low diagnostic efficiency due to cumbersome operations. Summary of the Invention
[0004] The embodiments of the present application provide a diagnostic control method, device, electronic device, computer-readable storage medium, and computer program product, which obtain diagnostic control parameters from a near-field communication tag to start an application on a terminal device according to the diagnostic control parameters, and perform diagnostic control on the vehicle based on the connection between the application and the vehicle's diagnostic module. This eliminates the need to manually start the application and the diagnostic process, achieving a seamless connection, reducing manual operations, and improving diagnostic efficiency.
[0005] The present invention provides a diagnostic control method for a terminal device, including:
[0006] Obtaining, from the near field communication tag, diagnostic control parameters configured in the near field communication tag via the terminal device;
[0007] Based on the diagnostic control parameter, determining a target application that the terminal device needs to start and controlling the terminal device to start the target application;
[0008] establishing a communication connection between the target application and a diagnostic module of a vehicle based on the diagnostic control parameter;
[0009] extracting a diagnostic task indication parameter from the diagnostic control parameter;
[0010] determining, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to perform;
[0011] A first diagnostic instruction corresponding to the first diagnostic task is generated, and the first diagnostic instruction is sent to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction and returns the obtained diagnostic data to the target application.
[0012] Accordingly, an embodiment of the present application provides a diagnostic control device, applied to a terminal device, comprising:
[0013] a parameter acquisition unit, configured to acquire, from the near field communication tag via the terminal device, the diagnostic control parameters configured in the near field communication tag;
[0014] a starting unit, configured to determine, based on the diagnostic control parameter, a target application that the terminal device needs to start, and control the terminal device to start the target application;
[0015] a connection unit, configured to establish a communication connection between the target application and a diagnostic module of the vehicle based on the diagnostic control parameter;
[0016] a parameter extraction unit, configured to extract a diagnostic task indication parameter from the diagnostic control parameter;
[0017] a task determining unit, configured to determine, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to perform;
[0018] A task execution unit is used to generate a first diagnostic instruction corresponding to the first diagnostic task, send the first diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application.
[0019] In addition, an embodiment of the present application also provides an electronic device, including one or more processors and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the diagnostic control method provided in the embodiment of the present application.
[0020] In addition, an embodiment of the present application also provides a storage medium, which stores a computer program. When the computer program runs on an electronic device, the computer program is used to enable the electronic device to execute any one of the diagnostic control methods provided in the embodiment of the present application.
[0021] In addition, an embodiment of the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements any diagnostic control method provided in the embodiment of the present application.
[0022] In an embodiment of the present application, the diagnostic control parameters configured in the near-field communication tag are obtained from the near-field communication tag through the terminal device; based on the diagnostic control parameters, the target application that the terminal device needs to start is determined and the terminal device is controlled to start the target application; based on the diagnostic control parameters, a communication connection is established between the target application and the diagnostic module of the vehicle; the diagnostic task indication parameters are extracted from the diagnostic control parameters; based on the diagnostic task indication parameters, the first diagnostic task that the target application needs to control the diagnostic module to perform is determined; a first diagnostic instruction corresponding to the first diagnostic task is generated, and the first diagnostic instruction is sent to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application. Based on this, by obtaining the diagnostic control parameters from the near-field communication tag, so as to start the application on the terminal device according to the diagnostic control parameters, and diagnose and control the vehicle based on the connection between the application and the diagnostic module of the vehicle, there is no need to manually start the application and the diagnostic process, so as to achieve a senseless connection, reduce manual operations and improve diagnostic efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 This is a schematic diagram of an implementation environment scenario of the diagnostic control method provided in the embodiments of the present application;
[0025] Figure 2 is a flow chart of the diagnostic control method provided in an embodiment of the present application;
[0026] Figure 3 is a schematic diagram of a diagnostic mode in the diagnostic control method provided in an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of a specific flow chart of the diagnostic control method provided in an embodiment of the present application;
[0028] Figure 5 is a schematic structural diagram of a diagnostic control system in a diagnostic control method provided in an embodiment of the present application;
[0029] Figure 6 Schematic diagram of the structure of the OBD adapter in the diagnostic control method provided in the embodiment of the present application;
[0030] Figure 7 is a schematic structural diagram of a diagnostic control device provided in an embodiment of the present application;
[0031] Figure 8 It is a structural diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0033] In addition, the term "a plurality of" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood to imply relative importance.
[0034] Research has found that with the development of intelligent and information-based vehicles, on-board diagnostic systems (OBDs) have become an essential component of modern vehicles. Users can use OBD adapters to obtain vehicle operating status, read diagnostic trouble codes (DTCs), and monitor sensor data, enabling digital vehicle maintenance and care. However, current OBD intelligent diagnostic systems on the market, particularly mobile diagnostic applications on the Android platform, generally suffer from the following issues:
[0035] The connection process is cumbersome: Most current diagnostic applications require users to manually open the application, select the device, establish a connection, and then manually start the diagnostic process. The overall process is complicated and the experience is not user-friendly, especially for non-professional users.
[0036] High operational threshold: Non-professional users lack understanding of the meaning of fault codes, and diagnostic applications only display codes but lack intelligent interpretation and guidance.
[0037] Poor convenience and low efficiency: Traditional diagnosis methods take a long time and cannot meet the immediate needs of high-frequency scenarios such as daily rapid vehicle condition detection and temporary fault query.
[0038] Lack of intelligent triggering mechanism: Most existing diagnostic applications are used passively, unable to achieve the quick experience of "instant connection and diagnosis", and are difficult to meet the needs of fast-paced life scenarios.
[0039] Unstable connection: The connection mechanism lacks intelligent judgment or retry capabilities, and is prone to connection failures due to issues such as device unpairing, Bluetooth anomalies, and Wi-Fi delays, affecting the diagnostic experience.
[0040] Limited application scenarios: Current diagnostic methods cannot implement intelligent wake-up and automated operation based on usage scenarios (such as when the user enters the vehicle or before starting the vehicle), which is inconsistent with the development trend of IoT / smart vehicle devices. Users only actively use diagnostic tools when encountering obvious faults, lacking the motivation for periodic, daily use.
[0041] To address at least one of the above problems, embodiments of the present application provide a diagnostic control method, apparatus, electronic device, storage medium, and computer program product. The diagnostic control apparatus can be integrated into an electronic device, such as a server of a diagnostic control system or a terminal controlled by the diagnostic control system.
[0042] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.
[0043] The terminal may be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited thereto. The terminal and the server may be connected directly or indirectly via wired or wireless communication, and this application does not impose any restrictions thereon.
[0044] See also Figure 1 , taking the integration of diagnostic control devices into electronic equipment as an example, Figure 1A schematic diagram of an implementation scenario of the diagnostic control method provided in an embodiment of the present application, wherein the electronic device can be a terminal device such as a mobile phone, and the terminal device obtains the diagnostic control parameters configured in the near-field communication tag from the near-field communication tag; based on the diagnostic control parameters, determines the target application that the terminal device needs to start and controls the terminal device to start the target application; based on the diagnostic control parameters, establishes a communication connection between the target application and the vehicle's diagnostic module; extracts the diagnostic task indication parameters from the diagnostic control parameters; based on the diagnostic task indication parameters, determines the first diagnostic task that the target application needs to control the diagnostic module to perform; generates a first diagnostic instruction corresponding to the first diagnostic task, and sends the first diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application. Based on this, by obtaining the diagnostic control parameters from the near-field communication tag, so as to start the application on the terminal device according to the diagnostic control parameters, and diagnose and control the vehicle based on the connection between the application and the vehicle's diagnostic module, there is no need to manually start the application and the diagnostic process, thus achieving a senseless connection, reducing manual operations while improving diagnostic efficiency.
[0045] It should be noted that Figure 1 The schematic diagram of the implementation environment scenario of the diagnostic control method shown is merely an example. The implementation environment scenario of the diagnostic control method described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application and does not constitute a limitation on the technical solution provided by the embodiment of the present application. Those skilled in the art will appreciate that with the evolution of data processing and the emergence of new business scenarios, the technical solution provided in this application is equally applicable to similar technical problems.
[0046] The solutions provided in the embodiments of the present application are specifically described by the following embodiments. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments.
[0047] This embodiment will be described from the perspective of a diagnostic control device, which can be integrated into an electronic device. The electronic device can be a terminal device such as a mobile phone, and this application does not limit this.
[0048] See also Figure 2 , Figure 2 : is a flowchart of a diagnostic control method provided in an embodiment of the present application. The diagnostic control method is applied to a terminal device. The diagnostic control method may include the following steps S101 to S106:
[0049] S101. Obtain diagnostic control parameters configured in a near field communication tag from the near field communication tag through a terminal device.
[0050] Among them, a Near Field Communication (NFC) tag is a small electronic tag based on radio frequency identification technology that can communicate wirelessly with a terminal device that supports the NFC function within a very short distance (usually a few centimeters).
[0051] Among them, the diagnostic control parameters refer to the control parameters preset in the near-field communication tag, which can be used to trigger the start of the diagnostic application of the terminal device and trigger the diagnostic control process.
[0052] It should be noted that the location of the NFC tag can be adjusted according to actual circumstances and is not limited in the present embodiment. For example, the NFC tag can be located on a vehicle window. For another example, the NFC tag can be located anywhere other than the vehicle, such as at the user's doorstep or in a key locker at home.
[0053] S102: Based on the diagnosis control parameters, determine the target application that the terminal device needs to start and control the terminal device to start the target application.
[0054] The target application (Application, App) refers to an application on the terminal device that can be used for diagnostic control.
[0055] S103 : Establishing a communication connection between the target application and a diagnostic module of the vehicle based on the diagnostic control parameters.
[0056] The vehicle's diagnostic module refers to the vehicle's on-board diagnostic system.
[0057] S104: Extracting a diagnosis task indication parameter from the diagnosis control parameter.
[0058] The diagnostic task indication parameter is used to indicate the parameters of the diagnostic task that is preset by the near field communication tag and needs to be executed.
[0059] S105 : Determine, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to execute.
[0060] The first diagnostic task refers to a diagnostic task that needs to be executed by the vehicle diagnostic module, as determined based on the diagnostic task indication parameter.
[0061] S106 , generating a first diagnostic instruction corresponding to the first diagnostic task, and sending the first diagnostic instruction to the diagnostic module via a communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application.
[0062] The first diagnostic instruction refers to an instruction that can be recognized by the vehicle's diagnostic module and is used to execute the first diagnostic task.
[0063] The specific content of the diagnostic operation can be determined based on the diagnostic task and is not limited in the present embodiment. For example, if the diagnostic task is to read key data, such as battery voltage, the diagnostic operation may be to check the battery voltage. For another example, if the diagnostic task is to read fault codes, the diagnostic operation may be to identify whether the vehicle is faulty and, if so, the specific fault.
[0064] It can be seen from this that the diagnostic control method provided in the embodiment of the present application obtains the diagnostic control parameters configured in the near-field communication tag from the near-field communication tag through the terminal device; based on the diagnostic control parameters, determines the target application that the terminal device needs to start and controls the terminal device to start the target application; based on the diagnostic control parameters, establishes a communication connection between the target application and the diagnostic module of the vehicle; extracts the diagnostic task indication parameters from the diagnostic control parameters; based on the diagnostic task indication parameters, determines the first diagnostic task that the target application needs to control the diagnostic module to perform; generates a first diagnostic instruction corresponding to the first diagnostic task, and sends the first diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application. Based on this, by obtaining the diagnostic control parameters from the near-field communication tag, so as to start the application on the terminal device according to the diagnostic control parameters, and diagnose and control the vehicle based on the connection between the application and the diagnostic module of the vehicle, there is no need to manually start the application and the diagnostic process, thus achieving a senseless connection, reducing manual operations while improving diagnostic efficiency.
[0065] In some embodiments, before obtaining the diagnostic control parameters configured in the near-field communication tag from the near-field communication tag through the terminal device, the above-mentioned diagnostic control method also includes: obtaining diagnostic scheme configuration information for the vehicle through the target application of the terminal device; generating diagnostic control parameters based on the diagnostic scheme configuration information; establishing a connection with the near-field communication tag through the target application, and writing the diagnostic control parameters into the near-field communication tag; wherein the diagnostic scheme configuration information includes multiple types of diagnostic task indication parameters, diagnostic module identification, communication connection parameters and diagnostic association information.
[0066] The diagnostic scheme configuration information refers to the configuration information for performing diagnostic control on the vehicle.
[0067] Among them, the diagnostic task indication parameter refers to the parameter used to indicate the diagnostic task that needs to be performed by the near field communication tag. The specific content of the diagnostic task indication parameter can be adjusted according to the actual situation, and the embodiment of the present application does not limit it. For example, the diagnostic task indication parameter may include a task identifier, and the task identifier is used to identify a specific diagnostic task. The diagnostic task indication parameter may include a diagnostic mode identifier, and the diagnostic mode identifier is used to identify a specific diagnostic mode. Different diagnostic modes can be configured with different diagnostic tasks, and their specific content can be adjusted according to the actual situation, and the embodiment of the present application does not limit it. For example, please refer to Figure 3 , Figure 3 It is a schematic diagram of the diagnostic mode provided in this application. When the diagnostic mode identifier contained in the diagnostic task indication parameter is quickCheck, it indicates the quick detection mode, and determines the battery voltage, whether there is a fault code, engine temperature, etc. in the quick detection mode as the diagnostic task.
[0068] The diagnostic module identifier is used to identify a specific diagnostic module. It should be noted that different vehicles have different diagnostic modules. The diagnostic module identifier can be used to determine the diagnostic module of the vehicle that the target application needs to control for diagnosis. For example, if the diagnostic module identifier is OBDII-X123, it indicates that the vehicle's diagnostic module is OBDII-X123.
[0069] Among them, the communication connection parameters refer to the relevant information used to connect the target application and the vehicle's diagnostic module. The specific content of the communication connection parameters can be adjusted according to actual conditions and is not limited by the embodiments of the present application. For example, the communication connection parameters may include the communication connection type, which includes but is not limited to Bluetooth connection and Wi-Fi connection. For another example, the communication connection parameters may include the communication protocol, which includes but is not limited to the ELM327 communication protocol, ISO15765 communication protocol, SAE J1850 communication protocol, and ISO9141 communication protocol.
[0070] Among them, diagnosis-related information refers to other information related to the diagnosis control process, which can be adjusted according to actual conditions, and is not limited in the embodiments of the present application. For example, diagnosis-related information may include a display method for diagnostic data, that is, a method for displaying diagnostic data, and the display method for diagnostic data may include but is not limited to a voice broadcast method and a visual display method. For another example, diagnosis-related information may include a storage method for diagnostic data, that is, a method for storing diagnostic data. The storage method for diagnostic data may include but is not limited to a specific storage location for diagnostic data (such as a local terminal device, a specific cloud or a storage module for a vehicle), and a storage time for diagnostic data (such as one month, one year). For another example, diagnosis-related information may include the number of retries, that is, when the same diagnostic process can be continued in the event of a diagnostic anomaly. For another example, diagnosis-related information may include the name of the diagnostic scheme where the currently started diagnostic task is located.
[0071] Among them, establishing a connection with the near field communication tag through the target application may refer to placing the terminal device close to the near field communication tag to trigger the target application to establish a connection with the near field communication tag.
[0072] For example, the user can perform the following operations on the diagnostic settings page of the target application: create a diagnostic plan, such as naming it "XX Driving Special", "High Temperature Weather Check", etc., select the diagnostic content (such as DTC, battery, engine, emission and other modules); set whether to execute silently, whether to broadcast by voice, and whether to upload to the cloud; generate diagnostic control parameters in a preset format based on the above settings, establish a connection with the near-field communication tag through the target application, and write the diagnostic control parameters to the near-field communication tag. Figure 3 For example, users can configure a custom plan called "Long-Distance Driving" with a mode named "Long-Distance Check". The test content includes key items of the brake system / engine, tire pressure, and a full scan of the OBD module. The diagnostic control parameters can be obdapp: / / connect?mode=tripCheck&autostart=true.
[0073] It should be noted that the number of NFC tags can be one or more. If there are multiple NFC tags, the same diagnostic control parameters can be written to the multiple NFC tags so that when any of the multiple NFC tags is triggered, the diagnostic control process corresponding to the diagnostic control parameters can be executed. If there are multiple NFC tags, different diagnostic control parameters can also be written to the multiple NFC tags to implement the configuration of multiple diagnostic control processes to adapt to different application scenarios or different user needs.
[0074] In this way, by personalizing or setting near-field communication tags based on scenarios, terminal devices can be intelligently awakened and automated diagnostic operations can be performed to meet the intelligent needs of vehicles.
[0075] In some embodiments, the above-mentioned process of establishing a communication connection between the target application and the diagnostic module of the vehicle based on the diagnostic control parameters may include: extracting the diagnostic module identifier and communication connection parameters from the diagnostic control parameters; determining the diagnostic module of the vehicle that the target application needs to control based on the diagnostic module identifier; and establishing a communication connection between the target application and the diagnostic module of the vehicle based on the communication connection parameters.
[0076] In this way, the communication connection between the target application and the vehicle's diagnostic module is quickly and accurately established through diagnostic control parameters to avoid connection failures due to user errors, which in turn affects diagnostic efficiency.
[0077] In some embodiments, the diagnostic task indication parameter includes a task identifier and / or a diagnostic mode identifier.
[0078] Based on this, the above-mentioned process of determining the first diagnostic task that the target application needs to control the diagnostic module to execute based on the diagnostic task indication parameter can include: when the diagnostic task indication parameter is a task identifier, determining the diagnostic task that matches the task identifier from the multiple diagnostic tasks configured by the target application as the first diagnostic task; when the diagnostic task indication parameter is a diagnostic mode identifier, determining the target diagnostic mode corresponding to the diagnostic mode identifier from the target application, and taking the diagnostic task configured under the target diagnostic mode as the first diagnostic task.
[0079] In this way, the execution of a single diagnostic task or multiple diagnostic tasks in a diagnostic mode can be personalized to improve the diversity of diagnosis.
[0080] In some embodiments, the diagnosis-related information includes at least one of a display method of the diagnosis data and a storage method of the diagnosis data.
[0081] Based on this, the above-mentioned diagnostic control method also includes: when diagnostic data is received and the diagnostic-related information includes the storage method of the diagnostic data, the diagnostic data is stored in the terminal device or the cloud based on the storage method in the diagnostic control parameters; when diagnostic data is received and the diagnostic-related information includes the display method of the diagnostic data, the diagnostic data is analyzed based on the display method in the diagnostic control parameters to obtain the analysis results, and the analysis results are displayed.
[0082] The analysis results refer to the results determined based on the diagnostic data and need to be displayed in the target application.
[0083] The display method in the diagnostic control parameter includes, but is not limited to, a visual display method and a voice playback method. For example, when the display method in the diagnostic control parameter is a visual display method, the analysis results are displayed visually. For another example, when the display method in the diagnostic control parameter is a voice broadcast method, the analysis results are broadcasted in voice.
[0084] In this way, the diagnostic data can be further processed in the target application, and the diagnostic results can be displayed to the user based on the processing results and the corresponding display method, thereby increasing the ways for users to know the diagnostic results and improving the user experience.
[0085] In some embodiments, the above-mentioned display method includes a visual display method.
[0086] Based on this, the above-mentioned process of analyzing the diagnostic data and obtaining the analysis results may include: determining the corresponding visualization element type when the diagnostic data is visualized according to the vehicle module of the diagnostic data on the vehicle, and / or according to the vehicle application scenario corresponding to this diagnostic process, wherein the vehicle application scenario is determined based on the diagnostic control parameters, and the visualization element type includes at least one of the color type, chart type, and scoring type; determining the target analysis method according to the visualization element type corresponding to the diagnostic data; analyzing the diagnostic data according to the target analysis method to obtain the analysis results.
[0087] The vehicle module refers to the module where the vehicle's components are located. The specific content of the vehicle module can be adjusted according to actual circumstances and is not limited in the present embodiment. For example, the vehicle module can be the vehicle's engine module. For another example, the vehicle module can be the vehicle's brake system.
[0088] The vehicle application scenario refers to the vehicle application scenario associated with the near-field communication tag. The specific content of the vehicle application scenario can be adjusted according to actual conditions and is not limited in the embodiments of this application. For example, the vehicle application scenario is the vehicle application scenario before getting in the car every day. For another example, the vehicle application scenario is the vehicle application scenario before going on a long trip.
[0089] The target analysis method refers to the analysis method corresponding to the type of visualization element corresponding to the diagnostic data. The specific content of the analysis method can be adjusted according to actual conditions and is not limited in the embodiments of the present application.
[0090] For example, the analysis method can be to determine the color level of the diagnostic data. Specifically, by analyzing the abnormality or severity of the diagnostic data, the color to be displayed for the diagnostic data (i.e., the analysis result) is determined according to the abnormality or severity. For example, green is used to represent that the diagnostic data is normal data, yellow is used to represent that the diagnostic data is slightly abnormal data, and red is used to represent that the diagnostic data is severely abnormal data.
[0091] For another example, the analysis method can be to construct a chart based on the diagnostic data. Specifically, for each diagnostic data, call the chart generation component of the chart type corresponding to the diagnostic data; transfer the diagnostic data to the chart generation component, trigger the chart generation component to generate a diagnostic chart based on the diagnostic data; and use the diagnostic chart as the analysis result. Among them, chart types include but are not limited to line charts, radar charts, dashboard charts, and pie charts. Exemplarily, call the chart engine, that is, the icon generation component, transfer the diagnostic data to the chart generation component, trigger the chart generation component to map the diagnostic data to chart coordinates, and generate a diagnostic chart based on the chart coordinates.
[0092] For another example, the analysis method can be to determine the health status score of the vehicle based on the diagnostic data. Specifically, the diagnostic data under one or more dimensions are converted into score values of the corresponding dimensions, and the health status score of the vehicle is generated through weight modeling, so that the user can know the health status of the vehicle through the health status score. Among them, the dimensions can be determined according to the specific diagnostic tasks, and the embodiments of the present application are not limited. For example, the dimensions may include engine dimensions, and its score value is the engine status score. The dimensions may also include battery dimensions, and its score value is the battery health score. The dimensions may also include fault severity, and its score value is the fault severity score.
[0093] It should be noted that different vehicle modules and / or different vehicle application scenarios may require different element types for visualizing diagnostic data. Therefore, the corresponding visualization element type for diagnostic data can be determined based on the different vehicle modules and / or different vehicle application scenarios. This allows the corresponding analysis method to be invoked based on the visualization element type, analyze the diagnostic data, and obtain the analysis results using the target analysis method for visual display, thereby improving the user's convenience in obtaining diagnostic results.
[0094] In some embodiments, the above-mentioned diagnostic control method may further include: when a communication connection is established, obtaining a completion status flag corresponding to a historical diagnostic process of the vehicle; if the completion status flag indicates a diagnostic interruption, determining the second diagnostic task in which a diagnostic abnormality occurs in the diagnostic task corresponding to the historical diagnostic process and the timestamp of the second diagnostic task based on the breakpoint record information corresponding to the historical diagnostic process; when the timestamp meets the diagnostic recovery condition, generating a second diagnostic instruction based on the unfinished second diagnostic task in the diagnostic task corresponding to the historical diagnostic process; sending the second diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the second diagnostic instruction, and returns the obtained diagnostic data to the target application.
[0095] The completion status flag is used to identify whether the diagnostic task in the historical diagnostic process is successfully completed. If the completion status flag indicates unsuccessful completion, it indicates a diagnostic interruption, that is, the diagnostic task in a diagnostic process is not fully completed.
[0096] The breakpoint record information refers to the relevant information of the task node where an exception occurs during the diagnosis process, such as the diagnostic task ID corresponding to the task node, the timestamp of the diagnostic task, the type of the diagnostic task, etc.
[0097] The second diagnostic task refers to a diagnostic task that has a diagnostic anomaly in the diagnostic task corresponding to the historical diagnostic process, wherein the diagnostic anomaly includes a diagnostic interruption or abnormal exit.
[0098] The second diagnostic instruction refers to an instruction that can be recognized by the vehicle's diagnostic module and is used to execute the second diagnostic task.
[0099] For example, at each diagnostic task execution node, the diagnostic module can record the current diagnostic stage and data acquisition status, including: completed diagnostic modules (such as DTC reading, voltage check), diagnostic task identifier, and the timestamp of the diagnostic task, and whether the user manually interrupted / abnormally exited. After the target application is restarted or the device is reconnected: by checking whether there is an "unfinished task", if so, and the time does not exceed the set threshold (such as within 10 minutes), a prompt will pop up saying "The last diagnosis was not completed, do you want to continue?" After the user selects "Continue", the task execution will be automatically resumed; the user can also choose to "abandon and start again."
[0100] In order to facilitate understanding of the diagnostic control method provided in the embodiments of the present application, some specific embodiments are used to explain it below.
[0101] See also Figure 4 The specific process of the diagnostic control method of the present application may include: the user brings the mobile phone (i.e., terminal device) close to the NFC tag (i.e., near-field communication tag), and the mobile phone system reads the NFC tag content (i.e., diagnostic control parameters). Determine whether the diagnostic app (i.e., target application) is installed on the mobile phone. If not, jump to the application market to download the target application. If so, wake up and start the diagnostic app. Parse the NFC tag content (i.e., parse the diagnostic control parameters), such as the type of device to be connected (i.e., the vehicle's diagnostic module, OBD device), diagnostic mode, etc. Automatically identify the OBD device type and automatically connect the OBD adapter. In the event of a connection failure, prompt that the connection failed and suggest that the user check the device. In the event of a successful connection, initialize the communication protocol and send predefined diagnostic commands to the OBD device to be connected through the terminal device, such as reading fault codes, reading key data, etc. Receive diagnostic data sent from the OBD device to generate diagnostic results, which are displayed graphically or announced by voice.
[0102] It should be noted that in addition to the NFC mechanism, the "Bluetooth / Wi-Fi wake-up mechanism" can also be used to achieve automatic App startup and diagnostic task execution. For example, the diagnostic control method is configured with trigger mechanisms such as NFC quick trigger mechanism, OBD device broadcast wake-up mechanism, and App background monitoring mechanism. When any of these mechanisms is triggered, the terminal device system will automatically connect to the OBD device and enter the diagnostic task process. A variety of triggering methods are used to ensure that the system has high compatibility, high degree of automation, and strong real-time performance, and is suitable for a variety of vehicle models and terminal devices. The priorities of the above-mentioned mechanisms, from high to low, can be NFC quick trigger mechanism, OBD device broadcast wake-up mechanism, and App background monitoring mechanism. Multiple trigger mechanisms cannot be used at the same time. However, the workflow after triggering the start of the application is roughly the same.
[0103] See also Figure 5 , Figure 5It can be regarded as a structural diagram of the diagnostic control system applied by the diagnostic control method of the embodiment of the present application. Specifically, the system is mainly composed of three levels: Android diagnostic App module, OBD adapter module and vehicle control system (Electronic Control Unit, ECU). Among them, the Android diagnostic App module is the core control module running on the Android mobile phone on the user side, which is responsible for the whole process control from NFC tag triggering to OBD connection, data parsing, and diagnostic display. It can include NFC identification module, Bluetooth / Wi-Fi connection module, OBD communication protocol parsing module, diagnostic instruction execution module and visual display module. The NFC identification module is used to read the NFC tag pre-pasted in the car or other locations, and identify the diagnostic control parameters (i.e. URL) stored therein. The Bluetooth / Wi-Fi connection module is used to automatically select the connection mode according to the NFC tag or App configuration, and can support automatic disconnection and reconnection, connection status monitoring, and error feedback mechanism. OBD communication protocol parsing module (used to communicate with the OBD adapter at a low level, execute OBD-II standard commands, and parse vehicle data frames to support dynamic identification of protocol types, command caching, and batch query optimization. The diagnostic instruction execution module (PID / DTC) is used to perform standard diagnostic tasks, such as reading fault codes (DTCs), clearing fault codes, and querying PIDs (real-time data). Its built-in command set can automatically combine commonly used query items, support custom instruction templates, and support multiple diagnostic mode switching. The visual display module is used to display the diagnostic results to the user in a visual manner, including data charts, health scores, and recommended processing solutions. For example, real-time data curves and trend charts are drawn through a graphics engine, and PDF report export, fault record storage, voice broadcast, and diagnostic reminders are supported. The OBD adapter module is a device that connects the vehicle ECU system and the Android The bridge between apps is typically a Bluetooth or Wi-Fi OBD-II hardware device. The vehicle's ECU system (underlying layer) communicates with external devices via a standard OBD-II interface, supporting standard OBD protocols (such as CAN and ISO9141), providing raw diagnostic information such as fault codes (DTCs) and sensor data (PIDs), and responding to standard diagnostic requests such as read, clear, and monitor.
[0104] It should be noted that Figure 5 The adapter shown has some improvements. Figure 6The internal structure of the OBD adapter has been optimized, with the addition of a connection status cache and a fast pairing engine. A fast handshake mechanism and cache function can be introduced into the main control chip (such as STM32 / ESP32); the device ID of the last pairing can be stored to support fast automatic reconnection. This avoids the delay caused by re-searching for the device each time. That is, after waking up the app through the NFC tag, the app can directly connect to the known device, thereby improving the connection success rate and speed.
[0105] To facilitate better implementation of the diagnostic control method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above diagnostic control method. The meanings of the terms herein are the same as those in the above diagnostic control method, and the specific implementation details can be referred to the description in the method embodiment.
[0106] For example, Figure 7 As shown, the diagnostic control device is applied to a terminal device, and the diagnostic control device may include a parameter acquisition unit 201, a startup unit 202, a connection unit 203, a parameter extraction unit 204, a task determination unit 205, and a task execution unit 206, as follows:
[0107] The parameter acquisition unit 201 is used to acquire the diagnostic control parameters configured in the near field communication tag from the near field communication tag through the terminal device;
[0108] The starting unit 202 is used to determine the target application that the terminal device needs to start based on the diagnostic control parameter and control the terminal device to start the target application;
[0109] a connection unit 203 for establishing a communication connection between the target application and the vehicle's diagnostic module based on the diagnostic control parameters;
[0110] A parameter extraction unit 204 is used to extract a diagnostic task indication parameter from the diagnostic control parameter;
[0111] A task determining unit 205 is configured to determine, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to perform;
[0112] The task execution unit 206 is used to generate a first diagnostic instruction corresponding to the first diagnostic task, send the first diagnostic instruction to the diagnostic module through a communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application.
[0113] In some embodiments, before the parameter acquisition unit 201 acquires the diagnostic control parameters configured in the near field communication tag from the near field communication tag through the terminal device, the diagnostic control apparatus further includes:
[0114] A configuration information acquisition unit, configured to acquire diagnostic solution configuration information for the vehicle through a target application of the terminal device;
[0115] a parameter generating unit, configured to generate diagnostic control parameters according to the diagnostic scheme configuration information;
[0116] a writing unit, configured to establish a connection with the near field communication tag through the target application and write the diagnostic control parameters into the near field communication tag;
[0117] The diagnostic solution configuration information includes multiple types of diagnostic task indication parameters, diagnostic module identifiers, communication connection parameters, and diagnostic association information.
[0118] In some embodiments, the connection unit 203 establishes a communication connection between the target application and the vehicle's diagnostic module based on the diagnostic control parameter, including:
[0119] extracting the diagnostic module identification and the communication connection parameters from the diagnostic control parameters;
[0120] Based on the diagnostic module identifier, determining the diagnostic module of the vehicle that the target application needs to control;
[0121] A communication connection is established between the target application and a diagnostic module of the vehicle based on the communication connection parameters.
[0122] In some embodiments, the diagnostic task indication parameter includes a task identifier and / or a diagnostic mode identifier.
[0123] Based on this, the task determining unit 205 determines the first diagnostic task that the target application needs to control the diagnostic module to perform based on the diagnostic task indication parameter, including:
[0124] In a case where the diagnostic task indication parameter is a task identifier, determining a diagnostic task that matches the task identifier from a plurality of diagnostic tasks configured by the target application as the first diagnostic task;
[0125] In the case where the diagnostic task indication parameter is a diagnostic mode identifier, a target diagnostic mode corresponding to the diagnostic mode identifier is determined from the target application, and the diagnostic task configured in the target diagnostic mode is used as the first diagnostic task.
[0126] In some embodiments, the diagnosis-related information includes at least one of a display method of the diagnosis data and a storage method of the diagnosis data.
[0127] Based on this, the above-mentioned diagnosis and control device also includes:
[0128] When the diagnostic data is received and the diagnostic-related information includes a storage method of the diagnostic data, storing the diagnostic data in the terminal device or the cloud based on the storage method in the diagnostic control parameter;
[0129] When the diagnostic data is received and the diagnosis-related information includes a display mode of the diagnostic data, the diagnostic data is analyzed based on the display mode in the diagnostic control parameter to obtain an analysis result, and the analysis result is displayed.
[0130] In some embodiments, the above-mentioned display method includes a visual display method.
[0131] Based on this, the above analysis of the diagnostic data yields the following analysis results:
[0132] Determining, based on a vehicle module on the vehicle where the diagnostic data resides, and / or based on a vehicle application scenario corresponding to the current diagnostic process, a corresponding visualization element type for visually displaying the diagnostic data, wherein the vehicle application scenario is determined based on a diagnostic control parameter, and the visualization element type includes at least one of a color type, a chart type, and a scoring type;
[0133] Determine the target analysis method based on the type of visualization element corresponding to the diagnostic data;
[0134] The diagnostic data is analyzed according to the target analysis method to obtain the analysis results.
[0135] In some embodiments, when the visualization element type is a chart type, the analysis of the diagnostic data according to the target analysis method to obtain the analysis results includes:
[0136] For each diagnostic data, call a chart generation component of a chart type corresponding to the diagnostic data;
[0137] transmitting the diagnostic data to the chart generation component, triggering the chart generation component to generate a diagnostic chart based on the diagnostic data;
[0138] The diagnostic charts are presented as analysis results.
[0139] In some embodiments, the diagnostic control device further comprises:
[0140] When the communication connection is established, obtaining a completion status flag corresponding to the historical diagnostic process of the vehicle;
[0141] If the completion status flag indicates a diagnosis interruption, determining, based on the breakpoint record information corresponding to the historical diagnosis process, a second diagnosis task in which a diagnosis abnormality occurs in the diagnosis task corresponding to the historical diagnosis process and a timestamp of the second diagnosis task;
[0142] When the timestamp satisfies the diagnosis recovery condition, generating a second diagnosis instruction based on an unfinished second diagnosis task in the diagnosis task corresponding to the historical diagnosis process;
[0143] The second diagnostic instruction is sent to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the second diagnostic instruction and returns the obtained diagnostic data to the target application.
[0144] It can be seen that the diagnostic control device provided in the embodiment of the present application obtains the diagnostic control parameters configured in the near-field communication tag from the terminal device through the parameter acquisition unit 201; the startup unit 202 determines the target application that the terminal device needs to start and controls the terminal device to start the target application based on the diagnostic control parameters; the connection unit 203 establishes a communication connection between the target application and the vehicle's diagnostic module based on the diagnostic control parameters; the parameter extraction unit 204 extracts the diagnostic task indication parameter from the diagnostic control parameter; the task determination unit 205 determines the first diagnostic task that the target application needs to control the diagnostic module to perform based on the diagnostic task indication parameter; the task execution unit 206 generates a first diagnostic instruction corresponding to the first diagnostic task, and sends the first diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction and returns the obtained diagnostic data to the target application. Based on this, by obtaining the diagnostic control parameters from the near-field communication tag, it is possible to start the application on the terminal device according to the diagnostic control parameters, and perform diagnostic control on the vehicle based on the connection between the application and the vehicle's diagnostic module, without manually starting the application and the diagnostic process, achieving a senseless connection, reducing manual operations and improving diagnostic efficiency.
[0145] During specific implementation, the above modules can be implemented as independent entities, or they can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments and will not be repeated here.
[0146] The present application also provides an electronic device, such as Figure 8 , which shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0147] The electronic device may include one or more processing core processors 301, one or more storage media memories 302, a power supply 303, an input unit 304 and other components. Those skilled in the art will understand that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0148] The processor 301 is the control center of the electronic device. It connects all parts of the electronic device using various interfaces and circuits. It executes the various functions of the electronic device and processes data by running or executing computer programs and / or modules stored in the memory 302 and accessing data stored in the memory 302. Optionally, the processor 301 may include one or more processing cores. Preferably, the processor 301 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 301.
[0149] The memory 302 can be used to store computer programs and modules. The processor 301 executes various functional applications and diagnostic schemes by running the computer programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as an audio and light prompt function, a diagnostic scheme configuration function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory electronic device to provide the processor 301 with access to the memory 302.
[0150] The electronic device also includes a power supply 303 for supplying power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 303 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0151] The electronic device may further include an input unit 304, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0152] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device will load the executable files corresponding to one or more computer program processes into the memory 302 according to the following instructions, and the processor 301 will run the computer programs stored in the memory 302 to implement various functions, such as:
[0153] Obtaining diagnostic control parameters configured in the near field communication tag from the near field communication tag through the terminal device;
[0154] Based on the diagnostic control parameters, determining the target application that the terminal device needs to start and controlling the terminal device to start the target application;
[0155] establishing a communication connection between the target application and a diagnostic module of the vehicle based on the diagnostic control parameters;
[0156] extracting diagnostic task indication parameters from diagnostic control parameters;
[0157] Determining, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to perform;
[0158] A first diagnostic instruction corresponding to the first diagnostic task is generated, and the first diagnostic instruction is sent to the diagnostic module through a communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction and returns the obtained diagnostic data to the target application.
[0159] It can be seen from this that the electronic device provided in the embodiment of the present application obtains the diagnostic control parameters configured in the near-field communication tag from the near-field communication tag through the terminal device; based on the diagnostic control parameters, determines the target application that the terminal device needs to start and controls the terminal device to start the target application; based on the diagnostic control parameters, establishes a communication connection between the target application and the diagnostic module of the vehicle; extracts the diagnostic task indication parameters from the diagnostic control parameters; based on the diagnostic task indication parameters, determines the first diagnostic task that the target application needs to control the diagnostic module to perform; generates a first diagnostic instruction corresponding to the first diagnostic task, and sends the first diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application. Based on this, by obtaining the diagnostic control parameters from the near-field communication tag, so as to start the application on the terminal device according to the diagnostic control parameters, and diagnose and control the vehicle based on the connection between the application and the diagnostic module of the vehicle, there is no need to manually start the application and the diagnostic process, thus achieving a senseless connection, reducing manual operations while improving diagnostic efficiency.
[0160] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the diagnosis control method above, which will not be repeated here.
[0161] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a storage medium and loaded and executed by a processor.
[0162] To this end, an embodiment of the present application provides a storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the diagnostic control methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0163] Obtaining diagnostic control parameters configured in the near field communication tag from the near field communication tag through the terminal device;
[0164] Based on the diagnostic control parameters, determining the target application that the terminal device needs to start and controlling the terminal device to start the target application;
[0165] establishing a communication connection between the target application and a diagnostic module of the vehicle based on the diagnostic control parameters;
[0166] extracting diagnostic task indication parameters from diagnostic control parameters;
[0167] Determining, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to perform;
[0168] A first diagnostic instruction corresponding to the first diagnostic task is generated, and the first diagnostic instruction is sent to the diagnostic module through a communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction and returns the obtained diagnostic data to the target application.
[0169] It can be seen that the storage medium provided in the embodiment of the present application obtains the diagnostic control parameters configured in the near-field communication tag from the near-field communication tag through the terminal device; based on the diagnostic control parameters, determines the target application that the terminal device needs to start and controls the terminal device to start the target application; based on the diagnostic control parameters, establishes a communication connection between the target application and the diagnostic module of the vehicle; extracts the diagnostic task indication parameters from the diagnostic control parameters; based on the diagnostic task indication parameters, determines the first diagnostic task that the target application needs to control the diagnostic module to perform; generates a first diagnostic instruction corresponding to the first diagnostic task, and sends the first diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application. Based on this, by obtaining the diagnostic control parameters from the near-field communication tag, so as to start the application on the terminal device according to the diagnostic control parameters, and diagnose and control the vehicle based on the connection between the application and the diagnostic module of the vehicle, there is no need to manually start the application and the diagnostic process, thus achieving a senseless connection, reducing manual operations while improving diagnostic efficiency.
[0170] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments and will not be described in detail here.
[0171] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0172] Since the computer program stored in the storage medium can execute the steps in any diagnostic control method provided in the embodiments of the present application, the beneficial effects that can be achieved by any diagnostic control method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0173] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a storage medium. A processor of a computer device reads the computer instructions from the storage medium and executes the computer instructions, causing the computer device to perform the above-mentioned diagnostic control method.
[0174] The above is a detailed introduction to a diagnostic control method, device, electronic device, storage medium and computer program product vehicle provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A diagnostic control method, characterized in that: Applied to a terminal device, the method includes: Obtaining, from the near field communication tag, diagnostic control parameters configured in the near field communication tag via the terminal device; Based on the diagnostic control parameter, determining a target application that the terminal device needs to start and controlling the terminal device to start the target application; establishing a communication connection between the target application and a diagnostic module of a vehicle based on the diagnostic control parameter; extracting a diagnostic task indication parameter from the diagnostic control parameter; determining, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to perform; A first diagnostic instruction corresponding to the first diagnostic task is generated, and the first diagnostic instruction is sent to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction and returns the obtained diagnostic data to the target application.
2. The diagnostic control method according to claim 1, characterized in that: Before obtaining the diagnostic control parameters configured in the near field communication tag from the near field communication tag through the terminal device, the method further includes: Obtaining diagnostic solution configuration information for the vehicle through the target application of the terminal device; generating diagnostic control parameters according to the diagnostic scheme configuration information; establishing a connection with a near field communication tag through the target application, and writing the diagnostic control parameter into the near field communication tag; The diagnostic solution configuration information includes multiple types of diagnostic task indication parameters, diagnostic module identification, communication connection parameters and diagnostic association information.
3. The diagnostic control method according to claim 2, characterized in that: The establishing a communication connection between the target application and a diagnostic module of the vehicle based on the diagnostic control parameter includes: extracting the diagnostic module identifier and the communication connection parameter from the diagnostic control parameter; Determining, based on the diagnostic module identifier, a diagnostic module of the vehicle that the target application needs to control; A communication connection is established between the target application and a diagnostic module of the vehicle based on the communication connection parameters.
4. The diagnostic control method according to claim 2, characterized in that: The diagnostic task indication parameter includes a task identifier and / or a diagnostic mode identifier; and determining, based on the diagnostic task indication parameter, the first diagnostic task that the target application needs to control the diagnostic module to perform includes: In a case where the diagnostic task indication parameter is the task identifier, determining a diagnostic task matching the task identifier from a plurality of diagnostic tasks configured by the target application as the first diagnostic task; In a case where the diagnostic task indication parameter is the diagnostic mode identifier, a target diagnostic mode corresponding to the diagnostic mode identifier is determined from the target application, and the diagnostic task configured in the target diagnostic mode is used as the first diagnostic task.
5. The diagnostic control method according to claim 2, characterized in that: The diagnosis-related information includes at least one of a display mode of the diagnosis data and a storage mode of the diagnosis data, and the method further includes: When the diagnostic data is received and the diagnostic association information includes a storage method of the diagnostic data, storing the diagnostic data in the terminal device or the cloud based on the storage method in the diagnostic control parameter; When the diagnostic data is received and the diagnostic related information includes a display mode of the diagnostic data, the diagnostic data is analyzed based on the display mode in the diagnostic control parameter to obtain an analysis result, and the analysis result is displayed.
6. The diagnostic control method according to claim 5, characterized in that: The display method includes a visual display method, and the analyzing the diagnostic data to obtain the analysis results includes: determining, based on a vehicle module on the vehicle for the diagnostic data and / or based on a vehicle application scenario corresponding to the current diagnostic process, a corresponding visualization element type for visually displaying the diagnostic data, wherein the vehicle application scenario is determined based on the diagnostic control parameter, and the visualization element type includes at least one of a color type, a chart type, and a scoring type; Determining a target analysis method according to the type of visualization element corresponding to the diagnostic data; The diagnostic data is analyzed according to the target analysis method to obtain an analysis result.
7. The diagnostic control method according to claim 6, characterized in that: When the visualization element type is the chart type, analyzing the diagnostic data according to the target analysis method to obtain an analysis result includes: For each piece of diagnostic data, calling a chart generation component of a chart type corresponding to the diagnostic data; transmitting the diagnostic data to the chart generating component, triggering the chart generating component to generate a diagnostic chart based on the diagnostic data; The diagnostic graph is used as the analysis result.
8. The diagnostic control method according to claim 1, characterized in that: The method further comprises: When the communication connection is established, obtaining a completion status flag corresponding to a historical diagnostic process of the vehicle; If the completion status flag indicates a diagnostic interruption, determining, based on the breakpoint record information corresponding to the historical diagnostic process, a second diagnostic task in which a diagnostic abnormality occurs in the diagnostic task corresponding to the historical diagnostic process and a timestamp of the second diagnostic task; generating a second diagnostic instruction based on the unfinished second diagnostic task among the diagnostic tasks corresponding to the historical diagnostic process when the timestamp satisfies the diagnostic recovery condition; The second diagnostic instruction is sent to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the second diagnostic instruction and returns the obtained diagnostic data to the target application.
9. A diagnostic control device, characterized in that: Applied to a terminal device, the device includes: a parameter acquisition unit, configured to acquire, from the near field communication tag via the terminal device, the diagnostic control parameters configured in the near field communication tag; a starting unit, configured to determine, based on the diagnostic control parameter, a target application that the terminal device needs to start, and control the terminal device to start the target application; a connection unit, configured to establish a communication connection between the target application and a diagnostic module of the vehicle based on the diagnostic control parameter; a parameter extraction unit, configured to extract a diagnostic task indication parameter from the diagnostic control parameter; a task determining unit, configured to determine, based on the diagnostic task indication parameter, a first diagnostic task that the target application needs to control the diagnostic module to perform; A task execution unit is used to generate a first diagnostic instruction corresponding to the first diagnostic task, send the first diagnostic instruction to the diagnostic module through the communication connection, so that the diagnostic module performs a diagnostic operation on the vehicle based on the first diagnostic instruction, and returns the obtained diagnostic data to the target application.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the diagnostic control method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that The method comprises a computer program, and when the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the diagnostic control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Automobile fault remote diagnosis system based on cellphone APP
CN105137964A
Vehicle remote diagnosis method, device, storage medium and system
CN113282072A
Diagnosis of machine or apparatus, and apparatus therefor
CN1136358A
Equipment detection method and device
CN114554466A