Monitoring method, device and monitoring system of image forming equipment
By using MQTT to subscribe to topics in the cloud printing system, the client can monitor the status information of the image forming device in real time, solving the problems of information delay and server pressure, and achieving more efficient information transmission and server load management.
Patent Information
- Application Number
- CN202311570933.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2025-05-23
AI Technical Summary
In the existing cloud printing technology, there are problems of information delay and server pressure when acquiring the status information of the image forming device.
Using the MQTT subscription theme method, the client monitors the status information of the image forming device through the server, and the server publishes the status information of the device to the client, thereby realizing real-time monitoring and information transmission.
It improves the timeliness of information reception, reduces the frequency of access to the server, and reduces the bandwidth and capacity pressure of the server.
Smart Images

Figure CN120029559A_ABST
Abstract
Description
[Technical field]
[0001] The present application relates to the field of cloud printing, and in particular to a monitoring method, device and system for image forming equipment. [Background technology]
[0002] With the rapid development of mobile technology, Cloud Printing is a new type of network printing service. Cloud Printing allows users to remotely access and print files through any device, whether at home, in the office, or on a business trip, making printing more convenient.
[0003] In the conventional technology, when a cloud printing client needs to obtain the status of an image forming device, a common approach is to obtain the status information of the image forming device by polling through an https interface.
[0004] However, this approach causes a certain degree of delay in obtaining information and puts a lot of pressure on the server. [Summary of the invention]
[0005] In view of this, it is necessary to provide a monitoring method, device and monitoring system for an image forming device to address the above technical problems, which can help prevent information delays to improve the timeliness of receiving information and at the same time reduce the pressure on the server to a certain extent.
[0006] In a first aspect, the present application provides a monitoring method for an image forming device, which is applied to a client, and the client is used to monitor the image forming device through a server, comprising:
[0007] Start MQTT subscription topic;
[0008] Acquire the published information published by the server and matching the subscribed topic; the published information includes the status information of the image forming device;
[0009] Display subscription information on the client.
[0010] In one embodiment, the status information of the image forming device is information that when the server receives new information sent by the image forming device, if it is recognized that the new information is different from the previously received information, the server includes the new information in the published information.
[0011] In one embodiment, initiating an MQTT subscription topic includes:
[0012] Obtaining binding information of the login account; the binding information includes device information of the image forming device bound to the login account;
[0013] According to the binding information, confirm to start the subscription topic.
[0014] In one embodiment, obtaining the binding information of the login account includes:
[0015] When an account login is detected, a query instruction is sent to the server; the query instruction includes the account information of the login account;
[0016] Get the binding information obtained by the server according to the query instruction.
[0017] In a second aspect, the present application further provides a monitoring method for an image forming device, which is applied to a server, and the server is used to communicate with a client and an image forming device respectively, and the method includes:
[0018] Obtaining published information according to the received information sent by the image forming device; the published information includes status information of the image forming device;
[0019] The published information is published so that the client that monitors the image forming device can obtain the published information when starting the MQTT subscription topic.
[0020] In one embodiment, obtaining the published information according to the received information sent by the image forming device includes:
[0021] When new information sent by the image forming device is received, if it is recognized that the new information is different from the previously received information, the new information is used as the status information of the image forming device to obtain the subscription information.
[0022] In a third aspect, the present application further provides a monitoring device for an image forming device, comprising:
[0023] Startup module, used to start MQTT subscription topic;
[0024] An acquisition module, used for acquiring published information published by the server and matching the subscription topic; the published information includes status information of the image forming device;
[0025] The display module is used to display the subscription information on the client.
[0026] In a fourth aspect, the present application further provides a monitoring device for an image forming device, comprising:
[0027] A receiving module, configured to obtain published information according to information received from the image forming device; the published information includes status information of the image forming device;
[0028] The publishing module is used to publish the publishing information so that the client that monitors the image forming device can obtain the publishing information when starting the MQTT subscription topic.
[0029] In a fifth aspect, the present application also provides a client for monitoring an image forming device through a server, and for executing a monitoring method of an image forming device.
[0030] In a sixth aspect, the present application also provides a server for communicating with a client and an image forming device respectively, and for executing a monitoring method of the image forming device.
[0031] In a seventh aspect, the present application also provides a monitoring system for an image forming device, comprising: a client, a server and an image forming device.
[0032] The client is used for monitoring the image forming device through the server, and for executing the monitoring method of the image forming device;
[0033] The server is used for executing the monitoring method of the image forming device.
[0034] In an eighth aspect, the present application further provides a computer-readable storage medium, the computer-readable storage medium including a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for monitoring the image forming device.
[0035] The present application provides a method, device and system for monitoring an image forming device, which are applied to a client, and the client is used to monitor the image forming device through a server. When the client starts an MQTT subscription topic, it can obtain the published information published by the server that matches the subscription topic, and the published information includes the status information of the image forming device, and then publishes and displays it. In each embodiment of the present application, based on the MQTT subscription topic startup to establish an MQTT communication connection with the server, the status information of the image forming device is obtained through the server, thereby realizing the monitoring of the device, so that the client can perceive the status information of the image forming device in a timely and effective manner. At the same time, it helps to reduce the frequency of access to the server and reduce the pressure on the server bandwidth and capacity.
[0036] In a ninth aspect, an embodiment of the present application provides a document processing method, including:
[0037] When the application software is running in the client, determining whether the application software crashed when the application software was last run to process the first document;
[0038] If the application software crashes, a target document is obtained based on the document index address saved when the application software crashes, and a second document processing is performed on the target document; wherein the second document processing is the same as or different from the first document processing.
[0039] In one embodiment, the determining whether the application software crashed when the application software was last run to process the first document comprises: taking the object of the last run of the application software to process the first document as a target document, and determining whether the application software crashed when the application software was last run to process the first document based on a document identifier of the target document; or
[0040] When the application software was last run to process the first document, it is determined whether a first user operation instruction was obtained, and based on the determination result, it is determined whether the application software had a crash problem when the application software was last run to process the first document.
[0041] In one embodiment, the method further comprises:
[0042] When an application software is run in a client to perform a first document process and the application software crashes, a target document on which the first document process is to be performed is identified as a document that has not completed the first document process, and an index address of the target document is saved.
[0043] In one embodiment, before executing the second document processing on the target document, the method includes: receiving a second operation instruction from a user, and determining whether to start executing the second document processing based on the second operation instruction.
[0044] In one embodiment, before performing the second document processing on the target document, the method includes: determining whether the current user is logged in;
[0045] If it is determined that the current user is not logged in, automatically log in based on historical login information or prompt the user to complete the login;
[0046] If it is determined that the current user has logged in, a third operation instruction from the user is obtained, and the second document processing is started on the target document.
[0047] In a tenth aspect, an embodiment of the present application further provides a document processing method, comprising:
[0048] Based on the application software receiving a first operation instruction from the user, displaying a first control, the first control includes first prompt information, and the first prompt information is used to prompt the user whether the application software crashed when the application software was last run to process the first document;
[0049] receiving a second operation instruction from the user based on the first control, and displaying a second control, wherein the second control includes at least one of login information, document information, and second document processing information;
[0050] The first document processing is the same as or different from the second document processing.
[0051] In an eleventh aspect, an embodiment of the present application provides a document processing device, including:
[0052] A first determination module is used to determine, when the application software is running in the client, whether the application software crashed when the application software was last run and the first document was processed;
[0053] An acquisition module, used for acquiring a target document based on a document index address saved when the application software crashes, when the application software crashes;
[0054] The document processing module is used to perform a second document processing on the target document, where the second document processing is the same as or different from the first document processing.
[0055] In one implementation, the first determining module is used to:
[0056] Based on the document identifier of the target document of the first document processing when the application software was last run to perform the first document processing, determining whether the application software crashed when the application software was last run to perform the first document processing; or
[0057] When the application software was last run and the first document was processed, it was determined whether a first user operation instruction was obtained, and based on the determination result, it was determined whether the application software had a crash problem when the application software was last run and the first document was processed.
[0058] In one embodiment, the device further comprises:
[0059] an identification module, used for identifying the target document for executing the first document processing as a document that has not completed the first document processing when the application software crashes;
[0060] The storage module is used to save the index address of the document that has not completed the first document processing when the application software crashes.
[0061] In one embodiment, the device further comprises:
[0062] The second determination module is used to receive a second operation instruction before executing the second document processing on the target document, and determine whether to start executing the second document processing based on the second operation instruction.
[0063] In one embodiment, the device further comprises:
[0064] A login control module, used to determine whether the current user is logged in before performing the second document processing on the target document;
[0065] If it is determined that the current user is not logged in, complete the automatic login or prompt the user to complete the login;
[0066] If it is determined that the current user has logged in, a third operation instruction of the user is obtained, and the second document processing is started on the target document.
[0067] In the twelfth aspect, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement any one of the methods described above.
[0068] In the thirteenth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed, the steps of any one of the methods described above are implemented.
[0069] Through the embodiments of the present application, when the application software is rerun after a crash occurs while executing a first document processing, the document can be quickly acquired according to the document index address to execute a second document processing, thereby eliminating the need for the user to reselect the document and solving the crash problem caused by the failure to execute the first document processing.
Brief Description of the Drawings
[0070] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0071] Figure 1 It is a schematic diagram of the process of the prior art;
[0072] Figure 2 A schematic diagram of a flow chart of a monitoring method for an image forming device provided in an embodiment of the present application;
[0073] Figure 3 A schematic diagram of a flow chart of a monitoring method for an image forming device provided in an embodiment of the present application;
[0074] Figure 4 Another schematic diagram of a process of monitoring an image forming device provided in an embodiment of the present application;
[0075] Figure 5 A structural block diagram of a monitoring device for an image forming device provided in an embodiment of the present application;
[0076] Figure 6 A schematic diagram of a document processing method provided in an embodiment of the present application;
[0077] Figure 7 A schematic diagram of another document processing method provided in an embodiment of the present application;
[0078] Figure 8 An example of a first control interface provided in an embodiment of the present application;
[0079] Fig. 9 An example of a second control interface provided in an embodiment of the present application;
[0080] Fig.10 A flowchart of another document processing method provided in an embodiment of the present application;
[0081] Fig.11 An example of a document processing device provided in an embodiment of the present application. [Specific implementation method]
[0082] In order to better understand the technical solution of the present application, the embodiments of the present application will be described in more detail below in conjunction with the relevant drawings.
[0083] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0084] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0085] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0086] The existing practice mainly uses the https interface polling method to obtain the status information of image forming devices such as printers, such as Figure 1As shown, the main steps include: the client, such as a mini program, initiates a request to the server to query whether the mini program has been bound to a printer; the server responds to the request after receiving the request and returns the binding result. If the mini program is bound to a printer, it can be divided into the following two scenarios: Scenario 1: The server initiates a request to poll the printer status every once in a while (such as every 15 seconds), so as to update the UI interface according to the information returned by the server. Scenario 2: If you choose to print a document, enter the print setting interface and click Print, and turn on the print status polling, the time interval for initiating a request to poll the printer status is shortened (such as every 2 seconds), so as to update the UI interface according to the information returned by the server. In order to achieve more frequent acquisition of the status information of the image forming device when printing. Among them, the printer and the server are connected by a communication connection such as MQTT. After the printer is connected to the network, it periodically reports information to the server to publish the status information through MQTT, and the server stores the information after receiving it.
[0087] In the above existing practices, the real-time performance of users obtaining the printer status is poor, and the polling method puts a great pressure on the server.
[0088] In one embodiment, Figure 2 As shown in FIG. 1 , a structural block diagram of a monitoring system for an image forming device is provided. Figure 2 2 shows the communication connection relationship between the client 201, the server 202 and the image forming apparatus 203.
[0089] Among them, the client 201 includes but is not limited to applications of electronic devices such as mobile phone applications, computer applications, smart watch applications, and the image forming device 203 includes but is not limited to printers, copiers, fax machines, scanners, and multi-functional peripherals that perform the above functions in a single device.
[0090] In some possible implementations, the client 201 starts an MQTT subscription topic; the image forming device 203 reports its status regularly after connecting to the network, and then publishes the status information to the server 202 via MQTT. The server 202 obtains the publishing information based on the information received from the image forming device 203, and publishes the publishing information so that the client 201 that monitors the image forming device 203 can obtain the publishing information when starting the MQTT subscription topic. After obtaining the publishing information, the client 201 changes the interface display according to the publishing information.
[0091] In one embodiment, Figure 3As shown, a monitoring method for an image forming device is provided. This embodiment uses the method applied to a client as an example for illustration. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal, a server and an image forming device, and is implemented through the interaction of the terminal, the server and the image forming device. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers, and the server can be implemented as an independent server or a server cluster composed of multiple servers.
[0092] In this embodiment, the monitoring method of the image forming device includes the following steps:
[0093] Step S301, start the MQTT (Message Queuing Telemetry Transport) subscription topic.
[0094] The client starts the MQTT subscription topic including: establishing an MQTT communication connection with the server, and confirming the start of the subscription topic when the connection is successful.
[0095] For example, you can set a function option to start the subscription topic on the client. When you need to start, turn on the function, otherwise it is considered that the subscription topic is not started. Preferably, when the client detects that the startup conditions are met, the background will automatically start the MQTT subscription topic. This condition, for example, obtains the binding information of the login account.
[0096] The subscription topic includes the information required to monitor the image forming device. For the creation of the subscription topic of the client, preferably, the subscription topic can be created or configured for the client according to the monitoring requirements of the image forming device or according to the main monitoring information of the image forming device, so that when the client is logged in and the function of the subscription topic is started, the status information of the device can be monitored in a timely and effective manner. In this way, the timeliness and accuracy of monitoring the image forming device can be effectively improved, and at the same time, it can also prevent the omission of the information that needs to be monitored due to the selection or setting of the subscription topic operation, resulting in untimely or missing monitoring of the image forming device.
[0097] Step S303: Acquire the published information published by the server and matching the subscribed topic, where the published information includes the status information of the image forming device.
[0098] The server will include the status information of the image forming device in the published information, so that when the client starts the subscription topic, it can receive the information that meets the subscription topic and is required to monitor the image forming device from the published information. Specifically, the status information of the image forming device includes but is not limited to: power on / off status, fault information, such as paper shortage, paper feeding failure, etc.
[0099] When the corresponding client starts subscribing to the topic and receives the published information, the server can receive a successful reception message sent by the corresponding client. Otherwise, if the corresponding client does not start subscribing to the topic and does not receive the published message, the server will receive a failed transmission message.
[0100] Step S305, displaying the published information on the client.
[0101] Displaying the published information on the client application interface enables the user to see the status of the image forming device in real time through the application interface.
[0102] The monitoring method of the image forming device of this embodiment is applied to the client, and the client is used to monitor the image forming device through the server. When the client starts the MQTT subscription topic, the published information published by the server that matches the subscription topic can be obtained, and the published information includes the status information of the image forming device, and then the publication is displayed. In the embodiment of the present application, based on the MQTT subscription topic startup to establish an MQTT communication connection with the server, the status information of the image forming device is obtained through the server, thereby realizing the monitoring of the device, so that the client can perceive the status information of the image forming device in a timely and effective manner. At the same time, it helps to reduce the frequency of access to the server and reduce the pressure on the server bandwidth and capacity.
[0103] In a specific embodiment, the status information of the image forming device is: when the server receives new information sent by the image forming device, if it is recognized that the new information is different from the previously received information, the server includes the new information in the published information.
[0104] The monitoring method of the image forming device of this embodiment can not only send the status information of the image forming device to the client for monitoring in a timely manner, but also help reduce the load of data transmission between the server and the client, as well as the bandwidth and capacity pressure of the server.
[0105] In a specific embodiment, starting the MQTT subscription topic includes:
[0106] Step S1201: Obtain binding information of a login account; the binding information includes device information of an image forming device to which the login account is bound.
[0107] The device information of the image forming device may be an SN code or a unique identification code of the device.
[0108] Step S1205: Confirm to start the subscription topic according to the binding information.
[0109] In the case where the image forming device has been bound, the client may obtain the binding information of the login account by inputting the binding information on the client interface, or may automatically obtain the binding information through the server.
[0110] Specifically, after the client logs in to the account, it will automatically query the server to check whether the image forming device has been bound. If the login account is not currently bound to the image forming device, Bluetooth binding can be used, or the user can manually enter the unique serial number of the image forming device to achieve binding.
[0111] The monitoring method of the image forming device of the embodiment of the present application can start the function of subscribing to the topic based on the binding information of the login account, so that the situation of the image forming device to be monitored can be obtained through the binding information. Furthermore, when there are multiple devices, it can help reduce the problem of frequent access to the server caused by multiple devices.
[0112] In a specific embodiment, obtaining the binding information of the login account includes:
[0113] Step S1301: When a login account is detected, a query instruction is sent to the server; the query instruction includes the account information of the login account.
[0114] Step S1303: Obtain binding information obtained by the server according to the query instruction.
[0115] In this embodiment, the binding information can be automatically obtained by the server. For example, when the WeChat applet as a client detects that a login account has been logged in, it sends a query instruction to the server to query whether the login account has been bound to an image forming device, and returns the binding result. The account information can be user information or user ID information, etc.
[0116] In one embodiment, the present application further provides a monitoring method for an image forming device. This embodiment is illustrated by applying the method to a server side, where the server is used to communicate with a client and an image forming device respectively. The method includes:
[0117] Step S1501: Obtaining published information based on information received from an image forming device; the published information includes status information of the image forming device.
[0118] The server will include the status information of the image forming device in the published information, so that the client can receive it when starting the subscription topic. The status information of the image forming device includes but is not limited to: power on / off status, fault information, such as paper shortage, paper feeding failure, etc.
[0119] Step S1503: publishing the published information so that the client that monitors the image forming device can obtain the published information when starting the MQTT subscription topic.
[0120] When the corresponding client starts subscribing to the topic and receives the published information, the server can receive a successful reception message sent by the corresponding client. Otherwise, if the corresponding client does not start subscribing to the topic and does not receive the published message, the server will receive a failed transmission message.
[0121] The monitoring method of the image forming device of the present embodiment is applied to a server, and the server is used to establish communication connections with a client and an image forming device respectively. Based on the information received from the image forming device, the publishing information is obtained and published, so that the client that monitors the image forming device can obtain the publishing information when starting the MQTT subscription topic. In the present embodiment, the MQTT topic can be started based on the client to establish an MQTT communication connection with the client, and then the publishing information is received by the client. In this way, the client can monitor the image forming device, so that the client can perceive the status information of the image forming device in a timely and effective manner. At the same time, it helps to reduce the frequency of access to the server and reduce the pressure on the server bandwidth and capacity.
[0122] In a specific embodiment, obtaining the published information according to the information received from the image forming device includes:
[0123] Step S801: when new information sent by an image forming device is received, if it is recognized that the new information is different from the previously received information, the new information is used as the status information of the image forming device to obtain the published information.
[0124] The server receives the information sent by the image forming device, compares it, and filters out the changed information, thereby publishing the information.
[0125] The monitoring method of the image forming device of this embodiment can not only send the status information of the image forming device to the client for monitoring in a timely manner, but also help reduce the load of data transmission between the server and the client, as well as the bandwidth and capacity pressure of the server.
[0126] See also Figure 4 The embodiment of the present application also provides a monitoring method for an image forming device, which is applied to a monitoring system for an image forming device and is described by taking a client as a mini program as an example.
[0127] The method includes: The following is the situation of scenario 1
[0128] Step S401: The mini program sends a request to the server to inquire whether the mini program is bound to a printer.
[0129] Step S403: The server responds to the request and returns a binding result.
[0130] Step S405: When the login account logged in in the mini program has a bound printer, start the MQTT subscription topic.
[0131] Starting the MQTT subscription topic includes starting MQTT to establish a connection with the server, and confirming the start of the MQTT subscription topic after the connection is successful.
[0132] Step S407: When the server recognizes that the information sent by the printer has changed, it includes the changed information in the published information and publishes it to notify the applet.
[0133] Step S409: The mini program receives the information published by the server.
[0134] Step S411: The mini program updates the UI interface according to the publishing information published by the server.
[0135] Also includes: The following is the situation of scenario 2
[0136] Step S1401: After starting the MQTT topic in the above steps, select a document to print and enter the print setting interface;
[0137] Step S1403: When receiving the fault information sent by the printer, the server publishes the publishing information including the fault information.
[0138] Step S1405: The mini program receives the fault information published by the server.
[0139] Step S1407: The mini program immediately updates the UI interface according to the received publishing information.
[0140] The monitoring method of the image forming device of this embodiment is based on the MQTT subscription topic startup to establish an MQTT communication connection with the server, and the server obtains the status information of the image forming device, thereby realizing the monitoring of the device, so that the client can perceive the status information of the image forming device in a timely and effective manner. At the same time, it helps to reduce the frequency of access to the server and reduce the pressure on the server bandwidth and capacity.
[0141] Based on the same inventive concept, the embodiment of the present application also provides a monitoring device for implementing the above-mentioned image forming device. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiment of the monitoring device for the image forming device provided below can refer to the limitations of the monitoring method for the image forming device above, and will not be repeated here.
[0142] In one embodiment, Figure 5 As shown, a monitoring device for an image forming device is provided, comprising:
[0143] The startup module 501 is used to start the MQTT subscription topic.
[0144] The acquisition module 502 is used to acquire the published information published by the server and matching the subscribed topic; the published information includes the status information of the image forming device.
[0145] The display module 503 is used to display the published information on the client.
[0146] The monitoring device of the image forming device of this embodiment is applied to the client, and the client is used to monitor the image forming device through the server. When the client starts the MQTT subscription topic, the published information published by the server that matches the subscription topic can be obtained, and the published information includes the status information of the image forming device, and then the publication is displayed. In the embodiment of the present application, based on the MQTT subscription topic startup to establish an MQTT communication connection with the server, the status information of the image forming device is obtained through the server, thereby realizing the monitoring of the device, so that the client can perceive the status information of the image forming device in a timely and effective manner. At the same time, it helps to reduce the frequency of access to the server and reduce the pressure on the server bandwidth and capacity.
[0147] In a specific embodiment, the startup module includes:
[0148] An acquisition unit is used to acquire the binding information of the login account; the binding information includes the device information of the image forming device bound to the login account
[0149] The confirmation unit is used to confirm the start of the subscription topic according to the binding information.
[0150] In a specific embodiment, the acquisition unit includes:
[0151] The detection subunit is used to send a query instruction to the server when it detects that a login account has logged in; the query instruction includes the account information of the login account.
[0152] The acquisition subunit is used to obtain the binding information obtained by the server according to the query instruction.
[0153] In this embodiment, the binding information can be automatically obtained by the server. For example, when the WeChat applet as a client detects that a login account has been logged in, it sends a query instruction to the server to query whether the login account has been bound to an image forming device, and returns the binding result. The account information can be user information or user ID information, etc.
[0154] In one embodiment, the present application further provides a monitoring device for an image forming device, comprising:
[0155] A receiving module, used for obtaining published information according to information received from the image forming device; the published information includes status information of the image forming device;
[0156] The publishing module is used to publish the publishing information so that the client that monitors the image forming device can obtain the publishing information when starting the MQTT subscription topic.
[0157] The monitoring device of the image forming device of this embodiment is applied to a server, and the server is used to communicate with a client and an image forming device respectively. Based on the information sent by the image forming device, the publishing information is obtained and published, so that the client that monitors the image forming device can obtain the publishing information when starting the MQTT subscription topic. In this embodiment, the MQTT topic can be started based on the client to establish an MQTT communication connection with the client, and then the publishing information is received by the client. In this way, the client can monitor the image forming device, so that the client can perceive the status information of the image forming device in a timely and effective manner. At the same time, it helps to reduce the frequency of access to the server and reduce the pressure on the server bandwidth and capacity.
[0158] In a specific embodiment, the receiving module includes:
[0159] The identification subunit is used to, when receiving new information sent by the image forming device, if it is identified that the new information is different from the previously received information, use the new information as the status information of the image forming device to obtain the release information.
[0160] The server receives the information sent by the image forming device, compares it, and filters out the changed information, thereby publishing the information.
[0161] The monitoring device of the image forming device of this embodiment can not only send the status information of the image forming device to the client for monitoring in a timely manner, but also help reduce the load of data transmission between the server and the client, as well as the bandwidth and capacity pressure of the server.
[0162] In one embodiment, the present application further provides a client for monitoring an image forming device through a server, and for executing the monitoring method of the image forming device in the above embodiment.
[0163] The monitoring method of the image forming device in the embodiment of the present application is the same as the implementation process of the monitoring method of the image forming device applied to the client in the above embodiments, and will not be repeated here.
[0164] In one embodiment, the present application further provides a server for communicating with a client and an image forming device respectively to execute the above-mentioned method for monitoring the image forming device.
[0165] The monitoring method of the image forming device in the embodiment of the present application is the same as the implementation process of the monitoring method of the image forming device applied to the server in the above embodiments, and will not be repeated here.
[0166] In one embodiment, Figure 2 The present application also provides a monitoring system for an image forming device, including: a client 201 , a server 202 , and an image forming device 203 .
[0167] The client 201 is used to monitor the image forming device 203 through the server 202, and is used to execute the above-mentioned monitoring method of the image forming device.
[0168] The server 202 is used to execute the above-mentioned monitoring method of the image forming device.
[0169] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for monitoring an image forming device.
[0170] In addition to the above, the inventors of the present application also found that with the rapid development of software technology, technicians have developed a large number of application software. Users can install the application software developed by technicians in the client and run these application software through the client.
[0171] In the prior art, in the field of image forming technology, corresponding image forming operations are implemented by operating application software connected to an image forming device, such as selecting a target document in the application software, performing document processing on the selected target document to make it conform to a file format that can be processed by the image forming device, and then sending it to the image forming device for printing and outputting. In the process of implementing the present invention, the inventor found that when the application software fails to perform document processing on the selected target document, a flashback problem occurs, resulting in failure to print and output normally.
[0172] Therefore, the embodiment of the present application also provides a document processing method to solve the problem that when the application software fails to perform document processing on the selected target document, the application software crashes and the output cannot be printed normally. The image forming device in the embodiment of the present application is a device having at least one function related to image formation, and the above-mentioned image formation-related functions may include but are not limited to: printing function, scanning function, copying function, and fax function. For example:
[0173] Single-function printer: An image forming device with only printing function.
[0174] Multifunction printer: An image forming device with printing, copying, scanning and / or faxing capabilities, and optionally with a set number of paper trays.
[0175] Digital MFP: Based on the copying function, it has standard or optional printing, scanning, and faxing functions. It uses digital principles to output documents in the form of laser printing. Images and text can be edited as needed. It has a large-capacity paper tray, high memory, large hard disk, powerful network support, and multi-task parallel processing capabilities.
[0176] Please refer to Figure 6 The present invention provides a document processing method, which includes the following steps:
[0177] S601, when running an application software in a client, determining whether the application software crashed when the application software was last run to process a first document;
[0178] In one embodiment, the determining whether the application software crashed when the application software was last run to process the first document specifically includes: taking the object of the last run of the application software to process the first document as a target document, and determining whether the application software crashed when the application software was last run to process the first document based on a document identifier of the target document; or
[0179] After the application software is most recently run to process the first document, it is determined whether a first user operation instruction is obtained, and based on the determination result, it is determined whether the application software crashed when the application software was most recently run to process the first document.
[0180] In one embodiment, when an application software is run in a client to perform a first document process and the application software crashes, a target document on which the first document process is to be performed is identified as a document that has not completed the first document process and an index address of the target document is saved.
[0181] S602, if the application software crashes, a target document is obtained based on the document index address saved when the application software crashes, and a second document processing is performed on the target document; wherein the second document processing is the same as or different from the first document processing.
[0182] In one embodiment, before executing the second document processing on the target document, the method includes: receiving a second operation instruction from a user, and determining whether to start executing the second document processing based on the second operation instruction.
[0183] And, further comprising: determining whether the current user is logged in;
[0184] If it is determined that the current user is not logged in, automatically log in based on historical login information or prompt the user to complete the login;
[0185] If it is determined that the current user has logged in, a third operation instruction from the user is obtained, and the second document processing is started on the target document.
[0186] Exemplarily, in an application scenario, when the client runs the application software for the first time and performs the first document processing on the selected target document, the first document processing fails, the client application software crashes, the target document is identified as a document that has not completed the first document processing, and the index address of the target document is saved. When the application software crashes after the first execution of the first document processing, it is judged whether there is a target document that has not completed the first document processing according to the document identification. If there is a target document for the first document processing, it is determined that the last (first) execution of the application software to perform the first document processing may have failed to perform the first document processing, causing the application software to crash. When it is determined that the application software crashes, the target document is directly obtained based on the index address of the target document saved when the application software crashes, and it is saved, such as copying it and saving it to another storage space, the other storage space is a storage space newly created in the client that is different from the original storage space of the target document in the client, the image forming device storage space, and the cloud storage space. The target document saved in another storage space is obtained, and the second document processing is performed on it. The second document processing and the first document processing may be local document format processing, or may be uploading the target document to a cloud server to perform the second document format processing, and the second document processing and the first document processing may be the same or different. For example, the first document processing may be local document format processing, and the second document processing may be uploading the target document to a cloud server to perform the second document format processing.
[0187] Among them, when it is determined that the application software has a flash back problem, it also includes: determining whether the application software has logged in to the account, if it is determined that the user has not completed the login on the application software, jumping to the login interface to automatically complete the login according to the historical record information, or prompting the user to complete the login; if it is determined that the user has completed the login on the application software, obtaining the user's operation instruction and starting to perform the second document processing on the target document. For example, when the user hopes to avoid the flash back problem of the application software caused by the last recent operation of the application software to perform the first document processing, the second document processing is reselected, and the target document is uploaded to the cloud server for document processing. Then, the corresponding start button that can upload the target document to the cloud server for processing is triggered, and the corresponding document processing is started.
[0188] In another application scenario, different from the above application scenario, it is also possible to determine whether the application software has a crash problem based on whether the application software obtains user operation instructions when it runs for the first time to execute the first document processing. For example, when executing the first document processing, whether the user is detected to perform operations such as cancel, return, and exit, so that the application software receives the corresponding operation instructions and exits normally. If the above operation instructions are not received, it is determined that the application software has exited abnormally, that is, a crash problem has occurred.
[0189] According to the document processing method provided by the embodiment of the present application, when the application software crashes when executing the first document processing in the most recent last operation, the target document index address is saved in time, and the target document that has not completed the first document processing is identified. When the application software is re-run, it can be determined whether the crash occurs according to the identification of the target document in time, and the target document can be obtained in time without the user having to re-select the target document, which brings convenience to the user. And when it is determined that the application software crashes when executing the first document processing in the most recent last operation, after obtaining the target document according to the index address, the user can choose to execute a second document processing different from the first document processing, thereby solving the problem of the application software crashing.
[0190] Please refer to Figure 7 , an embodiment of the present application further provides a document processing method, comprising:
[0191] S701, based on the application software receiving a first operation instruction from the user, displaying a first control, wherein the first control includes first prompt information, and the first prompt information is used to prompt the user whether the application software crashed when the user last ran the application software to execute a first document processing.
[0192] Among them, determining whether the application software has a crash problem can be by taking the object of the most recent operation of the application software to perform the first document processing as the target document, and determining whether the application software has a crash problem when the application software was last run to perform the first document processing based on the document identifier of the target document; or it can be by judging whether the first user operation instruction was obtained when the application software was last run to perform the first document processing, and determining whether the application software has a crash problem when the application software was last run to perform the first document processing based on the judgment result.
[0193] refer to Figure 8 , is an example of the first control interface provided in the embodiment of the present application. It should be noted that the interface of the first control shown in the figure is only an example diagram made to facilitate understanding of the present embodiment and is not a limitation thereto.
[0194] In an application scenario, after the last time the application software was executed to process the first document, a crash occurred. The user restarts the application software and determines whether a crash occurred, whether there are unfinished tasks, and whether the user is logged in based on the document identifier. After confirmation, if it is confirmed that the application software has a crash, there are unfinished tasks, and the user is logged in, the following information is displayed: Figure 8 The interface shown in A prompts the user that there is currently an unfinished target document task for the first document processing, and whether it is necessary to continue the last unfinished document processing task, such as "It is detected that you have an unfinished document parsing task, do you want to continue parsing."
[0195] In another application scenario, after the last time the application software was executed to process the first document, a crash occurred. The user restarts the application software and determines whether a crash occurred, whether there are unfinished tasks, and whether the user is logged in based on the document identifier. After confirmation, if it is confirmed that a crash occurred, there are unfinished tasks, and the user is not logged in, the following information is displayed: Figure 8 The interface shown in B prompts the user that there is currently an unfinished target document task for the first document processing, and whether to continue the last unfinished document processing task after completing the login, such as "It is detected that you have an unfinished document parsing task. Do you want to enable the file repair function and try again after completing the login?"
[0196] S702, receiving a second operation instruction from the user based on the first control, and displaying a second control, wherein the second control includes at least one of login information, document information, and second document processing information.
[0197] In one implementation, the first document processing is the same as or different from the second document processing.
[0198] refer to Fig. 9, is an example of the second control interface provided in the embodiment of the present application. It should be noted that the interface of the second control shown in the figure is only an example diagram made to facilitate understanding of the present embodiment and is not intended to limit it.
[0199] In an application scenario, when the user performs a corresponding operation based on the first control and issues a corresponding operation instruction, the second control is displayed accordingly. For example, when confirming that the application software crashed when executing the first document processing most recently, there is an unfinished task, and the user is logged in, such as based on Figure 8 A is a schematic diagram of the interface of the first control, the user performs an operation, and receives an operation instruction of selecting "yes" issued by the user, then the following is displayed Fig. 9 The interface diagram of the second control shown in FIG. 1 includes document information and second document processing related information, such as a second document processing on / off button and second document processing function help information. Among them, regarding the second document processing on / off button, when the user selects "Yes", the following is displayed: Fig. 9 In the second control interface shown, the second document opening / closing button in the interface can be automatically opened to automatically start the second document processing; or it can be manually opened by the user, and the second document processing will not start until the user manually opens it. Figure 8 A is a schematic diagram of the interface of the first control. When the user performs an operation and receives an operation instruction of selecting "No" issued by the user, the application software homepage or the history record interface is displayed to facilitate the user to select the subsequent function or target file to be executed.
[0200] For example, when confirming that the application software crashed when executing the first document processing the last time, there is an unfinished task, and the user is not logged in, such as based on Figure 8 B is a schematic diagram of the interface of the first control. The user performs an operation and receives an operation instruction of selecting "Yes" from the user, then displays the login interface. The user can enter the corresponding account information based on the login interface to perform login, or directly obtain the historical login information to complete the login. After the user completes the login, the following is displayed: Fig. 9 The interface shown.
[0201] Please refer to Fig.10 , an embodiment of the present application also provides a document processing method, comprising the following steps:
[0202] S1001, run application software.
[0203] The user clicks the application software icon based on the client to start running the application software.
[0204] S1002, select a target document.
[0205] The user starts the application software, selects the target document to execute document processing, or the user starts the application software, selects document printing, and selects the target document to execute corresponding document processing.
[0206] S1003, executing first document processing.
[0207] The first document processing may be a local processing, and the local processing is performed to process the target document into a document format that conforms to the document format supported by the image forming device. When the user selects the target document, the first document processing begins. The first document processing may also be a document processing that uploads the document to the cloud server for execution. When the user selects the target document, enters the target document preview interface, and turns on the cloud server document processing, the target document is uploaded to the cloud server, and the cloud server performs the document processing, processes the target document into a document format supported by the image forming device, and returns it to the application software or sends it to the image forming device at the same time.
[0208] S1004, determining whether the application software exits abnormally.
[0209] When the user selects a target document and fails to execute the first document processing, the application software may exit abnormally. When the user selects a target document and fails to execute the first document processing, the corresponding target document is identified as a document that has not completed the first document processing, and the index address of the target document is saved. When the user re-runs the application software, if it is identified based on the document identification that there is a task that has not completed the first document processing, it is determined that the application software has an abnormal exit problem. Or when the user is running the application software to execute the first document processing, the user has not been detected to execute the operation indicating the exit of the application software, and the application software has a problem of failing to execute the first document processing and then crashing, it is determined that the application software has exited abnormally. When it is determined that the application software has exited abnormally, execute S1005, otherwise execute S1013.
[0210] S1005, storing the document index address, and identifying the document as a document for which the first document processing has not been completed.
[0211] When it is determined that the application software fails to process the first document and exits abnormally, the index address of the target document is stored, and the target document is identified as a document that has not completed the first document processing. The index address can be the storage address of the target document in the root directory of the application software, or the corresponding address in the historical record of the application software.
[0212] S1006, run application software.
[0213] After the application software fails to process the first document and exits abnormally, the application software is re-run.
[0214] S1007, determining whether there is any task that has not completed the first document processing.
[0215] It is determined whether there is an unfinished task for processing the first document according to the document identifier. When it is determined that there is an unfinished task for processing the first document, S1008 is executed. When it is determined that there is no unfinished task for processing the document, the process returns to S1002. Specifically, when it is determined that there is an unfinished task for processing the first document, the display interface prompts the user whether there is an unfinished task for processing the first document and whether to continue.
[0216] S1008, determine whether the user is logged in.
[0217] When it is determined that there is an unfinished task of processing the first document, it is further determined whether the user is logged in, and an interface is displayed to prompt the user according to the determination result. When it is determined that the user is not logged in, S1009 is executed, and when it is determined that the user is logged in, S1010 is executed.
[0218] S1009, execute login.
[0219] When it is determined that the user has not logged in, the application software automatically completes the login according to the historical login information, or the user completes the login by filling in the account information and password information. Then S1010 is executed.
[0220] S1010, triggering the start of second document processing.
[0221] When it is determined that the user has logged in, a preview interface is displayed, and the preview interface includes a second document processing on / off button. When the user has logged in, a preview interface is displayed, and the second document processing button in the preview interface is turned on, which can be turned on by default from off to on, or can be turned on by user triggering.
[0222] S1011, executing second document processing.
[0223] When the user logs in, the target document is uploaded to the cloud server, which performs document processing and processes it into a document format and content that conforms to the document format and content supported by the image forming device.
[0224] S1012, obtaining a second document processing result.
[0225] After the cloud server performs document processing on the target document, it returns the result of the document processing to the application software, such as the result of successful processing or failed processing. In an optional manner, after the cloud server performs document processing on the target document, it returns the result of the document processing to the application software, and can also send it to the image forming device to perform print output at the same time.
[0226] S1013, print output.
[0227] It should be noted that S1013 is an optional step, and whether printing output is required can be determined based on actual user needs.
[0228] As described above, the document processing method provided by the present application can timely identify whether the application software has had a crash problem in the last time when the document processing is executed, especially when the first document processing fails and causes the application software to crash, and timely obtain the target document when the user re-enters the application software, based on the document identification identified before the crash and the timely saved document index address, thereby reducing the user's operation of reselecting the target document and bringing convenience to the user. At the same time, for the document processing that was not completed before the crash, the user is provided with the opportunity to continue processing, and the user can choose to execute a method different from the first document processing, and execute the second document processing on the target document to avoid the crash of the application software again, providing the user with more document processing options and improving the user experience.
[0229] Please refer to Fig.11, an embodiment of the present application also provides a document processing device, and an embodiment of the present application also provides a document processing device 1100, the device 1100 includes a first determination module 1110, an acquisition module 1120, a document processing module 1130, an identification module 1140, a storage module 1150, a second determination module 1160, and a login control module 1170. Among them, the first determination module 1110 is used to determine whether the application software has a flash back problem when the application software is run in the client when the application software is run in the last time and the first document processing is performed. The acquisition module 1120 is used to obtain a target document based on the document index address saved before the application software flashes back when the application software flashes back. The document processing module 1130 is used to perform a second document processing on the target document, and the second document processing is the same as or different from the first document processing. The first determination module 1110 is further used to determine whether the application software crashed when the application software was last run and executed the first document processing, based on the document identifier of the target document of the first document processing when the application software was last run and executed the first document processing; or, after the application software was last run and executed the first document processing, determine whether the first user operation instruction was obtained, and determine whether the application software crashed when the application software was last run and executed the first document processing according to the judgment result. The identification module 1140 is used to identify the target document of the first document processing as a document that has not completed the first document processing when the application software crashes. The storage module 1150 is used to save the index address of the document that has not completed the first document processing when the application software crashes. The second determination module 1160 is used to receive a second operation instruction before executing the second document processing on the target document, and determine whether to start executing the second document processing based on the second operation instruction. The login control module 1170 is used to determine whether the current user is logged in before executing the second document processing on the target document; if it is determined that the current user is not logged in, complete the automatic login or prompt the user to complete the login; if it is determined that the current user is logged in, obtain the user's third operation instruction and start executing the second document processing on the target document.
[0230] In addition, an embodiment of the present application further provides an electronic device, characterized in that it includes a memory, a processor and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the above method.
[0231] Furthermore, an embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, characterized in that the program implements the steps of the above method when executed.
[0232] In the embodiments of the present application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.
[0233] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0234] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0235] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments of the present application can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0236] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0237] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the document processing device 1100. In other embodiments of the present application, the document processing device 1100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0238] In the description of this application, unless otherwise clearly specified and limited, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance; unless otherwise specified or explained, the term "multiple" refers to two or more, and the term "multiple" refers to two or more; the terms "connected", "fixed", etc. should be understood in a broad sense, for example, "connected" can be a fixed connection, a detachable connection, an integral connection, or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0239] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A monitoring method for an image forming device, It is characterized in that Applied to a client, the client is used to monitor an image forming device through a server, the method comprising: Start MQTT subscription topic; Acquire the published information published by the server and matching the subscribed topic; the published information includes the status information of the image forming device; The published information is displayed on the client.
2. The monitoring method of the image forming apparatus according to claim 1, It is characterized in that The status information of the image forming device is information that, when the server receives new information sent by the image forming device and recognizes that the new information is different from previously received information, the server includes the new information in the published information.
3. The monitoring method of the image forming apparatus according to claim 1, It is characterized in that Start the MQTT subscription topic, including: Acquire binding information of a login account; the binding information includes device information of the image forming device to which the login account is bound; According to the binding information, confirm to start the subscription topic.
4. The monitoring method of the image forming apparatus according to claim 3, It is characterized in that Get the binding information of the login account, including: When detecting that the login account has logged in, sending a query instruction to the server; the query instruction includes the account information of the login account; Acquire the binding information obtained by the server according to the query instruction.
5. A method for monitoring an image forming device, It is characterized in that Applied to a server, the server is used to communicate with a client and an image forming device respectively; the method comprises: Obtaining published information according to the information received from the image forming device; the published information includes status information of the image forming device; The published information is published so that a client that monitors the image forming device can obtain the published information when starting an MQTT subscription topic.
6. The monitoring method of the image forming apparatus according to claim 5, It is characterized in that According to the information received from the image forming device, the publishing information is obtained, including: When new information sent by the image forming device is received, if it is recognized that the new information is different from the previously received information, the new information is used as the status information of the image forming device to obtain the published information.
7. A monitoring device for an image forming device, It is characterized in that include: Startup module, used to start MQTT subscription topic; an acquisition module, configured to acquire the published information published by the server and matching the subscribed topic; the published information includes the status information of the image forming device; The display module is used to display the subscription information on the client.
8. A monitoring device for an image forming device, It is characterized in that include: A receiving module, used for obtaining the publishing information according to the information received from the image forming device; The published information includes status information of the image forming device; The publishing module is used to publish the publishing information so that the client that monitors the image forming device can obtain the publishing information when starting the MQTT subscription topic.
9. A client, It is characterized in that Used to monitor an image forming device through a server, and used to execute the monitoring method of the image forming device according to any one of claims 1 to 4.
10. A server, It is characterized in that Used to communicate with a client and an image forming device respectively, and used to execute the monitoring method of the image forming device described in claim 5 or 6.
11. A monitoring system for an image forming device, It is characterized in that include: Client, server and image forming device; The client is used to monitor the image forming device through the server, and is used to execute the monitoring method of the image forming device according to any one of claims 1 to 4; The server is used to execute the monitoring method of the image forming device according to claim 5 or 6.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for monitoring an image forming device according to any one of claims 1 to 6.