Virtual material writing method and system, electronic equipment and storage medium

By encrypting and consistency verification of virtual materials, and activating and protecting them on the product side, the data security and accuracy problems after virtual materials are solved, and the stability and certification capabilities of the product are improved.

CN120012170APending Publication Date: 2025-05-16FULSCIENCE AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510097865.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

After virtual materials are written to the product, there is a lack of protection of storage space, resulting in unexpected clearance of data and the product cannot be authorized and certified; at the same time, the virtual materials are written to lack confidentiality mechanisms, and there are security and accuracy problems.

Method used

The virtual material is encrypted through the upper end and sent to the product end, and the consistency verification is performed after writing, activate the target virtual material to take effect in the product end, and at the same time, the access permission is closed and the storage space protection mechanism is enabled.

Benefits of technology

Improve the security and accuracy of virtual material writing to the product, prevent accidental data removal, and ensure product stability and certification capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012170A_ABST
    Figure CN120012170A_ABST
Patent Text Reader

Abstract

The invention provides a write-in method and system of a virtual material, electronic equipment and a storage medium, the write-in method is applied to the write-in system of the virtual material comprising an upper computer end and a product end, and the write-in method comprises the following steps: the upper computer end carries out data encryption on a pre-imported virtual material to obtain a target virtual material, sending the target virtual material to a product end; the product end receives the target virtual material, and writes the target virtual material into a nonvolatile storage space arranged in the product end; in response to the fact that all the target virtual materials are written into the nonvolatile storage space, consistency verification is conducted on the target virtual materials, and a verification result is obtained; and activating the target virtual material in response to the verification result that the consistency verification is passed, so that the target virtual material takes effect in the product end. Through the method, the safety and the accuracy of writing the virtual material into the product are improved, and the stability of the product is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data communication technology, and in particular to a method, system, electronic device and storage medium for writing virtual materials. Background Art

[0002] Currently, in the process of importing virtual materials into products, the product needs to be restarted after importing the virtual materials in order to use the corresponding effects of the virtual materials and obtain the import results; among them, after the virtual materials are written into the product, due to the lack of storage space protection, it is easy to accidentally clear the storage space, which will cause the data stored in the product storage space to be erased when the product goes offline, resulting in the product being unable to be authorized and authenticated.

[0003] In addition, after the product imports virtual materials, the product will be vulnerable to attacks because the instruction response function of the virtual materials still exists. The writing process of virtual materials lacks a confidentiality mechanism, and the virtual materials covering the user's security information are at risk of leakage, which reduces the security and accuracy of writing virtual materials into the product, and thus reduces the stability of the product. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a method, system, electronic device and storage medium for writing virtual materials, wherein the upper end encrypts the data of the virtual materials and sends them to the product end, so that the product end writes the target virtual materials into the non-volatile storage space set in the product end, and performs a consistency check on the target virtual materials after writing them, so that after the check is passed, the target virtual materials are activated, so that the target virtual materials take effect in the product end, thereby improving the security and accuracy of writing virtual materials into products, and thereby improving the stability of the products.

[0005] The embodiment of the present application provides a method for writing a virtual material, the writing method is applied to a writing system for a virtual material; the writing system includes a host computer end and a product end, and the writing method includes:

[0006] The host computer encrypts the data of the pre-imported virtual material to obtain the target virtual material, and sends the target virtual material to the product end;

[0007] The target virtual material is received by the product end, and the target virtual material is written into a non-volatile storage space provided in the product end;

[0008] In response to the target virtual materials being written into the non-volatile storage space, performing consistency verification on the target virtual materials to obtain a verification result;

[0009] In response to the verification result being that the consistency verification is passed, the target virtual material is activated to make the target virtual material effective in the product end.

[0010] Furthermore, the writing method further includes:

[0011] In response to the target virtual material becoming effective, the product end closes the access permission for the target virtual material and activates the protection mechanism of the non-volatile storage space to ensure that the target virtual material cannot be written or deleted.

[0012] Furthermore, the host computer encrypts the data of the pre-imported virtual material to obtain the target virtual material, and sends the target virtual material to the product end, including:

[0013] The host computer encrypts the pre-imported virtual material using a preset encryption method to obtain a target virtual material, and sends the name data corresponding to the target virtual material to the product end;

[0014] In response to the product end having created the virtual material corresponding to the name data, the content data corresponding to the target virtual material is sent to the product end.

[0015] Furthermore, the step of receiving the target virtual material by the product end and writing the target virtual material into a non-volatile storage space provided in the product end includes:

[0016] The product end receives name data corresponding to the target virtual material, and determines the material type corresponding to the target virtual material based on the name data;

[0017] Based on the material type and the name data, creating a blank virtual material in a non-volatile storage space provided in the product end;

[0018] In response to receiving the content data corresponding to the target virtual material, the content data is written into the blank virtual material to write the target virtual material into the non-volatile storage space, and the writing result of the target virtual material is sent to the host computer.

[0019] Further, in response to the target virtual materials being written into the non-volatile storage space, performing consistency check on the target virtual materials to obtain a check result includes:

[0020] In response to the target virtual materials being written into the non-volatile storage space, obtaining a calibration virtual material corresponding to the target virtual material in a cloud server, and calculating a first hash value corresponding to the calibration virtual material;

[0021] Calculating a second hash value corresponding to the data in the target virtual material, and comparing the second hash value with the first hash value for consistency, to obtain a verification result of consistency verification of the target virtual material;

[0022] The verification result is sent to the host computer.

[0023] The embodiment of the present application also provides a system for writing virtual materials, the writing system comprising:

[0024] The upper computer end is used to encrypt the data of the pre-imported virtual materials, obtain the target virtual materials, and send the target virtual materials to the product end;

[0025] The product end is used to receive the target virtual material and write the target virtual material into a non-volatile storage space set in the product end; in response to the target virtual materials being written into the non-volatile storage space, the target virtual material is subjected to a consistency check to obtain a check result; in response to the check result being that the consistency check has been passed, the target virtual material is activated to make the target virtual material effective in the product end.

[0026] Furthermore, the host computer includes:

[0027] A data encryption module is used to encrypt the data of the pre-imported virtual material to obtain the target virtual material;

[0028] The data sending module is used to send the target virtual material to the product end.

[0029] Furthermore, when the data encryption module is used to encrypt the data of the pre-imported virtual material to obtain the target virtual material, the data encryption module is used to:

[0030] The pre-imported virtual material is encrypted using a preset encryption method to obtain the target virtual material.

[0031] Furthermore, when the data sending module is used to send the target virtual material to the product end, the data sending module is used to:

[0032] Send the name data corresponding to the target virtual material to the product end;

[0033] In response to the product end having created the virtual material corresponding to the name data, the content data corresponding to the target virtual material is sent to the product end.

[0034] Furthermore, the product end includes:

[0035] A data writing module, used for receiving the target virtual material, and writing the target virtual material into a non-volatile storage space provided in the product end;

[0036] a data verification module, configured to perform consistency verification on the target virtual materials in response to the target virtual materials being written into the non-volatile storage space to obtain a verification result;

[0037] The data activation module is used to activate the target virtual material in response to the verification result being that the consistency verification is passed, so that the target virtual material takes effect in the product end.

[0038] Furthermore, when the data writing module is used to receive the target virtual material and write the target virtual material into the non-volatile storage space provided in the product end, the data writing module is used to:

[0039] receiving name data corresponding to the target virtual material, and determining a material type corresponding to the target virtual material based on the name data;

[0040] Based on the material type and the name data, creating a blank virtual material in a non-volatile storage space provided in the product end;

[0041] In response to receiving the content data corresponding to the target virtual material, the content data is written into the blank virtual material to write the target virtual material into the non-volatile storage space, and the writing result of the target virtual material is sent to the host computer.

[0042] Further, in response to the target virtual materials being written into the non-volatile storage space, the data verification module performs consistency verification on the target virtual materials and obtains the verification result, the data verification module is used to:

[0043] In response to the target virtual materials being written into the non-volatile storage space, obtaining a calibration virtual material corresponding to the target virtual material in a cloud server, and calculating a first hash value corresponding to the calibration virtual material;

[0044] Calculating a second hash value corresponding to the data in the target virtual material, and comparing the second hash value with the first hash value for consistency, to obtain a verification result of consistency verification of the target virtual material;

[0045] The verification result is sent to the host computer.

[0046] Furthermore, the product end also includes a data protection module, and the data protection module is used to:

[0047] In response to the target virtual material being effective, the access permission for the target virtual material is closed, and the protection mechanism of the non-volatile storage space is enabled to ensure that the target virtual material cannot be written or deleted.

[0048] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for writing virtual materials as described above are performed.

[0049] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for writing virtual materials as described above are executed.

[0050] The embodiments of the present application provide a method, system, electronic device and storage medium for writing virtual materials, wherein the writing method is applied to a system for writing virtual materials; the writing system includes a host computer end and a product end, and the writing method includes: the host computer end encrypts data of pre-imported virtual materials to obtain target virtual materials, and sends the target virtual materials to the product end; the product end receives the target virtual materials and writes the target virtual materials into a non-volatile storage space provided in the product end; in response to the target virtual materials being written into the non-volatile storage space, the target virtual materials are subjected to a consistency check to obtain a check result; in response to the check result being that the consistency check has been passed, the target virtual materials are activated to make the target virtual materials effective in the product end.

[0051] Compared with the prior art method in which, during the process of importing virtual materials into products, the product needs to be restarted after the virtual materials are imported before the corresponding effects of the virtual materials can be used and the import results can be obtained, the virtual materials are encrypted by the upper end and then sent to the product end, so that the product end writes the target virtual materials into the non-volatile storage space set in the product end, and performs a consistency check on the target virtual materials after writing them, so that the target virtual materials are activated after the check is passed, so that the target virtual materials take effect in the product end, thereby improving the security and accuracy of writing virtual materials into products, and thereby improving the stability of the products.

[0052] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 One of the flowcharts of a method for writing virtual materials provided in an embodiment of the present application;

[0055] Figure 2 A second flowchart of a method for writing virtual materials provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of the structure of a virtual material writing system provided in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of the structure of a host computer provided in an embodiment of the present application;

[0058] Figure 5 One of the structural schematic diagrams of a product end provided in an embodiment of the present application;

[0059] Figure 6 The second structural diagram of a product end provided in an embodiment of the present application;

[0060] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0062] After research, it was found that, currently, in the process of importing virtual materials into products, the product needs to be restarted after importing the virtual materials in order to use the corresponding effects of the virtual materials and obtain the import results; among them, after the virtual materials are written into the product, due to the lack of storage space protection, it is easy for the storage space to be accidentally cleared, which will cause the data stored in the product storage space to be erased when the product goes offline, resulting in the product being unable to be authorized and authenticated.

[0063] In addition, after the product imports virtual materials, the product will be vulnerable to attacks because the instruction response function of the virtual materials still exists. The writing process of virtual materials lacks a confidentiality mechanism, and the virtual materials covering the user's security information are at risk of leakage, which reduces the security and accuracy of writing virtual materials into the product, and thus reduces the stability of the product.

[0064] Based on this, an embodiment of the present application provides a method for writing virtual materials, in which the upper end encrypts the data of the virtual materials and sends it to the product end, so that the product end writes the target virtual materials into a non-volatile storage space set in the product end, and performs a consistency check on the target virtual materials after writing them. After the check is passed, the target virtual materials are activated, so that the target virtual materials take effect in the product end, thereby improving the security and accuracy of writing virtual materials into products, and thereby improving the stability of the products.

[0065] See also Figure 1 , Figure 1 This is one of the flow charts of a method for writing virtual materials provided in an embodiment of the present application. Figure 1 As shown in, the virtual material writing method provided in the embodiment of the present application is generally applied to the virtual material writing system, the writing system includes a host computer end and a product end, and the writing method includes:

[0066] S101. The host computer encrypts the data of the pre-imported virtual material to obtain the target virtual material, and sends the target virtual material to the product end.

[0067] In the embodiments of the present application, virtual materials refer to data information for realizing specific functions of a product; the product end generally refers to a device with information processing and control capabilities.

[0068] Exemplarily, the virtual materials may include but are not limited to files, information data, program packages and security data, etc.; the product end may include but is not limited to a vehicle device, a processing device, a computing device and a control device, etc.

[0069] The product end is generally configured with at least one processor and one controller, and is also configured with other devices or modules; the host computer end communicates data with the product end through a preset communication bus.

[0070] In this step, during the specific implementation, first, the external side will pre-import the virtual materials to the host computer side according to the corresponding requirements for the product side; then, the host computer side will encrypt the virtual materials using a preset encryption algorithm to obtain the target virtual materials; finally, the target virtual materials will be sent to the product side using the communication bus pre-established between the host computer side and the product side.

[0071] In one implementation of the present application, during specific implementation, step S101 may include:

[0072] S1011. The host computer encrypts the pre-imported virtual material data using a preset encryption method to obtain a target virtual material, and sends the name data corresponding to the target virtual material to the product end.

[0073] In the embodiment of the present application, the preset encryption algorithm may include a secure hash algorithm, such as the SHA-512 algorithm (Secure Hash Algorithm 512).

[0074] Specifically, when the encryption algorithm is the SHA-512 algorithm, the virtual material is encrypted through the following steps to obtain the target virtual material: first, the virtual material is padded to a specific length and divided into blocks of a fixed size; then, a set of initial hash values ​​(e.g., H0, H1, ..., H7) is set, and the initial hash value is a constant specified by NIST; thereafter, a series of operations including logical operations, modular addition, displacement and rotation are applied to each message block; finally, after all blocks are processed, the final hash values ​​are connected as output to obtain the target virtual material.

[0075] In this step, after obtaining the target virtual material, the name data corresponding to the target virtual material is first sent to the product end, so that the product end creates a blank virtual material based on the name data.

[0076] S1012: In response to the product end having created the virtual material corresponding to the name data, sending content data corresponding to the target virtual material to the product end.

[0077] In this step, when a response signal is obtained from the production end indicating that the virtual material corresponding to the name data has been created, the content data corresponding to the target virtual material is sent to the product end.

[0078] As an example of sending the name data corresponding to the target virtual material to the product end, assume that the certificate file (target virtual material) is sent to the vehicle device end (product end). First, the host computer sends the file name data corresponding to the certificate file to the vehicle device end; then, after the host computer receives the response signal that the file name data has been written into the vehicle device, the content data corresponding to the certificate file is sent to the vehicle device end; finally, the host computer receives the response signal that the content data has been written into the vehicle device.

[0079] S102: The product end receives the target virtual material, and writes the target virtual material into a non-volatile storage space provided in the product end.

[0080] In the embodiment of the present application, the non-volatile storage space refers to a FLASH storage space, which can save data after the device is powered off. FLASH storage is based on floating gate transistor technology. Each storage cell consists of a floating gate and a control gate. By applying voltage to the control gate, electrons can be "tunneled" into or out of the floating gate, thereby changing its charge state. These two states represent 0 and 1 in binary data.

[0081] A security area is reserved in advance in the non-volatile storage space for storing target virtual materials, and the data in the security area is set to be non-erasable.

[0082] In this step, during the specific implementation, first, the product end receives the name data corresponding to the target virtual material and determines the material type of the target virtual material; then, based on the material type and name data, a blank virtual material is created in the non-volatile storage space set in the product end; thereafter, the received content data sent by the host computer end is written into the blank virtual material to write the target virtual material into the non-volatile storage space; finally, the writing result of the target virtual material is sent to the host computer end.

[0083] In an embodiment of the present application, the target virtual material may include but is not limited to name data and content data; here, the data frame in the target virtual material may include a start frame, an intermediate frame and an end frame, wherein the start frame and the end frame in the data frame must exist, the intermediate frame can be 0 frames or multiple frames, and the start frame and the end frame are used by the product end to determine the start and end of each data frame of the target virtual material.

[0084] Furthermore, while the product end receives the target virtual material sent by the host computer end and writes the target virtual material into the non-volatile storage space, the product end can also receive external virtual materials sent by the user, and in response to receiving the external virtual material, write the external virtual material into the non-volatile storage space.

[0085] In one implementation of the present application, during specific implementation, step S102 may include:

[0086] S1021. The product end receives name data corresponding to the target virtual material, and determines a material type corresponding to the target virtual material based on the name data.

[0087] In this step, the product end receives the name data corresponding to the target virtual material sent by the host computer end, and determines the material type corresponding to the target virtual material based on the name data.

[0088] When receiving the name data corresponding to the target virtual material, the product end sequentially receives the start frame, the middle frame and the end frame corresponding to the name data to record the data corresponding to the middle frame.

[0089] For example, when sending a security password certificate file (target virtual material) to the vehicle device end (product end), based on the name corresponding to the security password certificate, it can be determined that the material type corresponding to the target virtual material is the security certificate type.

[0090] S1022. Based on the material type and the name data, create a blank virtual material in a non-volatile storage space set in the product end.

[0091] In this step, the product end creates a blank virtual material in a non-volatile storage space (FLASH storage space) provided in the product end based on the material type and name data; wherein the blank virtual material is used to write content data corresponding to the target virtual material.

[0092] Furthermore, after creating the blank virtual material, the product end writes the name data and sends the result of creating the blank virtual material to the host computer end.

[0093] S1023. In response to receiving the content data corresponding to the target virtual material, write the content data into the blank virtual material to write the target virtual material into the non-volatile storage space, and send the writing result of the target virtual material to the host computer.

[0094] In this step, during the specific implementation, first, the product end receives the content data corresponding to the target virtual material sent by the host computer end; then, the start frame, middle frame and end frame corresponding to the content data are written into the blank virtual material in sequence, so as to write the target virtual material into the non-volatile storage space; finally, the writing result of the target virtual material is sent to the host computer end.

[0095] S103: In response to the target virtual materials being written into the non-volatile storage space, a consistency check is performed on the target virtual materials to obtain a check result.

[0096] In an embodiment of the present application, the verification method for consistency verification of the target virtual material is determined by the host computer end and the product end through negotiation in advance for the target virtual material; wherein, the consistency verification may include multiple verification methods. In an embodiment of the present application, the consistency verification between the host computer end and the product end is generally a hash value verification.

[0097] In one implementation of the present application, during specific implementation, step S103 may include:

[0098] S1031. In response to the target virtual materials being written into the non-volatile storage space, a calibrated virtual material corresponding to the target virtual material is obtained in a cloud server, and a first hash value corresponding to the calibrated virtual material is calculated.

[0099] In this step, to ensure the consistency of the target virtual material in the non-volatile storage space, the product end obtains the calibrated virtual material corresponding to the target virtual material from the cloud server, and uses a preset cryptographic hash function to calculate the first hash value corresponding to the data in the calibrated virtual material.

[0100] In the embodiment of the present application, the hash value generally refers to an MD5 (Message-Digest Algorithm 5) hash value. The cryptographic hash function can receive a message of any length and generate a 128-bit (16-byte) fixed-length hash value or "message digest".

[0101] S1032: Calculate a second hash value corresponding to the data in the target virtual material, and compare the second hash value with the first hash value for consistency, to obtain a verification result of a consistency verification of the target virtual material.

[0102] In this step, during the specific implementation, first, based on the data in the target virtual material, a second hash value corresponding to the data is calculated using a preset cryptographic hash function; then, the second hash value is compared with the first hash value for consistency; finally, a verification result of the consistency verification of the target virtual material is obtained.

[0103] Among them, when the second hash value is inconsistent with the first hash value, the verification result of the consistency check on the target virtual material is determined to be failed; when the second hash value is consistent with the first hash value, the verification result of the consistency check on the target virtual material is determined to be passed.

[0104] S1033. Send the verification result to the host computer.

[0105] In this step, the product end sends the consistency verification result of the target virtual material and the calibrated virtual material to the host computer end through a preset communication bus.

[0106] S104: In response to the verification result being that the consistency verification is passed, activating the target virtual material to make the target virtual material effective in the product end.

[0107] In this step, during the specific implementation, first, in response to the verification result of the target virtual material being through the consistency check, the target virtual material is activated in the product end so that the target virtual material takes effect in the product end; then, the effectiveness status of the target virtual material is sent to the upper computer end; finally, based on the effective target virtual material, the product end is activated for the corresponding function or indication of the target virtual material.

[0108] Optional, see Figure 2 , Figure 2 This is a second flow chart of a method for writing virtual materials provided in an embodiment of the present application. Figure 2 As shown in, in addition to the method for writing virtual materials described in steps S101 to S104, the embodiment of the present application also includes step S105. Specifically, step S105 is used to illustrate a method for ensuring that the target virtual material cannot be written or deleted after the target virtual material takes effect in the product end, so as to improve the security of the target virtual material being written to the product end.

[0109] S105. In response to the target virtual material becoming effective, the product end closes access rights to the target virtual material and activates a protection mechanism for the non-volatile storage space to ensure that the target virtual material cannot be written or deleted.

[0110] In this step, during the specific implementation, first, the product side responds to the target virtual material being effective by closing the access rights for writing the target virtual material, that is, when the host computer side issues relevant instructions for the target virtual material again, the product side will not respond; then, the protection mechanism of the non-volatile storage space is enabled to ensure that the target virtual material stored in the non-volatile storage space cannot be written or deleted; finally, the product side sends the instruction information of the above actions to the host computer side.

[0111] The method for writing virtual materials provided in the embodiment of the present application encrypts the data of the virtual materials through the upper end and sends it to the product end, so that the product end writes the target virtual materials into the non-volatile storage space set in the product end, and performs a consistency check on the target virtual materials after writing them. After the check is passed, the target virtual materials are activated, so that the target virtual materials take effect in the product end, thereby improving the security and accuracy of writing virtual materials into products, and further improving the stability of the products.

[0112] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a virtual material writing system provided in an embodiment of the present application. Figure 3 As shown in , the writing system 300 includes:

[0113] The upper computer end 310 is used to encrypt the data of the pre-imported virtual material to obtain the target virtual material, and send the target virtual material to the product end;

[0114] The product end 320 is used to receive the target virtual material and write the target virtual material into a non-volatile storage space set in the product end; in response to the target virtual materials being written into the non-volatile storage space, performing a consistency check on the target virtual material to obtain a check result; in response to the check result being that the consistency check has passed, activating the target virtual material to make the target virtual material effective in the product end.

[0115] For further information, see Figure 4 , Figure 4 This is a schematic diagram of the structure of a host computer provided in an embodiment of the present application. Figure 4 As shown in , the host computer end 310 includes:

[0116] The data encryption module 311 is used to encrypt the data of the pre-imported virtual material to obtain the target virtual material;

[0117] The data sending module 312 is used to send the target virtual material to the product end.

[0118] Furthermore, when the data encryption module 311 is used to encrypt the data of the pre-imported virtual material to obtain the target virtual material, the data encryption module 311 is used to:

[0119] The pre-imported virtual material is encrypted using a preset encryption method to obtain the target virtual material.

[0120] Furthermore, when the data sending module 312 is used to send the target virtual material to the product end, the data sending module 312 is used to:

[0121] Send the name data corresponding to the target virtual material to the product end;

[0122] In response to the product end having created the virtual material corresponding to the name data, the content data corresponding to the target virtual material is sent to the product end.

[0123] For further information, see Figure 5 , Figure 6 , Figure 5 This is one of the structural diagrams of a product end provided in an embodiment of the present application. Figure 6 This is a second structural diagram of a product end provided in an embodiment of the present application. Figure 5 As shown in , the product end 320 includes:

[0124] A data writing module 321 is used to receive the target virtual material and write the target virtual material into a non-volatile storage space provided in the product end;

[0125] A data verification module 322 is used for performing consistency verification on the target virtual materials in response to the target virtual materials being written into the non-volatile storage space to obtain a verification result;

[0126] The data activation module 323 is used to activate the target virtual material in response to the verification result being that the consistency verification is passed, so that the target virtual material takes effect in the product end.

[0127] Furthermore, when the data writing module 321 is used to receive the target virtual material and write the target virtual material into the non-volatile storage space provided in the product end, the data writing module 321 is used to:

[0128] receiving name data corresponding to the target virtual material, and determining a material type corresponding to the target virtual material based on the name data;

[0129] Based on the material type and the name data, creating a blank virtual material in a non-volatile storage space provided in the product end;

[0130] In response to receiving the content data corresponding to the target virtual material, the content data is written into the blank virtual material to write the target virtual material into the non-volatile storage space, and the writing result of the target virtual material is sent to the host computer.

[0131] Further, in response to the target virtual materials being written into the non-volatile storage space, the data verification module 322 performs consistency verification on the target virtual materials, and when the verification result is obtained, the data verification module 322 is used to:

[0132] In response to the target virtual materials being written into the non-volatile storage space, obtaining a calibration virtual material corresponding to the target virtual material in a cloud server, and calculating a first hash value corresponding to the calibration virtual material;

[0133] Calculating a second hash value corresponding to the data in the target virtual material, and comparing the second hash value with the first hash value for consistency, to obtain a verification result of consistency verification of the target virtual material;

[0134] The verification result is sent to the host computer.

[0135] Further, such as Figure 5 As shown in , the product end 320 also includes a data protection module 324, and the data protection module 324 is used to:

[0136] In response to the target virtual material being effective, the access permission for the target virtual material is closed, and the protection mechanism of the non-volatile storage space is enabled to ensure that the target virtual material cannot be written or deleted.

[0137] The virtual material writing system provided in the embodiment of the present application encrypts the data of the virtual material through the upper end and sends it to the product end, so that the product end writes the target virtual material into the non-volatile storage space set in the product end, and performs a consistency check on the target virtual material after writing it. After the check is passed, the target virtual material is activated, so that the target virtual material takes effect in the product end, thereby improving the security and accuracy of writing virtual materials into products, and further improving the stability of the products.

[0138] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown in , the electronic device 700 includes a processor 710 , a memory 720 and a bus 730 .

[0139] The memory 720 stores machine-readable instructions executable by the processor 710. When the electronic device 700 is running, the processor 710 communicates with the memory 720 via the bus 730. When the machine-readable instructions are executed by the processor 710, the above-mentioned Figure 1 as well as Figure 2The steps of the method for writing virtual materials in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0140] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 as well as Figure 2 The steps of the method for writing virtual materials in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0142] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0143] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0145] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0146] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for writing virtual materials, characterized in that: The writing method is applied to a writing system for virtual materials; the writing system includes a host computer end and a product end, and the writing method includes: The host computer encrypts the data of the pre-imported virtual material to obtain the target virtual material, and sends the target virtual material to the product end; The target virtual material is received by the product end, and the target virtual material is written into a non-volatile storage space provided in the product end; In response to the target virtual materials being written into the non-volatile storage space, performing consistency verification on the target virtual materials to obtain a verification result; In response to the verification result being that the consistency verification is passed, the target virtual material is activated to make the target virtual material effective in the product end.

2. The method according to claim 1, characterized in that The writing method further comprises: In response to the target virtual material becoming effective, the product end closes the access permission for the target virtual material and activates the protection mechanism of the non-volatile storage space to ensure that the target virtual material cannot be written or deleted.

3. The method according to claim 1, characterized in that The upper computer end encrypts data of the pre-imported virtual material to obtain the target virtual material, and sends the target virtual material to the product end, including: The host computer encrypts the pre-imported virtual material using a preset encryption method to obtain a target virtual material, and sends the name data corresponding to the target virtual material to the product end; In response to the product end having created the virtual material corresponding to the name data, the content data corresponding to the target virtual material is sent to the product end.

4. The method according to claim 1, characterized in that: The receiving the target virtual material by the product end and writing the target virtual material into a non-volatile storage space set in the product end includes: The product end receives name data corresponding to the target virtual material, and determines the material type corresponding to the target virtual material based on the name data; Based on the material type and the name data, creating a blank virtual material in a non-volatile storage space provided in the product end; In response to receiving the content data corresponding to the target virtual material, the content data is written into the blank virtual material to write the target virtual material into the non-volatile storage space, and the writing result of the target virtual material is sent to the host computer.

5. The method according to claim 1, characterized in that In response to the target virtual materials being written into the non-volatile storage space, performing consistency check on the target virtual materials to obtain a check result, including: In response to the target virtual materials being written into the non-volatile storage space, obtaining a calibration virtual material corresponding to the target virtual material in a cloud server, and calculating a first hash value corresponding to the calibration virtual material; Calculating a second hash value corresponding to the data in the target virtual material, and comparing the second hash value with the first hash value for consistency, to obtain a verification result of consistency verification of the target virtual material; The verification result is sent to the host computer.

6. A system for writing virtual materials, characterized in that: The writing system comprises: The upper computer end is used to encrypt the data of the pre-imported virtual materials, obtain the target virtual materials, and send the target virtual materials to the product end; The product end is used to receive the target virtual material and write the target virtual material into a non-volatile storage space set in the product end; in response to the target virtual materials being written into the non-volatile storage space, the target virtual material is subjected to a consistency check to obtain a check result; in response to the check result being that the consistency check has been passed, the target virtual material is activated to make the target virtual material effective in the product end.

7. The system according to claim 6, characterized in that The host computer terminal includes: A data encryption module is used to encrypt the data of the pre-imported virtual material to obtain the target virtual material; The data sending module is used to send the target virtual material to the product end.

8. The system according to claim 6, characterized in that The product end includes: A data writing module, used for receiving the target virtual material, and writing the target virtual material into a non-volatile storage space provided in the product end; a data verification module, configured to perform consistency verification on the target virtual materials in response to the target virtual materials being written into the non-volatile storage space to obtain a verification result; The data activation module is used to activate the target virtual material in response to the verification result being that the consistency verification is passed, so that the target virtual material takes effect in the product end.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the method for writing virtual materials as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for writing virtual materials as claimed in any one of claims 1 to 5 are executed.