Data updating method and device, equipment and storage medium

By storing and managing resource module version update information of diagnostic equipment on the blockchain, the characteristics of the blockchain network are used to solve the problems of data tampering and low security during the data update process of diagnostic equipment, achieving higher data trustworthiness. degree and confidentiality.

CN118567681APending Publication Date: 2024-08-30LAUNCH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410714808.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

There are problems with data tampering and unauthorized access during the data update process of diagnostic equipment, resulting in low data credibility and confidentiality.

Method used

By storing the version update information of the resource module on the blockchain, using the blockchain network for query and download, the transparency and non-tamperability of the information are ensured, and the decentralized characteristics and encryption mechanism of the blockchain are used to verify the diagnosis. Security of box serial numbers and related resource information.

Benefits of technology

It improves the credibility and confidentiality of data on diagnostic equipment, prevents forgery or tampering, and ensures the transparency and security of data updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567681A
    Figure CN118567681A
Patent Text Reader

Abstract

The invention discloses a data updating method and device, equipment and a storage medium, and relates to the technical field of computers.The method comprises the steps that a diagnostic kit serial number input by a user is obtained, whether a resource bundle corresponding to the diagnostic kit serial number exists or not is judged, and the resource bundle comprises a plurality of resource modules; if the resource modules exist, sending a query request to a block chain network, so that the block chain network queries and obtains version updating information of the resource modules based on the query request; obtaining version updating information of each resource module returned by the block chain network; and if the version updating information shows that the version of the related resource module in the block chain network is updated, sending a resource module downloading request of the latest version to the block chain network, so that the block chain network searches for the resource module of the latest version based on the resource module downloading request and returns the resource module of the latest version, according to the invention, the credibility and confidentiality of the data on the diagnostic equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data updating method, device, equipment and storage medium. Background Art

[0002] With the continuous development of vehicle technology and the increasing complexity of vehicle systems, vehicle diagnostic systems also need to continuously update data.

[0003] Currently, version update information of diagnostic equipment is stored in a centralized database or server. During the data update process, the data may be tampered with or accessed without authorization, which reduces the credibility and confidentiality of the data on the diagnostic equipment.

[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 the present application is to provide a data updating method, apparatus, device and storage medium, aiming to solve the technical problems of low credibility and confidentiality of data on current diagnostic equipment.

[0006] To achieve the above purpose, the present application proposes a data updating method, which is applied to a diagnostic device, and the method comprises:

[0007] Obtaining the diagnostic box serial number input by the user, and determining whether there is a resource package corresponding to the diagnostic box serial number, wherein the resource package includes several resource modules;

[0008] If so, a query request is sent to the blockchain network, so that the blockchain network obtains version update information of each resource module based on the query request;

[0009] Obtaining version update information of each resource module returned by the blockchain network;

[0010] If the version update information shows that the version of the relevant resource module in the blockchain network has been updated, a request to download the latest version of the resource module is sent to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

[0011] In one embodiment, if the version update information shows that the version of the relevant resource module in the blockchain network has been updated, the step of sending a request to download the latest version of the resource module to the blockchain network includes:

[0012] The latest version of the resource module overwrites the original resource module.

[0013] In one embodiment, after the step of obtaining the diagnostic box serial number input by the user and determining whether there is a resource package corresponding to the diagnostic box serial number, the step further includes:

[0014] If it does not exist, sending a resource package download request to the blockchain network, wherein the resource package download request includes the diagnostic box serial number;

[0015] Obtain a resource package returned by the blockchain network, wherein the resource package returned by the blockchain network includes the latest versions of several resource modules.

[0016] In one embodiment, after the step of overwriting the original resource module with the latest version of the resource module, the step further includes:

[0017] In response to the diagnosis box switching instruction, the new diagnosis box serial number input by the user is obtained, and the steps are performed: determining whether there is a resource package corresponding to the diagnosis box serial number, the resource package including several resource modules.

[0018] The present application also proposes a data updating method, which is applied to a blockchain network, and the method comprises:

[0019] Obtaining a query request sent by a diagnostic device, wherein the query request is sent by the diagnostic device after obtaining a diagnostic box serial number input by a user and determining that there is a resource package corresponding to the diagnostic box serial number, wherein the resource package includes a plurality of resource modules;

[0020] Obtaining version update information of each resource module based on the query request;

[0021] Returning the version update information of each resource module to the diagnostic device end;

[0022] Acquire the resource module download request sent by the diagnostic device, where the resource module download request is sent by the diagnostic device when the version update information indicates that the version of the resource module has been updated;

[0023] Searching and obtaining the latest version of the resource module based on the resource module download request;

[0024] Return the latest version of the resource module to the diagnostic device.

[0025] In one embodiment, the query request includes the diagnostic box serial number and the current version information of each resource module, and the step of querying and obtaining the version update information of each resource module based on the query request includes:

[0026] Based on the diagnostic box serial number, query the preset index table to obtain the hash value of the corresponding resource package;

[0027] Based on the hash value of the resource package, query the preset version chain table to obtain the update record of each resource module in the resource package;

[0028] The current version information of each resource module is compared with the update record to generate version update information of each resource module.

[0029] In one embodiment, the step of searching for the latest version of the resource module based on the resource module download request includes:

[0030] Searching the version chain list for the hash value of the resource module of the latest version based on the hash value of the resource package;

[0031] Using a blockchain browser, locate the block where the latest version of the resource module is located based on the hash value of the latest version of the resource module;

[0032] The resource module of the latest version is obtained based on the block search.

[0033] In addition, to achieve the above purpose, the present application also proposes a data updating device, which is arranged at the diagnostic device end, and the device comprises:

[0034] A query module is used to obtain the diagnostic box serial number input by the user, and determine whether there is a resource package corresponding to the diagnostic box serial number, the resource package including several resource modules; if so, send a query request to the blockchain network, so that the blockchain network obtains version update information of each resource module based on the query request;

[0035] A download module is used to obtain the version update information of each resource module returned by the blockchain network; if the version update information shows that the version of the relevant resource module in the blockchain network has been updated, a download request for the latest version of the resource module is sent to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

[0036] In addition, to achieve the above objectives, the present application also proposes a data update device, which includes: 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 data update method described above.

[0037] 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 a processor, the steps of the data updating method described above are implemented.

[0038] One or more technical solutions proposed in this application have at least the following technical effects:

[0039] Since blockchain technology ensures the transparency and immutability of data, this application can ensure that the version update information of the resource module is credible, public, and not easily tampered with by storing it on the blockchain, thereby improving the credibility and confidentiality of the data on the diagnostic device.

[0040] In addition, the decentralized nature and encryption mechanism of blockchain technology ensure the security of the diagnostic box serial number and related resource information. The serial number entered by the user can be verified on the blockchain to prevent forgery or tampering. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] 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.

[0042] 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.

[0043] Figure 1 A flowchart of the first embodiment of the data updating method of this application is provided;

[0044] Figure 2 A flowchart of the second embodiment of the data updating method of this application is provided;

[0045] Figure 3 A flowchart of the third embodiment of the data updating method of this application is provided;

[0046] Figure 4 A flowchart of the fourth embodiment of the data updating method of this application is provided;

[0047] Figure 5 A flowchart of the fifth embodiment of the data updating method of this application is provided;

[0048] Figure 6 A flowchart of the sixth embodiment of the data updating method of this application is provided;

[0049] Figure 7 A flowchart of the seventh embodiment of the data updating method of this application is provided;

[0050] Figure 8 This is a schematic diagram of the module structure of the data updating device according to an embodiment of the present application;

[0051] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the data updating method in the embodiment of the present application.

[0052] 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

[0053] 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.

[0054] 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.

[0055] The main solution of the embodiment of the present application is: obtain the diagnostic box serial number input by the user, and determine whether there is a resource package corresponding to the diagnostic box serial number, and the resource package includes several resource modules; if so, send a query request to the blockchain network, so that the blockchain network obtains the version update information of each resource module based on the query request; obtain the version update information of each resource module returned by the blockchain network; if the version update information shows that the version of the relevant resource module in the blockchain network has been updated, send a latest version of the resource module download request to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

[0056] Technical terms involved in the embodiments of the present invention:

[0057] Blockchain Explorer: A Blockchain Explorer is a tool or service used to view and browse data on a blockchain. It allows users to view transactions, blocks, address balances, and other related information on a blockchain. Blockchain Explorers usually provide a user-friendly interface and search function, where users can find specific transactions or information by entering transaction hashes, addresses, or keywords.

[0058] In this embodiment, for the convenience of description, the following description is made with the data updating system as the execution subject.

[0059] Since the version update information of the diagnostic device in the prior art is stored in a centralized database or server, the data may be tampered with or accessed without authorization during the data update process, which reduces the credibility and confidentiality of the data on the diagnostic device.

[0060] The present application provides a solution that ensures that the version update information of the resource module is credible, public, and not easily tampered with by storing the version update information of the resource module on the blockchain, thereby improving the credibility and confidentiality of the data on the diagnostic device.

[0061] In addition, the decentralized nature and encryption mechanism of blockchain technology ensure the security of the diagnostic box serial number and related resource information. The serial number entered by the user can be verified on the blockchain to prevent forgery or tampering.

[0062] 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 data updating device, etc. The following takes the data updating system as an example to illustrate this embodiment and the following embodiments.

[0063] Based on this, the present application embodiment provides a data updating method, referring to Figure 1 , Figure 1 A flowchart of the first embodiment of the data updating method of this application is provided.

[0064] In this embodiment, the data updating method is applied to the diagnostic device, and includes steps S10 to S40:

[0065] Step S10, obtaining the diagnosis box serial number input by the user, and determining whether there is a resource package corresponding to the diagnosis box serial number, wherein the resource package includes a plurality of resource modules;

[0066] It should be noted that one diagnostic device can be connected to different diagnostic boxes. The diagnostic device obtains the diagnostic box serial number input by the user and can load related resource data.

[0067] In addition, it should be noted that the resource package includes but is not limited to the following resource modules: a. Large picture resource module (such as APP startup page, background page), b. Application function resource module (home page, more function page, diagnostic widget), c. Software menu module (diagnostic software menu, special function menu, etc.), d. Extension module (ADAS, endoscope, etc.), e. Personal information module;

[0068] Among them, different diagnostic boxes require different resource modules and resource module versions.

[0069] In addition, as an implementation method, when designing a resource package, a naming rule can be adopted to include the diagnostic box serial number in the name of the resource package. For example, the resource package can be named in the format of "serial number_version number", where the serial number part is the serial number of the diagnostic box. After the user enters the serial number of the diagnostic box on the diagnostic device, the diagnostic device constructs a resource package name based on the serial number entered by the user, and searches the local storage for a matching resource package name.

[0070] Step S40: If so, send a query request to the blockchain network, so that the blockchain network obtains version update information of each resource module based on the query request;

[0071] It should be noted that if there is a resource package corresponding to the diagnostic serial number in the diagnostic device, the resource package corresponding to the diagnostic serial number has been downloaded before. When the user enters the diagnostic box serial number again, he only needs to check whether the corresponding resource version is the latest version.

[0072] As an implementation method, the query request may include the diagnostic box serial number and the diagnostic device serial number, so that the blockchain can query the version update information of the resource module in the current diagnostic device based on the diagnostic box serial number in the query request.

[0073] Specifically, the blockchain network not only stores the version update record of the resource module corresponding to the diagnostic box serial number, but also stores the current version information of the resource module corresponding to the diagnostic box in the diagnostic device.

[0074] Then, the blockchain network compares the current version information with the version update record to obtain the version update information of the resource module in the current diagnostic device.

[0075] For example, there are diagnostic devices A, B, and C. Taking diagnostic device A as an example, diagnostic device A is loaded with relevant resource modules of diagnostic boxes a, b, and c. Taking the relevant resource modules of diagnostic boxes a and diagnostic boxes b as examples, the relevant resource modules of diagnostic box a loaded by diagnostic device A are large picture resource modules and application function resource modules, and their version numbers are 1.0 and 3.0 respectively; the relevant resource modules of diagnostic box b loaded by diagnostic device B are software menu modules and extension modules, and their version numbers are 1.0 and 4.0 respectively.

[0076] The blockchain network not only stores the version update records of the resource modules related to the diagnostic boxes a, b, and c, but also stores the current version information of the resource modules related to the diagnostic boxes a, b, and c downloaded in the diagnostic device A.

[0077] The following takes diagnostic box A as an example to illustrate the storage of version update records of its related resource modules in the blockchain network:

[0078] The version update record of the large image resource module of Diagnostic Box A is as follows:

[0079] (1) Version 1.0 (released on January 10, 2001), added a new function to optimize image loading speed.

[0080] (2) Version 2.0 (released on February 1, 2002), new features support high-definition image display.

[0081] (3) Version 3.0 (released on July 3, 2002), fixed the problem of image loading failure.

[0082] The update record of the application function resource module of diagnostic box b is as follows:

[0083] (1) Version 1.0 (released on January 10, 2001), added basic diagnostic function.

[0084] (2) Version 2.0 (released on February 1, 2002), added the remote data transmission function.

[0085] (3) Version 3.0 (released on July 3, 2002), fixed security threats during data transmission.

[0086] (4) Version 4.0 (released on January 2, 2003), added new features: real-time data analysis and report generation.

[0087] As another implementation, the blockchain network stores the version update record of the resource module corresponding to the diagnostic box serial number, but does not store the current version information of the resource module corresponding to the diagnostic box in the current diagnostic device. The diagnostic device first obtains the version information of the current resource module, and then sends a query request to the blockchain network. The query request includes the current version information of each resource module, so that the blockchain network compares the current version information of each resource module with the update record and generates the version update information of each resource module.

[0088] Step S50, obtaining version update information of each resource module returned by the blockchain network;

[0089] The version update information indicates the information of the resource modules that have differences between the current version information and the version update records.

[0090] Step S60: If the version update information shows that the version of the relevant resource module in the blockchain network has been updated, a request to download the latest version of the resource module is sent to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

[0091] It should be noted that the latest version resource module download request sent by the diagnostic device may include the diagnostic box serial number, the diagnostic device serial number, and the latest version number of the relevant resource module.

[0092] This embodiment provides a data update method. By storing version update information of a resource module on a blockchain, it can be ensured that the information is credible, public, and not easily tampered with, thereby improving the credibility and confidentiality of data on a diagnostic device.

[0093] In addition, the decentralized nature and encryption mechanism of blockchain technology ensure the security of the diagnostic box serial number and related resource information. The serial number entered by the user can be verified on the blockchain to prevent forgery or tampering.

[0094] 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 refer to the above introduction, and will not be repeated later. Figure 2 , step S60, if the version update information shows that the version of the relevant resource module in the blockchain network has been updated, then after sending a request to download the latest version of the resource module to the blockchain network, it also includes step S70:

[0095] Step S70: Overwrite the original resource module with the latest version of the resource module.

[0096] It should be noted that before performing the overwrite operation, the currently running resource module should be stopped first to avoid conflicts or data loss during the update process.

[0097] As an implementation method, the original resource module is backed up before overwriting so that it can be restored to the previous state when problems occur during the update process.

[0098] Then, overwrite the original resource module file with the latest version of the downloaded resource module file, ensuring that the file path and naming conventions are correct.

[0099] After confirming that the overwrite operation is complete, start the updated resource module and perform necessary configuration and settings.

[0100] System testing and verification can also be performed to ensure that the updated resource modules can function properly and check for any incompatibilities or errors.

[0101] If necessary, users can be notified about the updates and impacts of resource modules, as well as how to use the new version of the resource modules.

[0102] The embodiment of the present invention can repair known problems and loopholes by overwriting the original resource module with the latest version of the resource module, and can also introduce new functions and improvements to enhance user experience and satisfaction.

[0103] Based on the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the second embodiment can refer to the above introduction, and will not be repeated later. Figure 3 , step S10, after obtaining the diagnosis box serial number input by the user and determining whether there is a resource package corresponding to the diagnosis box serial number, it also includes steps S20 to S30:

[0104] Step S20: If it does not exist, a resource package download request is sent to the blockchain network, wherein the resource package download request includes the diagnostic box serial number;

[0105] Step S30, obtaining a resource package returned by the blockchain network, wherein the resource package returned by the blockchain network includes the latest versions of several resource modules.

[0106] Among them, if the diagnostic device does not have a resource package corresponding to the diagnostic box serial number, a resource package containing the latest version of the corresponding resource module is downloaded to the blockchain.

[0107] By sending a resource package download request to the blockchain network, the diagnostic device can obtain the latest version of the resource module and keep the device software and data resources updated.

[0108] 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 refer to the above introduction, and will not be repeated later. Figure 4 , step S70, after the latest version of the resource module overwrites the original resource module, it also includes step S80:

[0109] Step S80, in response to the diagnostic box switching instruction, obtaining the new diagnostic box serial number input by the user, and executing the step of: determining whether there is a resource package corresponding to the diagnostic box serial number, the resource package including a plurality of resource modules.

[0110] The user can click a button to switch the diagnostic box and then input a new diagnostic box serial number. At this time, the diagnostic device re-determines whether there is a resource package corresponding to the new diagnostic box serial number.

[0111] If it exists, the diagnostic device sends a query request to the blockchain network, so that the blockchain network can query and obtain the version update information of each resource module corresponding to the new diagnostic box serial number. The diagnostic device obtains the version update information of each resource module. If the version update information shows that the version of some resource modules in the blockchain network has been updated, a download request for the latest version of the resource module is sent to the blockchain network, so that the blockchain network can search and obtain the latest version of the resource module based on the download request and return it.

[0112] If it does not exist, the diagnostic device sends a resource package download request to the blockchain network, and the resource package download request includes the new diagnostic box serial number. Then, the resource package returned by the blockchain network is obtained, and the resource package includes the latest versions of several resource modules.

[0113] In the embodiment of the present invention, when the user switches the diagnostic box, it is re-determined whether there is a resource package corresponding to the diagnostic box serial number. If so, it is checked whether the resource module in the resource package is already the latest. If not, the latest resource module is downloaded. In this way, the resource modules in the diagnostic device can be kept up to date, so that the performance of the diagnostic device is in the best state.

[0114] The present application embodiment provides another data updating method, referring to Figure 5 , Figure 5 A flowchart of the fifth embodiment of the data updating method of this application is provided.

[0115] In this embodiment, the data update method is applied to a blockchain network, including steps S1000 to S6000:

[0116] Step S1000, obtaining a query request sent by a diagnostic device, wherein the query request is sent by the diagnostic device after obtaining a diagnostic box serial number input by a user and determining that there is a resource package corresponding to the diagnostic box serial number, wherein the resource package includes a plurality of resource modules;

[0117] Step S2000, obtaining version update information of each resource module based on the query request;

[0118] Specifically, the query request includes the diagnostic box serial number, and the blockchain network queries the preset index table based on the diagnostic box serial number to obtain the hash value of the corresponding resource package;

[0119] Then, based on the hash value of the resource package, the update record of each resource module in the resource package is queried from a preset version chain table;

[0120] Then, the current version information of each resource module is compared with the update record to generate version update information of each resource module.

[0121] Step S3000, returning the version update information of each resource module to the diagnostic device end;

[0122] Among them, the blockchain network returns the version update information of each resource module to the diagnostic device end. If the version update information shows that the version of the relevant resource module in the blockchain network has been updated, the diagnostic device end sends a download request for the latest version of the resource module to the blockchain network.

[0123] Step S4000, obtaining the resource module download request sent by the diagnostic device, wherein the resource module download request is sent by the diagnostic device when the version update information indicates that the version of the resource module has been updated;

[0124] Step S5000, searching and obtaining the latest version of the resource module based on the resource module download request;

[0125] Specifically, the blockchain network searches the version chain list for the hash value of the resource module of the latest version based on the hash value of the resource package;

[0126] Then, through the blockchain browser, based on the hash value of the latest version of the resource module, locate the block where the latest version of the resource module is located;

[0127] The resource module of the latest version is obtained based on the block search.

[0128] Step S6000: Return the latest version of the resource module to the diagnostic device.

[0129] After obtaining the latest version of the resource module, the diagnostic device stores or installs it according to the specific content of the resource module. For example, if the resource module is an application function resource module and an extension module, it needs to be installed; if the resource module is a static resource such as a large picture resource module, it does not need to be installed.

[0130] This embodiment provides a data update method. By storing version update information of a resource module on a blockchain, it can be ensured that the information is credible, public, and not easily tampered with, thereby improving the credibility and confidentiality of data on a diagnostic device.

[0131] In addition, the decentralized nature and encryption mechanism of blockchain technology ensure the security of the diagnostic box serial number and related resource information. The serial number entered by the user can be verified on the blockchain to prevent forgery or tampering.

[0132] Based on the fifth embodiment of the present application, in the sixth embodiment of the present application, the same or similar contents as those in the fifth embodiment can refer to the above description, and will not be repeated in the following. On this basis, the query request includes the serial number of the diagnostic box and the current version information of each resource module, please refer to Figure 6 , step S2000, obtaining version update information of each resource module based on the query request, and further comprising steps S2001 to S2003:

[0133] Step S2001, based on the diagnostic box serial number, query from a preset index table to obtain a hash value of the corresponding resource package;

[0134] The index table records the diagnostic box serial number and the hash value of the corresponding resource package.

[0135] The hash value is the unique identifier of the resource package and can be used to verify the integrity and accuracy of the resource package.

[0136] Step S2002, querying from a preset version chain table based on the hash value of the resource package to obtain update records of each resource module in the resource package;

[0137] Each resource package is provided with a corresponding version chain table for recording the update records of each resource module in the resource package.

[0138] Step S2003: compare the current version information of each resource module with the update record to generate version update information of each resource module.

[0139] The current version information of each resource module in the diagnosis box is compared with the update record queried in step S2002 to generate version update information of each resource module. The version update information may include the current version and the latest version of each resource module, which is used to guide subsequent version update operations.

[0140] As an implementation manner, the version update information may only include the current version and the latest version of the resource module to be updated.

[0141] The embodiment of the present invention sets an index table and a version chain list in the blockchain network, thereby managing data in a more systematic manner and finding and obtaining update records of each resource module more quickly.

[0142] Based on the fifth embodiment of the present application, in the seventh embodiment of the present application, the same or similar contents as those in the fifth embodiment can refer to the above introduction, and will not be repeated later. Figure 7 , step S5000, searching and obtaining the latest version of the resource module based on the resource module download request, further comprising steps S5001 to S5003:

[0143] Step S5001, searching the version chain list for the hash value of the resource module of the latest version based on the hash value of the resource package;

[0144] As an implementation method, hash values ​​of resource modules of different versions can be stored in a version linked list in chronological order. For example, from the beginning to the end of the version linked list, corresponding to the version numbers of the resource modules from high to low, at this time, as long as the hash value at the beginning of the version linked list is obtained, it is the hash value of the latest version of the resource module.

[0145] Step S5002, using a blockchain browser, based on the hash value of the latest version of the resource module, locate the block where the latest version of the resource module is located;

[0146] It should be noted that in the blockchain network, different versions of resource modules are distributed in different blocks.

[0147] Step S5003, obtaining the latest version of the resource module based on the block search.

[0148] Among them, since the block only stores the latest version of the resource module, the latest version of the resource module can be directly obtained based on the block.

[0149] The embodiment of the present invention obtains the hash value of the latest version of the resource module by acquiring the hash value at the head end in the version list, and locates the block of the latest version of the resource module based on the hash value through the blockchain browser, thereby improving the speed of querying the resource module in the blockchain network.

[0150] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data updating method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0151] The present application also provides a data updating device, which is arranged at the diagnostic device end, please refer to Figure 8 , the data updating device comprises:

[0152] The query module 10 is used to obtain the diagnostic box serial number input by the user, and determine whether there is a resource package corresponding to the diagnostic box serial number, the resource package including several resource modules; if so, send a query request to the blockchain network, so that the blockchain network obtains the version update information of each resource module based on the query request;

[0153] The download module 20 is used to obtain the version update information of each resource module returned by the blockchain network; if the version update information shows that the version of the relevant resource module in the blockchain network has been updated, a download request for the latest version of the resource module is sent to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

[0154] The data updating device provided by the present application adopts the data updating method in the above embodiment, which can solve the technical problem of low credibility and confidentiality of data on the current diagnostic equipment. Compared with the prior art, the beneficial effects of the data updating device provided by the present application are the same as the beneficial effects of the data updating method provided by the above embodiment, and the other technical features in the data updating device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0155] The present application provides a data update device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed 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 data update method in the above-mentioned embodiment one.

[0156] Reference below Fig. 9 , which shows a schematic diagram of the structure of a data update device suitable for implementing the embodiment of the present application. The data update 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. Fig. 9 The data update 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.

[0157] like Fig. 9As shown, the data update 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 data update 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 data update device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a data update 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 have alternatively.

[0158] 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.

[0159] The data update device provided by the present application adopts the data update method in the above embodiment, which can solve the technical problem of low credibility and confidentiality of data on the current diagnostic equipment. Compared with the prior art, the beneficial effects of the data update device provided by the present application are the same as the beneficial effects of the data update method provided by the above embodiment, and the other technical features in the data update device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0160] 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.

[0161] 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.

[0162] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data updating method in the above-mentioned embodiment.

[0163] 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.

[0164] The computer-readable storage medium may be included in the data updating device; or may exist independently without being assembled into the data updating device.

[0165] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the data update device, the data update device: obtains the diagnostic box serial number input by the user, and determines whether there is a resource package corresponding to the diagnostic box serial number, and the resource package includes several resource modules; if so, sends a query request to the blockchain network, so that the blockchain network obtains the version update information of each resource module based on the query request; obtains the version update information of each resource module returned by the blockchain network; if the version update information shows that the version of the relevant resource module in the blockchain network has been updated, sends a latest version of the resource module download request to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

[0166] 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).

Claims

1. A data updating method, characterized in that: Applied to the diagnostic device side, the method includes: Obtaining the diagnostic box serial number input by the user, and determining whether there is a resource package corresponding to the diagnostic box serial number, wherein the resource package includes several resource modules; If so, a query request is sent to the blockchain network, so that the blockchain network obtains version update information of each resource module based on the query request; Obtaining version update information of each resource module returned by the blockchain network; If the version update information shows that the version of the relevant resource module in the blockchain network has been updated, a request to download the latest version of the resource module is sent to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

2. The method according to claim 1, characterized in that If the version update information shows that the version of the relevant resource module in the blockchain network has been updated, the step of sending a download request for the latest version of the resource module to the blockchain network includes: The latest version of the resource module overwrites the original resource module.

3. The method according to claim 2, characterized in that After the step of obtaining the diagnostic box serial number input by the user and determining whether there is a resource package corresponding to the diagnostic box serial number, the following step further includes: If it does not exist, sending a resource package download request to the blockchain network, wherein the resource package download request includes the diagnostic box serial number; Obtain a resource package returned by the blockchain network, wherein the resource package returned by the blockchain network includes the latest versions of several resource modules.

4. The method according to claim 3, characterized in that After the step of overwriting the original resource module with the latest version of the resource module, the following step is further included: In response to the diagnosis box switching instruction, the new diagnosis box serial number input by the user is obtained, and the steps are performed: determining whether there is a resource package corresponding to the diagnosis box serial number, the resource package including several resource modules.

5. A data updating method, characterized in that: Applied to a blockchain network, the method comprises: Obtaining a query request sent by a diagnostic device, wherein the query request is sent by the diagnostic device after obtaining a diagnostic box serial number input by a user and determining that there is a resource package corresponding to the diagnostic box serial number, wherein the resource package includes a plurality of resource modules; Obtaining version update information of each resource module based on the query request; Returning the version update information of each resource module to the diagnostic device end; Acquire the resource module download request sent by the diagnostic device, where the resource module download request is sent by the diagnostic device when the version update information indicates that the version of the resource module has been updated; Searching and obtaining the latest version of the resource module based on the resource module download request; Return the latest version of the resource module to the diagnostic device.

6. The method according to claim 5, characterized in that The query request includes the diagnostic box serial number and the current version information of each resource module, and the step of querying and obtaining the version update information of each resource module based on the query request includes: Based on the diagnostic box serial number, query the preset index table to obtain the hash value of the corresponding resource package; Based on the hash value of the resource package, query the preset version chain table to obtain the update record of each resource module in the resource package; The current version information of each resource module is compared with the update record to generate version update information of each resource module.

7. The method according to claim 6, characterized in that The step of searching and obtaining the latest version of the resource module based on the resource module download request comprises: Searching the version chain list for the hash value of the resource module of the latest version based on the hash value of the resource package; Using a blockchain browser, locate the block where the latest version of the resource module is located based on the hash value of the latest version of the resource module; The resource module of the latest version is obtained based on the block search.

8. A data updating device, characterized in that: Set at the diagnostic equipment end, the device includes: A query module is used to obtain the diagnostic box serial number input by the user, and determine whether there is a resource package corresponding to the diagnostic box serial number, the resource package including several resource modules; if so, send a query request to the blockchain network, so that the blockchain network obtains version update information of each resource module based on the query request; A download module is used to obtain the version update information of each resource module returned by the blockchain network; if the version update information shows that the version of the relevant resource module in the blockchain network has been updated, a download request for the latest version of the resource module is sent to the blockchain network, so that the blockchain network searches for the latest version of the resource module based on the resource module download request and returns it.

9. A data updating 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 data updating method according to any one of claims 1 to 4 or the data updating method according to any one of claims 5 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 data updating method according to any one of claims 1 to 4 or the data updating method according to any one of claims 5 to 7 are implemented.