Method and device for printer to automatically print invoices and printer

Through the communication connection between the server, the user terminal and the printer, the target printer is determined and matched, which solves the security risks and operational complexity problems of automatic printer management in the existing technology, and realizes convenient printing task execution and safe data transmission.

CN118550481APending Publication Date: 2024-08-27北京高德品创科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310167312.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing method of automatically printing invoices with printers has security risks and inconvenient operations. In particular, virus infection and information leakage may occur during file transfer, and connecting a mobile terminal to the printer requires complex debugging and designated IP positioning.

Method used

The server establishes a communication connection with the user terminal and printer, obtains printing demand information, extracts characteristic information to determine the initial target printer, collects running status information for matching, establishes a communication connection with the target printer, and realizes the delivery and connection of printing requirements.

Benefits of technology

It improves the convenience of automatic printer management, reduces security risks, simplifies the connection process between mobile terminals and printers, and ensures the effective execution of printing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550481A
    Figure CN118550481A
Patent Text Reader

Abstract

The invention relates to the technical field of printer management, in particular to a method and device for automatically printing invoices through a printer and the printer. A communication relationship is established between a server and a user terminal as well as a plurality of printers, and the user terminal obtains the plurality of printers of which the communication relationship is to be established through label information in a link channel and printing invoice labels; and enabling the determination of a target printer among the plurality of printers based on the determination of features in the printing requirements in the user terminal, thereby establishing communication between the user terminal and the target printer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of printer management, and is a method, device, and printer for automatically printing invoices. Background Art

[0002] With the development of science and technology, cloud services have emerged for more convenient office and interaction. Cloud services are the increase, use and interaction mode of related services based on the Internet, usually involving the provision of dynamic, scalable and often virtualized resources through the Internet.

[0003] Secondly, printing electronic invoices is indispensable as a document voucher material, and therefore has flooded into the printing service industry. The printing process requires file transfer via a USB flash drive or a mobile hard disk, and then the electronic invoice is printed on a computer connected to the printer. The disadvantage is that the printing work not only relies on the PC for operation, but also the data in the storage disk may be copied to the PC during the file transfer process, which poses a risk of virus infection and information leakage, and thus poses a greater security risk.

[0004] At the same time, when people connect to the printer, they need to perform complex debugging to connect the mobile terminal to the printer and perform subsequent printing work. In addition, for multiple printing devices under the same local area network, the designated printer IP positioning work is also required. The disadvantage is that the printing work of connecting the mobile terminal to the printer is not convenient enough. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a method, device, and printer for automatically printing invoices by a printer. By establishing a server and communicating with the printer and a user terminal, and based on the printing requirements sent by the user terminal, the target printer is determined through the printing requirements and a communication relationship with the target printer is established, thereby realizing the selection of the printer and ultimately the connection of the printer to the network.

[0006] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows: In a first aspect, a method for automatically printing invoices by a printer is applied to a server, the server communicates with a user terminal and a printer, and the method includes: establishing a communication connection with the user terminal through a link channel, obtaining printing demand information sent by the user terminal, and extracting a first label in the link channel, the first label being used to characterize characteristic information in the link channel; determining multiple initial target printers based on the characteristic information; issuing a data collection command to the initial target printer, and collecting operating status information of multiple initial target printers, matching the operating status information with the printing demand information to obtain a target printer, and establishing communication with the target printer, and issuing the printing demand to the target printer.

[0007] In a first implementation manner of the first aspect, a communication protocol matching the server and the user terminal is configured in the link channel, and communication between the user terminal and the server is established based on the communication protocol.

[0008] In a second implementation of the first aspect, the characteristic information is used to characterize the identity information of multiple printers corresponding to the link channel, and the corresponding multiple initial target printers are determined based on the identity information, including: based on a pre-configured identity database, obtaining target identity information based on the acquired identity information and the identity data, and determining the corresponding multiple initial target printers based on the target identity information.

[0009] In a third implementation of the first aspect, operation status information of a plurality of the initial target printers is collected, and the operation status information is matched with the printing requirement information to obtain a target printer, including: obtaining an idle state printer among the initial target printers as a first target printer, and obtaining a printing status feature of the first target printer; and comparing the printing status feature with the printing requirement information to obtain a target printer that meets the conditions.

[0010] In combination with the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the printing requirement information includes the number of printing papers, printing paper specifications, and printing attribute information.

[0011] In combination with the fourth possible implementation of the first aspect, in a fifth possible implementation, the printing status characteristics include printing paper specification information in the printer, the corresponding number of printing papers, printer attribute information, and service life information of the printing components corresponding to the printer attribute information.

[0012] In combination with the fourth possible implementation method of the first aspect, in a sixth possible implementation method, the printing status characteristics are compared with the printing demand information to obtain a target printer that meets the conditions, including comparing the printing attribute information with the printer attribute information and the service life information of the printing components, specifically: obtaining the printing attribute information and extracting attribute characteristics in the attribute information, comparing the attribute characteristics with parameter characteristics in multiple first target printers to obtain a second target printer that meets the printing attributes; obtaining operating data corresponding to the attribute characteristics based on a preset attribute model; comparing the operating data with the corresponding real-time status data in the second target printer, and obtaining a comparison result that is the service life information.

[0013] In combination with the fifth possible implementation method of the first aspect, in the seventh possible implementation method, it also includes sending the target printer information to the user terminal and sending a print connection establishment request, and establishing a communication link between the user terminal and the target printer based on the print connection establishment request.

[0014] In a second aspect, a device for automatically printing invoices by a printer is applied to a server, and the server communicates with a user terminal and a printer. The device includes: a user terminal communication establishment module, which is used to establish a communication connection with the user terminal through a link channel, obtain printing demand information sent by the user terminal, and extract a first label in the link channel; an initial target printer determination module, which is used to determine multiple initial target printers based on feature information; a target printer communication establishment module, which is used to issue a data collection command to the initial target printer, and collect operating status information of multiple initial target printers, match the operating status information with the printing demand information to obtain a target printer, and establish communication with the target printer, and issue the printing demand to the target printer.

[0015] In a third aspect, a printer communicates with the server, receives commands sent by the server, and sends corresponding information and executes corresponding instructions based on the commands.

[0016] In the technical solution provided by the embodiment of the present application, a communication relationship is established between a server and a user terminal and multiple printers, and the user terminal obtains multiple printers with which a communication relationship is to be established through label information in a link channel and printed invoice labels, and determines a target printer among multiple printers based on the characteristics in the printing requirements in the user terminal, thereby establishing communication between the user terminal and the target printer. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] The methods, systems and / or programs in the accompanying drawings will be further described according to exemplary embodiments. These exemplary embodiments will be described in detail with reference to the drawings. These exemplary embodiments are non-limiting exemplary embodiments, wherein example numbers represent similar mechanisms in the various views of the accompanying drawings.

[0019] Figure 1 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application.

[0020] Figure 2 It is a flow chart of a method for automatically printing invoices by a printer shown in some embodiments of the present application.

[0021] Figure 3 It is a schematic block diagram of a device provided according to an embodiment of the present application. Implementation

[0022] In order to better understand the above technical scheme, the technical scheme of the present application is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical scheme of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.

[0023] In the following detailed description, numerous specific details are set forth by way of example in order to provide a comprehensive understanding of the relevant guidance. However, it will be apparent to those skilled in the art that the present application may be practiced without these details. In other cases, well-known methods, procedures, systems, compositions and / or circuits have been described at a relatively high level, without detail, in order to avoid unnecessarily obscuring aspects of the present application.

[0024] Flowcharts are used in the present application to illustrate the execution process performed by the system according to the embodiment of the present application. It should be clearly understood that the execution process of the flowchart may not be performed in order. On the contrary, these execution processes may be performed in reverse order or simultaneously. In addition, at least one other execution process may be added to the flowchart. One or more execution processes may be deleted from the flowchart.

[0025] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.

[0026] (1) In response to is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0027] (2) Based on: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0028] The embodiment of the present application provides a terminal device, which communicates with a user terminal 120 through a link channel, and determines multiple initial target printers according to the labels in the link channel, and is also used to receive a print task issued by the user terminal, and receive the operating status of the printer 130, and compare the print task with the operating status to obtain the target printer, and establish a network connection between the target printer and the user terminal, that is, establish communication, and issue the task to the corresponding printer to complete the printing. In this embodiment, the terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor.

[0029] In this embodiment, the terminal is a server 110, which includes a memory, a processor, and a communication unit with respect to the physical structure of the server. The memory, the processor, and the communication unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The memory is used to store specific information and programs, and the communication unit is used to send the processed information to the corresponding user terminal.

[0030] In this embodiment, the storage module is divided into two storage areas, one of which is a program storage unit and the other is a data storage unit. The program storage unit is equivalent to the firmware area, and the read and write permissions of this area are set to read-only mode, and the data stored in it cannot be erased or changed. The data in the data storage unit can be erased or read and written. When the capacity of the data storage area is full, the newly written data will overwrite the earliest historical data.

[0031] Among them, the memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0032] The processor may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0033] The technical solution provided by the embodiment of the present application is mainly applied in the automated printing management of shared invoice printers, and is aimed at a shared printer that is a multiple printer Internet of Things system that is networked in a specific regional network. It includes multiple printers and a server that is networked with multiple printers. The server sends the printing task to the printer to control and manage the printer. However, in daily use, the communication between the printer and the server does not always exist, because communication will generate data transmission. In order to reduce the communication channel occupied by data transmission and the pressure on the server's storage, the printer and the server do not communicate in real time, but establish and maintain communication when the printing task is initiated and when the printing task is in progress. For the execution of the printing task for a single printer, that is, the communication with the printer is established for a certain printer, then in this case, it is necessary to obtain a target printer that meets the printing requirements so as to establish communication between the target printer and the user terminal, that is, to establish a network between the server and the target printer to achieve a network connection between the target printer and the server, thereby establishing a network connection between the target printer and the user terminal, and realizing the start and execution of the printing task.

[0034] Therefore, in view of the management of automatic printing of invoices by printers in the prior art, this embodiment provides a method for automatic printing of invoices by printers, which is applied to a server, and the server communicates with a user terminal and a printer. The method includes the following process: Step S210: Establish a communication connection with the user terminal through a link channel, obtain printing demand information sent by the user terminal, and extract the first label in the link channel and print the invoice label.

[0035] In this embodiment, the first tag is used to represent characteristic information in the link channel, wherein the characteristic information is used to represent identity information of multiple printers corresponding to the link channel, and determining the corresponding multiple initial target printers based on the identity information includes: Based on a pre-configured identity database, target identity information is obtained by comparing the acquired identity information with the identity data, and a plurality of corresponding initial target printers are determined based on the target identity information.

[0036] Based on a pre-configured invoice type database, and based on the acquired invoice printing requirement label, multiple initial target printers matching the invoice printing requirement label among multiple initial target printers are determined.

[0037] Step S220. Determine a plurality of initial target printers based on the characteristic information.

[0038] In the present embodiment, the printer is not set independently. The premise of this setting is for a shared printer. In order to reduce the operating cost, the number of printers configured in the corresponding shared printing network point is multiple, not one. Moreover, the usage scenarios and printing effects of multiple printers in the shared printing network point are different, and for the user, it is impossible to judge whether the target file printed by him matches a certain printer in the shared printing network point. Therefore, in the present embodiment, the link channel is not a channel corresponding to a separate independent printer, but a link channel corresponding to the printer network point. Among them, the first label configured in the link channel is used to determine the information of the corresponding printer network point, wherein the information about the corresponding independent printer is configured in the first label, that is, the characteristic information, wherein the characteristic information is used to explain the parameter information of multiple printers in the printer network point. Multiple printers are determined by the characteristic information, that is, multiple initial target printers are determined by the characteristic information.

[0039] The determination of the identity information of the initial target printer includes the following processes: Based on a pre-configured identity database, target identity information is obtained by comparing the acquired identity information with the identity data, and a plurality of corresponding initial target printers are determined based on the target identity information.

[0040] Based on a pre-configured invoice type database, and based on the acquired invoice printing requirement label, multiple initial target printers matching the invoice printing requirement label among multiple initial target printers are determined.

[0041] In this embodiment, an identity database corresponding to the printer parameter information is configured in the server, wherein establishment of the data is based on the prior art and will not be described in this embodiment.

[0042] Step S230. Send a data collection command to the initial target printer, collect the operating status information of multiple initial target printers, match the operating status information with the printing demand information to obtain the target printer, and establish communication with the target printer.

[0043] In this embodiment, collecting the operation status information of the plurality of initial target printers and matching the operation status information with the printing demand information to obtain the target printer includes: Acquire an idle printer among the initial target printers as a first target printer, and acquire a printing status feature of the first target printer; The printing status feature is compared with the printing requirement information to obtain a target printer that meets the conditions.

[0044] The printing demand information includes the number of printing papers, printing paper specifications, and printing attribute information. The printing status characteristics include the printing paper specification information in the printer, the corresponding number of printing papers, printer attribute information, and the service life information of the printing components corresponding to the printer attribute information.

[0045] Specifically, the printing state characteristics are compared with the printing demand information to obtain a target printer that meets the conditions, including comparing the printing attribute information with the printer attribute information and the service life information of the printing component, specifically: Acquire the printing attribute information and extract attribute features in the attribute information, compare the attribute features with parameter features in a plurality of first target printers, and obtain a second target printer that meets the printing attributes; Acquire the operation data corresponding to the attribute feature based on a preset attribute model; The operation data is compared with the corresponding real-time status data in the second target printer, and the comparison result is the service life information.

[0046] In this embodiment, the attribute characteristics include characteristics other than basic printing requirements, such as color, paper type, whether it is sealed with plastic, and other attribute information. When the above characteristics are executed on the printer side, they are implemented through the corresponding specific components. For example, the color is based on the toner of multiple colors in the toner cartridge, and the color attribute characteristics are the content of each color in the toner cartridge. This data can be achieved based on the monitoring method for toner cartridges in the prior art and will not be described in this embodiment. Whether it is sealed with plastic is determined based on the stock of raw materials in the plastic sealing component in the printer.

[0047] In this embodiment, the determination of attribute features is implemented based on multiple methods. For example, the determination of color attribute features is based on image recognition technology. Through the picture or document in the printing attribute information sent by the user terminal, image recognition is performed on the image and the document to identify the color distribution in the image and the document. For example, the color is identified by image recognition technology, specifically: The image is detected using the threshold recognition criteria based on the RGB color model to accurately obtain the effective area of ​​the image. The color analysis and recognition of multiple effective areas are performed through the preset deep learning model to generate a color ratio map. The specific color ratio map generation process includes the following steps: Perform color recognition on the effective area of ​​the image to determine multiple target colors contained in the effective area of ​​the image.

[0048] After determining the effective area of ​​the image, the colors contained in the effective area of ​​the image are detected, for example, red, blue, and yellow, which are three target colors.

[0049] Each target color is quantitatively detected to determine the proportional relationship between multiple target colors.

[0050] A color ratio map is generated according to the ratio relationship between multiple target colors.

[0051] For example, after determining that the effective area of ​​the image contains three target colors of red, blue, and yellow, the three target colors are quantitatively detected to detect the color quantity of each color, and then the ratio of the color quantity of each target color to the total color quantity is determined, and the proportional relationship between the multiple target colors is obtained. Further, according to the proportional relationship between the multiple target colors determined above, a color ratio diagram is generated.

[0052] Acquiring the operation data corresponding to the attribute feature based on the preset attribute model specifically includes: For example, a color ratio diagram is obtained, and the colors in the color ratio diagram and the corresponding toner amounts in the corresponding toner cartridges are obtained based on the color attribute model. Because the toner in the printer is not a variety of colors, it generally includes four colors. The corresponding target color is obtained based on the ratio of the colors. A color mixing ratio curve is configured in the attribute model, especially in the color model. The color of the toner used and the specific ratio can be inferred based on the target color. This data is the corresponding operating data.

[0053] Through the processing of this process, the operation data of each attribute execution component in the printer corresponding to the attribute feature can be obtained, and the result of whether the service life information meets the printing requirement can be obtained by comparing the operation data with the real-time status data. When it is determined that the service life information in the second target printer meets the printing requirement, this printer is the final target printer, and communication with the final target printer is established through the server.

[0054] Step S240: Send the target printer information to the user terminal, and send a print connection establishment request, and establish a communication link between the user terminal and the target printer based on the print connection establishment request.

[0055] Also, see Figure 3 , this embodiment provides a device 300, which is applied to a server, and the server communicates with a user terminal and a printer. The device includes: a user terminal communication establishment module 310, which is used to establish a communication connection with the user terminal through a link channel, obtain the printing demand information sent by the user terminal, and extract the first label in the link channel. An initial target printer determination module 320, which is used to determine multiple initial target printers based on feature information. A target printer communication establishment module 330, which is used to send a data collection command to the initial target printer, and collect the operating status information of multiple initial target printers, match the operating status information with the printing demand information to obtain a target printer, and establish communication with the target printer, and send the printing demand to the target printer.

[0056] In the embodiment of the present application, a communication relationship is established between a server and a user terminal and multiple printers, and the user terminal obtains multiple printers with which communication relationships are to be established through label information in a link channel, and determines a target printer among multiple printers based on the characteristics in the printing requirements in the user terminal, thereby establishing communication between the user terminal and the target printer.

[0057] It should be understood that, for technical terms that are not explained in the above content, those skilled in the art can unambiguously determine their meanings by deducing from the above disclosed content and are not limited here.

[0058] Those skilled in the art can unambiguously determine some preset, benchmark, predetermined, set and preferred labeled technical features / technical terms based on the above disclosed content, such as thresholds, threshold intervals, threshold ranges, etc. For some unexplained technical feature terms, those skilled in the art are fully capable of reasonably and unambiguously deducing based on the logical relationship of the context, so as to clearly and completely implement the above technical solutions. The prefixes of unexplained technical feature terms, such as "first", "second", "example", "target", etc., can be unambiguously deduced and determined based on the context. The suffixes of unexplained technical feature terms, such as "set", "list", etc., can also be unambiguously deduced and determined based on the context.

[0059] The above contents disclosed in the embodiments of the present application are clear and complete for those skilled in the art. It should be understood that the process of deducing and analyzing the unexplained technical terms based on the above disclosed contents by those skilled in the art is based on the contents recorded in the present application, and therefore the above contents are not a judgment on the creativity of the overall solution.

[0060] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.

[0061] At the same time, the present application uses specific terms to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different parts of this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in at least one embodiment of the present application can be appropriately combined.

[0062] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as a "unit", "component" or "system". In addition, various aspects of the present application may be represented as a computer product located in at least one computer-readable medium, the product including a computer-readable program code.

[0063] A computer readable signal medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer readable signal medium may be any computer readable medium other than a computer readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer readable signal medium may be propagated through any suitable medium, including radio, cable, fiber optic cable, RF, or similar medium, or a combination of any of the above mediums.

[0064] The computer program code required for the execution of various aspects of the present application can be written in any combination of one or more programming languages, including object-oriented programming, such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., or similar conventional programming languages, such as "C" programming language, Visual Basic, Fortran2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages ​​such as Python, Ruby and Groovy or other programming languages. The programming code can be executed entirely on the user's computer, or as an independent software package on the user's computer, or partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).

[0065] In addition, unless expressly stated in the scope of the patent application, the order of the processing elements and sequences described in this application, the use of digital letters, or the use of other names are not intended to limit the order of the processes and methods of this application. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached patent scope is not limited to the disclosed embodiments. On the contrary, the scope of the patent application is intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of the present application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.

[0066] It should also be understood that in order to simplify the description disclosed in this application and thus help understand at least one embodiment of the invention, in the above description of the embodiments of the application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of the application are more than the features mentioned in the claims. In fact, the features of the embodiment are less than all the features of the single embodiment disclosed above.

Claims

1. A method for automatically printing invoices by a printer, characterized in that: Applied to a server, the server communicates with a user terminal and a printer, the method comprising: Establishing a communication connection with the user terminal through a link channel, obtaining invoice printing requirement information sent by the user terminal, and extracting a first tag in the link channel, where the first tag is used to characterize feature information in the link channel; Extracting the printing type label in the invoice printing requirement information; determining a plurality of initial target printers based on the characteristic information and the print type labels; A data collection command is issued to the initial target printer, and the operation status information of multiple initial target printers is collected, the operation status information is matched with the printing demand information to obtain the target printer, and communication with the target printer is established, and the printing demand is issued to the target printer.

2. The method for automatically printing invoices by a printer according to claim 1, characterized in that: The link channel is configured with a communication protocol matching the server and the user terminal, and communication between the user terminal and the server is established based on the communication protocol.

3. The method for automatically printing invoices by a printer according to claim 1, characterized in that: The characteristic information is used to characterize the identity information of the multiple printers corresponding to the link channel, and the corresponding multiple initial target printers are determined based on the identity information and the invoice printing requirement label, including: Based on a pre-configured identity database, the obtained identity information is compared with the identity data to obtain target identity information, and a corresponding plurality of initial target printers is determined based on the target identity information; Based on a pre-configured invoice type database, and based on the acquired invoice printing requirement label, multiple initial target printers matching the invoice printing requirement label among multiple initial target printers are determined.

4. The method for automatically printing invoices by a printer according to claim 1, characterized in that: Collecting the operation status information of the plurality of initial target printers, and matching the operation status information with the printing demand information to obtain the target printer, comprising: Acquire an idle printer among the initial target printers as a first target printer, and acquire a printing status feature of the first target printer; The printing status feature is compared with the printing requirement information to obtain a target printer that meets the conditions.

5. The method for automatically printing invoices by a printer according to claim 4, characterized in that: The printing requirement information includes the number of printing papers, printing paper specifications, and printing attribute information.

6. The method for automatically printing invoices by a printer according to claim 5, characterized in that: The printing status characteristics include printing paper specification information in the printer, the corresponding printing paper quantity, printer attribute information, and service life information of the printing components corresponding to the printer attribute information.

7. The method for automatically printing invoices by a printer according to claim 6, characterized in that: Comparing the printing state characteristics with the printing demand information to obtain a target printer that meets the conditions, including comparing the printing attribute information with the printer attribute information and the service life information of the printing component, specifically: Acquire the printing attribute information and extract attribute features in the attribute information, compare the attribute features with parameter features in a plurality of first target printers, and obtain a second target printer that meets the printing attributes; Acquire the operation data corresponding to the attribute feature based on a preset attribute model; The operation data is compared with the corresponding real-time status data in the second target printer, and the comparison result is the service life information.

8. The method for automatically printing invoices by a printer according to claim 6, characterized in that: The method further includes sending the target printer information to a user terminal, sending a print connection establishment request, and establishing a communication link between the user terminal and the target printer based on the print connection establishment request.

9. A device for automatically printing invoices, characterized in that: Applied to a server, the server communicates with a user terminal and a printer, the device comprises: A user terminal communication establishing module, used to establish a communication connection with the user terminal through a link channel, obtain the printing demand information sent by the user terminal, and extract the first label in the link channel; An initial target printer determination module, used to determine a plurality of initial target printers based on the feature information; The target printer communication establishment module is used to send data collection commands to the initial target printer, collect the operating status information of multiple initial target printers, match the operating status information with the printing demand information to obtain the target printer, establish communication with the target printer, and send the printing demand to the target printer.

10. A printer, characterized in that: Communicate with the server, receive commands sent by the server, and send corresponding information and execute corresponding instructions based on the commands.

Citation Information

Cited By

  • Digital electronic invoice sharing cloud printing method and cloud server

    CN120045148A