Interaction methods and interaction systems
By enabling information exchange between electronic devices and printers, the status of consumables can be monitored in real time, solving the problem of printers failing to promptly alert users when consumables are low, thus improving user experience and device operational stability.
Patent Information
- Application Number
- CN202610637401.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-05-09
- Filing Date
- 2026-05-08
- Publication Date
- 2026-11-10
AI Technical Summary
Existing printers cannot monitor the usage status of consumables in real time, which means that users cannot replenish consumables in time when they are low, affecting the user experience.
Through information interaction between electronic devices and printers, the usage status of consumables, including ink cartridges, printing media, and battery power, can be monitored in real time, providing instant reminders and status feedback.
It enables real-time monitoring of consumable usage status, improves user experience, and ensures normal printer operation.
Smart Images

Figure CN123067804A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image forming technology, and in particular to an interactive method and interactive system. Background Technology
[0002] Existing printers are operated via apps on electronic devices (such as mobile phones / tablets), but they can only perform basic printing commands and cannot monitor the status of consumables in the printer, such as the remaining consumables or printable balance. They only provide a notification when printing is impossible, which affects the user experience. Summary of the Invention
[0003] The purpose of this application is to provide an interaction method, printer, electronic device, interaction system, computer-readable storage medium, and computer program product to solve the problem of monitoring the usage status of consumables during the information interaction process between the printer and the electronic device.
[0004] To achieve the objectives of this application, the following technical solution is adopted:
[0005] In a first aspect, an interaction method is provided, characterized in that it is applied to a system including an electronic device and a printer; the printer includes consumables; the method includes:
[0006] The electronic device sends a query command to the printer; wherein the query command includes a first sub-command for querying the usage status of the consumables;
[0007] In response to the query command, the printer sends first information to the electronic device; wherein, the first information includes first sub-information for characterizing the usage status of the consumables;
[0008] Based on the first information, the electronic device determines whether the printer supports printing. If yes, the electronic device sends a print command to the printer; otherwise, the electronic device has a first state. The first state is used to indicate the reason why the printer does not support printing.
[0009] In response to the print command, the printer performs a print operation and sends second information to the electronic device; wherein the second information includes second sub-information for indicating whether the print operation is completed;
[0010] Based on the second information, the electronic device determines whether the printer supports continuing the printing operation. If yes, the electronic device sends a printing command to the printer; otherwise, the electronic device has a second state. The second state is used to indicate the reason why the printer does not support continuing the printing operation.
[0011] As a further embodiment, the second information also includes third sub-information for characterizing the usage status of the consumable.
[0012] As a further embodiment, the feature is that the usage status of the consumables represented by the first sub-information includes whether the printer has consumables installed.
[0013] When consumables are installed in the printer, the usage status of the consumables represented by the first sub-information also includes the printable remaining amount of the consumables and whether the ID code of the consumables matches the printer.
[0014] The third sub-information represents the usage status of the consumables, including the remaining printable amount of the consumables.
[0015] As a further embodiment, the consumables include imaging consumables; the printer includes a detachably connected first housing and a first cover; the imaging consumables are housed within a receiving space defined by the first housing and the first cover; the first housing has a first opening for loading and unloading the imaging consumables; the first cover covers the first opening, and the first cover is part of the printer's outer casing;
[0016] The printer also includes a first sensor for detecting whether the first cover is assembled on the first housing;
[0017] The query instruction also includes a second sub-instruction for querying the assembly status of the first cover.
[0018] The first information also includes a fourth sub-information, used to characterize the assembly state of the first cover;
[0019] The second information also includes a fifth sub-information, which characterizes the assembly state of the first cover.
[0020] As a further embodiment, the consumables include printing media;
[0021] The query instruction also includes a third sub-instruction for querying the status of the printing medium;
[0022] The first information also includes a sixth sub-information, used to characterize the state of the printing medium;
[0023] The second information also includes a seventh sub-information, used to characterize the state of the printing medium.
[0024] As a further embodiment, the printer includes a first outlet for outputting printing media from the printer; the printer also includes a second sensor for detecting whether printing media is present at the first outlet;
[0025] The third sub-instruction includes an instruction to query whether printing media exists at the first outlet;
[0026] The sixth sub-information includes information used to characterize whether printing media exists at the first outlet;
[0027] The seventh sub-information includes information used to characterize whether printing media exists at the first outlet.
[0028] As a further embodiment, the printing medium is housed within a containment space defined by a first chamber; the first chamber includes a second outlet for discharging the printing medium from the first chamber.
[0029] The printer also includes a third sensor for detecting whether the printing medium output from the first chamber is stuck at the second outlet;
[0030] The third sub-instruction also includes an instruction to query whether the printing medium is stuck at the second outlet;
[0031] The sixth sub-information also includes information used to characterize whether the printing medium is stuck at the second outlet;
[0032] The seventh sub-information also includes information characterizing whether the printing medium is stuck at the second outlet; and / or,
[0033] The third sub-instruction also includes an instruction to query the available amount of printing media located in the first compartment;
[0034] The sixth sub-information also includes information for characterizing the amount of printing media available in the first chamber;
[0035] The seventh sub-information also includes information for characterizing the amount of printing media available in the first compartment.
[0036] As a further solution, the query instruction also includes a fourth sub-instruction for querying the printer's battery level;
[0037] The first information also includes an eighth sub-information, used to characterize the printer's battery level;
[0038] The second information also includes a ninth sub-information, which characterizes the printer's battery level.
[0039] As a further embodiment, before the electronic device sends the query command to the printer, the interaction method further includes:
[0040] The electronic device receives a printing instruction;
[0041] In response to the print instruction, the electronic device sends a first instruction to the printer;
[0042] In response to the first instruction, the printer sends a third message to the electronic device;
[0043] Based on the third information, the electronic device determines whether it has successfully connected with the printer. If so, the electronic device sends the query command to the printer; otherwise, the electronic device remains in the first state.
[0044] As a further embodiment, before the electronic device sends the print command to the printer, the interaction method further includes:
[0045] The electronic device receives a print area setting instruction and sets the print area of the printer according to the print area setting instruction.
[0046] As a further embodiment, the printer performs the printing operation by including:
[0047] Cache the image data to be printed;
[0048] Print the cached image data.
[0049] As a further provision, before the printer performs the printing operation, the interaction method further includes:
[0050] The electronic device sends a clear command to the printer;
[0051] In response to the clear command, the printer clears the image data cached from the previous print.
[0052] In a second aspect, a printer is provided, characterized in that it is used in conjunction with consumables, the printer comprising a first processing module, a first storage module, and a first communication module; the first storage module and the first communication module are coupled to the first processing module, the first communication module being used to communicate with an electronic device; the first storage module being used to store computer program code, the computer program code including computer instructions, the first processing module reading the computer instructions from the first storage module to cause the printer to execute the method performed by the printer in the interaction method described in any of the preceding claims;
[0053] The first storage module is further configured to store the first information and the second information; the first information is configured to characterize the state of the printer before the printing operation; the first information includes a first sub-information, configured to characterize the usage state of the consumables; the second information is configured to characterize the state of the printer during the printing operation; the second information includes a second sub-information, configured to characterize whether the printing operation is completed.
[0054] Thirdly, an electronic device is provided, characterized in that it includes a second processing module, a second storage module, and a second communication module; the second storage module and the second communication module are coupled to the second processing module, the second communication module being used to communicate with a printer; the second storage module is used to store computer program code, the computer program code including computer instructions, and the second processing module reads the computer instructions from the second storage module to cause the electronic device to execute the method performed by the electronic device in any of the preceding interactive methods.
[0055] Fourthly, an interactive system is provided, characterized in that it includes an electronic device and a printer, wherein the electronic device is used to execute the method executed by the electronic device in the interactive method described in any of the preceding claims, and the printer is used to execute the method executed by the printer in the interactive method described in any of the preceding claims.
[0056] Fifthly, a computer-readable storage medium is provided, characterized in that: the computer-readable storage medium includes a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the method executed by the electronic device in any of the preceding interactive methods, or, when executed on a printer, cause the printer to perform the method executed by the printer in any of the preceding interactive methods.
[0057] Sixthly, a computer program product is provided, characterized in that: when the computer program product is run on a computer, the computer can execute the method executed by the electronic device in the interaction method described in any of the preceding claims, or when the computer program product is run on a computer, the computer can execute the method executed by the printer in the interaction method described in any of the preceding claims.
[0058] The beneficial effects of this application are:
[0059] The interactive method, printer, electronic device, interactive system, computer-readable storage medium, and computer program product provided in this application solve the problem of monitoring the usage status of consumables during the information interaction process between the printer and the electronic device. Attached Figure Description
[0060] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments are briefly described below. The drawings described below are merely embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0061] Figure 1 This is a schematic diagram of the architecture of the printing system provided in the embodiments of this application;
[0062] Figure 2 This is a flowchart illustrating the interaction method provided in an embodiment of this application;
[0063] Figure 3 This is an exploded view of the printer provided in an embodiment of this application;
[0064] Figure 4 This is a cross-sectional schematic diagram of the printer provided in an embodiment of this application;
[0065] Figure 5 This is a schematic diagram of the power detection circuit provided in an embodiment of this application. Detailed Implementation
[0066] The technical solutions provided by the embodiments of this application will be described in detail below with reference to the accompanying drawings. The terms "comprising" and "having," and any variations thereof, mentioned in the description of this application, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0067] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0068] In the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone.
[0069] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0070] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0071] Based on this, this application provides an interactive method that can monitor the usage status of consumables to ensure normal printing by the inkjet photo printer.
[0072] For example, Figure 1 This illustration shows a schematic diagram of the architecture of a printing system applying an interactive method according to an embodiment of this application. Figure 1 As shown, the printing system 100 includes an electronic device 110 and a printer 120.
[0073] The electronic device 110 can be any electronic device with a display screen. For example, the electronic device 110 can include, but is not limited to, smartphones, netbooks, tablets, writing tablets, smartwatches, smart bracelets, phone watches, smart cameras, PDAs, in-vehicle computers, personal computers (PCs), personal digital assistants (PDAs), portable multimedia players (PMPs), augmented reality (AR) / virtual reality (VR) devices, smart TVs, projection devices, or motion-sensing game consoles in human-computer interaction scenarios. Alternatively, the electronic device 110 can also be other types or structures of electronic devices with a display screen; this application embodiment does not impose any limitations on this.
[0074] The printer 120 can be used to receive various instructions sent by the electronic device 110 and perform various operations, such as, but not limited to, printing operations and query operations. Optionally, the printer 120 can be a thermal inkjet printer or a piezoelectric inkjet printer, and this application embodiment does not impose any limitation on this.
[0075] Optionally, the electronic device 110 and the printer 120 can establish a connection via wired or wireless communication. For example, wireless communication methods may include, but are not limited to, Bluetooth, wireless local area networks, etc., and this application embodiment does not impose any limitations on this.
[0076] Exemplary examples show that the consumables in a printer include imaging consumables and printing media; in one specific embodiment, the printer is an inkjet printer, and the imaging consumables included in an inkjet printer are ink cartridges; in another specific embodiment, the printer is a dye-sublimation printer, and the imaging consumables included in a dye-sublimation printer are thermal printheads; in yet another specific embodiment, the printer is a ribbon printer, and the imaging consumables included in a ribbon printer are ribbons. This application does not impose any limitations on the type of printer and consumables.
[0077] For example, Figure 2 The diagram illustrates a flowchart of an interaction method provided in an embodiment of this application. This interaction method is applied to a system including an electronic device and a printer; the printer includes consumables. Figure 2 As shown, the method includes the following steps:
[0078] S101, Electronic device receives print instruction.
[0079] The printing instructions include at least one of clicking the print prompt on the display screen, pressing the print button, and inputting the print instructions via voice.
[0080] S102, In response to a print instruction, the electronic device sends a first instruction to the printer.
[0081] The first instruction includes instructions for querying the communication connection status between the electronic device and the printer.
[0082] The printer includes a first communication module, and the electronic device includes a second communication module. The first and second communication modules are connected to form a communication link between the printer and the electronic device to enable signal transmission between them. Accordingly, the first instruction includes an instruction for querying the connection status of the communication link between the first and second communication modules.
[0083] S103. In response to the first instruction, the printer sends third information to the electronic device.
[0084] The third piece of information is used to characterize the communication connection status between the printer and the electronic device, specifically, the connection status of the communication link between the first and second communication modules. For example, when the third piece of information indicates that the communication link between the first and second communication modules is successfully connected, the electronic device can display a successful connection notification on its screen or through a speaker. When the third piece of information indicates that the communication connection between the first and second communication modules is not complete, the electronic device can display a failed connection notification on its screen or through a speaker, reminding the user to connect first. For instance, the electronic device's screen might display "Please connect the printer first" and switch to the "Connect" interface.
[0085] S104. Based on the third information, the electronic device determines whether it is successfully connected to the printer. If yes, it executes step S105 (the electronic device sends a query command to the printer). If no, it executes step S111 (the electronic device has a first state).
[0086] The first state indicates why the printer does not support printing. Specifically, this could be due to the electronic device and printer not being successfully connected. For example, when the electronic device and printer are not successfully connected, the electronic device's display shows "Please connect the printer first" and switches to the "Connect" interface.
[0087] In another embodiment, step S105 can also be triggered by the user, for example, by clicking the "Print" or "Continue Printing" operation button on the electronic device.
[0088] S105. The electronic device sends a query command to the printer.
[0089] The query instruction is used to query the status of the printer before it performs a printing operation. The query instruction includes a first sub-instruction for querying the usage status of consumables. Specifically, the query instruction includes at least one of the following: an instruction to query the assembly status of the printer housing; an instruction to query the usage status of the printing media in the inkjet printer; an instruction to query the usage status of the imaging consumables in the printer; an instruction to query the printer's battery level; and an instruction to query whether there is printed media that has been printed at the printer's first outlet. This application embodiment does not limit the quantity and type of information queried by the query instruction.
[0090] For example, the printer includes a detachably connected first housing and a first cover; wherein imaging consumables are housed within a receiving space defined by the first housing and the first cover; the first housing has a first opening for loading and unloading consumables; the first cover covers the first opening, and the first cover is part of the printer housing; the instruction for querying the assembly status of the printer housing includes an instruction for querying whether the first cover is on the first housing, and if the first cover is not on the first housing, the display screen of the electronic device may display "Open cover" to remind the user to close the first cover on the first housing in time.
[0091] For example, the printer includes a first compartment where printing media (such as photo paper for printing photos) is contained within a defined space. The first compartment includes a second outlet for discharging printing media from the first compartment. Instructions for querying the usage status of the printing media in the printer include instructions to check if the printing media is stuck at the second outlet, instructions to check the remaining usable amount of printing media in the first compartment, and instructions to check if the ID code of the printing media in the first compartment matches the printer. For instance, when the printing media is stuck at the second outlet, the electronic device's display screen can indicate "Paper Jam," reminding the user to clear it promptly. When the remaining usable amount of printing media in the first compartment is insufficient, the electronic device's display screen can indicate "Out of Paper," prompting the user to replace the printing media promptly. When the ID code of the printing media in the first compartment does not match the printer, the electronic device's display screen can indicate "Authentication Failed," reminding the user to replace the printing media with one that matches the printer.
[0092] In one specific implementation, the printer is an inkjet printer, and the imaging consumables are ink cartridges. Each ink cartridge can print a fixed number of pages of printing media (such as photo paper), and the lifespan of the cartridge decreases with each page printed. Instructions for checking the status of the imaging consumables in the printer include checking the remaining printable pages (number of pages remaining), checking if an ink cartridge is installed in the printer, and checking if the cartridge's ID code matches the printer's. For example, when the remaining printable pages are 0, the electronic device's display can show "Low Ink," reminding the user to replace the cartridge promptly. When no ink cartridge is installed in the printer, the electronic device's display can show "No Ink Cartridge," reminding the user to insert a cartridge. When the cartridge's ID code does not match the printer's, the electronic device's display can show "Authentication Failed," reminding the user to replace the cartridge with one that matches the printer's specifications.
[0093] In another specific implementation, the printer is a dye-sublimation printer, and the amount of printing media loaded into the printer each time is limited. An RFID tag is attached to the printing media; an RFID coil is installed on the printer to identify the RFID tag on the printing media. By identifying the RFID tag on the printing media through the RFID coil, the printer can determine the amount of printing media that has been printed, and thus calculate the remaining printable amount of printing media.
[0094] For example, the printer includes an energy storage element (such as a battery) to power the printer; the instruction to query the printer's power level includes an instruction to query the energy storage element's power. For instance, when the printer's power is low, the electronic device's display screen can show "Low Power" or "Battery Low" to remind the user to replace the energy storage element or charge it in time.
[0095] For example, the printer includes a first outlet for outputting printed media that has been printed; when the printer finishes printing a print media, the display screen of the electronic device can indicate "Paper in the paper path" to remind the user to pick up the printed media in time.
[0096] In other optional implementations, the query command may include at least one of the following: a command to query whether the printer is busy printing; a command to query whether the printer is under low voltage; a command to query whether the printer's printing operation is being cancelled; a command to query whether the printer's data is abnormal; and a command to query whether the printer's electromechanical system is malfunctioning. This application embodiment does not limit the quantity or type of information queried by the query command. When the printer is busy printing, the electronic device's display screen may show "Busy Printing"; when the printer is under low voltage, the electronic device's display screen may show "Low Voltage"; when the printer's printing operation is being cancelled, the electronic device's display screen may show "Cancelling"; when the printer's data is abnormal, the electronic device's display screen may show "Data Abnormal"; and when the printer's electromechanical system is malfunctioning, the electronic device's display screen may show "Electromechanical Error".
[0097] S106. In response to the query command, the printer sends the first information to the electronic device.
[0098] The first information is used to characterize the state of the printer before it performs a printing operation; the first information includes a first sub-information, which is used to characterize the usage status of the consumables.
[0099] S107. Based on the first information, the electronic device determines whether the printer supports printing. If yes, step S108 (the electronic device sends a print command to the printer) is executed; otherwise, step S111 (the electronic device has a first state) is executed. The first state indicates the reason why the printer does not support printing.
[0100] Specifically, the first information includes the printer housing assembly status, the usage status of the printing media in the inkjet printer, the usage status of the consumables in the printer, the power level in the printer, and whether there is printed media that has been printed at the first outlet of the printer, etc. This application embodiment does not limit this.
[0101] For example, the printer includes a detachably connected first housing and a first cover; wherein consumables are housed within a receiving space defined by the first housing and the first cover; the first housing has a first opening for loading and unloading consumables; the first cover covers the first opening, and the first cover is part of the printer housing; the printer housing assembly state includes whether the first cover is covering the first housing, if the first cover is not covering the first housing, the display screen of the electronic device can prompt "Open cover" to remind the user to cover the first housing in time, at this time, the first state also includes "Open cover".
[0102] For example, the printer includes a first compartment where printing media (such as photo paper for printing photos) is contained within a defined space. The first compartment includes a second outlet for outputting printing media from the first compartment. The usage status of the printing media in the inkjet printer includes whether the printing media is stuck at the second outlet, the amount of printing media used in the first compartment, and whether the ID code of the printing media in the first compartment matches the printer. For example, when the printing media is stuck at the second outlet, the display screen of the electronic device can display "Paper Jam," reminding the user to clean it promptly. When the amount of printing media used in the first compartment is insufficient, the display screen of the electronic device can display "Out of Paper," prompting the user to replace the printing media promptly. When the ID code of the printing media in the first compartment does not match the printer, the display screen of the electronic device can display "Authentication Failed," reminding the user to replace the printing media that matches the printer promptly. In this case, the first status also includes "Paper Jam," "Out of Paper," and "Authentication Failed."
[0103] In one specific implementation, the number of printable media (such as photo paper) that the imaging consumable can print is fixed. Each printable media reduces the lifespan of the imaging consumable. The usage status of the imaging consumable in the printer includes the remaining printable amount, whether the printer contains the imaging consumable, and whether the consumable's ID code matches the printer. For example, when the imaging consumable is an ink cartridge and the remaining printable amount is 0, the electronic device's display can show "Low Ink," reminding the user to replace the cartridge. When no ink cartridge is installed in the printer, the electronic device's display can show "No Ink Cartridge," reminding the user to insert a cartridge. When the cartridge's ID code does not match the printer, the electronic device's display can show "Authentication Failed," reminding the user to replace the cartridge with one that matches the printer. In this case, the first status also includes "Low Ink," "No Ink Cartridge," and "Authentication Failed."
[0104] For example, the printer includes an energy storage element (such as a battery) to power the printer; the electrical energy in the printer includes the electrical energy of the energy storage element. For instance, when the printer's power is low, the electronic device's display screen can show "low battery" or "low power" to remind the user to replace the energy storage element or charge it in time. In this case, the first state also includes "low battery" or "low power".
[0105] For example, the printer also includes a power detection circuit for detecting the printer's power level and sending it to an electronic device; the electronic device's display screen can display the inkjet printer's power level in real time.
[0106] For example, the printer includes a first outlet for outputting printed media that has been printed; when the printer finishes printing one sheet of printed media, the display screen of the electronic device can indicate "Paper in the paper path" to remind the user to remove the printed media in time. At this time, the first state also includes "Paper in the paper path".
[0107] In other optional implementations, the first information may also include whether the printer is under low voltage, whether the printer data is abnormal, or whether the printer's electromechanical system is malfunctioning. When the printer is under low voltage, the electronic device's display screen may show "Low Voltage"; when the printer data is abnormal, the electronic device's display screen may show "Data Abnormal"; when the printer's electromechanical system is malfunctioning, the electronic device's display screen may show "Electromechanical Error". In this case, the first state may also include "Low Voltage", "Data Abnormal", and "Electromechanical Error".
[0108] S108. The electronic device sends a print command to the printer.
[0109] S109. In response to the print command, the printer performs the print operation and sends a second message to the electronic device.
[0110] The second information is used to characterize the state of the printer during the printing operation; the second information includes a second sub-information, which is used to characterize whether the printing operation is completed.
[0111] Furthermore, the second information includes a third sub-information, which is used to characterize the usage status of consumables; for example, the usage status of imaging consumables and the usage status of printing media.
[0112] S110. Based on the second information, the electronic device determines whether the printer supports continuing the printing operation. If yes, then step S108 (the electronic device sends a printing instruction to the printer) is executed; otherwise, step S112 (the electronic device has a second state) is executed.
[0113] The second status indicates why the printer does not support continuing the printing operation.
[0114] S111, The electronic device is in the first state.
[0115] S112, The electronic device has a second state.
[0116] In some other embodiments, the interaction method provided by this application also includes re-executing step S105 after step S111. For example, after troubleshooting, the user clicks the "print" or "continue printing" button on the electronic device to trigger step S105, or the electronic device automatically executes step S105 again after a certain period of time.
[0117] Similarly, in some other embodiments, the interaction method provided by this application also includes re-executing step S105 after step S112. For example, after troubleshooting, the user clicks the "print" or "continue printing" button on the electronic device to trigger step S105, or the electronic device automatically executes step S105 again after a certain period of time.
[0118] Specifically, the second information includes the printer housing assembly status, the usage status of the printing media in the inkjet printer, the usage status of the imaging consumables in the printer, the printer's battery level, whether there is printed media at the first outlet of the printer, whether the printer has completed printing (for example, the print instruction includes printing 10 photos; when 10 photos are printed, the printer has completed printing (second sub-information); otherwise, the printer has not completed printing), and the printer's printing progress (for example, the printing progress of each photo is 10%, 20%,... up to the printing progress is 100%), etc. This application embodiment does not limit this.
[0119] For example, during the printing process, if the first cover is not on the first housing (e.g., the first cover has been maliciously removed from the first housing), the electronic device's display screen can prompt "Open cover," reminding the user to promptly replace the first cover on the first housing. In this case, the second state includes "Open cover." In other embodiments, even if the first cover is opened during printing, it will not affect the printing process. To avoid wasting time and consumables, the electronic device may not recognize "Open cover" as the second state; that is, the electronic device's display screen will not prompt "Open cover," but will instead display a state related to the printing process. In other words, when the printer's first cover is open, the electronic device determines that the printer supports continuing the printing operation. However, for safety, when the printer's first cover is open, printing can be paused. The electronic device's determination that the printer supports continuing the printing operation allows it to continue communicating with the printer without performing any operation when the first cover is closed, thus completing the printing process. The control logic is simple, reliable, and less prone to waste.
[0120] For example, during the printing process, when the printing media gets stuck at the second exit, the electronic device's display screen can indicate "Paper Jam" to remind the user to clean it in time; when the amount of printing media in the first compartment is insufficient, the electronic device's display screen can indicate "Out of Paper" to provide the user with a timely replacement of the printing media; at this time, the second state also includes "Paper Jam" and "Out of Paper".
[0121] For example, the printer is an inkjet printer, and the imaging consumable is an ink cartridge; during the printing operation, when the remaining printable amount of the ink cartridge (e.g., the number of pages remaining) is 0, the display screen of the electronic device can display "Low Ink" to remind the user to replace the ink cartridge in time; when no ink cartridge is installed in the printer (e.g., the ink cartridge has been maliciously removed), the display screen of the electronic device can display "No Ink Cartridge" to remind the user to insert an ink cartridge; at this time, the second state also includes "Low Ink" and "No Ink Cartridge".
[0122] For example, during the printing process, when the printer's battery is low, the electronic device's display screen can show "Low Battery" or "Low Battery" to remind the user to replace the energy storage component or charge it in time. In this case, the second state also includes "Low Battery" or "Low Battery".
[0123] For example, the printer also includes a power detection circuit for detecting the printer's power level and sending it to an electronic device; the electronic device's display screen can display the inkjet printer's power level in real time.
[0124] For example, during the printing process, when the printer finishes printing one page of media, the electronic device's display screen can indicate "Paper in the paper path," reminding the user to remove the printed media promptly. At this time, the second state also includes "Paper in the paper path."
[0125] For example, during the printing process, when the printer has finished printing all the photos indicated in the print instructions, the display screen of the electronic device may display "Printing complete".
[0126] For example, during the printing process, the display screen of the electronic device can show the printing progress of each photo, such as 10%, 20%... up to 100%.
[0127] In other alternative implementations, the second information may include at least one of the following: whether the printer is busy printing, whether the printer is under low voltage, whether the printer's printing operation is being cancelled, whether the printer's data is abnormal, or whether the printer's electromechanical system is malfunctioning. This application does not limit this scope.
[0128] When the printer is busy printing, the electronic device's display can show "Busy Printing"; when the printer is under low pressure, the display can show "Low Pressure"; when a print operation is being cancelled, the display can show "Cancelling"; when the printer's data is abnormal, the display can show "Data Abnormality"; when the printer has an electromechanical error, the display can show "Electromechanical Error". In this case, the second state also includes "Busy Printing", "Low Pressure", "Cancelling", "Data Abnormality", and "Electromechanical Error".
[0129] In one specific implementation, the usage status of consumables represented by the first sub-information includes the usage status of imaging consumables; specifically, it includes whether the printer has imaging consumables installed; when imaging consumables are installed in the printer, the usage status of consumables represented by the first sub-information also includes the printable remaining amount of the imaging consumables and whether the ID code of the imaging consumables matches the printer; the usage status of consumables represented by the third sub-information includes the printable remaining amount of the imaging consumables.
[0130] In one specific implementation, the usage status of consumables represented by the first sub-information includes the usage status of the printing media; specifically, it includes whether the printer has printing media installed; when printing media is installed in the printer, the usage status of consumables represented by the first sub-information also includes the printable remaining amount of the printing media and whether the ID code of the printing media matches the printer; the usage status of consumables represented by the third sub-information includes the printable remaining amount of the printing media.
[0131] In one specific implementation, the printer further includes a first sensor for detecting whether the first cover is assembled on the first housing; the query instruction further includes a second sub-instruction for querying the assembly status of the first cover; the first information further includes a fourth sub-information for characterizing the assembly status of the first cover in the printer before the printing operation is performed; the second information further includes a fifth sub-information for characterizing the assembly status of the first cover during the printing operation.
[0132] As a specific implementation, the query instruction also includes a third sub-instruction for querying the status of the printing medium; the first information also includes a sixth sub-instruction for characterizing the status of the printing medium in the printer before the printing operation is performed; the second information also includes a seventh sub-instruction for characterizing the status of the printing medium during the printing operation.
[0133] In a specific implementation, the printer also includes a second sensor for detecting whether the printed media that has been printed is located at the first exit; a third sub-instruction includes an instruction to query whether there is printed media at the first exit; a sixth sub-information includes information for indicating whether there is printed media at the first exit; and a seventh sub-information includes information for indicating whether there is printed media at the first exit.
[0134] Specifically, the second sensor is positioned between the rubber roller and the first outlet.
[0135] In a specific implementation, the printer also includes a third sensor for detecting whether the printing medium output from the first chamber is stuck at the second outlet; the third sub-instruction also includes an instruction to query whether the printing medium is stuck at the second outlet; the sixth sub-information also includes information for indicating whether the printing medium is stuck at the second outlet; and the seventh sub-information also includes information for indicating whether the printing medium is stuck at the second outlet.
[0136] As a specific implementation, the third sub-instruction also includes an instruction to query the available amount of printing media located in the first compartment; the sixth sub-information also includes information for characterizing the available amount of printing media located in the first compartment; and the seventh sub-information also includes information for characterizing the available amount of printing media located in the first compartment.
[0137] As a specific implementation, the query instruction also includes a fourth sub-instruction for querying the energy storage element, such as the battery's charge level; the first information also includes an eighth sub-instruction for characterizing the state of the energy storage element before the printing operation is performed; the second information also includes a ninth sub-instruction for characterizing the state of the energy storage element before the printing operation is performed.
[0138] In one specific implementation, the interaction method further includes the following before the electronic device sends a print command to the printer:
[0139] The electronic device receives a print area setting instruction and sets the printer's print area according to the instruction to achieve customization of the print area on the printing medium. Specifically, the print area setting instruction includes at least one of the following: the user moves the print area cursor on the electronic device's display screen to set the area; the user enters the planar coordinates of the print area on the display screen to set the area; or the user delineates the print area on the touch screen to set the area.
[0140] In one specific implementation, the print instruction sent by the electronic device includes image data to be printed; the printer performs the print operation including:
[0141] Cache the image data to be printed;
[0142] Print the cached image data.
[0143] Accordingly, before the printer performs a printing operation, the interaction methods also include:
[0144] The electronic device sends a clear command to the printer;
[0145] In response to the clear command, the printer clears the image data cached from the last print.
[0146] The image data to be printed includes one of the following two formats:
[0147] First form: Raw image data (data before Raster Image Processor)
[0148] The raw image data is a standard image file format without rasterization, including but not limited to compressed or uncompressed bitmap formats such as JPEG, PNG, and TIFF. The raw image data is decoded, color space converted (such as RGB to CMYK or YMCKO conversion), halftoning, and rasterization are performed by the printer's built-in Raster Image Processor (RIP) to generate binary bitmap data that the printer engine can recognize. In this configuration, the printer's system-on-a-chip (SoC) needs to integrate a high-performance image processing unit, and the RIP processing time will directly affect the first line print delay and the overall print throughput.
[0149] Second form: Preprocessed binary dot matrix data (data after RIP)
[0150] Binary dot matrix data is generated after the entire RIP process is completed on the electronic device side. Specifically, this includes: color management, image halftone algorithms (such as error diffusion or AM / FM screening), resolution scaling, and data compression (such as JBIG, MMR, or custom run-length encoding) performed on the electronic device side. The final output is line buffer data or page buffer data that matches the printer engine resolution. The printer side only needs to perform data decompression and direct engine write, without the need for a dedicated image processor (ASIC). This can significantly reduce the printer's bill of materials cost (BOM cost), while eliminating the performance bottleneck of embedded RIP and improving perceived responsiveness.
[0151] The steps in the above-described interaction method are only one specific implementation method. The embodiments of this application do not limit the order of the steps in the interaction method and can be modified according to actual needs.
[0152] In one specific implementation, the printer is an inkjet printer; the imaging consumable in the inkjet printer is an ink cartridge; the printing medium in the inkjet printer is a printing medium used for printing photos, that is, this inkjet printer is an inkjet photo printer. Currently, when printing photos using a dye-sublimation printer, magenta, yellow, and cyan need to be printed separately in three steps, and the desired color is formed by combining the three prints, resulting in a relatively slow printing speed; at the same time, the ribbons and printers used in dye-sublimation photo printers are relatively expensive, resulting in a relatively high printing cost. Compared to dye-sublimation photo printers, inkjet photo printers can achieve color printing in one pass, and have the advantages of fast printing speed and low printing cost.
[0153] The above primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that electronic devices and / or printers, in order to achieve the aforementioned functions, include corresponding hardware structures and / or software modules for executing each function. By combining the units and algorithm steps of the various examples described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by a computer driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solutions of the embodiments of this application.
[0154] This application provides embodiments for dividing electronic devices and / or printers into functional modules based on the above method examples. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or software. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; in actual implementation, there may be other division methods.
[0155] For example, an embodiment of this application provides a printer, including consumables, a first processing module, a first storage module, and a first communication module: the first storage module and the first communication module are coupled to the first processing module, the first communication module is used to communicate with an electronic device; the first storage module is used to store computer program code, the computer program code including computer instructions, and the first processing module reads the computer instructions from the first storage module to cause the printer to execute the method executed by the printer in the above-mentioned interactive method.
[0156] The first storage module is also used to store first information and second information; the first information is used to characterize the state of the printer before it performs the printing operation; the first information includes first sub-information, which is used to characterize the state of the consumables; the second information is used to characterize the state of the printer when it performs the printing operation; the second information includes second sub-information, which is used to characterize whether the printing operation is completed.
[0157] Furthermore, the second information also includes a third sub-information, which is used to characterize the usage status of the consumables.
[0158] like Figure 3As shown, the printer 120 also includes a detachably connected first housing 121 and a first cover 122; an imaging consumable 123 is housed within the receiving space defined by the first housing 121 and the first cover 122; the first housing 121 has a first opening 1211 for loading and unloading the imaging consumable 123; the first cover 122 covers the first opening 1211, and the first cover 122 is part of the printer's outer casing. The printer 120 also includes a first sensor 125, which is disposed on the side of the first housing 121 facing the first cover 122, for detecting whether the first cover 122 is mounted on the first housing 121.
[0159] In one specific implementation, imaging consumable 123 is an ink cartridge. Printer 120 is a portable inkjet photo printer.
[0160] like Figure 4 As shown, the printer also includes a printing medium (not shown), a first chamber 126, a roller 127, a first outlet 128, and a second sensor 129. The printing medium is contained within the accommodating space defined by the first chamber 126, and is guided by the roller 127 to be output from the first chamber 126 for printing. The printed medium is located at the first outlet for easy removal by the user. The second sensor 129 is used to detect whether there is a printing medium at the first outlet 128.
[0161] In one specific embodiment, both the first sensor and the second sensor are photodetectors, including a light emitter and a light receiver. When the first cover is placed on the first housing, the light signal emitted by the corresponding light emitter of the first sensor is reflected by the first cover and received by the corresponding light receiver to detect the first cover. When there is printing medium at the first outlet, the light signal emitted by the corresponding light emitter of the second sensor is reflected by the printing medium and received by the corresponding light receiver to detect the printing medium.
[0162] For example, the printer also includes an energy storage element and a power detection circuit; the energy storage element (such as a battery) is used to provide power to the printer. The power detection circuit is used to detect the power level of the energy storage element. The printer provided in this application embodiment includes an energy storage element, which facilitates the mobility of the printer for portability.
[0163] like Figure 5As shown, the power detection circuit includes a voltage divider circuit and a filter circuit. The voltage divider circuit has two voltage input terminals and one voltage output terminal. One voltage input terminal of the voltage divider circuit is connected to the voltage output terminal VBAT of the energy storage element, and the other voltage input terminal is grounded (GND). The voltage output terminal of the voltage divider circuit is connected to the input terminal of the filter circuit, used to divide the voltage of the energy storage element and send it to the filter circuit. The output terminal of the filter circuit is connected to the first processing module, used to filter the voltage after voltage division and send it to the first processing module. The first processing module determines the power of the energy storage element based on the filtered voltage. For example, the first processing module compares the filtered voltage with a reference voltage and determines the power of the energy storage element based on the comparison result.
[0164] like Figure 5 As shown, in one specific embodiment, the voltage divider circuit includes a first resistor R1 and a second resistor R2; the filter circuit includes a first capacitor C1; one end of the first resistor R1 is connected to the voltage output terminal VBAT of the energy storage element, and the other end of the first resistor R1 is connected to one end of the second resistor R2 and one end of the first capacitor C1; the other end of the second resistor R2 and the other end of the first capacitor C1 are grounded to GND; wherein, the end of the first resistor R1 connected to the second resistor R2 and the first capacitor C1 is the voltage output terminal of the voltage divider circuit.
[0165] For example, embodiments of this application also provide an electronic device, including a second processing module, a second storage module, and a second communication module; the second storage module and the second communication module are coupled to the second processing module, the second communication module is used to communicate with a printer; the second storage module is used to store computer program code, the computer program code including computer instructions, and the second processing module reads the computer instructions from the second storage module to cause the electronic device to execute the method executed by the electronic device in the above-described interactive method.
[0166] For example, this application embodiment also provides an interactive system, including an electronic device and a printer, wherein the electronic device is used to execute the method executed by the electronic device in the above-described interactive method; and the printer is used to execute the method executed by the printer in the above-described interactive method.
[0167] For example, embodiments of this application also provide a computer-readable storage medium; the computer-readable storage medium includes a computer program or instructions that, when the computer program or instructions are run on an electronic device, cause the electronic device to perform the method executed by the electronic device in the above-described interactive method, or, when the computer program or instructions are run on a printer, cause the printer to perform the method executed by the printer in the above-described interactive method.
[0168] For example, this application also provides a computer program product that, when run on a computer, enables the computer to execute the method executed by the electronic device in the above-mentioned interactive method, or enables the computer to execute the method executed by the printer in the above-mentioned interactive method.
[0169] The technical effects of the device shown in the embodiments of this application can be referred to the technical effects described in the above method embodiments, and will not be repeated here. The first processing module and the second processing module can be implemented by a processor or processor-related circuit components. The first communication module and the second communication module can be implemented by a transceiver or transceiver-related circuit components.
[0170] The first and second processing modules provided in this application embodiment may include one or more processors. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory. Exemplarily, the processor can be a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips. It should be understood that the steps in the above method embodiments can be completed by the integrated logic circuits in the processor's hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0171] Optionally, the first and second storage modules provided in this application embodiment may include one or more memories. The memory may be integrated with the processor or disposed separately from the processor; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.
[0172] In addition, the electronic devices, printers, interactive systems, computer storage media, and computer program products provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0173] The above description is merely a preferred embodiment of this application. The scope of protection of this application is not limited to the above embodiments. All technical solutions falling within the scope of this application's concept are within the scope of protection of this application. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of this application should also be considered within the scope of protection of this application.
Claims
1. An interaction method, characterized in that: Applied to a system including electronic devices and a printer; the printer includes consumables; the method includes: The electronic device sends a query command to the printer; wherein the query command includes a first sub-command for querying the usage status of the consumables; In response to the query command, the printer sends first information to the electronic device; wherein, the first information includes first sub-information for characterizing the usage status of the consumables; Based on the first information, the electronic device determines whether the printer supports printing. If yes, the electronic device sends a print command to the printer; otherwise, the electronic device has a first state. The first state is used to indicate the reason why the printer does not support printing. In response to the print command, the printer performs a print operation and sends second information to the electronic device; wherein the second information includes second sub-information for indicating whether the print operation is completed; Based on the second information, the electronic device determines whether the printer supports continuing the printing operation. If yes, the electronic device sends a printing command to the printer; otherwise, the electronic device has a second state. The second state is used to indicate the reason why the printer does not support continuing the printing operation.
2. The interaction method according to claim 1, characterized in that: The second information also includes third sub-information for characterizing the usage status of the consumable.
3. The interaction method according to claim 2, characterized in that: The usage status of the consumables represented by the first sub-information includes whether the printer has consumables installed; When consumables are installed in the printer, the usage status of the consumables represented by the first sub-information also includes the printable remaining amount of the consumables and whether the ID code of the consumables matches the printer. The third sub-information represents the usage status of the consumables, including the remaining printable amount of the consumables.
4. The interaction method according to claim 1, characterized in that: The consumables include imaging consumables; the printer includes a detachably connected first housing and a first cover; the imaging consumables are housed within a receiving space defined by the first housing and the first cover; the first housing has a first opening for loading and unloading the imaging consumables; the first cover covers the first opening, and the first cover is part of the printer's outer casing; The printer also includes a first sensor for detecting whether the first cover is assembled on the first housing; The query instruction also includes a second sub-instruction for querying the assembly status of the first cover. The first information also includes a fourth sub-information, used to characterize the assembly state of the first cover; The second information also includes a fifth sub-information, which characterizes the assembly state of the first cover.
5. The interaction method according to claim 1, characterized in that: The consumables include printing media; The query instruction also includes a third sub-instruction for querying the status of the printing medium; The first information also includes a sixth sub-information, used to characterize the state of the printing medium; The second information also includes a seventh sub-information, used to characterize the state of the printing medium.
6. The interaction method according to claim 5, characterized in that: The printer includes a first outlet for outputting printing media from the printer; the printer also includes a second sensor for detecting whether printing media is present at the first outlet. The third sub-instruction includes an instruction to query whether printing media exists at the first outlet; The sixth sub-information includes information used to characterize whether printing media exists at the first outlet; The seventh sub-information includes information used to characterize whether printing media exists at the first outlet.
7. The interaction method according to claim 5, characterized in that: The printing medium is housed within a containment space defined by a first chamber; the first chamber includes a second outlet for discharging the printing medium from the first chamber. The printer also includes a third sensor for detecting whether the printing medium output from the first chamber is stuck at the second outlet; The third sub-instruction also includes an instruction to query whether the printing medium is stuck at the second outlet; The sixth sub-information also includes information used to characterize whether the printing medium is stuck at the second outlet; The seventh sub-information also includes information used to characterize whether the printing medium is stuck at the second outlet; And / or, The third sub-instruction also includes an instruction to query the available amount of printing media located in the first compartment; The sixth sub-information also includes information for characterizing the amount of printing media available in the first chamber; The seventh sub-information also includes information for characterizing the amount of printing media available in the first compartment.
8. The interaction method according to claim 1, characterized in that: The query instruction also includes a fourth sub-instruction for querying the printer's battery level; The first information also includes an eighth sub-information, used to characterize the printer's battery level; The second information also includes a ninth sub-information, which characterizes the printer's battery level.
9. The interaction method according to claim 1, characterized in that: Before the electronic device sends the query command to the printer, the interaction method further includes: The electronic device receives a printing instruction; In response to the print instruction, the electronic device sends a first instruction to the printer; In response to the first instruction, the printer sends a third message to the electronic device; Based on the third information, the electronic device determines whether it has successfully connected with the printer. If so, the electronic device sends the query command to the printer; otherwise, the electronic device remains in the first state.
10. The interaction method according to claim 1, characterized in that: Before the electronic device sends the print command to the printer, the interaction method further includes: The electronic device receives a print area setting instruction and sets the print area of the printer according to the print area setting instruction.
11. The interaction method according to claim 1, characterized in that: The printer performs the printing operation including: Cache the image data to be printed; Print the cached image data.
12. The interaction method according to claim 1, characterized in that: Before the printer performs the printing operation, the interaction method further includes: The electronic device sends a clear command to the printer; In response to the clear command, the printer clears the image data cached from the previous print.
13. A printer, characterized in that, For use with consumables, the printer includes a first processing module, a first storage module, and a first communication module; the first storage module and the first communication module are coupled to the first processing module, and the first communication module is used to communicate with an electronic device; the first storage module is used to store computer program code, the computer program code including computer instructions, and the first processing module reads the computer instructions from the first storage module to cause the printer to execute the method performed by the printer in the interactive method as described in any one of claims 1-12; The first storage module is further configured to store the first information and the second information; the first information is configured to characterize the state of the printer before the printing operation; the first information includes a first sub-information, configured to characterize the usage state of the consumables; the second information is configured to characterize the state of the printer during the printing operation; the second information includes a second sub-information, configured to characterize whether the printing operation is completed.
14. An electronic device, characterized in that, The device includes a second processing module, a second storage module, and a second communication module; the second storage module and the second communication module are coupled to the second processing module, and the second communication module is used to communicate with a printer; the second storage module is used to store computer program code, the computer program code including computer instructions, and the second processing module reads the computer instructions from the second storage module to cause the electronic device to execute the method performed by the electronic device in the interaction method as described in any one of claims 1-12.
15. An interactive system, characterized in that, The device includes an electronic device and a printer, wherein the electronic device is configured to perform the method executed by the electronic device in the interaction method as described in any one of claims 1-12, and the printer is configured to perform the method executed by the printer in the interaction method as described in any one of claims 1-12.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the method performed by the electronic device in any one of the interactive methods of claims 1-12, or, when executed on a printer, cause the printer to perform the method performed by the printer in any one of the interactive methods of claims 1-12.
17. A computer program product, characterized in that: When the computer program product is run on a computer, it enables the computer to perform the method executed by the electronic device in the interactive method as described in any one of claims 1-12, or when the computer program product is run on a computer, it enables the computer to perform the method executed by the printer in the interactive method as described in any one of claims 1-12.
