CN112860196A - Port blocking printing method and device, equipment and storage medium - Google Patents

Port blocking printing method and device, equipment and storage medium Download PDF

Info

Publication number
CN112860196A
CN112860196A CN202110137097.0A CN202110137097A CN112860196A CN 112860196 A CN112860196 A CN 112860196A CN 202110137097 A CN202110137097 A CN 202110137097A CN 112860196 A CN112860196 A CN 112860196A
Authority
CN
China
Prior art keywords
printing
request
print
data
identification
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.)
Pending
Application number
CN202110137097.0A
Other languages
Chinese (zh)
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.)
Beijing Data Driven Technology Co ltd
Original Assignee
Beijing Data Driven 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 Beijing Data Driven Technology Co ltd filed Critical Beijing Data Driven Technology Co ltd
Priority to CN202110137097.0A priority Critical patent/CN112860196A/en
Publication of CN112860196A publication Critical patent/CN112860196A/en
Pending legal-status Critical Current

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/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application discloses a port blocking printing method which comprises the steps of monitoring an operation request sent to a printer port in real time, obtaining the printing request when the monitored operation request contains the printing request, obtaining printing data according to the printing request, extracting an identifier according to the printing data, and sending the printing data to electronic equipment for displaying after the identifier is obtained. Can accomplish the transformation under the circumstances that the cash environment was received to original receipts silver-colored system of not replacing, reduce transformation cost by a wide margin to can prevent paper consumption bill to print, it is more environmental protection with the paper bill, thereby show the consumption bill digitization with the electron form.

Description

Port blocking printing method and device, equipment and storage medium
Technical Field
The present disclosure relates to the field of cash register system technologies, and in particular, to a method and an apparatus for port blocking printing, a device and a storage medium.
Background
An important ring in the offline consumption link is a consumption bill, the consumption bill is still mainly made of paper bills at present, each detail, consumption amount, time and the like of the consumption can be reflected in the bill, and the consumption bill is printed by a merchant to confirm and complete the consumption. Along with the development of science and technology and the attention of people to environmental protection, paper bills are slowly replaced by electronic bills, and the reform needs to reform the environment of the existing cash register system.
The existing scheme of modification is to replace the cash register system with an electronic bill cash register system, and the cost of the modification is very high.
Disclosure of Invention
In view of this, the present disclosure provides a port blocking printing method, including:
monitoring an operation request sent to a printer port in real time, and acquiring a printing request when the monitored operation request comprises the printing request;
acquiring printing data according to the printing request;
extracting an identifier according to the printing data;
and sending the printing data to electronic equipment for display after the identification is acquired.
In one possible implementation, obtaining the print request includes:
the print request is monitored by a filter driver.
In one possible implementation, acquiring print data according to the print request includes:
and when the printing request is acquired, extracting printing data from the IO buffer area.
In one possible implementation, extracting the identification from the print data includes:
and searching a set keyword in the printing data.
In one possible implementation, returning a print success notification after obtaining the identification comprises:
intercepting the printing request when the set keyword is found;
notifying the cashier software that the print request is complete.
In one possible implementation manner, the method further includes:
and when the identifier is not found, sending the printing request to a printer port.
In one possible implementation manner, the method further includes:
and after the identification is acquired, returning a printing success notice.
According to another aspect of the present disclosure, a port blocking printing apparatus is provided, which is characterized by comprising a printing request monitoring module, a printing data obtaining module, an identifier extracting module and an electronic printing module;
the printing request monitoring module is configured to monitor an operation request sent to a printer port in real time, and when the monitored operation request comprises a printing request, the printing request is acquired;
the printing data acquisition module is configured to acquire printing data according to the printing request;
the identification extraction module is configured to extract an identification according to the printing data;
the electronic printing module is configured to send the printing data to an electronic device for display after the identification is acquired.
According to another aspect of the present disclosure, there is provided a port blocking printing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement any of the methods described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method of any of the preceding.
The method comprises the steps of monitoring an operation request sent to a printer port in real time, obtaining the printing request when the monitored operation request comprises the printing request, obtaining printing data according to the printing request, extracting an identifier according to the printing data, and sending the printing data to the electronic equipment for displaying after the identifier is obtained. Can accomplish the transformation under the circumstances that the cash environment was received to original receipts silver-colored system of not replacing, reduce transformation cost by a wide margin to can prevent paper consumption bill to print, it is more environmental protection with the paper bill, thereby show the consumption bill digitization with the electron form.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
FIG. 1 illustrates a flow chart of a port blocking printing method of an embodiment of the present disclosure;
FIG. 2 illustrates another flow chart of a port blocking printing method of an embodiment of the present disclosure;
FIG. 3 illustrates a block diagram of a port blocking printing device of an embodiment of the present disclosure;
fig. 4 illustrates a block diagram of a port blocking printing apparatus of an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 illustrates a flow chart of a port blocking printing method according to an embodiment of the present disclosure. As shown in fig. 1, the port blocking printing method includes:
step S100, monitoring an operation request sent to a printer port in real time, acquiring a printing request when the monitored operation request comprises the printing request, step S200, acquiring printing data according to the printing request, step S300, extracting an identifier according to the printing data, and step S400, sending the printing data to the electronic equipment for displaying after the identifier is acquired.
The method comprises the steps of monitoring an operation request sent to a printer port in real time, obtaining the printing request when the monitored operation request comprises the printing request, obtaining printing data according to the printing request, extracting an identifier according to the printing data, and sending the printing data to the electronic equipment for displaying after the identifier is obtained. Can accomplish the transformation under the circumstances that the cash environment was received to original receipts silver-colored system of not replacing, reduce transformation cost by a wide margin to can prevent paper consumption bill to print, it is more environmental protection with the paper bill, thereby show the consumption bill digitization with the electron form.
Specifically, referring to fig. 1, step S100 is executed to monitor an operation request sent to a printer port in real time, and when the monitored operation request includes a print request, the print request is acquired.
In one possible implementation, obtaining the print request includes: the print request is monitored by the filter driver. For example, a filter driver (PortFilter) is installed in a computer in the cash register system, so as to refer to fig. 2, step S001 is executed, when the computer sends a print job, step S100 is executed, and a print request sent to the printer can be monitored, so as to intercept the print request.
Further, referring to fig. 1, step S200 is executed to acquire print data according to the print request.
In one possible implementation, acquiring the print data according to the print request includes: upon acquiring the print request, the print data is extracted from the IO buffer. For example, the computer system is a Windows system, a port filter driver is installed in a service driver installation manner, the filter driver may run on a Windows driver layer along with system startup, and the filter driver may monitor a print request sent by the cash register software system to a printer port, when there is a print request, the print request may be obtained, and when the print request is obtained, print data is extracted from an IO buffer area, for example, referring to fig. 3, the print data is a receipt named "my milk tea".
Further, referring to fig. 1, step S300 is performed to extract the identifier according to the print data.
In one possible implementation, extracting the identification from the print data includes: the setting key is searched for in the print data. For example, a keyword is set as "my milk tea", a system of a computer in the cash register system is a Windows system, a port filter driver is installed in a service driver installation manner, the filter driver is started and operated on a Windows driver layer along with the system, and the filter driver can monitor a print request sent by a cash register software system to a printer port, when there is a print request, the print request can be acquired, and when the print request is acquired, print data is extracted from an IO buffer area, for example, see fig. 3, and the print data is a receipt named as "my milk tea". At this time, the keyword "my milk tea" can be extracted, and the identifier is obtained.
Further, referring to fig. 1, step S400 is executed to send the print data to the electronic device for displaying after the identifier is acquired.
In one possible implementation, returning the print success notification after obtaining the identification includes: and when the set keyword is found, intercepting the printing request and informing the cashier software that the printing request is completed. For example, a keyword is set as "my milk tea", a system of a computer in the cash register system is a Windows system, a port filter driver is installed in a service driver installation manner, the filter driver is started and operated on a Windows driver layer along with the system, and the filter driver can monitor a print request sent by a cash register software system to a printer port, when there is a print request, the print request can be acquired, and when the print request is acquired, print data is extracted from an IO buffer area, for example, see fig. 3, and the print data is a receipt named as "my milk tea". At this time, the keyword "my milk tea" may be extracted, the identifier is obtained, after the identifier is obtained, referring to fig. 2, step S400 is executed, the print request is intercepted, the print request is not sent to the printer port, and the upper layer, that is, the cashier software, is notified that the print request is successfully completed this time, so that the port blocking printing process is completed.
In one possible implementation manner, the port blocking printing method of the present disclosure further includes: and when the identifier is not found, sending a printing request to the printer port. For example, the keyword is set as my milk tea, the system of the computer in the cash register system is a Windows system, the port filter driver is installed in a service driver installation mode, the filter driver is started and operated on a Windows driver layer along with the system, and the filter driver can monitor a print request sent by the cash register software system to the printer port, when a print request exists, the print request can be obtained, when the print request is obtained, the print data is extracted from an IO buffer area, when the keyword of my milk tea is not found in the print data, the print request is not intercepted, referring to fig. 2, step S004 is executed, the print request is sent to the printer port, and step S005 is executed to enable the printer to normally print.
Further, in a possible implementation manner, the port blocking printing method of the present disclosure further includes: and after the identification is acquired, sending the printing data to the electronic equipment for displaying. After the identification is obtained, the printing request is intercepted, the printing request is not sent to a printer port, the upper layer is informed that the cash register software successfully completes the printing request, meanwhile, referring to fig. 2, step S002 is executed, the printing data is sent to the electronic equipment, illustratively, in a milk tea shop, after a customer purchases milk tea, the customer purchases a receipt and does not print, step S003 is executed, the receipt is sent to the electronic equipment for displaying, the electronic equipment can be at least one of a tablet device, a mobile phone device and an LED display screen device, so that the printing of paper consumption bills is prevented, the paper consumption bills are not more environment-friendly, and the consumption bills are displayed in an electronic form in a digital mode.
It should be noted that, although the port blocking printing method of the present disclosure has been described above by taking the above steps as examples, those skilled in the art will understand that the present disclosure should not be limited thereto. In fact, the user can flexibly set the port blocking printing method according to personal preference and/or actual application scenes as long as the required functions are achieved.
In this way, by monitoring the operation request sent to the printer port in real time, when the monitored operation request includes a print request, the print request is acquired, the print data is acquired according to the print request, the identifier is extracted according to the print data, and the print data is sent to the electronic device for display after the identifier is acquired. Can accomplish the transformation under the circumstances that the cash environment was received to original receipts silver-colored system of not replacing, reduce transformation cost by a wide margin to can prevent paper consumption bill to print, it is more environmental protection with the paper bill, thereby show the consumption bill digitization with the electron form.
Further, according to another aspect of the present disclosure, there is also provided a port blocking printing apparatus 100. Since the operation principle of the port blocking printing apparatus 100 according to the embodiment of the present disclosure is the same as or similar to that of the port blocking printing method according to the embodiment of the present disclosure, repeated descriptions are omitted. Referring to fig. 3, the port blocking printing apparatus 100 of the embodiment of the present disclosure includes a print request monitoring module 110, a print data obtaining module 120, an identifier extracting module 130, and an electronic printing module 140;
a print request monitoring module 110 configured to monitor an operation request sent to a printer port in real time, and when the monitored operation request includes a print request, obtain the print request;
a print data acquisition module 120 configured to acquire print data in accordance with a print request;
an identifier extraction module 130 configured to extract an identifier from the print data;
and the electronic printing module 140 is configured to send the printing data to the electronic equipment for display after the identification is acquired.
Still further, according to another aspect of the present disclosure, there is also provided a port blocking printing apparatus 200. Referring to fig. 4, a port blocking printing device 200 according to an embodiment of the present disclosure includes a processor 210 and a memory 220 for storing instructions executable by the processor 210. Wherein the processor 210 is configured to execute the executable instructions to implement any of the port blocking printing methods described above.
Here, it should be noted that the number of the processors 210 may be one or more. Meanwhile, in the port blocking printing apparatus 200 of the embodiment of the present disclosure, an input device 230 and an output device 240 may be further included. The processor 210, the memory 220, the input device 230, and the output device 240 may be connected via a bus, or may be connected via other methods, which is not limited in detail herein.
The memory 220, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and various modules, such as: the port blocking printing method of the embodiment of the present disclosure corresponds to a program or a module. The processor 210 executes various functional applications and data processing of the port blocking printing apparatus 200 by running software programs or modules stored in the memory 220.
The input device 230 may be used to receive an input number or signal. Wherein the signal may be a key signal generated in connection with user settings and function control of the device/terminal/server. The output device 240 may include a display device such as a display screen.
According to another aspect of the present disclosure, there is also provided a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by the processor 210, implement any of the port blocking printing methods described above.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A port blocking printing method, comprising:
monitoring an operation request sent to a printer port in real time, and acquiring a printing request when the monitored operation request comprises the printing request;
acquiring printing data according to the printing request;
extracting an identifier according to the printing data;
and sending the printing data to electronic equipment for display after the identification is acquired.
2. The method of claim 1, wherein obtaining a print request comprises:
the print request is monitored by a filter driver.
3. The method of claim 1, wherein obtaining print data in accordance with the print request comprises:
and when the printing request is acquired, extracting printing data from the IO buffer area.
4. The method of claim 1, wherein extracting the identification from the print data comprises:
and searching a set keyword in the printing data.
5. The method of claim 4, wherein returning a print success notification after obtaining the identification comprises:
intercepting the printing request when the set keyword is found;
notifying the cashier software that the print request is complete.
6. The method of claim 1, further comprising:
and when the identifier is not found, sending the printing request to a printer port.
7. The method of claim 1, further comprising:
and after the identification is acquired, returning a printing success notice.
8. A port blocking printing device is characterized by comprising a printing request monitoring module, a printing data acquisition module, an identification extraction module and an electronic printing module;
the printing request monitoring module is configured to monitor an operation request sent to a printer port in real time, and when the monitored operation request comprises a printing request, the printing request is acquired;
the printing data acquisition module is configured to acquire printing data according to the printing request;
the identification extraction module is configured to extract an identification according to the printing data;
the electronic printing module is configured to send the printing data to an electronic device for display after the identification is acquired.
9. A port blocking printing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to carry out the executable instructions when implementing the method of any one of claims 1 to 7.
10. A non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method of any of claims 1 to 7.
CN202110137097.0A 2021-02-01 2021-02-01 Port blocking printing method and device, equipment and storage medium Pending CN112860196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110137097.0A CN112860196A (en) 2021-02-01 2021-02-01 Port blocking printing method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110137097.0A CN112860196A (en) 2021-02-01 2021-02-01 Port blocking printing method and device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112860196A true CN112860196A (en) 2021-05-28

Family

ID=75987015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110137097.0A Pending CN112860196A (en) 2021-02-01 2021-02-01 Port blocking printing method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112860196A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968282A (en) * 2012-11-29 2013-03-13 北京风驰韦尔科技有限公司 Method for achieving electronization of any bill and receipt by intercepting print data
CN103544329A (en) * 2013-10-30 2014-01-29 江苏众瀛联合数据科技有限公司 Collecting method of consumption information
CN110609666A (en) * 2019-08-02 2019-12-24 北京三快在线科技有限公司 Printer configuration method and device, electronic equipment and readable storage medium
CA3060951A1 (en) * 2018-11-14 2020-05-14 10353744 Canada Ltd. Printing data processing method and apparatus, electronic invoice generating method and server
CN111240996A (en) * 2020-02-13 2020-06-05 苏州浪潮智能科技有限公司 Data printing method and device, electronic equipment and storage medium
CN111756799A (en) * 2020-05-20 2020-10-09 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968282A (en) * 2012-11-29 2013-03-13 北京风驰韦尔科技有限公司 Method for achieving electronization of any bill and receipt by intercepting print data
CN103544329A (en) * 2013-10-30 2014-01-29 江苏众瀛联合数据科技有限公司 Collecting method of consumption information
CA3060951A1 (en) * 2018-11-14 2020-05-14 10353744 Canada Ltd. Printing data processing method and apparatus, electronic invoice generating method and server
CN110609666A (en) * 2019-08-02 2019-12-24 北京三快在线科技有限公司 Printer configuration method and device, electronic equipment and readable storage medium
CN111240996A (en) * 2020-02-13 2020-06-05 苏州浪潮智能科技有限公司 Data printing method and device, electronic equipment and storage medium
CN111756799A (en) * 2020-05-20 2020-10-09 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information

Similar Documents

Publication Publication Date Title
CN101114212B (en) Information processing equipment and method
CN107784552B (en) Information push task execution method and device, computer equipment and storage medium
US10908861B2 (en) Information processing method which registers for a web service via an intermediary, image processing apparatus, and information processing system
CN105930109B (en) Document printing method, system and terminal
US10602021B2 (en) Authentication setting system and image forming apparatus
KR20150049299A (en) Apparatus and method for electronic receipt
US9703514B2 (en) Smart mobile tag printing system and tag printing method for the same
JP2014149602A (en) Electronic apparatus, accounting system and program
US11171954B2 (en) Server and non-transitory computer-readable recording medium storing computer-readable instructions for server
CN112860196A (en) Port blocking printing method and device, equipment and storage medium
US10761783B2 (en) Image forming system and image forming apparatus configured to transmit adjustment item data
CN108038403B (en) Card reading method based on NFC technology and client
TWI236831B (en) Method to prompt the updating of a SIM card
US20190057369A1 (en) Sales data processing apparatus, sales data processing method, and recording medium
KR101531787B1 (en) Printing control device, printing control method, and printing system
US20190258435A1 (en) Receipt printer capable of communicating with information terminal
US20160110658A1 (en) Image forming system and image forming apparatus
JP6904443B2 (en) How to manage programs, management terminals, and sales data processing devices
CN109615801B (en) Recording medium, management terminal, and management method for turnover data processing device
CN116361847B (en) Mobile device-based screen capturing prevention method and system
KR101196430B1 (en) Printing apparatus and printing method using RFID card
CN107105113B (en) Image forming system
JP7316082B2 (en) Server device, information system, information processing method, and program
JP2001195480A (en) Unmanned system
US10187551B2 (en) Multifunction peripheral system and control method of multifunction peripheral system for providing printing information based on printing verification information

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