Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide a 3D printing method, device and storage medium, which can directly store print data in a cloud, so that a printer can download data required for printing at the cloud, thereby ensuring production efficiency and improving compatibility.
In order to achieve the purpose, the invention adopts the following technical scheme:
a 3D printing method comprising the steps of:
receiving 3D model data uploaded by a user, converting the 3D model data into a universal printing code, and uploading the universal printing code to a cloud server;
receiving a printing instruction of the 3D printer, and searching a general printing code corresponding to the printing instruction from the cloud server;
and verifying the 3D printer, and sending the general printing code to the 3D printer after verification is finished so that the 3D printer performs 3D printing.
Preferably, in the 3D printing method, the universal printing code is attached with an encrypted file and an identification file.
Preferably, in the 3D printing method, the step of receiving 3D model data uploaded by a user, converting the 3D model data into a universal printing code, and uploading the universal printing code to a cloud server specifically includes:
receiving 3D model data uploaded by a user;
processing the 3D model data, converting the data into a general printing code, and endowing an encrypted file and an identity identification file for the general printing code;
and uploading the universal printing codes to a code storage library of the cloud server, wherein a plurality of universal printing codes which correspond to the 3D model one by one are stored in the code storage library.
Preferably, in the 3D printing method, the step of receiving a printing instruction of the 3D printer and finding out a general printing code corresponding to the printing instruction from the cloud server specifically includes:
receiving a printing instruction of a 3D printer and analyzing a 3D model corresponding to the printing instruction;
and searching out a general printing code matched with the 3D model corresponding to the printing instruction from the code storage library according to the code file ID corresponding to the 3D model.
Preferably, in the 3D printing method, the step of verifying the 3D printer and sending the general printing code to the 3D printer after the verification is completed so that the 3D printer performs 3D printing specifically includes:
identifying the 3D printer through an identity identification file, and judging whether the identity of the 3D printer sending the printing instruction meets the requirement or not;
when the identity of the 3D printer meets the requirement, automatically modifying the universal printing code according to the type of the 3D printer so that the universal printing code is adapted to the 3D printer;
and sending the modified general printing code to the 3D printer to enable the 3D printer to perform 3D printing.
A 3D printing device comprising: a processor and a memory coupled to the processor;
the memory has stored thereon a computer readable program executable by the processor;
the processor, when executing the computer readable program, implements the steps of:
receiving 3D model data uploaded by a user, converting the 3D model data into a universal printing code, and uploading the universal printing code to a cloud server;
receiving a printing instruction of the 3D printer, and searching a general printing code corresponding to the printing instruction from the cloud server;
and verifying the 3D printer, and sending the general printing code to the 3D printer after verification is finished so that the 3D printer performs 3D printing.
Preferably, in the 3D printing apparatus, when the processor executes the computer readable program, the following steps are further implemented:
receiving 3D model data uploaded by a user;
processing the 3D model data, converting the data into a general printing code, and endowing an encrypted file and an identity identification file for the general printing code;
and uploading the universal printing codes to a code storage library of the cloud server, wherein a plurality of universal printing codes which correspond to the 3D model one by one are stored in the code storage library.
Preferably, in the 3D printing apparatus, when the processor executes the computer readable program, the following steps are further implemented:
receiving a printing instruction of a 3D printer and analyzing a 3D model corresponding to the printing instruction;
and searching out a general printing code matched with the 3D model corresponding to the printing instruction from the code storage library according to the code file ID corresponding to the 3D model.
Preferably, in the 3D printing apparatus, when the processor executes the computer readable program, the following steps are further implemented:
identifying the 3D printer through an identity identification file, and judging whether the identity of the 3D printer sending the printing instruction meets the requirement or not;
when the identity of the 3D printer meets the requirement, automatically modifying the universal printing code according to the type of the 3D printer so that the universal printing code is adapted to the 3D printer;
and sending the modified general printing code to the 3D printer to enable the 3D printer to perform 3D printing.
A computer readable storage medium having one or more programs stored therein, the one or more programs being executable by one or more processors to implement a 3D printing method as described above.
Compared with the prior art, the 3D printing method, the 3D printing equipment and the storage medium provided by the invention have the advantages that the 3D model data uploaded by a user is received, the 3D model data is converted into the universal printing code, and the universal printing code is uploaded to the cloud server; receiving a printing instruction of the 3D printer, and searching a general printing code corresponding to the printing instruction from the cloud server; and verifying the 3D printer, and sending the general printing code to the 3D printer after verification is finished so that the 3D printer performs 3D printing. According to the invention, the model data is converted into the general printing codes and then stored in the cloud, so that the printer can directly acquire the printing data at the cloud, the 3D printers in different geographic positions can cooperatively call to print the same codes, discrete manufacturing is realized, manual participation can be reduced, the production efficiency is ensured, and the compatibility is improved.
Detailed Description
The present invention provides a 3D printing method, apparatus and storage medium, and in order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Please refer to fig. 1, which is a flowchart of a 3D printing method according to the present embodiment, including the following steps:
s100, receiving 3D model data uploaded by a user, converting the 3D model data into a general printing code, and uploading the general printing code to a cloud server.
In the embodiment, 3D model data is automatically completed by a user, the 3D model data is processing data of parts, and in specific implementation, the 3D model data can be stored into format files such as STL, OBJ, AMF, STP and the like and then uploaded; preferably, the general printing code is attached with an encrypted file and an identity identification file, the encrypted file is used for being identified by a 3D printer, so that a legal 3D printer can be called conveniently to print, the identity identification file is used for identifying the 3D printer, the 3D printer is guaranteed to be a printer authenticated by the 3D printing equipment provided by the invention, the confidentiality of data is further enhanced, in addition, the identity identification file can also identify the type of the 3D printer, so that the follow-up matching of the general printing code and the 3D printer is facilitated, the purposes of calling the same code in different places and being compatible with different types of printers are achieved, the production efficiency is guaranteed, and the compatibility is improved. The specific steps of step S100 are shown in fig. 2.
Please refer to fig. 2, which is a detailed flowchart of the step S100, wherein the step S100 specifically includes:
s101, receiving 3D model data uploaded by a user;
s102, processing the 3D model data, converting the data into a general printing code, and endowing an encrypted file and an identity identification file for the general printing code;
s103, uploading the universal printing codes to a code storage library of the cloud server, wherein the code storage library stores a plurality of universal printing codes which are in one-to-one correspondence with the 3D model.
In the embodiment, after receiving 3D model data uploaded by a user, a 3D printing device converts the data and encrypts the data to ensure the confidentiality of the data, and then uploads the data to a cloud server for storage, in the specific implementation, a code storage library is arranged in the cloud server, a plurality of general printing codes are stored in the code storage library, each general printing code corresponds to a 3D model, and in the actual use, if a user needs to update the 3D model data, the user only needs to upload model data corresponding to the 3D model to the 3D printing device provided by the invention to store the model data, and since the 3D model data is not stored in the 3D printer, the 3D printer does not need to be updated, and only needs to connect the 3D printer with the 3D printing device provided by the invention, the 3D printer can call the general code of printing that all model data in the high in the clouds server correspond and print to make things convenient for the use of 3D printer, in addition, can also ensure the identity of the part that prints, raise the efficiency.
S200, receiving a printing instruction of the 3D printer, and searching a general printing code corresponding to the printing instruction from the cloud server.
In the embodiment, only the name of the 3D model is stored in the 3D printer, when printing is performed, a user can input or select the name of the 3D model to be printed, then after the printing is clicked, the 3D printer sends the printing instruction to the 3D printing device provided by the invention, after the 3D printing device receives the printing instruction, the printing instruction is analyzed and processed, and then the corresponding general printing code is called. Specifically, a detailed flowchart of the step S200 is shown in fig. 3.
Please refer to fig. 3, which is a detailed flowchart of the step S200, wherein the step S200 specifically includes:
s201, receiving a printing instruction of a 3D printer and analyzing a 3D model corresponding to the printing instruction;
s202, searching out a general printing code matched with the 3D model corresponding to the printing instruction from the code storage library according to the code file ID corresponding to the 3D model.
In this embodiment, the print instruction includes a name of a 3D model to be printed and a name and a type of a 3D printer, the name of the 3D model is used for the 3D printing device to find a general print code corresponding to the 3D model in a code storage library of a cloud server, and the name and the type of the 3D printer are used for the 3D printing device to identify the printer; the code storage library can be updated at any time, a user can directly delete one or more universal printing codes in the code storage library of the cloud server, certainly, the user can also add new universal printing codes into the code storage library, all the universal printing codes are unique and correspond to the unique 3D model, the 3D printer can be guaranteed to find the unique universal printing codes after sending printing instructions, and printing disorder is avoided.
S300, verifying the 3D printer, and sending the general printing code to the 3D printer after verification is completed so that the 3D printer can perform 3D printing.
In this embodiment, in order to prevent the 3D printer that is not legally registered from invoking data, the identity of the printer needs to be verified, and only when the verification is successful, the universal printing code is allowed to be sent to the 3D printer, so that it can be ensured that the data cannot be illegally invoked, in addition, in order to adapt to printers of various models, the identification file is also used for identifying the type of the 3D printer, and further, according to the type of the 3D printer, an appropriate printing code is sent to the 3D printer, so that the identity of the printing quality is ensured, the 3D printers in different geographic locations are cooperatively invoked to print the same code, thereby achieving discrete manufacturing, and reducing the manual involvement, and specifically, the specific flowchart of step S300 is shown in fig. 4.
Please refer to fig. 4, which is a detailed flowchart of the step S300, wherein the step S300 specifically includes:
s301, identifying the 3D printer through an identity identification file, and judging whether the identity of the 3D printer sending the printing instruction meets the requirement or not;
s302, when the identity of the 3D printer meets the requirement, automatically modifying the universal printing code according to the type of the 3D printer so that the universal printing code is adapted to the 3D printer;
and S303, sending the modified general printing code to the 3D printer to enable the 3D printer to perform 3D printing.
In the embodiment, the identity recognition of the printer is carried out through the identity recognition file preset on the universal printing code, the identity recognition files in all the universal printing codes can be the same or different, a user can customize the universal printing codes according to own requirements, and when the identity recognition files of all the universal printing codes are the same, the user can set the 3D printer with the appointed name or type to call all the codes; when the identification files of all the universal printing codes are different, a user can specify that a certain universal printing code can be called only by a specific 3D printer, and another certain universal printing code can be called only by one or more other 3D printers, so that the confidentiality of data is further ensured; in addition, because different geographic positions, different devices and different people generally have to be models corresponding to one type or one model, so that different people and different machines can have problems when printing, the type of the 3D printer is judged, relevant parameters of the 3D printer are obtained through the type of the 3D printer, for example, the working size, consumable materials and other data of the 3D printer, and problems can occur when one code is used for printing due to different types of consumable materials possibly loaded by different 3D printers.
Preferably, when the identity of the 3D printer does not meet the requirement, a printing error prompt is sent to the printer or the printing error is directly displayed on the 3D printing equipment, so that the calling of data by an illegal printer is avoided.
Furthermore, after the 3D printer acquires the universal printing code, the encrypted file needs to be decrypted, and only the legal 3D printer can decrypt the encrypted file, so that even if some 3D printers steal identities and pass the security verification by means such as proxy networking, the universal printing code cannot be further acquired, and the confidentiality of data can be further ensured.
The implementation equipment of the 3D printing method provided by the invention is substantially similar to an upper computer of a 3D printer, the 3D printer as the lower computer is used for printing, and after the 3D printer as the lower computer is legally registered as the lower computer of the implementation equipment of the 3D printing method provided by the invention, the 3D printing equipment can be used for acquiring the universal printing code of the 3D model to be printed, so that the 3D printing is realized, the implementation equipment is simple and convenient, and the storage space of the 3D printer is saved.
It should be understood that, although the steps in the flowcharts of fig. 1 to 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise.
As shown in fig. 5, based on the 3D printing method, the present invention further provides a 3D printing device, where the 3D printing device may be a computing device such as a mobile terminal, a desktop computer, a notebook, a server, and the like.
The 3D printing apparatus includes a processor 10, a memory 20, and a display 30. Fig. 5 illustrates only some of the components of the 3D printing device, but it is to be understood that not all of the illustrated components are required and that more or fewer components may alternatively be implemented.
The memory 20 may in some embodiments be an internal storage unit of the 3D printing device, such as a hard disk or a memory of the 3D printing device. The memory 20 may also be an external storage device of the 3D printing device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the 3D printing device. Further, the memory 20 may also include both an internal storage unit of the 3D printing apparatus and an external storage apparatus. The memory 20 is used for storing application software installed in the 3D printing apparatus and various types of data, such as program codes of the 3D printing apparatus. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a 3D printing program 40, and the 3D printing program can be executed by the processor 10, so as to implement the 3D printing method according to the embodiments of the present application.
The processor 10 may be a Central Processing Unit (CPU), a microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 20 or Processing data, such as executing the 3D printing method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used to display information of the 3D printing apparatus and to display a visualized user interface. The components 10-30 of the 3D printing device communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the 3D printing program 40 in the memory 20:
receiving 3D model data uploaded by a user, converting the 3D model data into a universal printing code, and uploading the universal printing code to a cloud server;
receiving a printing instruction of the 3D printer, and searching a general printing code corresponding to the printing instruction from the cloud server;
and verifying the 3D printer, and sending the general printing code to the 3D printer after verification is finished so that the 3D printer performs 3D printing.
In one embodiment, the universal print code is accompanied by an encrypted file and an identification file.
In one embodiment, the following steps are also implemented when the processor 10 executes the 3D printing program 40 in the memory 20:
receiving 3D model data uploaded by a user;
processing the 3D model data, converting the data into a universal printing code, and endowing an encrypted file and an identity identification file for the universal printing code;
and uploading the universal printing codes to a code storage library of the cloud server, wherein a plurality of universal printing codes which correspond to the 3D model one by one are stored in the code storage library.
In one embodiment, the following steps are also implemented when the processor 10 executes the 3D printing program 40 in the memory 20:
receiving a printing instruction of a 3D printer and analyzing a 3D model corresponding to the printing instruction;
and searching out a general printing code matched with the 3D model corresponding to the printing instruction from the code storage library according to the code file ID corresponding to the 3D model.
In one embodiment, the following steps are also implemented when the processor 10 executes the 3D printing program 40 in the memory 20:
identifying the 3D printer through an identity identification file, and judging whether the identity of the 3D printer sending the printing instruction meets the requirement or not;
when the identity of the 3D printer meets the requirement, automatically modifying the universal printing code according to the type of the 3D printer so that the universal printing code is adapted to the 3D printer;
and sending the modified general printing code to the 3D printer to enable the 3D printer to perform 3D printing.
Please refer to fig. 6, which is a functional block diagram of a system for installing a 3D printing program according to a preferred embodiment of the present invention. In this embodiment, the system for installing the 3D printing program may be divided into one or more modules, and the one or more modules are stored in the memory 20 and executed by one or more processors (in this embodiment, the processor 10) to complete the present invention. For example, in fig. 6, a system in which a 3D printing program is installed may be divided into a data reception processing module 21, an instruction reception module 22, and a data transmission module 23. The module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than a program for describing the execution process of the 3D printing program in the 3D printing device. The following description will specifically describe the functionality of the modules 21-23.
The data receiving and processing module 21 is configured to receive 3D model data uploaded by a user, convert the 3D model data into a universal printing code, and upload the universal printing code to a cloud server;
the instruction receiving module 22 is configured to receive a printing instruction of the 3D printer, and find out a general printing code corresponding to the printing instruction from the cloud server;
and the data sending module 23 is configured to verify the 3D printer, and send the general printing code to the 3D printer after the verification is completed, so that the 3D printer performs 3D printing.
Wherein the universal printing code is attached with an encrypted file and an identification file.
The data receiving and processing module 21 specifically includes:
the model data receiving unit is used for receiving 3D model data uploaded by a user;
the data conversion unit is used for processing the 3D model data, converting the 3D model data into a general printing code and endowing an encrypted file and an identity identification file for the general printing code;
and the data uploading unit is used for uploading the universal printing codes to a code storage library of the cloud server, wherein the code storage library stores a plurality of universal printing codes which are in one-to-one correspondence with the 3D model.
The instruction receiving module 22 specifically includes:
the instruction analysis unit is used for receiving a printing instruction of the 3D printer and analyzing a 3D model corresponding to the printing instruction;
and the code searching unit is used for searching out a general printing code matched with the 3D model corresponding to the printing instruction from the code storage library according to the code file ID corresponding to the 3D model.
The data sending module 23 specifically includes:
the identity verification unit is used for identifying the 3D printer through an identity identification file and judging whether the identity of the 3D printer sending the printing instruction meets the requirement or not;
the code adjusting unit is used for automatically modifying the universal printing code according to the type of the 3D printer to enable the universal printing code to be matched with the 3D printer when the identity of the 3D printer meets the requirement;
and the data sending unit is used for sending the modified general printing code to the 3D printer so as to enable the 3D printer to perform 3D printing.
In summary, in the 3D printing method, the device and the storage medium provided by the present invention, the method includes receiving 3D model data uploaded by a user, converting the 3D model data into a universal printing code, and uploading the universal printing code to a cloud server; receiving a printing instruction of the 3D printer, and searching a general printing code corresponding to the printing instruction from the cloud server; and verifying the 3D printer, and sending the general printing code to the 3D printer after verification is finished so that the 3D printer performs 3D printing. According to the invention, the model data is converted into the general printing codes and then stored in the cloud, so that the printer can directly acquire the printing data at the cloud, the 3D printers in different geographic positions can cooperatively call to print the same codes, discrete manufacturing is realized, manual participation can be reduced, the production efficiency is ensured, and the compatibility is improved.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.