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 a description of an association relationship of association candidates from a laser color printer, and means that there may be three relationships, for example, 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 an internet of things-based laser color printing system 10 according to an embodiment of the present application. For example, the internet of things based laser color printing system 10 may be an online commissioning platform for devices such as laser printers. The laser color printing system 10 based on the internet of things may include a laser color printer 100, a server 200, and a terminal 300 of the internet of things, and the server 200 may include a processor therein to perform instruction operations. The internet of things based laser color printing system 10 shown in fig. 1 is merely one possible example, and in other possible embodiments, the internet of things based laser color printing system 10 may include only a portion of the components shown in fig. 1 or may also include other components.
In some embodiments, the server 200 may be a single server or a group of servers. The set of operating servers may be centralized or distributed (e.g., server 200 may be a distributed system). In some embodiments, server 200 may be local or remote to laser color printer 100. For example, the server 200 may access information stored in the laser color printer 100, the internet of things terminal 300, and a database, or any combination thereof, via a network. As another example, the server 200 may be directly connected to at least one of the laser color printer 100, the internet of things terminal 300, and a database to access information and/or data stored therein. In some embodiments, the server 200 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 200, the laser color printer 100, and the internet of things terminal 300 may be implemented on an electronic device 200 having one or more components shown in fig. 2 in the embodiments of the present application.
In some embodiments, the server 200 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. 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 in the internet-of-things based laser color printing system 10 (e.g., the server 200, the laser color printer 100, the internet-of-things terminal 300, and the database) may send information and/or data to other components. For example, the server 200 may acquire a print request to the laser color printer 100 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, the 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 Metropolitan Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a bluetooth Network, a ZigBee Network, or a Near Field Communication (NFC) Network, among others, 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 internet-of-things based laser color printing system 10 may connect to the network to exchange data and/or information.
The aforementioned database may store data and/or instructions. In some embodiments, the database may store data obtained from the laser color printer 100 and/or the internet of things 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 (DDRSDRAM); 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, a database may be connected to a network to communicate with one or more components of the internet-of-things based laser color printing system 10 (e.g., server 200, laser color printer 100, internet-of-things terminal 300, etc.). One or more components of the internet of things based laser color printing system 10 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 internet-of-things based laser color printing system 10 (e.g., the server 200, the laser color printer 100, the internet-of-things terminal 300, etc.); alternatively, in some embodiments, the database may also be part of the server 200.
In order to solve the technical problem in the foregoing background, fig. 2 is a schematic flow chart of the laser color printing method based on the internet of things according to the embodiment of the present application, and the laser color printing method based on the internet of things according to the embodiment may be executed by the laser color printing system 10 based on the internet of things shown in fig. 1, which is described in detail below.
Step S110, the Internet of things terminal acquires a printing activation file of the application environment, and sends the printing activation file to the server, wherein the printing activation file comprises printer relation information between the newly added laser color printer and the current printer set in the application environment and the Internet of things control type of the newly added laser color printer.
And step S120, the server generates printer configuration information of the newly-added laser color printer according to the print activation file, and sends the printer configuration information to the newly-added laser color printer, wherein the printer configuration information comprises the print activation file and queue configuration information aiming at the print activation file, and the queue configuration information comprises the Internet of things identification of the target print queue.
And step S130, the newly added laser color printer searches the Internet of things identifier of the target printing queue according to the printer configuration information, and sends the queue configuration information and the printing activation file to the main laser color printer corresponding to the target printing queue according to the Internet of things identifier.
And step S140, the master laser color printer sends printer relationship information of the slave laser color printer, which is matched with the Internet of things control type of the newly added laser color printer, in the target printing queue to the newly added laser color printer according to the queue configuration information.
And S150, adding the Internet of things configuration information of the newly-added laser color printer in a target printing queue according to the printer relation information of the slave laser color printer so as to perform linkage printing with the slave laser color printer according to the Internet of things configuration information when the printing operation is started.
In the embodiment, when a laser color printer is newly added each time, a printing activation file is configured through an internet of things terminal of an application environment, a server sends printer configuration information to the newly added laser color printer according to the printing activation file, then the newly added laser color printer can send printer relationship information between the newly added laser color printer and a current printer set and internet of things control types of the newly added laser color printer to a master laser color printer corresponding to a target printing queue according to a searched internet of things identifier of the target printing queue, and adds configuration information of the newly added laser color internet of things printer in the target printing queue after printer relationship information of the slave laser color printer matched with the internet of things control type of the newly added laser color printer in the target printing queue is obtained and searched by the master laser color printer, the method has the advantages that the linkage printing is carried out on the laser color printer according to the configuration information of the Internet of things when the printer is started to print, so that the problem that the matching failure occurs in the linkage printing process or the coordination error occurs in the linkage printing process when the laser color printer is newly added in a printing queue due to the fact that the control types of the Internet of things of the laser color printer are different and the linkage relation between the laser color printer and other laser color printers is different is solved, the communication failure of the Internet of things caused by the addition of the newly added laser color printer and other laser color printers linked with the newly added laser color printer can be effectively avoided, and the large-scale application of the printer system of the Internet of things.
In a possible implementation manner, referring to fig. 3 in conjunction with step S110, the following sub-steps may be specifically implemented:
and a substep S111, establishing bidirectional interactive communication with the newly-added laser color printer by the Internet of things terminal according to the adding request of the newly-added laser color printer in the application environment, and obtaining the Internet of things control type and the Internet of things printing control information of the newly-added laser color printer from the newly-added laser color printer.
And a substep S112, comparing the printing control information of the Internet of things of the current printer set in the application environment with the printing control information of the Internet of things, and obtaining printer relation information between the newly-added laser color printer and the current printer set.
And a substep S113, generating a printing activation file of the application environment according to the printer relationship information and the Internet of things control type.
In a possible implementation manner, referring to fig. 4 in conjunction with step S120, the following sub-steps may be specifically implemented:
and a substep S121, determining a corresponding target printing queue and obtaining a queue identifier of the target printing queue by the server according to the print activation file, wherein the average matching degree of the printer relation between each laser color printer and the newly-added laser color printer in the target printing queue and the printer relation information exceeds the set matching degree.
And a substep S122, configuring queue configuration information aiming at the print activation file according to the configuration information of the Internet of things of each laser color printer in the target print queue.
And a substep S123 of generating printer configuration information of the newly added laser color printer according to the queue configuration information, the queue identification of the target printing queue and the printing activation file.
In a possible implementation manner, for the substep S122, specifically, a linkage communication process result obtained by each laser color printer in the target printing queue through a simulated linkage printing process may be obtained according to the configuration information of the internet of things of each laser color printer in the target printing queue, then, a first communication information of each laser color printer in the linkage communication process and a second communication information of each laser color printer in the linkage communication process result are determined, and a corresponding relationship between the first communication information and the second communication information is established.
And then, determining third communication information of each laser color printer in the linkage communication process in a preset number of laser color printers with the same Internet of things control type, selecting any N laser color printers based on each communication interaction node in the linkage communication process, and determining first communication information and second communication information corresponding to the N laser color printers by utilizing the corresponding relation, wherein N is a positive integer greater than 2.
Then, according to the third communication information of the laser color printer, the first communication information and the second communication information corresponding to the N laser color printers, the fourth communication information of the laser color printer in the process of the disconnection linkage communication is determined, wherein the communication breakpoint value in the fourth communication information of the laser color printer is determined according to the communication breakpoint value in the first communication information and the communication breakpoint value in the second communication information corresponding to the two laser color printers, and the communication breakpoint value in the third communication information of the laser color printer, the communication breakpoint recovery value in the fourth communication information of the laser color printer is determined according to the communication breakpoint recovery value in the first communication information and the communication breakpoint recovery value in the second communication information corresponding to the two laser color printers, and the communication breakpoint recovery value in the third communication information of the laser color printer, and determining that at most one of the two laser color printers selected by the communication breakpoint value in the fourth communication information of the laser color printers and the two laser color printers selected by the communication breakpoint restoration value in the fourth communication information of the laser color printers is the same laser color printer.
Finally, queue configuration information for the print activation file may be configured according to the first communication information, the second communication information, the third communication information, and the fourth communication information.
Based on the steps, the communication information configuration queue configuration information of each laser color printer simulating the linkage communication process and the disconnection linkage communication process in the linkage printing process is considered, the problem that matching failure or coordination error in the linkage printing process occurs in the linkage printing process when a laser color printer is newly added in a printing queue every time due to different Internet of things control types of the laser color printer and different linkage relations between the laser color printer and other laser color printers in the follow-up process can be effectively solved, and the problem that the Internet of things communication failure occurs in other laser color printers linked with the newly added laser color printer due to the addition of the newly added laser color printer in the follow-up process can be effectively avoided.
In a possible implementation manner, for step S140, the master laser color printer may obtain the internet of things control parameter of the printing type corresponding to each laser color printer according to the effective communication node of each laser color printer corresponding to the queue configuration information and the communication information corresponding to each laser color printer, and obtain the internet of things control sequence result according to the preset internet of things control parameter level range and the internet of things control parameter of the printing type corresponding to the laser color printer.
And then, a control result can be obtained according to a preset control strategy and an Internet of things control sequence result, wherein the control result comprises a first control set and a second control set, the laser color printers contained in the first control set are all of a first type which is the same as the Internet of things control type of the newly-added laser color printer, and the laser color printers contained in the second control set are all of a second type which is different from the Internet of things control type of the newly-added laser color printer.
Then, a statistical result may be obtained according to the number of the laser color printers in the first control set, the number of the laser color printers in the second control set, and the total number of the laser color printers, where the statistical result includes: one or more of the number of the first type of laser color printers, the number of the second type of laser color printers, and a ratio of the number of the first type of laser color printers to the total number of laser color prints.
And then, acquiring a linkage printing configuration result between each laser color printer and the newly added laser color printer in the queue configuration information according to the statistical result.
Then, the linkage printing configuration result may be scanned according to a scanning mode in a preset scanning order to obtain a first scanning node of the linkage printing configuration result.
Next, a second scan node of the target laser color printer corresponding to each first scan node of the ganged print configuration result may be determined.
Next, a plurality of candidate slave laser color printers included in the linkage print configuration information of the linkage print configuration result and a plurality of original laser color printers corresponding to the linkage print configuration result may be determined based on each first scanning node and the corresponding second scanning node of each target laser color printer.
Then, the original laser color printer corresponding to the candidate slave laser color printer may be determined for each candidate slave laser color printer, at least one printing range segment corresponding to the candidate slave laser color printer may be extracted from the original laser color printer corresponding to the candidate slave laser color printer according to the printing member hierarchy of the candidate slave laser color printer in the linkage printing configuration information and the correspondence between the linkage printing configuration information and the original laser color printer corresponding to the candidate slave laser color printer, and sequence information may be set for the printing range segment according to the correspondence between the printing range segment and the linkage printing configuration information for each extracted printing range segment.
Then, sequence information of each printing range segment corresponding to each candidate slave laser color printer can be respectively determined, and each printing range segment can be sorted according to the sequence information.
Then, a weighted judgment can be performed for each sorted printing range segment to obtain a target candidate printer member list corresponding to the linkage printing configuration result.
Then, a slave laser color printer matching the internet of things control type of the newly added laser color printer can be determined from the target printing queue based on the target candidate printer member list.
Then, the selected printer relationship information of the slave laser color printer may be sent to the newly added laser color printer.
In a possible implementation manner, referring to fig. 5 in conjunction with step S150, the following steps may be specifically implemented:
and a substep S151 of acquiring the printing data of the text information and the printing data of the image information of the target printing file according to the configuration information of the Internet of things in the process of starting the printing operation.
And a substep S152 of determining a preset number of printing nodes corresponding to the printing node sequence according to the printing node sequence specified by the target printing file.
And a substep S153 of performing adaptation processing on the print data of the text information, dividing the print data of the text information into a preset number of printing nodes, and performing adaptation processing on the print data of the image information, dividing the print data of the image information into a preset number of printing nodes.
And a substep S154, synthesizing the printing data of the text information segmented into the printing nodes with the preset number according to the printing parameter values of the text information respectively corresponding to the printing nodes with the preset number to obtain first printing data of the text information to be fused and printed, and synthesizing the printing data of the image information segmented into the printing nodes with the preset number according to the printing parameter values of the image information respectively corresponding to the printing nodes with the preset number to obtain second printing data of the image information to be fused and printed.
And a substep S155, determining linkage printing data according to the first printing data and the second printing data and the typesetting sequence of the target printing file, and determining third printing data to be handed to the newly-added laser color printer for printing and fourth printing data to be handed to the slave laser color printer for printing according to the load rate of the newly-added laser color printer and the load rate of the slave laser color printer in the linkage printing data.
In the substep S156, a first printing node for printing the third printing data by the newly added laser color printer and a second printing node for printing the fourth printing data by the laser color printer are determined.
In the substep S157, the newly added laser color printer prints the third print data according to the first print node in the layout order of the print target print document, and prints the fourth print data according to the second print node in the layout order of the print target print document from the laser color printer.
In one possible embodiment, in order to reduce the time in the linkage printing process, improve the printing efficiency, and avoid the unstable communication caused by the too long linkage printing time, for the sub-step S155, the first print data and the second print data may be processed in the order of layout of the target print file to determine initial linked print data, and then, carrying out feature extraction on the initial linkage printing data to obtain a linkage printing feature sequence, and then sequentially dividing the linkage printing feature sequence into a plurality of linkage printing blocks, wherein each linkage printing block comprises a main linkage printing block, each main linkage printing block is spliced with a slave linkage printing block, each main linkage printing block and the slave linkage printing block corresponding to the main linkage printing block respectively comprise a plurality of linkage printing feature information, and the last linkage printing feature information of the main linkage printing block is matched with the first linkage printing feature information of the spliced slave linkage printing block.
On the basis, a low-layer prediction result of a main linkage printing block in each linkage printing block and a high-layer prediction result of each linkage printing block can be respectively calculated according to all the linkage printing blocks, linkage printing data of the low-layer prediction result and the high-layer prediction result corresponding to each linkage printing block are obtained, then a reference printing sequence of the linkage printing data is extracted, a printing queue library of a printing task on a newly-added laser color printer and a slave laser color printer is obtained, and the reference printing sequence comprises a plurality of printing nodes.
Then, for any printed file at the end of the print queue library, dividing the print sequence of any printed file into a plurality of print node subsequences, wherein each print node subsequence comprises at least one print node, the intersection between two adjacent print node subsequences comprises a preset number of print nodes, the preset number is an integer which is greater than or equal to 0 and smaller than a specified value, and the specified value is the quotient of the number of the print nodes included in any printed file and the number of the divided print node subsequences.
Then, determining the repetition degree between each printing node subsequence, and if the repetition degree between each printing node subsequence is greater than a preset repetition degree, determining that the printing sequence of any printing file has a repetition sequence. When the printing sequence of any printing file has a repeated sequence, acquiring a reference printing node subsequence of any printing file, wherein the reference printing node subsequence comprises at least one printing node, and the number of the printing nodes included in the reference printing node subsequence is less than that of the printing nodes included in any printing file. And then, according to the reference printing sequence and the standard printing node subsequence of any printing file, determining the matching degree between the linkage printing data and any printing file, and according to the matching degree between the linkage printing data and any printing file, determining third printing data printed by the newly-added laser color printer and fourth printing data printed by the slave laser color printer according to the load rate of the newly-added laser color printer and the load rate of the slave laser color printer.
Fig. 6 is a schematic structural diagram of a laser color printer 100 for executing the laser color printing method based on the internet of things according to the embodiment of the present application, where the laser color printer 100 may be the newly added laser color printer, the master laser color printer, or the slave laser color printer. As shown in fig. 6, the laser color printer 100 may include a network interface 110, a machine-readable storage medium 120, a processor 130, and a bus 140. The simulation container data of the processor 130 may be one or more, and one processor 130 is taken as an example in fig. 6; the network interface 110, the machine-readable storage medium 120, and the processor 130 may be connected by a bus 140 or otherwise, as exemplified by the connection by the bus 140 in fig. 6.
The machine-readable storage medium 120 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the internet-of-things-based laser color printing method in the embodiments of the present application. The processor 130 detects the software program, instructions and modules stored in the machine-readable storage medium 120, so as to execute various functional applications and data processing of the terminal device, that is, to implement the laser color printing method based on the internet of things, which is not described herein again.
The machine-readable storage medium 120 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 120 may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double data rate Synchronous Dynamic random access memory (DDR SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous link SDRAM (SLDRAM), and direct memory bus RAM (DR RAM). It should be noted that the memories of the systems and methods described herein are intended to comprise, without being limited to, these and any other suitable memory of a publishing node. In some examples, the machine-readable storage medium 120 may further include memory located remotely from the processor 130, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, transit communication networks, and combinations thereof.
The processor 130 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 130. The processor 130 may be a general-purpose processor, a digital signal processor (digital signal processor dsp), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
The laser color printer 100 can exchange information with other devices (e.g., the server 200) through 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 130 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. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. 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, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (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., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), etc.
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.