Printing equipment state updating method and device
Through the printing device status update method on the control end, the information matching and abnormal recovery packets of the first and second printing device tables are used to solve the problem of inefficient abnormal processing of printing equipment, and the automatic operation and maintenance and normal operation of the production line are realized.
Patent Information
- Application Number
- CN202411060635.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-08
AI Technical Summary
In the prior art, the abnormal processing of printing equipment is not time-sensitive, affecting the normal operation of the production line, and lacking effective printing equipment status update methods.
By determining the first printing equipment table and the second printing equipment table of the device detection cycle at the control end, recording the printing order exception and printing equipment abnormal information, matching information to determine the abnormal printing equipment, and generating an abnormal recovery message for updating, realizing Automated inspections and abnormal recovery.
It improves the accuracy and flexibility of abnormal printing equipment determination, realizes the automated operation and maintenance of printing equipment, ensures timely correction of business during the execution process, and ensures the smooth operation of the production line.
Smart Images

Figure CN118916204A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the field of computer technology, and more particularly to a method and apparatus for updating the status of a printing device. Background Art
[0002] As one of the output devices of the computer, the printing device can print information such as text or graphics on physical media for easy viewing. Printing devices are widely used in various industries. In the production environment, a printing device can be arranged for each workstation on the production line. The logistics list is printed by sending a print request to such a printing device. When the production process flows to the workstation, the printing device can print out the document corresponding to the workstation, which can serve as a guide for the workers at the workstation. However, as a hardware device, the printing device is inevitably prone to various types of equipment failures.
[0003] In the prior art, professionals usually inspect the printing equipment and report any abnormalities to the printing equipment maintenance personnel in a timely manner. The printing equipment maintenance personnel handle the abnormalities. However, this abnormality handling method is not timely. It is difficult to find abnormal printing equipment in time, which affects the production tasks on the production line. Therefore, a more effective printing equipment status update method is urgently needed to solve the above problems. Summary of the invention
[0004] In view of this, an embodiment of this specification provides a printing device status update method. One or more embodiments of this specification also relate to a printing device status update device, a computing device, a computer readable storage medium and a computer program to solve the technical defects existing in the prior art.
[0005] According to a first aspect of an embodiment of the present specification, a method for updating a printing device status is provided, which is applied to a control terminal and includes:
[0006] Determine a first printing device table and a second printing device table corresponding to a device detection period, wherein the first printing device table records information of printing devices with printing order anomalies, and the second printing device table records information of printing devices with printing device anomalies;
[0007] Matching information between the first printing device table and the second printing device table, and determining an abnormal printing device according to the matching result;
[0008] generating an abnormality recovery message of the abnormal printing device based on the abnormality recovery information of the abnormal printing device;
[0009] The abnormal recovery message is sent to the abnormal printing device to update the operating status of the abnormal printing device.
[0010] Optionally, before determining the first printing device table and the second printing device table corresponding to the device detection period, the method includes:
[0011] Identify at least one printing device included in the production system;
[0012] Selecting a first printing device with an abnormal printing order from the at least one printing device according to the printing order information of each printing device, and selecting a second printing device with an abnormal printing device from the at least one printing device according to the device status information of each printing device;
[0013] The printing device information of the first printing device is stored in the first printing device table, and the printing device information of the second printing device is stored in the second printing device table.
[0014] Optionally, the selecting, from the at least one printing device, a first printing device with an abnormal print order according to the print order information of each printing device comprises:
[0015] Determine the number of abnormal print orders corresponding to the print order information of each printing device;
[0016] Matching each abnormal print order number with a preset value range respectively, and determining abnormal print order information in at least one print order information according to the matching result;
[0017] The printing device corresponding to the abnormal print order information is used as the first printing device with abnormal print order.
[0018] Optionally, the performing information matching on the first printing device table and the second printing device table, and determining the abnormal printing device according to the matching result, includes:
[0019] Selecting a target first printing device in the second printing device table according to a printing device selection strategy;
[0020] If the printing device information corresponding to the target first printing device exists in the first printing device table, the target first printing device is regarded as the abnormal printing device.
[0021] Optionally, the generating the abnormal recovery message of the abnormal printing device based on the abnormal recovery information of the abnormal printing device includes:
[0022] Determine the device identification and the exception handling instruction of the abnormal printing device, and use the device identification and the exception handling instruction as the exception recovery information;
[0023] The template message corresponding to the abnormal printing device is updated to an abnormal recovery message based on the abnormal recovery information.
[0024] Optionally, the method further includes:
[0025] When the second printing device table is not empty, determining the target i-th printing device in the second printing device table;
[0026] Determining whether the printing device information corresponding to the target i-th printing device is stored in the first printing device table;
[0027] If not, if the second printing device table is not empty, i is incremented by 1, and the step of determining the target i-th printing device in the second printing device table is performed;
[0028] If so, the target i-th printing device is taken as the abnormal printing device, and the printing device information of the abnormal printing device is stored in the printing device table to be processed. When the printing device table to be processed meets the information processing conditions, the step of generating the abnormal recovery message of the abnormal printing device based on the abnormal recovery information of the abnormal printing device is performed for the printing device information recorded in the printing device to be processed; i is incremented by 1 until the second printing device table is empty.
[0029] Optionally, the method further includes:
[0030] When the second printing device table is empty and the pending printing device table is not empty, sending a device recovery task in a pending state to the production control system, and determining whether the pending printing device table is empty;
[0031] If yes, sending a task termination instruction to the production control system; the production control system, in response to the task termination instruction, updates the pending execution state of the equipment recovery task to a stopped execution state;
[0032] If not, a task execution instruction is sent to the production control system; and the production control system, in response to the task execution instruction, updates the pending state of the equipment recovery task to the execution state.
[0033] Optionally, after sending the abnormal recovery message to the abnormal printing device and updating the operating state of the abnormal printing device, the method further includes:
[0034] After the operation status of the abnormal printing device is updated, determining abnormal recovery information of the abnormal printing device;
[0035] The abnormal recovery information is stored in an abnormal recovery record table for executing operation and maintenance tasks for the abnormal printing device.
[0036] Optionally, sending the abnormal recovery message to the abnormal printing device to update the operating state of the abnormal printing device includes:
[0037] The abnormal recovery message is sent to the abnormal printing device at a preset time interval to update the operating status of the abnormal printing device.
[0038] According to a second aspect of the embodiments of this specification, there is provided a printing device status updating device, which is applied to a control end and includes:
[0039] A determination module is configured to determine a first printing device table and a second printing device table corresponding to a device detection period, wherein the first printing device table records information of printing devices with abnormal printing orders, and the second printing device table records information of printing devices with abnormal printing devices;
[0040] a matching module configured to match information between the first printing device table and the second printing device table, and determine an abnormal printing device according to a matching result;
[0041] A generating module, configured to generate an abnormality recovery message of the abnormal printing device based on the abnormality recovery information of the abnormal printing device;
[0042] The updating module is configured to send the abnormal recovery message to the abnormal printing device to update the operation status of the abnormal printing device.
[0043] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0044] Memory and processor;
[0045] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned printing device status updating method are implemented.
[0046] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned printing device status update method are implemented.
[0047] According to a fifth aspect of the embodiments of the present specification, a computer program product is provided, including a computer program or instructions, which implement the steps of the above-mentioned printing device status update method when executed by a processor.
[0048] A printing device status update method provided in an embodiment of the present specification is applied to a control terminal. A first printing device table and a second printing device table corresponding to a device detection period are determined, wherein the first printing device table records printing device information with printing order abnormalities, and the second printing device table records printing device information with printing device abnormalities. Information matching is performed on the first printing device table and the second printing device table, and an abnormal printing device is determined according to the matching result. In the case where the printing device information of the printing device recorded in the second printing device table is also stored in the first printing device table, the printing device is regarded as an abnormal printing device. That is, the printing device information of the abnormal printing device is stored in both the first printing device table and the second printing device table. Then, an abnormal recovery message of the abnormal printing device is generated based on the abnormal recovery information of the abnormal printing device, and the abnormal recovery message is sent to the abnormal printing device to update the operation status of the abnormal printing device. The printing device with both printing order abnormalities and printing device abnormalities is regarded as an abnormal printing device, thereby improving the accuracy and flexibility of determining the abnormal printing device. The process of determining the abnormal printing device and generating the abnormal recovery message for the abnormal printing device can be automatically realized, and the operation of the printing device is automatically checked and abnormally recovered. Realize automated operation and maintenance of printing equipment, so as to ensure timely error correction during the execution of the business of related printing equipment and ensure the smooth execution of related business. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a schematic diagram of a printing device status update method provided by an embodiment of this specification;
[0050] Figure 2 is a flow chart of a printing device status updating method provided by an embodiment of this specification;
[0051] Figure 3 is a process flow chart of a method for updating the status of a printing device provided by an embodiment of the present specification;
[0052] Figure 4 is an update flow chart of a printing device status update method provided by an embodiment of this specification;
[0053] Figure 5 is a code execution flow chart of a printing device status update method provided by an embodiment of this specification;
[0054] Figure 6 It is a structural diagram of a printing device status updating device provided by an embodiment of the present specification;
[0055] Figure 7 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0056] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0057] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0058] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0059] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0060] In this specification, a printing device status update method is provided. This specification also relates to a printing device status update device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0061] Figure 1 A schematic diagram of a printing device status update method provided according to an embodiment of the present specification is shown. Figure 1As shown, the printing device status update method is applied to the control end. The first printing device table and the second printing device table corresponding to the device detection cycle are determined, the first printing device table records the printing device information with printing order abnormalities, and the second printing device table records the printing device information with printing device abnormalities. The first printing device table and the second printing device table are matched with information, and the abnormal printing device is determined according to the matching result. In the case where the printing device information of the printing device recorded in the second printing device table is also stored in the first printing device table, the printing device is regarded as an abnormal printing device. That is, the printing device information of the abnormal printing device is stored in both the first printing device table and the second printing device table. Then, an abnormal recovery message of the abnormal printing device is generated based on the abnormal recovery information of the abnormal printing device, and the abnormal recovery message is sent to the abnormal printing device to update the operation status of the abnormal printing device.
[0062] In summary, a printing device with both print order exceptions and printing device exceptions is regarded as an abnormal printing device, thereby improving the accuracy and flexibility of determining abnormal printing devices. The process of determining abnormal printing devices and generating abnormal recovery messages for abnormal printing devices can be automatically implemented, and the operation of printing devices can be automatically checked and abnormal recovery can be performed. Automated operation and maintenance of printing devices is achieved, thereby ensuring that the business of related printing devices can be corrected in time during execution, ensuring the smooth execution of related businesses.
[0063] See also Figure 2 , Figure 2 A flowchart of a printing device status update method provided according to an embodiment of the present specification is shown. The printing device status update method is applied to a control terminal and specifically includes the following steps.
[0064] Step 202: Determine a first printing device table and a second printing device table corresponding to a device detection cycle, wherein the first printing device table records information about printing devices with printing order anomalies, and the second printing device table records information about printing devices with printing device anomalies.
[0065] Specifically, the printing device may be a hardware device with a printing function, such as a printer; the device detection cycle refers to a detection cycle set for the printing device, and the device detection cycle may be determined according to actual needs. A print order abnormality may be a situation where the printing device is stuck with orders, and continuous print orders cannot be printed out from the printing device. The printing device information may be information used to identify the printing device, such as the ID and installation location of the printing device. The printing device abnormality may be a printing device hardware abnormality, a transmission abnormality, or a network connection abnormality. The first printing device table is used to record the printing device information of the printing device with the print order abnormality; the second printing device table is used to store the printing device information of the printing device with the printing device abnormality.
[0066] Based on this, the first printing device table records the information of printing devices with abnormal printing orders, and the second printing device table records the information of printing devices with abnormal printing devices. Based on the first printing device table and then the second printing device table, abnormality detection of printing devices can be realized. The first printing device table and the second printing device table corresponding to the device detection cycle are determined.
[0067] In practical applications, the printing device can be installed on the production line in the production control system. In the field of automobile manufacturing, the production control system refers to the IT system that supports the production of complete vehicles and powertrains, including the production control system and the process or product quality management system. For example, the engine cylinder casting control system, the engine machining control system, the engine assembly process production control system, the engine assembly process quality management system, the body stamping control system, the body welding control system, the vehicle assembly system, the vehicle quality management system, and the vehicle electronic and electrical testing system. These systems either operate independently or in coordination with each other to jointly support intelligent, automated, green and low-carbon manufacturing factories. Correspondingly, the printing device can be a logistics printer, which is arranged at the workstation of the production line. The production control system prints the logistics order by sending a print request to this type of printer. When the vehicle flows to these workstations during the production process, the assembly workers install the corresponding parts through the printed content.
[0068] Furthermore, considering that there are many factors that cause abnormalities in printing devices during operation, printing devices may experience abnormalities at any time. For abnormal printing devices, the first printing device table and the second printing device table can be updated in real time, which is specifically implemented as follows:
[0069] Determine at least one printing device included in the production system; select a first printing device with an abnormal print order from the at least one printing device based on the print order information of each printing device, and select a second printing device with an abnormal print order from the at least one printing device based on the device status information of each printing device; store the printing device information of the first printing device in the first printing device table, and store the printing device information of the second printing device in the second printing device table.
[0070] Based on this, the production system is the various types of generation systems included in the above-mentioned production control system. At least one printing device included in the production system is determined. Print order information of each printing device is obtained from the database of the generation system, and a first printing device with an abnormal print order is selected from at least one printing device according to the print order information of each printing device, and device status information of each printing device is obtained from the database of the generation system, and a second printing device with an abnormal print device is selected from at least one printing device according to the device status information of each printing device. The printing device information of the first printing device is stored in the first printing device table, and the printing device information of the second printing device is stored in the second printing device table.
[0071] For example, the number of print orders of each printing device is obtained in the database of the generation system, and the first printing device is selected according to the number of print orders and stored in the first printing device table. The device status information of each printing device is obtained in the database of the generation system, and the printing device information of the printing device in an abnormal state is stored in the second printing device table.
[0072] In summary, the printing device information of the first printing device with abnormal printing order is stored in the first printing device table, and the printing device information of the second printing device with abnormal printing device is stored in the second printing device table, so as to facilitate the subsequent determination of the printing device that needs to be recovered based on the abnormal printing order and the abnormal printing device.
[0073] Furthermore, considering that a small number of abnormal print orders may be due to a short period of time when the printing device fails, and a large number of print orders may be due to the printing device not being used for a long time, a numerical range corresponding to the number of print orders may be set, and the first printing device that needs to be processed for exceptions may be selected according to the numerical range, which is specifically implemented as follows:
[0074] Determine the abnormal print order number corresponding to the print order information of each printing device; match each abnormal print order number with a preset value range, and determine the abnormal print order information in at least one print order information according to the matching result; and use the printing device corresponding to the abnormal print order information as the first printing device with the print order abnormality.
[0075] Specifically, the abnormal printing order number may be the number of orders that are blocked by the printing device, that is, the number of orders that are to be printed but cannot be printed; the numerical range is the pre-set printing order number interval; the matching result may be a successful match, that is, the abnormal printing order number is within the preset numerical range, then it is determined that the printing order information is the abnormal printing order information; the matching result may also be a failed match, that is, the abnormal printing order number is not within the preset numerical range.
[0076] Based on this, the number of abnormal print orders recorded in the print order information of each printing device is determined. Each abnormal print order number is matched with a preset value range respectively. When the abnormal print order number is within the value range, it indicates that the matching result is a successful match. The abnormal print order information can be determined in at least one print order information by matching the print order number of the printing device with the value range. The printing device corresponding to the abnormal print order information is regarded as the first printing device with abnormal print order.
[0077] Using the above example, the preset numerical range may be 1 to 100. After determining the number of abnormal print orders of each printing device, the number of abnormal print orders may be matched with the numerical range respectively. If the number of abnormal print orders is within the numerical range, the printing device is determined to be the first printing device.
[0078] In summary, by presetting the numerical range, a printing device whose number of abnormal print orders matches the numerical range is selected from among various printing devices as the first printing device, thereby accurately determining the first printing device that needs to be processed for abnormality. Avoid using a printing device that has too many abnormal print orders and has been unavailable for a long time as the first printing device.
[0079] Step 204: performing information matching on the first printing device table and the second printing device table, and determining an abnormal printing device according to the matching result.
[0080] Specifically, after the first printing device table and the second printing device table corresponding to the device detection cycle are determined, wherein the first printing device table records the printing device information with abnormal printing orders and the second printing device table records the printing device information with abnormal printing devices, the first printing device table and the second printing device table can be matched for information, and the abnormal printing device can be determined according to the matching result, wherein information matching refers to determining whether the same printing device information exists in the first printing device table and the second printing device table. The matching result can be a successful match or a failed match, wherein a successful match indicates that the same printing device information exists in the first printing device table and the second printing device table; and a failed match indicates that the same printing device information does not exist in the first printing device table and the second printing device table.
[0081] Based on this, after the first printing device table and the second printing device table corresponding to the device detection period are determined, information matching is performed on the first printing device table and the second printing device table to determine whether the printing device corresponding to the printing device information stored in the second printing device table is also stored in the first printing device table. If the same printing device information exists in the first printing device table and the second printing device table, the matching result is a successful match, and according to the matching result, it can be determined that the printing device corresponding to the printing device information that exists in both the first printing device table and the second printing device table is an abnormal printing device.
[0082] Furthermore, considering that the first printing device table and the second printing device table are two different printing device tables, the second printing device table can be used as a reference to determine whether the printing device information in the second printing device table also exists in the first printing device table. The specific implementation is as follows:
[0083] A target first printing device is selected in the second printing device table according to a printing device selection strategy; and when printing device information corresponding to the target first printing device exists in the first printing device table, the target first printing device is used as the abnormal printing device.
[0084] Specifically, the printing device selection strategy may be to select the target first printing device in the second printing device table according to the storage time of the printing device information, and the printing device with a longer storage time is selected first.
[0085] Based on this, the target first printing device is selected in the second printing device table according to the printing device selection policy. If the printing device information corresponding to the target first printing device exists in the first printing device table, the target first printing device is regarded as an abnormal printing device. If the printing device information corresponding to the target first printing device does not exist in the first printing device table, the target second printing device is selected in the second printing device table again according to the printing device selection policy until all the second printing devices corresponding to the second printing device table are processed.
[0086] Using the above example, a target printing device is selected from the second printing device table storing abnormal printing devices. If the printing device information of the target printing device is also stored in the first printing device table, the target printing device needs to continue the abnormal processing and treat the target printing device as an abnormal printing device.
[0087] In summary, when the first printing device table contains printing device information corresponding to the target first printing device, the target first printing device is regarded as an abnormal printing device, thereby ensuring that the abnormal printing device is abnormal and the number of abnormal printing orders is within a preset value range, thereby improving the accuracy of abnormal printing device determination.
[0088] Step 206: Generate an abnormality recovery message of the abnormal printing device based on the abnormality recovery information of the abnormal printing device.
[0089] Specifically, after the information of the first printing device table and the second printing device table are matched and the abnormal printing device is determined according to the matching result, an abnormal recovery message of the abnormal printing device can be generated based on the abnormal recovery information of the abnormal printing device, wherein the abnormal recovery information includes a printing device recovery instruction for abnormal recovery of the abnormal printing device. The abnormal recovery message is used to implement abnormal recovery of the abnormal printing device.
[0090] Based on this, after the information of the first printing device table and the second printing device table are matched and the abnormal printing device is determined according to the matching result, the abnormal recovery information of the abnormal printing device is determined, and an abnormal recovery message of the abnormal printing device is generated based on the abnormal recovery information of the abnormal printing device. The abnormal recovery message includes instructions for abnormal recovery of the abnormal printer.
[0091] Furthermore, the abnormal recovery first needs to determine the abnormal recovery object, that is, the abnormal printing device. In addition, it is also necessary to determine how to recover the abnormal printing device. Therefore, when generating an abnormal recovery message for recovering the abnormal printing device, it is necessary to determine the device identification and abnormal handling instructions of the abnormal printing device, which are specifically implemented as follows:
[0092] Determine the device identification and exception handling instructions of the abnormal printing device, and use the device identification and the exception handling instructions as the exception recovery information; and update the template message corresponding to the abnormal printing device to an exception recovery message based on the exception recovery information.
[0093] Specifically, the device identification may be an identification such as the device ID or device name of the abnormal printing device; the abnormal handling instruction is used to perform abnormal recovery on the abnormal printing device, which may be restarting the abnormal printing device. The template message refers to a message that complies with the printing device specification.
[0094] Based on this, determine the device identification of the abnormal printing device and the exception handling instruction for abnormal recovery of the abnormal printing device. Use the device identification and the exception handling instruction as the abnormal recovery information. Determine the template message corresponding to the abnormal printing device. Update the template message corresponding to the abnormal printing device to the abnormal recovery message based on the abnormal recovery information, so as to facilitate the subsequent abnormal recovery of the abnormal printing device based on the abnormal recovery message.
[0095] Using the above example, the "release" printing device operation is essentially sending a "status recovery" message to the printing device. Therefore, the message needs to be "assembled". In essence, the IP address of the printing device, the printing device release command and other information are packaged into a message that complies with the printing device specification to form a message for the specific command of "releasing" the printing device.
[0096] In summary, based on the device identification and the exception handling instruction of the abnormal printing device, the template message corresponding to the abnormal printing device is updated to an exception recovery message, thereby realizing rapid recovery of the abnormal printing device.
[0097] Step 208: Send the abnormal recovery message to the abnormal printing device to update the operating status of the abnormal printing device.
[0098] Specifically, after the abnormal recovery message of the abnormal printing device is generated based on the abnormal recovery information of the abnormal printing device, the abnormal recovery message can be sent to the abnormal printing device to update the operating status of the abnormal printing device, wherein the operating status represents the device status of the abnormal printing device, and the operating status includes but is not limited to normal operating status, abnormal operating status, and stopped operating status.
[0099] Based on this, after the abnormal recovery message of the abnormal printing device is generated based on the abnormal recovery information of the abnormal printing device, the abnormal recovery message is sent to the abnormal printing device to update the operation status of the abnormal printing device, thereby releasing the abnormal printing device and restoring the abnormal printing device to a normal operation status.
[0100] Furthermore, considering that the second printing device table stores printing device information of printing devices with abnormal printing devices, and the second printing device table may correspond to multiple printing devices, the printing device information stored in the second printing device table can be processed in sequence by traversal, and the specific implementation is as follows:
[0101] When the second printing device table is not empty, determine the target i-th printing device in the second printing device table; determine whether the printing device information corresponding to the target i-th printing device is stored in the first printing device table; if not, when the second printing device table is not empty, i is incremented by 1, and the step of determining the target i-th printing device in the second printing device table is performed; if so, take the target i-th printing device as the abnormal printing device, store the printing device information of the abnormal printing device into the to-be-processed printing device table, and when the to-be-processed printing device table meets the information processing conditions, perform the step of generating an abnormal recovery message of the abnormal printing device based on the abnormal recovery information of the abnormal printing device for the printing device information recorded in the to-be-processed printing device; i is incremented by 1 until the second printing device table is empty.
[0102] Specifically, i in the target i-th printing device may start from 1. The target first printing device may be the printing device corresponding to the first printing device information recorded in the second printing device table. The pending printing device table is used to store the printing devices corresponding to the printing device information that exists in both the first printing device table and the second printing device table. The information processing condition may be that the number of abnormal printing devices stored in the pending printing device table reaches a number threshold. Or, an abnormal recovery instruction for the abnormal printing device in the pending printing device table is received.
[0103] Based on this, if the second printing device table is not empty, it means that there is printing device information in the second printing device table that needs to be matched with the first printing device table. In the second printing device table, any printing device is determined as the target i-th printing device. It is judged whether the printing device information corresponding to the target i-th printing device is stored in the first printing device table; if it does not exist, it means that the target i-th printing device does not need to perform abnormal recovery. If the second printing device table is not empty, i is incremented by 1, and the target i-th printing device is determined in the second printing device table to continue the judgment; if it exists, it means that the target i-th printing device needs to perform abnormal recovery. The target i-th printing device is taken as an abnormal printing device, and the printing device information of the abnormal printing device is stored in the to-be-processed printing device table. If the to-be-processed printing device table meets the information processing conditions, it means that the abnormal printing device in the to-be-processed printing device table needs to start abnormal recovery. Then, an abnormal recovery message of the abnormal printing device is generated for the printing device information recorded in the to-be-processed printing device. i is incremented by 1, and then a printing device is selected in the second printing device table until the second printing device table is empty and all the to-be-processed printing devices corresponding to the second printing device table are processed.
[0104] To sum up, when the second printing device table is not empty, the printing device information in the second printing device table is extracted in sequence and compared with the first printing device table to determine the abnormal printing device and store the printing device information of the abnormal printing device in the printing device table to be processed, so as to facilitate subsequent abnormal recovery for the abnormal printing device corresponding to the printing device table to be processed.
[0105] Furthermore, considering that the table of pending printing devices may record abnormal printing device information of multiple abnormal printing devices, when abnormal recovery is performed for the abnormal printing devices corresponding to the table of pending printing devices, abnormal recovery may be performed one by one, and the specific implementation is as follows:
[0106] When the second printing device table is empty and the pending printing device table is not empty, a device recovery task in a pending state is sent to the production control system, and it is determined whether the pending printing device table is empty; if so, a task termination instruction is sent to the production control system; the production control system, in response to the task termination instruction, updates the pending state of the device recovery task to a stopped execution state; if not, a task execution instruction is sent to the production control system; the production control system, in response to the task execution instruction, updates the pending state of the device recovery task to an execution state.
[0107] Specifically, the device recovery task is used to recover the status of the printing device in an abnormal state. The task termination instruction is used to terminate the device recovery task. The stop execution instruction is used to inform the production control system to stop executing the device recovery task. The task execution instruction is used to inform the production control system to execute the device recovery task.
[0108] Based on this, when the second printing device table is empty and the pending printing device table is not empty, it means that the printing device information corresponding to the printing device in the abnormal state does not exist in the second printing device table. There are abnormal printing devices waiting for abnormal recovery in the pending printing device table. Send a device recovery task in the pending state to the production control system, and determine whether the pending printing device table is empty; if the pending printing device table is empty, it means that there is no abnormal printing device information corresponding to the abnormal printing device that needs to be processed in the processing printing device table, and then send a task termination instruction to the production control system to terminate the execution of the device recovery task. In response to the task termination instruction, the production control system updates the pending state of the device recovery task to the stop execution state; if the pending printing device table is not empty, it means that there is abnormal printing device information of the abnormal printing device that needs to be recovered in the pending printing device table, and then send a task execution instruction to the production control system to execute the device recovery task. In response to the task execution instruction, the production control system updates the pending state of the device recovery task to the execution state, and realizes the abnormal recovery of the abnormal printing device.
[0109] In summary, when the second printing device table is empty and the to-be-processed printing device table is not empty, abnormal recovery is performed one by one for the abnormal printing devices corresponding to the to-be-processed printing device table, thereby achieving orderly abnormal recovery for the abnormal printing devices.
[0110] Furthermore, considering that after the abnormal printing device completes abnormal recovery, there is a possibility of subsequent abnormalities. By recording the abnormal recovery information of the abnormal printing device, it can facilitate the subsequent operation and maintenance of the abnormal printing device, which is specifically implemented as follows:
[0111] After the operation status of the abnormal printing device is updated, abnormal recovery information of the abnormal printing device is determined; the abnormal recovery information is stored in an abnormal recovery record table for executing operation and maintenance tasks for the abnormal printing device.
[0112] Specifically, the abnormal recovery information includes but is not limited to the abnormal type of the abnormal printing device, the time when the abnormality occurred, the abnormal recovery result, etc. The abnormal recovery record table is used to store the abnormal recovery information of the abnormal printing device. Each printing device corresponds to an abnormal recovery record table. Alternatively, the printing devices under the same production system correspond to an abnormal recovery record table.
[0113] Based on this, after the operation status of the abnormal printing device is updated, the abnormal recovery information of the abnormal printing device is composed of the abnormal type of the abnormal printing device, the time when the abnormality occurred, the abnormal recovery result, etc. The abnormal recovery information is stored in the abnormal recovery record table for performing operation and maintenance tasks for the abnormal printing device.
[0114] Using the above example, after releasing the abnormal printing device, this "release" action is saved in the database. Through a long period of abnormal recovery operations and the accumulation of abnormal recovery information, a "release" situation report of the printing device can be formed. From this report, you can find out which printing devices are often in abnormal status, which printing devices are repeatedly released but cannot recover to normal operation status, and other "macro" situations. These macro reports can be sent to business personnel to guide them to correct the problems of printing devices.
[0115] In summary, storing the abnormal recovery information in the abnormal recovery record table can facilitate business personnel to perform operation and maintenance tasks for abnormal printing devices.
[0116] Furthermore, considering that there are a large number of printing devices running at the same time, when multiple printing devices are abnormal and perform abnormal recovery at the same time, it will increase the pressure of the production control system. Therefore, an abnormal recovery message can be sent to the abnormal printing device at a preset time interval. The specific implementation is as follows:
[0117] The abnormal recovery message is sent to the abnormal printing device at a preset time interval to update the operating status of the abnormal printing device.
[0118] Based on this, the preset time interval can be set to any time interval such as 1 second, 5 seconds, etc. The abnormal recovery message is sent to the abnormal printing device at the preset time interval to update the operating status of the abnormal printing device, thereby alleviating the pressure of the production control system.
[0119] Using the above example, after generating the abnormal recovery message of the abnormal printing device, wait for 1 second before sending the abnormal recovery message to the abnormal printing device to relieve the pressure of the production control system. When there are many abnormal printing devices that need to be released, the action of automatically releasing the printing device in a cycle will be triggered quickly. A large number of "release" operations triggered in a short period of time will cause system problems. Waiting for 1 second before releasing each printing device will greatly relieve the pressure on the system.
[0120] In summary, the abnormal recovery message is sent to the abnormal printing device at a preset time interval to update the operation status of the abnormal printing device, thereby alleviating the pressure on the production control system and ensuring that the production control system can operate stably.
[0121] A printing device status update method provided in an embodiment of the present specification is applied to a control terminal. A first printing device table and a second printing device table corresponding to a device detection period are determined, wherein the first printing device table records printing device information with printing order abnormalities, and the second printing device table records printing device information with printing device abnormalities. Information matching is performed on the first printing device table and the second printing device table, and an abnormal printing device is determined according to the matching result. In the case where the printing device information of the printing device recorded in the second printing device table is also stored in the first printing device table, the printing device is regarded as an abnormal printing device. That is, the printing device information of the abnormal printing device is stored in both the first printing device table and the second printing device table. Then, an abnormal recovery message of the abnormal printing device is generated based on the abnormal recovery information of the abnormal printing device, and the abnormal recovery message is sent to the abnormal printing device to update the operation status of the abnormal printing device. The printing device with both printing order abnormalities and printing device abnormalities is regarded as an abnormal printing device, thereby improving the accuracy and flexibility of determining the abnormal printing device. The process of determining the abnormal printing device and generating the abnormal recovery message for the abnormal printing device can be automatically realized, and the operation of the printing device is automatically checked and abnormally recovered. Realize automated operation and maintenance of printing equipment, so as to ensure timely error correction during the execution of the business of related printing equipment and ensure the smooth execution of related business.
[0122] The following combination Figure 3 Taking the application of the printing device status update method provided in this specification in the printing device management as an example, the printing device status update method is further described. Figure 3 A processing flow chart of a printing device status update method provided by an embodiment of the present specification is shown, which specifically includes the following steps.
[0123] Step 302: Determine at least one printing device included in the production system.
[0124] Step 304: Determine the number of abnormal print orders corresponding to the print order information of each printing device.
[0125] Step 306: Match each abnormal print order number with a preset value range respectively, and determine the abnormal print order information in at least one print order information according to the matching result.
[0126] Step 308: The printing device corresponding to the abnormal print order information is used as the first printing device with abnormal print order.
[0127] Step 310: According to the device status information of each printing device, a second printing device having an abnormal printing device is selected from at least one printing device.
[0128] Step 312: Store the printing device information of the first printing device into the first printing device table, and store the printing device information of the second printing device into the second printing device table.
[0129] Step 314: Select a target first printing device in the second printing device table, and if printing device information corresponding to the target first printing device exists in the first printing device table, treat the target first printing device as an abnormal printing device.
[0130] Step 316: Determine the device identification and exception handling instruction of the abnormal printing device, and generate an exception recovery message based on the device identification and the exception handling instruction.
[0131] Step 318: Send the abnormal recovery message to the abnormal printing device, update the operating status of the abnormal printing device, and release the abnormal printing device.
[0132] In actual applications, the printing device is a printer. For the process of automatic status release of the printer, see Figure 4 .like Figure 4 As shown, when releasing the printer, set the upper and lower limits of the number of orders to be printed. The printer will only be processed abnormally when the number of logistics orders to be printed by the printer is within the range formed by the upper and lower limits. If the number of orders is too small, it may be that the printer has just malfunctioned, such as lack of paper or ink. If the workers on the line find such problems, they can add paper and change ink by themselves, and then manually reply to the printer. This situation can be regarded as normal printer operation and is not an abnormal situation; if the printer has too many logistics orders to be printed, it means that the printer has not been used for a long time, which may be due to process changes or the printing order information is no longer necessary. After this happens, the solution is often not to print a large number of orders, but to contact the business department to modify the printing requirements.
[0133] Initialize the pending printer table and set it to an empty table to store the printer information of printers in abnormal state and with the number of pending orders within the single number interval composed of the upper and lower limits. Printer information can be retrieved through the database of the production control system. Filter out the printer information in abnormal state and record it in the abnormal printer table. From the printing order system provided by the production control system, obtain the printer data with the number of pending logistics orders within the interval, and store the corresponding printer information in the pending order printer table.
[0134] Determine whether the abnormal printer table is empty. If not, select a printer in the abnormal printer table as a candidate printer, locate the candidate printer in the reserved printer table, and if the location is successful, store the printer information corresponding to the candidate printer in the printer table to be processed; if the location fails, re-determine whether the abnormal printer table is empty. If it is not empty, execute the step of selecting the next candidate printer in the abnormal printer table, and so on, until the abnormal printer table is empty. If the abnormal printer table is empty, determine whether the printer table to be processed is empty. If so, end the printer release process; if not, log in to the production control system and enter the "Printer Operation" interface of the production control system. Determine whether the printer table to be processed is empty. If so, exit the production control system; if not, select a printer in the printer table to be processed as the target printer, and generate a release operation message corresponding to the target printer.
[0135] The release operation message essentially packages the printer's IP address, printer release command and other information into a message that conforms to the printer specification to form a message of the specific command of the "released" printer. After waiting for 1 second, send the release operation message to the target printer and wait for 1 second to relieve the pressure of the production control system. Through the printer operation interface of the production control system, send the assembled message to the corresponding printer to "release" the printer and restore it to normal state. Record the operation time and other information of the target printer into the database for statistical use of the printer status function. Save this "release" action into the database. In this way, through repeated operations and data accumulation over a long period of time, a printer "release" situation report can be formed. From this report, you can find "macro" situations such as which printers often have abnormal states and which printers are repeatedly released but cannot recover. These macro reports can be provided to operation and maintenance personnel to guide them to correct problems with the printer.
[0136] Corresponding to the above process of automatic printer status release, the low-code implementation process of automatic printer status release can be found in Figure 5 .like Figure 5As shown, LOW_TH represents the lower limit 1, and HIGH_TH represents the upper limit 100, corresponding to the upper and lower limits of the order backlog quantity of the printer. SPL_LIST ← select sp_name||'%#_#%'||km_name from spoolsys where dr_typ='HPLJ_PCL5' and sp_adresse is not null and sp_zustand in(8) order by sp_name as well as spadmin i#|grep^SPOOL|awk '{if($2>=%V(%LOW_TH%V)%&&$2<=%V(%HIGH_TH%V)%){print$1"%#_#%"$2}}', corresponding to retrieving printer information through the database of the production control system. spadmin is the production control system, from which printer information in abnormal status is screened out, and this printer information is recorded in the abnormal printer table. And data with the order backlog quantity of logistics orders to be printed within the interval is obtained, and the corresponding printer information is stored in the order backlog printer table. KM_LIST represents the order backlog printer table. Select candidate printers CUR_SPL in the abnormal printer table SPL_LIST. Query the abnormal printer table SPL_LIST and the order backlog printer table KM_LIST based on the printer information of the candidate printer CUR_SPL, and query SPL_NAME and KM_NAME. Locate the row MATCH_LN where KM_NAME is located in KM_LIST, and determine whether candidate printer information exists. If it exists, store MT_KM, SPL_NAME, and MT_CNT in the to-be-processed printer table REL_LIST.
[0137] If the table of printers to be processed REL_LIST is empty, the printer release process ends. If it is not empty, log in to the spadmin production control system. Query all rows WHOLE_LINE of REL_LIST. If no data is found, exit the production control system; query the data SPL_LONG, SPL_LNAME and SPL_BCNT corresponding to the abnormal printer, extract the SHT_SPL corresponding to the digital part of the abnormal printer from SPL_LONG, and generate the release message data SPLFE000: %V(%SHT_SPL%V)%,FG. Wait for 1 second and send it to the abnormal printer. Record the operation time and other information of abnormal printers: insert int ostat_detail_t(ps_id,task_id,seq_no,exec_time,info_11,info_12,info_01)values(%V(%PS_ID%V)%,%V(%TASK_ID%V)%,%V(%SEQ_NO%V)%,sysdate,'%V(%SPL_LONG%V)%','%V(%SPL_LNAME%V)%',%V(%SPL_BCNT%V)%), which is used to count the function usage of the printer status.
[0138] Corresponding to the above method embodiment, this specification also provides a printing device status updating device embodiment, Figure 6 FIG. 2 shows a schematic diagram of a printing device status update device provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:
[0139] The determination module 602 is configured to determine a first printing device table and a second printing device table corresponding to a device detection period, wherein the first printing device table records information about printing devices with abnormal printing orders, and the second printing device table records information about printing devices with abnormal printing devices;
[0140] A matching module 604 is configured to match information between the first printing device table and the second printing device table, and determine an abnormal printing device according to a matching result;
[0141] A generating module 606, configured to generate an abnormality recovery message of the abnormal printing device based on the abnormality recovery information of the abnormal printing device;
[0142] The updating module 608 is configured to send the abnormal recovery message to the abnormal printing device to update the operating status of the abnormal printing device.
[0143] In an optional embodiment, the determining module 602 is further configured to:
[0144] Identify at least one printing device included in the production system;
[0145] Selecting a first printing device with an abnormal printing order from the at least one printing device according to the printing order information of each printing device, and selecting a second printing device with an abnormal printing device from the at least one printing device according to the device status information of each printing device;
[0146] The printing device information of the first printing device is stored in the first printing device table, and the printing device information of the second printing device is stored in the second printing device table.
[0147] In an optional embodiment, the determining module 602 is further configured to:
[0148] Determine the number of abnormal print orders corresponding to the print order information of each printing device;
[0149] Matching each abnormal print order number with a preset value range respectively, and determining abnormal print order information in at least one print order information according to the matching result;
[0150] The printing device corresponding to the abnormal print order information is used as the first printing device with abnormal print order.
[0151] In an optional embodiment, the matching module 604 is further configured to:
[0152] Selecting a target first printing device in the second printing device table according to a printing device selection strategy;
[0153] If the printing device information corresponding to the target first printing device exists in the first printing device table, the target first printing device is regarded as the abnormal printing device.
[0154] In an optional embodiment, the generating module 606 is further configured to:
[0155] Determine the device identification and the exception handling instruction of the abnormal printing device, and use the device identification and the exception handling instruction as the exception recovery information;
[0156] The template message corresponding to the abnormal printing device is updated to an abnormal recovery message based on the abnormal recovery information.
[0157] In an optional embodiment, the updating module 608 is further configured to:
[0158] When the second printing device table is not empty, determining the target i-th printing device in the second printing device table;
[0159] Determining whether the printing device information corresponding to the target i-th printing device is stored in the first printing device table;
[0160] If not, if the second printing device table is not empty, i is incremented by 1, and the step of determining the target i-th printing device in the second printing device table is performed;
[0161] If so, the target i-th printing device is taken as the abnormal printing device, and the printing device information of the abnormal printing device is stored in the printing device table to be processed. When the printing device table to be processed meets the information processing conditions, the step of generating the abnormal recovery message of the abnormal printing device based on the abnormal recovery information of the abnormal printing device is performed for the printing device information recorded in the printing device to be processed; i is incremented by 1 until the second printing device table is empty.
[0162] In an optional embodiment, the updating module 608 is further configured to:
[0163] When the second printing device table is empty and the pending printing device table is not empty, sending a device recovery task in a pending state to the production control system, and determining whether the pending printing device table is empty;
[0164] If yes, sending a task termination instruction to the production control system; the production control system, in response to the task termination instruction, updates the pending execution state of the equipment recovery task to a stopped execution state;
[0165] If not, a task execution instruction is sent to the production control system; and the production control system, in response to the task execution instruction, updates the pending state of the equipment recovery task to the execution state.
[0166] In an optional embodiment, the updating module 608 is further configured to:
[0167] After the operation status of the abnormal printing device is updated, determining abnormal recovery information of the abnormal printing device;
[0168] The abnormal recovery information is stored in an abnormal recovery record table for executing operation and maintenance tasks for the abnormal printing device.
[0169] In an optional embodiment, the updating module 608 is further configured to:
[0170] The abnormal recovery message is sent to the abnormal printing device at a preset time interval to update the operating status of the abnormal printing device.
[0171] The printing device status updating device provided in one embodiment of the present specification is applied to a control terminal. A first printing device table and a second printing device table corresponding to a device detection period are determined, wherein the first printing device table records printing device information with printing order abnormalities, and the second printing device table records printing device information with printing device abnormalities. Information matching is performed on the first printing device table and the second printing device table, and an abnormal printing device is determined according to the matching result. In the case where the printing device information of the printing device recorded in the second printing device table is also stored in the first printing device table, the printing device is regarded as an abnormal printing device. That is, the printing device information of the abnormal printing device is stored in both the first printing device table and the second printing device table. Then, an abnormal recovery message of the abnormal printing device is generated based on the abnormal recovery information of the abnormal printing device, and the abnormal recovery message is sent to the abnormal printing device to update the operation status of the abnormal printing device. The printing device with both printing order abnormalities and printing device abnormalities is regarded as an abnormal printing device, thereby improving the accuracy and flexibility of determining the abnormal printing device. The process of determining the abnormal printing device and generating the abnormal recovery message for the abnormal printing device can be automatically realized, and the operation of the printing device is automatically checked and abnormally recovered. Realize automated operation and maintenance of printing equipment, so as to ensure timely error correction during the execution of the business of related printing equipment and ensure the smooth execution of related business.
[0172] The above is a schematic scheme of a printing device status update device of this embodiment. It should be noted that the technical scheme of the printing device status update device and the technical scheme of the printing device status update method described above are of the same concept, and the details not described in detail in the technical scheme of the printing device status update device can be found in the description of the technical scheme of the printing device status update method described above.
[0173] Figure 7 The block diagram of a computing device 700 according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.
[0174] The computing device 700 also includes an access device 740, which enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).
[0175] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0176] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 700 may also be a mobile or stationary server.
[0177] The processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned printing device status update method.
[0178] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned printing device status update method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned printing device status update method.
[0179] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned printing device status updating method.
[0180] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the printing device status update method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the printing device status update method described above.
[0181] An embodiment of the present specification also provides a computer program product, including a computer program or instructions, which implement the steps of the above-mentioned printing device status update method when executed by a processor.
[0182] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the printing device status update method described above are of the same concept, and the details not described in detail in the technical solution of the computer program product can be found in the description of the technical solution of the printing device status update method described above.
[0183] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0184] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0185] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0187] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. A method for updating the status of a printing device, characterized in that: Applied to the control end, including: Determine a first printing device table and a second printing device table corresponding to a device detection period, wherein the first printing device table records information of printing devices with printing order anomalies, and the second printing device table records information of printing devices with printing device anomalies; Matching information between the first printing device table and the second printing device table, and determining an abnormal printing device according to the matching result; generating an abnormality recovery message of the abnormal printing device based on the abnormality recovery information of the abnormal printing device; The abnormal recovery message is sent to the abnormal printing device to update the operating status of the abnormal printing device.
2. The method for updating the status of a printing device according to claim 1, characterized in that: Before determining the first printing device table and the second printing device table corresponding to the device detection period, the method includes: Identify at least one printing device included in the production system; Selecting a first printing device with an abnormal printing order from the at least one printing device according to the printing order information of each printing device, and selecting a second printing device with an abnormal printing device from the at least one printing device according to the device status information of each printing device; The printing device information of the first printing device is stored in the first printing device table, and the printing device information of the second printing device is stored in the second printing device table.
3. The method for updating the status of a printing device according to claim 2, characterized in that: The method of selecting a first printing device with an abnormal print order from the at least one printing device according to the print order information of each printing device comprises: Determine the number of abnormal print orders corresponding to the print order information of each printing device; Matching each abnormal print order number with a preset value range respectively, and determining abnormal print order information in at least one print order information according to the matching result; The printing device corresponding to the abnormal print order information is used as the first printing device with abnormal print order.
4. The method for updating the status of a printing device according to claim 1, characterized in that: The performing information matching on the first printing device table and the second printing device table, and determining an abnormal printing device according to the matching result, includes: Selecting a target first printing device in the second printing device table according to a printing device selection strategy; If the printing device information corresponding to the target first printing device exists in the first printing device table, the target first printing device is regarded as the abnormal printing device.
5. The method for updating the status of a printing device according to claim 1, characterized in that: The generating the abnormal recovery message of the abnormal printing device based on the abnormal recovery information of the abnormal printing device comprises: Determine the device identification and the exception handling instruction of the abnormal printing device, and use the device identification and the exception handling instruction as the exception recovery information; The template message corresponding to the abnormal printing device is updated to an abnormal recovery message based on the abnormal recovery information.
6. The method for updating the status of a printing device according to claim 1, characterized in that: The method further comprises: When the second printing device table is not empty, determining the target i-th printing device in the second printing device table; Determining whether the printing device information corresponding to the target i-th printing device is stored in the first printing device table; If not, if the second printing device table is not empty, i is incremented by 1, and the step of determining the target i-th printing device in the second printing device table is performed; If so, the target i-th printing device is taken as the abnormal printing device, and the printing device information of the abnormal printing device is stored in the printing device table to be processed. When the printing device table to be processed meets the information processing conditions, the step of generating the abnormal recovery message of the abnormal printing device based on the abnormal recovery information of the abnormal printing device is performed for the printing device information recorded in the printing device to be processed; i is incremented by 1 until the second printing device table is empty.
7. The method for updating the status of a printing device according to claim 6, characterized in that: The method further comprises: When the second printing device table is empty and the pending printing device table is not empty, sending a device recovery task in a pending state to the production control system, and determining whether the pending printing device table is empty; If yes, sending a task termination instruction to the production control system; the production control system, in response to the task termination instruction, updates the pending execution state of the equipment recovery task to a stopped execution state; If not, a task execution instruction is sent to the production control system; and the production control system, in response to the task execution instruction, updates the pending state of the equipment recovery task to the execution state.
8. The method for updating the status of a printing device according to claim 1, characterized in that: After sending the abnormal recovery message to the abnormal printing device and updating the operation status of the abnormal printing device, the method further includes: After the operation status of the abnormal printing device is updated, determining abnormal recovery information of the abnormal printing device; The abnormal recovery information is stored in an abnormal recovery record table for executing operation and maintenance tasks for the abnormal printing device.
9. The method for updating the status of a printing device according to claim 1, characterized in that: The sending of the abnormal recovery message to the abnormal printing device to update the operating state of the abnormal printing device includes: The abnormal recovery message is sent to the abnormal printing device at a preset time interval to update the operating status of the abnormal printing device.
10. A printing device status updating device, characterized in that: Applied to the control end, including: A determination module is configured to determine a first printing device table and a second printing device table corresponding to a device detection period, wherein the first printing device table records information of printing devices with abnormal printing orders, and the second printing device table records information of printing devices with abnormal printing devices; a matching module configured to match information between the first printing device table and the second printing device table, and determine an abnormal printing device according to a matching result; A generating module, configured to generate an abnormality recovery message of the abnormal printing device based on the abnormality recovery information of the abnormal printing device; The updating module is configured to send the abnormal recovery message to the abnormal printing device to update the operation status of the abnormal printing device.
11. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the printing device status updating method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium, characterized in that: It stores computer executable instructions, which, when executed by a processor, can implement the steps of the printing device status updating method described in any one of claims 1 to 9.
13. A computer program product, characterized in that The method comprises a computer program or an instruction, which, when executed by a processor, implements the steps of the method for updating the status of a printing device as claimed in any one of claims 1 to 9.
