Shared printing method, server and system of industrial internet
By adding print server identification information that matches the user identity information in the print message, shared printing is achieved, which solves the problems of high printer equipment cost and difficulty in maintenance, expands the scope of printing application and reduces the management burden.
Patent Information
- Application Number
- CN202211352191.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-10-31
AI Technical Summary
Existing printers and production management systems cannot meet the business needs of different production and printing scenarios, resulting in high equipment costs, difficult maintenance, and high labor costs.
By adding the identification information of the print server that matches the user's identity information to the print message and binding it and sending it to the production network, shared printing is achieved, decoupling the production server and printer, and meeting the printing needs of different environments.
It reduces printer asset investment, expands the scope of printing applications, and reduces the burden of printing management.
Smart Images

Figure CN115904275B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of computer technology, and particularly relates to a shared printing method, a server and a system of industrial internet. BACKGROUND
[0002] Industrial Internet is an important cornerstone of the fourth industrial revolution. In the application of industrial internet, online systems need to be matched with actual production, so it is necessary to print some data or multiple data online for actual production circulation. Due to the fact that data sources are diverse, closely related to real-time business, printing information contains multiple interrelated data, data accuracy requirements are high, data formats vary greatly, and other reasons, the original manual setting of printing style, printing data, printing parameters and the like are gradually replaced by production management systems.
[0003] However, as the production scale expands and the use scenarios increase, the original mode of one-to-one correspondence between printing business requirements and printers cannot meet the business requirements of different production scenarios and printing scenarios. SUMMARY
[0004] Therefore, the purpose of the present disclosure is to provide a shared printing method, a server and a system of industrial internet.
[0005] To achieve the above purpose, in a first aspect, the present disclosure provides a shared printing method of industrial internet, applied to a production server, the method comprising:
[0006] obtaining a printing request of a user;
[0007] determining identification information of a matched printing server according to identity information of the user; determining printing information according to the printing request;
[0008] binding the printing information and the identification information to form a printing message, and sending the printing message to a production network comprising at least one printing server.
[0009] In a second aspect, the present disclosure provides a shared printing method of industrial internet, applied to a printing server, the method comprising:
[0010] listening to a printing message queue; the printing message queue comprises at least one printing message;
[0011] obtaining printing information of the printing message in response to identification information in the printing message corresponding to identification information of the printing server; wherein the printing information comprises attribute values corresponding to a printing template and a printing variable;
[0012] convert attribute values corresponding to the print template and the print variable in the print information into a print language, and send the print language to a printer corresponding to the print server.
[0013] In a third aspect, the disclosure also provides a production server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the shared printing method according to any one of the preceding aspects when executing the program.
[0014] In a fourth aspect, the disclosure also provides a print server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the shared printing method according to any one of the preceding aspects when executing the program.
[0015] In a fifth aspect, the disclosure also provides a shared printing system of an industrial internet, comprising a production server and a print server, wherein the production server is configured to:
[0016] obtain a print request of a user;
[0017] determine identification information of a matched print server according to the identity information of the user, and determine print information according to the print request;
[0018] bind the print information and the identification information to form a print message, and send the print message to a production network comprising at least one print server;
[0019] The print server is configured to:
[0020] listen to a print message queue; the print message queue comprises at least one print message;
[0021] obtain print information of the print message in response to the identification information in the print message corresponding to the identification information of the print server; wherein the print information comprises attribute values corresponding to a print template and a print variable;
[0022] convert attribute values corresponding to the print template and the print variable in the print information into a print language, and send the print language to a printer corresponding to the print server.
[0023] From the above, it can be seen that the shared printing method, server and system of the industrial Internet provided by the present disclosure, by adding the identification information of the printing server that matches the user's identity information in the printing message, and binding the identification information and printing information and sending them to the production network, is conducive to the printing server corresponding to the identification information to obtain the printing information to realize shared printing, decouple the production server and printer, meet the printing needs of different environments, reduce printer asset investment, increase the scope of application of printing, and reduce the burden of printing management. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 A schematic diagram of the structure of a production management system provided by an embodiment of the present disclosure;
[0026] Figure 2 A schematic diagram of the structure of a shared printing system provided in an embodiment of the present disclosure;
[0027] Figure 3 A schematic diagram of a shared printing process provided by an embodiment of the present disclosure;
[0028] Figure 4A A schematic diagram of an operation interface for shared printing provided in an embodiment of the present disclosure;
[0029] Figure 4B A schematic diagram of displaying location information for shared printing provided by an embodiment of the present disclosure;
[0030] Figure 4C A schematic diagram of the structure of a printing template provided in an embodiment of the present disclosure;
[0031] Figure 4D A schematic diagram of another structure of an operation interface for shared printing provided in an embodiment of the present disclosure;
[0032] Figure 5 A schematic diagram of a work flow of a print server provided in an embodiment of the present disclosure;
[0033] Figure 6 A schematic diagram of a shared printing method provided in an embodiment of the present disclosure;
[0034] Figure 7 Another workflow diagram of a shared printing method provided by an embodiment of the present disclosure;
[0035] Figure 8 A structural schematic diagram of an electronic device is provided for the embodiments of the present disclosure. DETAILED DESCRIPTION
[0036] For the purposes of the present disclosure, the technical solutions and advantages will be more clearly apparent, the present disclosure is further described in detail below with reference to specific embodiments and with reference to the accompanying drawings.
[0037] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood as the usual meaning understood by those skilled in the art to which the present disclosure belongs. The terms "first", "second", and similar terms used in the embodiments of the present disclosure do not represent any order, number, or importance, but are only used to distinguish different components. The terms "include" or "contain" and similar terms mean that the elements or objects before the terms cover the elements or objects listed after the terms and their equivalents, and do not exclude other elements or objects. The terms "connect" or "connected" and similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.
[0038] With the continuous advancement of industrial internet, the continuous refinement and standardization of production processes, the contact between production management systems and production processes is gradually close, and the data management generated by production management needs to be converted into actual production flow vouchers to be printed out. This process involves various aspects of production and is distributed in different corners of the production workshop. In actual production, it is impossible to meet the demand of configuring relevant printers in each production environment.
[0039] Specifically, referring to Figure 1 which is a partial structural schematic diagram of a production management system 100 provided by the embodiments of the present disclosure. The production management system 100 includes a plurality of production servers, which are distributed at different locations in different production workshops. If a printer is configured for each production server, there is a large equipment cost. Moreover, due to the large number of printers and wide distribution, the difficulty of later maintenance is high, and the labor cost is high.
[0040] In view of this, the present disclosure provides a shared printing method, server and system for industrial internet. By adding identification information of a printing server matched with the identity information of a user in a printing message, and sending the identification information and printing information to a production network after binding, the printing server corresponding to the identification information can obtain the printing information and send it to the corresponding printer, so as to realize shared printing, decouple the production server and the printer, meet the printing needs of different environments, reduce the investment in printer assets, improve the application range of printing, and reduce the burden of printing management.
[0041] Referring to Figure 2Fig. 1 shows a partial structural schematic diagram of a shared printing system 200 provided by an embodiment of the present disclosure. The shared printing system 200 comprises a production server, a printing server and a printer. Generally, the number of production servers is greater than the number of printing servers. The production server and the printing server can communicate with each other, for example, the production server sends a printing message to the printing server, and the printing server feeds back a printing result to the production server. For a specific communication mode, a wired network or a wireless network can be used, which is not limited here. The printing server and the printer can communicate with each other, for example, the printing server sends a printing information to the printer, and the printer feeds back its own state to the printing server, such as paper shortage. Optionally, the printing server and the printer are configured to be one-to-one.
[0042] Here, the printer can be a label printer (such as a metal shell barcode printer), a general printer, which is not limited here.
[0043] The shared printing system 200 can perform a shared printing method as shown in Fig. 2. First, the identity information of the user can be bound to the identification information of the printing server 400. Here, those skilled in the art can understand that the binding can be operated by the production server 300. Then, the user can operate the production server 300 to set the printing template and the printing content. The production server 300 can generate a printing message according to the printing template, the printing content and the identity information of the user and send it to the network where the printing server 400 is located. The printing server 400 listens to the printing message. If the identification information contained in the title of the printing message corresponds to the identification information of the printing server 400 itself, the printing server 400 receives the printing information, converts it into a printing language and sends it to the printer 500 to realize the printing requirement of the user. Figure 3
[0044] Hereinafter, the shared printing method provided by an embodiment of the present disclosure will be described in detail in combination with Figures 4A-7
[0045] An embodiment of the present disclosure provides a shared printing method performed by a production server in an industrial internet. As shown in Fig. 2, the method comprises: Figure 6
[0046] Step S701: binding the identity information of the user and the identification information of the printing server.
[0047] Here, the identity information can be at least one of the identity document information (such as an ID card, a work card) of the user, the electronic identity information (a nickname, an email account) of the user, and the biometric characteristics (such as a fingerprint, an iris, etc.) of the user.
[0048] Here, the identification information can be at least one of the IP address and the serial number of the printing server.
[0049] In some embodiments, the administrator enters the identity information of the user and the identification information of the print server in an interface as shown in Figure 4A illustrated in FIG. 6A, and responds to the administrator determination instruction, i.e., implements the binding. It should be noted that the administrator knows the production location information of the user and the identification information of the corresponding print server.
[0050] In some alternative embodiments, the step of binding the identity information of the user and the identification information of the print server comprises: obtaining the identity information of the user and the production location information.
[0051] Optionally, the production location information can be obtained through the identification information box 601 (as shown in Figure 4A ). Illustratively, in response to triggering the production location indication 602, the production location information box 603 is shown (as shown in Figure 4B ). The administrator can input the production location information according to the prompt of the production location information box 603.
[0052] Optionally, the production location information comprises one or more of a production workshop, a production floor and a production area.
[0053] For example, the first user works in the first production workshop, the first production floor and the first production area, and the administrator can select step by step.
[0054] For example, the second user works in the second production workshop, and only the second production workshop needs to be selected.
[0055] According to the production location information, a matching print server is searched and the identification information of the print server is obtained; here, the specific way of searching the print server and obtaining the identification information is not limited. For example, the print server in a certain production location and its identification information can be pre-stored in an information table, and the function can be realized by directly querying the information table. Those skilled in the art can also use other technical solutions to realize the function.
[0056] The identity information is bound with the identification information.
[0057] In this way, the identity information of the user is bound with the identification information, which can enable the print server to obtain the print request belonging to it based on the identification information in the printing process, and also facilitates the user to obtain the printed material printed at the corresponding printer of the print server.
[0058] Step S703: obtaining a print request of the user.
[0059] In some embodiments, the step of obtaining the print request of the user specifically comprises: in response to the user triggering a configuration request, showing a corresponding print template; here,Figure 4C A structure diagram of a print template is shown.
[0060] A configuration operation of a user on a print variable in the print template is received; exemplary, the print variable can include quantity, batch number, etc., which are not listed here.
[0061] In response to the user determining a print target, the print request is formed. For example, as shown, the user selects the print transfer card number 1 for transfer card printing, and the production server forms a corresponding print request. Optionally, the print request includes the print template, the print variable, and the print target. Figure 4D
[0062] Step S705: determining the identification information of the matched print server according to the identity information of the user; and determining the print information according to the print request.
[0063] In some embodiments, the print request includes the print target and at least one print variable; and the step of determining the print information according to the print request specifically includes:
[0064] In response to the print variable being a first production attribute, a first data table is matched and an attribute value corresponding to the first production attribute is obtained based on the print target.
[0065] Here, the first production attribute can be an attribute of the print target, such as a transfer card number, a start time, a completion time, etc. Optionally, the print target is directly recorded in the first data table, and thus the attribute value of the first production attribute can be directly obtained.
[0066] In response to the print variable being a second production attribute, a second data table is matched and an attribute value corresponding to the second production attribute is obtained based on the print target; wherein the first data table and the second data table correspond to different types of production attributes.
[0067] Here, the second production attribute can be an attribute associated with the print target, such as a material code, a drawing number, etc. Optionally, the second production attribute and the attribute of the print target are recorded in different data tables, such as the second data table.
[0068] Step S707: binding the print information and the identification information to form a print message, and sending the print message to a production network including at least one print server.
[0069] In some embodiments, the step of binding the print information and the identification information to form a print message specifically includes:
[0070] Packaging the print information as the message content of the print message; and taking the identification information as the message title of the print message.
[0071] The identification information is taken as a message title of the print message, so as to facilitate the print server 400 to monitor the print message and quickly determine the print task corresponding to the print message.
[0072] Next, as shown in Figure 5 and Figure 7 The present disclosure also provides a shared printing method of an industrial internet, which is performed by a print server. Specifically, the method comprises the following steps.
[0073] Step S801: monitoring a print message queue; the print message queue comprises at least one print message (as shown in Figure 5 It is understood by those skilled in the art that the print message is formed by the aforementioned step S707 and sent to the production network.
[0074] As described above, the print message comprises a message title; the message title comprises identification information.
[0075] In some embodiments, the step of monitoring the print message queue specifically comprises the following steps.
[0076] Obtaining the message title of the print message, and comparing the identification information of the message title with the identification information of the print server.
[0077] The identification information in the print message is determined by the identification information of the print server which is bound to the identity information of the user.
[0078] Here, the identification information comprises at least one of the IP address and the serial number of the print server.
[0079] For example, the identification information of the message title is the IP address, and the IP address is compared with the IP address of the print server.
[0080] For example, the identification information of the message title is the serial number, and the serial number is compared with the serial number of the print server.
[0081] Step S803: in response to the identification information in the print message corresponding to the identification information of the print server, obtaining print information of the print message; the print information comprises attribute values corresponding to the print template and the print variable. Optionally, the print information further comprises the print variable.
[0082] Step S805: converting the attribute values corresponding to the print template and the print variable in the print information into a print language, and sending the print language to a printer corresponding to the print server.
[0083] Optionally, the printing message is monitored based on an EMQX. Here, the EMQX (Erlang / Enterprise / Elastic MQTT Broker) is an open source Internet of Things MQTT message server developed based on an Erlang / OTP platform. Among them, the Message Queuing Telemetry Transport (MQTT for short) is a lightweight Internet of Things message protocol in a PubSub mode.
[0084] Optionally, the printing language can be a Zebra Programming Language (ZPL for short).
[0085] In some embodiments, the method further comprises:
[0086] communicating with a corresponding printer;
[0087] In response to successful communication with the printer, sending the printing information to the printer.
[0088] By communication, the state of the printer is checked, which is conducive to ensuring that printing is carried out normally.
[0089] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the above embodiments and still achieve the desired result. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multi-task processing and parallel processing are possible or can be advantageous.
[0090] The present disclosure provides a shared printing method of an industrial internet, applied to a production server, the method comprising:
[0091] Obtaining a printing request of a user;
[0092] Determining identification information of a matched printing server according to identity information of the user; determining printing information according to the printing request;
[0093] Binding the printing information and the identification information to form a printing message, and sending the printing message to a production network comprising at least one printing server.
[0094] In some embodiments, the printing request comprises a printing target and at least one printing variable;
[0095] The step of determining the print information according to the print request specifically comprises:
[0096] In response to the print variable being a first production attribute, matching a first data table and obtaining an attribute value corresponding to the first production attribute based on the print target;
[0097] In response to the print variable being a second production attribute, matching a second data table and obtaining an attribute value corresponding to the second production attribute based on the print target; wherein the first data table and the second data table correspond to different types of production attributes.
[0098] In some embodiments, the identification information includes at least one of an IP address and a serial number of the print server.
[0099] In some embodiments, the step of binding the print information and the identification information to form a print message specifically comprises:
[0100] Encapsulating the print information as message content of a print message;
[0101] Taking the identification information as a message header of a print message.
[0102] In some embodiments, the step of obtaining a print request of a user further comprises:
[0103] Obtaining identity information and production location information of the user;
[0104] According to the production location information, finding a matched print server and obtaining identification information of the print server;
[0105] Binding the identity information with the identification information.
[0106] In some embodiments, the production location information includes one or more of a production workshop, a production floor, and a production area.
[0107] In some embodiments, the step of obtaining a print request of a user specifically comprises:
[0108] In response to a user triggering a configuration request, showing a corresponding print template;
[0109] Receiving a configuration operation of a user on a print variable in the print template;
[0110] In response to a user determining a print target, forming the print request.
[0111] The present disclosure provides a shared printing method of industrial internet, applied to a print server, and the method comprises:
[0112] listening to a print message queue; the print message queue comprises at least one print message;
[0113] in response to identification information in the print message corresponding to identification information of the print server, obtaining print information of the print message; wherein the print information comprises attribute values corresponding to print templates and print variables;
[0114] converting attribute values corresponding to print templates and print variables in the print information into a print language, and sending the print language to a printer corresponding to the print server.
[0115] In some embodiments, the method further comprises:
[0116] communicating with the corresponding printer;
[0117] in response to successful communication with the printer, sending the print information to the printer.
[0118] In some embodiments, the print message comprises a message title; the message title comprises identification information;
[0119] The step of listening to the print message queue specifically comprises:
[0120] obtaining a message title of the print message, and comparing identification information of the message title with identification information of the print server;
[0121] wherein the identification information in the print message is determined by identification information of the print server bound to the identity information of the user.
[0122] In some embodiments, the identification information comprises at least one of an IP address and a serial number of the print server.
[0123] As shown in Figure 2 The present disclosure also provides an industrial internet shared printing system, comprising a production server 300 and a print server 400, the production server 300 is configured to:
[0124] obtain a print request of a user;
[0125] determine identification information of a matched print server according to the identity information of the user; determine print information according to the print request;
[0126] bind the print information and the identification information to form a print message, and send the print message to a production network comprising at least one print server;
[0127] The print server 400 is configured to:
[0128] listening to a print message queue; the print message queue comprises at least one print message;
[0129] in response to the identification information in the print message corresponding to the identification information of the print server, obtaining print information of the print message; wherein the print information comprises attribute values corresponding to print templates and print variables;
[0130] converting the attribute values corresponding to the print templates and the print variables in the print information into a print language, and sending the print language to a printer corresponding to the print server.
[0131] In some embodiments, the shared printing system further comprises a printer 500;
[0132] The printer 500 is configured to:
[0133] receive the print language and perform corresponding print functions according to the print language.
[0134] In some embodiments, the print request comprises a print target and at least one print variable; the production server 300 is further configured to:
[0135] in response to the print variable being a first production attribute, matching a first data table and obtaining attribute values corresponding to the first production attribute based on the print target;
[0136] in response to the print variable being a second production attribute, matching a second data table and obtaining attribute values corresponding to the second production attribute based on the print target; wherein the first data table and the second data table correspond to different types of production attributes.
[0137] In some embodiments, the identification information comprises at least one of an IP address and a serial number of the print server.
[0138] In some embodiments, the production server 300 is further configured to:
[0139] packaging the print information as message content of a print message;
[0140] the identification information as the message title of the print message.
[0141] In some embodiments, the production server 300 is further configured to:
[0142] obtaining identity information and production location information of the user;
[0143] According to the production location information, finding a matched print server and obtaining the identification information of the print server;
[0144] bind the identity information with the identification information.
[0145] In some embodiments, the production location information comprises one or more of a production workshop, a production floor, and a production area.
[0146] In some embodiments, the production server 300 is further configured to:
[0147] in response to a user triggering a configuration request, showing a corresponding print template;
[0148] receiving a user configuration operation on a print variable in the print template;
[0149] in response to a user determining a print target, forming the print request.
[0150] In some embodiments, the print server 400 is configured to:
[0151] communicate with a corresponding printer;
[0152] in response to successful communication with the printer, sending the print information to the printer.
[0153] In some embodiments, the print message comprises a message title; the message title comprises identification information; the print server 400 is configured to:
[0154] obtain the message title of the print message, and compare the identification information of the message title with the identification information of the print server;
[0155] wherein the identification information in the print message is determined by the identification information of the print server bound by the identity information of the user.
[0156] Based on the same inventive concept, the disclosure also provides an electronic device corresponding to any of the above-mentioned embodiment methods, comprising a memory, a processor and a computer program stored in the memory and executable on the processor. For example, in at least one embodiment of the disclosure, the electronic device can be a production server, for example, can be applied to the shared printing method and other possible implementation methods shown in the production server provided by the embodiments of the disclosure. For example, in at least one embodiment of the disclosure, the electronic device can be a print server, for example, can be applied to the shared printing method and other possible implementation methods shown in the print server provided by the embodiments of the disclosure. Figure 6 Figure 7 It needs to be noted that, Figure 8 The device shown is only an example, which does not bring any limitation to the function and use range of the embodiments of the disclosure.
[0157] Figure 8 A more specific electronic device hardware structure schematic diagram provided by the embodiment is shown. The device can include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 for internal communication.
[0158] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits, and is configured to execute related programs to implement the technical solutions provided by the embodiments of the present specification.
[0159] The memory 1020 can be implemented by a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the related program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0160] The input / output interface 1030 is configured to connect an input / output module to realize information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. The input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.
[0161] The communication interface 1040 is configured to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices. The communication module can realize communication through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.).
[0162] The bus 1050 includes a channel to transmit information between various components (such as the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040) of the device.
[0163] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device can also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device can also only contain the components necessary to implement the embodiments of the present disclosure, and does not necessarily contain all the components shown in the figure.
[0164] The electronic device of the above embodiment is used to implement the corresponding shared printing method in any of the preceding embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described here.
[0165] Based on the same inventive concept, the disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the shared printing method according to any of the above embodiments.
[0166] The computer-readable medium of the present embodiment includes permanent and non-permanent, removable and non-removable media, which can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device.
[0167] The computer instructions stored in the storage medium of the above embodiment are used to cause the computer to perform the shared printing method according to any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which are not described here.
[0168] Those skilled in the art should understand that the above discussion of any of the embodiments is only exemplary and is not intended to imply that the scope (including claims) of the present disclosure is limited to these examples; under the idea of the present disclosure, the above embodiments or technical features in different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes of different aspects of the embodiments of the present disclosure as described above. In order to be brief, they are not provided in detail.
[0169] Additionally, to simplify the description and discussion, and so as not to obscure the embodiments of the disclosure with details that are well known to those skilled in the art, some conventional attributes of integrated circuit (IC) chips and other components can or can not be shown in the drawings or discussed below. Furthermore, devices can be shown in block diagram form in order to avoid obscuring the embodiments of the disclosure, and this also acknowledges the fact that the details in regard to how such block devices are implemented are highly dependent on the platform within which an embodiment of the disclosure is being implemented (i.e., such details should be completely evident to those skilled in the art). Where specific details are set forth in order to describe an illustrative embodiment of the disclosure, it will be apparent to one skilled in the art that the embodiment of the disclosure can be practiced without, or with variations of, these specific details. Thus, the description is to be considered as illustrative and not restrictive, and the scope of the disclosure is to be determined not with the assistance of the foregoing description alone.
[0170] While the disclosure has been described in connection with specific embodiments thereof, many alternatives, modifications and variations will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) can use the embodiments discussed.
[0171] Embodiments of the disclosure are intended to cover all such alternatives, modifications and variations as falling within the scope of the appended claims. Accordingly, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the disclosure should be included in the protection scope of the disclosure.
Claims
1. A shared printing method for the industrial Internet, applied to a production server, characterized in that: The method comprises: Get the user's print request; Determining identification information of a matching print server based on the user's identity information; determining print information based on the print request; wherein the identification information includes at least one of an IP address and a serial number of the print server; Binding the print information and the identification information to form a print message, and sending the print message to a production network including at least one print server, so that any of the print servers, in response to the identification information in the print message being identical to the identification information of the print server, obtains the print information in the print message and performs printing using a printer corresponding to the print server; Before the step of obtaining the user's print request, the method further includes: Obtaining the user's identity information and production location information; According to the production location information, searching for a matching print server and obtaining identification information of the print server; Binding the identity information with the identification information; The print request includes a print target and at least one print variable; The step of determining the printing information according to the printing request specifically includes: In response to the printing variable being a first production attribute, matching a first data table and obtaining an attribute value corresponding to the first production attribute based on the printing target; In response to the printing variable being a second production attribute, matching a second data table and obtaining an attribute value corresponding to the second production attribute based on the printing target; wherein the first data table and the second data table correspond to different types of production attributes; The step of obtaining the user's print request specifically includes: In response to a user triggering a configuration request, a corresponding printing template is displayed; receiving a user's configuration operation on a printing variable in the printing template; The print request is formed in response to the user determining a print target.
2. The shared printing method according to claim 1, wherein: The step of binding the printing information and the identification information to form a print message specifically includes: Encapsulating the printing information as the message content of the printing message; The identification information is used as a message title of the printed message.
3. The shared printing method according to claim 1, wherein: The production location information includes one or more of a production workshop, a production floor, and a production area.
4. A production server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the shared printing method according to any one of claims 1 to 3 is implemented.
5. A shared printing system for the Industrial Internet, comprising a production server and a print server, characterized in that: The production server is configured as: Get the user's print request; Determining identification information of a matching print server based on the user's identity information; determining print information based on the print request; wherein the identification information includes at least one of an IP address and a serial number of the print server; Binding the print information and the identification information to form a print message, and sending the print message to a production network including at least one print server, so that any of the print servers, in response to the identification information in the print message being identical to the identification information of the print server, obtains the print information in the print message and performs printing using a printer corresponding to the print server; Before the step of obtaining the user's print request, the method further includes: Obtaining the user's identity information and production location information; According to the production location information, searching for a matching print server and obtaining identification information of the print server; Binding the identity information with the identification information; The print request includes a print target and at least one print variable; and the step of determining print information according to the print request specifically includes: In response to the printing variable being a first production attribute, matching a first data table and obtaining an attribute value corresponding to the first production attribute based on the printing target; In response to the printing variable being a second production attribute, matching a second data table and obtaining an attribute value corresponding to the second production attribute based on the printing target; wherein the first data table and the second data table correspond to different types of production attributes; The step of obtaining the user's print request specifically includes: In response to a user triggering a configuration request, a corresponding printing template is displayed; receiving a user's configuration operation on a printing variable in the printing template; In response to the user determining a print target, forming the print request; The print server is configured to: Monitoring a print message queue; the print message queue includes at least one print message; In response to the identification information in the print message corresponding to the identification information of the print server, obtaining print information of the print message; wherein the print information includes attribute values corresponding to the print template and print variables; The printing template and the attribute values corresponding to the printing variables in the printing information are converted into a printing language, and the printing language is sent to a printer corresponding to the print server.
6. The shared printing system according to claim 5, characterized in that: The shared printing system further includes a printer; The printer is configured as follows: The printing language is received and a corresponding printing function is executed according to the printing language.
Citation Information
Patent Citations
Methods and systems for printing messages
CN106796574A
File printing method, device and system
CN107391051A