SDK file format conversion and decryption printing method, device, equipment and storage medium

Through the SDK file format conversion and decryption printing method, the file format incompatibility and decryption failure problems between 3D printing devices are solved, file conversion and decryption printing between different devices are realized, and limited or confidential printing under intellectual property authorization is supported.

CN113806294BActive Publication Date: 2025-09-09SHENZHEN CBD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111072650.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2025-09-09
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

In the existing technology, the slice file format of 3D printing equipment is not unified, resulting in incompatibility between devices from different manufacturers, and encrypted slice files are prone to failure during decryption and printing, especially due to insufficient memory in high-resolution situations.

Method used

Two SDK file format conversion methods and decryption printing methods are provided. File format conversion and encryption and decryption operations are performed through the computer control unit, including resolution judgment, data compression, encryption and decryption processing, to ensure that files can be converted and decrypted and printed between different devices.

Benefits of technology

It realizes file format conversion and decryption printing between 3D printing devices of different manufacturers, solves device compatibility issues, avoids the problem of insufficient memory under high resolution, and supports limited or confidential printing under intellectual property authorization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113806294B_ABST
    Figure CN113806294B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of 3D printing model preprocessing, and in particular relates to SDK file format conversion and decryption printing methods, devices, equipment and storage media; the SDK file format conversion method is used to convert the fourth target file and the seventh target file into a first format file in an open storage form through the SDK program conversion module, and this process corresponds to method 2 and device 2 of the present invention; or the SDK file format conversion method is used to convert the first format file in an open storage form into a fourth target file through the SDK program conversion module, or further into a seventh target file, and this process corresponds to method 1 and device 1 of the present invention; the fourth target file or the seventh target file is then decrypted and printed by the 3D printing device, and this process corresponds to method 3 and device 3 of the present invention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of 3D printing model preprocessing, and specifically relates to SDK file format conversion and decryption printing method, device, equipment and storage medium. Background Art

[0002] With the rapid development of 3D printing technology, the widespread adoption of 3D printing equipment in the manufacturing industry, and growing competition in the consumer market, users are placing increasing emphasis on the confidentiality of original design files. Consequently, there are increasingly stringent requirements for data security and confidentiality in 3D printing. Furthermore, some figurine and industrial model design companies, during data distribution and sample printing trials, require serial number authorization for designated 3D printers to further protect their original works. This allows for limited or confidential printing under intellectual property rights. Therefore, implementing primary encryption for slice files has become common practice. However, encryption often involves cracking, and once cracked, primary encryption files are no longer sufficient for confidential intellectual property printing. Therefore, it is necessary to further strengthen the encryption level of primary encrypted slice files, using advanced encryption slice files to enhance file confidentiality.

[0003] This leads to several problems. First, the slice file formats generated by pre-processing software from different manufacturers are different. Especially for the slice files generated by pre-processing software in the field of stereolithography 3D printing, there is currently no standard file format that can be used by different 3D printing devices for universal printing. Therefore, slice files of different formats need to be converted to each other so that they can be read and printed by 3D printing devices that can recognize the corresponding format. Second, the slice file formats generated by pre-processing software from different manufacturers are different. The encryption key is not easy to be disclosed, so the format conversion cannot be performed directly. Therefore, it is necessary to first convert the other format files through the SDK (Software Development Kit). Kit, software development kit) conversion module converts it into a first format file in a specified open storage format, i.e., the first format file in this application, which is then converted by the target manufacturer into their respective specified primary encrypted slice files and advanced encrypted slice files, i.e., the fourth target file and the seventh target file in this application; accordingly, the fourth target file and the seventh target file can also be converted into the first format file in an open storage format through the inverse operation, so that other manufacturers can convert them into print files that their machines can recognize; third, with the development of LCD printing equipment, generally with 4K resolution LCD screens as the basic dividing line, 3D printing equipment under the new enhanced encryption strategy above 4K resolution, in order to be compatible with the decryption printing of the original primary encrypted slice files below 4K resolution, further enhances the encryption measures on the original primary encrypted slice files to form advanced encrypted slice files. Therefore, for 3D printing equipment from different manufacturers, especially for primary encrypted slice files and advanced encrypted slice files, or slice files in other formats, it is necessary to make judgments and implement different decryption printing strategies;

[0004] Secondly, the applicant has previously submitted an invention application with application number 202110388946X, entitled "Encryption method, decryption printing method and 3D printing device for 3D printing model slice files", which has proposed a corresponding encryption strategy to improve file confidentiality. However, in the encryption process, the encryption signature process performs SHA-256 operations on the encrypted parameter area, preview image, and layer data in the signature encryption file. When the number of slice files is too large and the amount of content is too large, the complex encryption strategy will encounter the problem of insufficient memory of the 3D printing device, resulting in decryption and printing failure. Therefore, this problem needs to be solved under the new encryption strategy.

[0005] The technical implementation processes of format conversion of the first format file in the open storage form to the primary encrypted slice file or the advanced encrypted slice file, format conversion of the primary encrypted slice file or the advanced encrypted slice file to the first format file in the open storage form, and decryption printing of the primary encrypted slice file or the advanced encrypted slice file by the printing device are closely related. Therefore, it is necessary to provide a complete technical solution, which can not only enable mutual conversion between different slice files, but also generate primary encrypted slice files or advanced encrypted slice files according to actual needs, and realize decryption printing of the two slice files. It is also necessary to adopt a simpler encryption strategy to avoid the problem of decryption printing failure caused by insufficient memory of the 3D printing device when the slice file has too many layers and the content data volume is too large. Summary of the Invention

[0006] In response to the situation in the background technology, the present invention provides two SDK file format conversion methods, so that other manufacturers can convert their specific slice file format into a first format file in an open storage form, and then use the first SDK file format conversion method of this application to convert it into the target manufacturer's designated primary encrypted slice file and advanced encrypted slice file; it can also use the second SDK file format conversion method of this application to convert the target manufacturer's designated primary encrypted slice file or advanced encrypted slice file into a first format file in an open storage form, so that other manufacturers can convert it into a print file that their machines can recognize; it can also use the SDK file decryption printing method of this application to execute different decryption printing strategies for primary encrypted slice files and advanced encrypted slice files. The technical solutions adopted by the present invention are as follows:

[0007] According to a first aspect of the present invention, two SDK file format conversion methods and an SDK file decryption printing method are provided, wherein:

[0008] Method 1, an SDK file format conversion method, for converting a first format file in an open storage form into a specified fourth target file of primary encryption or a seventh target file of advanced encryption, comprising the following steps:

[0009] SA01, the computer control unit reads the first format file in the storage unit;

[0010] SA02: The control unit determines whether the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis based on the resolution parameter / machine model data / slice image resolution; if it is determined that the applicable resolution of the first format file is less than the resolution setting value on both the X / Y axis, the control unit proceeds to step SA11; if it is determined that the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis, the control unit proceeds to step SA03;

[0011] SA03: The control unit converts the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0012] SA04: The control unit compresses the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layers of data.

[0013] SA05: The control unit performs primary encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple primary encrypted compressed layer data;

[0014] SA06: The control unit randomly extracts X discontinuous layers of the first-level encrypted and compressed layer data from the fourth target file and performs second-level encryption on the data to obtain a fifth slice file;

[0015] SA07: The control unit performs secondary encryption on the printing parameters of the fifth slicing file to obtain a sixth slicing file;

[0016] SA08. The control unit performs a hash operation on the printing parameter content in the fifth slice file and performs secondary encryption on the operation result to obtain a hash operation encryption signature;

[0017] SA09: The control unit concatenates the hash operation encrypted signature to the end of the sixth slice file to form a seventh target file.

[0018] SA10: The control unit completes the final storage of the seventh target file in the designated storage path, and then proceeds to step SA15;

[0019] SA11: The control unit converts each slice image and preview image in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0020] SA12: The control unit compresses the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layers of data.

[0021] SA13: The control unit performs primary encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple primary encrypted compressed layer data;

[0022] SA14: The control unit completes the final storage of the fourth target file in the designated storage path;

[0023] SA15. The process ends.

[0024] In the present method, preferably, when the control unit randomly extracts X discontinuous layers of the first-level encrypted compressed layer data in the fourth target file and performs second-level encryption to obtain the fifth slice file in step SA06, the number of the randomly extracted X layers is concentrated in the range of 11%-89% of the total number of layers; the value of X is a specified positive integer; and the resolution setting value in step SA02 includes 2048, 3840, 4096, 7680, 15260, or 30720.

[0025] In the present method, preferably, when the control unit compresses multiple layer data of the second slice file to obtain a third slice file having multiple compressed layer data, the compression rules of the layer data include: storing repeated single digits in a continuous data segment into the highest bit of the compressed data segment, and storing the count value into the lower 7 bits of the compressed data segment; or storing repeated single digits in a continuous data segment into the lowest bit of the compressed data segment, and storing the count value into the upper 7 bits of the compressed data segment; wherein the continuous data segment is a data segment composed of continuous single digits, and the compressed data segment includes the value of the single digit and the number of repetitions.

[0026] Method 2, an SDK file format conversion method, for converting a specified primary encrypted fourth target file or a high-level encrypted seventh target file into a first format file in an open storage form, comprising the following steps:

[0027] SB01, the computer control unit reads the fourth target file / seventh target file in the storage unit;

[0028] SB02, the control unit reads the magic number in the identification file header of the target file and determines whether the target file is secondary encrypted; if it is determined that the target file is not secondary encrypted, the target file is the fourth target file and the process proceeds to step SB09; if it is determined that the target file is secondary encrypted, the target file is the seventh target file and the process proceeds to step SB03;

[0029] SB03: The control unit performs secondary decryption on the secondary encrypted printing parameter content in the seventh target file to obtain temporarily stored unencrypted printing parameter content, and then performs a hash operation on the unencrypted printing parameter content to obtain a character string M1.

[0030] SB04, the control unit performs secondary encryption on the character string M1 to obtain the character string M2;

[0031] SB05: The control unit determines whether the hash operation encryption signature in the seventh target file is identical to the character string M2; if the two are not identical, the control unit proceeds to step SB13; if the two are identical, the control unit proceeds to step SB06;

[0032] SB06: The control unit reads the portion of the seventh target file other than the hash operation encryption signature to obtain a sixth slice file;

[0033] SB07: The control unit replaces the secondary encrypted printing parameter content in the sixth slicing file with the temporarily stored unencrypted printing parameter content to obtain a fifth slicing file;

[0034] SB08: The control unit performs secondary decryption on the secondary encrypted compressed layer data in the fifth slice file to obtain a fourth target file;

[0035] SB09, the control unit performs a first-level decryption on the multiple first-level encrypted compressed layer data of the fourth target file to obtain a third slice file having multiple compressed layer data;

[0036] SB10: The control unit decompresses the multiple compressed layers of data of the third slice file to obtain a second slice file having multiple layers of data;

[0037] SB11. The control unit converts each layer data and preview image data in the second slicing file into a corresponding slice image and preview image of each layer, and writes the designated storage path information as the slice image path and preview image path storage information of each layer into the file header, thereby obtaining a first format file;

[0038] SB12. The control unit completes the final storage of the first format file in the designated storage path;

[0039] SB13, process ends.

[0040] Method 3, an SDK file decryption printing method, is used to import a designated primary encrypted fourth target file or a high-level encrypted seventh target file into a light-curing printing device for decryption printing, and includes the following steps:

[0041] SS01, import the target file into the memory of the light-curing printing device;

[0042] SS02, the controller reads the target file in the memory;

[0043] SS03: The controller determines whether the magic number of the seventh target file preset in the printer firmware matches the magic number in the identification file header of the target file; if the magic numbers do not match, the target file is not the seventh target file, and the process proceeds to step SS16; if the magic numbers do match, the target file is the seventh target file, and the process proceeds to step SS04;

[0044] SS04: The controller determines whether the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the seventh target file; if it is determined that the slicing format version list in the printer firmware does not support the slicing format version in the file header identified in the seventh target file, the controller proceeds to step SS23; if it is determined that the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the seventh target file, the controller proceeds to step SS05;

[0045] SS05. The controller determines whether the OS version number in the printer firmware matches the OS version number in the identification file header in the seventh target file; if the OS version numbers do not match, the controller proceeds to step SS23; if the OS version numbers do match, the controller proceeds to step SS06;

[0046] SS06. The controller performs secondary decryption on the hash operation encrypted signature in the seventh target file to obtain a character string M1;

[0047] SS07. The controller performs secondary decryption on the secondary encrypted printing parameter content in the seventh target file and then performs a hash operation on the obtained printing parameter content to obtain a character string M2.

[0048] SS08. The controller determines whether the comparison strings M1 and M2 are identical; if the comparison strings M1 and M2 are not identical, the controller proceeds to step SS23; if the comparison strings M1 and M2 are identical, the controller proceeds to step SS09;

[0049] SS09, the controller sets the printing parameter content obtained by the secondary decryption as the printing parameter of the controller;

[0050] SS10, the controller reads the Nth layer of slice data in the seventh target file in sequence;

[0051] SS11. The controller determines whether the read layer slice data is secondary encrypted; if it is determined that the read layer slice data is not secondary encrypted, the controller proceeds to step SS13; if it is determined that the read layer slice data is secondary encrypted, the controller proceeds to step SS12;

[0052] SS12, the controller performs secondary decryption on the read layer slice data;

[0053] SS13, the controller first performs a first-level decryption and decompression on the layer slice data and then exposes and prints the obtained layer slice data in plain text;

[0054] SS14: The controller determines whether all the layer slice data have completed exposure printing; if it is determined that all the layer slice data have completed exposure printing, the controller proceeds to step SS24; if it is determined that all the layer slice data have not completed exposure printing, the controller proceeds to step SS15;

[0055] SS15: The controller reads the slice data of the N+1th layer in sequence, and then proceeds to step SS11;

[0056] SS16. The controller determines whether the magic number of the fourth target file preset in the printer firmware matches the magic number in the identification file header of the target file; if the magic numbers do not match, the target file is another type of file, and the process proceeds to step SS23; if the magic numbers do match, the target file is the fourth target file, and the process proceeds to step SS17;

[0057] SS17. The controller determines whether the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the fourth target file; if it is determined that the slicing format version list in the printer firmware does not support the slicing format version in the file header identified in the fourth target file, the controller proceeds to step SS23; if it is determined that the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the fourth target file, the controller proceeds to step SS18;

[0058] SS18. The controller determines whether the OS version number in the printer firmware matches the OS version number in the identification file header in the fourth target file; if the OS version numbers do not match, the controller proceeds to step SS23; if the OS version numbers do match, the controller proceeds to step SS19;

[0059] SS19, the controller reads the Nth layer of slice data in the fourth target file in sequence;

[0060] SS20, the controller first performs a first-level decryption and decompression on the read layer slice data and then exposes and prints the obtained layer slice data in plain text;

[0061] SS21: The controller determines whether all the slice data have been exposed and printed; if so, the controller proceeds to step SS24; if not, the controller proceeds to step SS22.

[0062] SS22: The controller reads the slice data of the N+1th layer in sequence, and then proceeds to step SS20;

[0063] SS23, the controller sends an error signal and exits the program;

[0064] SS24, process ends.

[0065] In this method, preferably, the step contents of steps SS04 and SS05 can be interchanged, and the step contents of steps SS17 and SS18 can also be interchanged, and the interchange does not affect the execution of the overall process; N is a positive integer that increases from 1.

[0066] In method 1, 2, or 3, preferably, the first format file includes: a file header, a preview image, a folder, and a layer slice image; wherein the file header further includes: an identification file header, printing parameters, a slice image path, and a preview image path; the preview image further includes: a large-size preview image and a small-size preview image; the folder and layer slice image further include: sequentially named layer slice images and a folder for storing layer slice images; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0067] The second slicing file includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of layer data headers and their corresponding layer data in a continuous construction order; each layer data header is an index of the corresponding layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; and the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0068] The third slicing file includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of sequentially constructed layer data headers and their corresponding compressed layer data; each layer data header is an index of the corresponding compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; and the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0069] The fourth target file includes: a file header, preview image data, and layer slice data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of sequentially constructed layer data headers and their corresponding first-level encrypted compressed layer data; wherein each layer data header is an index of the corresponding first-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; and the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0070] The fifth slicing file includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of the corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0071] The sixth slice file includes: a file header, preview image data, and layer slice data; wherein the file header further includes: an identification file header and secondary encrypted printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of the corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the second-level encrypted printing parameters further include: second-level encrypted machine control parameters, second-level encrypted resolution parameters, and / or second-level encrypted machine model data;

[0072] The seventh target file includes: a file header, preview image data, layer slice data, and a hash operation encryption signature; wherein the file header further includes: an identification file header and secondary encrypted printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of the corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; the hash operation encryption signature is a result obtained by performing a hash operation on the unencrypted printing parameter content in the fourth target file and then performing a secondary encryption on the operation result; the hash operation encryption signature is spliced ​​at the end of the seventh target file.

[0073] In method 1, 2 or 3, preferably, the method adopted for the first-level encryption or decryption includes: a substitution cipher algorithm, or a shift cipher algorithm; the method adopted for the second-level encryption or decryption includes: an AES encryption algorithm, or an RSA encryption algorithm, or a DES encryption algorithm, or an ECC encryption algorithm; the hash algorithm includes: a SHA1 algorithm, or an MD5 algorithm, or a SHA256 algorithm, or a SHA512 algorithm.

[0074] According to a second aspect of the present invention, two SDK file format conversion devices and an SDK file decryption and printing device are provided, wherein:

[0075] Device 1, corresponding to method 1, provides an SDK file format conversion device for converting a first format file in an open storage form into a specified fourth target file with primary encryption or a seventh target file with high-level encryption, comprising:

[0076] A first format file acquisition module, configured to read the first format file in the storage unit;

[0077] An applicable resolution determination module, configured to determine whether the applicable resolution of the first format file is greater than or equal to a resolution setting value on the X / Y axis according to resolution parameters / machine model data / slice image resolution;

[0078] a first format conversion module, configured to convert the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header, respectively, according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0079] a first data compression module, configured to compress the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layer data;

[0080] A first level encryption module, configured to perform level-one encryption on the plurality of compressed layer data of the third slice file to obtain a fourth target file having the plurality of level-one encrypted compressed layer data;

[0081] a layer data secondary encryption module, configured to perform secondary encryption on X discontinuous layers of the primary encrypted and compressed layer data randomly selected from the fourth target file to obtain a fifth slice file;

[0082] A printing parameter secondary encryption module, used for performing secondary encryption on the printing parameters of the fifth slicing file to obtain a sixth slicing file;

[0083] A hash operation module, used to perform a hash operation on the printing parameter content in the fifth slice file and perform secondary encryption on the operation result to obtain a hash operation encryption signature;

[0084] A seventh target file generation module, configured to concatenate the hash operation encryption signature to the end of the sixth slice file to form a seventh target file;

[0085] A seventh target file storage module, configured to complete the final storage of the seventh target file in a designated storage path;

[0086] The second format conversion module converts the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0087] A second data compression module is used to compress the slice data of multiple layers of the second slice file to obtain a third slice file having multiple compressed layer data;

[0088] A first-level encryption second module is used to perform first-level encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple first-level encrypted compressed layer data;

[0089] A fourth target file storage module, configured to complete final storage of the fourth target file in a designated storage path;

[0090] The first ending module is used to end the process.

[0091] Device 2, corresponding to method 2, provides an SDK file format conversion device for converting a specified primary encrypted fourth target file or a high-level encrypted seventh target file into a first format file in an open storage form, comprising:

[0092] A target file acquisition module, configured to read the fourth target file / seventh target file in the storage unit;

[0093] Secondary encryption judgment module, used to read the magic number in the target file header and judge whether the target file is secondary encrypted;

[0094] A secondary decryption and hash operation module, configured to perform secondary decryption on the secondary encrypted printing parameter content in the seventh target file to obtain temporarily stored unencrypted printing parameter content, and then perform a hash operation on the unencrypted printing parameter content to obtain a character string M1;

[0095] A string secondary encryption module is used to perform secondary encryption on string M1 to obtain string M2;

[0096] A hash operation signature judgment module is used to judge whether the hash operation encryption signature in the seventh target file is the same as the character string M2;

[0097] A sixth slice file acquisition module, configured to read the portion other than the hash operation encryption signature in the seventh target file to obtain a sixth slice file;

[0098] a fifth slicing file obtaining module, configured to replace the secondary encrypted printing parameter content in the sixth slicing file with the temporarily stored unencrypted printing parameter content to obtain a fifth slicing file;

[0099] A secondary decryption module, configured to perform secondary decryption on the secondary encrypted compressed layer data in the fifth slice file to obtain a fourth target file;

[0100] a first-level decryption module, configured to perform first-level decryption on the plurality of first-level encrypted compressed layer data of the fourth target file to obtain a third slice file having the plurality of compressed layer data;

[0101] a data decompression module, configured to decompress the plurality of compressed layer data of the third slice file to obtain a second slice file having a plurality of layer data;

[0102] A first format file generation module is used to convert the layer data and preview image data in the second slice file into slice images and preview images of each layer respectively, and write the specified storage path information as the slice image path and preview image path storage information of each layer into the file header to obtain the first format file;

[0103] A first format file storage module, configured to complete final storage of the first format file in a designated storage path;

[0104] The second ending module is used to end the process.

[0105] Device 3, corresponding to method 3, provides an SDK file decryption and printing device for importing a designated primary encrypted fourth target file or a high-level encrypted seventh target file into a light-curing printing device for decryption and printing, comprising:

[0106] A target file import module, used for importing the target file into the memory of the light-curing printing device;

[0107] A target file reading module is used to read the target file in the memory;

[0108] a seventh target file magic number matching judgment module, used to judge whether the magic number of the seventh target file preset in the printer firmware matches the magic number in the identification file header of the target file;

[0109] a seventh target file slicing format version determination module, configured to determine whether the slicing format version list in the printer firmware supports the slicing format version in the identification file header in the seventh target file;

[0110] a seventh target file OS version number matching determination module, configured to determine whether the OS version number in the printer firmware matches the OS version number in the identification file header in the seventh target file;

[0111] The encrypted signature secondary decryption module is used to perform secondary decryption on the hash operation encrypted signature in the seventh target file to obtain a character string M1;

[0112] A secondary encrypted printing parameter decryption and hash operation module, configured to perform secondary decryption on the secondary encrypted printing parameter content in the seventh target file and then perform a hash operation on the obtained printing parameter content to obtain a character string M2;

[0113] The hash operation signature judgment module is used to judge whether the comparison strings M1 and M2 are the same;

[0114] A printing parameter setting module, used to set the printing parameter content obtained by the secondary decryption as the printing parameter of the controller;

[0115] a first layer slice data reading module, configured to sequentially read the Nth layer or the N+1th layer slice data in the seventh target file;

[0116] The layer slice data secondary encryption judgment module is used to judge whether the read layer slice data is secondary encrypted; the layer slice data secondary decryption module is used to perform secondary decryption on the read layer slice data;

[0117] The first level decryption and decompression exposure printing module is used to first perform level decryption and decompression on the layer slice data and then perform exposure printing on the obtained layer slice data in plain text;

[0118] The seventh target file printing completion judgment module is used to judge whether all layer slice data have completed exposure and printing;

[0119] a fourth target file magic number matching judgment module, configured to judge whether the magic number of the fourth target file preset in the printer firmware matches the magic number in the identification file header of the target file;

[0120] a fourth target file slicing format version determination module, configured to determine whether the slicing format version list in the printer firmware supports the slicing format version in the identification file header in the fourth target file;

[0121] a fourth target file OS version number matching determination module, configured to determine whether the OS version number in the printer firmware matches the OS version number in the identification file header in the fourth target file;

[0122] A second layer slice data reading module is used to sequentially read the Nth layer or N+1th layer slice data in the fourth target file;

[0123] The second module of the first-level decryption and decompression exposure printing is used to first perform the first-level decryption and decompression on the read layer slice data and then perform exposure printing on the obtained layer slice data plain text;

[0124] The fourth target file printing completion judgment module is used to judge whether all layer slice data have completed exposure and printing;

[0125] Error exit module, used to send out error signals and exit the program;

[0126] The third ending module is used to end the process.

[0127] According to a third aspect of the present invention, a non-transitory computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a control unit, the steps of the SDK file format conversion method described in method 1 or 2 are implemented.

[0128] According to a fourth aspect of the present invention, a computer program product is provided, comprising computer instructions. When the computer instructions are executed on a computer, the computer executes the SDK file format conversion method as described in method 1 or 2.

[0129] According to a fifth aspect of the present invention, an electronic device is provided, comprising: at least one control unit; and a storage unit communicatively connected to the at least one control unit; wherein the storage unit stores instructions executable by the at least one control unit, and the instructions are executed by the at least one control unit so that the at least one control unit can execute the SDK file format conversion method described in method 1 or 2.

[0130] According to a sixth aspect of the present invention, a 3D printing device is provided for executing the steps of the SDK file decryption printing method as described in method 3, including: a controller, an LCD screen, a motor, a memory, a UVLED light source module, a display and operation unit, a molding platform, a liquid tank, a lifting column, a base film, a photosensitive resin, and a base; the controller, LCD screen, UVLED light source module, and liquid tank are arranged and connected to the base; the motor is connected to the molding platform; the lifting column is fixedly connected to the base; the motor is installed on the lifting column to realize electric drive lifting and drive the molding platform to rise or fall with it; the base film is arranged at the bottom of the liquid tank for light transmission; the liquid tank contains photosensitive resin liquid; the controller is electrically connected to the LCD screen, the motor, the memory, the UVLED light source module, the display and operation unit; the memory stores a fourth target file or a seventh target file or other type of file; the controller reads the fourth target file or the seventh target file or other type of file in the memory; the controller performs hash operation verification, secondary decryption, primary decryption, and decompression on the seventh target file to obtain printing parameter plaintext and layer data plaintext, or performs primary decryption and decompression on the fourth target file Obtain printing parameter plaintext and layer data plaintext; the controller sets the printing parameter plaintext as printing execution parameters and performs mask exposure on the layer data plaintext layer by layer; the controller controls the motor to drive the forming platform to move up and down according to the printing execution parameters; the user sends an operation instruction to the controller through the display and operation unit, so that the controller responds to the instruction and sends a control signal to control each controlled unit to complete the instruction action, thereby realizing human-computer interaction; the controller outputs signals and data to the display and operation unit so that it displays a 3D model slice mask preview image, machine control parameters, system setting options and system operation parameters; the controller controls the motor to drive the forming platform to move up and down according to the printing parameter plaintext; the controller controls the UVLED light source module to light up or off; the UVLED light source module emits ultraviolet light and visible light through the mask image and base film on the LCD screen to expose the photosensitive resin in the liquid tank to cure and shape it; the forming platform is used to adhere to the cured model forming resin layer during the curing process so that it continues to rise and grow until the 3D printing is completed; the 3D printing equipment adopts an ascending LCD light-curing 3D printer or a sinking LCD light-curing 3D printer.

[0131] Compared with the prior art, the present invention has the following beneficial effects:

[0132] 1. Method 1 of the present invention provides an SDK file format conversion method, which facilitates third-party users to convert slice files in other formats into files in the first format in an open storage format. This method then converts the first format file in the open storage format into the format of a primary encrypted slice file or a high-level encrypted slice file, and then enables the use of the decryption printing method of Method 3 to achieve limited or confidential printing under intellectual property authorization;

[0133] 2. Method 2 of the present invention provides an SDK file format conversion method that can convert a primary encrypted slice file or a high-level encrypted slice file into an unencrypted, open storage format file of the first format. This facilitates third-party users to convert the open storage format file of the first format into slice files of other formats, thereby enabling unencrypted printing or, as needed, limited or confidential printing under intellectual property authorization.

[0134] 3. Method 3 of the present invention provides an SDK file decryption and printing method, which enables users to import primary encrypted slice files or advanced encrypted slice files into a designated 3D printing device for decryption and printing, thereby enabling limited or confidential printing under intellectual property authorization;

[0135] 4. In step SA02 of method 1 of the present invention, the control unit determines whether the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis based on the resolution parameter / machine model data / slice image resolution. This process can help the user automatically convert first format files with a resolution below the resolution setting value into primary encrypted slice files, and help the user automatically convert first format files with a resolution above the resolution setting value into advanced encrypted slice files, thereby implementing different levels of encryption strategies for slice files of different resolutions.

[0136] 5. In step SA02 of method 1 of the present invention, the control unit determines whether the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis based on the resolution parameter / model data / slice image resolution. In addition to using the resolution parameter recorded in the slice file to divide the encryption strategy into different levels, the resolution can also be distinguished and divided by the model data of different 3D printing device models corresponding to the resolution parameter, or directly distinguished and divided by the slice image resolution stored in the slice file, thereby adopting different levels of encryption strategy.

[0137] 6. In step SB02 of method 2 of the present invention, the control unit reads the magic number in the target file header and determines whether the target file is secondary encrypted. This process can help the user automatically select different decryption strategies for the primary encrypted slice file or the advanced encrypted slice file, so as to convert the encrypted slice file into the format of the first format file in the unencrypted open storage form;

[0138] 7. The process of determining whether the magic number of the seventh target file preset in the printer firmware matches the magic number in the identification header of the target file in step SS03 of method 3 of the present invention, and the process of determining whether the magic number of the fourth target file preset in the printer firmware matches the magic number in the identification header of the target file in step SS16, enable the 3D printing device executing this method to automatically identify whether the imported target file is the seventh target file with advanced encryption, and further determine whether it is the fourth target file with primary encryption or another type of file. This not only eliminates non-specified target files, but also automatically adopts different decryption printing strategies for primary or advanced encryption files. Furthermore, when primary or advanced encryption conditions are met, different decryption strategies can be automatically adopted to achieve successful printing.

[0139] 7. The technical implementation processes of methods 1, 2, and 3 of the present invention are closely related. They can not only convert different slice files to each other, but also generate primary encrypted slice files or advanced encrypted slice files according to actual needs, and realize the decryption and printing of both slice files. They can also enhance the conversion between different formats of files generated by different manufacturers, especially different slice software, and can expand the compatibility scope and be compatible with the printing of slice files of different formats.

[0140] 8. Methods 1, 2, and 3 of the present invention are improved upon the encryption strategy of the prior application. In the hash operation encryption signature phase, SHA-256 operations are no longer performed on the encrypted parameter area, preview image, and layer data in the signature encryption file. Instead, hash operations are performed only on the printing parameters. This reduces the amount of hash operation computation and avoids the problem of insufficient memory on the 3D printing device leading to decryption and printing failures when the slice file has too many layers and too much content data under the original complex encryption strategy.

[0141] 9. The technical implementation processes of methods 1, 2, and 3 of the present invention are closely related, and they strike a balance between encryption, decryption, and improving decryption efficiency. Advanced encryption strategies are used for smaller, high-resolution, precision printing production slice file data, while primary encryption strategies are used for larger, low-resolution, general printing production slice file data. This helps improve the decryption and printing execution efficiency of 3D printing equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0142] Figure 1 This is a schematic block diagram of the SDK file format conversion process according to an embodiment of the present invention;

[0143] Figure 2 This is a flowchart of SDK file format conversion method 1 according to an embodiment of the present invention;

[0144] Figure 3 This is a flowchart of SDK file format conversion method 2 according to an embodiment of the present invention;

[0145] Figure 4 This is a flowchart of the SDK file decryption and printing method according to an embodiment of the present invention;

[0146] Figures 5.1-5.4 This is the SDK file format conversion status box of the embodiment of the present invention Figure 1 ;

[0147] Figures 6.1-6.4 This is the SDK file format conversion status box of the embodiment of the present invention Figure 2 ;

[0148] Figure 7 This is a structural diagram of an SDK file format conversion device 1 according to an embodiment of the present invention;

[0149] Figure 8 This is a structural diagram of an SDK file format conversion device 2 according to an embodiment of the present invention;

[0150] Figure 9 This is a structural diagram of the SDK file decryption and printing device according to an embodiment of the present invention;

[0151] Figures 10.1-10.2 Schematic diagram of the layer data compression process of the SDK file format conversion method according to an embodiment of the present invention Figure 1 ;

[0152] Figures 11.1-11.4 Schematic diagram of the layer data compression process of the SDK file format conversion method according to an embodiment of the present invention Figure 2 ;

[0153] Figure 12.1 A structural block diagram of an electronic device for implementing the SDK file format conversion method according to an embodiment of the present invention;

[0154] Figure 12.2 Schematic diagram of an electronic device preprocessing 3D printed model slices according to an embodiment of the present invention;

[0155] Figure 13.1 A block diagram of the 3D printing device structure used to implement the SDK file decryption and printing method according to an embodiment of the present invention;

[0156] Figure 13.2 A schematic diagram of a 3D printing device used to implement the SDK file decryption and printing method according to an embodiment of the present invention;

[0157] Figure 14.1 Schematic diagram of the 3D printing manufacturing process using the target file of the present invention Figure 1 ;

[0158] Figure 14.2 Schematic diagram of the 3D printing manufacturing process using the target file of the present invention Figure 2 .

[0159] Description of labels:

[0160] First format file 1; SDK program conversion module 10; fourth target file 4; seventh target file 7; electronic device 12; computer program 120; control unit 121; storage unit 122; 3D printing device 13; print control program 130; controller 131; memory 132; mobile storage device 14; display and operation unit 133; UVLED light source module 134; LCD screen 135; liquid tank 136; forming platform 137; motor 138; base 139; base film 1361; photosensitive resin 1362; model forming resin layer 1371; printing model 1372; lifting column 1381.

[0161] First format file acquisition module 701; applicable resolution determination module 702; first format conversion module 703; first data compression module 704; first level encryption module 705; second level layer data encryption module 706; second level printing parameter encryption module 707; hash operation module 708; seventh target file generation module 709; seventh target file storage module 710; second format conversion module 711; second data compression module 712; second level encryption module 713; fourth target file storage module 714; first ending module 715;

[0162] Target file acquisition module 801; Secondary encryption judgment module 802; Secondary decryption and hash operation module 803; Secondary string encryption module 804; Hash operation signature judgment module 805; Sixth slice file acquisition module 806; Fifth slice file acquisition module 807; Secondary decryption module 808; First level decryption module 809; Data decompression module 810; First format file generation module 811; First format file storage module 812; Second termination module 813;

[0163] Target file import module 901; target file reading module 902; seventh target file magic number matching judgment module 903; seventh target file slice format version judgment module 904; seventh target file OS version number matching judgment module 905; encrypted signature secondary decryption module 906; secondary encrypted printing parameter decryption and hash operation module 907; hash operation signature judgment module 908; printing parameter setting module 909; layer slice data first reading module 910; layer slice data secondary encryption judgment module 911; layer slice data secondary decryption module 912; first level decryption and decompression exposure printing first module 913; seventh target file printing completion judgment module 914; fourth target file magic number matching judgment module 916; fourth target file slice format version judgment module 917; fourth target file OS version number matching judgment module 918; layer slice data second reading module 919; first level decryption and decompression exposure printing second module 920; fourth target file printing completion judgment module 921; error reporting and exit module 923; third ending module 924; DETAILED DESCRIPTION

[0164] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0165] Figure 1 This is a schematic block diagram of the SDK file format conversion process according to an embodiment of the present invention. As shown, a user converts a first-format file 1 in an open storage format into a fourth target file 4, or further into a seventh target file 7, using the SDK program conversion module 10. This process corresponds to method 1 and apparatus 1 of the present invention. A 3D printing device 13 then decrypts and prints the file, corresponding to method 3 and apparatus 3 of the present invention. Alternatively, a user converts the fourth target file 4 and the seventh target file 7 into a first-format file 1 in an open storage format using the SDK program conversion module 10. This process corresponds to method 2 and apparatus 2 of the present invention.

[0166] Figure 2 This is a flowchart of an SDK file format conversion method 1 according to an embodiment of the present invention. As shown in the figure, an SDK file format conversion method is used to convert a first format file in an open storage form into a specified fourth target file with primary encryption or a seventh target file with advanced encryption, and includes the following steps:

[0167] SA01, the computer control unit reads the first format file in the storage unit;

[0168] SA02: The control unit determines whether the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis based on the resolution parameter / machine model data / slice image resolution; if it is determined that the applicable resolution of the first format file is less than the resolution setting value on both the X / Y axis, the control unit proceeds to step SA11; if it is determined that the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis, the control unit proceeds to step SA03;

[0169] SA03: The control unit converts the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0170] SA04: The control unit compresses the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layers of data.

[0171] SA05: The control unit performs primary encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple primary encrypted compressed layer data;

[0172] SA06: The control unit randomly extracts X discontinuous layers of the first-level encrypted and compressed layer data from the fourth target file and performs second-level encryption on the data to obtain a fifth slice file;

[0173] SA07: The control unit performs secondary encryption on the printing parameters of the fifth slicing file to obtain a sixth slicing file;

[0174] SA08. The control unit performs a hash operation on the printing parameter content in the fifth slice file and performs secondary encryption on the operation result to obtain a hash operation encryption signature;

[0175] SA09: The control unit concatenates the hash operation encrypted signature to the end of the sixth slice file to form a seventh target file.

[0176] SA10: The control unit completes the final storage of the seventh target file in the designated storage path, and then proceeds to step SA15;

[0177] SA11: The control unit converts each slice image and preview image in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0178] SA12: The control unit compresses the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layers of data.

[0179] SA13: The control unit performs primary encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple primary encrypted compressed layer data;

[0180] SA14: The control unit completes the final storage of the fourth target file in the designated storage path;

[0181] SA15. The process ends.

[0182] In this method, preferably, when the control unit randomly extracts X discontinuous layers of the first-level encrypted compressed layer data in the fourth target file and performs second-level encryption to obtain the fifth slice file in step SA06, the number of the randomly extracted X layers is concentrated in the range of 11%-89% of the total number of layers; the value of X is a specified positive integer; the resolution setting value in step SA02 includes 2048, 3840, 4096, 7680, 15260, or 30720; The corresponding resolution setting value of 2048 corresponds to 2K resolution, that is, 2048*1080; the resolution setting value of 3840 corresponds to 4K resolution, that is, 3840*2160 or 4096*2160; the resolution setting value of 7680 corresponds to 8K resolution, that is, 7680*4320; the resolution setting value of 15260 corresponds to 16K resolution, that is, 15260*8640; the resolution setting value of 30720 corresponds to 32K resolution, that is, 30720*17820;

[0183] For example 1, if the slice images in the first format file in method 1 are 2048*1080, and the resolution setting value in step SA02 is 4096, then the resolution of any or all slice images, whether on the X or Y axis, is less than 4096. Therefore, in combination with method 1, the first format file needs to be converted to the fourth target file accordingly;

[0184] Example 2: In addition, if the first format file records a resolution parameter (for example, the resolution parameter is 2048*1080), and the resolution setting value in step SA02 is 4096, the control unit can directly determine the resolution parameter. Since the resolution values ​​are all less than 4096, the first format file needs to be converted into the fourth target file in combination with method 1.

[0185] Example 3. In addition to this, if the judgment methods in the above two examples are not used and only the model data is judged, the above effect can also be achieved. Generally, slicing software will generate slice images of corresponding resolutions corresponding to the resolution applicable to the model of the corresponding 3D printing device. Therefore, different model data actually correspond to unique resolution parameters and slice images under unique resolutions; for example, if a 001 model 3D printer uses a 2048*1080 resolution LCD screen, its model data has a resolution parameter of 2048*1080, and the resolution setting value of step SA02 is 4096, then the control unit can directly judge the resolution parameter, because its resolution values ​​are all less than 4096, so combined with method 1, the first format file needs to be converted into the fourth target file accordingly.

[0186] In the present method, preferably, when the control unit compresses multiple layer data of the second slice file to obtain a third slice file having multiple compressed layer data, the compression rules of the layer data include: storing repeated single digits in a continuous data segment into the highest bit of the compressed data segment, and storing the count value into the lower 7 bits of the compressed data segment; or storing repeated single digits in a continuous data segment into the lowest bit of the compressed data segment, and storing the count value into the upper 7 bits of the compressed data segment; wherein the continuous data segment is a data segment composed of continuous single digits, and the compressed data segment includes the value of the single digit and the number of repetitions.

[0187] In this method, the method used for the first-level encryption or decryption includes: a substitution cipher algorithm, or a shift cipher algorithm; the method used for the second-level encryption or decryption includes: an AES encryption algorithm, or an RSA encryption algorithm, or a DES encryption algorithm, or an ECC encryption algorithm; the hash algorithm includes: a SHA1 algorithm, or an MD5 algorithm, or a SHA256 algorithm, or a SHA512 algorithm.

[0188] Figure 3 This is a flowchart of an SDK file format conversion method 2 according to an embodiment of the present invention. As shown in the figure, an SDK file format conversion method is used to convert a specified primary encrypted fourth target file or a high-level encrypted seventh target file into a first format file in an open storage format, which includes the following steps:

[0189] SB01, the computer control unit reads the fourth target file / seventh target file in the storage unit;

[0190] SB02, the control unit reads the magic number in the identification file header of the target file and determines whether the target file is secondary encrypted; if it is determined that the target file is not secondary encrypted, the target file is the fourth target file and the process proceeds to step SB09; if it is determined that the target file is secondary encrypted, the target file is the seventh target file and the process proceeds to step SB03;

[0191] SB03: The control unit performs secondary decryption on the secondary encrypted printing parameter content in the seventh target file to obtain temporarily stored unencrypted printing parameter content, and then performs a hash operation on the unencrypted printing parameter content to obtain a character string M1.

[0192] SB04, the control unit performs secondary encryption on the character string M1 to obtain the character string M2;

[0193] SB05: The control unit determines whether the hash operation encryption signature in the seventh target file is identical to the character string M2; if the two are not identical, the control unit proceeds to step SB13; if the two are identical, the control unit proceeds to step SB06;

[0194] SB06: The control unit reads the portion of the seventh target file other than the hash operation encryption signature to obtain a sixth slice file;

[0195] SB07: The control unit replaces the secondary encrypted printing parameter content in the sixth slicing file with the temporarily stored unencrypted printing parameter content to obtain a fifth slicing file;

[0196] SB08: The control unit performs secondary decryption on the secondary encrypted compressed layer data in the fifth slice file to obtain a fourth target file;

[0197] SB09, the control unit performs a first-level decryption on the multiple first-level encrypted compression layer data of the fourth target file to obtain a third slice file having multiple compression layer data;

[0198] SB10. The control unit decompresses the multiple compressed layers of data of the third slice file to obtain a second slice file having multiple layers of data.

[0199] SB11. The control unit converts each layer data and preview image data in the second slicing file into a corresponding slice image and preview image of each layer, and writes the designated storage path information as the slice image path and preview image path storage information of each layer into the file header, thereby obtaining a first format file;

[0200] SB12. The control unit completes the final storage of the first format file in the designated storage path;

[0201] SB13, process ends.

[0202] In this method, the method used for the first-level encryption or decryption includes: a substitution cipher algorithm, or a shift cipher algorithm; the method used for the second-level encryption or decryption includes: an AES encryption algorithm, or an RSA encryption algorithm, or a DES encryption algorithm, or an ECC encryption algorithm; the hash algorithm includes: a SHA1 algorithm, or an MD5 algorithm, or a SHA256 algorithm, or a SHA512 algorithm.

[0203] Figure 4 This is a flowchart of an SDK file decryption and printing method according to an embodiment of the present invention. As shown in the figure, the SDK file decryption and printing method is used to import a designated primary encrypted fourth target file or a high-level encrypted seventh target file into a light-curing printing device for decryption and printing, and includes the following steps:

[0204] SS01, import the target file into the memory of the light-curing printing device;

[0205] SS02, the controller reads the target file in the memory;

[0206] SS03: The controller determines whether the magic number of the seventh target file preset in the printer firmware matches the magic number in the identification file header of the target file; if the magic numbers do not match, the target file is not the seventh target file, and the process proceeds to step SS16; if the magic numbers do match, the target file is the seventh target file, and the process proceeds to step SS04;

[0207] SS04: The controller determines whether the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the seventh target file; if it is determined that the slicing format version list in the printer firmware does not support the slicing format version in the file header identified in the seventh target file, the controller proceeds to step SS23; if it is determined that the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the seventh target file, the controller proceeds to step SS05;

[0208] SS05. The controller determines whether the OS version number in the printer firmware matches the OS version number in the identification file header in the seventh target file; if the OS version numbers do not match, the controller proceeds to step SS23; if the OS version numbers do match, the controller proceeds to step SS06;

[0209] SS06. The controller performs secondary decryption on the hash operation encrypted signature in the seventh target file to obtain a character string M1;

[0210] SS07. The controller performs secondary decryption on the secondary encrypted printing parameter content in the seventh target file and then performs a hash operation on the obtained printing parameter content to obtain a character string M2.

[0211] SS08. The controller determines whether the comparison strings M1 and M2 are identical; if the comparison strings M1 and M2 are not identical, the controller proceeds to step SS23; if the comparison strings M1 and M2 are identical, the controller proceeds to step SS09;

[0212] SS09, the controller sets the printing parameter content obtained by the secondary decryption as the printing parameter of the controller;

[0213] SS10, the controller reads the Nth layer of slice data in the seventh target file in sequence;

[0214] SS11. The controller determines whether the read layer slice data is secondary encrypted; if it is determined that the read layer slice data is not secondary encrypted, the controller proceeds to step SS13; if it is determined that the read layer slice data is secondary encrypted, the controller proceeds to step SS12;

[0215] SS12, the controller performs secondary decryption on the read layer slice data;

[0216] SS13, the controller first performs a first-level decryption and decompression on the layer slice data and then exposes and prints the obtained layer slice data in plain text;

[0217] SS14: The controller determines whether all the layer slice data have completed exposure printing; if it is determined that all the layer slice data have completed exposure printing, the controller proceeds to step SS24; if it is determined that all the layer slice data have not completed exposure printing, the controller proceeds to step SS15;

[0218] SS15: The controller reads the slice data of the N+1th layer in sequence, and then proceeds to step SS11;

[0219] SS16. The controller determines whether the magic number of the fourth target file preset in the printer firmware matches the magic number in the identification file header of the target file; if the magic numbers do not match, the target file is another type of file, and the process proceeds to step SS23; if the magic numbers do match, the target file is the fourth target file, and the process proceeds to step SS17;

[0220] SS17. The controller determines whether the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the fourth target file; if it is determined that the slicing format version list in the printer firmware does not support the slicing format version in the file header identified in the fourth target file, the controller proceeds to step SS23; if it is determined that the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the fourth target file, the controller proceeds to step SS18;

[0221] SS18. The controller determines whether the OS version number in the printer firmware matches the OS version number in the identification file header in the fourth target file; if the OS version numbers do not match, the controller proceeds to step SS23; if the OS version numbers do match, the controller proceeds to step SS19;

[0222] SS19, the controller reads the Nth layer of slice data in the fourth target file in sequence;

[0223] SS20, the controller first performs a first-level decryption and decompression on the read layer slice data and then exposes and prints the obtained layer slice data in plain text;

[0224] SS21: The controller determines whether all the slice data have been exposed and printed; if so, the controller proceeds to step SS24; if not, the controller proceeds to step SS22.

[0225] SS22: The controller reads the slice data of the N+1th layer in sequence, and then proceeds to step SS20;

[0226] SS23, the controller sends an error signal and exits the program;

[0227] SS24, process ends.

[0228] In this method, preferably, the step contents of steps SS04 and SS05 can be interchanged, and the step contents of steps SS17 and SS18 can also be interchanged, and the interchange does not affect the execution of the overall process; N is a positive integer that increases from 1.

[0229] In this method, the method used for the first-level encryption or decryption includes: a substitution cipher algorithm, or a shift cipher algorithm; the method used for the second-level encryption or decryption includes: an AES encryption algorithm, or an RSA encryption algorithm, or a DES encryption algorithm, or an ECC encryption algorithm; the hash algorithm includes: a SHA1 algorithm, or an MD5 algorithm, or a SHA256 algorithm, or a SHA512 algorithm.

[0230] Figures 5.1-5.4 This is the SDK file format conversion status box of the embodiment of the present invention Figure 1 As shown in the figure, Figure 5.1 The first format file shown includes: a file header, a preview image, a folder, and a layer slice image; wherein the file header further includes: an identification file header, printing parameters, a slice image path, and a preview image path; the preview image further includes: a large-size preview image and a small-size preview image; the folder and layer slice image further include: sequentially named layer slice images and folders storing layer slice images; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0231] Figure 5.2The second slicing file shown includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of layer data headers and their corresponding layer data in a continuous construction order; each layer data header is an index of the corresponding layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0232] Figure 5.3 The third slicing file shown includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of sequentially constructed layer data headers and their corresponding compressed layer data; each layer data header is an index of the corresponding compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0233] Figure 5.4 The fourth target file shown includes: a file header, preview image data, and layer slice data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of sequentially constructed layer data headers and their corresponding first-level encrypted compressed layer data; each layer data header is an index of its corresponding first-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0234] Figures 6.1-6.4 This is the SDK file format conversion status box of the embodiment of the present invention Figure 2 As shown in the figure, Figure 6.1The fifth slice file shown includes: a file header, preview image data, and layer slice data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of its corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data;

[0235] Figure 6.2 The sixth slicing file shown includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and secondary encrypted printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of its corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the second-level encrypted printing parameters further include: second-level encrypted machine control parameters, second-level encrypted resolution parameters, and / or second-level encrypted machine model data;

[0236] Figure 6.3 The fifth slice file shown is Figure 6.1 The fifth slice file is the same as shown, but Figure 6.4 The seventh target file shown in the figure needs to be encrypted with the hash operation signature. Figure 6.3 Right now Figure 6.1 The result is obtained by performing a hash operation on the unencrypted printing parameter content in the fifth slice file shown, and then performing a secondary encryption on the operation result; in addition, Figure 6.4 The hash operation encryption signature of the seventh target file shown can also be obtained by performing a hash operation on the unencrypted printing parameter content in the first format file, or the second slicing file, or the third slicing file, or the fourth target file and performing secondary encryption to obtain the hash operation encryption signature.

[0237] Figure 6.4The seventh target file shown includes: a file header, preview image data, layer slice data, and a hash operation encryption signature; wherein the file header further includes: an identification file header and secondary encrypted printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of its corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of its corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; the hash operation encryption signature is the result of performing a hash operation on the unencrypted printing parameter content in the fourth target file and then performing a secondary encryption on the operation result; the hash operation encryption signature is spliced ​​at the end of the seventh target file.

[0238] Figure 7 This is a structural diagram of an SDK file format conversion device 1 according to an embodiment of the present invention. Device 1 corresponds to method 1. As shown in the figure, an SDK file format conversion device is used to convert a first format file in an open storage form into a specified fourth target file with primary encryption or a seventh target file with advanced encryption, including:

[0239] A first format file acquisition module 701 is configured to read a first format file from a storage unit;

[0240] An applicable resolution determination module 702 is configured to determine whether the applicable resolution of the first format file is greater than or equal to a set resolution value on the X / Y axis based on resolution parameters / machine model data / slice image resolution;

[0241] The first format conversion module 703 is used to convert the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0242] A first data compression module 704 is configured to compress the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layers of data;

[0243] A first level encryption module 705 is configured to perform level-one encryption on the plurality of compressed layer data of the third slice file to obtain a fourth target file having a plurality of level-one encrypted compressed layer data;

[0244] The layer data secondary encryption module 706 is configured to perform secondary encryption on X discontinuous layers of the primary encrypted compressed layer data randomly selected from the fourth target file to obtain a fifth slice file;

[0245] A printing parameter secondary encryption module 707 is used to perform secondary encryption on the printing parameters of the fifth slicing file to obtain a sixth slicing file;

[0246] A hash operation module 708 is configured to perform a hash operation on the printing parameter content in the fifth slice file and perform secondary encryption on the operation result to obtain a hash operation encryption signature;

[0247] The seventh target file generating module 709 is configured to concatenate the hash operation encrypted signature to the end of the sixth slice file to form a seventh target file;

[0248] The seventh target file storage module 710 is used to complete the final storage of the seventh target file in a designated storage path;

[0249] The second format conversion module 711 converts the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file;

[0250] A second data compression module, 712, is used to compress the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layer data;

[0251] A second first-level encryption module 713 is configured to perform first-level encryption on the plurality of compressed layer data of the third slice file to obtain a fourth target file having a plurality of first-level encrypted compressed layer data;

[0252] The fourth target file storage module 714 is used to complete the final storage of the fourth target file in the specified storage path;

[0253] The first ending module 715 is used to end the process.

[0254] Figure 8 This is a structural diagram of an SDK file format conversion device 2 according to an embodiment of the present invention. Device 2 corresponds to method 2. As shown in the figure, an SDK file format conversion device is used to convert a specified primary encrypted fourth target file or a high-level encrypted seventh target file into a first format file in an open storage format, including:

[0255] The target file acquisition module 801 is used to read the fourth target file / seventh target file in the storage unit;

[0256] Secondary encryption determination module 802, for reading the magic number in the target file header and determining whether the target file is secondary encrypted;

[0257] Secondary decryption and hash operation module 803, configured to perform secondary decryption on the secondary encrypted printing parameter content in the seventh target file to obtain temporarily stored unencrypted printing parameter content, and then perform hash operation on the unencrypted printing parameter content to obtain a character string M1;

[0258] The string secondary encryption module 804 is used to perform secondary encryption on the string M1 to obtain the string M2;

[0259] The hash operation signature judgment module 805 is used to judge whether the hash operation encryption signature in the seventh target file is the same as the character string M2;

[0260] A sixth slice file acquisition module 806 is configured to read the portion of the seventh target file other than the hash operation encryption signature to obtain a sixth slice file;

[0261] The fifth slicing file obtaining module 807 is configured to replace the secondary encrypted printing parameter content in the sixth slicing file with the temporarily stored unencrypted printing parameter content to obtain a fifth slicing file;

[0262] A secondary decryption module 808 is used to perform secondary decryption on the secondary encrypted compressed layer data in the fifth slice file to obtain a fourth target file;

[0263] A first-level decryption module 809 is configured to perform first-level decryption on the plurality of first-level encrypted compressed layer data of the fourth target file to obtain a third slice file having the plurality of compressed layer data;

[0264] A data decompression module 810 is configured to decompress the compressed data of the plurality of layers of the third slice file to obtain a second slice file having the plurality of layers of data;

[0265] The first format file generation module 811 is used to convert the layer data and preview image data in the second slice file into slice images and preview images of each layer respectively, and write the designated storage path information as the slice image path and preview image path storage information of each layer into the file header to obtain the first format file;

[0266] A first format file storage module 812 is used to complete the final storage of the first format file in a designated storage path;

[0267] The second ending module 813 is used to end the process.

[0268] Figure 9 This is a structural diagram of an SDK file decryption and printing device according to an embodiment of the present invention. Device 3 corresponds to Method 3. As shown in the figure, an SDK file decryption and printing device is used to import a designated primary encrypted fourth target file or a high-level encrypted seventh target file into a light-curing printing device for decryption and printing, including:

[0269] A target file importing module 901 is used to import the target file into the memory of the light-curing printing device;

[0270] The target file reading module 902 is used to read the target file in the memory;

[0271] A seventh target file magic number matching determination module 903 is configured to determine whether the magic number of the seventh target file preset in the printer firmware matches the magic number in the identification file header of the target file;

[0272] The seventh target file slicing format version determination module 904 is configured to determine whether the slicing format version list in the printer firmware supports the slicing format version identified in the file header in the seventh target file;

[0273] A seventh target file OS version number matching determination module 905 is configured to determine whether the OS version number in the printer firmware matches the OS version number in the identification file header in the seventh target file;

[0274] The encrypted signature secondary decryption module 906 is used to perform secondary decryption on the hash operation encrypted signature in the seventh target file to obtain a character string M1;

[0275] The secondary encrypted printing parameter decryption and hash operation module 907 is used to perform secondary decryption on the secondary encrypted printing parameter content in the seventh target file and then perform a hash operation on the obtained printing parameter content to obtain a character string M2;

[0276] The hash operation signature determination module 908 is used to determine whether the comparison strings M1 and M2 are the same;

[0277] The printing parameter setting module 909 is used to set the printing parameter content obtained by the secondary decryption as the printing parameter of the controller;

[0278] A first layer slice data reading module 910 is configured to sequentially read the Nth layer or the N+1th layer slice data in the seventh target file;

[0279] The layer slice data secondary encryption determination module 911 is used to determine whether the read layer slice data is secondary encrypted;

[0280] A layer slice data secondary decryption module 912 is used to perform secondary decryption on the read layer slice data;

[0281] The first level decryption and decompression exposure and printing module 913 is used to first perform level decryption and decompression on the slice data and then perform exposure and printing on the obtained plain text slice data;

[0282] The seventh target file printing completion judgment module 914 is used to judge whether all the slice data have completed exposure and printing;

[0283] A fourth target file magic number matching determination module 916 is configured to determine whether the magic number of the fourth target file preset in the printer firmware matches the magic number in the identification file header of the target file;

[0284] A fourth target file slicing format version determination module 917 is configured to determine whether the slicing format version list in the printer firmware supports the slicing format version identified in the file header in the fourth target file;

[0285] A fourth target file OS version number matching determination module 918 is configured to determine whether the OS version number in the printer firmware matches the OS version number in the identification file header in the fourth target file;

[0286] The second layer slice data reading module 919 is used to sequentially read the Nth layer or the N+1th layer slice data in the fourth target file;

[0287] The second first-level decryption and decompression exposure and printing module 920 is used to first perform first-level decryption and decompression on the read layer slice data and then perform exposure and printing on the obtained layer slice data plain text;

[0288] The fourth target file printing completion judgment module 921 is used to judge whether all the slice data have completed exposure and printing;

[0289] The error reporting and exiting module 923 is used to send an error signal to the outside and exit the program;

[0290] The third ending module 924 is used to end the process.

[0291] Figures 10.1-10.2 Schematic diagram of the layer data compression process of the SDK file format conversion method according to an embodiment of the present invention Figure 1 As shown in the figure, Figure 10.1 By running the slice preprocessing software on the computer, the 3D model is cut into 7 layers, L01-L07, according to the set layer thickness parameters on the Z axis; Figure 10.2 After cutting the rectangular block into 7 layers by running the slice preprocessing software on a computer, 7 slice layer images of the slice cross-section position are obtained; each slice layer image in the figure is a mask slice image with black edges and a grayscale value of 0, which can block light, and a white center with a grayscale value of 255, which can transmit light; each layer of the mask slice image corresponds to the layer slice image in the first format file of this application.

[0292] Figures 11.1-11.4 Schematic diagram of the layer data compression process of the SDK file format conversion method according to an embodiment of the present invention Figure 2 As shown in the figure, based on Figure 10.2 The slice images shown in Figure 11.1 、 Figure 11.2 、 Figure 11.3 、 Figure 11.4 Take this as an example to demonstrate the process of compressing layer data;

[0293] Figure 11.1 , whose layer image corresponds to Figure 10.2 A certain layer image, for example, the corresponding L07th mask layer slice image;

[0294] Figure 11.2 In the example, the layer data corresponds to Figure 11.1 The layer image has a grayscale value of 0 because its surroundings are black, and a grayscale value of 255 because its center is white.

[0295] Figure 11.3 in Figure 11.2 On this basis, grayscale value 0 is defined as digital 0, and grayscale value 255 is defined as digital 1, thus forming the continuous data rows shown in the figure;

[0296] Figure 11.4 in Figure 11.3 On this basis, take the top row as an example, extract the digital 0, the number is 24, which can be compressed into an 8-bit binary compressed data segment represented as 10011000, and after converting to hexadecimal it is represented as 0x18, and so on, the data of each other row with all 0s is recorded as 0x18; take any non-all-0 row in the middle as an example, extract the digital 0, 1, 0, the number is 8, 8, 8 respectively, which can be compressed into 8-bit binary compressed data segments represented as 00001000, 10001000, 00001000, and after converting to hexadecimal it is represented as 0x08, 0x88, 0x08, and then spliced ​​in sequence into 0x088808, and so on, the data of each other non-all-0 row is recorded as 0x088808;

[0297] by Figure 11.4 Taking the first line of the embodiment as an example, the repeated single digital 0 in the first line of continuous data segment is stored in the highest bit of the compressed data segment; the count value 24 is stored in the lower 7 bits of the compressed data segment; wherein the continuous data segment is a data segment consisting of continuous single digital 0, and the compressed data segment includes a single digital 0 and the number of repetitions 24. When decrypting and printing, the compressed data segment is processed according to Figure 11.4 The embodiment of the present invention can be converted by reverse calculation to obtain continuous data segments, forming the following Figure 11.2 The layer data shown and Figure 11.1 The mask image shown. It should be understood that Figure 11.4 The embodiment is only one way of layer data compression, which is used to exemplify, illustrate and explain the content of layer data compression in step SA04 of method 1, but not to limit the present invention; similarly, Figure 11.4The inverse transformation process of the embodiment can also correspond to a method of layer data decompression and conversion, which is used to exemplify, illustrate and explain the content of layer data decompression and conversion in step SB10 of method 2, rather than limiting the invention.

[0298] Figure 12.1 The following is a block diagram of the structure of an electronic device used to implement the SDK file format conversion method according to an embodiment of the present invention. In this figure, the electronic device 12 is illustrated as a control unit 121. As shown, the electronic device 12 includes a control unit 121 and a storage unit 122; the storage unit 122 stores a computer program 120 or instructions executable by the control unit 121. The computer program 120 or instructions are executed by the control unit 121 to enable the control unit 121 to perform the SDK file format conversion method described in Method 1 or Method 2 of the present invention.

[0299] Storage unit 122 is a non-transitory computer-readable storage medium provided in the third aspect of the present invention. Storage unit 122 stores instructions executable by at least one control unit 121, causing the at least one control unit 121 to perform the SDK file format conversion method provided by method 1 or 2 of the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions for causing a computer to perform the SDK file format conversion method provided by method 1 or 2 of the present invention.

[0300] The storage unit 122 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the SDK file format conversion method in the embodiment of the present invention. The control unit 121 executes the non-transient computer program 120, instructions and modules stored in the storage unit 122 to execute various functional applications and data processing of the server, that is, to achieve the above Figure 2 Or the SDK file format conversion method in the embodiment corresponding to 3.

[0301] The storage unit 122 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created by using method 1 or 2 of the electronic device 12, etc. In addition, the storage unit 122 may include a high-speed random access storage unit, and may also include a non-transient storage unit, such as at least one disk storage unit device, a flash memory device, or other non-transient solid-state storage unit device. In some embodiments, the storage unit 122 may optionally include a storage unit remotely located relative to the control unit 121, and these remote storage units may be connected to the electronic device generated by the support structure via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0302] Various embodiments of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system that includes at least one programmable control unit, which can be a special purpose or general purpose programmable control unit that can receive data and instructions from a storage system, at least one input unit, and at least one output device, and transmit data and instructions to the storage system, the at least one input unit, and the at least one output device.

[0303] These computer programs 120 (also referred to as programs, software, software applications, or code) include machine instructions for the programmable control unit and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., a magnetic disk, an optical disk, a storage unit, a programmable logic device (PLD)) for providing machine instructions and / or data to the programmable control unit, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to the programmable control unit.

[0304] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved. This is not a limitation herein.

[0305] Figure 12.2Schematic diagram of an electronic device preprocessing 3D printing model slices according to an embodiment of the present invention. As shown in the figure, after the user loads the model through the electronic device 12 running 3D slicing software and completes the setting of layer thickness parameters and other printing parameters, slicing is performed to obtain multiple slice layer images of the slice cross-sectional positions, and a slice file for 3D printing is generated; in combination with method 1 or 2 of the present invention application, the generated slice file format is generally saved as a fourth target file or a seventh target file; if it is necessary to convert it into a slice file of another type, it is necessary to use method 2 of the present invention to convert the fourth target file or the seventh target file into a first format file, and then use third-party format conversion software to convert it according to their respective data rules.

[0306] Figure 13.1 The following is a block diagram of a 3D printing device used to implement the SDK file decryption and printing method according to an embodiment of the present invention. As shown, a 3D printing device 13 includes a controller 131 and a memory 132. The memory 132 stores a print control program 130 or instructions executable by the controller 131. The print control program 130 or instructions are executed by the controller 131 to enable the controller 131 to perform the SDK file decryption and printing method described in Method 3 of the present invention.

[0307] Figure 13.2The following is a schematic diagram of a 3D printing device used to implement the SDK file decryption and printing method according to an embodiment of the present invention. The 3D printing device is provided for illustrative purposes only, and is not intended to limit the present invention.As shown in the figure, a 3D printing device is used to execute the steps of the SDK file decryption printing method as described in method 3, including: a controller 131, a memory 132, a display and operation unit 133, a UVLED light source module 134, an LCD screen 135, a liquid tank 136, a molding platform 137, a motor 138, a base 139, a base film 1361, a photosensitive resin 1362, and a lifting column 1381; the controller 131, the UVLED light source module 134, the LCD screen 135, and the liquid tank 136 are arranged to be connected to the base 139; the motor 138 is connected to the molding platform 137; the lifting column 1381 is fixedly connected to the base 139; the motor 138 is installed on the lifting column 1381 The electric drive lifts and drives the forming platform 137 to rise or fall with it; the base film 1361 is set at the bottom of the liquid tank 136 for light transmission; the photosensitive resin 1362 liquid is contained in the liquid tank; the controller 131 is electrically connected to the LCD screen 135, the motor 138, the memory 132, the UVLED light source module 134, and the display and operation unit 133; the memory 132 stores the fourth target file or the seventh target file or other types of files; the controller 131 reads the fourth target file or the seventh target file or other types of files in the memory 132; the controller 131 performs hash operation verification, secondary decryption, primary decryption, and decompression on the seventh target file to obtain the printing parameter plain text and layer data plain text The controller 131 sets the printing parameter plaintext as the printing execution parameter, and performs mask exposure on the layer data plaintext layer by layer; the controller 131 controls the motor 138 to drive the forming platform 137 to move up and down according to the printing execution parameter; the user sends an operation instruction to the controller 131 through the display and operation unit 133, so that the controller 131 responds to the instruction and sends a control signal to control each controlled unit to complete the instruction action, so as to realize human-computer interaction operation; the controller 131 outputs signals and data to the display and operation unit 133, so that it displays the 3D model slice mask preview image, machine control parameters, system setting options and system The controller 131 controls the motor 138 to drive the molding platform 137 to move up and down according to the printing parameters; the controller 131 controls the UVLED light source module 134 to light up or down; the UVLED light source module 134 emits ultraviolet light and visible light through the mask image and the base film 1361 in the LCD screen 135 to expose the photosensitive resin 1362 in the liquid tank 136 to solidify and shape it; the molding platform 137 is used to adhere to the solidified model molding resin layer 1371 during the curing process so that it is continuously raised and grown until the 3D printing is completed; the 3D printing device adopts an ascending LCD light-curing 3D printer or a sinking LCD light-curing 3D printer.

[0308] Figure 14.1Schematic diagram of the 3D printing manufacturing process using the target file of the present invention Figure 1 As shown in the figure, the user uses the mobile storage device 14 to transfer the fourth target file or the seventh target file obtained by the method 1 of the present invention to the electronic device 12, that is, Figure 5.4 or Figure 6.4 The fourth target file or the seventh target file finally obtained is imported into the 3D printing device 13, which decrypts and prints it according to the method 3 of the present invention.

[0309] Figure 14.2 Schematic diagram of the 3D printing manufacturing process using the target file of the present invention Figure 2 As shown in the figure, the electronic device 12 is a computer. After slicing the 3D model data and saving it as a fourth target file or a seventh target file in accordance with the method 1 of the present invention, the fourth target file or the seventh target file is imported into the 3D printing device 13 via the mobile storage device 14. The 3D printing device 13 then decrypts and prints the data in accordance with the method 3 of the present invention, performing additive printing to gradually generate a printed model 1372.

[0310] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A SDK file format conversion method for converting a first format file in an open storage form into a specified fourth target file of primary encryption or a seventh target file of advanced encryption, characterized in that: The following steps are involved: SA01, the computer control unit reads the first format file in the storage unit; SA02: The control unit determines whether the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis based on the resolution parameter / machine model data / slice image resolution; if it is determined that the applicable resolution of the first format file is less than the resolution setting value on both the X / Y axis, the control unit proceeds to step SA11; if it is determined that the applicable resolution of the first format file is greater than or equal to the resolution setting value on the X / Y axis, the control unit proceeds to step SA03; SA03: The control unit converts the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file; SA04: The control unit compresses the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layers of data. SA05: The control unit performs primary encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple primary encrypted compressed layer data; SA06: The control unit randomly extracts X discontinuous layers of the first-level encrypted and compressed layer data from the fourth target file and performs second-level encryption on the data to obtain a fifth slice file; SA07: The control unit performs secondary encryption on the printing parameters of the fifth slicing file to obtain a sixth slicing file; SA08. The control unit performs a hash operation on the printing parameter content in the fifth slice file and performs secondary encryption on the operation result to obtain a hash operation encryption signature; SA09: The control unit concatenates the hash operation encrypted signature to the end of the sixth slice file to form a seventh target file. SA10: The control unit completes the final storage of the seventh target file in the designated storage path, and then proceeds to step SA15; SA11: The control unit converts each slice image and preview image in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file; SA12: The control unit compresses the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layers of data. SA13: The control unit performs primary encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple primary encrypted compressed layer data; SA14: The control unit completes the final storage of the fourth target file in the designated storage path; SA15. The process ends.

2. The SDK file format conversion method according to claim 1, wherein: In step SA06, when the control unit randomly extracts X discontinuous layers of the first-level encrypted compressed layer data in the fourth target file and performs second-level encryption to obtain the fifth slice file, the number of the randomly extracted X layers is concentrated in the range of 11%-89% of the total number of layers; the value of X is a specified positive integer; the resolution setting value in step SA02 includes 2048, 3840, 4096, 7680, 15260, or 30720.

3. The SDK file format conversion method according to claim 1, wherein: When the control unit compresses the multiple layer data of the second slice file in step SA04 to obtain a third slice file having multiple compressed layer data, the compression rules of the layer data include: storing repeated single digits in a continuous data segment into the highest bit of the compressed data segment, and storing the count value into the lower 7 bits of the compressed data segment; or storing repeated single digits in a continuous data segment into the lowest bit of the compressed data segment, and storing the count value into the upper 7 bits of the compressed data segment; wherein the continuous data segment is a data segment composed of continuous single digits, and the compressed data segment includes the value of the single digit and the number of repetitions.

4. An SDK file format conversion method for converting a specified primary encrypted fourth target file or a high-level encrypted seventh target file into a first format file in an open storage form, characterized in that: The following steps are involved: SB01, the computer control unit reads the fourth target file / seventh target file in the storage unit; SB02, the control unit reads the magic number in the identification file header of the target file and determines whether the target file is secondary encrypted; if it is determined that the target file is not secondary encrypted, the target file is the fourth target file, and step SB09 is performed; If it is determined that the target file is secondary encrypted, the target file is the seventh target file, and step SB03 is performed; SB03: The control unit performs secondary decryption on the secondary encrypted printing parameter content in the seventh target file to obtain temporarily stored unencrypted printing parameter content, and then performs a hash operation on the unencrypted printing parameter content to obtain a character string M1. SB04, the control unit performs secondary encryption on the character string M1 to obtain the character string M2; SB05: The control unit determines whether the hash operation encryption signature in the seventh target file is identical to the character string M2; if the two are not identical, the control unit proceeds to step SB13; if the two are identical, the control unit proceeds to step SB06; SB06: The control unit reads the portion of the seventh target file other than the hash operation encryption signature to obtain a sixth slice file; SB07: The control unit replaces the secondary encrypted printing parameter content in the sixth slicing file with the temporarily stored unencrypted printing parameter content to obtain a fifth slicing file; SB08: The control unit performs secondary decryption on the secondary encrypted compressed layer data in the fifth slice file to obtain a fourth target file; SB09, the control unit performs a first-level decryption on the multiple first-level encrypted compression layer data of the fourth target file to obtain a third slice file having multiple compression layer data; SB10. The control unit decompresses the multiple compressed layers of data of the third slice file to obtain a second slice file having multiple layers of data. SB11. The control unit converts each layer data and preview image data in the second slicing file into a corresponding slice image and preview image of each layer, and writes the designated storage path information as the slice image path and preview image path storage information of each layer into the file header, thereby obtaining a first format file; SB12. The control unit completes the final storage of the first format file in the designated storage path; SB13, process ends.

5. The SDK file format conversion method according to claim 1 or 4, characterized in that: The first format file includes: a file header, a preview image, a folder, and a layer slice image; wherein the file header further includes: an identification file header, printing parameters, a slice image path, and a preview image path; the preview image further includes: a large-size preview image and a small-size preview image; the folder and layer slice image further include: sequentially named layer slice images and a folder storing the layer slice images; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data; The second slicing file includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of layer data headers and their corresponding layer data in a continuous construction order; each layer data header is an index of the corresponding layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; and the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data; The third slicing file includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of sequentially constructed layer data headers and their corresponding compressed layer data; each layer data header is an index of the corresponding compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; and the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data; The fourth target file includes: a file header, preview image data, and layer slice data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of sequentially constructed layer data headers and their corresponding first-level encrypted compressed layer data; wherein each layer data header is an index of the corresponding first-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; and the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data; The fifth slicing file includes: a file header, preview image data, and layer slicing data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slicing data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of the corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data; The sixth slice file includes: a file header, preview image data, and layer slice data; wherein the file header further includes: an identification file header and secondary encrypted printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of the corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; the second-level encrypted printing parameters further include: second-level encrypted machine control parameters, second-level encrypted resolution parameters, and / or second-level encrypted machine model data; The seventh target file includes: a file header, preview image data, layer slice data, and a hash operation encryption signature; wherein the file header further includes: an identification file header and secondary encrypted printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of the corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; the hash operation encryption signature is a result obtained by performing a hash operation on the unencrypted printing parameter content in the fourth target file and then performing a secondary encryption on the operation result; the hash operation encryption signature is spliced ​​at the end of the seventh target file.

6. A SDK file decryption printing method for importing a designated primary encrypted fourth target file or a high-level encrypted seventh target file into a light-curing printing device for decryption printing, characterized in that: The following steps are involved: SS01, import the target file into the memory of the light-curing printing device; SS02, the controller reads the target file in the memory; SS03: The controller determines whether the magic number of the seventh target file preset in the printer firmware matches the magic number in the identification file header of the target file; if the magic numbers do not match, the target file is not the seventh target file, and the process proceeds to step SS16; if the magic numbers do match, the target file is the seventh target file, and the process proceeds to step SS04; SS04. The controller determines whether the slicing format version list in the printer firmware supports the slicing format version in the identification file header in the seventh target file; If it is determined that the slicing format version list in the printer firmware does not support the slicing format version in the identification file header of the seventh target file, proceed to step SS23; If it is determined that the slicing format version list in the printer firmware supports the slicing format version in the identification file header in the seventh target file, proceed to step SS05; SS05. The controller determines whether the OS version number in the printer firmware matches the OS version number in the identification file header in the seventh target file; if the OS version numbers do not match, the controller proceeds to step SS23. If it is determined that the two OS version numbers match each other, proceed to step SS06; SS06. The controller performs secondary decryption on the hash operation encrypted signature in the seventh target file to obtain a character string M1; SS07. The controller performs secondary decryption on the secondary encrypted printing parameter content in the seventh target file and then performs a hash operation on the obtained printing parameter content to obtain a character string M2. SS08. The controller determines whether the comparison strings M1 and M2 are identical; if the comparison strings M1 and M2 are not identical, the controller proceeds to step SS23. If it is determined that the character strings M1 and M2 are the same, proceed to step SS09; SS09, the controller sets the printing parameter content obtained by the secondary decryption as the printing parameter of the controller; SS10, the controller reads the Nth layer of slice data in the seventh target file in sequence; SS11. The controller determines whether the read layer slice data is secondary encrypted; If it is determined that the read slice data is not secondary encrypted, proceed to step SS13; If it is determined that the read slice data is secondary encrypted, proceed to step SS12; SS12, the controller performs secondary decryption on the read layer slice data; SS13, the controller first performs a first-level decryption and decompression on the layer slice data and then exposes and prints the obtained layer slice data in plain text; SS14, the controller determines whether all the slice data have been exposed and printed; If it is determined that all the slice data have completed exposure and printing, proceed to step SS24; If it is determined that all the slice data have not been completely exposed and printed, proceed to step SS15; SS15: The controller reads the slice data of the N+1th layer in sequence, and then proceeds to step SS11; SS16. The controller determines whether the magic number of the fourth target file preset in the printer firmware matches the magic number in the identification file header of the target file; if the magic numbers do not match, the target file is another type of file, and the process proceeds to step SS23; if the magic numbers do match, the target file is the fourth target file, and the process proceeds to step SS17; SS17. The controller determines whether the slicing format version list in the printer firmware supports the slicing format version in the identification file header in the fourth target file; If it is determined that the slicing format version list in the printer firmware does not support the slicing format version in the file header identified in the fourth target file, then step SS23 is performed; if it is determined that the slicing format version list in the printer firmware supports the slicing format version in the file header identified in the fourth target file, then step SS18 is performed; SS18. The controller determines whether the OS version number in the printer firmware matches the OS version number in the identification file header in the fourth target file; if the OS version numbers do not match, the controller proceeds to step SS23; if the OS version numbers do match, the controller proceeds to step SS19; SS19, the controller reads the Nth layer of slice data in the fourth target file in sequence; SS20, the controller first performs a first-level decryption and decompression on the read layer slice data and then exposes and prints the obtained layer slice data in plain text; SS21, the controller determines whether all the slice data have completed exposure and printing; If it is determined that all the slice data have completed exposure and printing, proceed to step SS24; If it is determined that all the slice data have not been completely exposed and printed, proceed to step SS22; SS22: The controller reads the slice data of the N+1th layer in sequence, and then proceeds to step SS20; SS23, the controller sends an error signal and exits the program; SS24, process ends.

7. The SDK file decryption and printing method according to claim 6, characterized in that: The execution order of the steps SS04 and SS05 is also interchanged; the execution order of the steps SS17 and SS18 is also interchanged; and N is a positive integer that increases from 1.

8. The SDK file decryption and printing method according to claim 6, characterized in that: The fourth target file includes: a file header, preview image data, and layer slice data; wherein the file header further includes: an identification file header and printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, wherein the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of sequentially constructed layer data headers and their corresponding first-level encrypted compressed layer data; wherein each layer data header is an index of the corresponding first-level encrypted compressed layer data; wherein the identification file header further includes: a magic number, a format version, and an OS version number; and the printing parameters further include: machine control parameters, resolution parameters, and / or machine model data; The seventh target file includes: a file header, preview image data, layer slice data, and a hash operation encryption signature; wherein the file header further includes: an identification file header and secondary encrypted printing parameters; the preview image data further includes: large-size preview image data with a data header and small-size preview image data with a data header, and the data header is an index of the corresponding large-size and small-size preview image data; the layer slice data further includes: a plurality of layer data headers with a continuous construction sequence and their corresponding first-level encrypted compressed layer data, and a plurality of layer data headers with an interval construction sequence and their corresponding second-level encrypted compressed layer data; each layer data header is an index of the corresponding first-level encrypted compressed layer data or second-level encrypted compressed layer data; the hash operation encryption signature is a result obtained by performing a hash operation on the unencrypted printing parameter content in the fourth target file and then performing a secondary encryption on the operation result; the hash operation encryption signature is spliced ​​at the end of the seventh target file.

9. The SDK file format conversion method according to claim 1 or 4, or the SDK file decryption and printing method according to claim 6, characterized in that: The method used for the first-level encryption or decryption includes: a substitution cipher algorithm or a shift cipher algorithm; the method used for the second-level encryption or decryption includes: an AES encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, or an ECC encryption algorithm; the hash operation includes: a SHA1 algorithm, an MD5 algorithm, a SHA256 algorithm, or a SHA512 algorithm.

10. An SDK file format conversion device for converting a first format file in an open storage form into a designated fourth target file of primary encryption or a seventh target file of advanced encryption, characterized in that: include: A first format file acquisition module, configured to read the first format file in the storage unit; An applicable resolution determination module, configured to determine whether the applicable resolution of the first format file is greater than or equal to a resolution setting value on the X / Y axis according to resolution parameters / machine model data / slice image resolution; a first format conversion module, configured to convert the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header, respectively, according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file; a first data compression module, configured to compress the slice data of multiple layers in the second slice file to obtain a third slice file having multiple compressed layer data; A first level encryption module, configured to perform level-one encryption on the plurality of compressed layer data of the third slice file to obtain a fourth target file having the plurality of level-one encrypted compressed layer data; a layer data secondary encryption module, configured to perform secondary encryption on X discontinuous layers of the primary encrypted and compressed layer data randomly selected from the fourth target file to obtain a fifth slice file; A printing parameter secondary encryption module, used for performing secondary encryption on the printing parameters of the fifth slicing file to obtain a sixth slicing file; A hash operation module, used to perform a hash operation on the printing parameter content in the fifth slice file and perform secondary encryption on the operation result to obtain a hash operation encryption signature; A seventh target file generation module, configured to concatenate the hash operation encryption signature to the end of the sixth slice file to form a seventh target file; A seventh target file storage module, configured to complete the final storage of the seventh target file in a designated storage path; The second format conversion module converts the slice image and preview image of each layer in the folder and the layer slice image into layer data and preview image data with a data header according to the slice image path and preview image path in the first format file, thereby obtaining a second slice file; A second data compression module is used to compress the slice data of multiple layers of the second slice file to obtain a third slice file having multiple compressed layer data; A first-level encryption second module is used to perform first-level encryption on the multiple compressed layer data of the third slice file to obtain a fourth target file having multiple first-level encrypted compressed layer data; A fourth target file storage module, configured to complete final storage of the fourth target file in a designated storage path; The first ending module is used to end the process.

11. An SDK file format conversion device for converting a designated primary encrypted fourth target file or a high-level encrypted seventh target file into a first format file in an open storage format, characterized in that: include: A target file acquisition module, configured to read the fourth target file / seventh target file in the storage unit; Secondary encryption judgment module, used to read the magic number in the target file header and judge whether the target file is secondary encrypted; A secondary decryption and hash operation module, configured to perform secondary decryption on the secondary encrypted printing parameter content in the seventh target file to obtain temporarily stored unencrypted printing parameter content, and then perform a hash operation on the unencrypted printing parameter content to obtain a character string M1; A string secondary encryption module is used to perform secondary encryption on string M1 to obtain string M2; A hash operation signature judgment module is used to judge whether the hash operation encryption signature in the seventh target file is the same as the character string M2; A sixth slice file acquisition module, configured to read the portion other than the hash operation encryption signature in the seventh target file to obtain a sixth slice file; a fifth slicing file obtaining module, configured to replace the secondary encrypted printing parameter content in the sixth slicing file with the temporarily stored unencrypted printing parameter content to obtain a fifth slicing file; A secondary decryption module, configured to perform secondary decryption on the secondary encrypted compressed layer data in the fifth slice file to obtain a fourth target file; a first-level decryption module, configured to perform first-level decryption on the plurality of first-level encrypted compressed layer data of the fourth target file to obtain a third slice file having the plurality of compressed layer data; a data decompression module, configured to decompress the plurality of compressed layer data of the third slice file to obtain a second slice file having a plurality of layer data; A first format file generation module is used to convert the layer data and preview image data in the second slice file into slice images and preview images of each layer respectively, and write the specified storage path information as the slice image path and preview image path storage information of each layer into the file header to obtain the first format file; A first format file storage module, configured to complete final storage of the first format file in a designated storage path; The second ending module is used to end the process.

12. An SDK file decryption and printing device, used to import a designated primary encrypted fourth target file or a high-level encrypted seventh target file into a light-curing printing device for decryption and printing, characterized in that: include: A target file import module, used for importing the target file into the memory of the light-curing printing device; A target file reading module is used to read the target file in the memory; a seventh target file magic number matching judgment module, used to judge whether the magic number of the seventh target file preset in the printer firmware matches the magic number in the identification file header of the target file; a seventh target file slicing format version determination module, configured to determine whether the slicing format version list in the printer firmware supports the slicing format version in the identification file header in the seventh target file; a seventh target file OS version number matching determination module, configured to determine whether the OS version number in the printer firmware matches the OS version number in the identification file header in the seventh target file; The encrypted signature secondary decryption module is used to perform secondary decryption on the hash operation encrypted signature in the seventh target file to obtain a character string M1; A secondary encrypted printing parameter decryption and hash operation module, configured to perform secondary decryption on the secondary encrypted printing parameter content in the seventh target file and then perform a hash operation on the obtained printing parameter content to obtain a character string M2; The hash operation signature judgment module is used to judge whether the comparison strings M1 and M2 are the same; A printing parameter setting module, used to set the printing parameter content obtained by the secondary decryption as the printing parameter of the controller; a first layer slice data reading module, configured to sequentially read the Nth layer or the N+1th layer slice data in the seventh target file; A layer slice data secondary encryption judgment module is used to judge whether the read layer slice data is secondary encrypted; A layer slice data secondary decryption module, used for performing secondary decryption on the read layer slice data; The first level decryption and decompression exposure printing module is used to first perform level decryption and decompression on the layer slice data and then perform exposure printing on the obtained layer slice data in plain text; The seventh target file printing completion judgment module is used to judge whether all layer slice data have completed exposure and printing; a fourth target file magic number matching judgment module, configured to judge whether the magic number of the fourth target file preset in the printer firmware matches the magic number in the identification file header of the target file; a fourth target file slicing format version determination module, configured to determine whether the slicing format version list in the printer firmware supports the slicing format version in the identification file header in the fourth target file; a fourth target file OS version number matching determination module, configured to determine whether the OS version number in the printer firmware matches the OS version number in the identification file header in the fourth target file; A second layer slice data reading module is used to sequentially read the Nth layer or N+1th layer slice data in the fourth target file; The second module of the first-level decryption and decompression exposure printing is used to first perform the first-level decryption and decompression on the read layer slice data and then perform exposure printing on the obtained layer slice data plain text; The fourth target file printing completion judgment module is used to judge whether all layer slice data have completed exposure and printing; Error exit module, used to send out error signals and exit the program; The third ending module is used to end the process.

13. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores a computer program, and when the computer program is executed by the control unit, the steps of the SDK file format conversion method according to claim 1 or 4 are implemented.

14. A computer program product, characterized in that The computer program product includes computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the SDK file format conversion method according to claim 1 or 4.

15. An electronic device, characterized in that: include: at least one control unit; And a storage unit communicatively connected to the at least one control unit; wherein the storage unit stores instructions that can be executed by the at least one control unit, and the instructions are executed by the at least one control unit so that the at least one control unit can execute the SDK file format conversion method as described in claim 1 or 4.

16. A 3D printing device, used to execute the steps of the SDK file decryption and printing method according to claim 5, characterized in that: include: A controller, an LCD screen, a motor, a memory, a UVLED light source module, a display and operation unit, a molding platform, a liquid tank, a lifting column, a base film, a photosensitive resin, and a base; the controller, LCD screen, UVLED light source module, and liquid tank are connected to the base; the motor is connected to the molding platform; the lifting column is fixedly connected to the base; the motor is installed on the lifting column to realize electric drive lifting and drive the molding platform to rise or fall with it; the base film is set at the bottom of the liquid tank for light transmission; the photosensitive resin liquid is contained in the liquid tank; the controller is electrically connected to the LCD screen, the motor, the memory, the UVLED light source module, the display and operation unit; the memory stores the fourth target file or the seventh target file or other types of files; The controller reads the fourth target file or the seventh target file or other types of files in the memory; The controller performs hash operation verification, secondary decryption, primary decryption, and decompression on the seventh target file to obtain printing parameter plaintext and layer data plaintext, or performs primary decryption and decompression on the fourth target file to obtain printing parameter plaintext and layer data plaintext; the controller sets the printing parameter plaintext as a printing execution parameter, and performs mask exposure on the layer data plaintext layer by layer; The controller controls the motor to drive the forming platform to move up and down according to the printing execution parameters; The user issues an operation instruction to the controller through the display and operation unit, and the controller responds to the instruction and issues a control signal to control each controlled unit to complete the instruction action, thereby realizing human-computer interaction. The controller outputs signals and data to the display and operation unit so that it displays a preview image of the 3D model slice mask, machine control parameters, system setting options, and system operating parameters. The controller controls the motor to drive the forming platform to move up and down according to the printing parameters. The controller controls the UVLED light source module to light up or turn off; the UVLED light source module emits ultraviolet light and visible light through the mask image and base film in the LCD screen to expose and irradiate the photosensitive resin in the liquid tank to solidify and form it; the forming platform is used to adhere to the solidified model forming resin layer during the curing and forming process so that it continues to rise and grow until the 3D printing is completed; the 3D printing equipment adopts an ascending LCD light-curing 3D printer or a sinking LCD light-curing 3D printer.

Citation Information

Patent Citations

  • 3D printing method and device and storage medium

    CN111070662A

  • Printing method and device, electronic equipment and computer readable storage medium

    CN111880755A