Printer management method, computer device, storage medium and program product
Through computer equipment, the detection data packets are sent to the target address network segment, the printer address is obtained and the network connection is established, which solves the problem of low IP address acquisition efficiency in large-scale 3D printer management, and improves management convenience and efficiency.
Patent Information
- Application Number
- CN202411561326.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-03-18
AI Technical Summary
As the number of 3D printers increases, obtaining the printer's IP address will take more time and resources, affecting management efficiency.
Through the computer equipment, the detection data packet is actively sent to the target address network segment, the printer address is obtained, and a network connection is established with the printer based on the address, so as to realize the active search and management of the printer.
It improves the convenience and management efficiency of printer deployment, reduces the time and resource consumption for IP address acquisition, and is suitable for the management needs of large-scale 3D printing farms.
Smart Images

Figure CN119645324A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a printer management method, computer equipment, storage medium and program product. Background Art
[0002] With the rapid progress of three-dimensional (3D) printing technology, especially the significant improvement of printing speed, a new production model represented by 3D printing farms has emerged. Its scale has expanded rapidly, and the number of printers equipped in 3D printing farms has also increased. The management of printers is extremely important. At present, the printer is generally connected through the server, which is responsible for collecting printer status, storing and managing model files, and managing printing history. The client provides a graphical interface for user operation, and the client obtains display information or sends operation commands to the server by accessing the server. The server needs to establish a communication link based on the Internet Protocol (IP) address with the printer to receive the status information reported by the printer and send control commands to the printer.
[0003] However, as the number of printers increases, obtaining the IP addresses of printers consumes more time and resources. Summary of the invention
[0004] The embodiments of the present application provide a printer management method, a computer device, a storage medium, and a program product, which can improve the convenience of printer deployment.
[0005] On the one hand, an embodiment of the present application provides a printer management method, which can be executed by a computer device, and the method includes:
[0006] In response to a printer search request for a target address network segment, a detection data packet is sent to a network address included in the target address network segment;
[0007] Obtain a message reply to the detection data packet, and determine the printer address according to the message reply; the printer address corresponds to the printer one by one;
[0008] Based on the printer address, a network connection is established with a target printer corresponding to the target address network segment; the printer includes the target printer;
[0009] The model file is sent to the target printer based on the network connection so that the target printer prints the model file. The printer printing the model file can be understood as the printer executing the code file in the model file and then manufacturing the object.
[0010] In one aspect, an embodiment of the present application provides a printer management device, the printer management device comprising:
[0011] A data sending module, used to respond to a printer search request for a target address network segment and send a detection data packet to a network address included in the target address network segment;
[0012] An address determination module, used to obtain a message reply to the detection data packet, and determine the printer address according to the message reply; the printer address corresponds to the printer one by one;
[0013] A printing connection module is used to establish a network connection with a target printer corresponding to a target address network segment based on a printer address; the printer includes a target printer;
[0014] The file sending module is used to send the model file to the target printer based on the network connection.
[0015] Wherein, the target address network segment includes P subnet segments; P is a positive integer;
[0016] The data sending module can be used for:
[0017] In response to a printer search request for a target address network segment, obtain network addresses respectively included in P subnet network segments in the target address network segment;
[0018] Send detection packets to the network addresses included in each subnet segment.
[0019] Wherein, the printer management device also includes:
[0020] A printing configuration module is used to obtain N available address segments, each of which is associated with a first search component; N is a positive integer, and the N address segments include a target address segment; each first search component is used to trigger a printer search request for the address segment associated with the first search component.
[0021] Wherein, the printer management device also includes:
[0022] The printing configuration module is also used to display a network segment input area, which is associated with a second search component; the network segment input area is used to obtain a target address network segment, and the second search component is used to trigger a printer search request for the target address network segment obtained by the network segment input area.
[0023] Wherein, the printer management device also includes:
[0024] The printing configuration module is further used to display a network segment selection component, wherein the network segment selection component is associated with a third search component;
[0025] The data sending module can be used for:
[0026] In response to a trigger operation on a network segment selection component, available N address network segments are displayed; N is a positive integer;
[0027] In response to a selection operation on a target address segment among N address segments and a trigger operation on a third search component, a detection data packet is sent to the network address included in the target address segment; the selection operation on the target address segment among N address segments and the trigger operation on the third search component are used to trigger a printer search request for the target address segment.
[0028] The address determination module can be used for:
[0029] Obtain a message reply to the detection data packet, obtain a printer message format, and determine the network address that sends the message reply that conforms to the printer message format as the printer address; or,
[0030] A message reply to the detection data packet is obtained, and the network address of sending the message reply is determined as the printer address; the detection data packet is a message message requesting a reply from the printer.
[0031] The printer search request for the target address segment includes a printer search request for a first range; the first range refers to a range belonging to the same subnet segment as the computer device; the target address segment is the subnet segment to which the device address of the computer device belongs.
[0032] The file sending module can be used to:
[0033] Get the number of the first printer in the target printer; the first printer refers to the printer in the hot bed heating state;
[0034] If the number of the first printers is less than the synchronous heating number threshold, the model file is sent to the target printer based on the network connection so that the target printer prints the model file; the synchronous heating number threshold is used to indicate the upper limit of the number of printers that can synchronously heat the hot bed;
[0035] If the number of first printers is greater than or equal to the synchronous heating number threshold, the sending of the model file to the target printer is temporarily stopped until the number of first printers is less than the synchronous heating number threshold, and the model file is sent to the target printer based on the network connection.
[0036] Wherein, the printer management device also includes:
[0037] The threshold determination module is used to obtain the scene power consumption threshold, hot bed heating power consumption threshold and normal working power consumption threshold of the scene in which the target printer is deployed, obtain the number of the target printers, and determine the synchronous heating number threshold from the number of printers according to the scene power consumption threshold, the hot bed heating power consumption threshold and the normal working power consumption threshold; the hot bed heating power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in the hot bed heating state; the normal working power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in the normal working state, and the normal working state refers to the state in which the hot bed is in operation and no hot bed heating is performed.
[0038] Wherein, the printer management device also includes:
[0039] The threshold determination module is also used to display the hot bed configuration page and obtain the simultaneous heating quantity threshold uploaded by the hot bed configuration page.
[0040] The first printer is a printer in the target printers, whose printer model is the first printer model and is in a hot bed heating state; the target printers include at least two printer models; when obtaining the number of the first printer in the target printers, the file sending module can be used to:
[0041] According to the first printer model corresponding to the model file, the number of first printers belonging to the same model is obtained from the target printers.
[0042] Among them, the file sending module can be used for:
[0043] Display the second printer model;
[0044] In response to a selection operation for a target printer model among the second printer models, a second printer corresponding to the target printer model is determined from the target printers, and a model file is sent to the second printer based on a network connection.
[0045] Wherein, the printer management device also includes:
[0046] The model acquisition module is used to acquire the model file and obtain the second printer model from the model file.
[0047] Wherein, in response to the selection operation for the target printer model in the second printer models, when determining the second printer corresponding to the target printer model from the target printers, the file sending module can be used to:
[0048] In response to a selection operation on a target printer model in the second printer models, acquiring a candidate printer corresponding to the target printer model from the target printers;
[0049] The model consumables corresponding to the model file are obtained, the remaining consumables of the candidate printers are obtained, and the candidate printer whose remaining consumables are greater than the model consumables is determined as the second printer.
[0050] On the one hand, an embodiment of the present application provides a computer device, including a processor, a memory, and an input and output interface;
[0051] The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used to receive and output data, the memory is used to store a computer program, and the processor is used to call the computer program so that a computer device including the processor executes the printer management method in one aspect of an embodiment of the present application.
[0052] On one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the printer management method in one aspect of the embodiment of the present application.
[0053] In one aspect, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional ways in one aspect of the embodiment of the present application. In other words, when the computer instruction is executed by the processor, the method provided in various optional ways in one aspect of the embodiment of the present application is implemented.
[0054] Implementing the embodiments of the present application will have the following beneficial effects:
[0055] In an embodiment of the present application, a computer device can respond to a printer search request for a target address network segment, send a detection data packet to the network address included in the target address network segment; obtain a message reply for the detection data packet, and determine the printer address according to the message reply; the printer address corresponds to the printer one by one; based on the printer address, a network connection is established between the target printer corresponding to the target address network segment; the printer includes a target printer; based on the network connection, a model file is sent to the target printer, so that the target printer prints the model file. That is to say, the computer device can actively send a detection data packet to the address network segment, and if a correct message reply (i.e., a standard message reply) is received, the network address of the printer that sends the standard message reply can be obtained. Different from establishing a communication link between the server and the printer first and then receiving the information uploaded by the printer by the server, the present application can realize active search for the printer, and this method searches for the printer based on the address network segment, and the format and content of the address network segment are relatively simple, even ordinary users can easily realize the search for the printer based on the address network segment, thereby improving the convenience of printer connection. In addition, by sending detection data packets to the address network segment, the computer device can obtain the network addresses of printers deployed in different address network segments. Therefore, even if the printers are distributed in different subnets, each printer can be searched and connected across network segments, improving the convenience and reliability of printer management. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 This is a network interaction architecture diagram of printer management provided by an embodiment of the present application;
[0057] Figure 2 It is a schematic diagram of a printer management scenario provided by an embodiment of the present application;
[0058] Figure 3 is a flow chart of a printer management method provided by an embodiment of the present application;
[0059] Figure 4 This is a schematic diagram of a printer configuration scenario provided by an embodiment of the present application. Figure 1 ;
[0060] Figure 5a This is a schematic diagram of a printer configuration scenario provided by an embodiment of the present application. Figure 2 ;
[0061] Figure 5b This is a schematic diagram of a printer configuration scenario provided by an embodiment of the present application. Figure 3 ;
[0062] Figure 6 This is a schematic diagram of a printer configuration scenario provided by an embodiment of the present application. Figure 4 ;
[0063] Figure 7 This is a flow chart of a method for limiting a printer hot bed provided in an embodiment of the present application;
[0064] Figure 8 This is a schematic diagram of a printer hot bed restriction scenario provided in an embodiment of the present application;
[0065] Fig. 9 It is a flow chart of a method for processing a printer model provided in an embodiment of the present application;
[0066] Fig.10 This is a schematic diagram of a model matching scenario provided in an embodiment of the present application;
[0067] Fig.11 is a flow chart of a method for printer processing provided by an embodiment of the present application;
[0068] Fig.12 is a schematic diagram of a printer management device provided in an embodiment of the present application;
[0069] Fig.13 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0071] Among them, the use of user data by this application will comply with the relevant provisions of laws and regulations, that is, this application will use user data within a reasonable and legal scope.
[0072] In the examples of this application, see Figure 1 , Figure 1 is a network interaction architecture diagram of a printer management provided by an embodiment of the present application, such as Figure 1 As shown, the computer device 101 can be connected to the printer 102, and the computer device 101 can send control commands to the printer 102, and can also obtain status information sent by the printer 102. The computer device 101 can be a device that integrates a server and a client, or can include any one of the client 1011 and the server 1012, and there is no limitation here. The number of printers 102 is at least two, such as Figure 1The printer 102a, printer 102b, printer 102c, ... and printer 102f, etc. shown in the figure, that is, the present application is used for managing at least two printers. Among them, the printer in the present application can be considered as a 3D printer, which is a process equipment for rapid prototyping. The computer device 101 can establish a network connection with the printer based on the network address of the printer, and send control commands, such as model files, to the printer through the network connection. The model file is a file executable by the printer, such as a Gcode file, a 3D Manufacturing Format (3MF) file containing a Gcode file, a stereolithography (STL) format file, or a Wavefront OBJ (OBJ) format file, etc. The Gcode file is an instruction set used to control automated equipment such as CNC machine tools or 3D printers, and contains detailed instructions required for the equipment to perform specific tasks; the 3MF file is used to describe the 3D model, including but not limited to the geometric information, internal information, color, material and other features of the 3D model; the STL format file is a standard triangle language used to save the information of the three-dimensional model; the OBJ format file is a universal 3D model file format used to describe the surface geometry information of a three-dimensional object, etc. When the printer receives the model file, it can execute the code file in the model file and then manufacture the object.
[0073] For details, see Figure 2 , Figure 2 Schematic diagram of a printer management scenario provided by an embodiment of the present application. Figure 2As shown, the computer device can respond to the printer search request 201 for the target address segment and send a detection data packet to the network address included in the target address segment. The target address segment is an address segment, which can be considered as an IP range, used to indicate a subnet, and can include one or at least two subnet segments. A subnet segment is composed of multiple network addresses, each of which can be considered as an IP address, and the network addresses included in an address segment may include unused network addresses, network addresses used by printers, and network addresses used by business devices other than printers. At this time, the computer device can obtain a message reply for the detection data packet, and determine the printer address based on the message reply. Specifically, the network address for sending the standard message reply can be determined as the printer address. For example, the target address network segment includes network address 1, network address 2, and network address 3, etc. Network address 1 is used by printer 202a, network address 2 is used by printer 202b, network address 3 is used by business device 202c, etc. The computer device can obtain a message reply to the detection data packet and determine the network address that sends the standard message reply as the printer address, such as Figure 2 As shown in , the network addresses for sending standard message replies include network address 1 and network address 2, etc. The computer device can determine network address 1 and network address 2 as printer addresses, and establish a network connection between the target printer corresponding to the printer address and the target address network segment, such as Figure 2 As shown in , the target printer includes printer 202a and printer 202b, etc. The computer device can establish a network connection with printer 202a based on network address 1, and establish a network connection with printer 202b based on network address 2, etc. By actively sending a detection data packet to the network address included in the target address segment, receiving a message reply through the detection data packet, and being able to receive a standard message reply, it means that there is a network address used by the printer in the target address segment, and the network address to which the standard message reply is sent is the network address used by the printer. In this way, the network address used by the printer in the target address segment can be obtained and recorded as the printer address, so that the user only needs to provide the target address segment to obtain the network address corresponding to the printer, and the acquisition of the printer's network address does not need to consider the situation of cross-subnet transmission between printers, and can be based on the different composition of the target address segment, such as when it includes at least two subnet segments, the printer deployed in the subnet under at least two subnet segments can be found, thereby improving the convenience of printer connection.
[0074] It is understandable that the computer devices mentioned in the embodiments of the present application include but are not limited to terminal devices or servers. In other words, the computer device can be a server or a terminal device, or a system composed of a server and a terminal device. Among them, the terminal device mentioned above can be an electronic device, including but not limited to mobile phones, tablet computers, desktop computers, laptop computers, PDAs, vehicle-mounted devices, augmented reality / virtual reality (AR / VR) devices, helmet displays, smart TVs, wearable devices, smart speakers, digital cameras, cameras and other mobile Internet devices (mobile internet device, MID) with network access capabilities, or terminal devices in scenarios such as trains, ships, and flights. Among them, the server mentioned above can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, vehicle-road collaboration, content distribution networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0075] Optionally, the data involved in the embodiments of the present application can be stored in a computer device, or the data can be stored based on cloud storage technology or a blockchain network, which is not limited here.
[0076] For further information, see Figure 3 , Figure 3 This is a flow chart of a printer management method provided by an embodiment of the present application. Figure 3 As shown, the printer management process includes the following steps:
[0077] Step S301, responding to a printer search request for a target address network segment, sending a detection data packet to a network address included in the target address network segment.
[0078] In an embodiment of the present application, a computer device can respond to a printer search request for a target address segment and send a detection data packet to the network address included in the target address segment, wherein the target address segment is an address segment provided by a business object (i.e., a user). The computer device can obtain the network address included in the target address segment and send a detection data packet to the network address included in the target address segment to detect all network addresses included in the target address segment. Among all network addresses included in the target address segment, there may be network addresses used by a printer, network addresses used by other business devices, or unused network addresses. For example, if the target address segment is "192.168.3.0-192.168.3.255", the target address segment includes 256 network addresses, such as network address "192.168.3.0", network address "192.168.3.1", network address "192.168.3.2", ... and network address "192.168.3.255", etc. Optionally, the computer device may deploy group control software, obtain the target address network segment through the group control software, respond to the print search request for the target address network segment, and send a detection data packet to the network address included in the target address network segment. Optionally, the number of the target address network segment may be one or at least two, or the target address network segment may include one or at least two subnet network segments, and one subnet network segment corresponds to one subnet.
[0079] Specifically, the target address network segment can be an address network segment input by the business object, or an address network segment selected by the business object, etc. Specifically, the computer device can obtain N available address network segments, and each address network segment in the N address network segments is associated with a first search component. Wherein, N is a positive integer, and the N address network segments include the target address network segment; each first search component is used to trigger a printer search request for the address network segment associated with the first search component. In other words, the computer device can respond to the printer search request for the target address network segment in the N address network segments, and send a detection data packet to the network address included in the target address network segment. Wherein, when the organizational object (such as an administrator or network management personnel, etc.) of the target organization deploys the group control software, the address network segment associated with the target organization can be configured in the group control software, and the computer device can store the address network segment; or, when the organizational object configures the network for the target organization, the computer device can store the configured address network segment, etc., where the target organization refers to the organization that deploys the printer, such as an enterprise or other organization. That is to say, the computer device can obtain the configuration information of the group control software, and obtain the N address segments associated with the target organization from the configuration information; or, the computer device can obtain the network distribution data of the target organization, and obtain the N address segments associated with the target organization from the network distribution data, etc., without limitation here. In simple terms, after the target organization configures the address segment, it can store the organization information associated with the target organization. The computer device responds to the printer configuration request and can obtain the N address segments associated with the target organization from the organization information associated with the target organization, wherein the organization information can be the above-mentioned configuration information or network distribution data, etc., without limitation here. In this way, the address segment can be configured once, and subsequent users (i.e., business objects) can directly use the configuration to query the address segment, thereby simplifying the search and connection operations of the printer. Even ordinary personnel without 3D knowledge or skills can easily perform the address segment query operation, thereby improving the convenience of printer connection. Moreover, when the address segment needs to be updated, the computer device can obtain the updated address segment and update the organization information based on the updated address segment.
[0080] For example, see Figure 4 , Figure 4 This is a schematic diagram of a printer configuration scenario provided by an embodiment of the present application. Figure 1 .like Figure 4As shown, the computer device can output N address segments, respond to a printer search request for a target address segment among the N address segments, and send a detection data packet to the network address included in the target address segment. Optionally, in a network segment processing method ①, the computer device can display the network segment selection component 401, and associate the network segment selection component 401 with the third search component 403, that is, the network segment selection component 401 is associated with the third search component 403, and the printer search request for the target address network segment is triggered by the following steps: (1) The computer device responds to the selection operation on the network segment selection component 401, and displays N available address network segments 402, where N is a positive integer; (2) In response to the selection operation on the target address network segment in the N address network segments 402, it is assumed that the target address network segment is "192.168.4.0-192.168.4.255"; (3) In response to the trigger operation on the third search component 403, a detection data packet is sent to the network address included in the target address network segment. For example, in the example in (2), the target address network segment includes 256 network addresses such as 192.168.4.b, and b is any one from 0 to 255. In other words, the computer device can send a detection data packet to the network address included in the target address segment in response to a selection operation on the target address segment among N address segments and a trigger operation on the third search component, wherein the selection operation on the target address segment among N address segments and the trigger operation on the third search component are used to trigger a printer search request for the target address segment.
[0081] In a network segment processing method ②, the computer device can obtain N available address network segments 404, output N address network segments 404, and each address network segment in each N address network segments 404 is associated with a first search component 405. The printer search request for the target address network segment is triggered by a trigger operation for any first search component. For example, the computer device can respond to a trigger operation for a first search component C, determine the address network segment associated with the first search component C as the target address network segment, and send a detection data packet to the network address included in the target address network segment. The first search component C can be any first search component.
[0082] The above are only several possible processing procedures for N address segments, and other display methods may also be used. For example, the computer device may display N address segments, respond to the selection operation for the target address segment among the N address segments, and the segment confirmation operation, and send a detection data packet to the network address included in the target address segment.
[0083] Alternatively, the computer device may display a network segment input area, the network segment input area is associated with a second search component; the network segment input area is used to obtain a target address network segment, and the second search component is used to trigger a printer search request for the target address network segment obtained by the network segment input area. Figure 4 As shown, in a network segment processing method ③, the computer device can display a network segment input area 406, and the network segment input area is associated with a second search component 407. The printer search request for the target address network segment is triggered by a trigger operation for the second search component. Specifically, the computer device can respond to the trigger operation for the second search component 407, obtain the target address network segment submitted in the network segment input area 406, and send a detection data packet to the network address included in the target address network segment.
[0084] Optionally, you can obtain the target address network segment through the network segment input area. You can also refer to Figure 5a or Figure 5b wait, Figure 5a This embodiment of the application provides a printer configuration scenario schematic Figure 2 .like Figure 5a As shown, the computer device can display a network segment input area 501, which is used to obtain an address network segment, wherein the network segment input area 501 can include one or more input sub-areas, each input sub-area is used to obtain an address network segment, and the computer device can associate and display a network segment deletion component for each input sub-area. Optionally, the computer device can also display a range adding component 502, a search cancellation component, and a network segment determination component, etc. These components are used to process the address network segment. For example, the computer device can delete the input sub-area associated with the first network segment deletion component in response to a trigger operation for the first network segment deletion component; can add an input sub-area to the network segment input area 501 in response to a trigger operation for the range adding component 502; can cancel the display of the network segment input area 501 in response to a trigger operation for the search cancellation component, or directly cancel the page where the network segment input area 501 is located, etc. In response to the trigger operation on the network segment determination component, the address network segment submitted in the network segment input area 501 can be determined as the target address network segment, and a detection data packet is sent to the network address included in the target address network segment; or, in response to the trigger operation on the network segment determination component, the target address network segment 503 submitted in the network segment input area 501 can be displayed, and each target address network segment in the target address network segment 503 is associated with a fourth search component 504, etc. Each fourth search component is used to trigger a printer search request for the target address network segment associated with the fourth search component.
[0085] Optionally, the target address segment can be a cross-subnet address segment. For example, see Figure 5b , Figure 5b This is a schematic diagram of a printer configuration scenario provided by an embodiment of the present application. Figure 3 The computer device may display a network segment input area 505, which may be associated with a network segment deletion component, a search cancellation component, and a network segment determination component, etc., wherein the display method of the network segment input area 505 may also refer to Figure 5a The computer device can obtain the target address network segment submitted by the network segment input area 505, and the target address network segment can be an address network segment across subnet segments, such as Figure 5b The "192.168.3.0-192.168.4.255" shown in includes subnet segment 1 "192.168.3.0-192.168.3.255" and subnet segment 2 "192.168.4.0-192.168.4.255"; the computer device can send a detection data packet to the network address included in the target address segment, that is, it will send a detection data packet to the subnet 506 indicated by subnet segment 1 and the subnet 507 indicated by subnet segment 2. Assuming that subnet 506 includes printers 506a and 506b, and subnet 507 includes printers 507a and 507b, at this time, printers 506a, 506b, 507a and 507b can receive the detection data packet to realize cross-subnet search for printers. Of course, other service devices deployed in subnet 1 and subnet 2 can also receive the detection data packet.
[0086] Specifically, the target address segment includes P subnet segments, where P is a positive integer. The computer device can respond to a printer search request for the target address segment, obtain the network addresses respectively included in the P subnet segments in the target address segment, and send a detection data packet to the network address included in each subnet segment.
[0087] Optionally, the business object can also perform nearby printer search and the like. For example, the printer search request for the target address segment includes a printer search request for the first range, where the first range refers to a range that belongs to the same subnet segment as the computer device; the target address segment is the subnet segment to which the device address of the computer device belongs. Specifically, the computer device can respond to the printer search request for the first range, obtain the device address of the computer device, and determine the address segment to which the device address belongs as the target address segment; the first range refers to a range that belongs to the same address segment as the computer device; and send a detection data packet to the network address included in the target address segment. In this way, printers deployed in the same address segment as the computer device can be obtained.
[0088] Optionally, the computer device can provide multiple network segment processing methods at the same time, for example, see Figure 6 , Figure 6 This is a schematic diagram of a printer configuration scenario provided by an embodiment of the present application. Figure 4 ,like Figure 6 As shown, the computer device may display a range search component 601 (eg, Figure 6 ), input search component 602 (such as "Find nearby printers") Figure 6 ), and the available N address segments 603, and the first search component 604 associated with each address segment. The computer device can respond to the trigger operation for the range search component 601 to trigger the above-mentioned printer search request for the first range; can respond to the trigger operation for the input search component 602 to execute the above-mentioned Figure 4 Middle network segment processing method ③, Figure 5a or Figure 5b The process shown; it can respond to the trigger operation of the first search component in the first search component 604, and execute the process shown in the above-mentioned network segment processing method ① or the above-mentioned network segment processing method ②, etc.
[0089] Step S302, obtaining a message reply to the detection data packet, and determining the printer address according to the message reply.
[0090] In the embodiment of the present application, the printer address corresponds to the printer one-to-one. Specifically, the computer device can obtain the message reply for the detection data packet, and determine the network address of the standard message reply as the printer address. The standard message reply is used to indicate the message belonging to the printer. When the printer receives the detection data packet, it will send a standard message reply to the detection data packet. When the computer device receives the standard message reply for the detection data packet, the network address of the standard message reply can be determined as the printer address, thereby realizing the acquisition of the IP address of the printer. The acquisition process is actively detected by the computer device, and there is no need to consider the problem of cross-subnet between printers. Only a simple address segment is required to find the network address of the printer, making the process simple to operate and suitable for most people to operate. In other words, it can improve the convenience and wide applicability of finding the printer.
[0091] Optionally, in one case, the printer is integrated with a printer message format for a probe data packet. When the printer receives a probe data packet, it will send a message reply for the probe data packet using the printer message format. When other business devices receive the probe data packet, they will also send a message reply for the probe data packet. At this time, the computer device can obtain the message reply for the probe data packet, obtain the printer message format, and determine the network address that sends the message reply that conforms to the printer message format as the printer address. At this time, the standard message reply is a message reply that conforms to the printer message format. Among them, the message reply that conforms to the printer message format can indicate that the message reply is sent by the printer. For example, if Figure 2 As shown in , assuming that the computer device receives message reply 1 sent by network address 1, message reply 2 sent by network address 2, and message reply 3 sent by network address 3, etc., where message reply 1 and message reply 2 are standard message replies that conform to the printer message format, then network address 1 that sends message reply 1 and network address 2 that sends message reply 2 can be determined as printer addresses.
[0092] Alternatively, in one case, only the printer will send a message reply to the detection data packet when it receives the detection data packet. In this case, the computer device can obtain the message reply to the detection data packet and determine the network address of the message reply as the printer address. In this case, the detection data packet is a message message requesting a reply from the printer, and the standard message reply is the message reply to the detection data packet received by the computer device. Figure 2 As shown, when printer 202a receives the detection data packet, it will send a message reply to the computer device; when printer 202b receives the detection data packet, it will send a message reply to the computer device; when business device 202c receives the detection data packet, it will discard the detection data packet... At this time, the computer device can receive message reply 1 sent by network address 1, and message reply 2 sent by network address 2, etc. The computer device can directly determine message reply 1 and message reply 2 as standard message replies, and determine network address 1 and network address 2 as printer addresses.
[0093] In either case, unused network addresses cannot process the detection data packets, thereby realizing the search for printers, and the detection data packets are sent to all network addresses included in the target address segment, so that all printers deployed in the target address segment can be found, thereby improving the efficiency of printer search.
[0094] Step S303: establishing a network connection with a target printer corresponding to the target address network segment based on the printer address.
[0095] In the embodiment of the present application, the printer includes a target printer, and the target printer corresponding to the target address network segment is a printer using a printer address, that is, at this time, the target printer refers to a printer that has established a network connection.
[0096] Step S304: sending the model file to the target printer based on the network connection.
[0097] In the embodiment of the present application, the computer device obtains the model file and can directly send the model file to the target printer based on the network connection so that the target printer prints the model file. The printer printing the model file can be understood as the printer executing the code file in the model file and then manufacturing the object.
[0098] Optionally, the number of printers that perform hot bed heating simultaneously may be limited based on a synchronous heating number threshold. Specifically, the computer device may obtain the number of first printers in the target printers, where the first printer refers to a printer that is in a hot bed heating state. If the number of first printers is less than the synchronous heating number threshold, the model file is sent to the target printer based on a network connection. The synchronous heating number threshold is used to indicate the upper limit of the number of printers that perform hot bed heating simultaneously. If the number of first printers is greater than or equal to the synchronous heating number threshold, sending the model file to the target printer is temporarily stopped until the number of first printers is less than the synchronous heating number threshold. Then, the model file is sent to the target printer based on a network connection so that the target printer prints the model file. For details, please refer to Figure 7 Related description in .
[0099] Optionally, the number of printers that simultaneously execute printing tasks can be limited based on a task synchronization number threshold, and the task synchronization number threshold is used to indicate the upper limit of the number of printers that simultaneously print files. Specifically, the computer device can obtain a model file, and if the task waiting queue is empty and the number of printers that are printing files is less than the task synchronization number threshold, the model file is sent to the target printer based on a network connection so that the target printer prints the model file; if the task waiting queue is not empty and the number of printers that are printing files is less than the task synchronization number threshold, the model file is added to the task waiting queue, the head file is obtained from the task waiting queue, and the head file is sent to the target printer based on a network connection so that the target printer prints the head file, wherein the head file refers to the model file at the head of the task waiting queue; if the number of printers that are printing files is greater than or equal to the task synchronization number threshold, the model file is added to the task waiting queue until the number of printers that are printing files is less than the task synchronization number threshold, the head file is obtained from the task waiting queue, and the head file is sent to the target printer based on a network connection so that the target printer prints the head file.
[0100] Optionally, the computer device may display a second printer model, and the second printer model may be the printer model of all target printers that establish a network connection; or, the second printer model may be the printer model corresponding to the model file. Optionally, when the second printer model is the printer model corresponding to the model file, the computer device may obtain the model file, and obtain the second printer model from the model file. Alternatively, the computer device may obtain the model file, obtain the printing parameters corresponding to the model file, and obtain the second printer model that matches the printing parameters. When obtaining the printing parameters corresponding to the model file, the computer device may obtain the printing parameters submitted by the user; or, the computer device may obtain the model file, and obtain the printer parameters from the model file. Further, in response to a selection operation for a target printer model among the second printer models, a second printer corresponding to the target printer model is determined from the target printers, and the model file is sent to the second printer based on the network connection, so that the second printer prints the model file. Optionally, the computer device may respond to the selection operation for the target printer model in the second printer model, obtain the candidate printer corresponding to the target printer model from the target printer; obtain the model consumables corresponding to the model file, obtain the remaining consumables of the candidate printer, and determine the candidate printer whose remaining consumables are greater than the model consumables as the second printer. When the second printer model is the printer model corresponding to the model file, that is, when the second printer model is the first printer model, please refer to Fig. 9 Related description in .
[0101] In an embodiment of the present application, a computer device can respond to a printer search request for a target address network segment, send a detection data packet to the network address included in the target address network segment; obtain a message reply for the detection data packet, and determine the printer address according to the message reply; establish a network connection between the printer address and the target printer corresponding to the target address network segment; the printer includes a target printer; send a model file to the target printer based on the network connection, so that the target printer prints the model file. That is to say, the computer device can actively send a detection data packet to the address network segment, and if it can receive a correct message reply (i.e., a message reply sent by the printer), it can obtain the network address of the printer that sent the standard message reply, thereby realizing active search for the printer. Moreover, this method searches for the printer by the address network segment, and the format and content of the address network segment are relatively simple. The user does not need to enter the specific address of the printer, or even any address, or only needs to enter a simple address network segment to realize the acquisition of the printer address, so that even ordinary users can easily realize the search for the printer based on the address network segment, thereby improving the convenience of printer connection. In addition, the computer device sends a detection data packet to the address segment, so that the network address of the printer deployed in different address segments can be obtained, so that even if the printers are distributed in different subnets, each printer can be found and connected, improving the convenience and reliability of printer management. In simple terms, the computer device actively sends a detection data packet to the port of each network address in the target address segment. If the detection data packet has a correct message reply (i.e., a standard message reply), the computer device can detect the network address of the printer.
[0102] Optionally, when the computer sends the model file to the printer, it can limit the number of printers that can heat the hot bed at the same time. For details, see Figure 7 , Figure 7 This is a flow chart of a method for limiting the hot bed of a printer provided in an embodiment of the present application. Figure 7 As shown, the printer hot bed limitation process includes the following steps:
[0103] Step S701, obtaining a model file, and obtaining the number of the first printer in the target printers.
[0104] In the embodiment of the present application, the first printer refers to a printer in a hot bed heating state. Among them, the printer can eject consumables through the nozzle for superposition to print out the model corresponding to the model file, and the consumables have temperature requirements on the first layer. At this time, the hot bed needs to be heated, and the size of the hot bed is large. Therefore, the power consumption of the printer in the hot bed heating state is different from that in the normal working state. For example, the current maximum power consumption of the P1P model printer in the hot bed heating state is 1000 watts (W), and the current tested power consumption in the normal working state is less than 200W. The number of first printers in the target printer can be obtained. If the number of first printers is less than the synchronous heating number threshold, step S702 is executed; if the number of first printers is greater than or equal to the synchronous heating number threshold, step S703 is executed. Among them, the first printer is used to represent the printer in the hot bed heating state in the target printer, and is used to represent a working state of a printer, rather than a specific printer. By identifying the number of printers in the hot bed heating state and limiting the number of printers in the hot bed heating state, the peak power consumption superposition problem is avoided.
[0105] Specifically, the computer device can obtain the scene power consumption threshold, hot bed heating power consumption threshold and normal working power consumption threshold of the scene where the target printer is deployed, obtain the number of printers of the target printer, and determine the synchronous heating number threshold from the number of printers according to the scene power consumption threshold, hot bed heating power consumption threshold and normal working power consumption threshold. Among them, the hot bed heating power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in the hot bed heating state, such as the hot bed heating power consumption threshold of the P1P model printer cited above is 1000W; the normal working power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in the normal working state, such as the normal working power consumption threshold of the P1P model printer cited above is 200W, and the normal working state refers to the state in which the hot bed is in operation and no hot bed heating is performed. Among them, the scene power consumption threshold is used to indicate the power consumption supported by the scene where the target printer is deployed, for example, the power consumption supported by a power supply system. Optionally, when determining the synchronous heating number threshold, a threshold determination model can be constructed according to the scene power consumption threshold, the hot bed heating power consumption threshold, the normal working power consumption threshold and the number of printers, and the threshold determination model is parsed to obtain the synchronous heating number threshold. For example, the threshold determination model may be “hot bed heating quantity + regular work quantity = printer quantity; hot bed heating quantity * hot bed heating power consumption threshold + regular work quantity * regular work power consumption threshold < scene power consumption threshold”. For example, the hot bed heating quantity is recorded as x, and the regular work quantity is recorded as y, then “x+y=printer quantity; x*hot bed heating power consumption threshold + y*regular work power consumption threshold < scene power consumption threshold”. The threshold determination model is parsed to obtain a value range of the hot bed heating quantity, and the synchronous heating quantity threshold is obtained from the value range of the hot bed heating quantity.
[0106] Alternatively, the computer device may display the hot bed configuration page and obtain the simultaneous heating quantity threshold value uploaded by the hot bed configuration page. Figure 8 , Figure 8 is a schematic diagram of a printer hot bed restriction scenario provided by an embodiment of the present application, such as Figure 8As shown, the computer device can display a hot bed configuration page 801, and display a hot bed synchronization configuration area 803 in the hot bed configuration page 801. Optionally, the device information and printer restriction area 802 can also be displayed in the hot bed configuration page 801, and there is no limitation here. For example, the device information includes the server version, device name, device address and port of the computer device; the printer restriction area 802 is used to obtain the task synchronization quantity threshold, and the task synchronization quantity threshold is used to indicate the upper limit of the number of printers that can execute printing tasks at the same time. For example, the computer device obtains the task synchronization quantity threshold submitted in the printer restriction area 802, "Allow M printers to download files at the same time and start printing step by step", and M is the task synchronization quantity threshold. The computer device can obtain the synchronous heating quantity threshold uploaded by the hot bed synchronization configuration area 803 in the hot bed configuration page 801, such as Figure 8 A shown in , A is a positive integer. Optionally, a hot bed synchronization configuration selection function may be provided in the hot bed configuration page 801, and the hot bed synchronization configuration selection function is used to provide the user with a function of selecting whether to limit the number of printers that heat the hot bed at the same time.
[0107] Optionally, when obtaining the number of first printers in the target printers, the computer device may obtain the working state of the target printer, determine the target printer whose working state is the hot bed heating state as the first printer, and obtain the number of first printers. At this time, the first printer is a printer in the hot bed heating state among the target printers. Alternatively, the first printer may be a printer in the target printers whose printer model is the first printer model and is in the hot bed heating state, and the target printers include printers of at least two models. Specifically, the computer device may obtain the first printer model from the model file, and the first printer is a printer in the target printers whose printer model is the first printer model and is in the hot bed heating state; the computer device may obtain the number of first printers belonging to the same model from the target printers according to the first printer model corresponding to the model file. The first printer model refers to the model of the printer that supports the model file. Further, the computer device may obtain a synchronous heating quantity threshold. Optionally, the synchronous heating quantity thresholds corresponding to different printer models may also be different, and different models of printers correspond to different heating power consumptions; in the same scenario, that is, in the case of the same scenario power consumption threshold, different models correspond to different synchronous heating quantity thresholds. At this time, the computer device can obtain the synchronous heating quantity threshold corresponding to the first printer model.
[0108] Step S702: If the number of the first printers is less than the simultaneous heating number threshold, the model file is sent to the target printer.
[0109] In an embodiment of the present application, if the number of first printers is less than the synchronous heating number threshold, the model file is sent to the printer to be processed in the target printer so that the printer to be processed prints the model file, wherein the printer to be processed is any printer in the target printer that is in an idle state, and the idle state is used to indicate that the corresponding printer has not executed a printing task.
[0110] Step S703, if the number of first printers is greater than or equal to the simultaneous heating number threshold, temporarily stop sending the model file to the target printer until the number of first printers is less than the simultaneous heating number threshold, and then send the model file to the target printer.
[0111] In an embodiment of the present application, if the number of first printers is greater than or equal to the synchronous heating number threshold, the sending of the model file to the target printer is temporarily stopped, for example, the model file is added to the task waiting queue until the number of first printers is less than the synchronous heating number threshold, and the model file is sent to the target printer. Optionally, when the printer is working, it can feedback the working status to the computer device. When the printer ends the heating process of the hot bed, the printer can feedback the hot bed heating end message to the computer. The computer device can update the number of first printers based on the hot bed heating end message. When the number of first printers is less than the synchronous heating number threshold, the model file is obtained from the task waiting queue, and the model file is sent to the pending printer in the target printer, so that the pending printer prints the model file.
[0112] In the embodiment of the present application, the computer device can add a judgment condition in the task scheduler, or add a judgment condition before the printing task is matched and initiated, that is, the number of the first printers is detected, and when the number of the first printers is greater than or equal to the synchronous heating number threshold, the sending of the printing task to the printer is suspended until the restriction is lifted and the printing operation is resumed, that is, the sending of the printing task to the printer is resumed. Through this process, it is possible to avoid excessive peak power consumption, or excessive peak power consumption. For example, taking the P1P model printer as an example, the power consumption of heating the hot bed before printing starts is about 1000W, but in normal printing, only the hot bed / nozzle temperature and the extruder movement need to be maintained, and the actual power consumption is less than 200W. If the user's grid load is 50 kilowatts (KW), the user can only run 50 printers according to the maximum power consumption, but according to the power consumption in normal printing, the user can theoretically run about 250 printers, and the number of printers that heat the hot bed at the same time can be limited to achieve work control of the printer, thereby saving the user's investment in power supply load equipment and improving power supply security.
[0113] Optionally, the computer device can directly match the printer model based on the model file when sending the model file to the printer. For details, see Fig. 9 , Fig. 9 It is a flow chart of a method for printer model processing provided in an embodiment of the present application.
[0114] like Fig. 9 As shown, the printer model processing process includes the following steps:
[0115] Step S901, obtaining a model file, obtaining a first printer model corresponding to the model file, and displaying the first printer model.
[0116] In the embodiment of the present application, the computer device can obtain the model file, obtain the first printer model from the model file, or obtain the printer parameters from the model file, the printer parameters may include but are not limited to printing temperature, model size and hot bed information, etc.; the first printer model matching the printer parameters can be obtained. Further, the first printer model can be displayed. Among them, which printer models the model file is adapted to can be obtained through the relevant information in the model file such as 3mf or gcode. For example, see Fig.10 , Fig.10 is a schematic diagram of a model matching scenario provided in an embodiment of the present application, such as Fig.10 As shown, the computer device can respond to the model file upload operation and display the model file uploaded by the model file upload operation in the file management page 1001 (such as Fig.10 The model file 1.3mf shown in the figure displays file information 1002, which includes the first printer model and printer parameters to which the model file is adapted, and the printer parameters include but are not limited to nozzle information and hot bed information, etc. Optionally, the printing time, consumables information, upload time and task creation component 1003 of the model file can also be displayed in the file management page 1001.
[0117] Further, the computer device may send the model file to a printer whose printer model is a first printer model in the target printer, so that the printer prints the model file. Optionally, the number of the first printer model may be one (eg, Fig.10 The printer model corresponding to the model file 1.3mf listed in the example) or at least two (such as Fig.10The computer device may send the model file to the target printer, and the printer model is the printer of the first printer model. When the number of the first printer models is at least two, the computer device may send the model file to the target printer, and the printer model is any one of the first printer models; or, step S902 may be executed.
[0118] For example, you can Fig.10 As shown, the task creation operation may include a trigger operation for the task creation component 1003, and the computer device may generate a print task for the model file in response to the trigger operation for the task creation component 1003. Optionally, when the number of the first printer models is at least two, the task creation operation may also include a selection operation for a target printer model among the first printer models, and step S902 may be executed.
[0119] Step S902, in response to the selection operation for the target printer model in the first printer model, determining a second printer corresponding to the target printer model from the target printers, and sending the model file to the second printer.
[0120] In an embodiment of the present application, the computer device can respond to the selection operation for the target printer model in the first printer model, determine the second printer corresponding to the target printer model from the target printers, and send the model file to the second printer based on the network connection. Alternatively, the task creation operation can include the selection operation for the target printer model in the first printer model and the trigger operation for the task creation component. The computer device can respond to the selection operation for the target printer model in the first printer model and the trigger operation for the task creation component, determine the second printer corresponding to the target printer model from the target printers, and send the model file to the second printer.
[0121] When determining the second printer corresponding to the target printer model from the target printers, a printer whose printer model is the target printer model and is in an idle state can be determined as the second printer. Alternatively, a candidate printer corresponding to the target printer model can be obtained from the target printer; the model consumables corresponding to the model file can be obtained, the remaining consumables of the candidate printer can be obtained, and the candidate printer whose remaining consumables are greater than the model consumables can be determined as the second printer.
[0122] In an embodiment of the present application, when a computer device obtains a model file, it can filter the printer used to print the model file based on the model adaptation information of the model file (i.e., relevant information of the first printer model that matches the printer parameters), so that the printer models that the user can select for the model file are all models that are adapted to the model file, thereby automatically matching the executable printer for the model file, thereby improving the processing efficiency and convenience of the printing task.
[0123] Furthermore, in Figure 3 In the embodiment shown, the number of printers that heat the hot bed at the same time is limited, and the printer model is matched based on the model file. For details, see Fig.11 , Fig.11 This is a flow chart of a method for printer processing provided by an embodiment of the present application. Fig.11 As shown, the printer management process includes the following steps:
[0124] Step S1101, in response to a printer search request for a target address network segment, a detection data packet is sent to a network address included in the target address network segment.
[0125] In the embodiment of the present application, this process can be referred to Figure 3 The relevant description of step S301 is not repeated here.
[0126] Step S1102, obtaining a message reply to the detection data packet, and determining the printer address according to the message reply.
[0127] In the embodiment of the present application, the process can be referred to as Figure 3 The relevant description of step S302 is not repeated here.
[0128] Step S1103, based on the printer address, a network connection is established with a target printer corresponding to the target address network segment; the printer includes the target printer.
[0129] In the embodiment of the present application, the process can be referred to as Figure 3 The relevant description of step S303 is not repeated here.
[0130] Step S1104, obtaining a model file, and determining a first printer model corresponding to the model file.
[0131] In the embodiment of the present application, the computer device can obtain the model file and obtain the first printer model from the model file; or, the computer device can obtain the printer parameters in the model file and determine the first printer model corresponding to the model file based on the printer parameters. The process of obtaining the first printer model can be referred to in Fig. 9The process of obtaining the first printer model in the Fig. 9 The relevant description in will not be repeated here.
[0132] Step S1105 : Based on the number of first printers in the target printers, the model file is sent to the printers of the first printer model in the target printers.
[0133] In an embodiment of the present application, the computer device can obtain the number of first printers in the target printers. If the number of first printers is less than the synchronous heating number threshold, the model file is sent to the target printer based on the network connection, and the printer model is the first printer model; if the number of first printers is greater than or equal to the synchronous heating number threshold, the model file is temporarily stopped from being sent to the target printer based on the network connection until the number of first printers is less than the synchronous heating number threshold, and the printer model is the first printer model in the target printer based on the network connection. Specifically, the process can be performed by Figure 7 The relevant description in will not be repeated here.
[0134] Among them, the functions implemented by this application can be provided to customers as group control software or services for printers, and customers can install the group control software or services for printers in their own computer equipment (such as servers or other electronic devices, etc.).
[0135] In some feasible implementations, the computer device can directly limit the number of printers that heat the hot bed at the same time without performing an IP network segment search. For example, in some small and medium-sized farms, there are not many network segments where printers are located, and the scene power consumption threshold is limited. In this case, the computer device can directly perform a combined Figure 7 In the described embodiment, the printers are printed in batches. Optionally, in some feasible implementations, the computer device can directly filter according to the printer model, that is, for some farms with multiple models, the model files can be received according to different models, without performing IP segment search. In this case, the computer device can directly perform the combined Fig. 9 Described embodiments.
[0136] See also Fig.12 , Fig.12 Schematic diagram of a printer management device provided in an embodiment of the present application. The printer management device may be a computer program (including program code, etc.) running in a computer device, for example, the printer management device may be an application software; the printer management device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Fig.12 As shown, the printer management device 1200 can be used to Figure 3The computer device in the corresponding embodiment, specifically, the printer management device 1200 may include: a data sending module 11 , an address determining module 12 , a printing connection module 13 and a file sending module 14 .
[0137] The data sending module 11 is used to respond to the printer search request for the target address network segment and send a detection data packet to the network address included in the target address network segment;
[0138] The address determination module 12 is used to obtain a message reply to the detection data packet and determine the printer address according to the message reply; the printer address corresponds to the printer one by one;
[0139] The printing connection module 13 is used to establish a network connection with a target printer corresponding to a target address network segment based on the printer address; the printer includes the target printer;
[0140] The file sending module 14 is used to send the model file to the target printer based on the network connection.
[0141] Wherein, the target address network segment includes P subnet segments; P is a positive integer;
[0142] The data sending module 11 can be used for:
[0143] In response to a printer search request for a target address network segment, obtain network addresses respectively included in P subnet network segments in the target address network segment;
[0144] Send detection packets to the network addresses included in each subnet segment.
[0145] The printer management device 1200 further includes:
[0146] The printing configuration module 15 is used to obtain N available address segments, each of which is associated with a first search component; N is a positive integer, and the N address segments include a target address segment; each first search component is used to trigger a printer search request for the address segment associated with the first search component.
[0147] The printer management device 1200 further includes:
[0148] The printing configuration module 15 is also used to display a network segment input area, which is associated with a second search component; the network segment input area is used to obtain a target address network segment, and the second search component is used to trigger a printer search request for the target address network segment obtained by the network segment input area.
[0149] The printer management device 1200 further includes:
[0150] The printing configuration module 15 is also used to display a network segment selection component, and the network segment selection component is associated with a third search component;
[0151] The data sending module 11 can be used for:
[0152] In response to a trigger operation on a network segment selection component, N available address network segments are displayed; N is a positive integer;
[0153] In response to a selection operation on a target address segment among N address segments and a trigger operation on a third search component, a detection data packet is sent to the network address included in the target address segment; the selection operation on the target address segment among N address segments and the trigger operation on the third search component are used to trigger a printer search request for the target address segment.
[0154] The address determination module 12 may be used to:
[0155] Obtain a message reply to the detection data packet, obtain a printer message format, and determine the network address that sends the message reply that conforms to the printer message format as the printer address; or,
[0156] A message reply to the detection data packet is obtained, and the network address of sending the message reply is determined as the printer address; the detection data packet is a message message requesting a reply from the printer.
[0157] The printer search request for the target address segment includes a printer search request for a first range; the first range refers to a range belonging to the same subnet segment as the computer device; the target address segment is the subnet segment to which the device address of the computer device belongs.
[0158] The file sending module 14 may be used to:
[0159] Get the number of the first printer in the target printer; the first printer refers to the printer in the hot bed heating state;
[0160] If the number of the first printers is less than the synchronous heating number threshold, the model file is sent to the target printer based on the network connection; the synchronous heating number threshold is used to indicate the upper limit of the number of printers that can synchronously heat the hot bed;
[0161] If the number of first printers is greater than or equal to the synchronous heating number threshold, the sending of the model file to the target printer is temporarily stopped until the number of first printers is less than the synchronous heating number threshold, and the model file is sent to the target printer based on the network connection.
[0162] The printer management device 1200 further includes:
[0163] The threshold determination module 16 is used to obtain a scenario power consumption threshold, a hot bed heating power consumption threshold, and a normal working power consumption threshold of a scenario in which a target printer is deployed, obtain the number of target printers, and determine a synchronous heating number threshold from the number of printers according to the scenario power consumption threshold, the hot bed heating power consumption threshold, and the normal working power consumption threshold; the hot bed heating power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in a hot bed heating state; the normal working power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in a normal working state, and the normal working state refers to a state in which the printer is in operation and no hot bed heating is performed.
[0164] The printer management device 1200 further includes:
[0165] The threshold determination module 16 is further used to display the hot bed configuration page and obtain the synchronous heating quantity threshold uploaded by the hot bed configuration page.
[0166] The first printer is a printer in the target printer, the printer model is the first printer model and is in a hot bed heating state; the target printer includes at least two printer models; when obtaining the number of the first printer in the target printer, the file sending module 14 can be used to:
[0167] According to the first printer model corresponding to the model file, the number of first printers belonging to the same model is obtained from the target printers.
[0168] The file sending module 14 can be used for:
[0169] Display the second printer model;
[0170] In response to a selection operation for a target printer model among the second printer models, a second printer corresponding to the target printer model is determined from the target printers, and a model file is sent to the second printer based on a network connection.
[0171] The printer management device 1200 further includes:
[0172] The model acquisition module 17 is used to acquire a model file, and acquire the second printer model from the model file.
[0173] In response to the selection operation for the target printer model in the second printer models, when determining the second printer corresponding to the target printer model from the target printers, the file sending module 14 can be used to:
[0174] In response to a selection operation on a target printer model in the second printer models, acquiring a candidate printer corresponding to the target printer model from the target printers;
[0175] The model consumables corresponding to the model file are obtained, the remaining consumables of the candidate printers are obtained, and the candidate printer whose remaining consumables are greater than the model consumables is determined as the second printer.
[0176] The embodiment of the present application provides a printer management device, which can respond to a printer search request for a target address network segment, send a detection data packet to the network address included in the target address network segment; determine the network address corresponding to the standard message reply received for the detection data packet as the printer address; the standard message reply is used to indicate a message belonging to the printer; a network connection is established between the printer address and the target printer corresponding to the target address network segment; the printer includes a target printer; the network connection is used to send a model file to the target printer so that the target printer prints the model file. In other words, the computer device can actively send a detection data packet to the address network segment, and if it can receive a correct message reply (i.e., a standard message reply), it can obtain the network address of the printer that sent the standard message reply, thereby realizing active search for the printer. Moreover, this method searches for the printer based on the address network segment, and the format and content of the address network segment are relatively simple, so even ordinary users can easily realize the search for the printer based on the address network segment, thereby improving the convenience of printer connection. In addition, by sending detection data packets to the address network segment, the network addresses of printers deployed in different address network segments can be obtained. Therefore, even if the printers are distributed in different subnets, each printer can be found and connected, improving the convenience and reliability of printer management.
[0177] See also Fig.13 , Fig.13 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.13 As shown, the computer device in the embodiment of the present application may include: one or more processors 1301, a memory 1302, and an input / output interface 1303. The processor 1301, the memory 1302, and the input / output interface 1303 are connected via a bus 1304. The memory 1302 is used to store a computer program, which includes program instructions. The input / output interface 1303 is used to receive and output data, such as for data exchange between the computer device and the printer; the processor 1301 is used to execute the program instructions stored in the memory 1302.
[0178] The processor 1301 may perform the following operations:
[0179] In response to a printer search request for a target address network segment, a detection data packet is sent to a network address included in the target address network segment;
[0180] Obtain a message reply to the detection data packet, and determine the printer address according to the message reply; the printer address corresponds to the printer one by one;
[0181] Based on the printer address, a network connection is established with a target printer corresponding to the target address network segment; the printer includes the target printer;
[0182] Send the model file to the target printer based on the network connection.
[0183] In some feasible implementations, the processor 1301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0184] The memory 1302 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1301 and the input / output interface 1303. A portion of the memory 1302 may also include a non-volatile random access memory. For example, the memory 1302 may also store information about the device type.
[0185] In a specific implementation, the computer device can execute the following operations through its built-in functional modules: Figure 3 For details on the implementation methods provided in each step, please refer to the Figure 3 The implementation methods provided in each step will not be repeated here.
[0186] The embodiment of the present application provides a computer device, including: a processor, an input / output interface, and a memory, wherein the processor obtains a computer program in the memory and executes the computer program. Figure 3The printer management operation is performed by following the steps of the method shown in . The embodiment of the present application realizes responding to a printer search request for a target address network segment, sending a detection data packet to the network address included in the target address network segment; obtaining a message reply for the detection data packet, and determining the printer address according to the message reply; the printer address corresponds to the printer one-to-one; based on the printer address, a network connection is established between the target printer corresponding to the target address network segment; the printer includes a target printer; based on the network connection, a model file is sent to the target printer so that the target printer prints the model file. That is to say, the computer device can actively send a detection data packet to the address network segment. If a correct message reply (i.e., a standard message reply) is received, the network address of the printer that sent the standard message reply can be obtained, thereby realizing active search for the printer. Moreover, this method searches for the printer based on the address network segment, and the format and content of the address network segment are relatively simple. Even ordinary users can easily realize the search for the printer based on the address network segment, thereby improving the convenience of printer connection. In addition, by sending detection data packets to the address network segment, the network addresses of printers deployed in different address network segments can be obtained. Therefore, even if the printers are distributed in different subnets, each printer can be found and connected, improving the convenience and reliability of printer management.
[0187] The present application also provides a computer-readable storage medium storing a computer program suitable for being loaded and executed by the processor. Figure 3 For details on the printer management methods provided in each step, please refer to the Figure 3 The implementation methods provided in each step are not repeated here. In addition, the description of the beneficial effects of adopting the same method is not repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the computer program can be deployed to execute on one computer device, or on multiple computer devices located in one place, or on multiple computer devices distributed in multiple locations and interconnected by a communication network.
[0188] The computer-readable storage medium may be the printer management device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0189] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 3 The method provided in the various optional methods in the method realizes that by actively sending a detection data packet to the address network segment, if a correct message reply (i.e., a standard message reply) can be received, the network address of the printer that sent the standard message reply can be obtained, thereby realizing active search for the printer. Moreover, this method searches for the printer based on the address network segment, and the format and content of the address network segment are relatively simple, so even ordinary users can easily search for the printer based on the address network segment, thereby improving the convenience of printer connection. In addition, by sending a detection data packet to the address network segment by the computer device, the network address of the printer deployed in different address network segments can be obtained, so that even if the printers are distributed in different subnets, each printer can be searched and connected, thereby improving the convenience and reliability of printer management.
[0190] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0191] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in this description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0192] The method and related apparatus provided by the embodiment of the present application are described with reference to the method flow chart and / or structural diagram provided by the embodiment of the present application. Specifically, each process and / or box in the method flow chart and / or structural diagram, as well as the combination of the processes and / or boxes in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable printer management device to generate a machine, so that the instructions executed by the processor of the computer or other programmable printer management device generate instructions for implementing the process in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable printer management device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable printer management device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A flow or multiple flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.
[0193] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0194] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0195] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A printer management method, characterized in that: The method comprises: In response to a printer search request for a target address network segment, a detection data packet is sent to a network address included in the target address network segment; Obtaining a message reply to the detection data packet, and determining a printer address according to the message reply; the printer address corresponds to the printer one-to-one; Based on the printer address, a network connection is established with a target printer corresponding to the target address network segment; the printer includes the target printer; A model file is sent to the target printer based on the network connection.
2. The method according to claim 1, characterized in that The target address network segment includes P subnet segments; P is a positive integer; The step of responding to a printer search request for a target address network segment and sending a detection data packet to a network address included in the target address network segment includes: In response to a printer search request for a target address network segment, obtain network addresses respectively included in P subnet network segments in the target address network segment; Send detection packets to the network addresses included in each subnet segment.
3. The method according to claim 1, characterized in that The method further comprises: Obtain N available address segments, each of which is associated with a first search component; N is a positive integer, and the N address segments include the target address segment; each first search component is used to trigger a printer search request for the address segment associated with the first search component.
4. The method according to claim 1, characterized in that: The method further comprises: Displaying a network segment input area, wherein the network segment input area is associated with a second search component; The network segment input area is used to obtain the target address network segment, and the second search component is used to trigger a printer search request for the target address network segment obtained by the network segment input area.
5. The method according to claim 1, characterized in that The method further comprises: Display a network segment selection component, wherein the network segment selection component is associated with a third search component; The step of responding to a printer search request for a target address network segment and sending a detection data packet to a network address included in the target address network segment includes: In response to a trigger operation on the network segment selection component, N available address network segments are displayed; N is a positive integer; In response to a selection operation on a target address segment among the N address segments and a trigger operation on the third search component, a detection data packet is sent to the network address included in the target address segment; the selection operation on the target address segment among the N address segments and the trigger operation on the third search component are used to trigger a printer search request for the target address segment.
6. The method according to claim 1, characterized in that The obtaining of a message reply to the detection data packet and determining the printer address according to the message reply includes: Obtaining a message reply to the detection data packet, obtaining a printer message format, and determining a network address that sends a message reply that conforms to the printer message format as a printer address; or, A message reply to the detection data packet is obtained, and a network address for sending the message reply is determined as a printer address; the detection data packet is a message message for requesting a reply from the printer.
7. The method according to claim 1, characterized in that The method is executed by a computer device, and the printer search request for the target address segment includes a printer search request for a first range; the first range refers to a range belonging to the same subnet segment as the computer device; the target address segment is the subnet segment to which the device address of the computer device belongs.
8. The method according to claim 1, characterized in that: The method further comprises: Obtaining the number of the first printer in the target printer; the first printer refers to a printer in a hot bed heating state; If the number of the first printers is less than the simultaneous heating number threshold, sending the model file to the target printer based on the network connection; the simultaneous heating number threshold is used to indicate the upper limit of the number of printers that can simultaneously heat the hot bed; If the number of the first printers is greater than or equal to the synchronous heating number threshold, the model file is temporarily stopped from being sent to the target printer until the number of the first printers is less than the synchronous heating number threshold, and then the model file is sent to the target printer based on the network connection.
9. The method according to claim 8, characterized in that The method further comprises: The scenario power consumption threshold, the hot bed heating power consumption threshold and the normal working power consumption threshold of the scenario in which the target printer is deployed are obtained, the number of the target printers is obtained, and the synchronous heating number threshold is determined according to the scenario power consumption threshold, the hot bed heating power consumption threshold and the normal working power consumption threshold; the hot bed heating power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in the hot bed heating state; the normal working power consumption threshold is used to indicate the maximum power consumption of the target printer when it is in the normal working state, and the normal working state refers to a state in which the printer is in operation and hot bed heating is not performed.
10. The method according to claim 8, characterized in that The method further comprises: The hot bed configuration page is displayed, and the synchronous heating quantity threshold value uploaded by the hot bed configuration page is obtained.
11. The method according to claim 8, characterized in that The first printer is a printer among the target printers, the printer model of which is the first printer model and is in a hot bed heating state; The target printers include at least two models of printers; The obtaining the number of the first printer in the target printers includes: According to the first printer model corresponding to the model file, the number of first printers belonging to the same model is obtained from the target printers.
12. The method according to claim 1, characterized in that The sending the model file to the target printer based on the network connection includes: Display the second printer model; In response to a selection operation for a target printer model among the second printer models, a second printer corresponding to the target printer model is determined from among the target printers, and the model file is sent to the second printer based on the network connection.
13. The method according to claim 12, characterized in that The method further comprises: The model file is obtained, and the second printer model is obtained from the model file.
14. The method according to claim 12, characterized in that In response to the selection operation of the target printer model in the second printer models, determining the second printer corresponding to the target printer model from the target printers includes: In response to a selection operation on a target printer model among the second printer models, acquiring a candidate printer corresponding to the target printer model from the target printers; The model consumables corresponding to the model file are obtained, the remaining consumables of the candidate printer are obtained, and the candidate printer whose remaining consumables are greater than the model consumables is determined as the second printer.
15. A computer device, characterized in that: Includes processor, memory, input and output interfaces; The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used to receive and output data, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method described in any one of claims 1-14.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 14.
17. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the method according to any one of claims 1 to 14 is implemented.
Citation Information
Cited By
Printer management method, computer device, storage medium and program product
WO2026092098A1