CN113419691B - 3D printing method and device and 3D printing Internet of things system - Google Patents

3D printing method and device and 3D printing Internet of things system Download PDF

Info

Publication number
CN113419691B
CN113419691B CN202110749010.5A CN202110749010A CN113419691B CN 113419691 B CN113419691 B CN 113419691B CN 202110749010 A CN202110749010 A CN 202110749010A CN 113419691 B CN113419691 B CN 113419691B
Authority
CN
China
Prior art keywords
printing
printer
target
model file
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110749010.5A
Other languages
Chinese (zh)
Other versions
CN113419691A (en
Inventor
张可欣
任永刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Bering 3d Technology Co ltd
Original Assignee
Shandong Bering 3d Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Bering 3d Technology Co ltd filed Critical Shandong Bering 3d Technology Co ltd
Priority to CN202110749010.5A priority Critical patent/CN113419691B/en
Publication of CN113419691A publication Critical patent/CN113419691A/en
Application granted granted Critical
Publication of CN113419691B publication Critical patent/CN113419691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/126Job scheduling, e.g. queuing, determine appropriate device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

The application discloses a 3D printing method, a device and a 3D printing Internet of things system, wherein the method comprises the following steps: receiving a 3D printing model file, and determining a target 3D printer corresponding to the 3D printing model file; putting a printing task generated according to the 3D printing model file into a corresponding production scheduling queue, sending a downloading command to a target 3D printer, and downloading the 3D printing model file by the target 3D printer; sending a printing control command to the 3D printer in the idle state, and performing 3D printing by the 3D printer in the idle state; and monitoring the printing process of the 3D printer, and outputting printing data by the message center. The above-mentioned technical scheme that this application discloses realizes going on automatically of 3D printing to improve printing efficiency, reduce the printing cost, and carry out automatic monitoring to the printing process, in order to realize the effective control to 3D printing, and through the print data of message center output monitoring, so that relevant personnel in time acquire print data.

Description

3D printing method and device and 3D printing Internet of things system
Technical Field
The application relates to the technical field of rapid prototyping, in particular to a 3D printing method and device and a 3D printing Internet of things system.
Background
With the development of rapid prototyping technology, 3D printing is widely used in mold manufacturing and direct manufacturing of some products due to its advantages of low cost, environmental protection, etc.
At present, the current 3D printing process is: the method is characterized in that a manager copies the 3D printing model file from the computer, transfers the copied 3D printing model file to an idle 3D printer for printing, and manually checks the printing progress and the like by the manager in the printing process.
In summary, how to improve the 3D printing efficiency, reduce the 3D printing cost, and realize effective monitoring of 3D printing is a technical problem to be urgently solved by those skilled in the art.
Disclosure of Invention
In view of this, an object of the present application is to provide a 3D printing method and apparatus, and a 3D printing internet of things system, which are used to improve 3D printing efficiency, reduce 3D printing cost, and implement effective monitoring on 3D printing.
In order to achieve the above purpose, the present application provides the following technical solutions:
a 3D printing method, comprising:
receiving a 3D printing model file, and determining a target 3D printer corresponding to the 3D printing model file;
generating a printing task according to the printing parameters of the 3D printing model file, putting the printing task into a production scheduling queue corresponding to the target 3D printer, sending a downloading command to the target 3D printer, and downloading the 3D printing model file by the target 3D printer according to the production scheduling queue asynchronously and in a slicing mode;
monitoring each 3D printer, when the 3D printer in an idle state is monitored, sending a printing control command to the 3D printer in the idle state, and performing 3D printing by the 3D printer in the idle state according to the corresponding production scheduling queue and the downloaded 3D printing model file;
monitoring the printing process of a 3D printer for 3D printing, sending the monitored printing data to a message center, and outputting the printing data by the message center.
Preferably, the determining the target 3D printer corresponding to the 3D printing model file includes:
and screening target 3D printers corresponding to the 3D printing model files from all the 3D printers according to the printing process, the printing time and the latest delivery time of the 3D printing model files.
Preferably, after the target 3D printer corresponding to the 3D printing model file is screened from each 3D printer, the method further includes:
if at least two target 3D printers are screened out, calculating the current priority of each target 3D printer according to the preset priority of each target 3D printer, the idle time of each target 3D printer before the latest delivery time and the printing time of the 3D printing model file, and determining the target 3D printer with the highest current priority as the final target 3D printer.
Preferably, the sending of the printing control command to the 3D printer in the idle state includes:
sending the printing control command to a control sensor on the 3D printer in the idle state, converting the printing control command into an operation control command by the control sensor, and controlling the 3D printer in the idle state to perform 3D printing according to the operation control command;
sending a download command to the target 3D printer, including:
and sending the downloading command to a control sensor on the target 3D printer, and converting the downloading command into a file transmission instruction by the control sensor.
Preferably, the monitoring of the printing process of the 3D printer for 3D printing includes:
and monitoring the printing process of the target 3D printer by using the equipment sensor on the 3D printer for 3D printing.
Preferably, when sending the monitored print data to the message center, the method further includes:
and sending the printing data to a time sequence database, judging whether the printing data is abnormal or not, if so, sending an abnormal prompt to the message center, and outputting the abnormal prompt by the message center.
Preferably, when monitoring a printing process of a 3D printer that performs 3D printing, the method further includes:
updating the state of the 3D printer for 3D printing into a service database according to the monitored printing data;
polling the service database at regular intervals to obtain the 3D printers of which the states are not updated in the preset duration, distinguishing the 3D printers of which the states are not updated according to the preset non-updated levels, and outputting warning information corresponding to the preset non-updated levels to the message center.
Preferably, each 3D printer is monitored, including:
and monitoring each 3D printer at regular time by using a task starting timer in a job slicing mode.
A 3D printing device, comprising:
the receiving module is used for receiving the 3D printing model file and determining a target 3D printer corresponding to the 3D printing model file;
the input module is used for generating a printing task according to the printing parameters of the 3D printing model file, putting the printing task into a production scheduling queue corresponding to the target 3D printer, sending a downloading command to the target 3D printer, and asynchronously downloading the 3D printing model file in a slicing mode by the target 3D printer according to the production scheduling queue;
the monitoring module is used for monitoring each 3D printer, when the 3D printer in the idle state is monitored, sending a printing control command to the 3D printer in the idle state, and performing 3D printing by the 3D printer in the idle state according to the corresponding production scheduling queue and the downloaded 3D printing model file;
and the sending module is used for monitoring the printing process of the 3D printer for 3D printing, sending the monitored printing data to the message center, and outputting the printing data by the message center.
The utility model provides a 3D prints thing networking system, includes 3D prints control center, data transmission center, message center, wherein:
the data transmission center is used for receiving the 3D printing model file uploaded by the user system;
the 3D printing control center is used for executing the steps of the 3D printing method according to any one of the above items;
and the message center is used for receiving the printing data output by the 3D printing control center and outputting the printing data.
The application provides a 3D printing method, a device and a 3D printing Internet of things system, wherein the method comprises the following steps: receiving a 3D printing model file, and determining a target 3D printer corresponding to the 3D printing model file; generating a printing task according to the printing parameters of the 3D printing model file, putting the printing task into a production scheduling queue corresponding to the target 3D printer, sending a downloading command to the target 3D printer, and downloading the 3D printing model file by the target 3D printer according to the production scheduling queue in an asynchronous and slicing mode; monitoring each 3D printer, when the 3D printer in the idle state is monitored, sending a printing control command to the 3D printer in the idle state, and performing 3D printing by the 3D printer in the idle state according to the corresponding production scheduling queue and the downloaded 3D printing model file; monitoring the printing process of a 3D printer for 3D printing, sending the monitored printing data to a message center, and outputting the printing data by the message center.
According to the technical scheme, the 3D printing model file is received, the target 3D printer corresponding to the 3D printing model file is determined, the printing task is generated according to the printing parameters of the 3D printing model file, the printing task is placed in the production scheduling queue corresponding to the target printer, the downloading command is sent to the target 3D printer, the 3D printing model file is asynchronously downloaded by the target 3D printer in a slicing mode, in addition, the printing control command is sent when the 3D printer in an idle state is monitored, the 3D printer is started to print according to the production scheduling queue corresponding to the 3D printer and the downloaded 3D printing model file, the 3D printing is automatically carried out, the 3D printing efficiency is improved, the 3D printing cost is reduced, the printing process of the 3D printer is automatically monitored, the 3D printing is effectively monitored, the monitoring cost is reduced, the monitored printing data is output through a message center, and relevant personnel can timely obtain the printing data.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a 3D printing method provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a 3D printing Internet of things system provided by an embodiment of the application;
FIG. 3 is a schematic diagram of the internal interaction of a 3D printing Internet of things system provided by the embodiment of the application;
fig. 4 is an interaction diagram between a 3D printing control center and a 3D printer provided in an embodiment of the present application;
fig. 5 is a format diagram of a communication protocol between a 3D printing control center and a 3D printer according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a target printer screening provided by an embodiment of the present application;
fig. 7 is a schematic diagram of a target 3D printer according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a 3D printer whose acquisition state is not updated in a 3D printing control center according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a 3D printer monitored in timing by a task start timer according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a 3D printing apparatus according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a 3D printing method and device and a 3D printing Internet of things system, which are used for improving the 3D printing efficiency, reducing the 3D printing cost and realizing effective monitoring of 3D printing
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1 to fig. 3, in which fig. 1 shows a flowchart of a 3D printing method provided in an embodiment of the present application, fig. 2 shows a schematic structural diagram of a 3D printing internet of things system provided in an embodiment of the present application, and fig. 3 shows a schematic internal interaction diagram of the 3D printing internet of things system provided in an embodiment of the present application, a 3D printing method provided in an embodiment of the present application may include:
s11: and receiving the 3D printing model file, and determining a target 3D printer corresponding to the 3D printing model file.
The user can log in the user system through the user terminal and upload the 3D printing model file (specifically, the format can be stl, stp and the like) to the user system. After receiving the 3D printing model file, the user system stores the 3D printing model file, and then the user system asynchronously uploads the 3D printing model file to a distributed file Storage system in a data transmission center, such as an OSS system (Object Storage Service), in a http request fragment upload manner, and at the same time, may store a Storage path of the 3D printing model file in a database of the user system. It should be noted that the distributed file storage system may also be used for the user terminal to download the 3D printing model file, and the 3D printing model file may be downloaded in a fragmented manner through http connection, so that the user may subsequently view the corresponding 3D printing model file through the user terminal, where the user terminal first obtains the download url of the 3D printing model file from the user system when downloading, and then the 3D printing model file is directly downloaded from the distributed file storage system through http request.
The data transmission center includes, in addition to the distributed file storage system, a ZooKeeper cluster (a highly available cluster, which is equivalent to a service registry), where the ZooKeeper is an open-source distributed coordination service, including but not limited to: the system comprises a distributed lock, a unified naming service, configuration management, load balancing, master control server election, master-slave switching and the like, and has four functions in a 3D printing Internet of things system: the kafka cluster registration center, the Dubbo component registration center, the cluster timer selection master center and the server configuration center are used for being connected with a user system, a management system, a message center and a 3D printing control center, so that the systems/centers can mutually sense through the cluster to facilitate information interaction. The kafka cluster and the ZooKeeper cluster are connected through tcp to perform service registration, so that high availability is realized; the user system and the management system are connected with the ZooKeeper cluster through tcp to perform Dubbo service registration, so that high availability is realized; the 3D printing control center is connected with the ZooKeeper cluster through tcp to register the Dubbo service, so that high availability is realized; through tcp connection, a master selection algorithm is performed according to a main road, and a leader is competed, so that the single server operation of the task starting timer under the cluster environment is realized; and acquiring the configuration of each server through tcp connection for scheduling the task starting timer. The master election algorithm is an algorithm for dynamically selecting a master node in a distributed system, and the non-failed node with the largest process number is selected as the master. The first node under the temporary ordered node under the same directory of Zookeeper can be selected as the master node.
It should be noted that the user terminal includes, but is not limited to, a 3D printing app at a mobile phone end, a 3D printing wechat applet, a 3D printing application at a PC end, a 3D printing cloud platform, and the like. The user system is a server cluster provided with the user system, the system can be developed by using Java language, and based on a Spring framework, a Mysql database is used (Mysql is a relational database management system, and the relational database stores data in different tables instead of putting all data in a large warehouse, so that the speed is increased and the flexibility is improved). The user can log in the user system, can place orders and can receive message notification. The user terminal and the user system communicate with each other through Http/Http and WebSocket requests, for example: the login request uses an http protocol and an SSL3.0 protocol as an encryption mode (so as to ensure that the login request is not stolen at will, thereby ensuring the security); an Http request is used for uploading the 3D printing model file, so that the time consumption for uploading is reduced; the message notification needs to send a message to the user terminal by the server, so a WebSocket protocol is used, the connection is established after the user logs in, and the socket connections are managed by Netty (asynchronous event-driven network application framework based on Java NIO, which can rapidly develop network applications). The high availability of the user system is realized through the Nginx gateway and the dubbo component, the TCP connection is kept with the Zookeeper cluster of the service registration center, if the TCP connection is disconnected, the current server is unavailable, and the service caller can search other available servers on the Zookeeper for continuous use. And the user system calls other systems (a management system and a 3D printing control center) to establish tcp connection through the Dubbo component. And calling other systems (a management system and a 3D printing control center) by the user system to establish tcp connection through the dubbo component.
After receiving the 3D printing model file uploaded by the user system, the data transmission center can simultaneously send the 3D printing model file and the storage path of the 3D printing model file to the 3D printing control center. After the 3D printing control center receives the 3D printing model file, the target 3D printer corresponding to the 3D printing model file is determined according to the printing process of the 3D printing model file and the like (the printing process supported by the target 3D printer can be determined according to the model number of the target 3D printer), so that 3D printing is performed by using the target 3D printer suitable for the 3D printing model file in the follow-up process, and the situation that the 3D printer is not suitable for being selected is avoided.
The 3D printing control center can be developed by using Java language, based on a Spring framework, a Mysql database is used as a service database, a TDengine database is used as a big data storage database, and a Redis database is used for realizing a distributed lock.
S12: and generating a printing task according to the printing parameters of the 3D printing model file, putting the printing task into a production scheduling queue corresponding to the target 3D printer, sending a downloading command to the target 3D printer, and downloading the 3D printing model file by the target 3D printer according to the production scheduling queue asynchronously and in a slicing mode.
After a target 3D printer corresponding to the 3D printing model file is determined, a printing task may be generated according to printing parameters of the 3D printing model file, where the printing parameters (and the printing task) include, but are not limited to, a printing time (which may be calculated by the 3D printing control center after receiving the 3D printing model file), a latest delivery time, a storage path of the 3D printing model file, a printing process of the 3D printing model file, a printing material, and the like, and the generated printing task is placed in a production scheduling queue corresponding to the target 3D printer. Specifically, when the generated printing task is placed in a production scheduling queue, the completion time of the target 3D printer when printing is completed can be calculated according to the printing time of the 3D printing model file, the completion time cannot be later than the latest delivery time of the 3D printing product corresponding to the 3D printing model file, that is, when the printing task is placed in the production scheduling queue corresponding to the target 3D printer, the printing task can be scheduled according to the latest delivery time of the 3D printing model file, and the printing completion time of the printing task by the 3D printer cannot be later than the latest delivery time of the 3D printing model file, so as to avoid affecting delivery of the 3D printing product, thereby reducing user experience and affecting printing of the subsequent 3D printing model file.
After placing the generated print job into a production scheduling queue corresponding to the target 3D printer, the 3D printing control center may send a download command to the target 3D printer. After receiving the downloading command, the target 3D printer may obtain a storage path of the 3D printing model file from the printing task in the production scheduling queue corresponding thereto, and asynchronously and piece-wise download the corresponding 3D printing model file according to the storage path of the 3D printing model file. The target 3D printer can be directly downloaded after receiving the downloading command by adopting an asynchronous mode, the 3D printing control center does not need to manage the downloading process of the target 3D printer, and the downloading by adopting a slicing mode can ensure that the 3D printing model file can be continuously downloaded from an interruption position even if the phenomena such as network interruption occur, and the like, and the 3D printing model file does not need to be downloaded from the beginning. In addition, because the downloading time of the 3D printing model file is longer, the 3D printing model file to be printed can be stored in the 3D printer as far as possible by the mode, so that the time waste caused by the fact that the 3D printing model file is downloaded when the printing is started subsequently is avoided, and the 3D printing efficiency is convenient to improve.
S13: monitoring each 3D printer, when the 3D printer in the idle state is monitored, sending a printing control command to the 3D printer in the idle state, and performing 3D printing by the 3D printer in the idle state according to the corresponding production scheduling queue and the downloaded 3D printing model file.
After the 3D printing control center puts the generated printing tasks into the production scheduling queue corresponding to the target 3D printer, the 3D printing control center may also monitor the status of each 3D printer in the 3D printing internet of things system (i.e., each 3D printer connected to the 3D printing control center), specifically, the task start timer in the 3D printing control center may be started every certain time (e.g., 20 seconds) to inquire whether each 3D printer is in an idle state, and if a 3D printer in an idle state is found, the printing tasks are arranged according to the production scheduling of the 3D printer in the idle state. Each 3D printer has independent equipment ID and independent equipment information, so that a manager can conveniently and quickly find the corresponding 3D printer.
Specifically, when the 3D printer in the idle state is monitored, a printing control command is sent to the 3D printer in the idle state, where the printing control command may be transmitted by the Dubbo component, and the printing control command may be specifically sent to the 3D printing control center by the management system. After receiving the printing control command, the 3D printer in the idle state may find a non-printed printing task closest to the current time in the production scheduling queue according to the production scheduling queue corresponding to the printing control command, then determine whether the 3D printing model file corresponding to the printing task is completely downloaded, if not, wait for the corresponding 3D printing model file to complete downloading, if downloading is complete, start printing by the 3D printer in the idle state, and perform 3D printing according to the found non-printed printing task and the downloaded 3D printing model file corresponding to the found non-printed printing task. It should be noted that, if the 3D printer is disconnected from the 3D printing control center for more than a certain time (for example, one hour) during the printing process of the 3D printer, the 3D printing control center recovers the printing tasks in the production scheduling queue and redistributes them, and the 3D printing file is downloaded by the redistributed 3D printer.
The management system is a server cluster provided with the management system, the system is developed by Java language, and based on a Spring framework, the Mysql database is used. The administrator can log into the management system and can dispatch/query orders, control the printer, and monitor the status of the printer. The management terminal and the management system communicate through http/https and WebSocket requests, for example: the login request uses an https protocol, and uses an SSL3.0 protocol as an encryption mode; the Http request is used for uploading the printing model file, so that the uploading time is reduced; because the message notification needs to send a message to the terminal by the server, a WebSocket protocol is used, the connection is established after the administrator logs in, and the socket connections are managed by the Netty. The high availability of the management system is realized through an Nginx gateway and a dubbo component, the management system keeps tcp connection with a Zookeeper cluster of a service registration center, if the tcp connection is disconnected, the current server is unavailable, and a service caller searches for other available servers on the Zookeeper for continuous use. And the management system calls other systems (a user system and a 3D printing device control center) to establish tcp connection through the dubbo component.
Regarding the interaction between the 3D printing control center and the 3D printer, reference may be specifically made to fig. 4, which illustrates an interaction schematic diagram between the 3D printing control center and the 3D printer provided in the embodiment of the present application. Wherein, there are two kinds of data transmission modes between 3D printing control center and the 3D printer (specifically MCU (micro control unit) in the 3D printer): one is based on an MQTT protocol, and the other is based on a tcp protocol, wherein the former is suitable for a weak network environment, the latter is suitable for a strong network environment, and switching can be performed in a management system according to the network environment of the 3D printer, namely, an MCU in the 3D printer can receive and execute instructions from 3D printing control through the MQTT protocol (weak network environment) or the tcp (strong network environment). And can interact with the 3D printing firmware through an http API interface or a firmware communication interface (e.g., RXTX serial communication) provided by the 3D printer.
The MQTT protocol is realized in a mode of MQTT Proxy + kafka (a component in a message center, for details, the detailed description of the message center follows), the MQTT Proxy is used as an agent to send a message to kafka according to the MQTT protocol, and then the message is actively pulled by a 3D printing control center through kafka client for consumption. And similarly, the 3D printing control center can also push a message to kafka, and the MQTT Proxy pulls the message to be delivered to the 3D printing equipment for consumption. Data between the 3D printing control center and the 3D printer can be connected in a tcp mode through the netty component, and direct interaction is achieved.
1) After finding a proper printer (namely a target 3D printer), the task receiving service sends a file transmission instruction to the 3D printer, the 3D printer returns success after adding a downloading task to the thread pool, and the file downloading is not required to be completed;
11 Receiving the instruction by the 3D printer, asynchronously requesting to download the corresponding 3D printing model file in the production scheduling queue in a slicing mode by http, and taking the task ID as the file name of the final file;
12 After the download is successful or failed, returning the result to the 3D printing control center;
2) After finding a proper printer (namely, a 3D printer in an idle state), the control instruction service sends a corresponding printing control instruction to the 3D printer, and after the asynchronous blocking is needed to wait for the instruction execution to be completed, an instruction execution result is obtained and returned to the management system;
3) And the task starting timer generates a starting instruction to the 3D printer, acquires an instruction execution result after the asynchronous blocking is needed to wait for the instruction execution to be completed, and returns the instruction execution result to the management system to modify the printing order state according to the success or failure of returning.
In addition, reference may be made to fig. 5, which shows a communication protocol format diagram between the 3D printing control center and the 3D printer provided in the embodiment of the present application, where the 3D printing control center and the 3D printer interact with each other by using the communication protocol format shown in fig. 5.
It should be noted that the 3D printing control center may record the state of the 3D printer through interaction with the 3D printer (specifically, may record the state in the Mysql service database), and specifically, when the 3D printer finishes downloading the 3D printing model file, may record the state of the 3D printer as to be started; when the 3D printer receives a printing control command to start, the state of the 3D printer can be recorded as being started; when the 3D printer performs 3D printing, the state of the 3D printer can be recorded as printing; when the 3D printer completes printing, the status of the 3D printer may be recorded as printing complete, or the like. In addition, when the state of the 3D printer is recorded as starting, the unique code of the 3D printer can be acquired as the Redis distributed lock of the key, and when the state of the 3D printer is changed into printing, the Redis distributed lock is released by the Redis, so that the 3D printer can only receive the printing control command of one server in the 3D printing control center in a distributed lock mode, the 3D printer is prevented from receiving the printing control commands of a plurality of servers, and the disorder of the state of the 3D printer is avoided.
S14: monitoring the printing process of a 3D printer for 3D printing, sending the monitored printing data to a message center, and outputting the printing data by the message center.
When the 3D printer in the idle state performs 3D printing, the 3D printing control center can monitor the printing process of the 3D printer performing 3D printing (specifically, real-time monitoring or timing monitoring and the like), and send the monitored printing data to the message center, and the message center outputs the printing data to a user system, a management system, an external system and the like, so that terminal users corresponding to the systems can timely know the printing condition of the 3D printer.
In addition, during monitoring, a camera in the 3D printer (an external camera needs to be installed to realize camera monitoring because the 3D printer does not have a camera shooting function) can shoot a monitoring video, and the monitoring video is sent to the distributed file storage system.
And the 3D printing control center is in the process of monitoring the printing process of the 3D printer for 3D printing, if the 3D printer finishes printing, the printing result can be sent to the 3D printing control center, the 3D printing control center receives the printing result returned by the 3D printer, and the notification of finishing printing is sent to the management system and/or the external system through the message center, at the moment, an operator can shut down the 3D printer through the notification of the management system and/or the external system, after the shutdown operation, the 3D printing control center can send an instruction to the 3D printer, and the power supply of the 3D printer is cut off. And after the 3D printer is shut down, an operator carries out equipment workshop, takes out the printed object, carries out cleaning of material residues and supplement work of new materials, and manually triggers the 3D printer to start up after the preparation work is finished. After the 3D printer is started, the 3D printer returns the state of the 3D printer to the 3D printing control center, a task starting timer in the 3D printing control center is started once every certain time (for example, 20 seconds), the task starting timer is used for obtaining an idle 3D printer list from a Mysql database, and when the current 3D printer is found to be in an idle state, a next round of printing tasks can be arranged according to a production schedule.
The message center is used for pushing message notifications to an external system, a user system and a management system, the content of the message notifications comprises 3D printer abnormal states, printing task abnormal states and printing task final state notifications, and the message center comprises two parts: one part is a kafka message queue and the other part is an external system message pushing application, the kafka message queue is used for storing and subscribing messages, and in order to prevent the messages from being lost, a kafka cluster mode is used. Meanwhile, the kafka message queue is also used for supporting an MQTT protocol, storing messages in an MQTT format and used for communication between the 3D printing control center and an MCU (microprogrammed control unit) on the 3D printer in a weak network environment; the external system message pushing application subscribes printer exception and print task exception messages to the kafka message queue and then sends prompt messages through the external system, the mode is realized by using SDK provided by the external system and calling http/https interfaces provided by the external system, namely the storage of the messages is realized by kafka clusters (high-availability clusters), and the message pushing of the external system is realized by external system message pushing application developed by Java. The user system will subscribe to the print job status change message on the kafka message queue, and the print job status change message is realized by establishing tcp connection. After receiving the message, the user terminal is informed through websocket connection; the management system will subscribe to the printer status change message on the kafka message queue, which is implemented by establishing a tcp connection. After receiving the message, the management terminal is informed through websocket connection. In addition, when the 3D printing control center outputs information to the message center, it will push printing data to the kafka message queue through tcp connection, and at the same time, it will subscribe to the MQTT protocol message from the MCU on the 3D printer to obtain printer status information and control command execution. Or sending a control instruction to a message queue for consumption execution by a corresponding printer. In addition, the 3D printing control center can be connected through tcp and directly communicates with an MCU on the 3D printer under a strong network environment to acquire printer state information and control instruction execution conditions.
The management terminal connected with the management system can download the monitored printing data and the 3D printing model file, specifically, the management terminal can directly download the printing data and the 3D printing model file from the distributed file storage system through an http protocol, and the url path is acquired through the management system. The management terminal can also directly acquire video stream data from the distributed file storage system through RTMP (real-time message transfer protocol) connection, thereby realizing monitoring live broadcast. It follows that the distributed file storage system can provide two types of file upload and download services: the method comprises the steps of 3D printing a model file and a monitoring video file, wherein uploading and downloading of the 3D printing model file refer to the description of the corresponding part, and the monitoring video file supports downloading of historical monitoring video files through http connection besides real-time uploading and downloading through the RTMP connection.
The external system comprises an SMS short message platform, a WeChat service number, a WeChat small program, a nail group and the like, supports later expansion, and aims to inform a user and an administrator of messages as much as possible mainly under the situation that the user does not log in a user system and the administrator does not log in a management system. When the external system message pushing application pushes a message, http is sent to a designated server by means of an SDK (software development kit) provided by each external system, and then a user/administrator can receive the message pushing on a platform of the external system.
Through the process, the 3D printing control center is a core part of the 3D printing Internet of things system, plays roles of video monitoring, production scheduling, equipment monitoring and the like, is connected with the 3D printer, receives data from the 3D printer, and uploads the data to the message center after being sorted, stored and analyzed. Meanwhile, a printer control instruction from the management system is received and forwarded to the corresponding 3D printer, or a starting command is sent to the corresponding 3D printer according to a preset production schedule. And this application prints through 3D printing control center remote control 3D printer, thereby improve 3D printing efficiency, reduce 3D and print the cost, and realize 3D and print and the convenience of administrator's operation, and can monitor the 3D printer through 3D printing control center, so that relevant personnel can look over at any time and print progress and printing state etc., thereby the realization is timely, monitor 3D printing process effectively, and realize the convenience of control, improve 3D printer and administrator's interactive convenience, reduce the human cost and the time consumption that the control consumes.
According to the technical scheme, the 3D printing model file is received, the target 3D printer corresponding to the 3D printing model file is determined, the printing task is generated according to the printing parameters of the 3D printing model file, the printing task is placed in the production scheduling queue corresponding to the target printer, the downloading command is sent to the target 3D printer, the 3D printing model file is asynchronously downloaded by the target 3D printer in a slicing mode, in addition, the printing control command is sent when the 3D printer in an idle state is monitored, the 3D printer is started to print according to the production scheduling queue corresponding to the 3D printer and the downloaded 3D printing model file, the 3D printing is automatically carried out, the 3D printing efficiency is improved, the 3D printing cost is reduced, the printing process of the 3D printer is automatically monitored, the 3D printing is effectively monitored, the monitoring cost is reduced, the monitored printing data is output through a message center, and relevant personnel can timely obtain the printing data.
The 3D printing method provided in the embodiment of the present application, determining a target 3D printer corresponding to a 3D printing model file, may include:
and screening target 3D printers corresponding to the 3D printing model files from each 3D printer according to the printing process, the printing time and the latest delivery time of the 3D printing model files.
Referring to fig. 6, which shows a target printer screening schematic diagram provided in the embodiment of the present application, when a target 3D printer corresponding to a 3D printing model file is determined, the target 3D printer corresponding to the 3D printing model file may be screened from each 3D printer according to a printing process, a printing time, and a latest shipping time of the 3D printing model file. Specifically, the 3D printer corresponding to the 3D printing model file can be screened out according to the printing process of the 3D printing model file and the printing process supported by each 3D printer, wherein typical 3D printing processes include FDM, SLA, SLS, SLM, and Polyjet, a user can fill the process required by the printing order in the 3D printing model file when placing an order, the printing process supported by the 3D printer is obtained through the model of the 3D printer, and the model of the 3D printer can be recorded in a management system by a manager. Thereafter, temporal filtering may be performed: screening of target 3D printers is carried out according to the printing time and the latest delivery time of the 3D printing model file and the space time of the corresponding 3D printer, specifically, the 3D printer which needs the printing time of the 3D printing model file or more than or equal to the idle time before the latest delivery time of the 3D printing model file is screened out from the corresponding 3D printer to be used as the target 3D printer corresponding to the 3D printing model file, so that the screened 3D printer can meet the printing requirement of the corresponding 3D printing model file.
It should be noted that, the idle time before the latest delivery time of the 3D printing model file mentioned above may be continuous or segmented, but because the printing of each 3D printing model file needs to be continuous, that is, a 3D printer needs to continuously print the 3D printing model file, when the space time before the latest delivery time of the 3D printing model file by the 3D printer is segmented, the corresponding current 3D printing model file is put into the production scheduling queue to perform production scheduling, the 3D printing model file already arranged in the production scheduling queue may be adjusted (when adjusting, it needs to be ensured that the printing completion time of the 3D printing model file to be adjusted by the 3D printer is not later than the latest delivery time of the 3D printing model file to be adjusted), so as to leave the space time which is continuous and not less than the printing time of the current 3D printing model file before the latest delivery time of the 3D printing model file to be adjusted by the 3D printer, so that the printing completion time of the current 3D printing model file by the 3D printer is not later than the printing time of the current 3D printing model file. For example: specifically, referring to fig. 7, which shows a schematic diagram corresponding to the production schedule of the target 3D printer provided in the embodiment of the present application, a task 1, a task 2, and a task 3 are currently present in a production schedule queue corresponding to the printer a, the printing time and the latest shipping time of the three tasks are all shown in the figure, and the task 1 is currently in printing, and when a new task 4 is received, and the latest shipping time is 5 months, 18 days and 24 days, it is expected that the printing time is 4 hours, so the printer a must meet the time filtering requirement only when at least 4 hours of idle time is available before 24 days of 5 months and 18 days, at this time, in combination with the assigned task 2 and task 3, the printer a has a period of idle time of 3 hours and a period of 1 hour before 24 days of 5 months and 18 days, and meets the time filtering requirement, and then the printer a can pass time filtering. In order to meet the task receiving and printing requirements, according to the principle and by combining the latest delivery time of the task 2, the printing time of the printing task before the idle time period can be moved forward when the task 4 is allocated, namely the task 2 is moved forward until the idle time of 4 continuous hours appears before 24 days of 5 months and 18 days, and then the task 4 can be allocated to the idle time, namely the task 4 is placed into the corresponding production scheduling queue.
In the process of determining the target 3D printer, in addition to the determination according to the parameters, the target 3D printer may be screened according to the printing material of the 3D printing model file, wherein the currently most commonly used 3D printing material includes plastic (abs, pla, nylon, photopolymer, etc.) and metal (steel, silver, gold, titanium, aluminum, etc.), the user will fill the order for the type and amount of the material, the material held by the 3D printer may be filled by the staff each time and then recorded into the printer material record table through the management system, and the 3D printing model file is automatically deducted from the 3D printer material record after being successfully distributed.
The 3D printing method provided in the embodiment of the present application, after the target 3D printer corresponding to the 3D printing model file is screened from each 3D printer, may further include:
if at least two target 3D printers are screened out, calculating the current priority of each target 3D printer according to the preset priority of each target 3D printer, the idle time of each target 3D printer before the latest delivery time and the printing time of the 3D printing model file, and determining the target 3D printer with the highest current priority as the final target 3D printer.
After target 3D printers corresponding to the 3D printing model file are screened out from each 3D printer, if at least two target 3D printers are screened out at the same time, the current priority of each target 3D printer may be calculated by using the current priority of the target 3D printer = preset priority of the target 3D printer, idle time of each target 3D printer before the latest delivery time (in units of hours), and printing time of the 3D printing model file (in units of hours), according to preset priority of each target 3D printer, idle time of each target 3D printer before the latest delivery time, and printing time of the 3D printing model file, and the target 3D printer with the highest current priority is determined as the final target 3D printer, so that the printing time of each 3D printer is as compact as possible, which is beneficial to improving the usage rate and also to allocating the 3D printing model file with relatively long time.
The preset priority of the target 3D printer mentioned above may be configured by a manager through a management system when the 3D printer is connected to a 3D printing internet of things system, for example, the priority of a model 3D printer with a fast printing speed may be configured to be higher.
The 3D printing method provided in the embodiment of the present application, sending a printing control command to a 3D printer in an idle state, may include:
sending the printing control command to a control sensor on the 3D printer in the idle state, converting the printing control command into an operation control command by the control sensor, and controlling the 3D printer in the idle state to perform 3D printing according to the operation control command;
sending a download command to the target 3D printer may include:
and sending a downloading command to a control sensor on the target 3D printer, and converting the downloading command into a file transmission instruction by the control sensor.
When the 3D printing control center sends a printing control command to the 3D printer in the idle state, the printing control command may be specifically sent to a control sensor on the 3D printer in the idle state, where the control sensor mentioned herein includes but is not limited to a power module, a feeding motor, a limit control, and a heating control. And then, converting the printing control command sent by the 3D printing control center into a corresponding operation control command by the control sensor according to the 3D printing model file, and controlling the corresponding 3D printer in the idle state to perform 3D printing according to the operation command. In addition, when the 3D printing control center sends the download command to the 3D printer, the download command may be specifically sent to a control sensor on the 3D printer, the control sensor on the 3D printer converts the download command into a file transfer instruction, and the 3D printer asynchronously downloads the 3D printing model file in pieces according to the file transfer instruction. By the above, this application can install this thing networking integrated circuit board of control sensor in the 3D printer to accomplish the automatic control that prints the 3D printer through control sensor and 3D printing control center's interaction, and realize the automation of 3D printer and print, so that improve printing efficiency, reduce and print the cost.
In addition, in the process of performing 3D printing by the 3D printer in the idle state, after the 3D control center receives a feeding motor/heating control instruction sent by an administrator through the management system, before the 3D printing control center sends the instruction to the corresponding 3D printer, the unique code of the corresponding 3D printer is acquired by the 3D printing control center through the Redis and is used as a key lock until the execution is completed, so that the corresponding 3D printer is prevented from receiving multiple instructions at the same time. After that, when the feeding motor is turned on or reaches the target temperature, the 3D printer starts printing. It should be noted that, in the process of performing 3D printing by the 3D printer, an administrator may issue a abandoning instruction to the 3D printing control center through the management system, so that the 3D printing control center actively abandons printing by controlling the 3D printer according to the instruction.
The 3D printing method provided by the embodiment of the application monitors the printing process of the 3D printer for 3D printing, and may include:
and monitoring the printing process of the target 3D printer by using a device sensor on the 3D printer for 3D printing.
When the 3D printing control center monitors the printing process of the 3D printer for 3D printing, the printing process of the target 3D printer can be monitored by using the equipment sensor on the 3D printer for 3D printing, wherein the equipment sensor comprises but is not limited to a camera, a temperature detection sensor, a humidity detection sensor and a printing progress detector, specifically, the equipment sensor installed on the 3D printer is used for collecting the printing data of the 3D printer at regular intervals (for example, 5 seconds and the like), and the printing data is sent to the 3D printing control center, so that the 3D printing control center realizes automatic monitoring of the 3D printer, the monitoring convenience is improved, and the 3D printer is comprehensively monitored as much as possible.
In addition, a state sensing timer arranged in the MCU of the 3D printer may be started at regular intervals to obtain state information of a 3D printer firmware (such as Marlin) (for example, RXTX serial communication and Http API interface in fig. 4), and send the obtained state information of the 3D printer firmware to the 3D printing control center through the data transport layer. After a state monitor in the 3D printing control center receives state information of the 3D printer firmware acquired by a state perception timer in an MCU on the 3D printer, the state information of the 3D printer firmware is recorded into a time sequence database (specifically, TDengine) for querying history and intelligently analyzing according to a time sequence.
When sending the monitored print data to the message center, the 3D printing method provided in the embodiment of the present application may further include:
and sending the printing data to a time sequence database, judging whether the printing data is abnormal or not, if so, sending an abnormal prompt to a message center, and outputting the abnormal prompt by the message center.
When the 3D printing control center sends the monitored printing data to the message center, the printing data may also be sent to a time sequence database (specifically TDengine) so as to query history and intelligently analyze according to a time sequence. In addition, after the 3D printing control center receives the printing data, it may further determine whether the printing data is abnormal by combining with a corresponding threshold (the threshold is set by the management system and stored in a service database (specifically Mysql) of the 3D printing control center through a dubbo interface), and if so, it may be determined that the 3D printer is in an abnormal state, and at this time, an abnormal prompt is sent to the message center (specifically, the abnormal prompt is sent to a kafka message queue of the message center), and the message center sends the abnormal prompt to the user system, the management system, the external system, and the like, so that an administrator may perform maintenance and other processes on the corresponding 3D printer according to the prompt, for example: whether the temperature of the nozzle of the 3D printer exceeds a threshold value, and the like.
When monitoring the printing process of a 3D printer performing 3D printing, the 3D printing method provided in the embodiment of the present application may further include:
updating the state of a 3D printer for 3D printing into a service database according to the monitored printing data;
polling the service database at regular intervals, acquiring the 3D printers of which the states are not updated in the preset duration, distinguishing the 3D printers of which the states are not updated according to the preset non-updated levels, and outputting warning information corresponding to the preset non-updated levels to a message center.
When the 3D printing control center monitors the printing process of the 3D printer for 3D printing, the state of the 3D printer can be determined (for example, whether the 3D printer is in printing, whether the printing is completed, whether the 3D printer is abnormal or not) according to the monitored printing data, and the state of the 3D printer for 3D printing is updated into the service database, so that the 3D printer in an idle state can be obtained according to the service database subsequently, and the abnormal 3D printer can be obtained conveniently.
When the state of the 3D printer is updated to the service database, the service database may be polled at regular intervals (e.g., half a minute, etc.), the state of each 3D printer is checked, a 3D printer whose state is not updated within a preset duration (e.g., 10 minutes, etc.) is found, the 3D printer whose state is not updated is distinguished according to a preset non-updated level (e.g., a state is not updated within one preset duration, and states are not updated within two preset durations \8230 \ 8230;, and) warning information corresponding to the preset non-updated level is output to a message center (until the warning information disappears after corresponding measures are taken by the corresponding 3D printer), so that a manager can determine the occurrence condition of the 3D printer in time according to different warning information, and close the 3D printer or repair the 3D printer offline according to the warning information, etc.
Specifically, refer to fig. 8, which shows a schematic diagram of a 3D printer whose acquisition state is not updated by a 3D printing control center according to an embodiment of the present application, and the implementation process of the schematic diagram is as follows:
the first step is as follows: and the 3D printing control center selects the master by the Zookeeper, so that only one abnormal state detection timer runs at the same time in the cluster.
The second step is that: polling a Mysql service database every half minute by the abnormal state detection timer, checking state information sent by the 3D printer, and finding out the 3D printer which does not update the state information for 10 minutes;
the third step: the 3D printer is distinguished according to the state information which is not updated for more than 10 minutes, 30 minutes and 1 hour, and the alarm information of different levels is sent to the message module until a worker closes the printer or repairs the printer offline.
The 3D printing method provided by the embodiment of the application monitors each 3D printer, and may include:
and monitoring each 3D printer at regular time by using a task starting timer in a job slicing mode.
When monitoring each 3D printer, specifically can utilize task start timer to regularly monitor each 3D printer, and accessible job fragmentation's mode makes only one task start timer monitor the 3D printer that is in idle state when monitoring to start the 3D printer, and monitor a 3D printer that is in idle state simultaneously to avoid a plurality of task start timers, thereby avoid causing the influence to the printing of 3D printer. For example: there are 10 3D printers and 3 task start timers, the id of the 3D printer is 1-10, and the number of the task start timer is 1, 2, 3, then the 3D printers with id 1, 4, 7, 10 can be allocated to the task timer with number 1, the 3D printers with id 2, 5, 8 can be allocated to the task timer with number 2, the 3D printers with id 3, 6, 9 can be allocated to the task timer with number 3, so that only one task start timer monitors for each 3D printer.
Specifically, refer to fig. 9, which shows a schematic diagram of a 3D printer for monitoring the timing of a task start timer provided in an embodiment of the present application, and the implementation process is as follows:
the first step is as follows: the task start timer is started every 20 seconds. The task start timer will go to the Mysql service database to obtain the idle 3D printer list.
The second step is that: and acquiring the instance number of the task starting timer in the cluster in the Zookeeper, and using the instance number to fragment the printing task (the distributed task scheduling platform is XXL-JOB), wherein the fragmentation strategy is to perform modulo on the ID of the 3D printer, and the base number of the modulo is the total number of the task starting timers in the cluster. The XXL-JOB is a lightweight distributed task scheduling platform, and the core design goal of the platform is rapid development, simple learning, lightweight and easy expansion.
The third step: and acquiring printers with id modulo result equal to the current printer instance number, inquiring the printing tasks with the latest printing time of the 3D printers, and taking the respective latest tasks as the tasks needing to be started currently. If the latest print job is still printing and the current time is less than 30 minutes from the time when it was assigned, then an alert message needs to be sent.
The fourth step: and acquiring the unique code of the 3D printer as a Redis distributed lock of the key.
The fifth step: the status of the print job in Mysql and the status of the 3D printer are modified.
And a sixth step: a print instruction is sent to the 3D printer,
the seventh step: the Redis distributed lock is released by the Redis.
It should be noted that the fifth step and the sixth step must implement atomicity of the transaction, and therefore, if any link of the two steps fails, rollback is required.
An embodiment of the present application further provides a 3D printing apparatus, see fig. 10, which shows a schematic structural diagram of the 3D printing apparatus provided in the embodiment of the present application, and the schematic structural diagram may include:
the receiving module 101 is configured to receive a 3D printing model file and determine a target 3D printer corresponding to the 3D printing model file;
the input module 102 is used for generating a printing task according to the printing parameters of the 3D printing model file, putting the printing task into a production scheduling queue corresponding to the target 3D printer, sending a downloading command to the target 3D printer, and asynchronously downloading the 3D printing model file in a slicing manner by the target 3D printer according to the production scheduling queue;
the monitoring module 103 is configured to monitor each 3D printer, send a printing control command to the 3D printer in the idle state when the 3D printer in the idle state is monitored, and perform 3D printing by the 3D printer in the idle state according to the corresponding production scheduling queue and the downloaded 3D printing model file;
a sending module 104, configured to monitor a printing process of a 3D printer performing 3D printing, send the monitored printing data to a message center, and output the printing data by the message center.
In an embodiment of the present application, the receiving module 101 of the 3D printing apparatus may include:
and the screening unit is used for screening target 3D printers corresponding to the 3D printing model files from each 3D printer according to the printing process, the printing time and the latest delivery time of the 3D printing model files.
In the 3D printing apparatus provided in the embodiment of the present application, the receiving module 101 may further include:
and the calculating unit is used for calculating the current priority of each target 3D printer according to the preset priority of each target 3D printer, the idle time of each target 3D printer before the latest delivery time and the printing time of the 3D printing model file if at least two target 3D printers are screened out after the target 3D printers corresponding to the 3D printing model file are screened out from each 3D printer, and determining the target 3D printer with the highest current priority as the final target 3D printer.
The embodiment of the application provides a 3D printing device, monitoring module 103 can include:
the printing control device comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending a printing control command to a control sensor on the 3D printer in the idle state, converting the printing control command into an operation control command by the control sensor, and controlling the 3D printer in the idle state to perform 3D printing according to the operation control command;
the put-in module 102 may include:
and the second sending unit is used for sending a downloading command to a control sensor on the target 3D printer, and the control sensor converts the downloading command into a file transmission instruction.
In an embodiment of the 3D printing apparatus, the sending module 104 may include:
the first monitoring unit is used for monitoring the printing process of the target 3D printer by using a device sensor on the 3D printer for 3D printing.
The 3D printing device that this application embodiment provided can also include:
and the judging module is used for sending the monitored printing data to the time sequence database when sending the monitored printing data to the message center, judging whether the printing data is abnormal or not, if so, sending an abnormal prompt to the message center, and outputting the abnormal prompt by the message center.
The 3D printing device that this application embodiment provided can also include:
the updating module is used for updating the state of the 3D printer for 3D printing into the service database according to the monitored printing data when monitoring the printing process of the 3D printer for 3D printing;
and the acquisition module is used for polling the service database at regular intervals, acquiring the 3D printers of which the states are not updated within the preset time length, distinguishing the 3D printers of which the states are not updated according to the preset non-updated levels, and outputting warning information corresponding to the preset non-updated levels to the message center.
The embodiment of the application provides a 3D printing device, monitoring module 103 can include:
and the second monitoring unit is used for monitoring each 3D printer at regular time by using a mode of starting a timer job fragment by a task.
The embodiment of the present application further provides a 3D printing internet of things system, specifically referring to fig. 2, which may include a 3D printing control center, a data transmission center, and a message center, wherein:
the data transmission center is used for receiving the 3D printing model file uploaded by the user system;
a 3D printing control center for executing the steps of any one of the 3D printing methods;
and the message center is used for receiving the printing data output by the 3D printing control center and outputting the printing data.
For a description of a relevant part in the 3D printing apparatus and the 3D printing internet of things system provided in the embodiment of the present application, reference may be made to a detailed description of a corresponding part in the 3D printing method provided in the embodiment of the present application, and details are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the technical solutions provided in the embodiments of the present application that are consistent with implementation principles of corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A3D printing method, comprising:
receiving a 3D printing model file, and determining a target 3D printer corresponding to the 3D printing model file;
generating a printing task according to the printing parameters of the 3D printing model file, putting the printing task into a production scheduling queue corresponding to the target 3D printer, sending a downloading command to the target 3D printer, and downloading the 3D printing model file by the target 3D printer according to the production scheduling queue asynchronously and in a slicing mode;
monitoring each 3D printer, when the 3D printer in the idle state is monitored, sending a printing control command to the 3D printer in the idle state, and performing 3D printing by the 3D printer in the idle state according to the corresponding production scheduling queue and the downloaded 3D printing model file;
monitoring the printing process of a 3D printer for 3D printing, sending the monitored printing data to a message center, and outputting the printing data by the message center;
and if the 3D printer is in the starting state, acquiring a unique code of the 3D printer as a Redis distributed lock of a key, and if the 3D printer is in the printing state, releasing the Redis distributed lock by the Redis so that the 3D printer only receives one printing control command.
Wherein, the determining the target 3D printer corresponding to the 3D printing model file comprises:
and screening target 3D printers corresponding to the 3D printing model files from all the 3D printers according to the printing process, the printing time and the latest delivery time of the 3D printing model files.
2. The 3D printing method according to claim 1, further comprising, after the target 3D printer corresponding to the 3D printing model file is screened out from each 3D printer:
if at least two target 3D printers are screened out, calculating the current priority of each target 3D printer according to the preset priority of each target 3D printer, the idle time of each target 3D printer before the latest delivery time and the printing time of the 3D printing model file, and determining the target 3D printer with the highest current priority as the final target 3D printer.
3. The 3D printing method according to claim 1, wherein sending a print control command to the 3D printer in an idle state comprises:
sending the printing control command to a control sensor on the 3D printer in the idle state, converting the printing control command into an operation control command by the control sensor, and controlling the 3D printer in the idle state to perform 3D printing according to the operation control command;
sending a download command to the target 3D printer, including:
and sending the downloading command to a control sensor on the target 3D printer, and converting the downloading command into a file transmission instruction by the control sensor.
4. The 3D printing method according to claim 1, wherein monitoring a printing process of a 3D printer performing 3D printing comprises:
and monitoring the printing process of the target 3D printer by using the equipment sensor on the 3D printer for 3D printing.
5. The 3D printing method according to claim 1, when transmitting the monitored print data to a message center, further comprising:
and sending the printing data to a time sequence database, judging whether the printing data is abnormal or not, if so, sending an abnormal prompt to the message center, and outputting the abnormal prompt by the message center.
6. The 3D printing method according to claim 5, wherein, when monitoring a printing process of a 3D printer that performs 3D printing, further comprising:
updating the state of the 3D printer for 3D printing into a service database according to the monitored printing data;
polling the service database at regular intervals to obtain the 3D printers of which the states are not updated in the preset duration, distinguishing the 3D printers of which the states are not updated according to the preset non-updated levels, and outputting warning information corresponding to the preset non-updated levels to the message center.
7. The 3D printing method according to claim 1, wherein monitoring each 3D printer comprises:
and monitoring each 3D printer at regular time by using a task starting timer in a job slicing mode.
8. A3D printing device, comprising:
the receiving module is used for receiving the 3D printing model file and determining a target 3D printer corresponding to the 3D printing model file;
the input module is used for generating a printing task according to the printing parameters of the 3D printing model file, putting the printing task into a production scheduling queue corresponding to the target 3D printer, sending a downloading command to the target 3D printer, and asynchronously downloading the 3D printing model file in a slicing mode by the target 3D printer according to the production scheduling queue;
the monitoring module is used for monitoring each 3D printer, when the 3D printer in the idle state is monitored, sending a printing control command to the 3D printer in the idle state, and performing 3D printing by the 3D printer in the idle state according to the corresponding production scheduling queue and the downloaded 3D printing model file;
the sending module is used for monitoring the printing process of a 3D printer for 3D printing, sending the monitored printing data to a message center and outputting the printing data by the message center;
if the 3D printer is in a starting state, acquiring a unique code of the 3D printer as a Redis distributed lock of a key, and if the 3D printer is in a printing state, releasing the Redis distributed lock by the Redis to enable the 3D printer to receive only one printing control command;
wherein, the determining the target 3D printer corresponding to the 3D printing model file comprises:
and screening target 3D printers corresponding to the 3D printing model files from all the 3D printers according to the printing process, the printing time and the latest delivery time of the 3D printing model files.
9. The 3D printing Internet of things system is characterized by comprising a 3D printing control center, a data transmission center and a message center, wherein:
the data transmission center is used for receiving the 3D printing model file uploaded by the user system;
the 3D printing control center for performing the steps of the 3D printing method according to any one of claims 1 to 7;
and the message center is used for receiving the printing data output by the 3D printing control center and outputting the printing data.
CN202110749010.5A 2021-07-01 2021-07-01 3D printing method and device and 3D printing Internet of things system Active CN113419691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110749010.5A CN113419691B (en) 2021-07-01 2021-07-01 3D printing method and device and 3D printing Internet of things system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110749010.5A CN113419691B (en) 2021-07-01 2021-07-01 3D printing method and device and 3D printing Internet of things system

Publications (2)

Publication Number Publication Date
CN113419691A CN113419691A (en) 2021-09-21
CN113419691B true CN113419691B (en) 2023-03-24

Family

ID=77720064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110749010.5A Active CN113419691B (en) 2021-07-01 2021-07-01 3D printing method and device and 3D printing Internet of things system

Country Status (1)

Country Link
CN (1) CN113419691B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327308A (en) * 2021-12-31 2022-04-12 成都若溪科技有限公司 Intelligent monitoring printer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4275969A (en) * 1977-12-28 1981-06-30 Ricoh Company, Ltd. Printing machine
CN106648479A (en) * 2016-08-01 2017-05-10 上海慧流云计算科技有限公司 Printing method and apparatus
CN112445438A (en) * 2020-11-05 2021-03-05 珠海奔图电子有限公司 Distributed printing control method, device, image forming device and medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830946B (en) * 2012-08-06 2014-11-05 电子科技大学 Network printing system under private cloud environment for massive seismic data processing
CN105881910A (en) * 2016-05-24 2016-08-24 南京越辰智能科技有限公司 Object faxing method based on 3D scanning, 3D printing and cloud services
CN111016181B (en) * 2018-10-09 2022-02-22 深圳市七号科技有限公司 Printing monitoring system and method
CN110399106A (en) * 2019-07-18 2019-11-01 浙江口碑网络技术有限公司 Print control program, the apparatus and system of bill printer
CN110825330A (en) * 2019-10-11 2020-02-21 杭州珐珞斯科技有限公司 Cloud printing method, printing cloud box, system and storage medium based on file fragmentation
CN110989945B (en) * 2019-12-02 2023-05-02 暨南大学 3D remote printing control system and control method based on Internet of things
CN111414139A (en) * 2020-02-14 2020-07-14 金蝶蝶金云计算有限公司 Online remote printing method and device, computer equipment and storage medium
CN111367479A (en) * 2020-02-27 2020-07-03 上海东普信息科技有限公司 Cloud printing method, printing method of cloud printing service platform and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4275969A (en) * 1977-12-28 1981-06-30 Ricoh Company, Ltd. Printing machine
CN106648479A (en) * 2016-08-01 2017-05-10 上海慧流云计算科技有限公司 Printing method and apparatus
CN112445438A (en) * 2020-11-05 2021-03-05 珠海奔图电子有限公司 Distributed printing control method, device, image forming device and medium

Also Published As

Publication number Publication date
CN113419691A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN1188761C (en) Function block apparatus for viewing data in a process control system
CN110794800B (en) Intelligent factory information management monitoring system
CN106406993A (en) Timed task management method and system
CN100403836C (en) Terminal device software/firmware downloading updating method
CN101161013A (en) Method of managing terminal equipment
JP4430296B2 (en) Program distribution system
CN111522719B (en) Big data task state monitoring method and device
CN113419691B (en) 3D printing method and device and 3D printing Internet of things system
CN112579101B (en) Task script management and control method and device, electronic equipment and storage medium
CN101267344B (en) An upgrade method and device for network element single-board software
CN104598300A (en) Distributive business process customization method and system
CN112764696A (en) Cloud printing server, and intelligent printing method and system of remote printing equipment
CN112039718B (en) Upgrade state detection method, server, equipment and storage medium
CN107844339B (en) Task scheduling method, plug-in and server
CN108984290A (en) Method for scheduling task and system
US7546604B2 (en) Program reactivation using triggering
CN115858108A (en) Cloud edge coordination system constructed based on Kubeedge edge computing framework
CN110865921A (en) Data monitoring method and device, readable storage medium and electronic equipment
CN110798339A (en) Task disaster tolerance method based on distributed task scheduling framework
CN110640751A (en) Inspection robot interaction method based on transformer substation remote inspection platform
CN115333942B (en) Event retry method and device, storage medium and electronic equipment
CN110933169A (en) Remote group control system for semiconductor device
CN113553163B (en) Deployment method and device for Jenkins application based on scheduler
CN115712275A (en) Task processing method and system based on robot cluster
JPH06309261A (en) Automatic installing and version-up method for software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant