A diagnostic software download method, apparatus, and computer device
By combining mobile self-test commands and software encryption algorithms with multi-threaded concurrent downloads, the problems of slow download speed and insufficient security of diagnostic software are solved, achieving an efficient and secure software installation process.
Patent Information
- Application Number
- CN202211141041.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-09-20
AI Technical Summary
Existing diagnostic software downloads are slow and lack security, resulting in inefficiency when downloading multiple programs and making them vulnerable to third-party cracking.
The download request is generated by the mobile device's self-test command, the key is calculated using the software encryption algorithm, and the private key is matched with the public key. Combined with multi-threaded concurrent download technology, the security and efficiency of the software installation package are ensured.
It improves the security and efficiency of diagnostic software downloads, prevents unregistered users from stealing the software, increases the difficulty of software installation, and ensures that software data is not cracked.
Smart Images

Figure CN115309414B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software download technology, and in particular to a method, apparatus, and computer device for diagnosing software downloads. Background Technology
[0002] Currently, users need to download and use corresponding diagnostic software to diagnose different car models using diagnostic equipment. To facilitate downloads, developers display all software in an update list. When a user needs to download software, they simply click on the corresponding software to download the installation package to the diagnostic device. However, most mobile software downloads or updates currently use a single-threaded download process, installing only after the download is complete. While this is fast, the download process lacks security, making it vulnerable to third-party access and data cracking. Furthermore, if multiple software programs need to be downloaded, they must be downloaded sequentially according to the clicked download order, resulting in low efficiency.
[0003] Therefore, existing technologies have shortcomings and need to be improved. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a diagnostic software download method, apparatus, and computer device.
[0005] The present invention provides a method for downloading diagnostic software, the method comprising the following steps: When the mobile device is launched, a self-test command is automatically generated, and the mobile device is tested according to the self-test command to determine whether there is any diagnostic software that needs to be downloaded or updated. If a download or update is required, a download request command is sent to the cloud server; Receive the software installation package and decompress the software installation package to obtain a decompressed file; Based on the decompressed file and the mobile device's ID number, a key is calculated using a software encryption algorithm and then sent to the cloud server. Receive the installation verification document returned by the cloud server based on the key; The installation certificate file is stored in the decompressed file, and a private key is generated using an algorithm formula and written into the installation certificate file; The private key is matched with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally.
[0006] Optionally, after the step of sending a download request instruction to the cloud server if a download or update is required, the following may be included: Receive the current user's login account and corresponding password entered according to the login prompt, and generate user information; The user information and the current SN number of the mobile terminal are sent to the cloud server to verify whether the user is a registered user bound to the mobile terminal. The cloud server stores multiple user information, and each user information is bound to the corresponding mobile terminal SN number. If the user is a registered user, they will be granted permission to log in to the cloud server in order to establish a communication link with the cloud server.
[0007] Optionally, the specific steps for receiving the software installation package and decompressing the software installation package to obtain decompressed files include: Create a first folder for downloading the software installation package. Within this first folder, create three threads, each corresponding to downloading one piece of diagnostic software. In each thread, a second folder for categorized downloads is created, and five threads are created in the second folder, with each thread concurrently downloading the corresponding files; The downloaded software installation package is decompressed to obtain the decompressed file of the diagnostic software, wherein the decompressed file includes the file name, software serial number and software version number.
[0008] Optionally, the specific steps of calculating and generating a key based on a software encryption algorithm according to the decompressed file and the mobile device's ID number, and sending the key to the cloud server, include: Read the filename, software serial number, and software version number from the decompressed file; Read the ID number of the mobile device; Based on the software serial number, software version number, and ID number, a string is generated using a software encryption algorithm. The calculation formula is as follows: y=log a (X*N) : Where 'a' represents the software version number, 'X' represents the current mobile device ID number, and 'N' represents the software serial number; The filename is appended to the end of the string to obtain the key, and the key is sent to the cloud server.
[0009] Optionally, the specific steps of storing the installation certificate file in the decompressed file and generating a private key using an algorithm formula and writing it into the installation certificate file include: The installation certificate is placed in the root directory of the unzipped file. The installation certificate includes the name of the diagnostic software, the number of sub-files in the unzipped file, and the file size of the unzipped file. Based on the number of sub-files and the file size of the decompressed file, the product c is calculated, where the calculation formula is: φ(c) = (a-1)(b-1); Where 'a' represents the number of sub-files in the decompressed file, and 'b' represents the file size of the decompressed file; Randomly select an integer and calculate the inverse modulo d using the formula: ed ≡ 1 (mod φ(c)); Where e represents any integer; The product c and the inverse modular d are combined and written as the private key in the last line of the installation proof file.
[0010] Optionally, the specific steps for matching the private key with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally include: The private key is compared with the public key preset in the decompressed file to determine whether they match; If it matches, you can install and use it. If the two devices do not match, installation and use will fail, and a prompt will be displayed.
[0011] This application also discloses a diagnostic software download device, comprising: The self-test module is used to automatically generate a self-test command when the mobile device is started, and to test the mobile device according to the self-test command to determine whether there is diagnostic software that needs to be downloaded or updated. Download module; used to send a download request command to the cloud server if a download or update is required; The first receiving module is used to receive the software installation package and decompress the software installation package to obtain a decompressed file; The first encryption module is used to calculate and generate a key based on the decompressed file and the mobile device's ID number using a software encryption algorithm, and then send the key to the cloud server. The second receiving module is used to receive the installation certificate document fed back by the cloud server based on the key; The second encryption module is used to store the installation certificate file in the decompressed file and generate a private key using an algorithm formula and write it into the installation certificate file; The matching module is used to match the private key with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally.
[0012] Optional, also includes: The login module is used to receive the current user's login account and corresponding password entered according to the login prompts, and to generate user information; The sending module is used to send the user information and the current SN number of the mobile terminal to the cloud server to verify whether the user is a registered user bound to the mobile terminal. A module is created to grant registered users permission to log in to the cloud server and establish a communication link with it.
[0013] This application also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the diagnostic software download method described above.
[0014] This application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the diagnostic software download method described above.
[0015] Beneficial effects: This invention automatically generates self-test instructions on the mobile terminal, providing users with real-time prompts for download or update information to avoid the diagnostic software being undownloaded or outdated during vehicle diagnostics; it generates a key based on a software encryption algorithm to ensure that the downloaded software is consistent with the device, preventing unregistered users and third-party devices from downloading software and causing software information leakage, thus improving the security of the downloaded software; it generates a private key using an algorithm formula and writes it into the installation certificate file to achieve separate downloads of the installation certificate file and the decompressed file, preventing external cracking; by matching the private key with the public key preset in the decompressed file, the decompressed file is bound to the installation certificate file, increasing the difficulty of installation and the security of the software. Attached Figure Description
[0016] Figure 1 This is a schematic flowchart of the diagnostic software download method of the present invention; Figure 2 This is a schematic diagram of the diagnostic software download device of the present invention; Figure 3 This is a schematic diagram of the computer device structure of the present invention.
[0017] As shown in the diagram: 10, self-test module; 20, download module; 30, first receiving module; 40, first encryption module; 50, second receiving module; 60, second encryption module; 70, matching module. Detailed Implementation
[0018] To facilitate understanding of the present invention, a more detailed description is provided below with reference to the accompanying drawings and specific embodiments. Preferred embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention.
[0019] It should be noted that when a component is described as being "fixed to" another component, it can be directly attached to the other component or there may be an intervening component. When a component is described as being "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "fixed," "integral," "left," "right," and similar expressions used in this specification are for illustrative purposes only, and in the figures, structurally similar units are labeled with the same reference numerals.
[0020] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention.
[0021] The present invention will now be described in detail with reference to the accompanying drawings.
[0022] Example 1: Please see Figure 1 A diagnostic software download method, applied to a mobile terminal connected to a cloud server, wherein the mobile terminal is any smart terminal with communication diagnostic functions; the method includes the following steps: Step S1: When the mobile device starts up, a self-test command is automatically generated, and the mobile device is tested according to the self-test command to determine whether there is any diagnostic software that needs to be downloaded or updated. Step S2: If a download or update is required, send a download request command to the cloud server; Step S3: Receive the software installation package and decompress the software installation package to obtain a decompressed file; Step S4: Based on the decompressed file and the mobile device's ID number, calculate and generate a key using a software encryption algorithm, and send the key to the cloud server; Step S5: Receive the installation certificate document returned by the cloud server based on the key; Step S6: Store the installation certificate file in the decompressed file, and generate a private key using an algorithm formula and write it into the installation certificate file; Step S7: Match the private key with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally.
[0023] As described in steps S1-S7 above, diagnostic equipment is typically used to diagnose vehicles. This requires using diagnostic software that corresponds to the vehicle and keeping the diagnostic software up to date. Developers often need to spend a lot of time and resources to maintain and update the diagnostic software. To prevent third parties from maliciously stealing the software data, the software installation package is decompressed after receiving it. The decompressed files and installation certificate files are then encrypted to protect the software installation package. Specifically, when the mobile device starts up, it performs a self-check to detect if any diagnostic software needs to be downloaded or updated. If so, the user simply clicks on the desired software in the download list on the mobile device. The mobile device then sends a download request to the cloud server. The cloud server, based on the request, transmits the corresponding software installation package to the mobile device. The mobile device receives the installation package, decompresses it, and encrypts both the decompressed file and the mobile device's ID using a software encryption algorithm. This encryption generates a key, which is then sent to the cloud server. The cloud server provides an installation verification file based on the key. The mobile device stores this verification file in the decompressed file. A private key is generated using an algorithm and written into the verification file. This private key is then matched against the public key stored in the decompressed file. If a match is found, the software can be installed and used. This process prevents unauthorized downloads and theft, avoids unauthorized file modifications and cracking, and improves software security.
[0024] In one embodiment, after the step of sending a download request instruction to the cloud server if a download or update is required, the method includes: Step S20: Receive the current user's login account and corresponding login password entered according to the login prompt, and generate user information; Step S21: Send the user information and the current SN number of the mobile terminal to the cloud server to verify whether it is a registered user bound to the mobile terminal. The cloud server stores multiple user information, and each user information is bound to the corresponding mobile terminal SN number. Step S23: If the user is a registered user, then obtain permission to log in to the cloud server in order to establish a communication link with the cloud server.
[0025] As described in steps S20-S23 above, when downloading software from the cloud server, a connection needs to be established first. To prevent unregistered users from accessing the cloud server, the user must enter their login account and password on their mobile device. The mobile device then sends the login account, password, and the device's serial number (SN) retrieved from the system to the cloud server for verification. This verifies whether the user is a registered user and whether the device is bound to that registered user. If all conditions are met, the mobile device gains permission to log in to the cloud server and establishes a communication link. This ensures the security of the diagnostic software and prevents unauthorized downloads.
[0026] Understandably, users can also manually enter the SN number obtained from other sources.
[0027] In one embodiment, the specific steps of receiving the software installation package and decompressing the software installation package to obtain a decompressed file include: Step S30: Create a first folder for downloading the software installation package, wherein three threads are created in the first folder, and each thread corresponds to downloading one piece of diagnostic software; Step S31: Create a second folder for categorized downloads in each thread, wherein five threads are created in the second folder, and each thread concurrently downloads the corresponding files; Step S32: Unzip the downloaded software installation package to obtain the unzipped file of the diagnostic software, wherein the unzipped file includes the file name, software serial number and software version number.
[0028] As described in steps S30-S32 above, when downloading multiple software programs on a typical mobile device (such as a phone or tablet), they are downloaded one by one according to the order in which they are clicked, resulting in low network utilization and unstable download speeds. Therefore, when downloading software, the mobile device automatically creates a first folder to store the downloaded software. Within this first folder, three threads are created, allowing three software programs to download simultaneously, thus rationally allocating network resources and improving network utilization and download efficiency. A second folder is then created within each thread, and five more threads are created within the second folder. These five threads can concurrently download multiple files from the diagnostic software, further improving download speed. Once the software download is complete, the mobile device decompresses it to obtain the extracted files.
[0029] In one embodiment, the specific steps of calculating and generating a key based on a software encryption algorithm according to the decompressed file and the mobile device's ID number, and sending the key to the cloud server, include: Step S40: Read the file name, software serial number, and software version number from the decompressed file; Step S41: Read the ID number of the mobile terminal; Step S42: Based on the software serial number, software version number, and ID number, calculate and generate a string using the software encryption algorithm. The calculation formula is as follows: y=log a (X*N) : Where 'a' represents the software version number, 'X' represents the current mobile device ID number, and 'N' represents the software serial number; Step S43: Add the filename to the end of the string to obtain the key, and send the key to the cloud server.
[0030] As described in steps S40-S43 above, each mobile device has a unique ID number. The mobile device's ID number, along with the software serial number and software version number read from the decompressed file, are used to generate a string (e.g., 342341200432342943282344) using a software encryption algorithm. The filename from the decompressed file is then appended to the end of this string to obtain a key (e.g., 342341200432342943282344QIRUI_TY). This key is sent to the cloud server for verification. If the verification is successful, the cloud server will return an installation certificate file to the mobile device. It is understood that the installation certificate file is a verification document required during the software installation process. If this installation certificate file is missing, the installation cannot be completed. Obtaining the software installation package and the installation certificate file separately increases the difficulty of software installation and improves security.
[0031] In one embodiment, the specific steps of storing the installation certificate file in the decompressed file and generating a private key using an algorithm formula and writing it into the installation certificate file include: Step S60: Store the installation certificate file in the root directory of the decompressed file, wherein the installation certificate file includes the name of the diagnostic software, the number of sub-files in the decompressed file, and the file size of the decompressed file; Step S61: Calculate the product c of the number of sub-files and the file size of the decompressed file, using the following formula: φ(c) = (a-1)(b-1); Where 'a' represents the number of sub-files in the decompressed file, and 'b' represents the file size of the decompressed file; Step S62: Randomly select an integer and calculate the inverse modulus d using the formula: ed ≡ 1 (mod φ(c)); Where e represents any integer; Step S63: Combine the product c and the inverse modular d as a private key and write it into the last line of the installation certificate file.
[0032] In one embodiment, the specific steps for matching the private key with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally include: Step S70: Compare the private key with the public key preset in the decompressed file to determine whether they match; Step S71: If it matches, you can proceed with the installation and use. Step S72: If it does not match, installation and use will not be possible, and a prompt will be issued.
[0033] As described in steps S70-S72 above, the private key is matched with the public key preset in the decompressed file. If successful, the software can be installed successfully. At the same time, when using the software later, the verification will be performed according to step S7 during the software loading process. If the user tampered with the software file, the private key calculated according to step S6 will not match the preset public key, and the software will not be able to start and be used normally.
[0034] Example 2: Please see Figure 2 This application also discloses a diagnostic software download device, comprising: The self-test module 10 is used to automatically generate a self-test command when the mobile terminal is started, and to test the mobile terminal according to the self-test command to determine whether there is diagnostic software that needs to be downloaded or updated. Download module 20; used to send a download request command to the cloud server if a download or update is required; The first receiving module 30 is used to receive the software installation package and decompress the software installation package to obtain a decompressed file; The first encryption module 40 is used to calculate and generate a key based on the software encryption algorithm according to the decompressed file and the ID number of the mobile terminal, and send the key to the cloud server; The second receiving module 50 is used to receive the installation certificate document fed back by the cloud server based on the key; The second encryption module 60 is used to store the installation certificate file in the decompressed file and generate a private key using an algorithm formula and write it into the installation certificate file; The matching module 70 is used to match the private key with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally.
[0035] In one embodiment, it also includes: The login module is used to receive the current user's login account and corresponding password entered according to the login prompts, and to generate user information; The sending module is used to send the user information and the current SN number of the mobile terminal to the cloud server to verify whether the user is a registered user bound to the mobile terminal. A module is created to grant registered users permission to log in to the cloud server and establish a communication link with it.
[0036] In one embodiment, the first receiving module 30 further includes: The first creation unit is used to create a first folder for downloading the software installation package, wherein three threads are created in the first folder, and each thread corresponds to downloading one piece of diagnostic software; The second creation unit is used to create a second folder for categorized downloads in each thread, wherein five threads are created in the second folder, and each thread concurrently downloads the corresponding files; The first decompression unit is used to decompress the downloaded software installation package to obtain the decompressed file of the diagnostic software, wherein the decompressed file includes a file name, a software serial number, and a software version number.
[0037] In one embodiment, the first encryption module 40 further includes: The first reading unit is used to read the file name, software serial number and software version number from the decompressed file; The second reading unit is used to read the ID number of the mobile terminal; The first calculation unit is used to calculate and generate a string based on the software serial number, software version number, and ID number using a software encryption algorithm. The calculation formula is as follows: y=log a (X*N) : Where 'a' represents the software version number, 'X' represents the current mobile device ID number, and 'N' represents the software serial number; The sending unit is used to append the filename to the end of the string to obtain a key, and then send the key to the cloud server.
[0038] In one embodiment, the second encryption module 60 further includes: The second decompression unit is used to store the installation certificate file in the root directory of the decompressed file, wherein the installation certificate file includes the name of the diagnostic software, the number of sub-files in the decompressed file, and the file size of the decompressed file; The second calculation unit is used to calculate the product c of the number of sub-files and the file size of the decompressed file, wherein the calculation formula is: φ(c) = (a-1)(b-1); Where 'a' represents the number of sub-files in the decompressed file, and 'b' represents the file size of the decompressed file; The third calculation unit is used to randomly select an integer and calculate the inverse modulo d using the following formula: ed ≡ 1 (mod φ(c)); Where e represents any integer; A merging unit is used to merge the product c and the inverse modular d and write it as a private key into the last line of the installation certificate file.
[0039] In one embodiment, the matching module 70 further includes: The comparison unit is used to compare the private key with the public key preset in the decompressed file to determine whether they match. The installation unit is designed to allow for installation and use if a match is found. The display unit is used to indicate that if the device is not compatible, it cannot be installed or used, and will issue a prompt.
[0040] Example 3: Please see Figure 3 This application also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the diagnostic software download method described above.
[0041] This application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the diagnostic software download method described above.
[0042] In the embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function may be grouped into one unit. For example, multiple units or components may be combined or integrated into another diagnostic system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, or may be electrical, mechanical, or other forms of connection.
[0043] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of this application, depending on actual needs.
[0044] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0045] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.
[0046] It should be noted that the above-mentioned technical features can be combined with each other to form various embodiments not listed above, all of which are considered to be within the scope of this invention specification; and, for those skilled in the art, improvements or modifications can be made based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A method for downloading diagnostic software, characterized in that: The method includes the following steps: When the mobile device is launched, a self-test command is automatically generated, and the mobile device is tested according to the self-test command to determine whether there is any diagnostic software that needs to be downloaded or updated. If a download or update is required, a download request command is sent to the cloud server; Receive the software installation package and decompress the software installation package to obtain a decompressed file; Based on the decompressed file and the mobile device's ID number, a key is calculated using a software encryption algorithm and then sent to the cloud server. Receive the installation verification document returned by the cloud server based on the key; The installation certificate file is stored in the decompressed file, and a private key is generated using an algorithm formula and written into the installation certificate file; The private key is matched with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally; The specific steps for storing the installation certificate file in the decompressed file and generating a private key using an algorithm formula and writing it into the installation certificate file include: The installation certificate is placed in the root directory of the unzipped file. The installation certificate includes the name of the diagnostic software, the number of sub-files in the unzipped file, and the file size of the unzipped file. Based on the number of sub-files and the file size of the decompressed file, the product c is calculated, where the calculation formula is: φ(c) = (a-1)(b-1); Where 'a' represents the number of sub-files in the decompressed file, and 'b' represents the file size of the decompressed file; Randomly select an integer and calculate the inverse modulo d using the formula: ed ≡ 1 (mod φ(c)); Where e represents any integer; The product c and the inverse modular d are combined and written as the private key in the last line of the installation proof file.
2. The diagnostic software download method according to claim 1, characterized in that, After the step of sending a download request command to the cloud server if a download or update is required, the process includes: Receive the current user's login account and corresponding password entered according to the login prompt, and generate user information; The user information and the current SN number of the mobile terminal are sent to the cloud server to verify whether the user is a registered user bound to the mobile terminal. The cloud server stores multiple user information, and each user information is bound to the corresponding mobile terminal SN number. If the user is a registered user, they will be granted permission to log in to the cloud server in order to establish a communication link with the cloud server.
3. The diagnostic software download method according to claim 1, characterized in that, The specific steps for receiving the software installation package and decompressing it to obtain the decompressed file include: Create a first folder for downloading the software installation package. Within this first folder, create three threads, each corresponding to downloading one piece of diagnostic software. In each thread, a second folder for categorized downloads is created, and five threads are created in the second folder, with each thread concurrently downloading the corresponding files; The downloaded software installation package is decompressed to obtain the decompressed file of the diagnostic software, wherein the decompressed file includes the file name, software serial number and software version number.
4. The diagnostic software download method according to claim 3, characterized in that, The specific steps for calculating and generating a key based on the decompressed file and the mobile device's ID number, using a software encryption algorithm, and sending the key to the cloud server include: Read the filename, software serial number, and software version number from the decompressed file; Read the ID number of the mobile device; Based on the software serial number, software version number, and ID number, a string is generated using a software encryption algorithm. The calculation formula is as follows: y=log a (X*N) : Where 'a' represents the software version number, 'X' represents the current mobile device ID number, and 'N' represents the software serial number; The filename is appended to the end of the string to obtain the key, and the key is sent to the cloud server.
5. The diagnostic software download method according to claim 1, characterized in that, The specific steps for matching the private key with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally include: The private key is compared with the public key preset in the decompressed file to determine whether they match; If it matches, you can install and use it. If the two devices do not match, installation and use will fail, and a prompt will be displayed.
6. A diagnostic software download device, characterized in that, include: The self-test module is used to automatically generate a self-test command when the mobile device is started, and to test the mobile device according to the self-test command to determine whether there is diagnostic software that needs to be downloaded or updated. Download module; Used to send a download request command to the cloud server if a download or update is required; The first receiving module is used to receive the software installation package and decompress the software installation package to obtain a decompressed file; The first encryption module is used to calculate and generate a key based on the decompressed file and the mobile device's ID number using a software encryption algorithm, and then send the key to the cloud server. The second receiving module is used to receive the installation certificate document fed back by the cloud server based on the key; The second encryption module is used to store the installation certificate file in the decompressed file and generate a private key using an algorithm formula and write it into the installation certificate file; The matching module is used to match the private key with the public key preset in the decompressed file to ensure that the diagnostic software can be installed and used normally. The second encryption module also includes: The second decompression unit is used to store the installation certificate file in the root directory of the decompressed file, wherein the installation certificate file includes the name of the diagnostic software, the number of sub-files in the decompressed file, and the file size of the decompressed file; The second calculation unit is used to calculate the product c of the number of sub-files and the file size of the decompressed file, wherein the calculation formula is: φ(c) = (a-1)(b-1); Where 'a' represents the number of sub-files in the decompressed file, and 'b' represents the file size of the decompressed file; The third calculation unit is used to randomly select an integer and calculate the inverse modulo d using the following formula: ed ≡ 1 (mod φ(c)); Where e represents any integer; A merging unit is used to merge the product c and the inverse modular d and write it as a private key into the last line of the installation certificate file.
7. The diagnostic software download device according to claim 6, characterized in that, Also includes: The login module is used to receive the current user's login account and corresponding password entered according to the login prompts, and to generate user information; The sending module is used to send the user information and the current SN number of the mobile terminal to the cloud server to verify whether the user is a registered user bound to the mobile terminal. A module is created to grant registered users permission to log in to the cloud server and establish a communication link with it.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the diagnostic software download method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the diagnostic software download method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for downloading and installing paid vehicle-mounted application
CN113031973A
Method and device for automatically downloading diagnostic software and computer equipment
CN114461238A
