Printer consumable management method and system, electronic equipment and storage medium

By using RFID readers and wireless transmission technology in the printer, real-time monitoring and management of printer consumables is solved, and the problem of inaccurate consumable status monitoring in the prior art is achieved, and efficient and accurate consumable management and replacement prompts are achieved.

CN119536668AInactive Publication Date: 2025-02-28SHENZHEN PUSHI TECH CO LTD

Patent Information

Application Number
CN202411425025.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-02-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing printer consumables management methods lack intelligent management methods, making it difficult to monitor the status of consumables in real time, resulting in inaccurate monitoring of consumables margins, which in turn leads to the problem of untimely replacement of consumables or premature replacement.

Method used

The RFID tags of consumables are automatically read through the printer's RFID reader, which enables fast and accurate acquisition of consumables information and transmits data to the application through wireless transmission. The application queryes and displays the corresponding templates based on RFID, records the length of each print, calculates the difference between the total length of the consumable and the used length, monitors the remaining amount of consumables in real time, and prompts to replace it when the consumables are exhausted.

Benefits of technology

Real-time and accurate acquisition and management of consumable information is realized, manual operations and errors are reduced, work efficiency and user satisfaction are improved, and printing is carried out smoothly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536668A_ABST
    Figure CN119536668A_ABST
Patent Text Reader

Abstract

The invention discloses a printer consumable management method and system, electronic equipment and a storage medium, and relates to the field of printer management. In the method, a first RFID of the consumable is read through an RFID reader of a printer, and the first RFID is transmitted to an application program through wireless transmission; when the application program receives the first RFID, querying a corresponding template through the first RFID and displaying the template in the application program; in response to the operation that a user clicks the target template, the target template is used for printing, the first length of each time of printing of the consumables is recorded, the multiple first lengths are added to obtain a second length, and the difference value between the total length of the consumables and the second length is calculated; when the difference value is smaller than the threshold value, it is prompted that the remaining length of the consumables is insufficient, and when the difference value is zero, the first RFID is added into the blacklist, and replacement of the consumables is prompted. By implementing the technical scheme provided by the invention, the use condition of the consumables can be monitored in real time, and the printer consumables can be effectively managed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of printer management, and in particular to a management method, system, electronic device and storage medium for printer consumables. Background Art

[0002] In modern office environments, printers are one of the indispensable office equipment, and printer consumables management is the key to ensure the normal operation of printers. With the development of printing technology and office automation, the types and quantities of printer consumables are also increasing, which puts higher requirements on consumables management, especially for enterprise users. Effective management of consumables can significantly reduce operating costs and improve office efficiency.

[0003] At present, the common method of managing printer consumables mainly includes manually recording the use of consumables. Although the manual recording method of consumables is simple and easy, it is prone to errors and cannot update the status of consumables in real time. The existing methods lack intelligent management means, making it difficult to monitor the status of consumables in real time. Inaccurate monitoring of the remaining consumables often occurs, resulting in untimely or premature replacement of consumables. In particular, there is a lack of effective early warning mechanism when the consumables are about to run out, making it difficult to accurately judge the remaining consumables, which brings inconvenience to users.

[0004] Therefore, a method for managing printer consumables is needed. Summary of the invention

[0005] The present application provides a management method, system, electronic device and storage medium for printer consumables, which achieve the effect of real-time monitoring of consumable usage and effective management of printer consumables.

[0006] In a first aspect of the present application, a method for managing printer consumables is provided, which is applied to a printer management platform, wherein the printer management platform includes an application and a printer, and the method includes: reading a first RFID of the consumable by an RFID reader of the printer, and transmitting the first RFID to the application by wireless transmission; When the application receives the first RFID, the corresponding template is queried through the first RFID and displayed in the application; In response to a user clicking on a target template, printing is performed using the target template and a first length of each printing of the consumable is recorded, a plurality of the first lengths are added together to obtain a second length, and a difference between a total length of the consumable and the second length is calculated; When the difference is less than a threshold, it is prompted that the remaining length of the consumable is insufficient; when the difference is zero, the first RFID is added to a blacklist and a prompt is given to replace the consumable.

[0007] By adopting the above technical solution, the RFID tag of the consumables is automatically read by the RFID reader of the printer, so that the consumables information can be obtained quickly and accurately, avoiding the tediousness and errors of manual input. The data read by RFID is transmitted to the application program wirelessly, which improves the efficiency and convenience of data transmission. According to the RFID of the consumables, the corresponding template is queried and displayed, so that users can intuitively understand the detailed information and usage of the consumables. The length of each print is recorded, and the total length of use is accumulated and calculated, and compared with the total length of the consumables, so as to accurately grasp the remaining amount of consumables. When the remaining length of the consumables is insufficient, the platform can issue an early warning in real time to remind users to pay attention to the status of the consumables in time. When the consumables are completely exhausted, the platform adds the RFID of the consumables to the blacklist and clearly prompts the user to replace the consumables, avoiding printing interruptions caused by the exhaustion of consumables. The automated and intelligent management method reduces manual operations, reduces the possibility of human errors, and improves work efficiency. Users do not need to manually record the usage of consumables, but only need to pay attention to the prompts of the platform, which greatly improves the convenience of use. The platform can accurately and timely reflect the status of consumables, ensure the smooth progress of printing work, and improve user satisfaction and trust.

[0008] Optionally, reading the first RFID of the consumable by an RFID reader of the printer, and transmitting the first RFID to the application by wireless transmission includes: Sending an authentication request to the RFID tag of the consumable material using a pre-shared key through the RFID reader of the printer, and detecting the authentication response replied by the RFID tag; When the authentication response meets the requirement, establishing a communication channel between the RFID reader and the RFID tag to obtain a first RFID of the RFID tag; The first RFID and the current timestamp are encrypted and packaged, and then sent to the application via Bluetooth.

[0009] By adopting the above technical solution, a pre-shared key is used to send an authentication request to the RFID tag, and the reply authentication response is detected. This step ensures that only authorized RFID tags can establish communication with the RFID reader. This effectively prevents unauthorized RFID tags from being maliciously read or tampered with, and enhances the security of data transmission. The RFID information (first RFID) and the current timestamp are encrypted and packaged before being sent, which further improves the security of the data during transmission and prevents the data from being intercepted or tampered with. When the authentication is passed and the communication channel is established, the RFID reader can immediately obtain the first RFID in the RFID tag and send it to the application in real time through wireless methods such as Bluetooth. This real-time performance is particularly important for application scenarios such as tracking the use of consumables, predicting replacement time, or performing inventory management. Automatically reading and transmitting consumable information reduces the possibility of manual intervention and errors. In large office environments or production lines, this automated information management can significantly improve work efficiency and reduce operating costs. The application can process the received RFID information instantly, such as updating consumable inventory, generating purchase orders, or triggering maintenance tasks, thereby further optimizing and automating the workflow. The application can conduct in-depth analysis on the collected consumables usage data, such as analyzing the consumption rate of consumables and predicting future demand, to provide strong support for the company's operational decisions. Real-time and accurate data also provides a basis for subsequent continuous improvement and optimization, helping companies to continuously improve operational efficiency and customer satisfaction.

[0010] Optionally, querying the corresponding template through the first RFID and displaying it in the application includes: Constructing an SQL query statement or query logic based on the RFID, and executing the SQL query statement or query logic to locate and return query results based on the index and cache mechanism; Encapsulate the query result into an HTTP response body, and set an HTTP status code and a response header to form a response; The response is sent to the application via the HTTPS protocol, and the application parses the HTTP response body and displays corresponding template information.

[0011] By adopting the above technical solution, SQL query statements or query logic are constructed through RFID, and the index and cache mechanism are used to locate and return the query results. This process significantly improves the efficiency of data retrieval. Indexing can speed up the query speed, while the cache mechanism can avoid repeated queries of the same data, thereby further reducing the response time. The query results are encapsulated into an HTTP response body and the appropriate HTTP status code and response header are set. This design helps to ensure the integrity and accuracy of data transmission. At the same time, sending the response through the HTTPS protocol ensures the security of data transmission and prevents the data from being stolen or tampered with during transmission. The application can parse the HTTP response body and display the corresponding template information based on the data therein. This design makes the display of templates very flexible, and different display styles and layouts can be customized according to actual needs. At the same time, since the data is queried and transmitted in real time, the displayed information is also the latest and most accurate. Fast response time and accurate display information can significantly improve the user experience. Users can see the information they need without waiting too long, and the information is accurate and reliable. This instant feedback mechanism helps to enhance users' trust and satisfaction with the platform. Real-time and accurate data display not only meets the immediate needs of users, but also provides strong support for subsequent data analysis and decision-making. Through in-depth analysis of these data, enterprises can understand the use of consumables, predict future demand trends, and make more scientific and reasonable decisions accordingly. This data query and display method based on RFID and HTTP protocols helps promote the integration and expansion between different platforms. Through standardized interfaces and protocols, different platforms can easily exchange and share data, thus forming a more compact and efficient information ecological platform.

[0012] Optionally, executing the SQL query statement or query logic to locate and return the query result according to the index and cache mechanism includes: Execute the SQL query statement or query logic to determine the target index, and check whether the target index exists in the cache data; When the target index exists in the cache data, obtaining first data corresponding to the target index from the cache data, and returning the first data as a result; When the target index does not exist in the cache data, the corresponding second data in the data table is located according to the target index, and the second data is returned as a result.

[0013] By adopting the above technical solution, the scope of database search can be greatly narrowed by executing SQL query statements or query logic to determine the target index, thereby significantly improving the query speed. The cache mechanism further speeds up the query process. When the target index exists in the cache data, the platform can directly obtain the data from the cache without accessing the database, which greatly reduces the query response time. The existence of the cache mechanism reduces the number of direct accesses to the database. When a large number of requests frequently access the same data, most of these requests can be satisfied from the cache, thereby reducing the burden on the database and avoiding the performance degradation of the database due to excessive access. The index and cache mechanism are important components for building a high-performance and scalable database system. With the increase in data volume and the increase in access volume, the index and cache can effectively maintain the response speed and stability of the system, providing strong support for the further expansion of the system. When the target index does not exist in the cache data, the platform will locate the data table according to the target index to obtain the latest data. This design ensures that the data obtained by the user is always the latest and consistent, avoiding data inconsistency problems caused by outdated cache data.

[0014] Optionally, the management method further includes: In response to the user's template editing operation, detecting the type of the current consumables, and determining whether the type is compatible with the edited template; When the user completes editing, the edited template is saved to the personalized template library under the user account, and the edited template is associated with the corresponding RFID.

[0015] By adopting the above technical solution, users can edit templates according to actual needs and save the edited templates to the personalized template library under their personal accounts. This function greatly improves the flexibility and autonomy of users. Users can customize exclusive printing templates according to their preferences and work needs, so as to complete printing tasks more conveniently. When editing a template, the platform can detect the type of current consumables and determine whether the type is compatible with the edited template. This function ensures the accuracy and practicality of the template and avoids printing errors or waste caused by mismatch between templates and consumables. By detecting the adaptability in advance, users can adjust the template settings in time to ensure that the printing effect meets expectations. The edited template is associated with the corresponding RFID so that each consumable has its own exclusive printing template. This one-to-one association method helps to achieve refined resource management and avoid confusion and misuse of templates. At the same time, it is also convenient for users to quickly find and use the required templates, improving work efficiency. The existence of a personalized template library enables enterprises or individuals to meet diverse printing needs. Whether it is document format, font size, color matching or other printing settings, users can make personalized adjustments according to their needs. This flexibility not only improves the aesthetics and professionalism of printing results, but also increases user satisfaction with printing services.

[0016] Optionally, the printing using the target template and recording the first length of each printing of the consumable includes: Before starting printing, obtain the second RFID of the consumable again, and compare the second RFID with the first RFID; When the second RFID is consistent with the first RFID, printing begins; When the second RFID is inconsistent with the first RFID, it is prompted that the consumables are not compatible.

[0017] By adopting the above technical solution, the RFID of the consumables is verified again before printing, which can ensure that the consumables used are completely consistent with the consumables specified by the target template. This double verification mechanism effectively reduces printing errors or quality problems caused by misuse or confusion of consumables, and improves the accuracy of consumables management. The platform will only start printing when the second RFID is consistent with the first RFID. This design ensures that the printing process is based on the correct consumables and templates, thereby improving the reliability and consistency of the printing results. At the same time, it also avoids the risk of equipment damage or failure caused by mismatched consumables. When the second RFID is inconsistent with the first RFID, the platform can promptly prompt the user that the consumables are not compatible. This instant feedback mechanism allows users to quickly discover and solve problems, avoiding printing delays or waste of resources caused by consumable errors. At the same time, it also improves user satisfaction and trust in printing services. After confirming that the consumables are compatible, the platform can quickly start the printing process without the user making additional confirmation or adjustments. This efficient printing process improves work efficiency, reduces user waiting time, and makes printing services more convenient and efficient. By ensuring the compatibility of consumables and templates, waste caused by misuse of consumables can be avoided. For example, some special consumables may only be used for certain types of printing tasks. If they are used for other tasks, it will not only affect the printing effect, but also cause a waste of resources. The RFID verification mechanism can effectively avoid this situation.

[0018] Optionally, the management method further includes: Collecting printer fault information, and using a preset fault tree model to deduce fault causes and occurrence paths based on the fault information; The target components are isolated in sequence according to the fault cause to determine whether the fault exists in the target component, the target component being a component associated with the fault cause.

[0019] By adopting the above technical solution and using the fault tree model, various printer failure factors, including hardware, software, environment and human factors, can be systematically analyzed. This method not only considers single failures, but also multiple failures and their combinations, so that the root cause of the failure can be diagnosed more accurately. This helps to improve the accuracy and efficiency of diagnosis and reduce misdiagnosis and missed diagnosis. After determining the cause of the failure, by isolating the target components (i.e., the components associated with the cause of the failure) in sequence, the scope of the failure can be quickly narrowed down and it can be determined whether the failure actually exists in the component. This method avoids the blindness and tediousness in traditional fault diagnosis and reduces maintenance time and cost. Through accurate diagnosis and rapid positioning, maintenance personnel can quickly find and repair faulty components, thereby improving maintenance efficiency. This can not only reduce equipment downtime and improve equipment utilization, but also reduce maintenance costs and improve the production efficiency and economic benefits of enterprises.

[0020] In a second aspect of the present application, a management system for printer consumables is provided, including a reading module, a query module, a length module and a prompt module, wherein: a reading module configured to read a first RFID of the consumable material through an RFID reader of the printer, and transmit the first RFID to the application through wireless transmission; a query module, configured to query a corresponding template through the first RFID and display it in the application when the application receives the first RFID; a length module configured to, in response to a user clicking on a target template, use the target template to print and record a first length of each printing of the consumable, add a plurality of the first lengths to obtain a second length, and calculate a difference between a total length of the consumable and the second length; The prompt module is configured to prompt that the remaining length of the consumable is insufficient when the difference is less than a threshold value, and to add the first RFID to a blacklist and prompt to replace the consumable when the difference is zero.

[0021] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.

[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The RFID tag of the consumables is automatically read by the printer's RFID reader, which enables fast and accurate acquisition of consumable information and avoids the tediousness and errors of manual input; the wireless transmission between the RFID reader and the application enables the consumable information to be transmitted to the management platform in real time and conveniently, improving the efficiency and accuracy of data transmission; 2. When the application receives the RFID of the consumables, it can automatically query and display the corresponding template, simplifying the process of template selection for users and improving printing efficiency; users can select the target template for printing according to actual needs, and record the length of each print to ensure the accuracy and consistency of the printed content; 3. By recording and accumulating the length of each print of the consumables, the usage of the consumables can be monitored in real time. When the consumables are completely exhausted, their RFID tags are added to the blacklist to avoid misuse or reuse of exhausted consumables, further improving the standardization of management.

[0024] 4. The entire management process is highly automated. Users only need to perform simple operations to complete printing tasks, which greatly improves the convenience of use. The timeliness of consumables remaining warnings and replacement reminders ensures that users can understand the status of consumables in a timely manner and avoid work progress being affected by consumables problems. Through automatic matching and display of templates, it meets users' personalized printing needs and improves user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flowchart of a method for managing printer consumables disclosed in an embodiment of the present application; Figure 2 It is a schematic diagram of the architecture of the printer management platform disclosed in the embodiment of the present application; Figure 3 It is a schematic diagram of the interface of an application program that does not include an RFID consumables identification function in the prior art; Figure 4 It is a schematic diagram of the interface of an application program including an RFID consumables identification function disclosed in an embodiment of the present application; Figure 5 It is a module schematic diagram of the management system of printer consumables disclosed in the embodiment of the present application; Figure 6 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.

[0026] Explanation of the reference numerals: 501, reading module; 502, query module; 503, length module; 504, prompt module; 601, processor; 602, communication bus; 603, user interface; 604, network interface; 605, memory. DETAILED DESCRIPTION

[0027] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0028] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0029] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0030] This embodiment discloses a method for managing printer consumables, which is applied to a printer management platform. The printer management platform includes an application program and a printer. Figure 1 is a flow chart of a method for managing printer consumables disclosed in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps: S110, reading a first RFID of a consumable by an RFID reader of the printer, and transmitting the first RFID to the application by wireless transmission; Figure 2 is a schematic diagram of the architecture of the printer management platform disclosed in the embodiment of the present application, such as Figure 2 As shown, the printer management platform includes an application and a printer, the application includes a first communication module, a data processing module and a user interface module, and the printer includes an RFID reader, a control module and a second communication module. Figure 2 The embodiments of the present application are described.

[0031] An RFID reader is a device that uses radio frequency signals to read information contactlessly. In the scenario of printer consumables management, an RFID reader is installed on the printer to read the information in the RFID tags attached to consumables (such as ink cartridges, ribbons, paper, etc.). These RFID tags usually contain the unique identifier of the consumables (such as serial number, model, production date, etc.), as well as possible other related information. When the consumables are installed in the printer, the RFID tag automatically enters the sensing range of the RFID reader. The RFID reader activates and identifies the information in the tag by emitting radio frequency signals. When the RFID tag is activated, it sends the information stored in it to the RFID reader wirelessly. This information includes but is not limited to the first RFID of the consumables (i.e., the unique identity of the consumables). After receiving the information sent by the RFID tag, the RFID reader will perform preliminary data verification to ensure that the received information is complete and valid. A wireless connection (such as Wi-Fi, Bluetooth, etc.) needs to be established between the RFID reader and the application so that data can be transmitted. The read RFID information needs to be encapsulated into a format suitable for wireless transmission (such as a data packet) to ensure the security and integrity of the data during transmission. The packaged data is sent to the application via the previously established wireless connection. After receiving the data, the application will perform further processing and analysis.

[0032] Figure 3 It is a schematic diagram of the interface of an application program that does not include an RFID consumables identification function in the prior art. Figure 4 is a schematic diagram of the interface of an application program including an RFID consumables identification function disclosed in an embodiment of the present application, such as Figure 3 and Figure 4 As shown, the embodiment of the present application can identify the consumables in the current printer, and the specific identification result is PT-5030WE-200.

[0033] Optionally, reading the first RFID of the consumable by an RFID reader of the printer, and transmitting the first RFID to the application by wireless transmission includes: Sending an authentication request to the RFID tag of the consumable material using a pre-shared key through the RFID reader of the printer, and detecting the authentication response replied by the RFID tag; When the authentication response meets the requirement, establishing a communication channel between the RFID reader and the RFID tag to obtain a first RFID of the RFID tag; The first RFID and the current timestamp are encrypted and packaged, and then sent to the application via Bluetooth.

[0034] Before reading the RFID tag of the consumable, the RFID reader will first send an authentication request using the key that is pre-shared with the RFID tag. This step is to ensure that only legitimate RFID readers can access the information in the RFID tag, thereby increasing the security of the platform. After receiving the authentication request, the RFID tag will use the same key for verification and return an authentication response to the RFID reader. The RFID reader will detect whether this response meets the expectations to confirm the identity and legitimacy of the RFID tag. When the RFID reader confirms that the authentication response of the RFID tag meets the requirements, it will establish a secure communication channel with the RFID tag. This channel is used for subsequent data transmission to ensure security and integrity when reading RFID tag information. After the communication channel is established, the RFID reader will read the first RFID information in the RFID tag. This information is usually the unique identifier of the consumable and is used for subsequent management and tracking in the application. To ensure the security of data during transmission, the RFID reader will encrypt the read first RFID information together with the current timestamp. The encrypted data packet contains not only the identification information of the consumable, but also the timestamp of the data generation, which helps the application to verify the timeliness and authenticity of the data. The encrypted packaged data will be sent to the application via Bluetooth technology. Bluetooth is a commonly used wireless communication technology with the characteristics of low power consumption and short-distance transmission. It is very suitable for data exchange between printers and mobile devices or computers.

[0035] The RFID reader of the printer uses a pre-shared key to send an authentication request to the RFID tag of the consumable. This step ensures that only authorized RFID tags can establish communication with the reader. This authentication mechanism effectively prevents illegal consumables or unauthorized RFID tags from being identified and used, and improves the security of the platform. When the authentication response of the RFID tag meets the requirements, a communication channel is established between the RFID reader and the RFID tag. This step ensures the reliability and stability of data transmission, laying a solid foundation for subsequent data reading and transmission. The first RFID of the RFID tag and the current timestamp are encrypted and packaged. The addition of the timestamp not only increases the uniqueness of the data, but also facilitates subsequent data tracking and verification. The encryption processing further ensures the security and integrity of the data during transmission, preventing the data from being illegally intercepted or tampered with. The encrypted and packaged data is sent to the application via Bluetooth. As a widely used wireless communication technology, Bluetooth has the advantages of fast transmission speed, low power consumption, and stable connection. Through Bluetooth transmission, data can be transmitted quickly and efficiently, reducing user waiting time and improving user experience. The entire process realizes real-time reading and transmission of consumable information. When consumables are installed in the printer, their RFID information can be immediately read and sent to the application, realizing real-time update of consumable information. This helps the application to grasp the usage of consumables in a timely and accurate manner, providing strong support for subsequent consumable management and procurement. Through RFID technology, the automation and intelligence of consumable management are realized. Traditional consumable management often requires manual inventory and record keeping, which is not only inefficient but also prone to errors. After adopting RFID technology, the identification, reading and transmission of consumables are all automated, greatly improving management efficiency and accuracy.

[0036] S120, when the application receives the first RFID, querying a corresponding template through the first RFID and displaying it in the application; The application will parse the received first RFID to extract the unique identification of the consumables and other related information that may be contained. At the same time, the application will also verify the integrity and validity of the RFID information to ensure that the received data is accurate and has not been tampered with. After the verification is passed, the application will use the parsed first RFID as a query condition to access its built-in template database (or a remote database connected to it). This template database stores the printing template information corresponding to various consumables, including consumable type, model, applicable printer model, printing parameter settings, etc. After querying the template matching the first RFID in the template database, the application will extract the template information and display it on the user interface of the application. The displayed content may include a preview image, name, description, applicable scenario, etc. of the template, so that the user can intuitively understand and select a printing template suitable for the current consumables. The user can browse the displayed template list through the user interface of the application and select the target template according to his or her needs. The application usually provides intuitive interaction methods (such as clicking, sliding, etc.) to simplify the user's operation process. When the user selects the target template, the application will further process this selection, including but not limited to loading template parameters, preparing printing tasks, updating consumable usage records, etc. These subsequent processing steps will ensure that the printing job can be carried out smoothly according to the user's selections and the characteristics of the consumables.

[0037] Optionally, querying the corresponding template through the first RFID and displaying it in the application includes: Constructing an SQL query statement or query logic based on the RFID, and executing the SQL query statement or query logic to locate and return query results based on the index and cache mechanism; Encapsulate the query result into an HTTP response body, and set an HTTP status code and a response header to form a response; The response is sent to the application via the HTTPS protocol, and the application parses the HTTP response body and displays corresponding template information.

[0038] When the application receives the first RFID from the printer RFID reader, it first needs to build an SQL query statement or corresponding query logic based on the first RFID. The purpose of this query statement or logic is to find the consumable template information that matches the RFID in the database (such as MySQL, PostgreSQL, etc.). The construction of the query statement usually involves the design of the database table. For example, there may be a table dedicated to storing the association information between the RFID of the consumable and its corresponding template. After the query statement or logic is built, the application will execute the query and use the database index and cache mechanism to optimize the query performance, quickly locate and return the query results. The index can significantly improve the query speed, especially when processing a large amount of data; while the cache mechanism can reduce the number of database accesses, further speeding up the query. After querying the template information, the application will encapsulate this information into an HTTP response body. This response body contains the specific information of the template, such as the template name, description, parameter settings, etc. At the same time, the application will also set the HTTP status code and response header to indicate the status and type of the response. HTTP status codes (such as 200 OK) are used to tell the client that the request has been successfully processed, while the response header may contain some additional information, such as content type (Content-Type), content length (Content-Length), etc. After encapsulating the HTTP response, the application sends this response to the application that requested it through the HTTPS protocol. HTTPS is a secure socket layer hypertext transfer protocol that adds the SSL / TLS layer to HTTP. It can ensure the security and integrity of data during transmission. Sending responses through HTTPS can prevent data from being eavesdropped or tampered with during transmission. The application that receives the response will parse the HTTP response body and extract the template information from it. Then, it will display this information on the user interface, which may include a preview of the template, name, description, etc. The user can select a suitable template based on the displayed information and perform subsequent printing operations.

[0039] The SQL query statement or query logic is constructed according to the RFID. This step makes full use of the database index and cache mechanism. The index can speed up the retrieval of data, while the cache mechanism can reduce the number of database accesses, thereby significantly improving the query efficiency. This means that when the application needs to query the template information associated with a specific RFID, it can get a quick response, reducing the user's waiting time. The query results are sent to the application through the HTTPS protocol. This step ensures the security of the data transmission process. The HTTPS protocol encrypts the transmitted data to prevent the data from being intercepted or tampered with during the transmission process, protecting the user's privacy and data security. The query results are encapsulated into an HTTP response body, and the HTTP status code and response header are set to form a response. This encapsulation method makes the response data have a unified format and structure, which is convenient for the application to parse and process. At the same time, the setting of the HTTP status code and response header can provide additional information to the application, such as whether the request is successful, the type of response data, etc., which enhances the flexibility and scalability of the platform. The application parses the HTTP response body and displays the corresponding template information. This step is directly facing the user. Through the intuitive interface, the preview image, name, description and other detailed information of the template are displayed, so that users can easily understand and select the template that suits them. This rich user experience helps improve user satisfaction and loyalty. The entire process from RFID reading to template information display has been optimized. The RFID reader can quickly and accurately read the RFID information of the consumables, the database can efficiently retrieve the template information associated with the RFID, and the application can quickly display this information to the user. This overall process optimization enables the platform to run more efficiently and improves the overall performance of the platform.

[0040] Optionally, executing the SQL query statement or query logic to locate and return the query result according to the index and cache mechanism includes: Execute the SQL query statement or query logic to determine the target index, and check whether the target index exists in the cache data; When the target index exists in the cache data, obtaining first data corresponding to the target index from the cache data, and returning the first data as a result; When the target index does not exist in the cache data, the corresponding second data in the data table is located according to the target index, and the second data is returned as a result.

[0041] Construct and execute a SQL query statement or call the corresponding query logic based on the RFID. The purpose of this query is to retrieve the template information associated with a specific RFID from the database. When executing the query, the database management system (DBMS) analyzes the query statement and determines the index that can be used by the query condition. An index is a data structure composed of the values ​​of one or more columns in a database table. It can improve query efficiency because the DBMS can directly find data through the index without scanning the entire table. After determining the target index, the platform checks whether there is data corresponding to the target index in its built-in cache data (such as query cache, page cache, etc.). The cache is a copy of data stored in the platform's memory, and its access speed is much faster than the database on the disk. If the data of the target index exists in the cache, the data can be obtained directly from the cache without accessing the database table. If the data of the target index exists in the cache (that is, the cache hit), the platform will directly take out the data (called the first data) from the cache and return it to the application as the query result. This method greatly reduces the query response time because the access speed of the cache is much faster than the disk I / O. If the data of the target index does not exist in the cache (i.e., a cache miss), the platform needs to locate the corresponding position in the database table based on the target index, find and read the data (called the second data). This usually involves disk I / O operations, which are relatively slow. Once the data is found, the platform returns it to the application. In the case of a cache miss, some platforms may choose to store the newly queried data (second data) in the cache so that the same or similar queries in the future can get results faster. However, this step is not required, depending on the platform's caching strategy and performance requirements.

[0042] The target index is determined by executing SQL query statements or query logic. The index is a data structure that sorts the values ​​of one or more columns in the database table, which can greatly speed up the retrieval of data. Using indexes can quickly narrow the query scope and reduce the amount of data that the database needs to scan, thereby improving query efficiency. After determining the target index, first check whether the target index exists in the cache data. If it exists, the corresponding data (first data) is directly obtained from the cache, which can avoid re-accessing the database, further reducing the query time and improving the response speed of the platform. The existence of the cache mechanism allows most query requests to be satisfied directly from the cache without accessing the database. This can significantly reduce the number of database accesses and load, protect database resources, and extend the service life of the database. Due to the improvement of query efficiency and the reduction of database load, the platform can respond to user query requests faster and display query results to users. This ability to respond quickly can improve user satisfaction and experience. When the data in the database changes, there needs to be a mechanism to update or invalidate the corresponding cache data to ensure that the data in the cache is consistent with the data in the database. In this way, the data returned by the cache is still accurate and reliable. Indexes and cache mechanisms can usually be configured according to actual needs. For example, the selection of indexes and cache size can be optimized based on query frequency and data access patterns. This flexibility enables the platform to be adjusted and optimized according to different application scenarios and requirements, improving the scalability of the platform.

[0043] S130, in response to a user clicking on a target template, printing using the target template and recording a first length of each printing of the consumable, adding a plurality of the first lengths to obtain a second length, and calculating a difference between a total length of the consumable and the second length; When using the printing platform, users will select a target template from the multiple templates provided by the platform according to their needs. This template may predefine the document format, layout, font, etc., so that users can quickly generate the required printed documents. When the user selects the target template and enters the content to be printed (if any), the platform will generate the final printed document based on this template. Then, the user triggers the print operation, and the platform sends the document to the printer for printing. During each printing process, the platform records the amount of consumables used, especially for consumables that can be quantified in length (such as paper). The first length refers to the length of consumables consumed by each print job. For example, if A4 paper is printed, each print job will consume the length of an A4 paper. The platform will continue to track and record the length of consumables consumed by each print job, and add up these length values ​​to obtain a total consumable usage, namely the second length. The second length represents the total amount of consumables consumed by all print jobs from a certain point in time (such as the moment when the platform starts to record the consumable usage) to the current point in time. In order to more accurately grasp the remaining amount of consumables, the platform also needs to know the initial total amount of consumables (i.e., total length). This total amount may be the value marked on the consumables package, or it may be obtained by the platform in some way (such as scanning or input during initialization). The platform will then subtract this total length from the second length calculated previously (i.e., the amount of consumables used) to obtain the remaining amount of consumables (i.e., the difference).

[0044] Optionally, the printing using the target template and recording the first length of each printing of the consumable includes: Before starting printing, obtain the second RFID of the consumable again, and compare the second RFID with the first RFID; When the second RFID is consistent with the first RFID, printing begins; When the second RFID is inconsistent with the first RFID, it is prompted that the consumables are not compatible.

[0045] Before the user selects the target template and prepares to start printing, the platform will perform an additional step to verify the compatibility of the consumables. This step involves using RFID technology to read the RFID tag on the consumables. The platform uses an RFID reader to obtain the RFID information on the consumables, namely the second RFID. After obtaining the second RFID of the consumable, the platform will compare it with the first RFID previously recorded. If the platform finds that the second RFID is consistent with the first RFID after comparison, it means that the current consumables and template are compatible. At this time, the platform will allow the print job to continue, generate a print document using the target template, and send it to the printer for printing. If the platform finds that the second RFID is inconsistent with the first RFID after comparison, it means that the current consumables and template are incompatible. At this time, the platform will interrupt the print job and issue a prompt to the user through the user interface to inform the user that the consumables and template are not compatible. Such a prompt helps the user to replace the correct consumables or templates in time to avoid wasting time and resources. After confirming that the consumables are compatible and starting to print, the platform will continue to perform the steps described previously, that is, recording the length of consumables consumed by each print job (first length). This length may be calculated based on the specifications of the supplies (such as paper size) and the specific circumstances of the print job (such as number of copies, page layout, etc.).

[0046] By comparing the second RFID with the first RFID, the platform can verify whether the currently loaded consumables are compatible with the template selected by the user. If they are inconsistent, the platform will promptly prompt the user that the consumables are incompatible, thereby avoiding printing failure or waste caused by incorrect consumables. Suitable consumables are the basis for ensuring printing quality. Ensuring the compatibility of consumables can reduce printing quality problems caused by mismatched consumables, such as color deviation and lack of clarity. Comparing RFID before printing is actually a double verification of consumable information. This verification mechanism increases the accuracy of the platform's judgment and reduces incorrect operations caused by incorrect information or confusion. The platform can automatically detect the RFID information of consumables without manual intervention, which improves the convenience and efficiency of operation. When it is detected that the consumables are incompatible, the platform can immediately issue a prompt to the user, avoiding the user from performing incorrect printing operations without knowing it. This instant feedback mechanism helps to improve user satisfaction and trust. For users who are not familiar with the printing platform or consumables, RFID comparison can avoid trouble and confusion caused by misoperation or confusion. Each RFID comparison before printing is a record of consumable usage data. These data can be used for subsequent refined management work such as consumables management and cost accounting. By analyzing the usage and adaptability data of consumables, managers can optimize the procurement, storage and use strategies of consumables to further reduce costs and improve efficiency.

[0047] S140. When the difference is less than a threshold, it is prompted that the remaining length of the consumable is insufficient; when the difference is zero, the first RFID is added to a blacklist, and a prompt is given to replace the consumable.

[0048] The platform continuously tracks and records the use of consumables, and determines the remaining length by calculating the difference between the total length of the consumables and the used length. This remaining length is an important basis for users and managers to evaluate whether the consumables need to be replaced. When the platform detects that the remaining length of the consumables is less than the preset threshold, a prompt mechanism will be triggered to inform the user or manager that the remaining length of the consumables is insufficient. This prompt can appear in the form of a pop-up window, message push, sound warning, etc., depending on the implementation of the platform and the design of the user interface. The purpose is to allow users or managers to prepare before the consumables are exhausted, such as placing orders in advance to purchase and replace consumables. When the platform detects that the remaining length of the consumables is zero, that is, the consumables have been completely exhausted, the platform will take further measures. First, the platform will add the RFID of the consumable (i.e., the first RFID) to the blacklist. The blacklist is a management mechanism used to record information about consumables that have been exhausted or unavailable to prevent them from being used incorrectly in the future. Then, the platform will trigger a prompt mechanism again to explicitly require the user or manager to replace the consumables. This prompt may be more urgent and clearer than the previous prompt of insufficient remaining length to ensure that the user or manager can take immediate action.

[0049] Optionally, the management method further includes: In response to the user's template editing operation, detecting the type of the current consumables, and determining whether the type is compatible with the edited template; When the user completes editing, the edited template is saved to the personalized template library under the user account, and the edited template is associated with the corresponding RFID.

[0050] When a user starts editing a template, the platform will capture this action and respond. This usually means that the user wants to adjust the layout, format, font and other elements of the template according to their needs. During the editing process, the platform will automatically detect the type of consumables currently connected. The consumable type may include paper size, type (such as plain paper, matte paper, glossy paper, etc.), ink type, etc. This information is crucial for determining whether the template and consumables are compatible. The platform will make an adaptability judgment based on the detected consumable type and the content of the template the user is editing. For example, if the template edited by the user requires a special paper size or ink effect, and the currently connected consumables cannot meet these requirements, the platform will give a corresponding prompt. When the user completes the template editing, he can choose to save the edited template to the personalized template library under his personal account. The advantage of this is that the user can select and use the template he edited from the template library at any time to improve work efficiency. While saving the template, the platform will also associate the edited template with the corresponding RFID. The RFID here may refer to the RFID tag of the consumable, or it may refer to the RFID of the printing device or other related equipment. Through the association with RFID, the platform can manage the relationship between templates and consumables more intelligently. For example, when a user selects a template for printing, the platform can automatically check whether the currently connected consumables are compatible with the template, thereby avoiding unnecessary errors and waste. By detecting the compatibility of the consumable type with the template and giving timely prompts when the user edits the template, the platform can help users avoid the problem of incompatible consumables when printing, thereby improving the user experience. Associating the template with RFID enables the platform to automatically identify and manage the relationship between the template and the consumables, further increasing the intelligence level of the platform. Allowing users to edit and save personalized templates and associate them with their own RFID promotes the ability of users to customize according to their needs.

[0051] When the user edits the template, the platform can automatically detect the type of the current consumables and determine in real time whether the type is compatible with the template being edited. This instant feedback mechanism avoids the problem that the user finds that the consumables are incompatible after completing the editing, which improves work efficiency and accuracy. After the user edits the template, the platform not only saves the edited template to the personalized template library under the user's account, but also automatically associates the template with the corresponding RFID. This automated processing method reduces the tediousness of manual operations and improves the intelligence of the platform. The platform provides each user with a personalized template library, and users can edit and save templates according to their needs. This personalized setting enables users to find and use templates that meet their needs more quickly in subsequent printing, improving the user experience. When the consumable type is incompatible with the template, the platform can immediately prompt the user. This instant feedback mechanism helps users adjust the consumable or template settings in time, avoiding printing errors or waste caused by compatibility issues. By detecting the consumable type and making compatibility judgments with the template, the platform can ensure that users choose the most suitable consumables when using a specific template. This precise matching method helps improve printing effects and quality, and reduces printing problems caused by mismatched consumables. Since the platform can detect and prompt the compatibility issues between consumables and templates in real time, it can significantly reduce printing errors and waste caused by users' misselection of consumables. This not only helps save costs, but also improves resource utilization efficiency.

[0052] Optionally, the management method further includes: Collecting printer fault information, and using a preset fault tree model to deduce fault causes and occurrence paths based on the fault information; The target components are isolated in sequence according to the fault cause to determine whether the fault exists in the target component, the target component being a component associated with the fault cause.

[0053] Collecting printer fault information is the first step in fault diagnosis, which usually includes problems reported by users, error messages on the printer display, abnormal records in log files, etc. This information is the basis for subsequent analysis and is crucial for accurately determining the cause of the fault. Fault Tree Analysis (FTA) is an analysis method that starts from the possible fault state of the platform, represents the logical relationship of the fault event through logic gate symbols, and deduces all possible direct and indirect causes step by step. In printer maintenance, through the preset fault tree model, the platform can automatically deduce the possible fault cause and its occurrence path step by step based on the collected fault information. This method helps to quickly locate the problem and reduce the time of blind troubleshooting. After deriving the possible cause of the fault, the next step is to isolate the target component. The target component refers to the printer component directly associated with the cause of the fault, such as the print head, ink cartridge, sensor, etc. The purpose of isolating the target component is to verify whether the fault really exists in the component, so as to further narrow the scope of the fault. The isolated target component is checked by replacement, testing or other diagnostic means. If the fault is resolved after replacing or repairing the target component, it can be confirmed that the fault really exists in the component. This step is a key link in verifying the accuracy of fault diagnosis and is also the basis for subsequent repairs or replacement of components.

[0054] Using the preset fault tree model, the system can quickly narrow down the scope of the fault and locate the possible fault point based on the collected fault information through logical reasoning and algorithm analysis. Compared with traditional manual troubleshooting, this method greatly shortens the time of fault diagnosis. The entire diagnostic process is highly automated, reducing the need for manual intervention and improving the efficiency and accuracy of diagnosis. The fault tree model is built based on rich fault data and expert experience, and can accurately reflect the fault relationship and transmission path between components. Therefore, the fault cause derived by the model has a high degree of credibility. After the fault cause is derived, by isolating the target component for verification, it can be further confirmed whether the fault actually exists in the component. This double verification mechanism ensures the accuracy of the diagnostic results. Through the continuous collection and analysis of printer fault information, common fault modes and potential problem points can be identified. Through efficient fault diagnosis and maintenance processes, users' printing problems can be solved more quickly, improving users' satisfaction and trust in printing services. According to the printer's fault history and usage, users can be provided with more personalized service suggestions and optimization solutions to further improve user experience.

[0055] This embodiment also discloses a management system for printer consumables. Figure 5 Schematic diagram of a module of a management system for printer consumables disclosed in an embodiment of the present application, such as Figure 5As shown, the system includes a reading module 501, a query module 502, a length module 503 and a prompt module 504, wherein: A reading module 501, configured to read a first RFID of a consumable through an RFID reader of a printer, and transmit the first RFID to the application through wireless transmission; A query module 502, configured to query a corresponding template through the first RFID and display it in the application when the application receives the first RFID; The length module 503 is configured to, in response to a user clicking on a target template, use the target template to print and record a first length of each printing of the consumable, add a plurality of the first lengths to obtain a second length, and calculate a difference between the total length of the consumable and the second length; The prompt module 504 is configured to prompt that the remaining length of the consumable is insufficient when the difference is less than a threshold value, and to add the first RFID to a blacklist and prompt to replace the consumable when the difference is zero.

[0056] Optionally, the reading module 501 is configured to: Sending an authentication request to the RFID tag of the consumable material using a pre-shared key through the RFID reader of the printer, and detecting the authentication response replied by the RFID tag; When the authentication response meets the requirement, establishing a communication channel between the RFID reader and the RFID tag to obtain a first RFID of the RFID tag; The first RFID and the current timestamp are encrypted and packaged, and then sent to the application via Bluetooth.

[0057] Optionally, the query module 502 is configured to: Constructing an SQL query statement or query logic based on the RFID, and executing the SQL query statement or query logic to locate and return query results based on the index and cache mechanism; Encapsulate the query result into an HTTP response body, and set an HTTP status code and a response header to form a response; The response is sent to the application via the HTTPS protocol, and the application parses the HTTP response body and displays corresponding template information.

[0058] Optionally, the query module 502 is configured to: Execute the SQL query statement or query logic to determine the target index, and check whether the target index exists in the cache data; When the target index exists in the cache data, obtaining first data corresponding to the target index from the cache data, and returning the first data as a result; When the target index does not exist in the cache data, the corresponding second data in the data table is located according to the target index, and the second data is returned as a result.

[0059] Optionally, the management system further includes an editing module, wherein the editing module is configured to: In response to the user's template editing operation, detecting the type of the current consumables, and determining whether the type is compatible with the edited template; When the user completes editing, the edited template is saved to the personalized template library under the user account, and the edited template is associated with the corresponding RFID.

[0060] Optionally, the length module 503 is configured to: Before starting printing, obtain the second RFID of the consumable again, and compare the second RFID with the first RFID; When the second RFID is consistent with the first RFID, printing begins; When the second RFID is inconsistent with the first RFID, it is prompted that the consumables are not compatible.

[0061] Optionally, the management system further includes a fault module, wherein the fault module is configured to: Collecting printer fault information, and using a preset fault tree model to deduce fault causes and occurrence paths based on the fault information; The target components are isolated in sequence according to the fault cause to determine whether the fault exists in the target component, the target component being a component associated with the fault cause.

[0062] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0063] This embodiment also discloses an electronic device, referring to Figure 6 The electronic device may include: at least one processor 601 , at least one communication bus 602 , a user interface 603 , a network interface 604 , and at least one memory 605 .

[0064] The communication bus 602 is used to realize the connection and communication between these components.

[0065] The user interface 603 may include a display screen (Display) and a camera (Camera). The optional user interface 603 may also include a standard wired interface and a wireless interface.

[0066] The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0067] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Optionally, the processor 601 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 601 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 601, and it can be implemented separately through a chip.

[0068] Among them, the memory 605 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 605 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 605 may optionally be at least one storage device located away from the aforementioned processor 601. As Figure 6 As shown, the memory 605 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a method for managing printer consumables.

[0069] exist Figure 6 In the electronic device shown, the user interface 603 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 601 can be used to call the application program for the management method of printer consumables stored in the memory 605. When executed by one or more processors 601, the electronic device executes one or more methods in the above-mentioned embodiments.

[0070] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0071] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0072] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0073] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0074] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0075] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory 605, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory 605 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.

[0076] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for managing printer consumables, characterized in that: Applied to a printer management platform, the printer management platform includes an application and a printer, the method includes: reading a first RFID of the consumable by an RFID reader of the printer, and transmitting the first RFID to the application by wireless transmission; When the application receives the first RFID, the corresponding template is queried through the first RFID and displayed in the application; In response to a user clicking on a target template, printing is performed using the target template and a first length of each printing of the consumable is recorded, a plurality of the first lengths are added together to obtain a second length, and a difference between a total length of the consumable and the second length is calculated; When the difference is less than a threshold, it is prompted that the remaining length of the consumable is insufficient; when the difference is zero, the first RFID is added to a blacklist and a prompt is given to replace the consumable.

2. The method for managing printer consumables according to claim 1, characterized in that: The step of reading the first RFID of the consumable by the RFID reader of the printer and transmitting the first RFID to the application by wireless transmission comprises: Sending an authentication request to the RFID tag of the consumable material by using the RFID reader of the printer using a pre-shared key, and detecting the authentication response replied by the RFID tag; When the authentication response meets the requirement, establishing a communication channel between the RFID reader and the RFID tag to obtain a first RFID of the RFID tag; The first RFID and the current timestamp are encrypted and packaged, and then sent to the application via Bluetooth.

3. The method for managing printer consumables according to claim 1, characterized in that: The querying of the corresponding template by the first RFID and displaying it in the application program includes: Constructing an SQL query statement or query logic based on the RFID, and executing the SQL query statement or query logic to locate and return query results based on the index and cache mechanism; Encapsulate the query result into an HTTP response body, and set an HTTP status code and a response header to form a response; The response is sent to the application via the HTTPS protocol, and the application parses the HTTP response body and displays corresponding template information.

4. The method for managing printer consumables according to claim 3, characterized in that: The executing the SQL query statement or query logic to locate and return the query result according to the index and cache mechanism includes: Execute the SQL query statement or query logic to determine the target index, and check whether the target index exists in the cache data; When the target index exists in the cache data, obtaining first data corresponding to the target index from the cache data, and returning the first data as a result; When the target index does not exist in the cache data, the corresponding second data in the data table is located according to the target index, and the second data is returned as a result.

5. The method for managing printer consumables according to claim 1, characterized in that: The management method also includes: In response to the template editing operation of the user, detecting the type of the current consumables, and determining whether the type is compatible with the edited template; When the user completes editing, the edited template is saved to the personalized template library under the user account, and the edited template is associated with the corresponding RFID.

6. The method for managing printer consumables according to claim 1, characterized in that: The printing using the target template and recording the first length of each printing of the consumable material comprises: Before starting printing, obtain the second RFID of the consumable again, and compare the second RFID with the first RFID; When the second RFID is consistent with the first RFID, printing begins; When the second RFID is inconsistent with the first RFID, it is prompted that the consumables are not compatible.

7. The method for managing printer consumables according to claim 1, characterized in that: The management method also includes: Collecting printer fault information, and using a preset fault tree model to deduce fault causes and occurrence paths based on the fault information; The target components are isolated in sequence according to the fault cause to determine whether the fault exists in the target component, the target component being a component associated with the fault cause.

8. A management system for printer consumables, characterized in that: It includes a reading module, a query module, a length module and a prompt module, wherein: a reading module configured to read a first RFID of the consumable material through an RFID reader of the printer, and transmit the first RFID to the application through wireless transmission; a query module, configured to query a corresponding template through the first RFID and display it in the application when the application receives the first RFID; a length module configured to, in response to a user clicking on a target template, use the target template to print and record a first length of each printing of the consumable, add a plurality of the first lengths to obtain a second length, and calculate a difference between a total length of the consumable and the second length; The prompt module is configured to prompt that the remaining length of the consumable is insufficient when the difference is less than a threshold value, and to add the first RFID to a blacklist and prompt to replace the consumable when the difference is zero.

9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Printer consumable monitoring method and device and electronic equipment

    CN113110807A

  • Printing control method and system of label printer and storage medium

    CN117149104A

  • RFID with two tier connectivity, RFID in the PLC rack, secure RFID tags and RFID multiplexer system

    US20070143162A1

Cited By

  • Printing method based on consumable management, printing system, and printing device

    EP4779454A3