Disclosure of Invention
The embodiment of the invention provides a control device of a printing device, a control method of the printing device, the control device of the printing device and a computer readable storage medium, which are used for at least solving the problem that the remote locking control of the printing device cannot be realized in the related art.
In a first aspect, an embodiment of the present invention provides a control device for a printing apparatus, including: a first communication unit and an action execution unit, wherein the first communication unit is coupled with the action execution unit, and the first communication unit is used for acquiring control information for controlling the printing device; the action execution unit is used for judging whether to stop the work of the printing equipment according to the control information; and under the condition that the judgment result is that the printing equipment stops working, triggering the printing equipment to generate a printing equipment fault of a preset fault type so as to stop the printing equipment.
In one embodiment, the action execution unit is coupled to a preset device of the printing apparatus, and is configured to: judging whether to stop the work of the printing equipment or not according to the control information; disconnecting the preset device from the printing equipment to stop the printing equipment when the judgment result is that the printing equipment stops working, wherein the preset device can enable the printing equipment to generate a printing equipment fault of a preset fault type when being disconnected; or the action execution unit is coupled with a control chip of the printing device, and the action execution unit is used for: judging whether to stop the work of the printing equipment or not according to the control information; generating a printing equipment fault signal with a preset fault type under the condition that the work of the printing equipment is stopped according to the judgment result; and sending the printing equipment fault signal to the control chip so that the control chip stops the printing equipment according to the printing equipment fault signal, wherein the preset fault type refers to a fault type for stopping the printing equipment.
In one embodiment, the action execution unit includes: the heartbeat sub-unit is coupled with the first communication unit and is used for continuously detecting whether the control information carries heartbeat messages from a server or not and generating a locking instruction message under the condition that the heartbeat messages from the server are not detected in one or more heartbeat message sending periods, wherein the locking instruction message is used for indicating to stop the work of the printing equipment;
the action execution subunit is respectively coupled with the heartbeat subunit and the printing device, and is configured to trigger the printing device to generate a printing device fault of a preset fault type according to the locking instruction message.
In one embodiment, the control device of the printing apparatus further includes: the printing device comprises a data acquisition unit, a judgment unit and a second communication unit, wherein the data acquisition unit is coupled with the judgment unit and is used for acquiring working data of the printing device; the judging unit is coupled with the second communication unit and is used for judging whether the working data is abnormal or not and generating control information carrying a locking instruction message under the condition that the working data is abnormal, wherein the locking instruction message is used for indicating to stop the work of the printing equipment; the second communication unit is coupled with the first communication unit, and the second communication unit is used for sending the control information carrying the locking instruction message to the first communication unit.
In one embodiment, the determining unit includes: the printing device comprises a first abnormity judgment subunit, a second abnormity judgment subunit and a control information generation subunit, wherein the first abnormity judgment subunit is used for judging whether the consumable remainder of the printing device is abnormally increased or not according to the consumable remainder information in the working data, and determining that the working data is abnormal under the condition that the consumable remainder of the printing device is abnormally increased; the second abnormality judgment subunit is configured to judge whether the consumable part or the accessory of the printing apparatus is abnormally replaced according to the identification information of the consumable part or the accessory in the working data, and determine that the working data is abnormal when the consumable part or the accessory of the printing apparatus is abnormally replaced; the control information generating subunit is coupled to the first abnormality determining subunit and the second abnormality determining subunit, and the control information generating subunit is configured to generate control information carrying the lock instruction message when the first abnormality determining subunit or the second abnormality determining subunit determines that the working data is abnormal, where the lock instruction message is used to instruct to stop the printing apparatus.
In one embodiment, the control device of the printing apparatus further includes: the third communication unit is coupled with a server and is used for acquiring control information sent by the server, wherein the control information carries a heartbeat message and/or a locking instruction message; the second communication unit is coupled with the third communication unit, and the second communication unit is further configured to send the control information sent by the server to the first communication unit.
In a second aspect, an embodiment of the present invention provides a method for controlling a printing apparatus, including: acquiring control information for controlling a printing apparatus; judging whether to stop the work of the printing equipment or not according to the control information; and under the condition that the judgment result is that the printing equipment stops working, triggering the printing equipment to generate a printing equipment fault of a preset fault type so as to stop the printing equipment.
In one embodiment, triggering the printing device to generate a printing device failure of a preset failure type comprises: disconnecting the preset device from the printing device to stop the printing device, wherein the preset device, when disconnected, can cause the printing device to generate a printing device fault of a preset fault type; or generating a printing equipment fault signal of a preset fault type; and sending the printing equipment fault signal to the control chip so that the control chip stops the printing equipment according to the printing equipment fault signal, wherein the preset fault type refers to a fault type for stopping the printing equipment.
In one embodiment, determining whether to stop the operation of the printing apparatus based on the control information includes: continuously detecting whether the control information carries heartbeat messages from a server or not, and generating a locking instruction message under the condition that the heartbeat messages from the server are not detected in one or more heartbeat message sending periods, wherein the locking instruction message is used for indicating to stop the work of the printing equipment.
In one embodiment, before acquiring the control information for controlling the printing apparatus, the control method of the printing apparatus further includes: collecting working data of the printing equipment; judging whether the working data is abnormal or not; and generating control information carrying a locking instruction message under the condition that the working data is abnormal, wherein the locking instruction message is used for indicating to stop the working of the printing equipment.
In one embodiment, the determining whether the working data has an exception includes: judging whether the consumable material residual amount of the printing equipment is abnormally increased or not according to the consumable material residual amount information in the working data, and determining that the working data is abnormal under the condition that the consumable material residual amount of the printing equipment is abnormally increased; and/or judging whether the consumable part or the accessory of the printing equipment is abnormally replaced according to the identification information of the consumable part in the working data, and determining that the working data is abnormal under the condition that the consumable part or the accessory of the printing equipment is abnormally replaced.
In a third aspect, an embodiment of the present invention provides a control apparatus of a printing apparatus, including: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method according to the first aspect.
With the control device of a printing apparatus, the control method of a printing apparatus, the control apparatus of a printing apparatus, and the computer-readable storage medium provided by the embodiments of the present invention, control information for controlling a printing apparatus is acquired by using a first communication unit; the action execution unit judges whether to stop the work of the printing equipment according to the control information, and under the condition that the judgment result is that the work of the printing equipment is stopped, the action execution unit triggers the printing equipment to generate a printing equipment fault of a preset fault type so as to stop the work of the printing equipment, so that the problem that the remote locking control of the printing equipment cannot be realized in the related technology is solved, and the remote locking control of the printing equipment is realized.
Detailed Description
In the present embodiment, an embodiment of the present invention provides a control device of a printing apparatus. Fig. 1 is a block diagram of the configuration of a control device of a printing apparatus according to an embodiment of the present invention. As shown in fig. 1, the control device of the printing apparatus includes: a first communication unit 10 and a motion execution unit 20, wherein the first communication unit 10 is coupled with the motion execution unit 20, and the first communication unit 10 is used for acquiring control information for controlling the printing device; an action execution unit 20 for determining whether to stop the operation of the printing apparatus 30 based on the control information; in the case where the operation of the printing apparatus 30 is stopped as a result of the determination, the printing apparatus is triggered to generate a printing apparatus failure of a preset failure type to stop the operation of the printing apparatus.
In one embodiment, the action execution unit is coupled to a preset device 300 of the printing apparatus, and is configured to: judging whether to stop the work of the printing equipment or not according to the control information; and in the case that the judgment result is that the operation of the printing equipment is stopped, disconnecting the preset device from the printing equipment so as to stop the operation of the printing equipment, wherein the preset device can cause the printing equipment to generate the printing equipment fault of the preset fault type when being disconnected.
The preset device of the embodiment includes a sensor or a core device of the printing apparatus, where the sensor includes but is not limited to at least one of the following of the printing apparatus: paper monitors, ink cartridge opening detectors, detectors of core accessories (e.g., heater assemblies, core boards, etc.), etc., including heater assemblies, core boards, etc., of printing devices. The action performing unit 20 is preferably an electrically controlled switch connected to a signal line or a power line of the preset device to connect or disconnect the preset device to or from the printing apparatus. The predetermined fault type includes, but is not limited to, at least one of: the failure of insufficient consumable materials of the printing equipment, the failure of consumable material loss, the failure of paper jam of the printing equipment, the failure of insufficient paper of the printing equipment and the like. Taking the fault that the consumable material of the printing equipment is insufficient as an example, the printing equipment detects the residual ink amount through a sensor, sends a corresponding fault signal to a control chip of the printing equipment in order to protect a printing head when the ink amount is low, and after receiving the fault signal, the control chip controls the printing equipment to stop working until the ink box is replaced or the ink is added, the fault is eliminated, and the control chip controls the printing equipment to work again; after the sensor is disconnected from the printing device through the action execution unit 20, the sensor cannot send an ink amount signal to the control chip any more, and the control chip controls the printing device to stop working in order to protect the printing head, so that the locking control of the printing device is realized.
Through the control device of the printing equipment, under the condition that the printing equipment needs to stop working, the action execution unit 20 is adopted to disconnect the sensor from the printing equipment so as to stop the printing equipment, the problem that the remote locking of the printing equipment cannot be realized in the related technology is solved, and the remote locking of the printing equipment is realized.
In one embodiment, the action execution unit is coupled to the control chip 301 of the printing device, and the action execution unit 20 is configured to determine whether to stop the operation of the printing device according to the control information, generate a printing device fault signal of a preset fault type in a case that the operation of the printing device is stopped as a result of the determination, and send the printing device fault signal to the control chip, so that the control chip stops the operation of the printing device according to the printing device fault signal, where the preset fault type refers to a fault type that stops the operation of the printing device.
By the control device of the printing equipment, under the condition that the printing equipment needs to stop working, the action execution unit 20 is adopted to generate the printing equipment fault signal of the fault type which enables the printing equipment to stop working, and the printing equipment fault signal is sent to the control chip of the printing equipment, so that the problem that the remote locking of the printing equipment cannot be realized in the related technology is solved, and the remote locking of the printing equipment is realized.
Wherein the preset fault type includes but is not limited to at least one of the following: the failure of insufficient consumable materials of the printing equipment, the failure of consumable material loss, the failure of paper jam of the printing equipment, the failure of insufficient paper of the printing equipment and the like. Taking the fault that the consumable supplies of the printing equipment are insufficient as an example, the printing equipment detects or estimates the residual ink quantity of the ink box through the sensor, and sends a corresponding printing equipment fault signal to the control chip in order to protect the printing head when the ink quantity is low, the control chip controls the printing equipment to stop working until the fault is eliminated after the ink box is replaced or the ink is added, and the control chip controls the printing equipment to work again; therefore, the action execution unit 20 sends a printing device fault signal of a preset fault type to the control chip, and the locking control of the printing device can be realized by simulating the preset fault type of the printing device.
The first communication unit 10 may be a wired communication unit or a wireless communication unit. Wireless communication units include, but are not limited to: radio frequency (315, 433, 868, 2.4G) communication units, ZigBee communication units, LoRa communication units, Z-Wave communication units, Thread communication units, UWB communication units, NFC communication units, 2G/3G/4G/5G mobile communication units, NB-IoT communication units, Bluetooth communication modules, Wi-Fi communication units and the like. The first communication unit 10 is preferably a bluetooth communication module or a Wi-Fi communication unit.
Furthermore, in this embodiment, the lock control of the printing apparatus may also be implemented by generating a printing apparatus failure signal of a plurality of preset failure types, in such a manner that the printing apparatus simultaneously simulates a combination of the plurality of preset failure types, to indicate that the current failure of the printing apparatus is not a real failure, but a failure simulated by the control device of the printing apparatus.
Fig. 2 is a block diagram showing a preferred configuration of a control device of the printing apparatus according to an embodiment of the present invention, and the control device of the printing apparatus shown in fig. 2 is a modification of the control device of the printing apparatus shown in fig. 1. Wherein, the action execution unit 20 includes: a heartbeat subunit 201 and an action execution subunit 202, where the heartbeat subunit 201 is coupled to the first communication unit 10, and the heartbeat subunit 201 is configured to continuously detect whether the control information carries a heartbeat message from the server, and generate a lock instruction message when the heartbeat message from the server is not detected in one or more heartbeat message sending periods; the action execution subunit 202 is coupled to the heartbeat subunit 201 and the printing device 30, respectively, and the action execution subunit 202 is configured to trigger the printing device to generate a printing device fault of a preset fault type according to the locking instruction message, so as to stop the printing device.
By the mode, a heartbeat keep-alive strategy is adopted between the control device and the server of the printing equipment to detect whether normal communication can be carried out between the control device and the server of the printing equipment, and the control device of the printing equipment realizes automatic locking under the condition that the normal communication cannot be carried out, so that the situation that a user of the printing equipment manually disconnects a communication link between the control device and the server of the printing equipment to cause that the server cannot send locking instruction information to the control device of the printing equipment is avoided.
Fig. 3 is a block diagram ii of a preferred configuration of a control device of the printing apparatus according to an embodiment of the present invention, and the control device of the printing apparatus shown in fig. 3 is a modification of the control device of the printing apparatus shown in fig. 1. Wherein, the action execution unit 20 includes: a parsing subunit 203 and an action execution subunit 202, wherein,
the parsing subunit 203 is coupled to the first communication unit 10, and the parsing subunit 203 is configured to parse the control information; the action execution subunit 202 is coupled to the parsing subunit 203 and the printing device, and the action execution subunit 202 is configured to determine whether the control information carries a locking instruction message, and trigger the printing device to generate a printing device fault of a preset fault type when the control information carries the locking instruction message, where the locking instruction message is used to instruct the printing device to stop working, so that the printing device stops working.
By the above mode, the locking control of printing can be realized by sending the control information carrying the locking instruction message from the server to the control device of the printing equipment.
Fig. 4 is a block diagram of a preferred configuration of a control device of the printing apparatus according to an embodiment of the present invention, and the control device of the printing apparatus shown in fig. 4 is a modification of the control device of the printing apparatus shown in fig. 1. Wherein the control device of the printing apparatus further comprises: the printing device comprises a data acquisition unit 401, a judgment unit 402 and a second communication unit 403, wherein the data acquisition unit 401 is coupled with the judgment unit 402, and the data acquisition unit 401 is used for acquiring working data of the printing device; the judging unit 402 is coupled to the second communication unit 403, and the judging unit 402 is configured to judge whether the working data is abnormal, and generate control information carrying a lock instruction message when the working data is abnormal; the second communication unit 403 is coupled to the first communication unit 10, and the second communication unit 403 is configured to send control information carrying the locking instruction message to the first communication unit 10.
Wherein the working data includes, but is not limited to, at least one of: fault information of the printing device, consumable material allowance information of the printing device, identification information of consumable materials or accessories of the printing device, and the like.
In some embodiments, the constituent units of the control device of the printing apparatus shown in fig. 1 are integrated and are previously installed inside the printing apparatus. The data acquisition unit 401, the judgment unit 402 and the second communication unit 403 described above are preferably integrated into one data acquisition apparatus 40. The data acquisition device 40 is preferably connected to the printing apparatus via an ethernet interface and is disposed outside the printing apparatus. The data acquisition device 40 communicates with other units of the control device of the printing apparatus via the coupling connection of the second communication unit 403 and the first communication unit 10.
In one embodiment, the determining unit 402 includes: the printing device comprises a first abnormity judging subunit, a second abnormity judging subunit and a control information generating subunit, wherein the first abnormity judging subunit is used for judging whether the consumable remainder of the printing device is abnormally increased or not according to the consumable remainder information in the working data, and determining that the working data is abnormal under the condition that the consumable remainder of the printing device is abnormally increased; the second abnormity judging subunit is used for judging whether the consumable part or the accessory of the printing equipment is abnormally replaced or not according to the identification information of the consumable part or the accessory in the working data, and determining that the working data is abnormal under the condition that the consumable part or the accessory of the printing equipment is abnormally replaced; the control information generating subunit is respectively coupled to the first abnormality judging subunit and the second abnormality judging subunit, and the control information generating subunit is configured to generate the control information carrying the lock instruction message when the first abnormality judging subunit or the second abnormality judging subunit determines that the working data is abnormal.
When a consumable of a printing apparatus is abnormally replaced with another consumable, there may be a case where the remaining amount of the consumable is suddenly increased or decreased by a large amount; the self-addition of ink or carbon powder into the ink box or the toner cartridge can also cause the increase of the allowance of consumables; it is possible to confirm that the remaining amount of consumables of the printing apparatus is abnormal based on this situation. In addition, in some printing apparatuses, it is possible to detect whether a printing apparatus consumable or accessory is a genuine consumable, for example, to detect identification information of an ink cartridge or a toner cartridge, and if the identification information is illegal, invalid, already used, or expired, it may be considered that the consumable or accessory is abnormally replaced. In practical use, the two consumable abnormality judgment modes can be combined for use. Through foretell mode, avoided printing apparatus consumptive material (ink horn or carbon dust etc.) or accessory (for example heating element, nuclear core plate etc.) to be changed for unqualified consumptive material or accessory by unusual, perhaps the consumptive material is continued can also continue to use by the printing apparatus behind user's the unqualified ink of self-filling or the carbon dust, the printing apparatus life-span that leads to is impaired.
As shown in fig. 5, in the above-described embodiment, the control means of the printing apparatus may further include: a third communication unit 404, where the third communication unit 404 is coupled with the server 50, and the third communication unit 404 is configured to acquire control information sent by the server 50 and used for controlling the printing device, where the control information carries a heartbeat message and/or a lock instruction message; the second communication unit 403 is coupled to the third communication unit 404, and the second communication unit 403 is further configured to send the control information sent by the server 50 to the first communication unit 10. In this way, the control device of the printing device is communicated with the server through the action execution unit arranged inside the printing device and the data acquisition device arranged outside the printing device, so that remote locking control of the printing device at the server is realized. The third communication unit 404 is preferably an NB-IoT mobile communication unit.
There is also provided in this embodiment a method of controlling a printing apparatus, fig. 6 is a flowchart of a method according to an embodiment of the present invention, as shown in fig. 6, the method including the steps of:
step S601 of acquiring control information for controlling the printing apparatus;
step S602, judging whether to stop the work of the printing equipment according to the control information;
and step S603, in the case that the judgment result is that the operation of the printing apparatus is stopped, triggering the printing apparatus to generate a printing apparatus fault of a preset fault type, so as to stop the operation of the printing apparatus.
In one embodiment, triggering the printing device to generate a printing device failure of the preset failure type comprises: disconnecting the preset device from the printing apparatus to stop the printing apparatus, wherein the preset device, when disconnected, is capable of causing the printing apparatus to generate a printing apparatus failure of a preset failure type.
In one embodiment, triggering the printing device to generate a printing device failure of the preset failure type comprises: generating a printing equipment fault signal with a preset fault type; and sending a printing equipment fault signal to the control chip so that the control chip stops the printing equipment according to the printing equipment fault signal, wherein the preset fault type refers to a fault type for stopping the printing equipment.
In one embodiment, determining whether to stop the operation of the printing apparatus based on the control information includes: continuously detecting whether the control information carries heartbeat messages from the server or not, and generating a locking instruction message under the condition that the heartbeat messages from the server are not detected in one or more heartbeat message sending periods, wherein the locking instruction message is used for indicating that the printing equipment stops working.
In one embodiment, determining whether to stop the operation of the printing apparatus based on the control information includes: analyzing the control information; and judging whether the control information carries a locking instruction message or not, wherein the locking instruction message is used for indicating that the printing equipment stops working.
In one embodiment, before acquiring the control information for controlling the printing apparatus, the control method of the printing apparatus further includes: collecting working data of printing equipment; judging whether the working data is abnormal or not; and generating control information carrying a locking instruction message under the condition that the working data has an abnormality, wherein the locking instruction message is used for indicating that the printing equipment stops working.
In one embodiment, determining whether the working data has an anomaly comprises: judging whether the consumable material residual amount of the printing equipment is abnormally increased or not according to the consumable material residual amount information in the working data, and determining that the working data is abnormal under the condition that the consumable material residual amount of the printing equipment is abnormally increased; and/or judging whether the consumable part or the accessory of the printing equipment is abnormally replaced according to the identification information of the consumable part or the accessory in the working data, and determining that the working data is abnormal under the condition that the consumable part or the accessory of the printing equipment is abnormally replaced.
In addition, the control method of the printing apparatus of the embodiment of the present invention described in conjunction with fig. 6 may be implemented by a control apparatus of the printing apparatus. Fig. 7 is a schematic diagram showing a hardware configuration of a control apparatus of a printing apparatus according to an embodiment of the present invention.
The control device of the printing device may comprise a processor 71 and a memory 72 in which computer program instructions are stored.
Specifically, the processor 71 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 72 may include mass storage for data or instructions. By way of example, and not limitation, memory 72 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 72 may include removable or non-removable (or fixed) media, where appropriate. The memory 72 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 72 is a non-volatile solid-state memory. In a particular embodiment, the memory 72 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 71 realizes the control method of any one of the printing apparatuses in the above embodiments by reading and executing computer program instructions stored in the memory 72.
In one example, the control device of the printing device may also include a communication interface 73 and a bus 70. As shown in fig. 7, the processor 71, the memory 72, and the communication interface 73 are connected via the bus 70 to complete mutual communication.
The communication interface 73 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
The bus 70 includes hardware, software, or both that couple the components of the control device of the printing device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 70 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
The control apparatus of the printing apparatus may execute the control method of the printing apparatus in the embodiment of the present invention based on the acquired control information, thereby implementing the control method of the printing apparatus described in conjunction with fig. 6.
In addition, in combination with the control method of the printing apparatus in the above embodiments, the embodiments of the present invention may be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a control method of any of the printing devices in the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.