CN110865776B - Bill printing method and device - Google Patents

Bill printing method and device Download PDF

Info

Publication number
CN110865776B
CN110865776B CN201910945496.2A CN201910945496A CN110865776B CN 110865776 B CN110865776 B CN 110865776B CN 201910945496 A CN201910945496 A CN 201910945496A CN 110865776 B CN110865776 B CN 110865776B
Authority
CN
China
Prior art keywords
printer
physical layer
print
layer
printing
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.)
Active
Application number
CN201910945496.2A
Other languages
Chinese (zh)
Other versions
CN110865776A (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, and relates to the technical field of printers, wherein the method comprises the following steps: 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; the printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the print task to obtain a monitoring result of whether the printer physical layer is available or not; and controlling the physical layer of the printer to print the bill to be printed in the print task according to the monitoring result. Through the technical scheme of this application, can request bill printing service simultaneously at multiple software that has the food and beverage function and lead to the technical problem of printing failure, effectively avoid printing the port to be preempted, lead to printing the condition that the task failure even caused deadlock (for example, the procedure card is dead), promote user experience.

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 has become one of the core functions in numerous business scenarios, and software with the bill printing function is also widely applied to the aspects of shopping list receipt printing, financial receipt and the like in big 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-executing printing operation' to realize the bill printing function.
At present, bill printing in the catering industry is also networked gradually, particularly, the catering industry uses printers to print order tickets and the like, and a large number of merchants usually use software with catering functions (such as takeaway software) and the like to participate in competition in the catering industry better so as to improve purchasing power of shops. In an actual application scenario, a merchant may use multiple pieces of software with catering functions at the same time, each piece of software has its own independent printing service, and one printing port of the ticket printer can only serve one printing service at the same time. When a plurality of printing services from different software with catering functions simultaneously request the same printing port of the bill printer to print the order receipt, the problem of confusion of printing contents output by the bill printer and the problem of preemption of the port are easily caused, so that the printing task fails and even deadlock (e.g. program jam) is caused.
Disclosure of Invention
In view of this, the present application provides a ticket printing method and a device thereof, and mainly aims to solve the problem that when a plurality of software with catering functions simultaneously requests ticket printing services in the prior art, the printed contents output by a ticket printer are mixed, and the technical problem that a printing port is preempted, which causes a printing task failure and even causes deadlock (for example, program blocking).
According to one aspect of the present application, there is provided a ticket printing method comprising:
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;
the printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the print task, and obtains a monitoring result of whether the printer physical layer corresponding to the printer virtual layer is available or not;
and controlling a printer physical layer corresponding to the printer virtual layer to print the bill to be printed in the print task according to the monitoring result.
Preferably, the printer service layer obtains a print job according to the received print request, and distributes the print job to a corresponding printer virtual layer, which specifically includes:
the printer service layer generates a print job containing printer type information according to the received print request;
and distributing 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.
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 carrying out 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 availability status 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 bill to be printed in the received print task by using the established task queue.
Preferably, a mapping relation between a printer virtual layer and a printer physical layer is pre-established, and the printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the print task to obtain a monitoring result of whether the printer physical layer is available, which specifically comprises:
if the printer type information in the print task is a serial printer or a parallel 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, and obtaining 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 print task is a network port printer, monitoring whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread, and obtaining a monitoring result whether a printer physical layer corresponding to the network port printer is available;
if the printer type information in the print task is a driving printer, monitoring whether the driving of the corresponding printer physical layer is in an available state by using a pre-established probe thread, and obtaining a monitoring result of whether the printer physical layer corresponding to the driving printer is available;
and if the printer physical layers from different printers are in an idle state, obtaining a monitoring result of the availability of the printer physical layer corresponding to the printer virtual layer.
Preferably, the controlling the printer physical layer to print the bill to be printed in the print task 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 the bill to be printed to the printer physical layer;
and the physical layer of the printer prints according to the received bill to be printed.
Preferably, the controlling the printer physical layer to print the bill to be printed in the print task according to the monitoring result specifically further includes:
if the monitoring result is a monitoring result that the printer physical layer corresponding to the printer virtual layer is available, the printer virtual layer locks the rest printer virtual layers in the printer virtual layer pool;
and if the printer virtual layer monitors that the printing of the printer physical layer 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 ticket printing apparatus, comprising:
the receiving module is used for obtaining a print task by the printer service layer according to the received print request and distributing the print task to the corresponding printer virtual layer;
the monitoring module is used for monitoring the availability state of the corresponding printer physical layer according to the printer type information in the print task by the printer virtual layer to obtain a monitoring result of whether the printer physical layer corresponding to the printer virtual layer is available or not;
and the control module is used for controlling the printer physical layer corresponding to the printer virtual layer to print the bill to be printed in the print task according to the monitoring result.
Preferably, the receiving module specifically includes:
the generation unit is used for generating a print task containing printer type information according to the received print request by the printer service layer;
and the allocation unit is used for allocating 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.
Preferably, the generating unit specifically includes:
analyzing the received printing request to obtain printer type information and a printing task;
and carrying out 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 establishing module is used for pre-establishing a task queue by the printer virtual layer;
and the storage module is used for storing the bill to be printed in the received print task by utilizing the established task queue.
Preferably, a mapping relation between a virtual layer of a printer and a physical layer of the printer 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 or not by utilizing a pre-established probe thread if the printer type information in the print task is a serial port printer or a parallel port printer, so as to obtain a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available or not;
The second monitoring unit is used for monitoring whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread if the printer type information in the print task is a network port printer, so as to obtain a monitoring result of whether a printer physical layer corresponding to the network port printer is available;
the third monitoring unit is used for monitoring whether the drive of the corresponding printer physical layer is in an available state or not by utilizing a pre-established probe thread if the printer type information in the print task is the drive printer, and obtaining a monitoring result of whether the printer physical layer corresponding to the drive printer is available or not;
and the judging unit is used for obtaining available monitoring results of the printer physical layers corresponding to the printer virtual layers if the printer physical layers from different printers are in idle states.
Preferably, the control module specifically includes:
the sending unit is used for sending a printing instruction containing a bill to be printed to the printer physical layer if the monitoring result is an available monitoring result of the printer physical layer corresponding to the printer virtual layer;
and the printing unit is used for printing according to the received bill to be printed by the printer physical layer.
Preferably, the control module specifically further includes:
the locking unit is used for locking the rest printer virtual layers in the printer virtual layer pool if the monitoring result is the available monitoring result of the 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 printer physical layer is finished.
According to still 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 ticket printing method described above.
According to still another aspect of the present application, there is provided an apparatus including 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 described above when executing the program.
By means of the technical scheme, compared with the prior art, the bill printing method and device provided by the application, the printer service layer obtains the printing task according to the received printing request, distributes the printing task to the corresponding printer virtual layer, monitors the availability status of the corresponding printer physical layer according to the received printer type information in the printing task by the corresponding printer virtual layer, and obtains the monitoring result of whether the printer physical layer corresponding to the corresponding printer virtual layer is available or not, so that the bill to be printed in the printing task is printed by the printer physical layer corresponding to the corresponding printer virtual layer is controlled according to the obtained monitoring result. Therefore, whether the corresponding printer physical layer is in an available state can be determined by utilizing the created printer physical layer, so that the technical problem that printing fails due to the fact that various pieces of software with dining functions simultaneously request bill printing services in the prior art is solved well, the situation that printing contents output by the bill printer are mixed up, printing ports are preempted, and even deadlock (for example, program blocking) is caused due to the fact that printing tasks fail is avoided effectively, bill printing services from the various pieces of software with the dining 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 may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 shows a schematic flow chart of a ticket printing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of another method for printing notes according to an embodiment of the present application;
fig. 3 shows a schematic structural diagram of a ticket printing apparatus according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of another ticket printing apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
When the merchant client side uses various pieces of software with catering functions at the same time, the situation that the printing service of the various pieces of software with catering functions uses the same printing port can occur, 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 service cannot be preempted by the printing port, and the problems of deadlock and the like are caused.
Aiming at the problems existing in the prior art, the embodiment provides a bill printing method which can be applied to a client side, so that when printing services from various pieces of software with catering functions are received at the same time, the bill printing services from the various pieces of software with catering functions are reasonably and orderly completed, and further the experience requirements of merchants are met, as shown in fig. 1, the method comprises the following steps:
and step 101, the printer service layer obtains a print task according to the received print request, and distributes the print task to the 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 (e.g., printer name information or printer model information, etc.), and generates a corresponding print job according to the print request, so that the printer service layer sends the generated print job 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 (for example, takeaway software) with a catering function, and is not limited to the application program with the catering function according to the requirements of the actual application scene, and the application program category is not specifically limited here.
And 102, the printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the print task to obtain a monitoring result of whether the printer physical layer is available.
In this embodiment, the printer virtual layer analyzes the received print job to obtain printer type information and a ticket to be printed, stores the ticket to be printed in a pre-established task queue, and monitors the availability status of the printer physical layer having a mapping relationship with the printer virtual layer according to the printer type information, thereby further executing the print job in the task queue according to the obtained monitoring result.
In an actual application scene, the 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, monitors the available state of the printer physical layer with a mapping relation with the printer virtual layer according to the printer type information, and monitors whether the printer physical layers of all printers are in an idle state currently, so that when the fact that the printing ports of the printers corresponding to the printing tasks are available is determined, notes to be printed in the task queue are printed, and polling is stopped. The printer type information may be from a print request according to the needs of an actual application scenario, or may be pre-stored with the printer type information of the corresponding printer when the mapping relationship between the virtual layer and the physical layer of the printer is established, and the method for acquiring the printer type information is not specifically limited here.
And step 103, controlling the printer physical layer to print the bill to be printed in the print task according to the monitoring result.
In this embodiment, when the monitoring result is that the print port of the printer corresponding to the print job is available, the ticket to be printed in the job queue is obtained, and a print instruction including the ticket to be printed is generated according to the obtained ticket to be printed, and is sent to the printer physical layer, so that the printer physical layer completes the corresponding print service according to the ticket to be printed in the received print instruction.
Further, after the printer virtual layer monitors that the printer physical layer completes corresponding printing service according to the to-be-printed bill in the received printing instruction, the task queue in the printer virtual layer is continuously polled, and when the task queue in the printer virtual layer is monitored to be not empty again, the available state monitoring is continuously carried out on the corresponding printer physical layer, so that the corresponding printing service is completed.
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, so that the technical problem that printing fails due to the fact that various pieces of software with dining functions simultaneously request bill printing services in the prior art is solved, confusion of printing contents output by the bill printer and the situation that printing ports are preempted, and deadlock (for example, program blocking) is caused even due to the fact that the printing tasks fail is avoided, bill printing services from various pieces of software with dining functions are completed reasonably and orderly, and user experience is improved.
Further, as a refinement and extension of the specific implementation manner of the foregoing embodiment, for a complete description of the process in this embodiment, another ticket printing method is provided, as shown in fig. 2, where the method includes:
step 201, the printer service layer generates a print job containing printer type information according to the received print request.
Further, to illustrate a specific implementation of step 202, as an alternative, the process may specifically include:
and step 2011, analyzing the received printing request to obtain printer type information and a printing task.
And 2012, performing data assembly on the obtained printer type information and the print job to obtain the print job containing the printer type information.
And 202, distributing 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 implementation, when a printer service layer of a printer receives print requests from a plurality of programs (e.g., takeaway software) at the same time, the received print requests are parsed to obtain program identifications, printer physical layer identifications (e.g., printer name information or printer model information, etc.), printer type information, and print jobs, respectively.
Further, corresponding bill templates are respectively obtained according to the program identifications obtained through analysis, the obtained bill templates are utilized to obtain templated printing tasks, and the printing tasks containing the printer type information are generated according to the templated printing tasks and the printer type information obtained through analysis, so that the generated printing tasks are respectively sent to the printer virtual layers corresponding to the printer physical layer identifications according to the printer physical layer identifications obtained through analysis.
In an actual application scenario, the printer virtual layer is configured to store a task queue, perform a polling operation on the task queue, and monitor an availability status of a printer port. Creating a printer virtual layer pool above the printer physical layers, creating a plurality of printer virtual layers in the printer virtual pool, and respectively configuring independent printer virtual layers for each printer physical layer, namely, establishing a mapping relation between the printer virtual layers and the printer physical layers. The printer service layer is established above the printer virtual layer and is used for receiving printing requests from a plurality of business parties so as to distribute corresponding printing tasks to the printer virtual layer corresponding to the printer physical layer identifiers by utilizing the corresponding relation between the prestored printer physical layer identifiers and the printer virtual layer.
Step 203, the virtual layer of the printer establishes a task queue in advance.
And 204, storing the bill to be printed in the received print 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 which is sent by a printer service layer and contains printer type information, the received print task is analyzed to obtain data of a bill to be printed, and the obtained data of the bill to be printed is stored in the created task queue.
Step 205, pre-establishing a mapping relation between a printer virtual layer and a printer physical layer, and if the printer type information in the print job 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 print job is a network port printer, monitoring whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread, and obtaining a monitoring result of whether a printer physical layer corresponding to the network port printer is available;
Step 207, if the printer type information in the print job is a driving printer, monitoring whether the driving of the corresponding printer physical layer is in an available state by using a pre-established probe thread, and obtaining a monitoring result of whether the printer physical layer corresponding to the driving printer is available;
and step 208, if all the printer physical layers from different printers are in the available idle state, obtaining a monitoring result of the availability of the printer physical layer corresponding to the printer virtual layer.
In specific implementation, the printer type information in the print task is identified, a monitoring mode of the available state of the physical layer of the printer corresponding to the printer type information is obtained, and a probe thread is further activated, so that whether the corresponding printer port is available or not and whether the physical layer of the printer in the current connection state is executing the print task (i.e. whether the physical layer of the printer is in the idle state) are detected by using the probe thread, and a monitoring result of whether the physical layer of the printer is available or not is obtained.
Specifically, if the printer type information is a serial printer or a parallel printer, activating a probe thread, and detecting whether a corresponding printer serial port or printer parallel port can read a file by using a file reading and writing mode, if so, obtaining a monitoring result available for a corresponding printer physical layer; if the printer type information is a network port printer, activating a probe thread, detecting whether a corresponding printer network port can establish TCP connection by using a TCP connection mode, and if so, obtaining a monitoring result available for a corresponding printer physical layer; 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 a monitoring result of the availability of the corresponding printer port.
Further, the probe thread is utilized to continuously detect whether the printer physical layers of all printers currently in a connection state are executing printing tasks, if all the printer physical layers are in an idle state, the fact that all the printers in the current state do not print is indicated, namely available monitoring results of the printer physical layers corresponding to the printer virtual layers are obtained, and the probe thread is ended.
Further, when the physical layer of the printer corresponding to the virtual layer of the printer is monitored to finish the corresponding printing task, the detection thread is activated again to carry out a new detection. According to the requirements of practical application scenes, timing can also be performed after the probe thread is finished, for example, the probe thread is restarted after 100ms of the probe thread is finished, so that a new round of detection is performed on a task queue in a virtual layer of the printer, and high-performance consumption is effectively avoided.
And step 209, if the monitoring result is a monitoring result that the physical printer layer corresponding to the virtual printer layer is available, the virtual printer layer locks the remaining virtual printer layers in the virtual printer layer pool.
Step 210, if the monitoring result is a monitoring result that the printer physical layer corresponding to the printer virtual layer is available, sending a printing instruction containing the bill to be printed to the printer physical layer.
In the implementation, if the corresponding printer port is available and the available monitoring results of the printer physical layers of all printers currently in the connection state are in the idle state are obtained, locking operations are performed on all other printer virtual layers except the current printer virtual layer in the printer virtual layer pool, and meanwhile, a printing instruction containing a bill to be printed is sent to the corresponding printer physical layer.
And 211, printing by the printer physical layer according to the received bill to be printed.
And 212, unlocking the rest 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.
In specific implementation, when the physical layer of the printer is monitored to finish the corresponding printing task, the task queue in the corresponding virtual layer of the printer is updated, and the task information of 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 availability of corresponding printer ports and monitor whether the printer physical layers of all printers currently in a connection state are executing the printing task or not, thereby reasonably and orderly carrying out the next printing task.
By applying the method provided by the embodiment, namely, the printer service layer obtains the print task according to the received print request, distributes the print task to 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 by the corresponding printer virtual layer, and obtains the monitoring result of whether the printer physical layer corresponding to the corresponding printer virtual layer is available or not, thereby controlling the printer physical layer corresponding to the corresponding printer virtual layer to print the bill to be printed in the print task according to the obtained monitoring result. Therefore, whether the corresponding printer physical layer is in an available state can be determined by utilizing the created printer physical layer, so that the technical problem that printing fails due to the fact that various pieces 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 mixed up, printing ports are preempted, and even deadlock (for example, program blocking) is caused due to the fact that printing tasks fail is avoided effectively, bill printing services from various pieces of software with catering functions are completed reasonably and orderly, and the experience requirement of users on bill printing is 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, including: a receiving module 31, a monitoring module 34, a control module 35.
The receiving module 31 is configured to obtain a print job according to the received print request by the printer service layer, and allocate the print job to a corresponding printer virtual layer;
the monitoring module 34 is configured to monitor, by using the printer virtual layer according to the printer type information in the print job, an availability status of the corresponding printer physical layer, to obtain a monitoring result of whether the printer physical layer is available;
and the control module 35 is used for controlling the printer physical layer to print the bill to be printed in the print task according to the monitoring result.
In a specific application scenario, as shown in fig. 4, the present apparatus may further include: a building module 32 and a storage module 33.
In particular, the receiving module 31 specifically includes: a generating unit 311 and an allocating unit 312.
A generating unit 311, specifically configured to generate a print job including printer type information according to the received print request by the printer service layer;
The allocating unit 312 is specifically configured to allocate the print job 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 job to obtain the print job containing the printer type information.
In a specific implementation, the building module 32 is configured to pre-build a task queue for the virtual layer of the printer.
In particular, the storage module 33 is configured to store the ticket to be printed in the received print job by using the established job queue.
In particular implementations, the monitoring module 34 specifically includes: the first monitoring unit 341, the second monitoring unit 342, the third monitoring unit 343, and the judging unit 344.
The first monitoring unit 341 is specifically configured to monitor, if the printer type information in the print job is a serial printer or a parallel printer, whether the corresponding serial port or parallel port of the printer is in a read-write state by using a pre-established probe thread, so as to obtain a monitoring result that corresponds to the serial printer or the parallel port printer and that indicates whether a physical layer of the printer is available.
The second monitoring unit 342 is specifically configured to monitor, if the printer type information in the print job is a network port printer, whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread, so as to obtain a monitoring result of whether a printer physical layer corresponding to the network port printer is available.
The third monitoring unit 343 is specifically configured to monitor, if the printer type information in the print job is the driving printer, whether the driving of the corresponding printer physical layer is in an available state by using a pre-established probe thread, to obtain a monitoring result of whether the printer physical layer corresponding to the driving printer is available.
The judging unit 344 is specifically configured to obtain a monitoring result that is available for the physical layer of the printer corresponding to the virtual layer of the printer if the physical layers of the printers from different printers are all in an idle state.
In particular, the control module 35 comprises: a transmission unit 352, and a printing unit 353.
And the sending unit 352 is specifically configured to send a print instruction including the ticket to be printed to the physical layer of the printer if the monitoring result is a monitoring result that is available to the physical layer of the printer corresponding to the virtual layer of the printer.
The printing unit 353 is specifically configured to print by the printer physical layer according to the received ticket to be printed.
In particular implementations, the control module 35 specifically further includes: a locking unit 351 and an unlocking unit 354.
The locking unit 351 is specifically configured to lock, if the monitoring result is a monitoring result that a physical layer of the printer corresponding to the virtual layer of the printer is available, the virtual layer of the printer to the remaining virtual layers of the virtual layer pool of the printer.
The unlocking unit 354 is specifically configured to unlock remaining printer virtual layers in the printer virtual layer pool if the printer virtual layer monitors that printing of the printer physical layer is finished.
It should be noted that, other corresponding descriptions of each functional module and functional unit related to the bill printing device provided in this embodiment may refer to corresponding descriptions in fig. 1 and fig. 2, and are not repeated herein.
Through 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 various pieces of software with dining functions simultaneously request bill printing services in the prior art is solved well, confusion of printing contents output by the bill printer is effectively avoided, a printing port is preempted, the situation that a printing task fails and even causes deadlock (for example, program is blocked) is caused, bill printing services from various pieces of software with dining functions are completed reasonably and orderly, and user experience is improved.
Based on the above-mentioned method shown in fig. 1 and 2, correspondingly, the embodiment of the present application further provides a storage medium, on which a computer program is stored, which when executed by a processor, implements the above-mentioned ticket printing method shown in fig. 1 and 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, where the software product may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and includes several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the ticket printing method in each implementation scenario of the present application.
Based on the methods shown in fig. 1 and fig. 2 and the virtual device embodiments shown in fig. 3 and fig. 4, in order to achieve the above objects, the embodiments of the present application further provide 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, etc., where the terminal device includes a storage medium and a processor; a storage medium storing a computer program; a processor for executing a computer program to implement the ticket printing method as shown in fig. 1 and 2 described above.
Optionally, the entity devices may also include a user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, and so on. The user interface may include a Display screen (Display), an input unit such as a Keyboard (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.
It will be appreciated by those skilled in the art that the entity device structure of a terminal device provided in this embodiment is not limited to the entity device described above, and may include more or fewer components, or some components may be combined, or different arrangements of components.
The storage medium may also include an operating system, a network communication module. The operating system is a program that manages the two physical device hardware and software resources described above, supporting the execution of information handling programs and other software and/or programs. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the information processing entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware. Through the technical scheme of application, compare with present prior art, this embodiment can effectively improve the order that the bill printed to further satisfy the user and to the experience demand that the bill printed.
The embodiment of the application provides the following technical scheme:
a1, a bill printing method comprises the following steps:
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;
the printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the print task to obtain a monitoring result of whether the printer physical layer is available or not;
and controlling the physical layer of the printer to print the bill to be printed in the print 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 distributes the print job to a corresponding printer virtual layer, and specifically includes:
the printer service layer generates a print job containing printer type information according to the received print request;
and distributing 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.
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, and specifically includes:
Analyzing the received printing request to obtain printer type information and a printing task;
and carrying out 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 bill to be printed in the received print task by using the established task queue.
A5, according to the method of claim A1 or A4, pre-establishing a mapping relation between a printer virtual layer and a printer physical layer, wherein the printer virtual layer monitors the availability status of the corresponding printer physical layer according to the printer type information in the print task to obtain a monitoring result of whether the printer physical layer is available or not, and specifically comprises the following steps:
if the printer type information in the print task is a serial printer or a parallel 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, and obtaining 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 print task is a network port printer, monitoring whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread, and obtaining a monitoring result whether a printer physical layer corresponding to the network port printer is available;
if the printer type information in the print task is a driving printer, monitoring whether the driving of the corresponding printer physical layer is in an available state by using a pre-established probe thread, and obtaining a monitoring result of whether the printer physical layer corresponding to the driving printer is available;
and if the printer physical layers from different printers are in an idle state, obtaining a monitoring result of the availability of the printer physical layer corresponding to the printer virtual layer.
A6, according to the method of A1, the physical layer of the printer is controlled to print the bill to be printed in the print task according to the monitoring result, and the method specifically comprises the following steps:
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 the bill to be printed to the printer physical layer;
And the physical layer of the printer prints according to the received bill to be printed.
A7, according to the method of A1 or A6, the method for controlling the printer physical layer to print the bill to be printed in the print job according to the monitoring result specifically further comprises:
if the monitoring result is a monitoring result that the printer physical layer corresponding to the printer virtual layer is available, the printer virtual layer locks the rest printer virtual layers in the printer virtual layer pool;
and if the printer virtual layer monitors that the printing of the printer physical layer is finished, unlocking the rest printer virtual layers in the printer virtual layer pool.
B8, a bill printing device, comprising:
the receiving module is used for obtaining a print task by the printer service layer according to the received print request and distributing the print task to the corresponding printer virtual layer;
the monitoring module is used for monitoring the availability state of the corresponding printer physical layer according to the printer type information in the print task by the printer virtual layer to obtain a monitoring result of whether the printer physical layer is available or not;
and the control module is used for controlling the printer physical layer to print the bill to be printed in the print task according to the monitoring result.
B9, the device of claim B8, the receiving module specifically comprising:
the generation unit is used for generating a print task containing printer type information according to the received print request by the printer service layer;
and the allocation unit is used for allocating 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.
B10, the apparatus of claim B9, the generating unit specifically comprising:
analyzing the received printing request to obtain printer type information and a printing task;
and carrying out 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 bill to be printed in the received print task by utilizing the established task queue.
B12, the device according to claim B8 or B11, pre-establishes a mapping relationship between a printer virtual layer and a printer physical layer, wherein 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 or not by utilizing a pre-established probe thread if the printer type information in the print task is a serial port printer or a parallel port printer, so as to obtain a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available or not;
the second monitoring unit is used for monitoring whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread if the printer type information in the print task is a network port printer, so as to obtain a monitoring result of whether a printer physical layer corresponding to the network port printer is available;
the third monitoring unit is used for monitoring whether the drive of the corresponding printer physical layer is in an available state or not by utilizing a pre-established probe thread if the printer type information in the print task is the drive printer, and obtaining a monitoring result of whether the printer physical layer corresponding to the drive printer is available or not;
and the judging unit is used for obtaining available monitoring results of the printer physical layers corresponding to the printer virtual layers if the printer physical layers from different printers are in idle states.
B13, the device of claim B8, the control module specifically comprising:
the sending unit is used for sending a printing instruction containing a bill to be printed to the printer physical layer if the monitoring result is an available monitoring result of the printer physical layer corresponding to the printer virtual layer;
and the printing unit is used for printing according to the received bill to be printed by the printer physical layer.
B14, the device of claim B8 or B13, the control module, in particular further comprising:
the locking unit is used for locking the rest printer virtual layers in the printer virtual layer pool if the monitoring result is the available monitoring result of the 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 printer physical layer 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 A7.
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 implementing the ticket printing method of any of claims A1 to A7 when the program is executed.
Those skilled in the art will appreciate that the drawings are merely schematic illustrations of one preferred implementation scenario, and that the modules or flows in the drawings are not necessarily required to practice the present application. Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The foregoing application serial numbers are merely for description, and do not represent advantages or disadvantages of the implementation scenario. The foregoing disclosure is merely a few specific implementations of the present application, but the present application is not limited thereto and any variations that can be considered by a person skilled in the art shall fall within the protection scope of the present application.

Claims (16)

1. A ticket printing method, comprising:
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 according to a printer physical layer identifier in the print request;
based on a pre-established mapping relation between the printer virtual layer and the printer physical layer, the printer virtual layer monitors the availability state of the corresponding printer physical layer according to the printer type information in the print task to obtain a monitoring result of whether the printer physical layer is available or not;
And controlling the physical layer of the printer to print the bill to be printed in the print 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 assigns the print job to a corresponding printer virtual layer according to a printer physical layer identifier in the print request, specifically comprising:
the printer service layer generates a print job containing printer type information according to the received print request;
and distributing 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.
3. The method according to claim 2, 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 carrying out 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 of claim 1, wherein the printer virtual layer further comprises, before the availability status monitoring of the corresponding printer physical layer according to the printer type information in the print job:
The printer virtual layer establishes a task queue in advance;
and storing the bill to be printed in the received print task by using 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, the printer virtual layer monitors a availability status of a corresponding printer physical layer according to printer type information in the print job, and obtains a monitoring result of whether the printer physical layer is available, and specifically includes:
if the printer type information in the print task is a serial printer or a parallel 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, and obtaining 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 print task is a network port printer, monitoring whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread, and obtaining a monitoring result whether a printer physical layer corresponding to the network port printer is available;
If the printer type information in the print task is a driving printer, monitoring whether the driving of the corresponding printer physical layer is in an available state by using a pre-established probe thread, and obtaining a monitoring result of whether the printer physical layer corresponding to the driving printer is available;
and if the printer physical layers from different printers are in an idle state, obtaining a monitoring result of the availability 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 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 the bill to be printed to the printer physical layer;
and the physical layer of the printer 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 that the printer physical layer corresponding to the printer virtual layer is available, the printer virtual layer locks the rest printer virtual layers in the printer virtual layer pool;
and if the printer virtual layer monitors that the printing of the printer physical layer 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 obtaining a print task by the printer service layer according to the received print request, and distributing the print task to the corresponding printer virtual layer according to the printer physical layer identifier in the print request;
the monitoring module is used for monitoring the availability state of the corresponding printer physical layer according to the printer type information in the printing task based on the pre-established mapping relation between the printer virtual layer and the printer physical layer, and obtaining a monitoring result of whether the printer physical layer is available or not;
and the control module is used for controlling the printer physical layer to print the bill to be printed in the print task according to the monitoring result.
9. The apparatus of claim 8, wherein the receiving module specifically comprises:
the generation unit is used for generating a print task containing printer type information according to the received print request by the printer service layer;
and the allocation unit is used for allocating 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.
10. The apparatus according to claim 9, wherein the generating unit specifically comprises:
analyzing the received printing request to obtain printer type information and a printing task;
and carrying out data assembly on the obtained printer type information and the print task to obtain the print task containing the printer type information.
11. The apparatus as recited in claim 8, 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 bill to be printed in the received print task by utilizing the established task queue.
12. The device according to claim 8 or 11, characterized in that said monitoring module comprises in particular:
The first monitoring unit is used for monitoring whether the corresponding printer serial port or printer parallel port is in a read-write state or not by utilizing a pre-established probe thread if the printer type information in the print task is a serial port printer or a parallel port printer, so as to obtain a monitoring result whether a printer physical layer corresponding to the serial port printer or the parallel port printer is available or not;
the second monitoring unit is used for monitoring whether the corresponding printer network port is in a TCP connection state by using a pre-established probe thread if the printer type information in the print task is a network port printer, so as to obtain a monitoring result of whether a printer physical layer corresponding to the network port printer is available;
the third monitoring unit is used for monitoring whether the drive of the corresponding printer physical layer is in an available state or not by utilizing a pre-established probe thread if the printer type information in the print task is the drive printer, and obtaining a monitoring result of whether the printer physical layer corresponding to the drive printer is available or not;
and the judging unit is used for obtaining available monitoring results of the printer physical layers corresponding to the printer virtual layers if the printer physical layers from different printers are in idle states.
13. The device according to claim 8, characterized in that said control module comprises in particular:
the sending unit is used for sending a printing instruction containing a bill to be printed to the printer physical layer if the monitoring result is an available monitoring result of the printer physical layer corresponding to the printer virtual layer;
and the printing unit is used for printing according to the received bill to be printed by the printer physical layer.
14. The apparatus according to claim 8 or 13, wherein the control module, in particular, further comprises:
the locking unit is used for locking the rest printer virtual layers in the printer virtual layer pool if the monitoring result is the available monitoring result of the 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 printer physical layer is finished.
15. A storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the ticket printing method of any one of claims 1 to 7.
16. 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 one of claims 1 to 7 when the program is executed.
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 CN110865776A (en) 2020-03-06
CN110865776B true 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106484337A (en) * 2015-08-25 2017-03-08 佳能株式会社 Information processor and its control method and print system
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

Family Cites Families (13)

* 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
US7454482B2 (en) * 2001-06-28 2008-11-18 Canon Information Systems, Inc. Print queue manager
CN101364167A (en) * 2007-08-06 2009-02-11 山东新北洋信息技术股份有限公司 Printing 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
CN104111806B (en) * 2013-04-16 2017-07-21 北大方正集团有限公司 One kind printing scheduling, processing method, device and system
CN105302502B (en) * 2014-05-29 2019-05-10 中国电信股份有限公司 Realize printing shared method, client, printer, platform and system
US10133525B2 (en) * 2015-08-06 2018-11-20 Citrix Systems, Inc. Autonomous secure printing
KR20170019226A (en) * 2015-08-11 2017-02-21 에스프린팅솔루션 주식회사 Method for using cloud print service, and apparatus for performing the same
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
CN110399106A (en) * 2019-07-18 2019-11-01 浙江口碑网络技术有限公司 Print control program, the apparatus and system of bill printer

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015179477A (en) * 2014-03-19 2015-10-08 富士ゼロックス株式会社 print control system
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
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

Also Published As

Publication number Publication date
CN110865776A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
US8854665B2 (en) Information processing system, registration device, and computer readable medium for identifying a user of a printer
CN110414960B (en) Payment processing method and device
US20180043264A1 (en) Game Accessing Method and Processing Method, Server, Terminal, and System
CN104412272B (en) User is set to sign in the method, system and equipment of browser
US8505004B2 (en) Methods and systems for providing software updates using a cloud administration system
EP1859382A2 (en) Multiple device and/or user association
US9430171B2 (en) Management apparatus, management method, non-transitory computer readable medium, and information processing system
CN103049339A (en) Resuming applications and/or exempting applications from suspension
CN109376053A (en) Data processing method, device and mobile terminal
US20160294967A1 (en) Discoverable and shareable device brokers in pos system
EP3155554A1 (en) Electronic device, system and method for nfc
CN109582445A (en) Message treatment method, device, electronic equipment and computer readable storage medium
US20070168471A1 (en) Method for providing network resources
CN110865776B (en) Bill printing method and device
US20100138913A1 (en) Message administration system
US7924447B2 (en) Method and system for workload balancing
US20130238687A1 (en) Information processing apparatus and client management method
CN112687042A (en) Authentication method, authentication device and electronic equipment
WO2018093618A1 (en) Dynamic linking of messaging groups and organisational information
CN114265655A (en) Cloud application data processing method, device and system and storage medium
CN112733101A (en) Cloud server management method, device, storage medium and server terminal
US10284668B2 (en) Managing a logical client for an application
JP5862920B2 (en) Image forming apparatus and program
JP2007140933A (en) Apparatus, method and program for setting device
US11899993B2 (en) Communication device and non-transitory computer-readable medium storing computer readable instruction for communication device that operate in parallel in a first mode and a second mode

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