CN113986155A - Printer information inquiry and printing method, terminal device and storage medium - Google Patents
Printer information inquiry and printing method, terminal device and storage medium Download PDFInfo
- Publication number
- CN113986155A CN113986155A CN202111204882.XA CN202111204882A CN113986155A CN 113986155 A CN113986155 A CN 113986155A CN 202111204882 A CN202111204882 A CN 202111204882A CN 113986155 A CN113986155 A CN 113986155A
- Authority
- CN
- China
- Prior art keywords
- printer
- information
- target
- target printer
- file
- 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
Links
- 238000007639 printing Methods 0.000 title claims abstract description 71
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000004891 communication Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000003672 processing method Methods 0.000 claims 1
- 239000000463 material Substances 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1229—Printer resources management or printer maintenance, e.g. device status, power levels
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1236—Connection management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1259—Print job monitoring, e.g. job status
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1268—Job submission, e.g. submitting print job order or request not the print data itself
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1286—Remote printer device, e.g. being remote from client or server via local network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1288—Remote printer device, e.g. being remote from client or server in client-server-printer device configuration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1292—Mobile client, e.g. wireless printing
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/26—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for printing, stamping, franking, typing or teleprinting apparatus
- G07F17/266—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for printing, stamping, franking, typing or teleprinting apparatus for the use of a photocopier or printing device
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F9/00—Details other than those peculiar to special kinds or types of apparatus
- G07F9/001—Interfacing with vending machines using mobile or wearable devices
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F9/00—Details other than those peculiar to special kinds or types of apparatus
- G07F9/002—Vending machines being part of a centrally controlled network of vending machines
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The application discloses a printer information query and printing method, a terminal device and a storage medium. The method comprises the following steps: searching printers in a target range through a preset WeChat applet, and establishing connection with a target printer, wherein the target printer is a printer searched in the target range; acquiring the equipment information, the consumable information and the state information of the target printer, and displaying the equipment information, the consumable information and the state information of the target printer; and sending a file to be printed to the target printer so that the target printer prints the file to be printed.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a printer information query and printing method, a terminal device, and a storage medium.
Background
In office and life, document printing is often required. However, the traditional entity printing shops have high operation cost, so that the pricing is high, the number of the printing shops is gradually reduced, the business hours are fixed, queuing and waiting are frequently needed, and customers cannot realize the printing in time when the printing is urgently needed.
Disclosure of Invention
The application provides a printer information query and printing method, a terminal device and a storage medium.
In a first aspect, a method for querying and printing printer information is provided, which is applied to a terminal device, and the method includes:
searching printers in a target range through a preset WeChat applet, and establishing connection with a target printer, wherein the target printer is a printer searched in the target range;
acquiring the equipment information, the consumable information and the state information of the target printer, and displaying the equipment information, the consumable information and the state information of the target printer;
and sending a file to be printed to the target printer so that the target printer prints the file to be printed.
In a second aspect, a terminal device is provided, which includes:
the network connection module is used for searching printers in a target range through a preset WeChat applet and establishing connection with a target printer, wherein the target printer is a printer searched in the target range;
the information communication module is used for acquiring the equipment information, the consumable information and the state information of the target printer;
the display module is used for displaying the equipment information, the consumable information and the state information of the target printer;
and the file transmission module is used for sending the file to be printed to the target printer so as to enable the target printer to print the file to be printed.
In a third aspect, there is provided another terminal device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to perform the steps of the first aspect and any possible implementation manner thereof.
To achieve the above object, a fourth aspect of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method according to the first aspect.
In the embodiment of the application, the terminal equipment can search the printers in the target range through the preset WeChat applet and establish connection with the target printer, wherein the target printer is the printer searched in the target range; acquiring the equipment information, the consumable information and the state information of the target printer, and displaying the equipment information, the consumable information and the state information of the target printer; to target printer sends and treats the printing file, so that target printer prints treat the printing file, accessible share printer and the online platform that little letter procedure was built, compare traditional print shop and reduced shop and cost of labor, do not have the business hours restriction, in time provide convenient self-service printing service, the user of being convenient for inquires printer device information, consumptive material and state, select the printer to print, can avoid printing in or lack the printer of paper, printing ink, other printers of preferred selection are in order to save time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1 is a schematic flowchart of a printer information query and printing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another method for querying and printing information of a printer according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another terminal device provided in the embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiments of the present application will be described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for querying and printing information of a printer according to an embodiment of the present disclosure. The method can comprise the following steps:
101. and searching printers in a target range through a preset WeChat applet, and establishing connection with a target printer, wherein the target printer is a printer searched in the target range.
The printer information query and printing method in the embodiment of the application can be applied to terminal equipment, including but not limited to mobile terminals such as mobile phones.
Specifically, the printer information query and printing method can be realized by means of the wechat applet, and a user can log in the wechat account through the terminal equipment to enter the preset wechat applet.
The wechat applet mentioned in the embodiments of the present application is an application that can be used without downloading or installing, and a user can open the application by scanning a two-dimensional code or by a search function.
If the terminal device accesses a local area network (such as a certain WiFi), the printer can be automatically searched in the current local area network based on an agreed network protocol through the preset wechat applet, and the printer devices accessing the same local area network can be searched and connected. The manner of establishing connection with the target printer may specifically refer to the description in the embodiment shown in fig. 2.
102. And acquiring the equipment information, the consumable information and the state information of the target printer, and displaying the equipment information, the consumable information and the state information of the target printer.
In one embodiment, the acquiring device information, consumable information, and status information of the target printer includes:
and acquiring the equipment information, the consumable information and the state information of the target printer based on the first transmission protocol and the communication protocol supported by the target printer.
Specifically, a transmission protocol between the terminal device and the printer and a communication protocol connected to the printer may be selected and set as needed, for example, an SNMP protocol that links the printer in a UDP manner may be used to obtain the device information, the consumable information, and the status information.
The device information may mainly include the brand, model, lot, etc. of the printer; the consumable information mainly comprises the residual amount of the consumable, such as the condition of residual paper and the condition of residual ink; the status information mainly indicates the current working status of the printer, such as in an idle state or during printing, the number of documents queued for printing, and the like, which is not limited in the embodiment of the present application.
The user can select a printer based on the searched printer information, for example, a printer (as a target printer) that is paper, has sufficient ink, and is in an idle state can be selected preferentially.
In an optional implementation manner, after the acquiring the device information, the consumable information, and the status information of the target printer, the method further includes:
determining the consumable quantity grade of the target printer according to the consumable information, wherein the consumable quantity grade reflects the residual degree of the consumable of the target printer;
and displaying prompt information on a page for displaying the equipment information, the consumable information and the state information of the target printer, wherein the prompt information comprises the consumable quantity level of the target printer.
Specifically, the consumable quantity level of the target printer can be determined according to the obtained consumable information so as to reflect the consumable remaining degree of the target printer. The corresponding relationship between the consumable information and the consumable quantity level may be preset, for example, the consumable quantity level corresponding to the remaining paper number <40 is: the consumable amount is less, and the consumable amount grade corresponding to the residual paper of more than 100 is as follows: the amount of consumable is sufficient, etc. The judgment threshold value involved therein may be set as needed. Can show the specific numerical value of consumptive material and the consumptive material volume rank that corresponds simultaneously, different consumptive material volume ranks can show for different colours, for example the consumptive material volume shows for red less to realize reminding the effect.
Optionally, after the device information, the consumable information, and the status information of the target printer are displayed, the method further includes:
and under the condition that a printer switching instruction is detected, re-searching the printer or returning to an upper-level equipment searching interface, wherein the equipment searching interface comprises the searched identifier of the printer.
In the case where a plurality of printers are searched, the user can select one target printer from the searched printers to connect. If the user does not select the printer after referring to the device information, the consumable information and the status information of the target printer, the user can select to switch the printer, that is, a command for switching the printer is triggered, the printer can be searched again, or a previous-level device search interface is returned, the device search interface can include the identifier of the searched printer, and the user can select a target printer again.
103. And sending the file to be printed to the target printer so that the target printer prints the file to be printed.
After the connection with the target printer is successful, a connection success message may be displayed. The user can select a file to be printed through the applet and print with the target printer.
In an alternative embodiment, before step 103, the method further includes:
determining a target format adapted to the target printer according to the equipment information of the target printer;
after it is detected that the file to be printed is uploaded, it is determined whether the format of the file to be printed meets the target format, if not, the format of the file to be printed is converted into the target format, and then the step 103 is triggered.
Different brands, models of printers may support identifying and printing different file formats. Specifically, in the applet, print file encoding required by a compatible target printer can be performed according to the acquired device information of the printer. The corresponding relation between different equipment information and the supported file formats can be preset, so that the corresponding target format is determined according to the obtained equipment information of the printer, whether the file to be printed is in the target format is further judged, if yes, the file to be printed can be directly printed by the target printer, if not, the file to be printed can be converted, the format of the file to be printed is converted into the target format, and then the file to be printed is sent to the target printer to be printed.
The user in the embodiment of the application can upload a page from a file in the WeChat applet, select to upload a file to be printed, upload the file to the server through the terminal device after the file is determined, and the server can provide a format conversion function, transcode the file to a file format adaptive to a target printer, and send the file to the target printer for printing. Optionally, the format conversion may also be executed (locally) on the terminal device side, which is not limited in this embodiment of the application.
In one embodiment, the sending the document to be printed to the target printer further includes:
acquiring a printing protocol supported by the target printer;
and communicating with a port of the target printer based on the printing protocol supported by the target printer so as to send the file to be printed to the target printer.
Specifically, when the user performs printing, the user can follow up to obtain the printing protocol supported by the target printer to communicate with the port, for example: IPP, LPD, RAW.
The Internet Printing Protocol (IPP) referred to in the embodiments of the present application is a standard network protocol for printing on the internet, which allows a user to remotely print and manage a printing job through the internet. The user can control various parameters such as the type of paper used by the printed product, the resolution and the like through the related interface.
A Line Printer Daemon (LPD) is a Daemon installed on a UNIX print server. Its function is to wait for the acceptance of a print job from a customer using the Line Printer Remote (LPR) protocol. When the LPD receives a print job, it first temporarily stores the print job in a print queue, which is a subdirectory of files in which many print jobs are waiting for the LPD to process. When the printing device is idle, the LPD takes the print job from the print queue and passes it to the printer for printing.
The RAW protocol is the default protocol for most printing devices. To send a job in RAW format, the print server will open a TCP stream to the printer network interface. This interface is port 9100 for many devices. After the TCP/IP port is created, the Object Identifier (OID) of the device will be queried using SNMP. If the device returns a value, parse the system file tcpmon. ini for a match. If the printer manufacturer provides specific configuration information for a particular device, then the configuration information has been created ready along with the configuration settings.
Optionally, the communicating with the port of the target printer based on the printing protocol supported by the target printer includes:
determining a target printing protocol with the highest priority from the printing protocols supported by the target printer according to preset printing protocol priority information;
and communicating with a port of the target printer based on the target printing protocol.
According to the method and the device, the priorities of different printing protocols can be preset, namely the preset printing protocol priority information is obtained, one printer can possibly support multiple printing protocols, after the printing protocols supported by the target printer are obtained, the printing protocol with the highest priority can be selected according to the preset printing protocol priority information, and port communication is carried out on the basis of the printing protocol priority information.
Specifically, RAW can be preferentially adopted to push a file to be printed, TCP link is adopted between the file and a port of a target printer, the file to be printed is sent to the target printer, and the printer outputs the file.
Optionally, in this embodiment of the present application, a print payment rule may be set as needed, after the user uploads the file to be printed, the payment amount is calculated and displayed according to the type and the number of the file to be printed and the print payment rule of the target printer, and the user selects a supported payment method to pay.
In the embodiment of the application, the terminal equipment can search the printers in the target range through the preset WeChat applet and establish connection with the target printer, wherein the target printer is the printer searched in the target range; acquiring the equipment information, the consumable information and the state information of the target printer, and displaying the equipment information, the consumable information and the state information of the target printer; to target printer sends and treats the printing file, so that target printer prints treat the printing file, accessible share printer and the online platform that little letter procedure was built, compare traditional print shop and reduced shop and cost of labor, do not have the business hours restriction, in time provide convenient self-service printing service, the user of being convenient for inquires printer device information, consumptive material and state, select the printer to print, can avoid printing in or lack the printer of paper, printing ink, other printers of preferred selection are in order to save time.
Referring to fig. 2, fig. 2 is a schematic flowchart of another printer information query and printing method according to an embodiment of the present disclosure. Wherein, the method comprises the following steps:
201. and searching a printer in a current local area network based on a preset network protocol, wherein the current local area network is the local area network accessed by the terminal equipment.
The printer information query and printing method in the embodiment of the application can be applied to terminal equipment, including but not limited to mobile terminals such as mobile phones.
Specifically, the printer information query and printing method can be realized by means of the wechat applet, and a user can log in the wechat account through the terminal equipment to enter the preset wechat applet.
The wechat applet mentioned in the embodiments of the present application is an application that can be used without downloading or installing, and a user can open the application by scanning a two-dimensional code or by a search function.
If the terminal device accesses a local area network (such as a certain WiFi), the printer can be automatically searched in the current local area network based on a preset network protocol through the preset wechat applet, and the printer device accessing the same local area network can be searched.
The preset network protocol may include an mDNS protocol.
In computer networks, the Multicast DNS (mDNS) protocol resolves host names to IP addresses in small networks that do not contain local name servers. It is a zero configuration service that uses substantially the same programming interface, packet format and operational semantics as unicast Domain Name System (DNS).
In a local area network, the device and the device need to know the physical Address of the other party, i.e. the IP Address (Internet Protocol Address), before communicating with each other, and in most cases, the IP of the device is not a static IP Address, but an IP Address dynamically allocated by the DHCP Protocol. The mDNS mainly realizes the mutual discovery and communication of hosts in the local area network under the condition of no traditional DNS server, uses a port 5353, conforms to the DNS protocol, and uses the existing DNS information structure, name grammar and resource record type.
When an mDNS client needs to resolve a hostname, it sends an IP multicast query message asking the host with the name to identify itself. The target machine then multicasts a message containing its IP address. All computers in the subnet can then use this information to update their mDNS caches. Any host can give up its declaration of a name by sending a response packet with a time-to-live (TTL) equal to zero.
After step 101, step 201, step 202 or step 203 may be performed.
202. And under the condition that the printer is not searched, prompting to carry out manual connection or re-search, and displaying a manual connection key, wherein the manual connection key is used for triggering an equipment address input box, and the equipment address input box is used for inputting the physical address of the printer to be connected.
Specifically, if the printer is not found in the target range, for example, in the current WiFi environment, a corresponding prompt may be performed, for example: "No printers are currently searched for, please attempt to manually connect! "a manual connection button is displayed on the page, the user can click the trigger device address input box and input the device IP address, and after the determination button is clicked, the printer device of the IP address can be connected. Optionally, it may also be detected whether the IP address input by the user is correct, and a prompt is performed when the format of the input IP address is detected to be wrong.
203. In the case where a target printer is searched, a connection is established with the target printer.
If only one target printer is searched, connection can be automatically performed. Whether to connect can also be confirmed manually by the user, similar to step 204.
204. And if at least two printers are searched, displaying the identifications of the at least two printers.
When the terminal device searches for a printer, the identifier of the searched printer may be displayed on the device connection interface in the applet, where the identifier may be a name or a number for identifying the identity of the printer.
By displaying the identifier of the printer, the user can select which printer to connect for printing.
Optionally, the position information of the printer can be displayed, so that the user can accurately find the position of the printer.
After step 204, step 205 may be performed.
205. And when a selection instruction of the identification of the target printer is detected, establishing connection with the target printer, wherein the identification of the target printer is one of the identifications of the at least two printers.
The user can select a target printer from the searched printers to connect, that is, trigger a selection instruction of the identifier of the target printer, so that the terminal device establishes a connection with the target printer.
Optionally, a page may be searched on a device in which a wechat applet is preset, and an IP address of a target printer to be connected is manually input, so that the target printer in the IP address is searched for connection.
After the connection with the target printer is successful, a connection success message may be displayed. The user can select a file to be printed through the applet and print with the target printer. Specifically, reference may be made to the detailed description in the embodiment shown in fig. 1, which is not repeated herein.
Based on the description of the method embodiment, the embodiment of the application further provides a terminal device. Referring to fig. 3, a schematic structural diagram of a terminal device according to an embodiment of the present application is shown, as shown in fig. 3, a terminal device 300 includes:
the network connection module 310 is used for searching printers in a target range through a preset WeChat applet and establishing connection with a target printer, wherein the target printer is a printer searched in the target range;
an information communication module 320, configured to obtain device information, consumable information, and status information of the target printer;
a display module 330, configured to display device information, consumable information, and status information of the target printer;
and the file transmission module 340 is configured to send the file to be printed to the target printer, so that the target printer prints the file to be printed.
In an embodiment, the terminal device 300 may perform the steps in the embodiments shown in fig. 1 or fig. 2, which are not described herein again.
The terminal device 300 in the embodiment of the present application searches for a printer within a target range through a preset wechat applet, and establishes a connection with a target printer, where the target printer is a printer searched within the target range; acquiring the equipment information, the consumable information and the state information of the target printer, and displaying the equipment information, the consumable information and the state information of the target printer; to target printer sends and treats the printing file, so that target printer prints treat the printing file, accessible share printer and the online platform that little letter procedure was built, compare traditional print shop and reduced shop and cost of labor, do not have the business hours restriction, in time provide convenient self-service printing service, the user of being convenient for inquires printer device information, consumptive material and state, select the printer to print, can avoid printing in or lack the printer of paper, printing ink, other printers of preferred selection are in order to save time.
Based on the description of the method embodiment and the apparatus embodiment, the embodiment of the present application further provides another terminal device. Referring to fig. 4, the terminal device 400 includes at least a processor 401, an input device 402, an output device 403, and a computer storage medium 404. The processor 401, input device 402, output device 403, and computer storage medium 404 within the electronic device may be connected by a bus or other means.
A computer storage medium 404 may be stored in the memory of the terminal device 400, said computer storage medium 404 being adapted to store a computer program comprising program instructions, said processor 401 being adapted to execute said program instructions stored by said computer storage medium 404. The processor 401 (or CPU) is a computing core and a control core of the terminal device 400, and is adapted to implement one or more instructions, and specifically, adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 401 in the embodiment of the present application may be configured to perform a series of processes, including any steps of the method that may be performed by the terminal device in the embodiment shown in fig. 1 and/or fig. 2, and the like.
Based on the description of the above printer information query and printing method embodiments, embodiments of the present application further provide a computer storage medium (Memory), where the computer storage medium is a Memory device in an electronic device (terminal device) and is used to store programs and data. It is understood that the computer storage medium herein may include both a built-in storage medium in the electronic device and, of course, an extended storage medium supported by the electronic device. Computer storage media provide storage space that stores an operating system for an electronic device. Also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by the processor. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by a processor to perform the corresponding steps in the above embodiments; in a specific implementation, one or more instructions in the computer storage medium may be loaded by the processor and executed to perform any steps of the method shown in fig. 1 or fig. 2, such as steps executed by the external counterpulsation apparatus or steps executed by the monitoring device, which are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the division of the module is only one logical division, and other divisions may be possible in actual implementation, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. The shown or discussed mutual coupling, direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some interfaces, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are wholly or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a read-only memory (ROM), or a Random Access Memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium, such as a Digital Versatile Disk (DVD), or a semiconductor medium, such as a Solid State Disk (SSD).
Claims (10)
1. A printer information inquiry and printing method is applied to terminal equipment and is characterized by comprising the following steps:
searching printers in a target range through a preset WeChat applet, and establishing connection with a target printer, wherein the target printer is a printer searched in the target range;
acquiring the equipment information, the consumable information and the state information of the target printer, and displaying the equipment information, the consumable information and the state information of the target printer;
and sending a file to be printed to the target printer so that the target printer prints the file to be printed.
2. The printer information inquiry and printing method according to claim 1, wherein the acquiring the device information, the consumable information and the status information of the target printer comprises:
and acquiring equipment information, consumable information and state information of the target printer based on a first transmission protocol and a communication protocol supported by the target printer.
3. The printer information inquiry and printing method according to claim 2, wherein after said acquiring the device information, the consumable information, and the status information of the target printer, the method further comprises:
determining the consumable quantity grade of the target printer according to the consumable information, wherein the consumable quantity grade reflects the residual degree of the consumable of the target printer;
and displaying prompt information on a page for displaying the equipment information, the consumable information and the state information of the target printer, wherein the prompt information comprises the consumable quantity grade of the target printer.
4. The printer information inquiry and printing method according to claim 3, wherein after displaying the device information, the consumable information, and the status information of the target printer, the method further comprises:
and under the condition that the command of switching the printer is detected, re-searching the printer or returning to a higher-level equipment searching interface, wherein the equipment searching interface comprises the identifier of the searched printer.
5. The printer information inquiry and printing method according to claim 1, wherein the searching for printers within the target range through the preset wechat applet comprises:
searching a printer in a current local area network based on a preset network protocol, wherein the current local area network is a local area network accessed by the terminal equipment;
the establishing connection with the target printer comprises:
establishing connection with a target printer when the target printer is searched;
if at least two printers are searched, displaying the identifications of the at least two printers;
and when a selection instruction of the identification of the target printer is detected, establishing connection with the target printer, wherein the identification of the target printer is one of the identifications of the at least two printers.
6. The printer information query and printing method according to any one of claims 1-5, wherein before sending the file to be printed to the target printer, the method further comprises:
determining a target format adapted to the target printer according to the device information of the target printer;
after the file to be printed is detected to be uploaded, judging whether the format of the file to be printed meets the target format, if not, converting the format of the file to be printed into the target format, and triggering the target printer to send the file to be printed.
7. The printer information query and printing method according to claim 1, wherein the sending the file to be printed to the target printer further comprises:
acquiring a printing protocol supported by the target printer;
and communicating with a port of the target printer based on the printing protocol supported by the target printer so as to send the file to be printed to the target printer.
8. A terminal device, comprising:
the network connection module is used for searching printers in a target range through a preset WeChat applet and establishing connection with a target printer, wherein the target printer is a printer searched in the target range;
the information communication module is used for acquiring the equipment information, the consumable information and the state information of the target printer;
the display module is used for displaying the equipment information, the consumable information and the state information of the target printer;
and the file transmission module is used for sending the file to be printed to the target printer so as to enable the target printer to print the file to be printed.
9. A terminal device characterized by comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the task processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111204882.XA CN113986155A (en) | 2021-10-15 | 2021-10-15 | Printer information inquiry and printing method, terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111204882.XA CN113986155A (en) | 2021-10-15 | 2021-10-15 | Printer information inquiry and printing method, terminal device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113986155A true CN113986155A (en) | 2022-01-28 |
Family
ID=79738880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111204882.XA Pending CN113986155A (en) | 2021-10-15 | 2021-10-15 | Printer information inquiry and printing method, terminal device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113986155A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2025138776A1 (en) * | 2023-12-28 | 2025-07-03 | 荣耀终端股份有限公司 | Printer control method, electronic device, and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1515991A (en) * | 2002-12-27 | 2004-07-28 | 精工爱普生株式会社 | Distributed printing system, method, program, printer and printer management server |
US20120038948A1 (en) * | 2010-08-13 | 2012-02-16 | Electronics And Telecommunications Research Institute | Method and system for printing target files in mobile terminal |
CN104750438A (en) * | 2013-12-27 | 2015-07-01 | 腾讯科技(深圳)有限公司 | Method and device for printing based on mobile terminal |
CN106878580A (en) * | 2015-12-11 | 2017-06-20 | 佳能株式会社 | The control method of information processor and information processor |
CN109189351A (en) * | 2018-08-21 | 2019-01-11 | 平安科技(深圳)有限公司 | A kind of cloud Method of printing, storage medium and server |
CN110727407A (en) * | 2013-06-03 | 2020-01-24 | 惠普打印机韩国有限公司 | Mobile printing system and method using near field communication |
CN110831771A (en) * | 2017-06-27 | 2020-02-21 | 佳能株式会社 | Printing system and apparatus, information processing apparatus, control method thereof, and storage medium |
CN111026339A (en) * | 2019-11-19 | 2020-04-17 | 深圳市中诺通讯有限公司 | Method and system for realizing shared printer |
CN111522515A (en) * | 2020-03-25 | 2020-08-11 | 北京致远互联软件股份有限公司 | Printing method and device |
CN113312013A (en) * | 2021-06-03 | 2021-08-27 | 苏州博瑞凯德信息技术有限公司 | Printing method, printing system and storage medium |
-
2021
- 2021-10-15 CN CN202111204882.XA patent/CN113986155A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1515991A (en) * | 2002-12-27 | 2004-07-28 | 精工爱普生株式会社 | Distributed printing system, method, program, printer and printer management server |
US20120038948A1 (en) * | 2010-08-13 | 2012-02-16 | Electronics And Telecommunications Research Institute | Method and system for printing target files in mobile terminal |
CN110727407A (en) * | 2013-06-03 | 2020-01-24 | 惠普打印机韩国有限公司 | Mobile printing system and method using near field communication |
CN104750438A (en) * | 2013-12-27 | 2015-07-01 | 腾讯科技(深圳)有限公司 | Method and device for printing based on mobile terminal |
CN106878580A (en) * | 2015-12-11 | 2017-06-20 | 佳能株式会社 | The control method of information processor and information processor |
CN110831771A (en) * | 2017-06-27 | 2020-02-21 | 佳能株式会社 | Printing system and apparatus, information processing apparatus, control method thereof, and storage medium |
CN109189351A (en) * | 2018-08-21 | 2019-01-11 | 平安科技(深圳)有限公司 | A kind of cloud Method of printing, storage medium and server |
CN111026339A (en) * | 2019-11-19 | 2020-04-17 | 深圳市中诺通讯有限公司 | Method and system for realizing shared printer |
CN111522515A (en) * | 2020-03-25 | 2020-08-11 | 北京致远互联软件股份有限公司 | Printing method and device |
CN113312013A (en) * | 2021-06-03 | 2021-08-27 | 苏州博瑞凯德信息技术有限公司 | Printing method, printing system and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2025138776A1 (en) * | 2023-12-28 | 2025-07-03 | 荣耀终端股份有限公司 | Printer control method, electronic device, and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7908609B2 (en) | Information processing apparatus with device driver installation control | |
CN101364168B (en) | Remote preparation of printer instance in workstation | |
EP2365431B1 (en) | Printer discovery within a web page | |
US7953901B2 (en) | Distribution apparatus, image processing apparatus, monitoring system, and information processing method | |
US7461375B2 (en) | Print managing apparatus, device driver registering method, and device driver registering program | |
US20070101345A1 (en) | Information processing apparatus, information processing method, and program thereof | |
EP3171581B1 (en) | Print device monitoring method and system, and print monitoring server | |
EP0896454A2 (en) | Network system, network managing method, interface device and terminal device | |
JP2003108448A (en) | Device, method, and program for controlling network device | |
JP5600925B2 (en) | Server device, print system, program, and recording medium | |
CN109254739B (en) | Document printing method, device and system | |
US9930216B2 (en) | Printing system, computer readable recording medium stored with printing device search program, and computer readable recording medium stored with printing device control program for acquiring and displaying information without requiring client terminal authentication | |
WO2015113716A1 (en) | Document printing system and method | |
CN112445433A (en) | File printing method, device, equipment and system | |
US8346916B2 (en) | Information processing apparatus, control method of information processing apparatus, and storage medium of storing computer program to perform control method | |
US11722454B2 (en) | Communication apparatus, method of controlling communication apparatus, and storage medium | |
CN100476714C (en) | Device, system and method for processing printing operations in a home network | |
JP4869033B2 (en) | Network device, network device management apparatus, network device control method, network device management method, program, and storage medium | |
EP1482697A2 (en) | Remote service provision using a chat protocol | |
CN113986155A (en) | Printer information inquiry and printing method, terminal device and storage medium | |
JP4666039B2 (en) | Sales data processing apparatus, store printer system, and program | |
US20060077421A1 (en) | System and method for driverless printers | |
CN113986156A (en) | File printing method, terminal equipment and storage medium | |
US9565058B2 (en) | Method of connecting a device to a network, a device connecting system, and a program | |
CN113986154A (en) | Printer connection and file printing method, system and storage medium |
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 |