Cloud-based vehicle diagnosis method and system, electronic equipment and storage medium
Through the diagnostic testing tool that connects the central intelligent gateway to the cloud in the vehicle, routing restrictions and recording vehicle diagnostic data are lifted, the problem of local diagnosis cannot be effectively managed, and the control and data protection of vehicle function changes are realized, and manufacturing is guaranteed. business and user interests.
Patent Information
- Application Number
- CN202411159235.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-22
AI Technical Summary
In the prior art, local vehicle diagnosis cannot effectively record and monitor changes in vehicle functions, resulting in unauthorized changes being difficult to control, and manufacturers cannot track and manage, and are easily cracked or stolen.
By setting up a diagnostic test tool for connecting the central intelligent gateway to the cloud in the vehicle, using the unlock request information to generate password information, unblock the routing restrictions, and record and manage vehicle diagnostic data, ensuring that vehicle function changes are included in the manufacturer's control scope.
It realizes effective recording and management of local diagnosis, prevents unauthorized vehicle functions, protects the rights and interests of manufacturers and users, and improves the protection and management effect of vehicle data.
Smart Images

Figure CN119011267A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle diagnosis, and in particular to a cloud-based vehicle diagnosis method, system, electronic device and storage medium. Background Art
[0002] With the development of intelligent connected vehicles, vehicle function updates are more frequent than traditional vehicles. Currently, vehicle function updates are mainly based on diagnostic methods, including function configuration word changes (including coding), software refreshes, etc. The demand for data protection and change behavior control for function configuration and software upgrades is also becoming increasingly urgent.
[0003] There are usually two ways to perform software refresh or function configuration changes on the vehicle's electronic control unit: local and remote. The remote method (such as OTA or remote diagnosis) is initiated through the background and can be managed uniformly by the vehicle manufacturer. The vehicle-to-cloud communication method is encrypted so that the changes can be effectively controlled and managed. However, local diagnosis usually has no restrictions, or only uses simple offline authentication methods (such as diagnostic service 27 access control, offline certificates, etc.). Changes to vehicle data cannot be effectively controlled, and the vehicle manufacturer cannot be informed of the changes after the changes, which will result in vehicle function changes (such as software refresh, function configuration changes) not being effectively recorded and tracked; if the offline authentication method is used, it is easy to be cracked, or stolen or abused by a third party (for example, key operator leakage, offline certificate illegal copying, etc.). Summary of the invention
[0004] In response to the above technical problems, the present invention provides a cloud-based vehicle diagnostic method, system, electronic device and storage medium to effectively record local diagnosis and prevent unauthorized personnel from changing vehicle functions.
[0005] A first aspect of the present invention provides a cloud-based vehicle diagnostic system, comprising: a cloud, a diagnostic test tool connected to the cloud via a network, and a central intelligent gateway disposed in a vehicle; The diagnostic test tool is used to request unlock request information from the central intelligent gateway, and based on the unlock request information, request password information for removing routing restrictions from the cloud, and the password information is used to be sent to the central intelligent gateway; The cloud is used to generate password information according to the unlock request information, receive vehicle diagnostic data uploaded by the central intelligent gateway, and manage the vehicle diagnostic data; The central intelligent gateway is used to provide identity authentication for the diagnostic test tool and record the vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis.
[0006] In an optional embodiment, the diagnostic test tool includes a diagnostic instruction module, which is used to request a seed key or a seed key and a vehicle VIN code from the central intelligent gateway in the form of a diagnostic instruction, and send the password information to the central intelligent gateway in the form of a diagnostic instruction.
[0007] In an optional embodiment, the central intelligent gateway includes an identity authentication module and a log recording module. The identity authentication module is used to provide a random seed key or a seed key and a vehicle VIN code to the diagnostic test tool, and verify the password information, and activate the log recording module after the password information is verified; the log recording module is used to monitor DoIP data or DoCAN data.
[0008] In an optional implementation, the central intelligent gateway is also used to restore the routing state to unauthenticated and upload the vehicle diagnostic data after the password information authentication times out.
[0009] In an optional embodiment, the cloud includes a data management module, and the data management module is used to bind the vehicle diagnostic data with the vehicle VIN code and the diagnostic test tool.
[0010] In an optional implementation, the cloud further includes an account management module, the account management module is used to manage a login account of the diagnostic test tool, the login account is at least associated with a vehicle VIN code; The diagnostic test tool also includes a background connection module, and the background connection module is used to log in and connect to the account management module.
[0011] In an optional implementation, the vehicle diagnostic data includes a seed key, password information, a vehicle VIN code, and diagnostic routing information.
[0012] A second aspect of the present invention provides a cloud-based vehicle diagnostic method, which is applied to a central intelligent gateway, including: responding to a request from a diagnostic test tool to feedback unlock request information, and responding to a password information sent by the diagnostic test tool to lift routing restrictions, and recording vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis; after the vehicle diagnosis is completed or the vehicle diagnosis times out, uploading the vehicle diagnostic data to the cloud.
[0013] In an optional embodiment, the recording of vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis includes: monitoring DoIP data or DoCAN data, and recording the seed key, password information, vehicle VIN code and diagnostic routing information generated by the diagnostic test tool when performing vehicle diagnosis.
[0014] According to a third aspect of the present invention, there is provided an electronic device, comprising: At least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the cloud-based vehicle diagnostic method as described in the second aspect of the embodiment of the present invention.
[0015] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a computer, the cloud-based vehicle diagnostic method as described in the second aspect of the embodiment of the present invention is executed.
[0016] The present invention utilizes a central intelligent gateway to unlock the data diagnostic function and record vehicle diagnostic data, bringing changes to vehicle functions caused by local diagnosis into the control scope of the vehicle manufacturer, preventing unauthorized personnel from changing vehicle functions and protecting the rights and interests of vehicle manufacturers and users. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 Schematic diagram of a module of a cloud-based vehicle diagnostic system in an embodiment of the present invention.
[0019] Figure 2 Schematic diagram of another module of a cloud-based vehicle diagnostic system in an embodiment of the present invention.
[0020] Figure 3 Schematic diagram of the interface for querying vehicle diagnostic data on the cloud in an embodiment of the present invention.
[0021] Figure 4 Schematic diagram of a flow chart of a cloud-based vehicle diagnostic method in an embodiment of the present invention.
[0022] Figure 5 FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0024] It should be understood that the terms "first", "second", "third", etc. in the claims, specifications and drawings of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0025] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the claims, the singular forms of "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in the specification of the present invention and the claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0026] In the prior art, cloud-based OTA software upgrades and remote diagnosis are initiated by the vehicle manufacturer's backend, and the functional changes of the vehicle can be effectively recorded; however, the functional changes of the vehicle by the diagnosis of the local diagnostic test tool cannot be effectively recorded and monitored, so the changes to the vehicle function through the local diagnostic method cannot be known by the cloud backend. The present invention incorporates the functional changes of the vehicle by the local diagnostic test tool into the cloud backend for unified management, thereby completing the monitoring and management of local diagnosis.
[0027] See also Figure 1 The present invention provides a cloud-based vehicle diagnostic system, including: a cloud, a diagnostic test tool connected to the cloud via a network, and a central intelligent gateway arranged in a vehicle.
[0028] The central intelligent gateway is the core component of the electronic and electrical architecture of intelligent vehicles. As the data exchange center of the vehicle network, it realizes the routing and communication of vehicle-mounted heterogeneous network data such as CAN / FD, LIN, ETHERNET, 4G / 5G between different networks; as the only channel for the vehicle to communicate with the external network, it provides comprehensive security solutions and advanced security protection to ensure the communication security inside and outside the vehicle, and supports network functions such as remote cloud flashing, online diagnosis, and online calibration. In some embodiments, the central intelligent gateway includes TBOX (i.e., the vehicle-mounted communication module), and the central intelligent gateway is connected to the cloud through the TBOX.
[0029] The diagnostic test tool is used to request unlock request information from the central intelligent gateway, and based on the unlock request information, request password information for removing routing restrictions from the cloud, and the password information is sent to the central intelligent gateway. The cloud is used to generate password information based on the unlock request information, receive vehicle diagnostic data uploaded by the central intelligent gateway, and manage the vehicle diagnostic data. The central intelligent gateway is used to provide identity authentication for the diagnostic test tool and record the vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis.
[0030] After the vehicle is manufactured and shipped, the diagnostic route protection function will be activated to restrict the diagnostic route of the ECU in the vehicle through the OBD (on-board self-diagnosis system) interface. When performing vehicle diagnostic safety certification, the diagnostic test tool first connects to the central intelligent gateway and requests the unlock request information from the central intelligent gateway through the diagnostic command. The central intelligent gateway responds to the diagnostic command and responds the unlock request information to the diagnostic test tool.
[0031] The diagnostic test tool is connected to the authentication backend in the cloud, the unlock request information is input into the authentication backend in the cloud, the authentication backend in the cloud generates password information for unlocking according to the unlock request information, and feeds back the password information to the diagnostic test tool.
[0032] It should be understood that in an embodiment of the present invention, the central intelligent gateway and the cloud integrate the same authentication algorithm, the central intelligent gateway is responsible for providing and verifying the random seed key, and the cloud generates the authentication password information through the seed key.
[0033] The present invention places the authentication algorithm in the cloud and on the vehicle side to achieve end-to-end protection, which can prevent the encryption method from being leaked by offline algorithms or devices. In addition, the dynamic certificate and key of the authentication algorithm are set to be updated in real time, which enhances the safety protection of the vehicle.
[0034] Furthermore, the diagnostic test tool sends the password information to the central intelligent gateway, which verifies the legitimacy of the authentication password information. If it is not legal, the diagnostic routing prohibition state will continue. If the unlock password information is legal, the diagnostic routing function (including DoIP diagnosis and DoCAN diagnosis) will be activated, and the vehicle diagnostic data will start to be recorded.
[0035] In one embodiment of the present invention, the vehicle diagnostic data includes a seed key, password information, a vehicle VIN code and diagnostic routing information. The diagnostic routing information includes CAN diagnostic routing information, such as message timestamp, CAN ID, diagnostic instructions and other information; the diagnostic routing information also includes DoIP diagnostic routing information, such as MAC address, IP address, port number, payload type, logical address, diagnostic instructions and other information.
[0036] Afterwards, the central intelligent gateway uploads the recorded vehicle diagnostic data to the cloud in the form of log file data. The cloud can perform data inspection or monitoring based on each local vehicle diagnostic behavior, achieving the same control effect as remote diagnosis or OTA, improving vehicle manufacturers' data protection for terminal vehicles and achieving full coverage of vehicle data management.
[0037] For further information, see Figure 2 As shown, the diagnostic test tool includes a diagnostic instruction module, which is used to request a seed key or a seed key and a vehicle VIN code from the central intelligent gateway in the form of a diagnostic instruction, and send the password information to the central intelligent gateway in the form of a diagnostic instruction.
[0038] In one embodiment, the diagnostic instruction module requests the seed key and the vehicle VIN code from the central intelligent gateway in the form of a diagnostic instruction.
[0039] In another embodiment, the diagnostic instruction module requests the seed key from the central intelligent gateway in the form of a diagnostic instruction. The vehicle VIN code can be obtained through the login account of the diagnostic test tool, and the vehicle VIN code is bound to the login account. Further, the cloud includes a data management module, and the data management module binds the vehicle diagnostic data to the vehicle VIN code and the diagnostic test tool. The diagnostic test tool also includes a background connection module, and the background connection module is used to log in and connect to the account management module.
[0040] Furthermore, the cloud also includes an account management module, which is used to manage the login account of the diagnostic test tool, and the login account is at least associated with the vehicle VIN code. After the diagnostic test tool is directly connected to the cloud through the background connection module or directly logged into the cloud, the cloud can obtain the vehicle VIN code and the seed key.
[0041] The cloud also includes an authentication calculation module, which uses an authentication algorithm to calculate password information based on a seed key and a vehicle VIN code.
[0042] In some other embodiments, the operator may also log in to the backend website on the cloud through the diagnostic test tool and manually input the seed key and the vehicle VIN code to generate the authentication password information.
[0043] Furthermore, the central intelligent gateway includes an identity authentication module and a routing log module. The identity authentication module provides a random seed key or a seed key and a vehicle VIN code to the diagnostic test tool, and after verifying the password information, activates the log recording module after the password information is verified. The log recording module is used to monitor DoIP data or DoCAN data.
[0044] During the unlocking route, the diagnostic test tool keeps the diagnostic authentication in the unlocked state through periodic instructions (such as 3E 80 instructions). During the diagnostic test, the log recording module of the central intelligent gateway will record the diagnostic instructions sent to the in-vehicle node through the central intelligent gateway and the diagnostic instructions to the central intelligent gateway itself, and generate a diagnostic log file. The diagnostic log file contains the unlocking authentication information and finally generates vehicle diagnostic data.
[0045] After the password information authentication times out, the identity authentication module restores the routing state to unauthenticated, the diagnostic routing function is disabled, and the log recording function stops. The log recording module uploads the vehicle diagnostic data. If the vehicle is powered off or has no network, the upload task can be uploaded next time when conditions are met, or the background can actively initiate a retrieval task.
[0046] The password information authentication timeout can be defined by the vehicle manufacturer according to different diagnostic conditions. For example, DoCAN diagnosis can be monitored by the timeout of the "TesterPresent" instruction "3E 80", and DoIP can be monitored by the timeout of the TCP connection interruption.
[0047] Since the uploaded vehicle diagnostic data includes the seed key, password information, and vehicle VIN code, the cloud can bind and store the vehicle diagnostic data with the diagnostic test tool and the diagnostic events of the central intelligent gateway for data inspection or monitoring. Figure 3 The cloud shown can support filtering sensitive information according to ECU diagnostic addresses or diagnostic instructions (such as flash commands, write instructions), realize functions such as hierarchical monitoring, and download log record compressed packages through query.
[0048] See also Figure 4,The present invention also provides a cloud-based vehicle diagnostic method, applied to a central intelligent gateway, comprising the following steps.
[0049] Step 410: Feedback unlock request information in response to the request of the diagnostic test tool, release routing restrictions in response to the password information sent by the diagnostic test tool, and record vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis.
[0050] In one embodiment, the diagnostic test tool sends a diagnostic instruction to the central intelligent gateway to request the seed key and the vehicle VIN code. The diagnostic test tool requests password information from the cloud based on the seed key and the vehicle VIN code. The diagnostic test tool sends the password information to the central intelligent gateway, and the central intelligent gateway removes the routing restrictions on the diagnostic test tool.
[0051] During the unlocking of the route, the diagnostic test tool keeps the diagnostic authentication in the unlocked state through periodic instructions (such as 3E 80 instructions). The central intelligent gateway monitors DoIP data or DoCAN data, and the central intelligent gateway will record the diagnostic instructions sent to the in-vehicle node and the diagnostic instructions to the central intelligent gateway itself, and generate a diagnostic log file to record the seed key, password information, vehicle VIN code and diagnostic route information generated by the diagnostic test tool when performing vehicle diagnosis.
[0052] Step 420: After the vehicle diagnosis is completed or the vehicle diagnosis times out, the vehicle diagnosis data is uploaded to the cloud.
[0053] If the vehicle is powered off or has no network connection, the upload task can be uploaded the next time the conditions are met, or the background can actively initiate the task retrieval.
[0054] The password information authentication timeout can be defined by the vehicle manufacturer according to different diagnostic conditions. For example, DoCAN diagnosis can be monitored by the timeout of the "TesterPresent" instruction "3E 80", and DoIP can be monitored by the timeout of the TCP connection interruption.
[0055] The present invention can perform data management and control on local diagnosis, improve the data protection of terminal vehicles by vehicle manufacturers, and achieve full coverage of vehicle data management; reduce vehicle losses or user maintenance rights and interests caused by illegal vehicle modification or repairs, and protect the interests of vehicle manufacturers and users.
[0056] like Figure 5 As shown, the present invention also provides an electronic device, including: At least one processor; and at least one memory in communication with the processor, wherein: the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the above-mentioned cloud-based vehicle diagnostic method.
[0057] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the cloud-based vehicle diagnostic method is implemented.
[0058] It can be understood that computer-readable storage media may include: any entity or device capable of carrying a computer program, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium, etc. A computer program includes a computer program code. The computer program code may be in source code form, object code form, an executable file, or some intermediate form, etc. A computer-readable storage medium may include: any entity or device capable of carrying a computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium, etc.
[0059] In certain embodiments of the present invention, the electronic device may include a controller or a processor, and the controller is a single-chip microcomputer chip that integrates a processor, a memory, a communication module, etc. The processor may refer to a processor included in the controller. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0060] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0061] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0062] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. 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 cloud-based vehicle diagnostic system, characterized in that: include: A cloud, a diagnostic test tool connected to the cloud via a network, and a central intelligent gateway located in the vehicle; The diagnostic test tool is used to request unlock request information from the central intelligent gateway, and based on the unlock request information, request password information for removing routing restrictions from the cloud, and the password information is used to be sent to the central intelligent gateway; The cloud is used to generate password information according to the unlock request information, receive vehicle diagnostic data uploaded by the central intelligent gateway, and manage the vehicle diagnostic data; The central intelligent gateway is used to provide identity authentication for the diagnostic test tool and record the vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis.
2. The cloud-based vehicle diagnostic system according to claim 1, characterized in that: The diagnostic test tool includes a diagnostic instruction module, which is used to request a seed key or a seed key and a vehicle VIN code from the central intelligent gateway in the form of a diagnostic instruction, and send the password information to the central intelligent gateway in the form of a diagnostic instruction.
3. The cloud-based vehicle diagnostic system according to claim 1, characterized in that: The central intelligent gateway includes an identity authentication module and a log recording module. The identity authentication module is used to provide a random seed key or a seed key and a vehicle VIN code to the diagnostic test tool, and verify the password information. The log recording module is activated after the password information is verified. The log recording module is used to monitor DoIP data or DoCAN data.
4. The cloud-based vehicle diagnostic system according to claim 3, characterized in that: The central intelligent gateway is also used to restore the routing state to unauthenticated and upload the vehicle diagnostic data after the password information authentication times out.
5. The cloud-based vehicle diagnostic system according to claim 1, characterized in that: The cloud comprises a data management module, and the data management module is used to bind the vehicle diagnostic data with the vehicle VIN code and the diagnostic test tool.
6. The cloud-based vehicle diagnostic system according to claim 5, characterized in that: The cloud also includes an account management module, the account management module is used to manage the login account of the diagnostic test tool, and the login account is at least associated with a vehicle VIN code; The diagnostic test tool also includes a background connection module, and the background connection module is used to log in and connect to the account management module.
7. The cloud-based vehicle diagnostic system according to any one of claims 1 to 6, characterized in that: The vehicle diagnostic data includes a seed key, password information, a vehicle VIN code and diagnostic routing information.
8. A cloud-based vehicle diagnostic method, applied to a central intelligent gateway, characterized in that: include: Feedback unlock request information in response to a request from the diagnostic test tool, release routing restrictions in response to password information sent by the diagnostic test tool, and record vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis; After the vehicle diagnosis is completed or the vehicle diagnosis times out, the vehicle diagnosis data is uploaded to the cloud.
9. The cloud-based vehicle diagnostic method according to claim 8, characterized in that: The recording of vehicle diagnostic data generated by the diagnostic test tool when performing vehicle diagnosis includes: Monitor DoIP data or DoCAN data, and record the seed key, password information, vehicle VIN code and diagnostic routing information generated by the diagnostic test tool when performing vehicle diagnosis.
10. An electronic device, characterized in that: include: at least one processor; And at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the cloud-based vehicle diagnostic method as described in claim 8 or 9.
11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is run by a computer, the cloud-based vehicle diagnostic method as claimed in claim 8 or 9 is executed.
Citation Information
Cited By
Vehicle diagnosis method and system
CN120935654A
Vehicle diagnostic method and system
CN120935654B
