CN111367477B - 3D printing device, connection method, data processing device, control method and medium - Google Patents

3D printing device, connection method, data processing device, control method and medium Download PDF

Info

Publication number
CN111367477B
CN111367477B CN201811589958.3A CN201811589958A CN111367477B CN 111367477 B CN111367477 B CN 111367477B CN 201811589958 A CN201811589958 A CN 201811589958A CN 111367477 B CN111367477 B CN 111367477B
Authority
CN
China
Prior art keywords
data processing
printing device
identification information
printing
processing device
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
CN201811589958.3A
Other languages
Chinese (zh)
Other versions
CN111367477A (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.)
Shanghai Union Technology Corp
Original Assignee
Shanghai Union Technology Corp
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 Shanghai Union Technology Corp filed Critical Shanghai Union Technology Corp
Priority to CN201811589958.3A priority Critical patent/CN111367477B/en
Publication of CN111367477A publication Critical patent/CN111367477A/en
Application granted granted Critical
Publication of CN111367477B publication Critical patent/CN111367477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • 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/1293Printer information exchange with computer

Abstract

A3D printing device and a connection method, a data processing device and a control method, and a medium, wherein the 3D printing device connection method comprises the following steps: transmitting the identification information of the 3D printing device to a data processing device; receiving a connection request sent by the data processing device, wherein the connection request is generated by the data processing device after receiving the identification information of the 3D printing device; a communication connection is established with the data processing device. By adopting the scheme, the 3D printing operation rapidness can be improved.

Description

3D printing device, connection method, data processing device, control method and medium
Technical Field
The embodiment of the invention relates to the field of 3D printing, in particular to a 3D printing device, a connecting method, a data processing device, a control method and a medium.
Background
In the technical field of 3D printing, three-dimensional data processing software only performs basic operations on three-dimensional data. When 3D printing is required, data in the three-dimensional data processing software is usually required to be output on a local computer as a file which can be identified by a 3D printer, the file is exported through a usb disk, and then the usb disk is inserted into the 3D printer for printing.
However, 3D printing in this way is easy to cause data loss and cumbersome in operation.
Disclosure of Invention
One of the purposes of the embodiments of the present invention is how to improve the rapidity of 3D printing operations.
To solve the above technical problems, an embodiment of the present invention provides a method for connecting a 3D printing device, including: transmitting the identification information of the 3D printing device to a data processing device; receiving a connection request sent by the data processing device, wherein the connection request is generated by the data processing device after receiving the identification information of the 3D printing device; a communication connection is established with the data processing device.
Optionally, the sending the identification information of the 3D printing device to the data processing device includes at least one of the following: when the 3D printing device is detected to be electrified, the identification information of the 3D printing device is sent to the data processing device; after receiving the identification information of the data processing device sent by the data processing device, sending the identification information of the 3D printing device to the data processing device; and when detecting that the IP address of the 3D printing device changes, sending identification information of the 3D printing device to the data processing device.
Optionally, the sending the identification information of the 3D printing device to the data processing device includes: and transmitting a first UDP broadcast to the data processing device, wherein the first UDP broadcast comprises the identification information of the 3D printing device.
Optionally, the sending the identification information of the 3D printing device to the data processing device includes: the identification information of the 3D printing device is transmitted to the data processing devices of the same broadcasting group.
Optionally, after receiving the connection request sent by the data processing apparatus, the method further includes: acquiring identity verification information in the connection request, wherein the identity verification information is used for verifying the identity of the data processing device; and confirming that the identity verification information is correct.
Optionally, after establishing a communication connection with the data processing apparatus, the method further comprises: and sending heartbeat packets to the data processing device periodically.
Optionally, the identification information of the 3D printing device includes: the IP address of the 3D printing device, the physical address of the 3D printing device, the type of the 3D printing device.
The embodiment of the invention also provides a control method of the data processing device, which comprises the following steps: receiving identification information of the 3D printing device sent by the 3D printing device; acquiring an IP address of the 3D printing device from the identification information of the 3D printing device; and sending a connection request to the 3D printing device according to the acquired IP address of the 3D printing device so as to establish communication connection with the 3D printing device.
Optionally, before receiving the identification information of the 3D printing device sent by the 3D printing device, the method further includes: and after detecting that the three-dimensional data processing software in the data processing device is started, sending the identification information of the data processing device to the 3D printing device.
Optionally, the sending the identification information of the data processing device to the 3D printing device includes: and transmitting a second UDP broadcast to the 3D printing device, wherein the second UDP broadcast comprises the identification information of the data processing device.
Optionally, the sending, according to the obtained IP address of the 3D printing apparatus, a connection request to the 3D printing apparatus includes: and sending a connection request to the 3D printing device by adopting a preset port, wherein the connection request comprises the authentication information of the data processing device.
Optionally, after establishing a communication connection with the 3D printing device, the method further includes: and receiving the heartbeat packet sent by the 3D printing device.
Optionally, when the heartbeat packet is not received within a preset first duration, disconnecting the communication connection with the 3D printing device and reestablishing the communication connection with the 3D printing device.
The embodiment of the invention also provides a 3D printing device, which comprises: a first transmitting unit adapted to transmit identification information of the 3D printing device to a data processing device; the first receiving unit is suitable for receiving a connection request sent by the data processing device, wherein the connection request is generated by the data processing device after receiving the identification information of the 3D printing device; the first processing unit is adapted to establish a communication connection with the data processing device.
Optionally, the first sending unit is adapted to send the identification information of the 3D printing device to the data processing device after detecting that the 3D printing device is powered on; or after receiving the identification information of the data processing device sent by the data processing device, sending the identification information of the 3D printing device to the data processing device; or when detecting that the IP address of the 3D printing device changes, sending the identification information of the 3D printing device to the data processing device.
Optionally, the first sending unit is adapted to send a first UDP broadcast to the data processing apparatus, the first UDP broadcast including the identification information of the 3D printing apparatus.
Optionally, the first transmitting unit is adapted to transmit the identification information of the 3D printing device to the data processing devices of the same broadcast group.
Optionally, the 3D printing apparatus further includes: the first acquisition unit is suitable for acquiring identity verification information in a connection request sent by the data processing device after receiving the connection request, wherein the identity verification information is used for verifying the identity of the data processing device; and the first confirmation unit is suitable for confirming that the identity verification information is correct.
Optionally, the first transmitting unit is further adapted to periodically transmit a heartbeat packet to the data processing apparatus after establishing a communication connection with the data processing apparatus.
Optionally, the identification information of the 3D printing device includes: the IP address of the 3D printing device, the physical address of the 3D printing device, the type of the 3D printing device.
The embodiment of the invention also provides a data processing device, which comprises: a second receiving unit adapted to receive identification information of the 3D printing device sent by the 3D printing device; a second acquisition unit adapted to acquire an IP address of the 3D printing apparatus from the identification information of the 3D printing apparatus; and the second sending unit is suitable for sending a connection request to the 3D printing device according to the acquired IP address of the 3D printing device so as to establish communication connection with the 3D printing device.
Optionally, the second sending unit is further adapted to send identification information of the data processing device to the 3D printing device after detecting that three-dimensional data processing software in the data processing device is started.
Optionally, the second sending unit is adapted to send a second UDP broadcast to the 3D printing device, the second UDP broadcast including the identification information of the data processing device.
Optionally, the second sending unit is adapted to send a connection request to the 3D printing device by using a preset port, where the connection request includes authentication information of the data processing device.
Optionally, the second receiving unit is further adapted to receive a heartbeat packet sent by the 3D printing device after establishing a communication connection with the 3D printing device.
Optionally, the data processing device further comprises a reconnection unit adapted to disconnect the communication connection with the 3D printing device and reestablish the communication connection with the 3D printing device when the heartbeat packet is not received within a preset first time period.
The embodiment of the invention also provides a 3D printing device, which comprises a memory and a processor, wherein the memory stores computer instructions capable of running on the processor, and the processor executes the steps of any 3D printing device connection method when running the computer instructions.
The embodiment of the invention also provides a data processing device, which comprises a memory and a processor, wherein the memory stores computer instructions capable of running on the processor, and the processor executes the steps of the control method of any one of the data processing devices when running the computer instructions.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium is a nonvolatile storage medium or a non-transient storage medium, and computer instructions are stored on the computer readable storage medium, and the computer instructions execute the steps of any one of the 3D printing device connection methods when running.
The embodiment of the invention also provides another computer readable storage medium, wherein the computer readable storage medium is a nonvolatile storage medium or a non-transient storage medium, and computer instructions are stored on the computer readable storage medium, and the computer instructions execute the steps of the control method of any data processing device when running.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the 3D printing device transmits identification information of the 3D printing device to the data processing device. And the data processing device sends a connection request to the 3D printing device after receiving the identification information of the 3D printing device. The 3D printing device can establish communication connection with the data processing device according to the received connection request so as to perform data transmission, and the data processing device can directly send the file to be printed to the 3D printing device without transferring the file to be printed to the 3D printing device through the USB flash disk, so that the convenience of 3D printing operation can be improved.
Drawings
FIG. 1 is a flow chart of a method for connecting a 3D printing device according to an embodiment of the present invention;
FIG. 2 is a flow chart of a control method of a data processing apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a 3D printing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
As described above, in the prior art, when 3D printing is performed, a file to be printed is usually exported from a local computer to a usb disk, and then the usb disk is inserted into a 3D printer to perform a print job, however, the 3D printing is performed by adopting the 3D printing mode, and the operation process is complicated.
In the embodiment of the invention, the 3D printing device sends the identification information of the 3D printing device to the data processing device. And the data processing device sends a connection request to the 3D printing device after receiving the identification information of the 3D printing device. The 3D printing device can establish communication connection with the data processing device according to the received connection request so as to carry out subsequent data transmission, and the data processing device can directly send the file to be printed to the 3D printing device without transferring the file to be printed to the 3D printing device through the USB flash disk, so that the convenience of 3D printing operation can be improved.
In order to make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for connecting a 3D printing device according to an embodiment of the present invention may specifically include the following steps.
And step 11, transmitting the identification information of the 3D printing device to a data processing device.
In a specific implementation, the identification information of the 3D printing device is sent to the data processing device when at least one of the following occurs.
In an embodiment of the present invention, after detecting that the 3D printing device is powered on, identification information of the 3D printing device is sent to the data processing device.
In another embodiment of the present invention, after receiving the identification information of the data processing apparatus transmitted by the data processing apparatus, the identification information of the 3D printing apparatus is transmitted to the data processing apparatus. And the data processing device is internally provided with three-dimensional data processing software, and when the three-dimensional data processing software is detected to be started, the identification information of the three-dimensional data processing device is sent to the 3D printing device.
In yet another embodiment of the present invention, the identification information of the 3D printing apparatus is transmitted to the data processing apparatus when a change in a protocol (Internet Protocol, IP) address of an interconnection between networks of the 3D printing apparatus is detected.
In a specific implementation, the identification information of the 3D printing device may be transmitted in various manners. For example, a first user datagram protocol (User Datagram Protocol, UDP) broadcast is sent to the data processing apparatus, in which first UDP broadcast identification information of the 3D printing apparatus is included.
UDP is a connectionless transport layer protocol in the open systems interconnection (Open System Interconnection, OSI) reference model that provides a transaction-oriented simple unreliable information transfer service.
UDP, which is used in networks to process data packets as the TCP protocol, is a connectionless protocol. In the OSI model, at the fourth transport layer, it is at the upper layer of the IP protocol. UDP does not provide for packet grouping, assembling, and not ordering packets. After the message is sent, whether the message arrives safely and completely cannot be known. UDP is used to support network applications that require data to be transferred between computers, and many client/server mode network applications, including web video conferencing systems, require the use of the UDP protocol. Like the well-known TCP (transmission control protocol) protocol, the UDP protocol is located directly at the top layer of the IP (internet protocol) protocol. According to the OSI (open systems interconnection) reference model, both UDP and TCP belong to the transport layer protocol. The main function of the UDP protocol is to compress network data traffic into packets. A typical packet is a unit of transmission of binary data. The first 8 bytes of each packet are used to contain header information, and the remaining bytes are used to contain specific transmission data.
In a specific implementation, the identification information of the 3D printing device includes: an IP address of the 3D printing device, a physical (MAC) address of the 3D printing device, a type of the 3D printing device. In practical application, according to the practical application scenario, the identification information of the 3D printing device may further include at least one of the following: the machine model of the 3D printing device, the machine code of the 3D printing device, the machine name of the 3D printing device, etc. For example, the identification information of the 3D printing apparatus includes: IP address, MAC address, 3D printing device, number 001.
When the IP address of the 3D printing device changes, even if the 3D printing device sends the identification information or other information of the 3D printing device through a new IP address, the data processing device can still determine whether the 3D printing device is the 3D printing device which is connected before according to the physical address in the identification information of the 3D printing device. The data processing apparatus may refresh the IP address of the device in the database to obtain the 3D printing apparatus having the new IP.
And step 12, receiving a connection request sent by the data processing device.
In a specific implementation, after receiving the identification information of the 3D printing device, the data processing device may analyze the obtained identification information of the 3D printing device, and confirm the identity of the 3D printing device. After the identity confirmation of the 3D printing apparatus passes, a connection request is generated. The IP address of the 3D printing device is acquired from the identification information of the 3D printing device. And the data processing device sends a connection request through a preset port after acquiring the IP address of the 3D printing device.
And step 13, establishing communication connection with the data processing device.
In a specific implementation, after receiving a connection request sent by the data processing device, a communication connection with the data processing device is established.
In one embodiment of the invention, a socket is used to establish a communication connection with a data processing device.
After the communication connection is established, data transmission with the data processing device is possible.
As is clear from the above, the identification information of the 3D printing apparatus is transmitted to the data processing apparatus. And the data processing device sends a connection request to the 3D printing device after receiving the identification information of the 3D printing device. The 3D printing device can establish communication connection with the data processing device according to the received connection request so as to perform data transmission, and the data processing device can directly send the file to be printed to the 3D printing device without transferring the file to be printed to the 3D printing device through the USB flash disk, so that the convenience of 3D printing operation can be improved.
In a specific implementation, in order to improve data security in a communication process, in an embodiment of the present invention, a packet may be set for a data processing apparatus that allows connection, and when identification information of the 3D printing apparatus is sent in a broadcast manner, a broadcast group is set, that is, the data processing apparatus and the 3D printing apparatus bind the same port number. The 3D printing device sends the identification information of the 3D printing device to the data processing devices in the same broadcasting group, and only the data processing devices in the same broadcasting group can receive the identification information of the 3D printing device.
In a specific implementation, in order to improve the security of the communication connection with the data processing device, in an embodiment of the present invention, the connection request includes authentication information, where the authentication information is used to authenticate the identity of the data processing device. After receiving a connection request sent by the data processing device, acquiring authentication information in the connection request, and establishing connection with the data processing device after confirming that the authentication information is correct. The authentication information is preset, can be in the form of an account number and a password, and can also be a key in other modes.
In a specific embodiment, the 3D printing device periodically sends a heartbeat packet to the data processing device after establishing a communication connection with the data processing device, so as to inform the data processing device of its own online status. The 3D printing apparatus may transmit the heartbeat packet to the data processing apparatus at a predetermined cycle, or may transmit the heartbeat packet to the data processing apparatus non-periodically according to the set transmission condition. When the heartbeat packet is periodically transmitted, the transmission period may be set according to actual needs.
The data processing device receives the heartbeat packet to learn the online condition of the connected 3D printing device. And when the data processing device does not receive the heartbeat packet within a preset first time period, the connection is considered to be wrong, and the connection with the 3D printing device is automatically disconnected so as to reestablish the connection with the 3D printing device, wherein the first time period is longer than the heartbeat packet sending period of the 3D printing device.
In a specific implementation, the steps of the connection method of the 3D printing device may be performed by the 3D printing device, or may be performed by a server component provided in the 3D printing device.
In order to facilitate better understanding and implementation of the embodiments of the present invention by those skilled in the art, the embodiments of the present invention further provide a control method of a data processing apparatus.
Referring to fig. 2, a flowchart of a control method of a data processing apparatus in an embodiment of the present invention is provided, and the method may specifically include the following steps.
And step 21, receiving the identification information of the 3D printing device sent by the 3D printing device.
In a specific implementation, the received identification information of the 3D printing device may be sent by the 3D printing device through a first UDP broadcast, or may be sent through other manners.
In the embodiment of the invention, the data processing device can also be provided with a broadcast shield, and the shielded broadcast can not be answered, so that the network resource overhead can be saved.
Step 22, obtaining the IP address of the 3D printing device from the identification information of the 3D printing device.
In a specific implementation, after receiving the identification information of the 3D printing device, the identification information of the 3D printing device is parsed, and the 3D printing device is confirmed. And confirming that the received identification information of the 3D printing device is sent by the legal 3D printing device, and acquiring the IP address of the 3D printing device from the identification information of the 3D printing device.
And step 23, according to the acquired IP address of the 3D printing device, sending a connection request to the 3D printing device so as to establish communication connection with the 3D printing device.
In a specific implementation, according to the acquired IP address of the 3D printing device, a connection request is sent to the 3D printing device. The connection request is generated after receiving the identification information of the 3D printing apparatus. When the 3D printing apparatus receives the connection request, the 3D printing apparatus and the data processing apparatus may establish a communication connection through a socket (socket).
In an embodiment of the present invention, in order to improve the security of communication with the 3D printing apparatus, the authentication information of the data processing apparatus is included in the connection request. The 3D printing apparatus may verify whether the data processing apparatus is a legitimate device according to the authentication information. In addition, because the identity verification information is sent to the 3D printing device along with the connection request, the communication safety with the 3D printing device is improved, the user does not need to input the identity verification information when connecting each time, the identity verification information is automatically sent to the 3D printing device along with the connection request, and the convenience and the speed of connection are improved when the 3D printing device is connected.
By adopting the scheme, after the identification information of the 3D printing device is received, the connection request is actively sent to the 3D printing device so as to establish communication connection with the 3D printing device, facilitate the follow-up data transmission of the file to be printed, and improve the convenience of printing operation.
In a specific implementation, before receiving the identification information of the 3D printing device sent by the 3D printing device, after detecting that the three-dimensional data processing software in the data processing device is started, the identification information of the data processing device is sent to the 3D printing device. After the three-dimensional data processing software is started, the identification information of the data processing device is sent to the 3D printing device, and the 3D printing device is informed of being started at present so as to automatically seek communication connection with the 3D printing device, so that the data processing device can automatically seek an online 3D printing device when the three-dimensional data processing software installed on the data processing device is started so as to facilitate the automatic connection of the next step.
In an embodiment of the present invention, when it is detected that the three-dimensional data processing software in the data processing apparatus is started, a second UDP broadcast is sent to the 3D printing apparatus, where the second UDP broadcast includes identification information of the data processing apparatus.
In an embodiment of the present invention, the identification information of the data processing apparatus may include at least one of the following: the IP address of the data processing device, the physical address of the data processing device, the type of data processing device, etc. According to the actual application scenario, the data processing device may further include: machine model number, machine code, machine name, etc. of the data processing apparatus.
In a specific implementation, after the data processing device establishes a communication connection with the 3D printing device, the heartbeat packet sent by the 3D printing device may also be received.
In an embodiment of the present invention, when the heartbeat packet is not received within a preset first duration, the communication connection with the 3D printing device is disconnected, and the communication connection with the 3D printing device is re-established.
For example, when the 3D printing apparatus transmits a heartbeat packet to the data processing apparatus at a cycle of 30 seconds. When the data processing apparatus does not receive the heartbeat packet within 1 minute, it is considered that the connection with the 3D printing apparatus has been made wrong. The data processing device actively disconnects the communication connection with the 3D printing device and seeks to establish a communication connection again with the 3D printing device by sending identification information or a connection request of the data processing device to the data processing device. If the communication connection with the 3D printing device is not successfully established, the method is tried again. If the number of times that the data processing device attempts to reestablish connection with the 3D printing device reaches the preset number of times, the data processing device fails to establish communication connection with the 3D printing device, and the data processing device thoroughly disconnects the connection with the 3D printing device.
In order to facilitate better understanding and implementation of the embodiments of the present invention by those skilled in the art, the embodiments of the present invention further provide a 3D printing device. Referring to fig. 3, the 3D printing apparatus 30 includes: a first transmitting unit 31, a first receiving unit 32, a first processing unit 33, wherein:
The first transmitting unit 31 is adapted to transmit identification information of the 3D printing device to a data processing device;
the first receiving unit 32 is adapted to receive a connection request sent by the data processing apparatus, where the connection request is generated by the data processing apparatus after receiving the identification information of the 3D printing apparatus;
the first processing unit 33 is adapted to establish a communication connection with the data processing device.
In a specific implementation, the first sending unit 31 is adapted to send identification information of the 3D printing device to the data processing device after detecting that the 3D printing device is powered on; or after receiving the identification information of the data processing device sent by the data processing device, sending the identification information of the 3D printing device to the data processing device; or when detecting that the IP address of the 3D printing device changes, sending the identification information of the 3D printing device to the data processing device.
In a specific implementation, the first sending unit 31 is adapted to send a first UDP broadcast to the data processing apparatus, where the first UDP broadcast includes the identification information of the 3D printing apparatus.
In a specific implementation, the first transmitting unit 31 is adapted to transmit the identification information of the 3D printing device to the data processing devices of the same broadcast group.
In a specific implementation, the 3D printing device 30 may further include: a first acquisition unit (not shown) and a first confirmation unit (not shown). The first obtaining unit is suitable for obtaining identity verification information in a connection request sent by the data processing device after receiving the connection request, wherein the identity verification information is used for verifying the identity of the data processing device; the first confirmation unit is adapted to confirm that the authentication information is correct.
In a specific implementation, the first sending unit 31 is further adapted to send heartbeat packets to the data processing device periodically after establishing a communication connection with the data processing device.
In a specific implementation, the identification information of the 3D printing device includes: the IP address of the 3D printing device, the physical address of the 3D printing device, the type of the 3D printing device.
The first transmitting unit 31, the first receiving unit 32, and the first processing unit 33 may be provided in the 3D printing device 30 as separate units, or may be provided as a unit in a server in the 3D printing device, along with the server as a part of the 3D printing device. Regardless of the manner in which the first transmitting unit 31, the first receiving unit 32, and the first processing unit 33 exist, only the solutions in the foregoing embodiments of the present invention can be implemented, and all fall within the scope of the embodiments of the present invention. According to the 3D printing device provided by the embodiment of the invention, a server is not required to be configured, and each 3D printing device has the function of the server, so that the configuration cost of the server can be reduced. In addition, the configuration of the server is complex, and a professional is required to configure the server. The 3D printing device provided by the embodiment of the invention can be used without configuration by a professional, and is simple to operate.
In a specific implementation, the working principle and the workflow of the 3D printing device may refer to the description of the connection method of the 3D printing device in the above embodiment of the present invention, which is not repeated herein.
The embodiment of the invention also provides a 3D printing device, which comprises a memory and a processor, wherein the memory stores computer instructions capable of running on the processor, and the processor executes the steps of any 3D printing device connection method provided by the embodiment of the invention when running the computer instructions.
The embodiment of the invention also provides a data processing device. Referring to fig. 4, the data processing apparatus 40 may include: a second receiving unit 41, a second acquiring unit 42, a second transmitting unit 43, wherein:
the second receiving unit 41 is adapted to receive the identification information of the 3D printing device sent by the 3D printing device;
the second obtaining unit 42 is adapted to obtain the IP address of the 3D printing device from the identification information of the 3D printing device;
the second sending unit 43 is adapted to send a connection request to the 3D printing device according to the acquired IP address of the 3D printing device, so as to establish a communication connection with the 3D printing device.
In a specific implementation, the second sending unit 43 is further adapted to send the identification information of the data processing device to the 3D printing device after detecting that the three-dimensional data processing software in the data processing device is started.
In a specific implementation, the second sending unit 43 is adapted to send a second UDP broadcast to the 3D printing device, where the second UDP broadcast includes the identification information of the data processing device.
In a specific implementation, the second sending unit 43 is adapted to send a connection request to the 3D printing device using a socket with a preset port.
In a specific implementation, the second receiving unit 41 is further adapted to receive a heartbeat packet sent by the 3D printing device after establishing a communication connection with the 3D printing device.
In a specific implementation, the data processing device 40 may further include a reconnection unit (not shown in the figure) adapted to disconnect the communication connection with the 3D printing device and reestablish the communication connection with the 3D printing device when the heartbeat packet is not received within a preset first time period.
In order to facilitate a better understanding and implementation of the present invention by those skilled in the art, the workflow of the 3D printing device and the data processing device will be described below with reference to specific embodiments.
Three-dimensional data processing software is installed in the data processing device. The number of the data processing devices may be 1 or more. When the number of data processing apparatuses is plural, each data processing apparatus can be discriminated in the identification information of each data processing apparatus.
The number of 3D printing devices may be 1 or more. When the number of 3D printing apparatuses is plural, each 3D printing apparatus may be discriminated in the identification information of each 3D printing apparatus.
A broadcast group is established for the connectable 3D printing device and data processing device. When the 3D printing apparatus is powered on, a first UDP broadcast is transmitted to the data processing apparatuses in the same broadcast group. The first UDP broadcast includes identification information of the 3D printing apparatus. The identification information of the 3D printing device includes an IP address, a MAC address, and a 3D printing device type, wherein the 3D printing device type is used to designate as a 3D printing device or a data processing device.
And after the data processing device receives the identification information of the 3D printing device, analyzing the identification information to obtain the IP address of the 3D printing device, and after the identification information is determined to be the 3D printing device in the same broadcast group, sending a connection request to the 3D printing device by utilizing a preset port and authentication information, and establishing connection with the 3D printing device by using a socket.
And after the data processing device detects that the three-dimensional data processing software installed on the data processing device is started, transmitting a second UDP broadcast. If the 3D printing device receives the second UDP broadcast sent by the data processing device and confirms that the three-dimensional data processing software installed on the data processing device is started, the 3D printing device sends the first UDP broadcast to the data processing device and informs the data processing device of the identification information of the 3D printing device.
The 3D printing device sends out a heartbeat packet every 30 seconds, proving that the device is still online. In addition to normal network disconnection, communication connection disconnection caused by other conditions may be immediately notified by both the 3D printing apparatus and the data processing apparatus. In addition, when no heartbeat packet is received in the data processing device within 1 minute, the connection is considered to be wrong, the connection is actively disconnected first, then the automatic connection is carried out for a plurality of times, and if the connection is completely disconnected after a plurality of times of connection attempt failures.
Because the MAC address is unique, when the IP address changes, the data processing apparatus can still determine which 3D printing apparatus is the previous one through the MAC address in the packet sent by the new IP address, and refresh the IP address of the 3D printing apparatus in the database (e.g. using the sqllite database).
The embodiment of the invention also provides a data processing device, which comprises a memory and a processor, wherein the memory stores computer instructions capable of running on the processor, and the processor executes the steps of the control method of any data processing device provided by the implementation of the invention when running the computer instructions.
The embodiment of the invention also provides a computer readable storage medium, which is a nonvolatile storage medium or a non-transient storage medium, and is provided with computer instructions stored thereon, and the computer instructions execute the steps of any 3D printing device connection method provided by the embodiment of the invention when running.
The embodiment of the invention also provides another computer readable storage medium, wherein the computer readable storage medium is a nonvolatile storage medium or a non-transient storage medium, and computer instructions are stored on the computer readable storage medium, and the computer instructions execute the steps of the control method of any data processing device provided by the implementation of the invention when running.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in any computer readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, etc.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.

Claims (23)

1. A 3D printing apparatus connecting method, comprising:
transmitting the identification information of the 3D printing device to a data processing device;
receiving a connection request sent by the data processing device, wherein the connection request is generated by the data processing device after receiving the identification information of the 3D printing device;
establishing a communication connection with the data processing device;
setting a group for the data processing device which allows connection, and setting a broadcast group when the identification information of the 3D printing device is sent in a broadcast mode, so as to bind the same port number for the data processing device and the 3D printing device;
the transmitting the identification information of the 3D printing device to the data processing device includes: after receiving the identification information of the data processing device sent by the data processing device, sending the identification information of the 3D printing device to the data processing device, wherein the data processing device is provided with three-dimensional data processing software, and after detecting that the three-dimensional data processing software is started, sending a second UDP broadcast to the 3D printing device, wherein the second UDP broadcast comprises the identification information of the data processing device;
The transmitting the identification information of the 3D printing device to a data processing device includes: and transmitting a first UDP broadcast to the data processing devices in the same broadcast group, wherein the first UDP broadcast comprises the identification information of the 3D printing device, so that only the data processing devices in the same broadcast group can receive the identification information of the 3D printing device.
2. The 3D printing apparatus connection method according to claim 1, wherein the transmitting the identification information of the 3D printing apparatus to the data processing apparatus includes at least one of:
when the 3D printing device is detected to be electrified, the identification information of the 3D printing device is sent to the data processing device;
and when detecting that the IP address of the 3D printing device changes, sending identification information of the 3D printing device to the data processing device.
3. The 3D printing apparatus connection method according to claim 1, further comprising, after receiving a connection request transmitted by the data processing apparatus:
acquiring identity verification information in the connection request, wherein the identity verification information is used for verifying the identity of the data processing device;
and confirming that the identity verification information is correct.
4. The 3D printing apparatus connection method according to claim 1, further comprising, after establishing a communication connection with the data processing apparatus:
and sending heartbeat packets to the data processing device periodically.
5. The 3D printing device connection method according to claim 1, wherein the identification information of the 3D printing device includes:
the IP address of the 3D printing device, the physical address of the 3D printing device, the type of the 3D printing device.
6. A control method of a data processing apparatus, comprising:
receiving identification information of the 3D printing device sent by the 3D printing device;
acquiring an IP address of the 3D printing device from the identification information of the 3D printing device;
according to the acquired IP address of the 3D printing device, a connection request is sent to the 3D printing device so as to establish communication connection with the 3D printing device;
setting a group for the data processing device which is allowed to be connected with the 3D printing device, and setting a broadcasting group when the 3D printing device sends the identification information of the 3D printing device in a broadcasting mode, so as to bind the same port number for the data processing device and the 3D printing device;
The receiving the identification information of the 3D printing device sent by the 3D printing device includes: receiving a first UDP broadcast sent by a 3D printing device of the same broadcast group, wherein the first UDP broadcast comprises identification information of the 3D printing device, so that only the data processing devices in the same broadcast group can receive the identification information of the 3D printing device;
before receiving the identification information of the 3D printing device sent by the 3D printing device, the method further comprises: and after detecting that the three-dimensional data processing software installed in the data processing device is started, sending a second UDP broadcast to the 3D printing device, wherein the second UDP broadcast comprises the identification information of the data processing device.
7. The method according to claim 6, wherein the sending a connection request to the 3D printing apparatus according to the acquired IP address of the 3D printing apparatus, comprises:
and sending a connection request to the 3D printing device by adopting a preset port, wherein the connection request comprises the authentication information of the data processing device.
8. The control method of the data processing apparatus according to claim 6, further comprising, after establishing a communication connection with the 3D printing apparatus:
And receiving the heartbeat packet sent by the 3D printing device.
9. The control method of the data processing apparatus according to claim 8, wherein when the heartbeat packet is not received within a preset first period of time, the communication connection with the 3D printing apparatus is disconnected and the communication connection with the 3D printing apparatus is re-established.
10. A 3D printing apparatus, comprising:
a first transmitting unit adapted to transmit identification information of the 3D printing device to a data processing device; the first receiving unit is suitable for receiving a connection request sent by the data processing device, wherein the connection request is generated by the data processing device after receiving the identification information of the 3D printing device;
a first processing unit adapted to establish a communication connection with the data processing device;
setting a group for the data processing device which allows connection, and setting a broadcast group when the identification information of the 3D printing device is sent in a broadcast mode, so as to bind the same port number for the data processing device and the 3D printing device;
the first sending unit is adapted to send the identification information of the 3D printing device to the data processing device after receiving the identification information of the data processing device sent by the data processing device, wherein the data processing device is provided with three-dimensional data processing software, and send a second UDP broadcast to the 3D printing device after detecting that the three-dimensional data processing software is started, and the second UDP broadcast includes the identification information of the data processing device;
The first transmitting unit is adapted to transmit a first UDP broadcast to the data processing apparatus, the first UDP broadcast including identification information of the 3D printing apparatus.
11. The 3D printing device according to claim 10, wherein the first transmitting unit is adapted to transmit identification information of the 3D printing device to the data processing device upon detecting that the 3D printing device is powered on; or when detecting that the IP address of the 3D printing device changes, sending the identification information of the 3D printing device to the data processing device.
12. The 3D printing device according to claim 10, wherein the first transmitting unit is adapted to transmit identification information of the 3D printing device to data processing devices of the same broadcast group.
13. The 3D printing apparatus of claim 10, further comprising:
the first acquisition unit is suitable for acquiring identity verification information in a connection request sent by the data processing device after receiving the connection request, wherein the identity verification information is used for verifying the identity of the data processing device;
and the first confirmation unit is suitable for confirming that the identity verification information is correct.
14. The 3D printing device according to claim 10, wherein the first transmitting unit is further adapted to periodically transmit heartbeat packets to the data processing device after establishing a communication connection with the data processing device.
15. The 3D printing device according to claim 10, wherein the identification information of the 3D printing device includes: the IP address of the 3D printing device, the physical address of the 3D printing device, the type of the 3D printing device.
16. A data processing apparatus, comprising:
a second receiving unit adapted to receive identification information of the 3D printing device sent by the 3D printing device; a second acquisition unit adapted to acquire an IP address of the 3D printing apparatus from the identification information of the 3D printing apparatus;
a second sending unit adapted to send a connection request to the 3D printing device according to the acquired IP address of the 3D printing device, so as to establish a communication connection with the 3D printing device;
setting a group for the data processing device which is allowed to be connected with the 3D printing device, and setting a broadcasting group when the 3D printing device sends the identification information of the 3D printing device in a broadcasting mode, so as to bind the same port number for the data processing device and the 3D printing device;
A second receiving unit adapted to receive a first UDP broadcast transmitted by a 3D printing device of the same broadcast group, the first UDP broadcast including identification information of the 3D printing device, such that only the data processing devices in the same broadcast group can receive the identification information of the 3D printing device;
the second sending unit is further adapted to send a second UDP broadcast to the 3D printing device after detecting that the three-dimensional data processing software installed in the data processing device is started, where the second UDP broadcast includes identification information of the data processing device.
17. The data processing device according to claim 16, wherein the second sending unit is adapted to send a connection request to the 3D printing device using a preset port, and the connection request includes authentication information of the data processing device.
18. The data processing device according to claim 16, wherein the second receiving unit is further adapted to receive a heartbeat packet sent by the 3D printing device after establishing a communication connection with the 3D printing device.
19. The data processing apparatus according to claim 18, further comprising a reconnection unit adapted to disconnect the communication connection with the 3D printing apparatus and reestablish the communication connection with the 3D printing apparatus when the heartbeat packet is not received within a preset first time period.
20. A 3D printing device comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, characterized in that the processor executes the steps of the 3D printing device connection method according to any of claims 1 to 5 when the computer program is executed by the processor.
21. A data processing apparatus comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, characterized in that the processor executes the steps of the control method of the data processing apparatus according to any one of claims 6 to 9 when the computer program is executed by the processor.
22. A computer-readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the steps of the 3D printing device connection method according to any of claims 1 to 5.
23. A computer-readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the steps of the control method of the data processing apparatus according to any one of claims 6 to 9.
CN201811589958.3A 2018-12-25 2018-12-25 3D printing device, connection method, data processing device, control method and medium Active CN111367477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811589958.3A CN111367477B (en) 2018-12-25 2018-12-25 3D printing device, connection method, data processing device, control method and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811589958.3A CN111367477B (en) 2018-12-25 2018-12-25 3D printing device, connection method, data processing device, control method and medium

Publications (2)

Publication Number Publication Date
CN111367477A CN111367477A (en) 2020-07-03
CN111367477B true CN111367477B (en) 2023-07-25

Family

ID=71205977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811589958.3A Active CN111367477B (en) 2018-12-25 2018-12-25 3D printing device, connection method, data processing device, control method and medium

Country Status (1)

Country Link
CN (1) CN111367477B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179120A (en) * 2013-03-21 2013-06-26 天闻数媒科技(北京)有限公司 Method and system for realizing printing of mobile device
CN107888566A (en) * 2017-10-18 2018-04-06 西安艾润物联网技术服务有限责任公司 Method, intelligent terminal, system and the storage medium of self-help print file
CN108874330A (en) * 2018-07-05 2018-11-23 美味不用等(上海)信息科技股份有限公司 A kind of method and device of automatic connection printer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005100270A (en) * 2003-09-26 2005-04-14 Minolta Co Ltd Printing control program and printer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179120A (en) * 2013-03-21 2013-06-26 天闻数媒科技(北京)有限公司 Method and system for realizing printing of mobile device
CN107888566A (en) * 2017-10-18 2018-04-06 西安艾润物联网技术服务有限责任公司 Method, intelligent terminal, system and the storage medium of self-help print file
CN108874330A (en) * 2018-07-05 2018-11-23 美味不用等(上海)信息科技股份有限公司 A kind of method and device of automatic connection printer

Also Published As

Publication number Publication date
CN111367477A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN109286593B (en) Method and device for transmission reconnection, computer equipment and storage medium
EP2986042B1 (en) Client, server, and remote authentication dial in user service capability negotiation method and system
CN107547619B (en) Timer parameter negotiation method and device
CN103685398B (en) Communication connection method for building up and communication system
CN113852483B (en) Network slice connection management method, terminal and computer readable storage medium
CN104468265A (en) Method and device for detecting online states of local area network terminals
CN109525620B (en) Message pushing system, method and device
CN101567891B (en) Source address verification method, device and system
JP2016213670A (en) Communication device, communication system, communication method, and program
WO2013189398A2 (en) Application data push method, device, and system
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN111367477B (en) 3D printing device, connection method, data processing device, control method and medium
CN104092687A (en) BGP conversation establishing method and device
CN105991370B (en) UDP channel detection method and device
CN110971426A (en) Method for constructing group session, client and storage medium
CN114363204A (en) Request monitoring method, network device and storage medium
CN113596147A (en) Message pushing method, device, equipment and storage medium
CN112118284A (en) Gateway device-oriented http data request method, device and medium
CN112291164A (en) Repeated registration processing method, computer device and readable storage medium
CN108270613B (en) Message sending method and network equipment
KR101730404B1 (en) Method of managing network route and network entity enabling the method
CN114024712B (en) Authentication method, authentication device, computer equipment and storage medium
CN112600738B (en) Method and device for verifying connectivity of network port
CN102917071B (en) A kind of tunnel connection request distribution method and device
CN114338633B (en) Method and system for remotely connecting Linux server

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