Printer consumable allowance obtaining method and device, computer equipment, readable storage medium and program product
By establishing a communication connection with the printer using the IPP protocol, obtaining and parsing its attribute information, the problem that the TPP protocol cannot provide real-time and accurate consumable margin data is solved, and high-precision and real-time consumable margin monitoring is achieved.
Patent Information
- Application Number
- CN202510023959.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-03-21
AI Technical Summary
The traditional TPP protocol cannot provide real-time and accurate printer consumable margin data, resulting in lag and error in statistical results.
Establish a communication connection with the target printer through the IPP protocol, obtain and parse its attribute information to update the consumable information in real time and calculate the consumable margin.
It realizes the transmission and statistics of printer consumable margin data with higher accuracy, and updates the consumable margin data in real time, reducing lag and error.
Smart Images

Figure CN119668538A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of printers, and in particular to a method, device, computer equipment, computer-readable storage medium, and computer program product for obtaining the remaining amount of printer consumables. Background Art
[0002] In traditional technology, the remaining amount of printer consumables is usually collected through the built-in software or driver of the printer, and the remaining amount of printer consumables data is transmitted and monitored through the TPP (Traditional Printer Protocol).
[0003] However, the TPP protocol usually cannot provide real-time and accurate data on the remaining printer consumables, resulting in lags and errors in the statistical results of the remaining printer consumables. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for obtaining the remaining amount of printer consumables in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for obtaining the remaining amount of printer consumables, comprising:
[0006] Establish a communication connection with the target printer according to the IPP protocol to obtain the attribute information of the target printer;
[0007] Parsing the attribute information of the target printer to obtain the current consumables information of the target printer;
[0008] The remaining amount of consumables of the target printer is obtained according to the current consumables information of the target printer.
[0009] In one embodiment, establishing a communication connection with a target printer according to the IPP protocol to obtain attribute information of the target printer includes:
[0010] Get the IP address and port number of the target printer;
[0011] Establishing a communication connection with the target printer according to a request for obtaining printer attributes in the IPP protocol and the IP address and port number of the target printer;
[0012] The information returned by the target printer is received as the attribute information of the target printer.
[0013] In one embodiment, obtaining the usage trend of the target printer includes:
[0014] According to the remaining amount of consumables of the target printer within a set period, a change trend graph of the remaining amount of consumables of the target printer is obtained;
[0015] Obtaining a percentage of remaining consumables according to the remaining consumables and the total capacity of the consumables;
[0016] Obtaining an estimated time when the consumables will run out according to the remaining percentage of the consumables;
[0017] The change trend graph of the remaining consumables of the target printer and the estimated consumable exhaustion time are used as the usage trend of the target printer.
[0018] In one embodiment, the method further comprises:
[0019] Use a long connection mode or a timed polling mode to periodically send a request for obtaining printer attributes to the target printer to update the current consumables information of the target printer.
[0020] In one embodiment, the method further comprises:
[0021] Monitor the usage trend of the target printer. When abnormal usage trend changes are found, generate and display abnormal alarm information.
[0022] In one embodiment, the method further comprises:
[0023] Get the monitoring template corresponding to the target printer;
[0024] Determine the consumables and warning thresholds corresponding to the target printer according to the monitoring template corresponding to the target printer;
[0025] Monitoring the remaining consumables of the target printer;
[0026] When the remaining amount of consumables of the target printer is lower than a warning threshold, a consumable replacement warning is triggered.
[0027] In a second aspect, the present application also provides a device for obtaining the remaining amount of printer consumables, including:
[0028] The attribute information acquisition module is used to establish a communication connection with the target printer according to the IPP protocol to obtain the attribute information of the target printer;
[0029] A current consumables information acquisition module, used to parse the attribute information of the target printer to obtain the current consumables information of the target printer;
[0030] The consumables remaining amount acquisition module is used to obtain the consumables remaining amount of the target printer according to the current consumables information of the target printer.
[0031] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the above method.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to execute the above method.
[0033] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and the computer program is executed by a processor to execute the above method.
[0034] The above-mentioned method, device, computer equipment, computer-readable storage medium and computer program product for obtaining the remaining consumables of the printer establish a communication connection with the target printer according to the IPP protocol to obtain the attribute information of the target printer; parse the attribute information of the target printer to obtain the current consumables information of the target printer; and obtain the remaining consumables of the target printer according to the current consumables information of the target printer. The present application establishes a communication connection with the target printer according to the IPP protocol, supports the transmission and statistics of the remaining consumables data of the printer with higher accuracy, can update the remaining consumables data of the printer in real time, and reduces the lag and error of the remaining consumables data of the printer. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A diagram of an application environment of a method for obtaining the remaining amount of consumables of a printer in one embodiment;
[0037] Figure 2 A schematic diagram of a flow chart of a method for obtaining the remaining amount of consumables of a printer in one embodiment;
[0038] Figure 3 A schematic diagram of a process for obtaining attribute information of a target printer in one embodiment;
[0039] Figure 4 A structural block diagram of a device for obtaining the remaining amount of consumables of a printer in one embodiment;
[0040] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The present application embodiment provides a method for obtaining the remaining amount of printer consumables, which can be executed by a computer device, such as Figure 1 As shown, the computer device can establish a communication connection with the target printer according to the IPP protocol, and then obtain the remaining consumables of the target printer. It can be understood that the computer device can be implemented by a server or a terminal. Among them, the terminal can also be called a server. In this embodiment, the method includes Figure 2 The steps shown are:
[0043] Step S201: Establish a communication connection with a target printer according to the IPP protocol to obtain attribute information of the target printer.
[0044] IPP (Internet Printing Protocol) is a network protocol used to print and manage printing services over the Internet.
[0045] The printer for which the remaining consumables are to be determined may be referred to as a target printer.
[0046] The computer device can establish a communication connection with the target printer according to the IPP protocol, and at the same time send a Get-Printer-Attributes request to the target printer to obtain attribute information of the target printer.
[0047] Step S202, parsing the attribute information of the target printer to obtain the current consumables information of the target printer.
[0048] The current supplies of the target printer include various types of supplies, such as ink cartridges, toner cartridges, and paper.
[0049] The current consumables information of the target printer may include a remaining percentage of the consumables or a specific capacity value of the consumables.
[0050] After obtaining the attribute information of the target printer, the computer device may parse the attribute information of the target printer to obtain the current consumables information of the target printer.
[0051] Exemplarily, the current consumables information of the target printer may be obtained through the printer-supply attribute of the IPP protocol, where the current consumables information of the target printer may include:
[0052] The type of supplies (such as ink cartridges, toner cartridges, paper, etc.).
[0053] Current status (e.g., full, low, empty).
[0054] The amount remaining (expressed as a percentage or other unit).
[0055] The following is an example of the target printer's response data:
[0056] { "printer-supply": [
[0057] {"supply-type": "ink", "supply-level": "70%"},
[0058] {"supply-type": "toner", "supply-level": "50%"} ]}Parse the target printer's attribute information, including mapping or standardizing the consumable types. For example: "ink" → ink cartridge; "toner" → toner cartridge; "media" → paper, → indicates mapping or standardization.
[0059] After parsing the attribute information of the target printer, the parsed raw data needs to be cleaned and normalized to filter out abnormal data or redundant information, so as to obtain the current consumables information of the target printer to ensure that the consumables balance, timestamp and other fields of the current consumables information of the target printer are not missing or abnormal.
[0060] Step S203, obtaining the remaining consumables of the target printer according to the current consumables information of the target printer.
[0061] When the current consumables information of the target printer only includes the remaining percentage of the consumables, the remaining percentage of the consumables information may be used as the remaining consumables amount of the target printer.
[0062] When the current consumables information of the target printer only includes the specific capacity value of the consumables, the remaining consumables of the target printer can be obtained according to the specific capacity value of the consumables of the target printer and the total capacity of the consumables.
[0063] In the above-mentioned method for obtaining the remaining printer consumables, a communication connection is established with the target printer according to the IPP protocol, supporting the transmission and statistics of the remaining printer consumables data with higher accuracy, being able to update the remaining printer consumables data in real time, and reducing the lag and error of the remaining printer consumables data.
[0064] In one embodiment, a communication connection is established with a target printer according to the IPP protocol to obtain the attribute information of the target printer. The specific steps are as follows: Figure 3As shown: Step S301, obtain the IP address and port number of the target printer; Step S302, establish a communication connection with the target printer according to the printer attribute acquisition request in the IPP protocol, and the IP address and port number of the target printer; Step S303, receive the information returned by the target printer as the attribute information of the target printer.
[0065] The IP (Internet Protocol) address and port number of the target printer can be obtained; a communication connection can be established with the target printer based on the Get Printer Properties request in the IPP protocol, as well as the IP address and port number of the target printer; the default IPP port is 631. An example of a Get Printer Properties request is as follows (expressed in JSON):
[0066] { "operation": "Get-Printer-Attributes",
[0067] "printer-uri": "http: / / <printer-ip>:631 / ipp / printer"}
[0068] After the computer device establishes a communication connection with the target printer, the target printer can return information to the computer device. Specifically, the target printer will return the properties such as the functions, status information, and consumable types supported by the target printer. The key fields of the returned information include:
[0069] printer-state (current printer state).
[0070] printer-supply (supply status information, such as remaining ink levels).
[0071] media-supported.
[0072] The computer may receive the information returned by the target printer as the attribute information of the target printer.
[0073] In this embodiment, after establishing a communication connection with the target printer, information returned by the target printer is received as attribute information of the target printer.
[0074] In one of the embodiments, the usage trend of the target printer is obtained, and the specific steps are as follows: based on the remaining consumables of the target printer within a set period, a changing trend graph of the remaining consumables of the target printer is obtained; based on the remaining consumables and the total capacity of the consumables, the percentage of the remaining consumables is obtained; based on the percentage of the remaining consumables, an estimated time when the consumables will run out is obtained; and the changing trend graph of the remaining consumables of the target printer and the estimated time when the consumables will run out are used as the usage trend of the target printer.
[0075] According to the remaining consumables of the target printer within the set period, a line graph or a bar graph of the remaining consumables of the target printer within the set period can be obtained as a change trend graph of the remaining consumables of the target printer.
[0076] The remaining consumable percentage can be obtained according to the remaining consumables and the total consumable capacity of the target printer, as shown in formula (1).
[0077] R=Vr / Vt*100% (1)
[0078] Among them, R represents the percentage of remaining consumables, Vr represents the remaining consumables, and Vt represents the total capacity of consumables.
[0079] The estimated time until the consumables are used up can be obtained based on the remaining percentage of the consumables, as shown in formula (2).
[0080] Tempt=tcurrent+R / (dR / dt)
[0081] Among them, Tempt represents the estimated time when the consumables are used up, tcurrent represents the current time, R represents the percentage of the remaining consumables, and dR / dt represents the consumables consumption rate.
[0082] The changing trend graph of the remaining consumables of the target printer and the estimated time when the consumables are used up can be used as the usage trend of the target printer.
[0083] In this embodiment, based on the remaining consumables of the target printer within a set period, a changing trend graph of the remaining consumables of the target printer is obtained; based on the remaining consumables and the total capacity of the consumables, the percentage of the remaining consumables is obtained to obtain the estimated time when the consumables will run out; the changing trend graph of the remaining consumables of the target printer and the estimated time when the consumables will run out are used as the usage trend of the target printer to provide data support for the intelligent management of the target printer.
[0084] In one of the embodiments, the method provided by the present application further includes: using a long connection method or a timed polling method to periodically send a request to obtain printer attributes to the target printer to update the current consumables information of the target printer.
[0085] You can use a WebSocket-based long connection method or a timed polling method to periodically send a request to obtain printer attributes to the target printer and update the current consumables information of the target printer.
[0086] In this embodiment, a long connection mode or a timed polling mode is used to periodically send a request for obtaining printer attributes to the target printer, update the current consumables information of the target printer, and implement real-time monitoring of the current consumables information of the target printer.
[0087] In one of the embodiments, the method provided by the present application further includes: monitoring the changes in the usage trend of the target printer, and when it is found that the usage trend changes abnormally, generating and displaying abnormal alarm information.
[0088] The usage trend of the target printer can be monitored. When abnormal usage trend changes are found, such as when consumables are suddenly consumed too quickly or when consumables report errors, abnormal alarm information is generated and displayed to enable relevant personnel to quickly discover abnormal conditions of the target printer.
[0089] In one of the embodiments, the method provided in the present application also includes: obtaining a monitoring template corresponding to the target printer; determining the consumables and warning thresholds corresponding to the target printer based on the monitoring template corresponding to the target printer; monitoring the remaining consumables of the target printer; and triggering a consumable replacement warning when the remaining consumables of the target printer is lower than the warning threshold.
[0090] After a communication connection is established with the target printer according to the IPP protocol, a monitoring template corresponding to the target printer may be generated.
[0091] The monitoring template defines the monitoring rules and warning thresholds for each type of consumables, including: monitoring fields: remaining quantity, consumable name, status (full / low / empty); warning thresholds: trigger a replacement warning when the ink cartridge is less than 20%; trigger a replacement warning when the toner cartridge is less than 10%. The warning thresholds can be customized by users to adapt to different printing scenarios and needs.
[0092] The following is an example of a monitoring template (JSON format):
[0093] { "printer-model": "HP-LaserJet-2024",
[0094] "monitoring-template": {
[0095] "ink": {"threshold": 20, "unit": "%"},
[0096] "toner": {"threshold": 10, "unit": "%"},
[0097] "paper": {"threshold": 50, "unit": "sheets"}}
[0098] The consumables and warning thresholds corresponding to the target printer can be determined based on the monitoring template corresponding to the target printer; the remaining consumables of the target printer can be monitored; when the remaining consumables of the target printer are lower than the warning threshold, a consumable replacement warning is triggered.
[0099] In this embodiment, the consumables and warning thresholds corresponding to the target printer are determined based on the monitoring template corresponding to the target printer; the remaining consumables of the target printer are monitored; when the remaining consumables of the target printer are lower than the warning threshold, a consumable replacement warning is triggered to let relevant personnel quickly know that the consumables need to be replaced.
[0100] In addition, the present application also designs a universal interface so that the IPP protocol supports multiple printer models and can uniformly manage multiple types of printer devices, thereby improving the compatibility of the method for obtaining the remaining printer consumables provided by the present application.
[0101] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0102] Based on the same inventive concept, the embodiment of the present application also provides a device for obtaining the remaining amount of printer consumables for implementing the method for obtaining the remaining amount of printer consumables involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more devices for obtaining the remaining amount of printer consumables provided below can refer to the limitations of the method for obtaining the remaining amount of printer consumables above, and will not be repeated here.
[0103] In an exemplary embodiment, Figure 4 As shown, a device for obtaining the remaining amount of consumables of a printer is provided, wherein:
[0104] The attribute information acquisition module 401 is used to establish a communication connection with the target printer according to the IPP protocol to obtain the attribute information of the target printer;
[0105] The current consumables information acquisition module 402 is used to parse the attribute information of the target printer to obtain the current consumables information of the target printer;
[0106] The consumables remaining amount acquisition module 403 is used to obtain the consumables remaining amount of the target printer according to the current consumables information of the target printer.
[0107] In one of the embodiments, the attribute information acquisition module 401 is also used to: obtain the IP address and port number of the target printer; establish a communication connection with the target printer according to the printer attribute acquisition request in the IPP protocol and the IP address and port number of the target printer; receive the information returned by the target printer as the attribute information of the target printer.
[0108] In one of the embodiments, the device also includes a usage trend acquisition module, which is used to: obtain a changing trend graph of the consumables remaining of the target printer based on the consumables remaining of the target printer within a set period; obtain the percentage of the consumables remaining based on the consumables remaining and the total capacity of the consumables; obtain an estimated consumables exhaustion time based on the consumables remaining percentage; and use the changing trend graph of the consumables remaining of the target printer and the estimated consumables exhaustion time as the usage trend of the target printer.
[0109] In one of the embodiments, the device further includes a current consumables information updating module, which is used to: use a long connection method or a timed polling method to periodically send a request to obtain printer attributes to the target printer to update the current consumables information of the target printer.
[0110] In one of the embodiments, the device further includes an abnormal alarm information display module, which is used to: monitor the change of the usage trend of the target printer, and when it is found that the usage trend changes abnormally, generate and display abnormal alarm information.
[0111] In one of the embodiments, the device also includes a consumable replacement warning trigger module, which is used to: obtain a monitoring template corresponding to the target printer; determine the consumables and warning thresholds corresponding to the target printer based on the monitoring template corresponding to the target printer; monitor the consumable remaining amount of the target printer; and trigger a consumable replacement warning when the consumable remaining amount of the target printer is lower than the warning threshold.
[0112] Each module in the above-mentioned device for obtaining the remaining amount of printer consumables can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0113] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data of an embodiment of a method for obtaining the remaining amount of printer consumables. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for obtaining the remaining amount of printer consumables is implemented.
[0114] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0115] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0117] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0119] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0120] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0121] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for obtaining the remaining amount of printer consumables, characterized in that: The method comprises: Establish a communication connection with the target printer according to the IPP protocol to obtain the attribute information of the target printer; Parsing the attribute information of the target printer to obtain the current consumables information of the target printer; The remaining amount of consumables of the target printer is obtained according to the current consumables information of the target printer.
2. The method according to claim 1, characterized in that: The step of establishing a communication connection with a target printer according to the IPP protocol and obtaining attribute information of the target printer includes: Get the IP address and port number of the target printer; Establishing a communication connection with the target printer according to a request for obtaining printer attributes in the IPP protocol and the IP address and port number of the target printer; The information returned by the target printer is received as the attribute information of the target printer.
3. The method according to claim 1, characterized in that Get usage trends of target printers, including: According to the remaining amount of consumables of the target printer within a set period, a change trend graph of the remaining amount of consumables of the target printer is obtained; Obtaining a percentage of remaining consumables according to the remaining consumables and the total capacity of the consumables; Obtaining an estimated time when the consumables will run out based on the remaining percentage of the consumables; The change trend graph of the remaining consumables of the target printer and the estimated consumable exhaustion time are used as the usage trend of the target printer.
4. The method according to claim 1, characterized in that: The method further comprises: Use a long connection method or a timed polling method to periodically send a request for obtaining printer attributes to the target printer to update the current consumables information of the target printer.
5. The method according to claim 1, characterized in that The method further comprises: Monitor the changes in the usage trend of the target printer. When abnormal usage trend changes are found, generate and display abnormal alarm information.
6. The method according to claim 1, characterized in that The method further comprises: Get the monitoring template corresponding to the target printer; Determine the consumables and warning thresholds corresponding to the target printer according to the monitoring template corresponding to the target printer; Monitoring the remaining consumables of the target printer; When the remaining amount of consumables of the target printer is lower than a warning threshold, a consumable replacement warning is triggered.
7. A device for obtaining the remaining amount of printer consumables, characterized in that: The device comprises: The attribute information acquisition module is used to establish a communication connection with the target printer according to the IPP protocol to obtain the attribute information of the target printer; A current consumables information acquisition module, used to parse the attribute information of the target printer to obtain the current consumables information of the target printer; The consumables remaining amount acquisition module is used to obtain the consumables remaining amount of the target printer according to the current consumables information of the target printer.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Consumable allowance data reset method, communication method, device and reset chip
CN116522363A
Internet print protocol print dispatch server
US20040130746A1
Image forming apparatus and control method of image forming apparatus
US20230325211A1