Disclosure of Invention
In order to overcome at least the above disadvantages in the prior art, an object of the present application is to provide a method and a system for shared printing of a laser printer, which enable a user to reserve a target shared printing terminal to be used in advance and to preset printing data and reserve printing time in a line mode, thereby greatly saving time cost of the user.
In a first aspect, the present application provides a shared printing method for a laser printer, which is applied to a shared printing system for a laser printer, where the shared printing system for a laser printer includes a shared printing terminal, a user terminal, and a server in communication connection with the shared printing terminal and the user terminal, where account printing information of different printing registered accounts is stored in the server, and the method includes:
the user terminal responds to user operation and sends a printing reservation request aiming at a target shared printing terminal to the server;
the server sends preset printing data and reserved printing time of the user terminal to the target shared printing terminal according to a printing reservation request sent by the user terminal;
the target shared printing terminal prints the preset printing data at the corresponding time node according to the reserved printing time, and sends printing progress information to the server in the printing process;
and the server sends the printing progress information to the user terminal for display.
In one possible design of the first aspect, the step of the user terminal sending a print reservation request for a target shared print terminal to the server in response to a user operation includes:
the user terminal obtains a shared printing terminal list in a preset range of a target position from the server;
determining a target shared printing terminal from the shared printing terminal list according to user operation;
and sending a printing reservation request aiming at the target shared printing terminal to the server, wherein the printing reservation request comprises preset printing data and reserved printing time.
In a possible design of the first aspect, the step of printing, by the target shared printing terminal, the preset printing data at a corresponding time node according to the reserved printing time includes:
the target shared printing terminal determines the printing priority of the printing reservation request in the current printing reservation queue according to the reserved printing time;
determining a target time node of the preset printing data according to the printing priority and the predicted completion time of each reserved printing request in the current printing reservation queue;
and printing the preset printing data at the corresponding time node.
In one possible design of the first aspect, the determining a target time node of the preset print data according to the print priority and a predicted completion time of each reserved print request in the current print reservation queue includes:
acquiring preset printing data reserved by each reserved printing request in the current printing reservation queue, and judging whether the preset printing data reserved by each reserved printing request comprises printing characteristic information matched with the printing characteristic strategy of the printing priority;
when the preset printing data reserved by each reserved printing request does not include the printing feature information matched with the printing feature policy of the printing priority, determining a plurality of preset printing data matched with the printing feature policy of the printing priority as a plurality of target preset printing data;
acquiring the predicted completion time of each target preset printing data in the plurality of target preset printing data;
splicing the plurality of target preset printing data in sequence according to the sequence of the predicted completion time of each target preset printing data, and determining an updated printing reservation queue;
and determining a target time node of the preset printing data in the current printing reservation queue according to the updated printing reservation queue and the printing priority.
Therefore, the tracking printing can be performed through the printing priority and the predicted completion time of each reserved printing request in the current printing reservation queue, and the on-time printing success rate and the reserved printing effect of the printing object are improved.
In a possible design of the first aspect, the step of acquiring preset print data reserved for each print request in the current print reservation queue and determining whether the preset print data reserved for each print request includes print characteristic information matched with the print characteristic policy of the print priority includes:
acquiring preset printing data reserved by each reserved printing request in the current printing reservation queue;
acquiring printing data of at least one preset printing object in preset printing data reserved by each reserved printing request;
grouping the printing data with the printing objects according to different preset printing objects to obtain a plurality of first printing groups, wherein the first printing groups are collections containing the printing data of the same preset printing object, and the preset printing objects corresponding to each first printing group are different;
determining set printing characteristics existing in the printing data of each first printing group according to the printing characteristic strategies of the printing priorities to obtain a plurality of second printing groups;
judging whether the printing priority of each preset printing object in the plurality of second printing groups is greater than the printing priority;
if the preset print data is larger than the preset print data, judging that the preset print data reserved by each reserved print request comprises print characteristic information matched with the print characteristic strategy of the print priority;
and if not, judging that the preset printing data reserved by each reserved printing request does not comprise the printing characteristic information matched with the printing characteristic strategy of the printing priority.
Therefore, the printing effect is improved, and the interference of a part of printing characteristics is avoided by identifying the printing characteristic information matched with the printing characteristic strategy of the printing priority.
In a possible design of the first aspect, the step of determining a target time node of the preset print data in the current print reservation queue according to the updated print reservation queue and the print priority includes
Adjusting the updated printing reservation queue by using a preset printing node adjustment strategy;
dividing the printing reservation queue played after the adjustment into printing sheets with preset length, and sampling for each printing sheet for a preset first number of times, wherein each sampling time obtains a piece of sampling data; judging whether each piece of sampling data meets a printing settlement condition, counting the number of the printing pieces meeting the printing settlement condition in the printing piece, if the counted number of the printing pieces is greater than a preset first threshold value, judging that the printing piece meets the printing settlement condition, counting the number of the printing pieces meeting the printing settlement condition, judging whether the counted abnormal number of the printing pieces is greater than the preset first threshold value, if so, judging that the printing reservation queue meets the printing settlement condition, otherwise, judging that the printing reservation queue does not meet the printing settlement condition;
if the printing node adjustment strategy is the printing reservation request with the set number increased every time and the printing reservation queue does not meet the printing settlement condition, returning to execute the step of adjusting the updated printing reservation queue by using the preset printing node adjustment strategy;
if the printing node adjustment strategy is to increase a set number of printing reservation requests every time and the printing reservation queue meets a printing settlement condition, determining preset printing data of the reserved printing requests before the adjustment as the preset printing data of the shared printing terminal in the latest printing time slot;
if the printing node adjustment strategy is the printing reservation request with the number reduced by the set quantity every time and the printing reservation queue meets the printing settlement condition, returning to execute the step of adjusting the updated printing reservation queue by using the preset printing node adjustment strategy;
if the printing node adjustment strategy is that the printing reservation requests with the set number are reduced every time and the printing reservation queue does not meet the printing settlement condition, determining the preset printing data of the reserved printing requests before the adjustment as the preset printing data of the shared printing terminal in the latest printing time slot;
and determining a target time node of the preset printing data in the current printing reservation queue according to the preset printing data of the shared printing terminal in the latest printing time period.
Therefore, various factors influencing the number of printed sheets supported by the shared printing terminal do not need to be considered, the shared printing terminal only needs to automatically adjust the printing reservation queue, whether the adjusted printing settlement conditions are met or not is automatically judged, the efficiency is improved, and manual participation of operators is not needed.
In a possible design of the first aspect, the step of determining a target time node of the preset print data in the current print reservation queue according to the preset print data of the shared printing terminal in the latest print time period includes
Obtaining a time node of the latest printing time period of the current printing reservation queue of a plurality of printing unit times of preset printing data of the reserved printing request before the current adjustment;
and for the time node of the latest printing time period of each printing unit time, determining the time node meeting the preset condition to be processed from the current unprocessed time nodes of the latest printing time period of the printing unit time as the printing time node to be printed.
And parallelly calculating the printing accumulated behavior values of the determined printing time nodes on the geographical position of the shared printing terminal, or until no unprocessed time nodes exist in the time nodes of the latest printing time period, wherein the process of calculating the printing accumulated behavior values of each printing time node on the geographical position of the shared printing terminal is as follows:
calculating the printing cumulative behavior value of the printing time node on the geographical position of the shared printing terminal based on the cost value of the printing time node in the printing unit time, the printing cumulative behavior value of the time node at the geographical position determined on the geographical position of the shared printing terminal, and the printing cumulative behavior value of the time node at the same position as the geographical position in other printing unit times determined on the geographical position of the shared printing terminal, wherein the other printing unit times are as follows: and obtaining the printing unit time except the printing unit time of the printing time node in the printing unit time.
Determining a printing sharing control parameter of the current printing unit time according to a printing sharing parallel strategy and a printing accumulated behavior value of the current printing unit time in the latest printing time period, wherein the latest printing time period comprises a plurality of printing unit times, and the current printing unit time is any one of the plurality of printing unit times;
processing the current preset printing data according to the printing sharing control parameter of the current printing unit time to obtain information to be processed;
according to the information to be processed, counting the current complexity information of the preset printing data, the total printing sharing control parameter of the current printing unit time and the statistical information of the printing quality information of the current printing unit time;
when the latest printing time period is not finished, judging whether the current printing unit time is finished or not, if so, acquiring and determining the printing sharing control parameter of the next printing unit time adjacent to the current printing unit time in the latest printing time period according to the cycle length of the current printing unit time, the preset printing sharing control parameter and the statistical information, so as to determine the printing data of the next printing unit time by calculating the printing sharing control parameter of the next printing unit time;
determining a target time node of the preset print data in the current print reservation queue by accumulating the determined print data of the adjacent next printing unit time.
Thus, the error time caused by calculation errors or unreasonable time node arrangement of the printing reservation request can be shortened as much as possible, and the reserved printing efficiency is improved.
In a possible design of the first aspect, the step of obtaining and determining, according to the cycle length of the current printing unit time, the preset printing sharing control parameter, and the statistical information, a printing sharing control parameter of a printing unit time next to the current printing unit time in the latest printing time period includes:
acquiring the set printing rate of the printing queue of the latest printing time period, and determining the set printing rate of the printing queue of the latest printing time period as the set printing rate of the current printing unit time;
acquiring and calculating the predicted printing rate of the current printing unit time according to the cycle length of the current printing unit time and the set printing rate of the current printing unit time; acquiring the actual printing speed of the printing queue of the latest printing time period, and updating the actual printing speed of the printing queue of the latest printing time period by calculation according to the predicted printing speed of the current printing unit time, the preset printing shared control parameter of the current printing unit time and the actual printing speed of the printing queue of the latest printing time period;
calculating the target printing speed of the printing queue of the latest printing time period according to the actual printing speed of the printing queue of the latest printing time period, a preset initial printing speed, the target upper limit of the printing queue of the latest printing time period and the target lower limit of the printing queue of the latest printing time period;
calculating the printing load degree according to the actual printing speed of the printing queue of the latest printing time period, the preset initial printing speed, the target upper limit of the printing queue of the latest printing time period and the target lower limit of the printing queue of the latest printing time period;
according to the target printing speed of the printing queue of the latest printing time period, the actual printing speed and the printing load degree of the printing queue of the latest printing time period, after the target printing speed of the printing queue of the next adjacent printing unit time in the latest printing time period is obtained through calculation, the printing queue control parameter of the next adjacent printing unit time in the latest printing time period is determined;
and determining the printing sharing control parameter of the next printing unit time adjacent to the current printing unit time in the latest printing time period through weighting calculation according to the printing queue control parameter, the printing queue target printing speed of the next printing unit time adjacent to the latest printing time period and the printing load degree.
Therefore, by setting the printing sharing control parameters, the printing time node is accurately calculated, the limitation of load performance is coped with, the stability of subsequent printing data is ensured, and the stability of printing tasks in different periods is realized by combining the latest printing time period with the printing sharing control mode of printing unit time.
In one possible design of the first aspect, the method further includes:
and the user terminal sends a preset prompt to the user when the printing progress information comprises a processing node preset by the user according to the printing progress information.
In a second aspect, a shared printing system of a laser printer in an embodiment of the present application includes a shared printing terminal, a user terminal, and a server in communication connection with the shared printing terminal and the user terminal, where account printing information of different printing registered accounts is stored in the server; :
the user terminal is used for responding to user operation and sending a printing reservation request aiming at the target shared printing terminal to the server;
the server is used for sending preset printing data and reserved printing time of the user terminal to the target shared printing terminal according to the printing reservation request sent by the user terminal;
the target shared printing terminal is used for printing the preset printing data at the corresponding time node according to the reserved printing time and sending printing progress information to the server in the printing process;
and the server is used for sending the printing progress information to the user terminal for displaying.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a network interface. The memory and the network interface processor can be connected through a bus system. The network interface is configured to receive a message, the memory is configured to store a program, instructions or code, and the processor is configured to execute the program, instructions or code in the memory to perform the operations of the first aspect or any possible design of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where instructions are stored, and when the instructions are detected on a computer, the instructions cause the computer to perform the method of the first aspect or any possible design manner of the first aspect.
Based on any one of the above aspects, in this embodiment of the application, the user terminal may send, in response to a user operation, a print reservation request for the target shared printing terminal to the server, the server sends, according to the print reservation request sent by the user terminal, preset print data and a reserved print time of the user terminal to the target shared printing terminal, the target shared printing terminal prints, according to the reserved print time, the preset print data at a corresponding time node and sends, to the server, print progress information, and the server sends the print progress information to the user terminal for display. Therefore, the user can reserve the target shared printing terminal to be used in advance and preset the printing data and reserve the printing time in a line mode, and the time cost of the user is greatly saved.
Detailed Description
The present application will now be described in detail with reference to the drawings, and the specific operations in the method embodiments may also be applied to the apparatus embodiments or the system embodiments. In the description of the present application, "at least one" includes one or more unless otherwise specified. "plurality" means two or more. For example, at least one of A, B and C, comprising: a alone, B alone, a and B in combination, a and C in combination, B and C in combination, and A, B and C in combination. In this application, "/" means "or, for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
Fig. 1 is an interactive schematic diagram of a shared printing system 10 of a laser printer according to an embodiment of the present application. For example, the shared printing system 10 of a laser printer may be an online service platform for a shared printing service, for example. The shared printing system 10 of the laser printer may include a server 100, a shared printing terminal 200, and a user terminal 300, and a processor performing an instruction operation may be included in the server 100. The shared printing system 10 of the laser printer shown in fig. 1 is only one possible example, and in other possible embodiments, the shared printing system 10 of the laser printer may include only one of the components shown in fig. 1 or may also include other components.
In some embodiments, the server 100 may be a single server or a group of servers. The set of servers may be centralized or distributed (e.g., server 100 may be a distributed system). In some embodiments, the server 100 may be local or remote to the terminal. For example, the server 100 may access information stored in the shared printing terminal 200, the user terminal 300, and the database, or any combination thereof, via a network. As another example, the server 100 may be directly connected to at least one of the shared print terminal 200, the user terminal 300, and a database to access information and/or data stored therein. In some embodiments, the server 100 may be implemented on a cloud platform; by way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud (community cloud), a distributed cloud, an inter-cloud, a multi-cloud, and the like, or any combination thereof. In some embodiments, the server 100, the shared printing terminal 200, and the user terminal 300 may be implemented on an electronic device 200 having one or more components shown in fig. 2 in embodiments of the present application.
In some embodiments, the server 100 may include a processor. The processor may process information and/or data related to the service request to perform one or more of the functions described herein. For example, in the shared printing service, the processor may determine a target shared printing terminal based on a print reservation request obtained from a user terminal. A processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, a Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a reduced Instruction Set computer (reduced Instruction Set computer), a microprocessor, or the like, or any combination thereof.
The network may be used for the exchange of information and/or data. In some embodiments, one or more components (e.g., server 100, shared printing terminal 200, user terminal 300, and a database) in the shared printing system 10 of a laser printer may send information and/or data to other components. For example, the server 100 may acquire a print request to the shared print terminal 200 via a network. In some embodiments, the network may be any type of wired or wireless network, or combination thereof. Merely by way of example, Network 130 may include a wired Network, a Wireless Network, a fiber optic Network, a telecommunications Network, an intranet, the internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a WLAN, a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a bluetooth Network, a ZigBee Network, a Near Field Communication (NFC) Network, or the like, or any combination thereof. In some embodiments, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more components of the shared printing system 10 of the laser printer may connect to the network to exchange data and/or information.
In some embodiments, the user terminal 300 may include, but is not limited to, a mobile device, a tablet computer, a laptop computer, or any combination of two or more thereof. In some embodiments, the mobile device may include, but is not limited to, a smart home device, a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the smart home devices may include, but are not limited to, smart lighting devices, control devices for smart appliances, smart monitoring devices, smart televisions, smart cameras, or walkie-talkies, or the like, or any combination thereof. In some embodiments, the wearable device may include, but is not limited to, a smart bracelet, a smart lace, smart glass, a smart helmet, a smart watch, a smart garment, a smart backpack, a smart accessory, and the like, or any combination thereof. In some embodiments, the smart mobile device may include, but is not limited to, a smartphone, a Personal Digital Assistant (PDA), a gaming device, a navigation device, or a point of sale (POS) device, or the like, or any combination thereof. In some embodiments, the virtual reality device and/or the augmented reality device may include, but is not limited to, a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, an augmented reality patch, or the like, or any combination thereof. For example, virtual reality devices and/or augmented reality devices may include, but are not limited to, various virtual reality products and the like.
The aforementioned database may store data and/or instructions. In some embodiments, the database may store data obtained from the shared printing terminal 200 and/or the user terminal 300. In some embodiments, the database may store data and/or instructions for the exemplary methods described herein. In some embodiments, the database may include mass storage, removable storage, volatile Read-write Memory, or Read-Only Memory (ROM), among others, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, and the like; removable memory may include flash drives, floppy disks, optical disks, memory cards, zip disks, tapes, and the like; volatile read-write Memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (DRAM), Double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (SRAM), Thyristor-Based Random Access Memory (T-RAM), Zero-capacitor RAM (Zero-RAM), and the like. By way of example, ROMs may include Mask Read-Only memories (MROMs), Programmable ROMs (PROMs), Erasable Programmable ROMs (PERROMs), Electrically Erasable Programmable ROMs (EEPROMs), compact disk ROMs (CD-ROMs), digital versatile disks (ROMs), and the like. In some embodiments, the database may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, across clouds, multiple clouds, or the like, or any combination thereof.
In some embodiments, the database may be connected to a network to communicate with one or more components of the shared printing system 10 (e.g., server 100, shared printing terminal 200, user terminal 300, etc.) of the laser printer. One or more components in the shared printing system 10 of the laser printer may access data or instructions stored in a database via a network. In some embodiments, the database may be directly connected to one or more components in the shared printing system 10 of the laser printer (e.g., server 100, shared printing terminal 200, user terminal 300, etc.); alternatively, in some embodiments, the database may also be part of the server 100.
Fig. 2 is a schematic flowchart of a shared printing method of a laser printer according to an embodiment of the present disclosure, where the shared printing method of a laser printer according to the present disclosure may be executed by the shared printing system 10 of the laser printer shown in fig. 1, and the shared printing method of the laser printer is described in detail below.
In step S110, the user terminal 300 transmits a print reservation request for the target shared print terminal to the server 100 in response to the user operation.
In step S120, the server 100 transmits the preset print data and the reserved printing time of the user terminal 300 to the target shared printing terminal according to the print reservation request transmitted from the user terminal 300.
In step S130, the target shared printing terminal prints the preset printing data at the corresponding time node according to the reserved printing time, and sends the printing progress information to the server 100 during the printing process.
In step S140, the server 100 transmits the print progress information to the user terminal 300 for display.
In this embodiment, the server 100 may store account printing information of different printing registration accounts, that is, when the user uses the system for the first time, the user may register and fill in necessary user information online. For example, the user may download the shared print application from the server 100 through the network and install the shared print application locally in the user terminal 300, or the user terminal 300 of the user may already pre-install the shared print application and establish a connection with the server 100 through the shared print application, or the user may directly scan the relevant two-dimensional code through a code scanning function provided by an application such as a wechat applet or a pay pal, or input an APP name of the shared print application in an application mall to establish a connection with the server 100, thereby completing user registration. In this way, the subsequent server 100 can perform forwarding of the print reservation request and account settlement according to the account printing information of each print registration account.
Based on the steps, the embodiment can enable the user to reserve the target shared printing terminal to be used in advance and preset the printing data and reserve the printing time in a line mode, and greatly saves the time cost of the user.
In some possible designs, please further refer to fig. 3, and for step S110, the following steps may be specifically implemented:
in sub-step S111, the user terminal 300 obtains a list of the shared printing terminals 200 within a preset range of the target position from the server 100.
In this embodiment, the user terminal 300 may start the positioning function and send the current position as the target position to the server 100, or the user terminal 300 may manually send any one position as the target position to the server 100. The server 100 may store therein position information of each shared print terminal 200, so that a list of shared print terminals 200 within a preset range of a target position can be obtained according to the target position transmitted from the user terminal 300.
For example, assuming that the target position transmitted by the user terminal 300 is "a city B way C number" and the preset range is 2 km, the server 100 may obtain a list of the shared print terminals 200 within 2 km around the "a city B way C number" and transmit the list to the user terminal 300.
In sub-step S112, a target shared printing terminal is determined from the shared printing terminal 200 list according to a user operation.
In the present embodiment, the user terminal 300 may determine a target shared printing terminal from the shared printing terminal 200 list according to a user operation. The determined target shared printing terminal may be one or multiple, for example, the target shared printing terminal may be a shared printing terminal 200 located at different positions, and this embodiment is not particularly limited to this.
In sub-step S113, a print reservation request for the target shared print terminal is transmitted to the server 100.
In this embodiment, after the target shared printing terminal is determined, a print reservation request for the target shared printing terminal may be sent to the server 100, where the print reservation request may include preset print data and reserved print time.
Based on the above steps, the user can select the target shared printing terminal to be reserved based on any target position, so that the user can find the shared printing terminal 200 to print as soon as possible according to actual requirements.
In some possible designs, please refer to fig. 4, and the step S130 can be specifically implemented by the following sub-steps:
in sub-step S131, the target shared printing terminal determines the printing priority of the printing reservation request in the current printing reservation queue according to the reserved printing time.
In this embodiment, the print priority may be a priority determined by the target shared printing terminal according to the reserved printing time and the account level of the corresponding shared printing account in the print reservation request, and the higher the print priority is, the more advantageous the arrangement order of the reserved printing time in the current print reservation queue is.
And a substep S132 of determining a target time node of the preset print data according to the print priority and the predicted completion time of each reserved print request in the current print reservation queue.
In this embodiment, each reserved print request in the current print reservation queue may refer to a reserved print request initiated by another user before the print request of this time, but in this embodiment, in consideration of the problem of the print priority, the target time node of the preset print data may be further determined according to the print priority and the expected completion time of each reserved print request in the current print reservation queue.
And a substep S133 of printing the preset print data at the corresponding time node.
In this embodiment, after the time node is determined, the preset print data may be printed at the corresponding time node.
In some possible designs, regarding the sub-step S132, on the basis of the above, the present embodiment considers that when there are many reserved printing requests, there may be many problems that reserved printing objects with higher priority cannot be printed on time, resulting in poor reserved printing effect. Based on this, the present embodiment can acquire preset print data reserved for each print request in the current print reservation queue, and determine whether print characteristic information matching the print characteristic policy of the print priority is included in the preset print data reserved for each print request. When the print feature information matching the print feature policy of the print priority is not included in the preset print data reserved for each reservation print request, a plurality of preset print data including the print feature policy matching the print priority are determined as a plurality of target preset print data. Then, acquiring the predicted completion time of each target preset printing data in the plurality of target preset printing data, sequentially splicing the plurality of target preset printing data according to the sequence of the predicted completion time of each target preset printing data, and determining an updated printing reservation queue, thereby determining a target time node, a target time node and a target time node of the preset printing data in the current printing reservation queue according to the updated printing reservation queue and the printing priority,
Therefore, the embodiment can perform trace printing through the printing priority and the predicted completion time of each reserved printing request in the current printing reservation queue, and improve the on-time printing success rate and the reserved printing effect of the printing object.
In some possible designs, there may be some interference of printing characteristics in the shared printing queue, such as low printing requirements, untimely initiation of payment process, and the like. Based on this, the preset print data reserved by each reserved print request in the current print reservation queue is acquired, and whether the preset print data reserved by each reserved print request includes print characteristic information matched with the print characteristic policy of the print priority is judged, which can be specifically realized by the following method:
first, preset printing data reserved by each reserved printing request in a current printing reservation queue is acquired, and then printing data of at least one preset printing object in the preset printing data reserved by each reserved printing request is acquired. And then, grouping the printing data with the printing objects according to different preset printing objects to obtain a plurality of first printing groups, wherein the first printing groups are collections containing the printing data of the same preset printing object, and the preset printing objects corresponding to each first printing group are different. On the basis, the set printing characteristics existing in the printing data of each first printing group can be determined according to the printing characteristic strategy of the printing priority, and a plurality of second printing groups are obtained. And determining whether the printing priority of each preset printing object in the plurality of second printing groups is greater than the printing priority. And if so, judging that the preset printing data reserved by each reserved printing request comprises printing characteristic information matched with the printing characteristic strategy of the printing priority. If not, it is determined that the preset print data reserved for each reserved print request does not include print characteristic information matching the print characteristic policy of the print priority.
Thus, the printing effect can be improved, and the interference of a part of printing characteristics is avoided by identifying the printing characteristic information matched with the printing characteristic strategy of the printing priority.
In some possible designs, on the basis of the above, the present embodiment also considers that there may be various factors (for example, interference of printing features, temporary failure of the shared printing terminal 200, and the like) that affect the number of print sheets supported by the shared printing terminal 200 at present, so that the print settlement condition may be delayed, and at this time, the operator is often required to participate manually, which greatly affects the shared printing efficiency.
Based on this, in the process of determining the target time node of the preset printing data in the current printing reservation queue according to the updated printing reservation queue and the printing priority, the updated printing reservation queue can be adjusted by using a preset printing node adjustment strategy. And then, dividing the printing reservation queue played after the adjustment into printing sheets with preset length, and carrying out sampling for each printing sheet for a preset first number of times, wherein each sampling time obtains a piece of sampling data.
And then, judging whether each piece of sampling data meets the printing settlement condition, counting the number of the printing sheets meeting the printing settlement condition, if the counted number of the printing sheets is larger than a preset first threshold value, judging that the printing sheets meet the printing settlement condition, counting the number of the printing sheets meeting the printing settlement condition, judging whether the counted abnormal number of the printing sheets is larger than the preset first threshold value, if so, judging that the printing reservation queue meets the printing settlement condition, otherwise, judging that the printing reservation queue does not meet the printing settlement condition.
And if the printing node adjustment strategy is the printing reservation request with the set number increased every time and the printing reservation queue does not meet the printing settlement condition, returning to execute the operation of adjusting the updated printing reservation queue by using the preset printing node adjustment strategy.
If the printing node adjustment policy is to increase the set number of printing reservation requests each time and the printing reservation queue meets the printing settlement condition, the preset printing data of the reserved printing request before the adjustment is determined as the preset printing data of the shared printing terminal 200 in the latest printing time slot.
And if the printing node adjustment strategy is the printing reservation request of which the number is reduced by the set number each time and the printing reservation queue meets the printing settlement condition, returning to the step of adjusting the updated printing reservation queue by using the preset printing node adjustment strategy.
If the print node adjustment policy is to reduce the set number of print reservation requests each time and the print reservation queue does not satisfy the print settlement condition, the preset print data of the reserved print request before this adjustment is determined as the preset print data of the shared print terminal 200 in the latest print time slot.
Therefore, the target time node of the preset printing data in the current printing reservation queue is determined according to the preset printing data of the shared printing terminal 200 in the latest printing time period, so that various factors influencing the number of printing sheets supported by the shared printing terminal 200 do not need to be considered, the shared printing terminal 200 only needs to automatically adjust the printing reservation queue, whether the adjusted printing settlement condition is met or not is automatically judged, the efficiency is improved, and manual participation of operators is not needed.
In some possible designs, based on the foregoing description, the inventors of the present application have also found that the above-described shared printing terminal 200 may further reserve the printing efficiency because an error time is large due to a calculation error or an unreasonable schedule of time nodes of the print reservation request.
Based on this, in the process of determining the target time node of the preset print data in the current print reservation queue from the preset print data of the shared print terminal 200 at the latest print time period, the time node of the latest print time period of the current print reservation queue for a plurality of print unit times of the preset print data of the reservation print request before this adjustment can be obtained, and for the time node of the latest print time period of each print unit time, a time node satisfying the preset condition to be processed is determined as the print time node to be printed from the currently unprocessed time nodes of the latest print time period of the print unit time.
Then, the print cumulative behavior value of the determined print time node at the geographical location of the shared printing terminal 200 is calculated in parallel, or until there is no unprocessed time node in the time nodes of the latest printing time period, wherein the process of calculating the print cumulative behavior value of each print time node at the geographical location of the shared printing terminal 200 is as follows:
first, the print cumulative behavior value of the print time node at the geographical position of the shared printing terminal 200 is calculated based on the cost value of the print time node at the print unit time, the print cumulative behavior value at the geographical position of the shared printing terminal 200 determined by the time node at the geographical position, and the print cumulative behavior value at the geographical position of the shared printing terminal 200 determined by the time node at the same position as the geographical position in other print unit times.
Wherein, the other printing unit time can be: and obtaining the printing unit time except the printing unit time of the printing time node in the printing unit time.
And then, determining a printing sharing control parameter of the current printing unit time according to the printing sharing parallel strategy and the printing cumulative behavior value of the current printing unit time in the latest printing time period, wherein the latest printing time period comprises a plurality of printing unit times, and the current printing unit time is any one of the plurality of printing unit times.
Then, processing the current preset printing data according to the printing sharing control parameter of the current printing unit time to obtain information to be processed;
then, according to the information to be processed, statistical information including the complexity information of the current preset printing data, the total printing sharing control parameter of the current printing unit time and the printing quality information of the current printing unit time is counted.
Then, when the latest printing time period is not finished, judging whether the current printing unit time is finished or not, if so, acquiring and determining the printing sharing control parameter of the next printing unit time adjacent to the current printing unit time in the latest printing time period according to the cycle length of the current printing unit time, the preset printing sharing control parameter and the statistical information, so as to determine the printing data of the next printing unit time by calculating the printing sharing control parameter of the next printing unit time;
finally, a target time node of the preset print data in the current print reservation queue is determined by accumulating the determined print data of the next printing unit time adjacent thereto.
Thus, the error time caused by calculation errors or unreasonable time node arrangement of the printing reservation request can be shortened as much as possible, and the reserved printing efficiency is improved.
In some possible designs, based on the above description, the shared printing requirement is often large for the shared printing terminals 200 in some hot areas, at this time, some unstable situations (for example, program crash, insufficient memory, etc.) may occur in the process of printing data due to the limitation of load performance, and it is also difficult to achieve that the printing tasks are stable in different time periods for the time periods passing through.
Based on this, in the process of acquiring and determining the print sharing control parameter of the next printing unit time adjacent to the current printing unit time in the latest printing time period according to the cycle length of the current printing unit time, the preset print sharing control parameter and the statistical information, the set print rate of the print queue in the latest printing time period may be specifically acquired, and the set print rate of the print queue in the latest printing time period is determined as the set print rate of the current printing unit time.
Then, obtaining and calculating the predicted printing speed of the current printing unit time according to the cycle length of the current printing unit time and the set printing speed of the current printing unit time, then obtaining the actual printing speed of the printing queue of the latest printing time period, and updating the actual printing speed of the printing queue of the latest printing time period according to the predicted printing speed of the current printing unit time, the preset printing sharing control parameter of the current printing unit time and the actual printing speed of the printing queue of the latest printing time period.
Then, a target printing speed of the latest printing time period printing queue is calculated according to the actual printing speed of the latest printing time period printing queue, a preset initial printing speed, a target upper limit of the latest printing time period printing queue and a target lower limit of the latest printing time period printing queue.
Then, the printing load degree is calculated according to the actual printing speed of the latest printing time period printing queue, the preset initial printing speed, the target upper limit of the latest printing time period printing queue and the target lower limit of the latest printing time period printing queue.
Then, according to the target printing speed of the printing queue of the latest printing time period, the actual printing speed and the printing load degree of the printing queue of the latest printing time period, after the target printing speed of the printing queue of the next printing unit time in the latest printing time period is obtained through calculation, the printing queue control parameter of the next printing unit time in the latest printing time period is determined.
And finally, determining the printing sharing control parameter of the next printing unit time adjacent to the current printing unit time in the latest printing time period through weighting calculation according to the printing queue control parameter, the printing queue target printing speed and the printing load degree of the next printing unit time adjacent to the latest printing time period.
Therefore, by setting the printing sharing control parameters, the printing time node can be accurately calculated, the limitation of load performance can be coped with, the stability of subsequent printing data is ensured, and the stability of printing tasks in different periods is realized by combining the latest printing time period with the printing sharing control mode of printing unit time.
In some possible designs, with further reference to fig. 5 on the basis of the foregoing description, after step S140, the shared printing method for a laser printer according to this embodiment may further include the following steps:
in step S150, the user terminal 300 sends a preset reminder to the user when the printing progress information includes a processing node preset by the user according to the printing progress information.
In this embodiment, the printing progress information may include a percentage of the printing progress and a specific processing node, and the user may set in advance which processing node to remind the user, so that the user terminal 300 may send a preset reminder to the user when the printing progress information includes the processing node preset by the user according to the printing progress information.
In some possible designs, the preset reminder may be one or more of a vibration reminder, a voice reminder, and a bright screen reminder.
Fig. 6 is a schematic structural diagram of an electronic device 400 for implementing the server 100, the shared printing terminal 200, and the user terminal 300, according to an embodiment of the present disclosure, as shown in fig. 6, the server 100 may include a network interface 410, a machine-readable storage medium 420, a processor 430, and a bus 440. The number of the processors 430 may be one or more, and one processor 430 is taken as an example in fig. 6; the network interface 410, the machine-readable storage medium 420, and the processor 430 may be connected by a bus 440 or otherwise, as exemplified by the connection by the bus 440 in fig. 6.
The machine-readable storage medium 420, which is a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the shared printing method of the laser printer in the embodiment of the present application. The processor 430 executes various functional applications and data processing of the terminal device by detecting software programs, instructions and modules stored in the machine-readable storage medium 420, that is, implements the above-mentioned shared printing method of the laser printer, and will not be described herein again.
The machine-readable storage medium 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the machine-readable storage medium 420 may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory.
Processor 430 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 430.
The server 100 may interact with other devices via the communication interface 110. Communication interface 110 may be a circuit, bus, transceiver, or any other device that may be used to exchange information. Processor 430 may send and receive information using communication interface 110.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.