Summary of the invention
This application provides a kind of 3D Method of printing based on streaming technology and system, solve the technical problem that existing 3D printer model file is easily illegally stolen and propagated.
For solving above-mentioned technical problem, the application is achieved by the following technical solutions:
A kind of 3D Method of printing based on streaming technology is proposed, including: 3D printer model data are resolved into multiple packet, and by each data packet compressing and encrypt;Print command is sent to target 3D printing device;Send the multiple packets after compressing and encrypting in order to described target 3D printing device with data-stream form;After packet is sent, sends to described target 3D printing device and delete instruction.
Further, the multiple packets after compressing and encrypting are sent in order to described target 3D printing device with data-stream form, particularly as follows: before sending print command to target 3D printing device, send the packet of the beginning part with data-stream form;And, after sending print command to target 3D printing device, send the packet after the beginning part with data-stream form in order.
Further, before sending print command to target 3D printing device, described method also includes: send connection request to described target 3D printing device;Judge whether to be connected to described target 3D printing device;If it is not, resend connection request and/or send the information of connection failure.
Further, in order in the multiple process data packets after described target 3D printing device sends compression and encrypts, described method also includes: often according to setting number after described target 3D printing device sends packet, it may be judged whether receive the reception confirmation signal that described target 3D printing device returns;If so, again according to setting number to described target 3D printing device transmission setting number packet.
A kind of 3D Method of printing based on streaming technology is also proposed, including: receive the packet sent with data-stream form;Described packet is to compress and encrypt after 3D printer model data are decomposed to obtain;It is stored in internal memory after packet is decompressed and decrypted by;In receiving process data packet, if receiving print command, from described internal memory, read data packet starts to print 3D model in order;After 3D model has printed, delete the packet data of storage based on the instruction of deleting received.
Further, the described packet sent with data-stream form, particularly as follows: before receiving print command, receive the packet of the beginning part sent with data-stream form;After receiving print command, receive the packet after the beginning part with data-stream form transmission.
Further, in receiving the process data packet sent with data-stream form, described method also includes: after often receiving the packet once setting number, sends and receives confirmation signal.
A kind of 3D print system based on streaming technology is proposed, including server and target 3D printing device;Described server, divides module, compression module, encrypting module, control module and sending module including packet;Described packet divides module, for 3D printer model data are resolved into multiple packet;Described compression module, is used for compressing each packet;Described encrypting module, for encrypting the packet of each compression;Described control module, sends print command for printing to described target 3D;Described sending module, for sending the multiple packets after compressing and encrypting in order with data-stream form to described target 3D printing device;Described sending module send the packet within complete after, described control module to described target 3D printing device send delete instruction;Described target 3D printing device, including receiver module, deciphering module, decompression module, internal memory, print module and removing module;Described receiver module, for receiving the packet that described server sends with data-stream form;Described deciphering module, for deciphering the packet that described receiver module receives;Described decompression module, the packet after decompressing described deciphering, and the packet data of decompression is stored in described internal memory;Receiving in process data packet, if receiving print command, described print module from described internal memory in order read data packet start to print 3D model;Described removing module, after described print module completes the printing of 3D model, deletes the packet of storage in described internal memory based on the instruction of deleting received.
Further, described server also includes link block;Described target 3D printing device is multiple;Described link block, for sending before print command to described target 3D printing device in described control module, send connection request to selected target 3D printing device and connect described selected target 3D printing device, and judge whether to be connected to described selected 3D printing device, if on not connecting, then resending connection request and/or send the prompting of connection failure.
Further, described target 3D printing device also includes receiving confirming module;Described sending module, every this sends packet according to setting number to described target 3D printing device, described receiver module, after receiving the packet setting number, described reception confirms that module sends reception to described server and confirms module, the control module of described server is after judging to receive described reception confirmation signal, and described sending module sends setting number packet again according to setting number to described target 3D printing terminal.
Compared with prior art, advantage and the good effect of the application be: in 3D Method of printing based on streaming technology that the application proposes and system, server is before sending 3D model file, 3D model file data are decomposed into multiple packet, and in order the multiple packets after compression encryption are sent to target 3D printing device with data-stream form, print command is sent to target 3D printing device by server, and after packet is all sent, sends to target 3D printing device and delete instruction.Target 3D printing device receives the multiple packets sent with data-stream form that server sends, decipher successively and decompress and be stored in afterwards in internal memory, and after receiving the print command that server sends, start from internal memory in order read data packet start to print 3D model, after having printed 3D model, receive the deletion instruction that server sends, the packet stored in internal memory and in caching is all deleted.In above procedure, on the one hand, send to the packet of target 3D printing device from server and compress according to stream file mode and encrypt, it is ensured that the confidentiality in data transmission procedure;On the other hand, the server controls that print procedure is grasped by professional designer or model provider component completely, after printing completes, server sends deletes instruction control target 3D printing device by all deleting printing datas, stop recipient and grasp 3D model data afterwards such that it is able to again or repeatedly print the probability of 3D model having printed, really it is effectively protected the works copyright of Specialty Design teacher or model provider component, 3D model is prevented to be replicated, amendment, even conclude the business or share, solve the technical problem that existing 3D printer model file is easily illegally stolen and propagated.
After reading in conjunction with the accompanying the detailed description of the application embodiment, other features of the application and advantage will become clearer from.
Detailed description of the invention
Below in conjunction with the accompanying drawings the detailed description of the invention of the application is described in more detail.
The 3D Method of printing based on streaming technology of the application proposition and system, it is intended to realize 3D printer model data and not only illegally do not stolen in transmitting procedure, after transmission to recipient, also stop bootlegging and the propagation of recipient.
The embodiment of the present application illustrates the 3D Method of printing based on streaming technology of proposition in terms of sender and recipient two.
As it is shown in figure 1, from sender, namely provide Specialty Design teacher or the model provider component of 3D impression block data, the 3D Method of printing based on streaming technology that the application proposes, comprise the steps:
Step S11: 3D printer model data are resolved into multiple packet, and by each data packet compressing and encrypt.
3D printer model data need to carry out pretreatment: 3D printer model data are carried out burst, are converted into printing device manufacture and perform code, such as G code, are then further decomposed into multiple packet.
Encrypt according to AES after each packet is compressed, generate data streaming file.
Step S12: send print command to target 3D printing device.
Target 3D printing device is data receiver, such as, receive user or 3D print service business, and this target 3D printing device can be the equipment of default setting, it is also possible to be according to selecting mechanism select equipment in multiple 3D printing devices.
The startup of target 3D printing device is by sender's control, before sender does not send print command, recipient only receives packet, decompresses packet, deciphers and store work, after sender sends print command, just perform from internal memory, read the work that data start to print.
Step S13: send the multiple packets after compressing and encrypting with data-stream form in order to target 3D printing device.
The embodiment of the present application is not intended to the order that print command sends, and can send print command starting to send packet, it is also possible to retransmit after sending some packets simultaneously.A kind of preferred embodiment scheme is, before sending print command to target 3D printing device, 2-3 or more packet of the beginning part is first sent with data-stream form, target 3D printing device is the most first decompressed and decrypted by being stored in afterwards in internal memory, then sender retransmits print command, target 3D printing device is after receiving print command, on the one hand start from internal memory, read data in order to start to print, it is ensured that target 3D printing device i.e. has data can start to print after receiving print command;On the other hand, sender is after sending print command to target 3D printing device, continue to send the packet after the beginning part with data-stream form in order, and 3D printing target device is while printing, it is stored in sequence in internal memory after continuing to packet and being decompressed and decrypted by using for printing.
As previously mentioned, recipient can be to fix the printing device being connected with sender, it can also be the printing device that can select of multiple stage, many 3D print service business of print service or client's 3D printing device of customization 3D model etc. such as can be provided, in this case, after sender is according to selecting mechanism to select to connect the 3D printing device of recipient, just can send 3D printer model data, therefore before sending packet and print command to target 3D printing device, need send connection request to target 3D printing device and start to connect, and judge whether to be connected to target 3D printing device, if being connected to, can start to send data, if being not connected to, then need to wait, or resend connection request, or beyond the information sending connection failure after connecting the setting time.
Sender is when sending data, every time to recipient, namely target 3D printing device, send the packet setting a several compression and encrypting, target 3D printing device is upon receipt, reception confirmation signal can be returned to confirm this time to send to receive successfully to sender, after sender often sends a packet, need to judge whether to receive the reception confirmation signal that target 3D printing device returns, if have received, then send to target 3D printing device and set number packet again according to setting number, the state to be sent such as otherwise will always be in.
Step S14: after packet is sent, sends to target 3D printing device and deletes instruction.
After 3D printer model data are all sent completely, sending direction target 3D printing device sends out deletion instruction, this deletion instruction is intended to refer to target 3D printing device and deletes the packet of storage in internal memory and caching, 3D printer model data are deleted completely from target 3D printing device, stopping recipient after having printed for the first time, the packet that duplication is stored in internal memory realizes bootlegging and the propagation of 3D model.
As in figure 2 it is shown, from recipient, namely receive the 3D print service business of 3D printer model data or customize the 3D printing device that 3D model side provides, the corresponding sender of the application, it is also proposed that a kind of 3D Method of printing based on streaming technology, comprises the steps:
Step S21: receive the packet sent with data-stream form.
As it was previously stated, the packet received is sender by after 3D printer model data sectional, the packet of transmission after compressing and encrypt.
Step S22: be stored in internal memory after packet is decompressed and decrypted by.
Step S23: in receiving process data packet, if receiving print command, read data packet starts to print 3D model in order from internal memory.
Concrete, sender first sends the beginning part 2-3 with data-stream form or more packet retransmits print command to after target 3D printing device;Target 3D printing device, before receiving print command, receives the packet of the beginning part sent with data-stream form;Then it is decompressed and decrypted by being stored in afterwards in internal memory, after receiving print command, receives the packet after the beginning part sent with data-stream form, and from internal memory, read the data stored in order start to print 3D model.
Sender is transmitted according to the packet setting number every time, target 3D printing device is after often receiving the packet once setting number, return to sender and once receive confirmation signal, sender is only after receiving this reception confirmation signal, just can carry out data next time to send, otherwise can wait always and not send data.
Above-mentioned, in the 3D Method of printing based on streaming technology of the application proposition and system, sender, the server that such as Specialty Design teacher or model provider component grasp, before sending 3D model file, 3D model file data are decomposed into multiple packet, and in order the multiple packets after compression encryption are sent to target 3D printing device with data-stream form, print command is sent to target 3D printing device by server, and after packet is all sent, sends to target 3D printing device and delete instruction.Target 3D printing device receives the multiple packets sent with data-stream form that server sends, decipher successively and decompress and be stored in afterwards in internal memory, and after receiving the print command that server sends, start from internal memory in order read data packet start to print 3D model, after having printed 3D model, receive the deletion instruction that server sends, the packet stored in internal memory and in caching is all deleted.
In above procedure, on the one hand, send to the packet of target 3D printing device from server and compress according to stream file mode and encrypt, it is ensured that the confidentiality in data transmission procedure;On the other hand, the server controls that print procedure is grasped by professional designer or model provider component completely, after printing completes, server sends deletes instruction control target 3D printing device by all deleting printing datas, stop recipient and grasp 3D model data afterwards such that it is able to again or repeatedly print the probability of 3D model having printed, really it is effectively protected the works copyright of Specialty Design teacher or model provider component, 3D model is prevented to be replicated, amendment, even conclude the business or share, solve the technical problem that existing 3D printer model file is easily illegally stolen and propagated.
And, for Specialty Design teacher or model provider component, because the 3D Method of printing based on streaming technology that the application proposes ensure that 3D printer model data are not illegally stolen and propagate in transmitting procedure and after having printed, therefore, it is possible to realize Design Works to print manufacture by several times by the purchase number of times of recipient, so be conducive to preferably playing the value of Design Works, safeguard the interests of Specialty Design teacher or model provider component.
Based on 3D Method of printing based on streaming technology set forth above, the embodiment of the present application also proposes a kind of 3D print system based on streaming technology, as it is shown on figure 3, include at least one target 3D printing device 31 and server 32.
Server 32 includes that packet divides module 321, compression module 322, encrypting module 323, control module 324 and sending module 325;Packet divides module 321 for 3D printer model data are resolved into multiple packet;Compression module 322 is used for compressing each packet;Encrypting module 323 is for encrypting the packet of each compression;Control module 324 is for sending print command to target 3D printing device;Sending module 325 for sending the multiple packets after compressing and encrypting in order with data-stream form to target 3D printing device 31;Sending module 325 send the packet within complete after, control module 324 to target 3D printing device send delete instruction.
Target 3D printing device 31 includes receiver module 311, deciphering module 312, decompression module 313, internal memory 314, print module 315 and removing module 316;Receiver module 311 is for receiving the packet that server sends with data-stream form;Deciphering module 312 is for deciphering the packet that receiver module receives;The decompression module 313 packet after decompressing deciphering, and the packet data of decompression is stored in internal memory 314;Receiving in process data packet, if receiving print command, print module 315 from internal memory 314 in order read data packet start to print 3D model;Removing module 316, after print module completes the printing of 3D model, deletes the packet of storage in internal memory based on the instruction of deleting received.
Server 32 also includes link block 325, for sending before print command to target 3D printing device in control module 324, connection request linking objective 3D printing device is sent to target 3D printing device, and judge whether to be connected to 3D printing device, if on not connecting, then resending connection request and/or send the prompting of connection failure.
Target 3D printing device 31 also includes receiving confirming module 317;The sending module 321 of server is every time according to setting number to target 3D printing device transmission packet, the receiver module 311 of target 3D printing device is after receiving the packet setting number, receive and confirm that module 317 sends reception to server and confirms module, the control module 324 of server is after judging to receive reception confirmation signal, and sending module 321 sends setting number packet again according to setting number to target 3D printing terminal.
Concrete system method of work describes in detail in above-mentioned 3D Method of printing based on streaming technology, and it will not go into details herein.
It should be noted that; described above is not limitation of the present invention; the present invention is also not limited to the example above, change that those skilled in the art are made in the essential scope of the present invention, retrofits, adds or replaces, and also should belong to protection scope of the present invention.