CN110865776A - Bill printing method and device - Google Patents

Bill printing method and device Download PDF

Info

Publication number
CN110865776A
CN110865776A CN201910945496.2A CN201910945496A CN110865776A CN 110865776 A CN110865776 A CN 110865776A CN 201910945496 A CN201910945496 A CN 201910945496A CN 110865776 A CN110865776 A CN 110865776A
Authority
CN
China
Prior art keywords
printer
printing
physical layer
layer
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910945496.2A
Other languages
Chinese (zh)
Other versions
CN110865776B (en
Inventor
项斌
方堃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN201910945496.2A priority Critical patent/CN110865776B/en
Publication of CN110865776A publication Critical patent/CN110865776A/en
Application granted granted Critical
Publication of CN110865776B publication Critical patent/CN110865776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/126Job scheduling, e.g. queuing, determine appropriate device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application discloses a bill printing method and a bill printing device, which relate to the technical field of printers, wherein the method comprises the following steps: the printer service layer obtains a printing task according to the received printing request and distributes the printing task to a corresponding printer virtual layer; the printer virtual layer monitors the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result of whether the printer physical layer is available; and controlling the physical layer of the printer to print the bill to be printed in the printing task according to the monitoring result. Through the technical scheme, the technical problem that printing fails due to the fact that various software with catering functions simultaneously request bill printing services can be solved, the situation that printing ports are seized, printing task failure is caused, and even deadlock (for example, program blocking) is caused is effectively avoided, and user experience is improved.

Description

Bill printing method and device
Technical Field
The application relates to the technical field of printers, in particular to a bill printing method and a bill printing device.
Background
With the popularization of computer communication technology and networks, the bill printing function becomes one of the core functions in a plurality of business scenes, and software with the bill printing function is also widely applied to the aspects of printing shopping list tickets, financial cash register tickets and the like in large and small markets. The existing software with the bill printing function mostly adopts a mode of receiving a printing task, sending the task to a printer and executing printing operation to realize the bill printing function.
At present, the bill printing in the catering industry is also gradually networked, particularly, the catering industry applies a printer to print ordering tickets and the like, and a large number of merchants generally use software (for example, take-out software) with catering functions and other modes to better participate in competition with the catering industry so as to improve the purchasing power of shops. In an actual application scenario, a merchant may use multiple kinds of software with catering functions at the same time, each kind of software has its own independent printing service, and one printing port of a ticket printer can only serve one printing service at the same time. When a plurality of printing services from different catering software simultaneously request the same printing port of the bill printer to print ordering tickets, the problem of confusion of the printing contents output by the bill printer and the problem of port preemption are easily caused, so that the problem of printing task failure and even deadlock (for example, program jamming) are caused, and the like.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for printing a ticket, and mainly aims to solve the problems in the prior art that when a plurality of types of software with catering functions simultaneously request a ticket printing service, the printing content output by a ticket printer is confused, and a printing port is seized, which causes a printing task failure and even causes a deadlock (for example, a program is stuck).
According to one aspect of the present application, there is provided a ticket printing method, the method including:
the printer service layer obtains a printing task according to the received printing request and distributes the printing task to a corresponding printer virtual layer;
the printer virtual layer monitors the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result whether the printer physical layer corresponding to the printer virtual layer is available;
and controlling a printer physical layer corresponding to the printer virtual layer to print the to-be-printed bill in the printing task according to the monitoring result.
Preferably, the printer service layer obtains a print job according to the received print request, and allocates the print job to a corresponding printer virtual layer, which specifically includes:
the printer service layer generates a printing task containing printer type information according to the received printing request;
and according to the printer physical layer identification in the printing request, distributing the printing task to a printer virtual layer corresponding to the printer physical layer identification.
Preferably, the printer service layer generates a print job including printer type information according to the received print request, and specifically includes:
analyzing the received printing request to obtain printer type information and a printing task;
and performing data assembly on the obtained printer type information and the print task to obtain the print task containing the printer type information.
Preferably, before the printer virtual layer monitors the available state of the corresponding printer physical layer according to the printer type information in the print task, the method further includes:
the printer virtual layer establishes a task queue in advance;
and storing the bills to be printed in the received printing tasks by utilizing the established task queue.
Preferably, a mapping relationship between a printer virtual layer and a printer physical layer is pre-established, and the printer virtual layer monitors an available state of the corresponding printer physical layer according to printer type information in the print task to obtain a monitoring result of whether the printer physical layer is available, specifically including:
if the printer type information in the printing task is a serial port printer or a parallel port printer, monitoring whether the corresponding printer serial port or printer parallel port is in a read-write state by utilizing a pre-established probe thread to obtain a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available;
if the printer type information in the printing task is the internet access printer, monitoring whether the corresponding printer internet access is in a TCP connection state by utilizing a pre-established probe thread to obtain a monitoring result whether a printer physical layer corresponding to the internet access printer is available;
if the printer type information in the printing task is a driving printer, monitoring whether the driving of the corresponding printer physical layer is in an available state by utilizing a pre-established probe thread to obtain a monitoring result whether the printer physical layer corresponding to the driving printer is available;
and if the printer physical layers from different printers are all in an idle state, obtaining the available monitoring result of the printer physical layer corresponding to the printer virtual layer.
Preferably, the controlling, according to the monitoring result, the printer physical layer to print the to-be-printed ticket in the print task specifically includes:
if the monitoring result is the available monitoring result of the printer physical layer corresponding to the printer virtual layer, sending a printing instruction containing a bill to be printed to the printer physical layer;
and the printer physical layer prints according to the received bill to be printed.
Preferably, the controlling the printer physical layer to print the to-be-printed bill in the print task according to the monitoring result specifically further includes:
if the monitoring result is a monitoring result available to a printer physical layer corresponding to the printer virtual layer, locking the rest printer virtual layers in a printer virtual layer pool by the printer virtual layer;
and if the printer virtual layer monitors that the printing of the physical layer of the printer is finished, unlocking the rest printer virtual layers in the printer virtual layer pool.
According to still another aspect of the present application, there is provided a bill printing apparatus, the apparatus including:
the receiving module is used for the printer service layer to obtain a printing task according to the received printing request and distribute the printing task to the corresponding printer virtual layer;
the monitoring module is used for the printer virtual layer to monitor the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result whether the printer physical layer corresponding to the printer virtual layer is available;
and the control module is used for controlling a printer physical layer corresponding to the printer virtual layer to print the to-be-printed bill in the printing task according to the monitoring result.
Preferably, the receiving module specifically includes:
the generating unit is used for generating a printing task containing printer type information by the printer service layer according to the received printing request;
and the allocation unit is used for allocating the printing task to a printer virtual layer corresponding to the printer physical layer identifier according to the printer physical layer identifier in the printing request.
Preferably, the generating unit specifically includes:
analyzing the received printing request to obtain printer type information and a printing task;
and performing data assembly on the obtained printer type information and the print task to obtain the print task containing the printer type information.
Preferably, the method further comprises the following steps:
the establishing module is used for pre-establishing a task queue by the printer virtual layer;
and the storage module is used for storing the to-be-printed bill in the received printing task by utilizing the established task queue.
Preferably, the mapping relationship between the printer virtual layer and the printer physical layer is pre-established, and the monitoring module specifically includes:
the first monitoring unit is used for monitoring whether the corresponding printer serial port or printer parallel port is in a read-write state by utilizing a pre-established probe thread if the printer type information in the printing task is a serial port printer or a parallel port printer, and obtaining a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available;
the second monitoring unit is used for monitoring whether the corresponding printer network port is in a TCP connection state by utilizing a pre-established probe thread if the printer type information in the printing task is the network port printer, so as to obtain a monitoring result whether a printer physical layer corresponding to the network port printer is available;
a third monitoring unit, configured to, if the printer type information in the print task is a driver printer, monitor whether a driver of a corresponding printer physical layer is in an available state by using a pre-established probe thread, so as to obtain a monitoring result whether the printer physical layer corresponding to the driver printer is available;
and the judging unit is used for obtaining the available monitoring result of the printer physical layer corresponding to the printer virtual layer if the printer physical layers from different printers are all in the idle state.
Preferably, the control module specifically includes:
the sending unit is used for sending a printing instruction containing a bill to be printed to the physical layer of the printer if the monitoring result is a monitoring result available to the physical layer of the printer corresponding to the virtual layer of the printer;
and the printing unit is used for printing the physical layer of the printer according to the received bill to be printed.
Preferably, the control module specifically further includes:
a locking unit, configured to lock, by the printer virtual layer, remaining printer virtual layers in a printer virtual layer pool if the monitoring result is a monitoring result available to a printer physical layer corresponding to the printer virtual layer;
and the unlocking unit is used for unlocking the rest printer virtual layers in the printer virtual layer pool if the printer virtual layer monitors that the printing of the physical layer of the printer is finished.
According to yet another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described ticket printing method.
According to yet another aspect of the present application, there is provided an apparatus comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, the processor implementing the ticket printing method when executing the program.
By means of the technical scheme, compared with the prior art, the bill printing method and the bill printing device have the advantages that the printer service layer obtains the printing tasks according to the received printing requests, the printing tasks are distributed to the corresponding printer virtual layers, the corresponding printer virtual layers monitor the available states of the corresponding printer physical layers according to the printer type information in the received printing tasks, the monitoring results of whether the printer physical layers corresponding to the corresponding printer virtual layers are available are obtained, and therefore the printer physical layers corresponding to the corresponding printer virtual layers are controlled to print the bills to be printed in the printing tasks according to the obtained monitoring results. Therefore, whether the corresponding printer physical layer is in an available state or not can be determined by utilizing the created printer physical layer, so that the technical problem that printing fails due to the fact that a plurality of kinds of software with catering functions simultaneously request bill printing services in the prior art is solved well, the situation that printing tasks fail or even deadlocks (for example, program jamming) are caused due to the fact that printing ports are seized is effectively avoided from being confused, the bill printing services from the plurality of kinds of software with catering functions are completed reasonably and orderly, and user experience is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart illustrating a method for printing a ticket according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another method for printing a ticket according to an embodiment of the present application;
fig. 3 is a schematic structural diagram illustrating a bill printing apparatus according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of another bill printing device provided in the embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
When a merchant client uses multiple types of software with catering functions at the same time, the situation that the printing services of the multiple types of software with catering functions use the same printing port at the same time can occur, and when the printing port is occupied by the printing service, other printing services cannot use the current printing port, so that the printing service cannot be continuously executed, for example, the printing service cannot be printed or the printing port cannot be seized between the printing services, thereby causing the problems of deadlock and the like.
To solve the problems existing in the prior art, the present embodiment provides a bill printing method, which can be applied to a client side, so that when printing services from multiple types of software with catering functions are received simultaneously, the bill printing services from the multiple types of software with catering functions are completed reasonably and orderly, and further the experience requirements of merchants are met, as shown in fig. 1, the method includes:
step 101, the printer service layer obtains a print task according to the received print request, and distributes the print task to a corresponding printer virtual layer.
In this embodiment, the printer service layer receives a print request from a service party, parses the received print request to obtain a printer physical layer identifier (for example, printer name information or printer model information), and generates a corresponding print task according to the print request, so that the printer service layer sends the generated print task to a printer virtual layer corresponding to the printer physical layer identifier according to the parsed printer physical layer identifier. The business party is an application program (e.g., take-out software) with a catering function, and is not limited to the application program with the catering function according to the requirements of actual application scenarios, and the category of the application program is not specifically limited here.
And 102, the printer virtual layer monitors the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result of whether the printer physical layer is available.
In this embodiment, the printer virtual layer parses the received print task to obtain printer type information and a to-be-printed ticket, stores the to-be-printed ticket in a pre-established task queue, and performs available state monitoring on a printer physical layer having a mapping relationship with the printer virtual layer according to the printer type information, thereby further executing the print task in the task queue according to the obtained monitoring result.
In an actual application scene, a printer virtual layer monitors a task queue in the printer virtual layer in a polling mode, when the task queue in the printer virtual layer is not empty, available state monitoring is carried out on a printer physical layer which has a mapping relation with the printer virtual layer according to printer type information, whether the printer physical layers of all the printers are in an idle state or not is monitored, and therefore when a printing port of a printer corresponding to a printing task is determined to be available, a bill to be printed in the task queue is printed, and polling is stopped. The printer type information may be from a printing request according to the needs of an actual application scenario, or the printer type information of the corresponding printer may be pre-stored when a mapping relationship between the printer virtual layer and the printer physical layer is established, where the obtaining manner of the printer type information is not specifically limited.
And 103, controlling the physical layer of the printer to print the to-be-printed bill in the printing task according to the monitoring result.
In this embodiment, when the monitoring result indicates that the printing port of the printer corresponding to the printing task is available, the to-be-printed ticket in the task queue is acquired, the printing instruction including the to-be-printed ticket is generated according to the acquired to-be-printed ticket, and the printing instruction is sent to the printer physical layer, so that the printer physical layer completes the corresponding printing service according to the to-be-printed ticket in the received printing instruction.
Further, after monitoring that the printer physical layer completes the corresponding printing service according to the to-be-printed bill in the received printing instruction, the printer virtual layer continues to poll the task queue in the printer virtual layer, and when monitoring that the task queue in the printer virtual layer is not empty again, continues to monitor the available state of the corresponding printer physical layer, thereby completing the corresponding printing service.
Compared with the prior art, the bill printing method provided by the embodiment can determine whether the corresponding printer physical layer is in the available state by utilizing the created printer physical layer, thereby better solving the technical problem that printing fails due to the fact that a plurality of kinds of software with catering functions simultaneously request bill printing services in the prior art, effectively avoiding the confusion of printing contents output by a bill printer, and effectively avoiding the situation that printing tasks fail and even deadlock (for example, program jamming) is caused due to the fact that a printing port is preempted, reasonably and orderly completing the bill printing services from the plurality of kinds of software with catering functions, and improving user experience.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully explain the process in the present embodiment, another ticket printing method is provided, as shown in fig. 2, the method includes:
step 201, the printer service layer generates a print job containing printer type information according to the received print request.
Further, for illustrating the specific implementation process of step 202, as an alternative, the process may specifically include:
and 2011, analyzing the received printing request to obtain the type information of the printer and the printing task.
Step 2012, the obtained printer type information and the print job are subjected to data assembly to obtain the print job containing the printer type information.
Step 202, according to the printer physical layer identifier in the print request, allocating the print task to a printer virtual layer corresponding to the printer physical layer identifier.
In a specific implementation, when a printer service layer of a printer receives print requests from multiple programs (for example, takeout software) at the same time, the received print requests are analyzed to obtain a program identifier, a printer physical layer identifier (for example, printer name information or printer model information), printer type information, and a print job, respectively.
Further, corresponding bill templates are respectively obtained according to the analyzed program identifiers, the obtained bill templates are used for obtaining templated printing tasks, the printing tasks containing the printer type information are generated according to the templated printing tasks and the analyzed printer type information, and therefore the generated printing tasks are respectively sent to the printer virtual layers corresponding to the printer physical layer identifiers according to the analyzed printer physical layer identifiers.
In a practical application scenario, the printer virtual layer is used for storing a task queue, performing polling operation on the task queue, and monitoring the availability status of a printer port. Creating a printer virtual layer pool above the printer physical layer, creating a plurality of printer virtual layers in the printer virtual pool, and configuring independent printer virtual layers for each printer physical layer respectively, namely, establishing a mapping relation between the printer virtual layers and the printer physical layers. And the printer service layer is established on the printer virtual layer and used for receiving printing requests from a plurality of service parties so as to distribute corresponding printing tasks to the printer virtual layer corresponding to the printer physical layer identification by utilizing the corresponding relation of the printer physical layer identification and the printer virtual layer which is stored in advance.
And step 203, the virtual layer of the printer establishes a task queue in advance.
And step 204, storing the to-be-printed bill in the received printing task by using the established task queue.
In specific implementation, a task queue is created in each printer virtual layer, when the printer virtual layer receives a print task containing printer type information sent by a printer service layer, the received print task is analyzed to obtain data of a to-be-printed bill, and the obtained data of the to-be-printed bill is stored in the created task queue.
Step 205, pre-establishing a mapping relationship between a printer virtual layer and a printer physical layer, and if the printer type information in the print task is a serial port printer or a parallel port printer, monitoring whether a corresponding printer serial port or printer parallel port is in a read-write state by using a pre-established probe thread to obtain a monitoring result whether the printer physical layer corresponding to the serial port printer or the parallel port printer is available;
step 206, if the printer type information in the printing task is a network port printer, monitoring whether the corresponding printer network port is in a TCP connection state by utilizing a pre-established probe thread to obtain a monitoring result whether a printer physical layer corresponding to the network port printer is available;
step 207, if the printer type information in the print task is to drive a printer, monitoring whether the drive of the corresponding printer physical layer is in an available state by using a pre-established probe thread to obtain a monitoring result whether the printer physical layer corresponding to the drive printer is available;
and step 208, if all printer physical layers from different printers are in the available idle state, obtaining the available monitoring result of the printer physical layer corresponding to the printer virtual layer.
In specific implementation, the printer type information in the print task is identified to obtain a monitoring mode of the available state of the printer physical layer corresponding to the printer type information, and the probe thread is further activated, so that whether the corresponding printer port is available or not is detected by the probe thread, and whether the printer physical layers of all the printers currently in the connection state are executing the print task (i.e., whether the printers are in the idle state or not) or not is detected, so that a monitoring result of whether the printer physical layers are available or not is obtained.
Specifically, if the printer type information is a serial port printer or a parallel port printer, activating a probe thread, detecting whether a corresponding printer serial port or printer parallel port can read a file by using a file reading and writing mode, and if so, obtaining a monitoring result available for a corresponding printer physical layer; if the printer type information is the internet access printer, activating a probe thread, detecting whether the corresponding printer internet access can establish TCP connection or not by using a TCP connection mode, and if so, obtaining a monitoring result available for a corresponding printer physical layer; and if the printer type information is the drive printer, activating a probe thread, detecting whether the drive of the corresponding printer physical layer is in an available state, and if so, obtaining an available monitoring result of the corresponding printer port.
And further, continuously detecting whether the printer physical layers of all printers in the connection state execute the printing task by using the probe thread, if all the printer physical layers are in the idle state, indicating that all the printers in the current state do not print, namely obtaining a monitoring result available for the printer physical layer corresponding to the printer virtual layer, and ending the probe thread.
Further, when it is monitored that the printer physical layer corresponding to the printer virtual layer completes a corresponding printing task, the detection thread is activated again to perform a new detection. According to the needs of the practical application scenario, timing can also be performed after the probe thread is ended, for example, the probe thread is reactivated after the probe thread is ended for 100ms, so that a new round of detection is performed on the task queue in the virtual layer of the printer, and thus high performance consumption is effectively avoided.
And 209, if the monitoring result is a monitoring result available to the physical layer of the printer corresponding to the virtual layer of the printer, locking the rest virtual layers of the printer in the virtual layer pool of the printer by the virtual layer of the printer.
And step 210, if the monitoring result is a monitoring result available to the printer physical layer corresponding to the printer virtual layer, sending a printing instruction containing a to-be-printed bill to the printer physical layer.
In specific implementation, if the monitoring results that the corresponding printer port is available and the printer physical layers of all the printers currently in the connected state are available are obtained, locking operations are performed on the other printer virtual layers except the current printer virtual layer in the printer virtual layer pool, and meanwhile, a printing instruction containing a to-be-printed bill is sent to the corresponding printer physical layer.
And step 211, the physical layer of the printer prints according to the received bill to be printed.
And step 212, if the printer virtual layer monitors that the printing of the physical layer of the printer is finished, unlocking the rest printer virtual layers in the printer virtual layer pool.
In specific implementation, when it is monitored that the physical layer of the printer completes a corresponding printing task, the task queue in the corresponding virtual layer of the printer is updated, and task information on the client side is updated. And simultaneously, unlocking other printer virtual layers except the current printer virtual layer in the printer virtual layer pool so that the other printer virtual layers can continuously monitor the corresponding printer ports and whether the printer physical layers of all the printers in the current connection state execute the printing tasks or not, thereby reasonably and orderly executing the next printing task.
By applying the method provided by the embodiment, the printer service layer obtains the print task according to the received print request, and distributes the print task to the corresponding printer virtual layer, the corresponding printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the received print task, and obtains a monitoring result whether the printer physical layer corresponding to the corresponding printer virtual layer is available, so that the printer physical layer corresponding to the corresponding printer virtual layer is controlled to print the to-be-printed bill in the print task according to the obtained monitoring result. Therefore, whether the corresponding printer physical layer is in an available state or not can be determined by utilizing the created printer physical layer, so that the technical problem that printing fails due to the fact that a plurality of kinds of software with catering functions simultaneously request bill printing services in the prior art is solved well, the situation that printing tasks fail or even deadlocks (for example, program jamming) are caused due to the fact that printing ports are seized is effectively avoided from being confused, the bill printing services of the plurality of kinds of software with catering functions are completed reasonably and orderly, and the experience requirements of users on bill printing are met.
Further, as a specific implementation of the method shown in fig. 1 and fig. 2, an embodiment of the present application provides a ticket printing apparatus, as shown in fig. 3, the apparatus includes: a receiving module 31, a monitoring module 34 and a control module 35.
The receiving module 31 is configured to obtain a print task by the printer service layer according to the received print request, and allocate the print task to a corresponding printer virtual layer;
the monitoring module 34 is configured to perform available state monitoring on the corresponding printer physical layer by the printer virtual layer according to the printer type information in the print task, so as to obtain a monitoring result of whether the printer physical layer is available;
and the control module 35 is configured to control the printer physical layer to print the to-be-printed bill in the print task according to the monitoring result.
In a specific application scenario, as shown in fig. 4, the apparatus may further include: a building module 33 and a storage module 34.
In a specific implementation, the receiving module 31 specifically includes: a generating unit 311 and an assigning unit 312.
A generating unit 311, specifically configured to generate, by the printer service layer, a print job including printer type information according to the received print request;
the allocating unit 312 is specifically configured to allocate the print task to a printer virtual layer corresponding to the printer physical layer identifier according to the printer physical layer identifier in the print request.
In a specific application scenario, the generating unit 311 specifically further includes: analyzing the received printing request to obtain printer type information and a printing task; and performing data assembly on the obtained printer type information and the print task to obtain the print task containing the printer type information.
In a specific implementation, the establishing module 32 is configured to establish the task queue in advance by the printer virtual layer.
In a specific implementation, the storage module 33 is configured to store the to-be-printed ticket in the received print job by using the established job queue.
In specific implementation, the monitoring module 34 specifically includes: a first monitoring unit 341, a second monitoring unit 342, a third monitoring unit 343, and a determining unit 344.
The first monitoring unit 341 is specifically configured to, if the printer type information in the print task is a serial printer or a parallel printer, monitor whether a corresponding printer serial port or printer parallel port is in a read-write state by using a pre-established probe thread, and obtain a monitoring result whether a printer physical layer corresponding to the serial printer or the parallel printer is available.
The second monitoring unit 342 is specifically configured to, if the printer type information in the print task is a portal printer, monitor whether a corresponding printer portal is in a TCP connection state by using a pre-established probe thread, so as to obtain a monitoring result whether a printer physical layer corresponding to the portal printer is available.
The third monitoring unit 343 is specifically configured to, if the printer type information in the print job is a driver printer, monitor, by using a pre-established probe thread, whether a driver of the corresponding printer physical layer is in an available state, to obtain a monitoring result whether the printer physical layer corresponding to the driver printer is available.
The determining unit 344 is specifically configured to, if printer physical layers from different printers are all in an idle state, obtain a monitoring result available to a printer physical layer corresponding to the printer virtual layer.
In specific implementation, the control module 35 specifically includes: a transmission unit 352 and a printing unit 353.
The sending unit 352 is specifically configured to send a print instruction including a to-be-printed ticket to the printer physical layer if the monitoring result is a monitoring result available to the printer physical layer corresponding to the printer virtual layer.
The printing unit 353 is specifically configured to print, by the printer physical layer, the received to-be-printed ticket.
In specific implementation, the control module 35 further includes: a locking unit 351 and an unlocking unit 354.
The locking unit 351 is specifically configured to lock, by the printer virtual layer, the remaining printer virtual layers in the printer virtual layer pool if the monitoring result is a monitoring result available to the printer physical layer corresponding to the printer virtual layer.
The unlocking unit 354 is specifically configured to unlock the remaining printer virtual layers in the printer virtual layer pool if the printer virtual layer monitors that the printing of the printer physical layer is finished.
It should be noted that other corresponding descriptions of the functional modules and functional units related to the bill printing apparatus provided in this embodiment may refer to the corresponding descriptions in fig. 1 and fig. 2, and are not described herein again.
By applying the bill printing device, whether the corresponding printer physical layer is in an available state or not can be determined by utilizing the created printer physical layer, so that the technical problem that printing fails due to the fact that multiple kinds of software with catering functions simultaneously request bill printing services in the prior art is solved well, the situation that printing contents output by a bill printer are confused, printing ports are seized, printing task failure is caused, and deadlock (for example, program blocking) is even caused is effectively avoided, bill printing services from multiple kinds of software with catering functions are reasonably and orderly completed, and user experience is improved.
Based on the method shown in fig. 1 and fig. 2, correspondingly, the embodiment of the present application further provides a storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the ticket printing method shown in fig. 1 and fig. 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the ticket printing method according to the various implementation scenarios of the present application.
Based on the method shown in fig. 1 and fig. 2 and the virtual device embodiment shown in fig. 3 and fig. 4, in order to achieve the above object, an embodiment of the present application further provides a terminal device, which may specifically be a personal computer, a tablet computer, a smart phone, a smart watch, a POS device, or other network devices, and the terminal device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the ticket printing method as described above and shown in fig. 1 and 2.
Optionally, the above entity devices may further include a user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), etc.
Those skilled in the art will appreciate that the physical device structure of a terminal device provided in this embodiment is not limited to the above physical device, and may include more or less components, or combine some components, or arrange different components.
The storage medium may further include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the two physical devices described above, supporting the operation of the information processing program as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and communication with other hardware and software in the information processing entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. Through the technical scheme who uses this application, compare with current prior art, the orderliness that the bill printed can effectively be improved to this embodiment to further satisfy the user and print the experience demand to the bill.
The embodiment of the application provides the following technical scheme:
a1, a bill printing method, comprising:
the printer service layer obtains a printing task according to the received printing request and distributes the printing task to a corresponding printer virtual layer;
the printer virtual layer monitors the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result of whether the printer physical layer is available;
and controlling the physical layer of the printer to print the bill to be printed in the printing task according to the monitoring result.
A2, the method according to claim a1, wherein the printer service layer obtains a print job according to the received print request, and allocates the print job to a corresponding printer virtual layer, specifically including:
the printer service layer generates a printing task containing printer type information according to the received printing request;
and according to the printer physical layer identification in the printing request, distributing the printing task to a printer virtual layer corresponding to the printer physical layer identification.
A3, the method according to claim a2, wherein the printer service layer generates a print job containing printer type information according to the received print request, specifically comprising:
analyzing the received printing request to obtain printer type information and a printing task;
and performing data assembly on the obtained printer type information and the print task to obtain the print task containing the printer type information.
A4, the method according to claim a1, wherein before the printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the print job, the method further comprises:
the printer virtual layer establishes a task queue in advance;
and storing the bills to be printed in the received printing tasks by utilizing the established task queue.
A5, the method according to claim a1 or a4, wherein a mapping relationship between a printer virtual layer and a printer physical layer is pre-established, and the printer virtual layer monitors an available state of the corresponding printer physical layer according to printer type information in the print job to obtain a monitoring result indicating whether the printer physical layer is available, specifically comprising:
if the printer type information in the printing task is a serial port printer or a parallel port printer, monitoring whether the corresponding printer serial port or printer parallel port is in a read-write state by utilizing a pre-established probe thread to obtain a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available;
if the printer type information in the printing task is the internet access printer, monitoring whether the corresponding printer internet access is in a TCP connection state by utilizing a pre-established probe thread to obtain a monitoring result whether a printer physical layer corresponding to the internet access printer is available;
if the printer type information in the printing task is a driving printer, monitoring whether the driving of the corresponding printer physical layer is in an available state by utilizing a pre-established probe thread to obtain a monitoring result whether the printer physical layer corresponding to the driving printer is available;
and if the printer physical layers from different printers are all in an idle state, obtaining the available monitoring result of the printer physical layer corresponding to the printer virtual layer.
A6, the method according to claim a1, wherein the controlling the printer physical layer to print the ticket to be printed in the print job according to the monitoring result specifically includes:
if the monitoring result is the available monitoring result of the printer physical layer corresponding to the printer virtual layer, sending a printing instruction containing a bill to be printed to the printer physical layer;
and the printer physical layer prints according to the received bill to be printed.
A7, the method according to claim a1 or a6, wherein the controlling the printer physical layer to print the ticket to be printed in the print job according to the monitoring result further comprises:
if the monitoring result is a monitoring result available to a printer physical layer corresponding to the printer virtual layer, locking the rest printer virtual layers in a printer virtual layer pool by the printer virtual layer;
and if the printer virtual layer monitors that the printing of the physical layer of the printer is finished, unlocking the rest printer virtual layers in the printer virtual layer pool.
B8, a ticket printing apparatus, comprising:
the receiving module is used for the printer service layer to obtain a printing task according to the received printing request and distribute the printing task to the corresponding printer virtual layer;
the monitoring module is used for the printer virtual layer to monitor the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result of whether the printer physical layer is available or not;
and the control module is used for controlling the physical layer of the printer to print the bill to be printed in the printing task according to the monitoring result.
B9, the apparatus according to claim B8, the receiving means comprising:
the generating unit is used for generating a printing task containing printer type information by the printer service layer according to the received printing request;
and the allocation unit is used for allocating the printing task to a printer virtual layer corresponding to the printer physical layer identifier according to the printer physical layer identifier in the printing request.
B10, the apparatus according to claim B9, the generating unit comprising:
analyzing the received printing request to obtain printer type information and a printing task;
and performing data assembly on the obtained printer type information and the print task to obtain the print task containing the printer type information.
B11, the apparatus of claim B8, further comprising:
the establishing module is used for pre-establishing a task queue by the printer virtual layer;
and the storage module is used for storing the to-be-printed bill in the received printing task by utilizing the established task queue.
B12, the apparatus according to claim B8 or B11, wherein the mapping relationship between the printer virtual layer and the printer physical layer is pre-established, and the monitoring module specifically includes:
the first monitoring unit is used for monitoring whether the corresponding printer serial port or printer parallel port is in a read-write state by utilizing a pre-established probe thread if the printer type information in the printing task is a serial port printer or a parallel port printer, and obtaining a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available;
the second monitoring unit is used for monitoring whether the corresponding printer network port is in a TCP connection state by utilizing a pre-established probe thread if the printer type information in the printing task is the network port printer, so as to obtain a monitoring result whether a printer physical layer corresponding to the network port printer is available;
a third monitoring unit, configured to, if the printer type information in the print task is a driver printer, monitor whether a driver of a corresponding printer physical layer is in an available state by using a pre-established probe thread, so as to obtain a monitoring result whether the printer physical layer corresponding to the driver printer is available;
and the judging unit is used for obtaining the available monitoring result of the printer physical layer corresponding to the printer virtual layer if the printer physical layers from different printers are all in the idle state.
B13, the device of claim B8, the control module comprising:
the sending unit is used for sending a printing instruction containing a bill to be printed to the physical layer of the printer if the monitoring result is a monitoring result available to the physical layer of the printer corresponding to the virtual layer of the printer;
and the printing unit is used for printing the physical layer of the printer according to the received bill to be printed.
B14, the apparatus of claim B8 or B13, the control module further comprising:
a locking unit, configured to lock, by the printer virtual layer, remaining printer virtual layers in a printer virtual layer pool if the monitoring result is a monitoring result available to a printer physical layer corresponding to the printer virtual layer;
and the unlocking unit is used for unlocking the rest printer virtual layers in the printer virtual layer pool if the printer virtual layer monitors that the printing of the physical layer of the printer is finished.
C15, a storage medium having stored thereon a computer program which, when executed by a processor, implements the ticket printing method of any of claims a1 to a 7.
D16, an apparatus comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, the processor when executing the program implementing the ticket printing method of any of claims a1 to a 7.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A ticket printing method, comprising:
the printer service layer obtains a printing task according to the received printing request and distributes the printing task to a corresponding printer virtual layer;
the printer virtual layer monitors the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result of whether the printer physical layer is available;
and controlling the physical layer of the printer to print the bill to be printed in the printing task according to the monitoring result.
2. The method according to claim 1, wherein the printer service layer obtains a print job according to the received print request, and allocates the print job to a corresponding printer virtual layer, specifically including:
the printer service layer generates a printing task containing printer type information according to the received printing request;
and according to the printer physical layer identification in the printing request, distributing the printing task to a printer virtual layer corresponding to the printer physical layer identification.
3. The method according to claim 2, wherein the printer service layer generates a print job including printer type information according to the received print request, and specifically includes:
analyzing the received printing request to obtain printer type information and a printing task;
and performing data assembly on the obtained printer type information and the print task to obtain the print task containing the printer type information.
4. The method according to claim 1, wherein before the printer virtual layer performs the available status monitoring on the corresponding printer physical layer according to the printer type information in the print job, the method further comprises:
the printer virtual layer establishes a task queue in advance;
and storing the bills to be printed in the received printing tasks by utilizing the established task queue.
5. The method according to claim 1 or 4, wherein a mapping relationship between a printer virtual layer and a printer physical layer is pre-established, and the printer virtual layer performs available state monitoring on the corresponding printer physical layer according to printer type information in the print job to obtain a monitoring result of whether the printer physical layer is available, specifically comprising:
if the printer type information in the printing task is a serial port printer or a parallel port printer, monitoring whether the corresponding printer serial port or printer parallel port is in a read-write state by utilizing a pre-established probe thread to obtain a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available;
if the printer type information in the printing task is the internet access printer, monitoring whether the corresponding printer internet access is in a TCP connection state by utilizing a pre-established probe thread to obtain a monitoring result whether a printer physical layer corresponding to the internet access printer is available;
if the printer type information in the printing task is a driving printer, monitoring whether the driving of the corresponding printer physical layer is in an available state by utilizing a pre-established probe thread to obtain a monitoring result whether the printer physical layer corresponding to the driving printer is available;
and if the printer physical layers from different printers are all in an idle state, obtaining the available monitoring result of the printer physical layer corresponding to the printer virtual layer.
6. The method according to claim 1, wherein the controlling the printer physical layer to print the to-be-printed ticket in the print job according to the monitoring result specifically comprises:
if the monitoring result is the available monitoring result of the printer physical layer corresponding to the printer virtual layer, sending a printing instruction containing a bill to be printed to the printer physical layer;
and the printer physical layer prints according to the received bill to be printed.
7. The method according to claim 1 or 6, wherein the controlling the printer physical layer to print the ticket to be printed in the print job according to the monitoring result specifically further comprises:
if the monitoring result is a monitoring result available to a printer physical layer corresponding to the printer virtual layer, locking the rest printer virtual layers in a printer virtual layer pool by the printer virtual layer;
and if the printer virtual layer monitors that the printing of the physical layer of the printer is finished, unlocking the rest printer virtual layers in the printer virtual layer pool.
8. A ticket printing apparatus, comprising:
the receiving module is used for the printer service layer to obtain a printing task according to the received printing request and distribute the printing task to the corresponding printer virtual layer;
the monitoring module is used for the printer virtual layer to monitor the available state of the corresponding printer physical layer according to the printer type information in the printing task to obtain a monitoring result of whether the printer physical layer is available or not;
and the control module is used for controlling the physical layer of the printer to print the bill to be printed in the printing task according to the monitoring result.
9. A storage medium on which a computer program is stored, the program realizing the ticket printing method according to any one of claims 1 to 7 when executed by a processor.
10. An apparatus comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the ticket printing method of any of claims 1 to 7 when executing the program.
CN201910945496.2A 2019-09-30 2019-09-30 Bill printing method and device Active CN110865776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945496.2A CN110865776B (en) 2019-09-30 2019-09-30 Bill printing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945496.2A CN110865776B (en) 2019-09-30 2019-09-30 Bill printing method and device

Publications (2)

Publication Number Publication Date
CN110865776A true CN110865776A (en) 2020-03-06
CN110865776B CN110865776B (en) 2023-07-04

Family

ID=69652729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945496.2A Active CN110865776B (en) 2019-09-30 2019-09-30 Bill printing method and device

Country Status (1)

Country Link
CN (1) CN110865776B (en)

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001180051A (en) * 1999-12-22 2001-07-03 Toshiba Corp Printing system
US20030005097A1 (en) * 2001-06-28 2003-01-02 Barnard John D. Print queue manager
US20090303521A1 (en) * 2008-06-06 2009-12-10 Moschip Seminconductor Technology Limited Method and system for sharing of a usb printer to all clients
US20110194136A1 (en) * 2007-08-06 2011-08-11 Shandong New Beiyang Information Technology Co., L Td Print control method and device
US20140307287A1 (en) * 2013-04-16 2014-10-16 Beijing Founder Electronics Co., Ltd. Print scheduling and processing method, apparatus and system
US20140368859A1 (en) * 2011-10-17 2014-12-18 Google Inc. Virtual print queue for roving printing in a cloud-based print service
JP2015179477A (en) * 2014-03-19 2015-10-08 富士ゼロックス株式会社 print control system
CN105183403A (en) * 2015-09-21 2015-12-23 西安电子科技大学 Printing management and control method based on CUPS framework
CN105242890A (en) * 2015-09-24 2016-01-13 桂林电子科技大学 Cloud print service system and implementation method therefor
CN105302502A (en) * 2014-05-29 2016-02-03 中国电信股份有限公司 Method, client, printer, platform and system for implementing print sharing
CN106354447A (en) * 2016-08-31 2017-01-25 东软集团股份有限公司 Printing control method and device and printing system
US20170039007A1 (en) * 2015-08-06 2017-02-09 Citrix Systems, Inc. Autonomous secure printing
US20170048405A1 (en) * 2015-08-11 2017-02-16 Samsung Electronics Co., Ltd. Method and device for using cloud print service
CN106484337A (en) * 2015-08-25 2017-03-08 佳能株式会社 Information processor and its control method and print system
CN106528011A (en) * 2016-11-14 2017-03-22 北京红马科技有限公司 Method, system and equipment capable of simultaneously supporting printing of various types of ticket paper
CN106557288A (en) * 2016-11-15 2017-04-05 华为技术有限公司 A kind of method and device for obtaining print data
CN106610798A (en) * 2015-10-26 2017-05-03 山东新北洋信息技术股份有限公司 Control method, device and system for batch printing of bills
CN106940631A (en) * 2017-05-09 2017-07-11 广东工业大学 A kind of parallel printing system based on controller
CN107632800A (en) * 2017-09-13 2018-01-26 广州云藏信息技术有限公司 Computer-readable recording medium and the method and system for increasing bill printing content
CN107977176A (en) * 2017-11-21 2018-05-01 周雨星 Method of printing, device and equipment
CN108388408A (en) * 2018-02-05 2018-08-10 元镁信息技术服务(上海)有限公司 A kind of print out task management method and equipment
CN110032346A (en) * 2019-03-22 2019-07-19 口碑(上海)信息技术有限公司 Food and drink printer print out task processing method and processing device
CN110221789A (en) * 2019-04-30 2019-09-10 小濠(深圳)科技有限公司 A kind of Method of printing, device, user terminal and computer readable storage medium
CN110399106A (en) * 2019-07-18 2019-11-01 浙江口碑网络技术有限公司 Print control program, the apparatus and system of bill printer

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001180051A (en) * 1999-12-22 2001-07-03 Toshiba Corp Printing system
US20030005097A1 (en) * 2001-06-28 2003-01-02 Barnard John D. Print queue manager
US20110194136A1 (en) * 2007-08-06 2011-08-11 Shandong New Beiyang Information Technology Co., L Td Print control method and device
US20090303521A1 (en) * 2008-06-06 2009-12-10 Moschip Seminconductor Technology Limited Method and system for sharing of a usb printer to all clients
US20140368859A1 (en) * 2011-10-17 2014-12-18 Google Inc. Virtual print queue for roving printing in a cloud-based print service
US20140307287A1 (en) * 2013-04-16 2014-10-16 Beijing Founder Electronics Co., Ltd. Print scheduling and processing method, apparatus and system
JP2015179477A (en) * 2014-03-19 2015-10-08 富士ゼロックス株式会社 print control system
CN105302502A (en) * 2014-05-29 2016-02-03 中国电信股份有限公司 Method, client, printer, platform and system for implementing print sharing
US20170039007A1 (en) * 2015-08-06 2017-02-09 Citrix Systems, Inc. Autonomous secure printing
US20170048405A1 (en) * 2015-08-11 2017-02-16 Samsung Electronics Co., Ltd. Method and device for using cloud print service
CN106484337A (en) * 2015-08-25 2017-03-08 佳能株式会社 Information processor and its control method and print system
CN105183403A (en) * 2015-09-21 2015-12-23 西安电子科技大学 Printing management and control method based on CUPS framework
CN105242890A (en) * 2015-09-24 2016-01-13 桂林电子科技大学 Cloud print service system and implementation method therefor
CN106610798A (en) * 2015-10-26 2017-05-03 山东新北洋信息技术股份有限公司 Control method, device and system for batch printing of bills
CN106354447A (en) * 2016-08-31 2017-01-25 东软集团股份有限公司 Printing control method and device and printing system
CN106528011A (en) * 2016-11-14 2017-03-22 北京红马科技有限公司 Method, system and equipment capable of simultaneously supporting printing of various types of ticket paper
CN106557288A (en) * 2016-11-15 2017-04-05 华为技术有限公司 A kind of method and device for obtaining print data
CN106940631A (en) * 2017-05-09 2017-07-11 广东工业大学 A kind of parallel printing system based on controller
CN107632800A (en) * 2017-09-13 2018-01-26 广州云藏信息技术有限公司 Computer-readable recording medium and the method and system for increasing bill printing content
CN107977176A (en) * 2017-11-21 2018-05-01 周雨星 Method of printing, device and equipment
CN108388408A (en) * 2018-02-05 2018-08-10 元镁信息技术服务(上海)有限公司 A kind of print out task management method and equipment
CN110032346A (en) * 2019-03-22 2019-07-19 口碑(上海)信息技术有限公司 Food and drink printer print out task processing method and processing device
CN110221789A (en) * 2019-04-30 2019-09-10 小濠(深圳)科技有限公司 A kind of Method of printing, device, user terminal and computer readable storage medium
CN110399106A (en) * 2019-07-18 2019-11-01 浙江口碑网络技术有限公司 Print control program, the apparatus and system of bill printer

Also Published As

Publication number Publication date
CN110865776B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
US8505004B2 (en) Methods and systems for providing software updates using a cloud administration system
US9552246B2 (en) Out-of-band monitoring and managing of self-service terminals (SSTs)
CN102043645B (en) Plug-in loading method and device
CN111259030A (en) Thread execution method and device based on distributed lock and storage medium
CN109243425A (en) Speech recognition test method, device, system, computer equipment and storage medium
US10755255B2 (en) Standardizing point of sale services and leveraging instances of the PLU data
EP3076373A1 (en) Discoverable and shareable device brokers in pos system
CN112135185A (en) Screen projection method, device, equipment and storage medium based on NFC technology
EP3155554A1 (en) Electronic device, system and method for nfc
CN112486620A (en) Cross-process off-screen rendering method and device, electronic equipment and storage medium
US20070168471A1 (en) Method for providing network resources
CN109582445A (en) Message treatment method, device, electronic equipment and computer readable storage medium
CN111415146A (en) Resource data processing method, device and equipment
US7924447B2 (en) Method and system for workload balancing
CN108984321A (en) A kind of mobile terminal and its method for limiting, the storage medium of interprocess communication
CN108924128A (en) A kind of mobile terminal and its method for limiting, the storage medium of interprocess communication
CN110865776B (en) Bill printing method and device
CN111681157A (en) Image rendering method and system
US20060195586A1 (en) Sessions and terminals configured for binding in an extensible manner
CN114265655A (en) Cloud application data processing method, device and system and storage medium
CN112667441A (en) Service module scheduling method, system and storage medium based on fault-tolerant function
CN108122104B (en) Method and apparatus for controlling access and configuration of point-of-sale peripherals
CN113282376A (en) UKey virtual machine penetration method applied to cloud platform architecture
CN113723758A (en) Method and device for managing work tasks, storage medium and electronic equipment
CN108696472B (en) Request processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant