Diagnostic software upgrading method and device, equipment and storage medium
By decrypting and pushing the upgrade authorization serial number on the diagnostic device side, and intelligently pushing the diagnostic software upgrade package, the problems of high cost and low efficiency of manual contracting in the existing technology are solved, and efficient and low-risk version upgrades are achieved.
Patent Information
- Application Number
- CN202411089820.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, the process of manually issuing diagnostic software upgrade packages to designated users is relatively expensive, and the test release efficiency is low and the risk is high.
By sending a configuration file download request on the diagnostic device side, receiving the configuration file returned by the server side, decrypting the upgrade authorization serial number. If the user serial number is in the serial number list, sending the corresponding diagnostic software upgrade package download request, intelligently pushing the test version to the small Range users perform version upgrades.
This greatly improves the testing and release efficiency of software upgrade packages, reduces labor costs and risks, and realizes intelligent version push.
Smart Images

Figure CN119025137A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle diagnostic technology, and in particular to a diagnostic software upgrade method, device, equipment and storage medium. Background Art
[0002] With the continuous development of automotive electronics, more and more electronic control units (ECUs) are installed in cars, and automotive diagnostic software is also constantly updated and iterated, resulting in the need to frequently update upgrade packages for diagnostic software and push them to users for upgrades. Generally speaking, new software needs to be pushed to some users on a small scale for upgrade first, and then pushed to all users after trial if there are no problems, to ensure that the new upgrade package is normal.
[0003] Currently, a commonly used method is to manually send the upgrade package to designated users for testing before releasing the software upgrade package. After the test is correct, it is placed on the server for all users to upgrade. However, the labor cost of manually sending the upgrade package to designated users is relatively high.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a diagnostic software upgrade method, device, equipment and storage medium, aiming to solve the current technical problem of high labor costs for manually sending upgrade packages to designated users.
[0006] To achieve the above purpose, the present application proposes a diagnostic software upgrade method, which is applied to a diagnostic device, and the method includes:
[0007] Send a configuration file download request to the server;
[0008] Receive a configuration file returned by the server, wherein the configuration file includes at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number;
[0009] Decrypting the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list;
[0010] If the decrypted serial number list contains the user serial number, sending a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file;
[0011] Receive a first diagnostic software upgrade package returned by the server, and upgrade the diagnostic software based on the first diagnostic software upgrade package.
[0012] In one embodiment, the step of sending a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file includes:
[0013] Obtaining a download path based on the upgrade version number in the configuration file;
[0014] The corresponding diagnostic software upgrade package download request is sent to the server via the download path.
[0015] In one embodiment, the step of decrypting the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain the decrypted serial number list includes:
[0016] Comparing the upgrade version number in the configuration file with the diagnostic software version number on the diagnostic device to see if they are consistent;
[0017] If they are inconsistent, then judging the upgrade package attributes in the configuration file;
[0018] If the upgrade package attribute is a test version, the following steps are performed: based on the user serial number of the diagnostic device, the upgrade authorization serial number in the configuration file is decrypted to obtain a decrypted serial number list.
[0019] In one embodiment, the step of determining the upgrade package attributes in the configuration file includes:
[0020] If the upgrade package attribute is a formal version, downloading the corresponding second diagnostic software upgrade package based on the upgrade version number in the configuration file;
[0021] Obtaining the MD5 value of the second diagnostic software upgrade package;
[0022] Comparing the MD5 value of the upgrade package in the configuration file with the MD5 value of the second diagnostic software upgrade package to see if they are consistent;
[0023] If they are consistent, the diagnostic software in the diagnostic device is upgraded based on the second diagnostic software upgrade package.
[0024] In one embodiment, the step of decrypting the upgrade authorization serial number based on the user serial number of the diagnostic device to obtain a decrypted serial number list includes:
[0025] If the decrypted serial number list does not contain the user serial number, the original diagnostic software interface is entered.
[0026] The present application also proposes a diagnostic software upgrade method, which is applied to a server side, and the method comprises:
[0027] Receive a configuration file download request sent by the diagnostic device;
[0028] Returning a configuration file to the diagnostic device, the configuration file including at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number, so that the diagnostic device decrypts the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list;
[0029] Receiving a diagnostic software upgrade package download request sent by the diagnostic device based on the upgrade version number in the configuration file, wherein the diagnostic software upgrade package download request is sent under the condition that the decrypted serial number list includes the user serial number;
[0030] The first diagnostic software upgrade package is returned to the diagnostic device end, so that the diagnostic device end upgrades the diagnostic software based on the first diagnostic software upgrade package.
[0031] In one embodiment, before the step of receiving a configuration file download request sent by the diagnostic device, the step includes:
[0032] Creating an upgrade directory, wherein the upgrade directory contains subdirectories and the configuration file;
[0033] When a new diagnostic software upgrade package is released, a subdirectory is created for the new diagnostic software upgrade package in the upgrade directory, and the new diagnostic software upgrade package is stored in the created subdirectory;
[0034] The upgrade information of the new diagnostic software upgrade package is recorded in the configuration file.
[0035] In addition, to achieve the above purpose, the present application also proposes a diagnostic software upgrade device, which is arranged at the diagnostic device end, and the diagnostic software upgrade device includes:
[0036] A download request sending module is used to send a configuration file download request to the server;
[0037] A configuration file receiving module, used to receive the configuration file returned by the server, wherein the configuration file includes at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number;
[0038] A decryption module, used to decrypt the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device end to obtain a decrypted serial number list;
[0039] The download request sending module is also used to send a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file if the decrypted serial number list contains the user serial number;
[0040] The upgrade module is used to receive the first diagnostic software upgrade package returned by the server and upgrade the diagnostic software based on the first diagnostic software upgrade package.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a diagnostic software upgrade device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the diagnostic software upgrade method described above.
[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the diagnostic software upgrade method described above are implemented.
[0043] One or more technical solutions proposed in this application have at least the following technical effects:
[0044] In the present application, the user serial number that can be used for software upgrades is set in advance in the configuration file. The upgrade authorization serial number in the configuration file is decrypted based on the user serial number of the diagnostic device to obtain a decrypted serial number list. If the decrypted serial number list contains the user serial number, a corresponding diagnostic software upgrade package download request is sent to the server based on the upgrade version number in the configuration file. This allows the test version to be pushed intelligently and a small range of users to be designated for version upgrades, greatly improving the test and release efficiency of the software upgrade package and reducing labor costs and risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0047] Figure 1 A flowchart of the first embodiment of the diagnostic software upgrade method of the present application is provided;
[0048] Figure 2 A schematic diagram of a configuration file for a diagnostic software upgrade method for this application;
[0049] Figure 3 A schematic diagram of the upgrade directory for the diagnostic software upgrade method of this application;
[0050] Figure 4 A schematic diagram of the subdirectories of the diagnostic software upgrade method for this application;
[0051] Figure 5 A complete flowchart of the diagnostic software upgrade for this application;
[0052] Figure 6 This is a schematic diagram of the module structure of the diagnostic software upgrade device according to an embodiment of the present application;
[0053] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the diagnostic software upgrade method in the embodiment of the present application.
[0054] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0056] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0057] The main solution of the embodiment of the present application is: sending a configuration file download request to the server; receiving the configuration file returned by the server, the configuration file including at least one of the upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attributes, and upgrade authorization serial number; decrypting the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list; if the decrypted serial number list contains the user serial number, sending a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file; receiving the first diagnostic software upgrade package returned by the server, and upgrading the diagnostic software based on the first diagnostic software upgrade package.
[0058] In this embodiment, for the convenience of description, the following description is made by taking the diagnostic software upgrade device as the execution subject.
[0059] The existing solutions include the following two:
[0060] 1. Before releasing the software upgrade package, the upgrade package is first manually sent to designated users for testing. After the test is correct, it is placed on the server for all users to upgrade. However, manually sending the package to users for testing is a cumbersome and error-prone process, with low security and a waste of after-sales resources.
[0061] 2. The manufacturer builds a web upgrade server, uploads the upgrade package to the cloud, and then sets the upgrade package on the web interface, setting which designated users can upgrade, so as to achieve the purpose of small-scale push. However, building a web upgrade server requires a large cost, which is difficult for car manufacturers with limited funds.
[0062] Therefore, the present application provides a solution. In the present application, the user serial number that can be used for software upgrades is set in advance in the configuration file. The upgrade authorization serial number in the configuration file is decrypted based on the user serial number of the diagnostic device end to obtain a decrypted serial number list. If the decrypted serial number list contains the user serial number, a corresponding diagnostic software upgrade package download request is sent to the server end based on the upgrade version number in the configuration file. In this way, the test version can be pushed intelligently and a small range of users can be designated to perform version upgrades, which greatly improves the test and release efficiency of the software upgrade package and reduces labor costs and risks.
[0063] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a diagnostic software upgrade device, etc. The following takes the diagnostic software upgrade device as an example to illustrate this embodiment and the following embodiments.
[0064] Based on this, the present application embodiment provides a diagnostic software upgrade method, referring to Figure 1 , Figure 1 A flowchart of the first embodiment of the diagnostic software upgrade method of the present application is provided.
[0065] In this embodiment, the diagnostic software upgrade method is applied to the diagnostic device side, including steps S10, S20, S100, S120, and S130:
[0066] S10, sending a configuration file download request to the server;
[0067] It should be noted that, as an implementation mode, when the diagnostic device is opened, a configuration file download request may be sent to the server.
[0068] As another implementation, when the diagnostic software in the diagnostic device is opened, a configuration file download request may be sent to the server.
[0069] S20, receiving a configuration file returned by the server, wherein the configuration file includes at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attributes, and upgrade authorization serial number;
[0070] The configuration file returned by the server may include the upgrade information of all software in the diagnostic device, or may only include the upgrade information of the diagnostic software in the diagnostic device.
[0071] In this embodiment, it is taken as an example that the configuration file only includes the upgrade information of the diagnostic software.
[0072] Reference Figure 2 , Figure 2 A schematic diagram of a configuration file for the diagnostic software upgrade method of this application.
[0073] Among them, the configuration file includes at least one of the upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attributes, and upgrade authorization serial number, wherein the upgrade version number is the upgrade package version number on the server, the upgrade content introduces the updated content of the new diagnostic software compared to the old diagnostic software, the upgrade package size and the upgrade package MD5 value are used to confirm that the upgrade package has not been tampered with, the upgrade package attributes may include the official version and the test version, the test version is used for some users to upgrade, and the official version is used for all users to upgrade, and the upgrade authorization serial number is the user serial number information who has the authority to upgrade this version.
[0074] S100, decrypting the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device end to obtain a decrypted serial number list;
[0075] It should be noted that the upgrade authorization serial number is in an encrypted state and can be decrypted based on the user serial number of this diagnostic device as a key. If the user's serial number is in the decrypted serial number list, it means that the user has the authority to upgrade this upgrade package. At this time, the corresponding diagnostic software upgrade package download request is sent to the server based on the upgrade version number in the configuration file.
[0076] If the serial number of this user does not appear in the decrypted serial number list, it means that this user does not have the authority to upgrade this upgrade package and can enter the diagnostic software normally to perform vehicle diagnosis.
[0077] Furthermore, the user serial number may be a vehicle communication interface VCI serial number of the diagnostic device.
[0078] S120, if the decrypted serial number list includes the user serial number, sending a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file;
[0079] like Figure 2 As shown, UpdateUsersSn contains the user serial number "9c5cc242dc95c12f4ed02d0a8edfa585" of the diagnostic device.
[0080] Figure 2 If the decrypted serial number list contains the user serial number, the diagnostic device sends a download request for the diagnostic software upgrade package with version number 1.0.0.4 to the server.
[0081] S130, receiving a first diagnostic software upgrade package returned by the server, and upgrading the diagnostic software based on the first diagnostic software upgrade package.
[0082] For example, after receiving the diagnostic software upgrade package with version number 1.0.0.4 returned by the server, the diagnostic device upgrades the diagnostic software based on the diagnostic software upgrade package with version number 1.0.0.4.
[0083] In the present application, the user serial number that can be used for software upgrades is set in advance in the configuration file. The upgrade authorization serial number in the configuration file is decrypted based on the user serial number of the diagnostic device to obtain a decrypted serial number list. If the decrypted serial number list contains the user serial number, a corresponding diagnostic software upgrade package download request is sent to the server based on the upgrade version number in the configuration file. This allows the test version to be pushed intelligently and a small range of users to be designated for version upgrades, greatly improving the test and release efficiency of the software upgrade package and reducing labor costs and risks.
[0084] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, the step S120 sends a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file, and also includes steps S121 to S122:
[0085] Step S121, obtaining a download path based on the upgrade version number in the configuration file;
[0086] Reference Figure 3 , Figure 3 A schematic diagram of the upgrade directory for the diagnostic software upgrade method of this application.
[0087] Among them, an upgrade directory is created on the server side to store upgrade information.
[0088] Furthermore, an account and password may be set for the upgrade directory, and users need to use the account and password to access the upgrade directory on the server side.
[0089] The upgrade directory contains subdirectories and configuration files, where the subdirectories are named after the upgrade version number and store the corresponding version of the diagnostic software upgrade package, such as Figure 4 As shown, Figure 4 This is a schematic diagram of the subdirectories of the diagnostic software upgrade method for this application; the configuration file stores the upgrade information of the latest upgrade package.
[0090] Therefore, the download path of the diagnostic software upgrade package can be obtained based on the upgrade version number in the configuration file.
[0091] Step S122: sending the corresponding diagnostic software upgrade package download request to the server through the download path.
[0092] The embodiment of the present invention obtains the download path based on the upgrade version number in the configuration file, and sends the corresponding diagnostic software upgrade package download request to the server through the download path, thereby simplifying the operation process and reducing the need for manual intervention.
[0093] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, the step S100 decrypts the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list, and also includes steps S30 to S40 and S90:
[0094] Step S30, comparing the upgrade version number in the configuration file with the diagnostic software version number of the diagnostic device to see if they are consistent;
[0095] If the upgrade version number in the configuration file is consistent with the version number of the diagnostic software on the diagnostic device, the diagnostic software on the diagnostic device is the latest version.
[0096] If the upgrade version number in the configuration file is inconsistent with the diagnostic software version number on the diagnostic device, the diagnostic software on the diagnostic device needs to be upgraded.
[0097] Step S40: if they are inconsistent, then judging the upgrade package attributes in the configuration file;
[0098] It is necessary to determine whether the upgrade package attribute in the configuration file is a test version or a formal version.
[0099] Step S90, if the upgrade package attribute is a test version, then execute the step: decrypt the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device end to obtain a decrypted serial number list.
[0100] Among them, since the upgrade package attribute is a test version, the test version is only used for upgrades by some users, so the upgrade authorization serial number in the configuration file needs to be decrypted to obtain the decrypted serial number list. If the decrypted serial number list contains the user serial number of this diagnostic device, then this diagnostic device can download the test version upgrade package.
[0101] The embodiment of the present invention compares the upgrade version number in the configuration file with the diagnostic software version number on the diagnostic device to see if they are consistent. If they are inconsistent, the upgrade package attributes in the configuration file are judged, thereby intelligently pushing the test version and specifying a small range of users to perform version upgrades, greatly improving the test and release efficiency of the software upgrade package and reducing labor costs and risks.
[0102] Based on the third embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the third embodiment can be referred to the above description, and will not be described in detail later. On this basis, the step S40 determines the upgrade package attributes in the configuration file, and then further includes steps S50 to S80:
[0103] Step S50, if the upgrade package attribute is a formal version, downloading the corresponding second diagnostic software upgrade package based on the upgrade version number in the configuration file;
[0104] If the upgrade package attribute is a formal version, the formal version is used for upgrading for all users, so the corresponding second diagnostic software upgrade package can be downloaded based on the upgrade version number in the configuration file.
[0105] Step S60, obtaining the MD5 value of the second diagnostic software upgrade package;
[0106] Wherein, the MD5 value calculation is performed based on the downloaded second diagnostic software upgrade package.
[0107] Step S70, comparing the MD5 value of the upgrade package in the configuration file with the MD5 value of the second diagnostic software upgrade package to see if they are consistent;
[0108] Among them, the upgrade package MD5 value in the configuration file is compared with the MD5 value of the second diagnostic software upgrade package to see if they are consistent, thereby checking the integrity of the downloaded second diagnostic software upgrade package. If they are consistent, the downloaded second diagnostic software upgrade package is complete and can be upgraded; if they are inconsistent, the downloaded second diagnostic software upgrade package is incomplete and needs to be re-downloaded or an error is reported.
[0109] Step S80: If they are consistent, the diagnostic software in the diagnostic device is upgraded based on the second diagnostic software upgrade package.
[0110] In the embodiment of the present invention, the integrity of the downloaded second diagnostic software upgrade package can be checked by comparing the MD5 value of the upgrade package in the configuration file with the MD5 value of the second diagnostic software upgrade package to see whether they are consistent.
[0111] Based on the first embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, the step S100 decrypts the upgrade authorization serial number based on the user serial number of the diagnostic device to obtain a decrypted serial number list, and then further includes step S110:
[0112] Step S110: If the decrypted serial number list does not contain the user serial number, then the original diagnostic software interface is entered.
[0113] Among them, if the decrypted serial number list does not contain the user serial number, the current diagnostic software upgrade is not applicable to the diagnostic device, and the original diagnostic software interface is entered.
[0114] The embodiment of the present invention determines whether the decrypted serial number list contains the user serial number. If the decrypted serial number list does not contain the user serial number, the original diagnostic software interface is entered, thereby intelligently pushing the test version and specifying a small range of users to perform version upgrades, greatly improving the test and release efficiency of the software upgrade package and reducing labor costs and risks.
[0115] The embodiment of the present application further provides a diagnostic software upgrade method, which is applied to a server and includes steps S4000 to S7000:
[0116] Step S4000, receiving a configuration file download request sent by the diagnostic device;
[0117] When the diagnostic device is opened, the diagnostic device sends a configuration file download request to the server, or when the diagnostic software of the diagnostic device is opened, the diagnostic device sends a configuration file download request to the server.
[0118] Step S5000, returning a configuration file to the diagnostic device, the configuration file including at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number, so that the diagnostic device decrypts the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list;
[0119] The configuration file returned by the server may include the upgrade information of all software in the diagnostic device, or may only include the upgrade information of the diagnostic software in the diagnostic device.
[0120] Step S6000, receiving a diagnostic software upgrade package download request sent by the diagnostic device based on the upgrade version number in the configuration file, wherein the diagnostic software upgrade package download request is sent under the condition that the decrypted serial number list includes the user serial number;
[0121] When the decrypted serial number list contains the user serial number, the diagnostic device sends a diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file.
[0122] Step S7000: Return a first diagnostic software upgrade package to the diagnostic device, so that the diagnostic device upgrades the diagnostic software based on the first diagnostic software upgrade package.
[0123] In the present application, the user serial number that can be used for software upgrades is set in advance in the configuration file. The upgrade authorization serial number in the configuration file is decrypted based on the user serial number of the diagnostic device to obtain a decrypted serial number list. If the decrypted serial number list contains the user serial number, a corresponding diagnostic software upgrade package download request is sent to the server based on the upgrade version number in the configuration file. This allows the test version to be pushed intelligently and a small range of users to be designated for version upgrades, greatly improving the test and release efficiency of the software upgrade package and reducing labor costs and risks.
[0124] Based on the previous embodiment, the step S4000, receiving the configuration file download request sent by the diagnostic device, also includes steps S1000 to S3000:
[0125] Step S1000, creating an upgrade directory, wherein the upgrade directory includes a subdirectory and the configuration file;
[0126] Among them, this solution proposes a method for upgrading the diagnostic software upgrade package to a designated user based on the FTP protocol.
[0127] The upgrade server uses the FTP protocol to create a user and bind an upgrade directory. The upgrade directory stores subdirectories of various versions and a configuration file config.ini for upgrade package information. The user name and password are written in the diagnostic software.
[0128] Step S2000, when a new diagnostic software upgrade package is released, a subdirectory is created for the new diagnostic software upgrade package in the upgrade directory, and the new diagnostic software upgrade package is stored in the created subdirectory;
[0129] When a new diagnostic software upgrade package is to be released, fill in the upgrade package information in the configuration file config.ini, including the upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attributes and upgrade authorization serial number;
[0130] Step S3000: Record the upgrade information of the new diagnostic software upgrade package in the configuration file.
[0131] The embodiment of the present invention creates an upgrade directory. When a new diagnostic software upgrade package is released, a subdirectory is created for the new diagnostic software upgrade package in the upgrade directory, and the new diagnostic software upgrade package is stored in the created subdirectory. The upgrade information of the new diagnostic software upgrade package is recorded in the configuration file. Therefore, the attributes of the diagnostic software can be distinguished by the upgrade information recorded in the configuration file, which is beneficial to the subsequent range upgrade.
[0132] For example, to help understand the implementation process of the diagnostic software upgrade method obtained in the above embodiment, please refer to Figure 5 , Figure 5 A complete flowchart of the diagnostic software upgrade for this application;
[0133] The upgrade server uses the FTP protocol to create a user and bind a directory. The directory stores the upgrade package subdirectories of each version and an INI file config.ini containing the upgrade package information. The user name and password are written in the diagnostic software. When a new diagnostic software upgrade package is to be released, the upgrade package information is filled into config.ini, including the upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attributes, and upgrade authorization serial number. Specifically, the process includes the following steps:
[0134] Step S301: The terminal user starts the diagnostic software.
[0135] Step S302, access the ftp server through the ftp account and password, download and parse the config.ini file.
[0136] Step S303, compare the version number on the server with the local version number.
[0137] Step S304: If the version numbers are consistent, the diagnostic software is entered normally to perform vehicle diagnosis.
[0138] Step S305, if the two version numbers are inconsistent, determine whether the version attribute on the server is a test version. If the version attribute is a formal version, find the correct path of this version on FTP through the version number and download it locally, read the MD5 value of the downloaded upgrade package and compare it with the MD5 value in config.ini. If they are consistent, upgrade the diagnostic software and update the locally saved software version number. If the MD5 values are inconsistent, do not upgrade.
[0139] Step S306, if the attribute is a test version, read the user serial number information (UpdateUsersSn value) who has the authority to upgrade this version, and use the user's own serial number (VCI serial number) as the key to decrypt each encrypted string. If the decrypted serial number list contains the user's serial number, it means that the user has the authority to upgrade this upgrade package. At this time, the correct path of the upgrade package is found through the version number and downloaded to the local upgrade. The local software version number is not updated.
[0140] Step S307: If the serial number of the user does not exist in the decrypted serial number list, it means that the user has no authority to upgrade and can enter the diagnostic software normally to perform vehicle diagnosis.
[0141] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the diagnostic software upgrade method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0142] This application also provides a diagnostic software upgrade device, please refer to Figure 6 The diagnostic software upgrade device is arranged at the diagnostic device end, and the diagnostic software upgrade device comprises:
[0143] A download request sending module 10 is used to send a configuration file download request to a server;
[0144] The configuration file receiving module 20 is used to receive the configuration file returned by the server, wherein the configuration file includes at least one of the upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number;
[0145] A decryption module 30, configured to decrypt the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device end to obtain a decrypted serial number list;
[0146] The download request sending module 10 is also used to send a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file if the decrypted serial number list contains the user serial number;
[0147] The upgrade module 40 is used to receive the first diagnostic software upgrade package returned by the server, and upgrade the diagnostic software based on the first diagnostic software upgrade package.
[0148] The diagnostic software upgrade device provided by the present application adopts the diagnostic software upgrade method in the above embodiment, which can solve the technical problem that the labor cost of manually sending the upgrade package to the designated user is relatively high. Compared with the prior art, the beneficial effects of the diagnostic software upgrade device provided by the present application are the same as the beneficial effects of the diagnostic software upgrade method provided by the above embodiment, and other technical features in the diagnostic software upgrade device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0149] The present application provides a diagnostic software upgrade device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the diagnostic software upgrade method in the above-mentioned embodiment one.
[0150] Reference below Figure 7 , which shows a schematic diagram of the structure of a diagnostic software upgrade device suitable for implementing an embodiment of the present application. The diagnostic software upgrade device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The diagnostic software upgrade device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0151] like Figure 7As shown, the diagnostic software upgrade device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the diagnostic software upgrade device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the diagnostic software upgrade device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a diagnostic software upgrade device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.
[0152] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0153] The diagnostic software upgrade device provided by the present application adopts the diagnostic software upgrade method in the above embodiment, which can solve the technical problem that the labor cost of manually sending the upgrade package to the designated user is relatively high. Compared with the prior art, the beneficial effects of the diagnostic software upgrade device provided by the present application are the same as the beneficial effects of the diagnostic software upgrade method provided by the above embodiment, and other technical features in the diagnostic software upgrade device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0154] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0155] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0156] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the diagnostic software upgrade method in the above-mentioned embodiment.
[0157] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0158] The computer-readable storage medium may be included in the diagnostic software upgrade device; or may exist independently without being assembled into the diagnostic software upgrade device.
[0159] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the diagnostic software upgrade device, the diagnostic software upgrade device: sends a configuration file download request to the server side; receives the configuration file returned by the server side, and the configuration file includes at least one of the upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attributes, and upgrade authorization serial number; decrypts the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device side to obtain a decrypted serial number list; if the decrypted serial number list contains the user serial number, sends a corresponding diagnostic software upgrade package download request to the server side based on the upgrade version number in the configuration file; receives the first diagnostic software upgrade package returned by the server side, and upgrades the diagnostic software based on the first diagnostic software upgrade package.
[0160] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0161] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0162] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0163] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned diagnostic software upgrade method, and can solve the technical problem that the labor cost of manually sending the upgrade package to the designated user is relatively high. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the diagnostic software upgrade method provided by the above-mentioned embodiment, and will not be repeated here.
[0164] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A diagnostic software upgrade method, characterized in that: Applied to the diagnostic device side, the method includes: Send a configuration file download request to the server; Receive a configuration file returned by the server, wherein the configuration file includes at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number; Decrypting the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list; If the decrypted serial number list contains the user serial number, sending a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file; Receive a first diagnostic software upgrade package returned by the server, and upgrade the diagnostic software based on the first diagnostic software upgrade package.
2. The method according to claim 1, characterized in that The step of sending a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file includes: Obtaining a download path based on the upgrade version number in the configuration file; The corresponding diagnostic software upgrade package download request is sent to the server via the download path.
3. The method according to claim 1, characterized in that The step of decrypting the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list includes: Comparing the upgrade version number in the configuration file with the diagnostic software version number on the diagnostic device to see if they are consistent; If they are inconsistent, then judging the upgrade package attributes in the configuration file; If the upgrade package attribute is a test version, the following steps are performed: based on the user serial number of the diagnostic device, the upgrade authorization serial number in the configuration file is decrypted to obtain a decrypted serial number list.
4. The method according to claim 3, characterized in that The step of determining the upgrade package attributes in the configuration file includes: If the upgrade package attribute is a formal version, downloading the corresponding second diagnostic software upgrade package based on the upgrade version number in the configuration file; Obtaining the MD5 value of the second diagnostic software upgrade package; Comparing the MD5 value of the upgrade package in the configuration file with the MD5 value of the second diagnostic software upgrade package to see if they are consistent; If they are consistent, the diagnostic software in the diagnostic device is upgraded based on the second diagnostic software upgrade package.
5. The method according to claim 1, characterized in that The step of decrypting the upgrade authorization serial number based on the user serial number of the diagnostic device to obtain a decrypted serial number list includes: If the decrypted serial number list does not contain the user serial number, the original diagnostic software interface is entered.
6. A diagnostic software upgrade method, characterized in that: Applied to the server side, the method includes: Receive a configuration file download request sent by the diagnostic device; Returning a configuration file to the diagnostic device, the configuration file including at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number, so that the diagnostic device decrypts the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device to obtain a decrypted serial number list; Receiving a diagnostic software upgrade package download request sent by the diagnostic device based on the upgrade version number in the configuration file, wherein the diagnostic software upgrade package download request is sent under the condition that the decrypted serial number list includes the user serial number; The first diagnostic software upgrade package is returned to the diagnostic device end, so that the diagnostic device end upgrades the diagnostic software based on the first diagnostic software upgrade package.
7. The method according to claim 6, characterized in that The step of receiving a configuration file download request sent by the diagnostic device includes: Creating an upgrade directory, wherein the upgrade directory contains subdirectories and the configuration file; When a new diagnostic software upgrade package is released, a subdirectory is created for the new diagnostic software upgrade package in the upgrade directory, and the new diagnostic software upgrade package is stored in the created subdirectory; The upgrade information of the new diagnostic software upgrade package is recorded in the configuration file.
8. A diagnostic software upgrade device, characterized in that: Set at the diagnostic equipment end, the device includes: A download request sending module is used to send a configuration file download request to the server; A configuration file receiving module, used to receive the configuration file returned by the server, wherein the configuration file includes at least one of an upgrade version number, upgrade content, upgrade package size, upgrade package MD5 value, upgrade package attribute, and upgrade authorization serial number; A decryption module, used to decrypt the upgrade authorization serial number in the configuration file based on the user serial number of the diagnostic device end to obtain a decrypted serial number list; The download request sending module is also used to send a corresponding diagnostic software upgrade package download request to the server based on the upgrade version number in the configuration file if the decrypted serial number list contains the user serial number; The upgrade module is used to receive the first diagnostic software upgrade package returned by the server and upgrade the diagnostic software based on the first diagnostic software upgrade package.
9. A diagnostic software upgrade device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the diagnostic software upgrade method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the diagnostic software upgrade method according to any one of claims 1 to 7 are implemented.
