CN114290828B - Control method and device of image forming device - Google Patents

Control method and device of image forming device Download PDF

Info

Publication number
CN114290828B
CN114290828B CN202111666377.7A CN202111666377A CN114290828B CN 114290828 B CN114290828 B CN 114290828B CN 202111666377 A CN202111666377 A CN 202111666377A CN 114290828 B CN114290828 B CN 114290828B
Authority
CN
China
Prior art keywords
function
image forming
forming apparatus
log file
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111666377.7A
Other languages
Chinese (zh)
Other versions
CN114290828A (en
Inventor
赵晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Pantum Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Pantum Electronics Co Ltd filed Critical Zhuhai Pantum Electronics Co Ltd
Priority to CN202111666377.7A priority Critical patent/CN114290828B/en
Publication of CN114290828A publication Critical patent/CN114290828A/en
Application granted granted Critical
Publication of CN114290828B publication Critical patent/CN114290828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Facsimiles In General (AREA)
  • Control Or Security For Electrophotography (AREA)

Abstract

The embodiment of the application discloses a control method and a device of image forming equipment, wherein the control method comprises the steps of detecting whether the image forming equipment has faults in the operation process; if the fault occurs, generating function numbers of all the first functions in operation, generating error codes, writing the function numbers and the error codes into a log file and storing the log file. The control device comprises a detection module and a control module which are in communication connection with each other. By the scheme provided by the embodiment, some loopholes (bug) which are difficult to reproduce can be solved; meanwhile, some important first functions are numbered, error codes are defined, and the function numbers and the error codes corresponding to the first functions with errors are written into a log file for recording faults and are stored, so that the safety of codes is improved, the size of the log file is reduced, and leakage of user information is avoided because only the function numbers and the error codes are recorded.

Description

Control method and device of image forming device
[ Field of technology ]
The present application relates to the field of image forming technologies, and in particular, to a method and apparatus for controlling an image forming device.
[ Background Art ]
When a user encounters a crash due to some special cause during use of an image forming apparatus (e.g., a printer), the current solution is for a technician to go to a gate for maintenance, which reproduces the previous printer failure condition based on knowledge of the basic condition occurring, and reports Log (Log file, e.g., failure Log) and reproduction step according to the reproduction condition and decides whether to return to the factory.
However, this solution is only aimed at some problems that have low occurrence probability and can be reproduced, that is, the problem can be reproduced by reproducing the fault and then checking the fault Log through a special interface or serial port, but it is obvious that this solution has a problem that the fault Log is not stored in the device. For mass-produced image forming apparatuses, however, these image forming apparatuses do not have such special interfaces/serial ports, so that the fault Log cannot be checked, and reproduction may be very difficult for those problems with very low reproduction probability. Thus, when such an error occurs in the image forming apparatus, this causes great difficulty to the technician in solving the trouble problem.
[ MEANS FOR SOLVING PROBLEMS ]
In view of the above, embodiments of the present application provide a method and an apparatus for controlling an image forming apparatus, so as to solve the technical problems in the prior art that a user encounters a crash caused by some special reasons when using the image forming apparatus, and cannot reproduce the fault during maintenance, and cannot obtain Log when an error occurs, thereby making it difficult to solve the fault.
In a first aspect, an embodiment of the present application provides a control method of an image forming apparatus, including:
detecting whether the image forming apparatus has a failure in the operation process;
If the fault occurs, generating function numbers of all the first functions in operation, generating error codes, writing the function numbers and the error codes into a log file and storing the log file.
In one possible implementation, when a fault occurs, generating a function number of a first function in operation and generating an error code, writing the function number and the error code into a log file and storing, including:
if the first function fails, acquiring a memory address corresponding to the failed first function;
according to the stored mapping relation between the memory address corresponding to the first function and the function number, obtaining the function number corresponding to the memory address corresponding to the first function with faults, writing the function number into the log file and storing the log file; and according to the operation parameters of the first function with the faults, acquiring the number of the code lines with the faults as error codes, writing the error codes into a log file and storing the error codes.
In one possible implementation, the image forming apparatus performs one or more processes during operation; executing one or more threads while executing each of the processes; executing one or more functional functions while executing each of the threads; the function has at least one first function; the function number includes at least one of a process number, a thread number, and a function number.
In one possible implementation manner, after generating the function number of each first function in operation and generating an error code if a fault occurs, writing the function number and the error code into a log file and storing the log file, the method further comprises:
acquiring the log file from the image forming apparatus;
in acquiring the log file from the image forming apparatus, it includes: connecting the image forming apparatus to a processing apparatus, causing the image forming apparatus to enter a start-up mode;
issuing an instruction to the image forming apparatus by the processing apparatus;
The image forming device analyzes the received instruction;
When the image forming device successfully analyzes the instruction, the image forming device transmits the log file to the processing device;
When the image forming apparatus fails to parse the instruction, the image forming apparatus generates error information of the parsing failure and transmits the error information to the processing apparatus.
In one possible embodiment, in detecting whether the image forming apparatus has failed during operation, the method includes:
detecting response information of each first function, and judging the receiving condition of the response information;
If the receiving condition is abnormal receiving or incorrect receiving, judging that the image forming equipment has faults in the running process;
and if the receiving condition is normal receiving or the receiving is correct, judging that the image forming equipment is in a normal working state.
In one possible embodiment, before detecting whether the image forming apparatus has failed during operation, the control method further includes:
Receiving a task;
Operating the image forming device, executing one or more processes according to the tasks, then executing one or more threads under each process, and then operating one or more functional functions under each thread;
the function comprises at least one first function, the first function is operated, a memory address corresponding to the first function is obtained, a specific function is called to number the memory address corresponding to the first function, and a mapping table between the memory address corresponding to the first function and the number is generated and stored; and the first function is operated and response information is returned.
According to the scheme provided by the embodiment, each first function is coded according to the different types of faults, so that different faults have respective corresponding error codes, technicians can reproduce the types of the faults according to the error codes during maintenance, the problem of error code analysis can be solved according to the faults with extremely low reproduction probability, the reproduction difficulty of the technicians is greatly reduced, and the efficiency and success rate of fault repair are improved.
In a second aspect, an embodiment of the present application provides a control apparatus of an image forming device, including a detection module and a control module that are communicatively connected to each other;
The detection module is used for detecting whether the image forming equipment has faults in the operation process;
and the control module is used for generating function numbers of all the first functions in operation and generating error codes if faults occur, and writing the function numbers and the error codes into a log file and storing the log file.
In a third aspect, an embodiment of the present application provides a computer storage medium, where the computer storage medium includes a stored computer program, where the program, when executed, controls an apparatus where the storage medium is located to execute the control method of the image forming apparatus according to the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory for storing information including program instructions, and a processor for controlling execution of the program instructions, which when loaded and executed by the processor, implement the steps of the control method of the image forming device of the first aspect.
Compared with the prior art, the technical scheme has at least the following beneficial effects:
The control method and the device of the image forming equipment disclosed by the embodiment of the application can solve some loopholes (bug) which are difficult to reproduce; meanwhile, some important first functions are numbered, error codes are defined, and the function numbers and the error codes corresponding to the first functions with errors are written into a log file for recording faults and are stored, so that the safety of codes is improved, the size of the log file is reduced, and leakage of user information is avoided because only the function numbers and the error codes are recorded.
[ Description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram showing a connection relationship between an image forming apparatus and a processing apparatus in a control method according to embodiment 1 of the present application;
FIG. 2 is a flow chart of the control method according to embodiment 1 of the present application;
FIG. 3 is another flow chart of the control method provided in embodiment 1 of the present application;
FIG. 4 is another flow chart of the control method provided in embodiment 1 of the present application;
FIG. 5 is a flowchart of the control method according to embodiment 1 of the present application, wherein S300 is specifically shown;
FIG. 6 is a flowchart of S400 in the control method according to embodiment 1 of the present application;
FIG. 7 is another flowchart of the control method provided in embodiment 1 of the present application;
Fig. 8 is a specific flowchart of S500 in the control method provided in embodiment 1 of the present application;
fig. 9 is a schematic structural view of a control device according to embodiment 2 of the present application;
Fig. 10 is a schematic view of another structure of the control device according to embodiment 2 of the present application;
fig. 11 is a schematic view of another structure of the control device according to embodiment 2 of the present application;
fig. 12 is a schematic view of another structure of the control device according to embodiment 2 of the present application;
Fig. 13 is a schematic structural diagram of an electronic device according to embodiment 4 of the present application.
[ Detailed description ] of the invention
For a better understanding of the technical solution of the present application, the following detailed description of the embodiments of the present application refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the following embodiments of the present application, an image forming apparatus is used to execute an image forming job such as generating, printing, receiving, and transmitting image data, and examples of the image forming apparatus include: inkjet printers, laser printers, LED (LIGHT EMITTING Diode) printers, copiers, facsimile machines, scanners, or multifunction integrated machines, and multifunction peripherals (MFPs) that perform the above functions in a single device. The image forming apparatus includes an image forming control module for controlling the entire image forming apparatus, and an image forming unit for forming an image on a conveyed sheet under the control of the image forming control module based on image data.
The image forming control module may be a SoC (System on Chip), which is a miniature device, and is configured to control imaging processing operations of the image forming device, such as performing processes of linear correction, noise reduction, dead pixel removal, detail enhancement, etc. on image data, so as to improve quality of image output, and is further configured to perform processing operations related to data transceiving, command transceiving, engine control of printing an image, such as transceiving data, print engine control commands, status, etc. through an interface unit (including but not limited to a USB port, a wired network port, a wireless network port, or other interfaces, etc.).
Example 1
The embodiment 1 of the application discloses a control method of an image forming device, which is used for storing running Log information (Log) generated when the image forming device runs in a fixed Log File (Log File) of the image forming device for recording the daily flow of the image forming device; when the image forming equipment fails, function numbering is carried out on some important functions, and error codes are defined aiming at the failed functions, so that the failed function numbers and the error codes are stored in the log file; in the boot mode, a technician can copy out the log file where the log information is located by using the USB connection through the processing device. The method aims at solving the technical problems that a technician cannot reproduce a fault and cannot acquire a log file when the fault occurs when the image forming device is maintained, and the technical problems that the technician is difficult to solve the fault are solved.
Specifically, as shown in fig. 1, the image forming apparatus 10 and the processing apparatus 20 are connected through a communication module 30. In performing maintenance on the image forming apparatus 10, a technician connects the processing apparatus 20 (e.g., personal computer, PC) with the image forming apparatus 10 via a communication module 30 (e.g., universal serial bus (Universal Serial Bus, USB)) provided on the processing apparatus 20 or connected to the processing apparatus 20. The processing apparatus 20 is configured to issue instructions to the image forming apparatus 10 and is configured to control operations of the image forming apparatus 10. The image forming apparatus 10 has a function of saving the operation log information in which a failure occurs during operation, and can copy the operation log information from the image forming apparatus 10 to the processing apparatus 20 by receiving an instruction from the processing apparatus 20 through the communication module 30.
As shown in fig. 2, the control method of the present embodiment 1 includes:
S400: detecting whether or not the image forming apparatus 10 has failed during operation;
s500: if the fault occurs, generating function numbers of all the first functions in operation, generating error codes, writing the function numbers and the error codes into a log file and storing the log file.
Specifically, in the control method of the present embodiment 1, the first function is included in all the running functions, which are the functional functions that will be used during the operation of the image forming apparatus 10, including the first function that performs important tasks and other functional functions that perform non-important tasks, and preferably, the first function may be a part of the important functions, and the control method of the present embodiment 1 performs fault detection only for the first function. When the image forming apparatus 10 runs the first function, the memory address corresponding to the first function is obtained, the first function is numbered by calling a specific function (such as log function), a number mapping table between the memory address corresponding to the first function and the function number is generated, and the number mapping table is stored.
As shown in fig. 3, the control method of the present embodiment 1 further includes, before S400:
S100: a task is received. The image forming apparatus 10 receives a job after power-on.
In S100, the image forming apparatus 10 has a function capable of performing various tasks, for example, the image forming apparatus 10 has a function capable of performing printing, copying, scanning facsimile, and representing network or power connection.
S200: image forming apparatus 10 is run to execute one or more processes according to the tasks, then execute one or more threads under each process, and then run one or more function functions under each thread.
In S200, the image forming apparatus 10 starts execution of a task, requiring start of one or more processes each including one or more threads each having one or more function functions under it, which forms a function capable of executing respective types of tasks, for example, 9 processes may be executed to print, 9 threads may be included under each process may be executed, 10 processes may be executed to copy, 10 threads may be executed under each process, and so on. The independent setting of the function functions can facilitate fault detection, can be beneficial to locking fault sources when faults are found, and is convenient for technicians to reproduce faults and maintain. The function has at least one first function, the first function is operated, the memory address corresponding to the first function is obtained, a specific function (such as log function) is called to number the memory address corresponding to the first function, and a mapping table between the memory address corresponding to the first function and the number is generated and stored. The function numbers comprise at least one of process numbers, thread numbers and function numbers, the process numbers are generated according to each process, the thread numbers are generated according to each thread under each process, the function numbers are generated according to the first function corresponding to each function under each thread, the process numbers, the thread numbers and the function numbers are respectively or randomly combined into a mapping relation, and when the first function fails, the process numbers, the thread numbers and the function numbers of the failed first function can be respectively or jointly used as the function numbers to be written into a log file according to the mapping relation and stored.
The function number may be the first case, and when running, the memory address corresponding to the process, the thread, and the first function is obtained, the specific function is called to number the process, the thread, and the memory address corresponding to the first function, and the corresponding memory address and the number mapping table including the process, the thread, and the function are generated and stored.
The function numbering may be the second case, where the memory address of a first function under a thread under a process is only numbered, and a mapping table including only the memory address and the number of the first function is obtained.
The first situation is adopted to number the process, the thread and the first function, and the error of the first function under the thread under the process can be directly known according to the number. And the second situation is adopted to number the first function only, after knowing which first function is wrong, the first function which is called by which thread needs to be traced back according to the function calling relation, and which process calls the thread is further traced back, so that the first function which is wrong belongs to which thread and even which process is known, and the process is complicated. However, if the first situation calling function is used to number a process, a thread, and a memory address of a first function, the device may be overloaded to operate, which makes the process complicated.
S300: and the operation finishes the first function and returns response information.
In S300, after the execution of the first function under each process and thread is completed, a corresponding function return value is returned as response information, so after the execution of the first function is completed, a response function return value is returned as response information, when the function return value is 0, the response information is normal, and when the function return value is not 0, the response information is abnormal. In addition, when the normal return function returns a value, it is explained that the response information is abnormal.
As shown in fig. 4, in the control method of the present embodiment 1, if no fault occurs, S500' is performed: and generating a function number of the first function, writing the function number into a log file and storing the log file. In S500', when it is detected that the image forming apparatus 10 is operating normally (has not failed), when the first functions are completed, memory addresses corresponding to the first functions are obtained, a pre-stored number mapping table is accessed, corresponding function numbers are obtained according to the mapping relation, and the function numbers are written into log files and stored in a flash memory. Although it is not necessary to record error codes when the image forming apparatus 10 has no trouble, it is still necessary to generate a log file recording the function numbers of the first functions of normal operation so that when the image forming apparatus 10 has a trouble, a technician can know when the image forming apparatus 10 has a trouble, and how the first functions of the trouble are changed from those of other normal operation, thereby making it possible to facilitate the technician to reproduce the trouble and repair the apparatus.
As shown in fig. 5, in the control method of the present embodiment 1, in S400, it includes:
s401: detecting response information of each first function, and judging the receiving condition of the response information;
S402: if the reception condition is that the reception is not normal or the reception is incorrect, it is determined that the image forming apparatus 10 has a failure in the operation process;
s403: if the reception condition is normal reception or the reception is correct, it is determined that the image forming apparatus 10 is in a normal operation state.
Specifically, in S400 of the control method of the present embodiment 1, if the determination result of S401 is S402, the following step S500 is executed; if the determination result of S401 is S403, the following step S500' is performed. For example, assuming that normal response information, that is, a function return value is 0, and abnormal response information, that is, a function return value is not 0, when the response information acquired by the image forming apparatus 10 during the current operation is not 0, it is determined that the operation of the image forming apparatus 10 has failed; and if the acquired response information is 0, it is determined that the operation of the image forming apparatus 10 is normal. By returning a corresponding function return value at the time of operation for each first function as response information to judge whether or not the operation of the image forming apparatus 10 has failed, the judgment logic is simple, and the calculation process is quick.
As shown in fig. 6, in the control method of the present embodiment 1, in S500, specifically, the method includes:
S501: if the first function fails, acquiring a memory address corresponding to the failed first function;
S502: according to the stored mapping relation between the memory address corresponding to the first function and the function number, obtaining the function number corresponding to the memory address corresponding to the first function with faults, and writing the function number into a log file and storing the log file;
s503: and according to the operation parameters of the first function with the faults, acquiring the number of the code lines with the faults as error codes, writing the error codes into a log file and storing the error codes.
Specifically, in the control method of embodiment 1, the operation parameter may be a system parameter or a function return value for error coding.
The system parameters refer to: after the first function is operated, if errors occur, the corresponding system parameters (line numbers) are displayed in the system parameter display area to indicate which line the operated first function is in error, and the continuous operation of the first function is not prevented. Such as: when the first function 1 is running and the 6 th running error occurs, the system parameters will show: "error: XXXX,6 … … "and the like indicate that the first function 1 is in error in line 6, and of course, for the first function that is operating normally, the system parameters will display information related to normal operation, so that other normal operating states in the first function 1 display normal information, and even if the first function 1 is in error, the subsequent part of the first function or the subsequent first function 2 will still continue to operate after the operation is completed.
The function return value refers to: when the first function runs, a corresponding function return value is returned; for example, if there is an error in line 6 of the first function, then a function return value other than 0 (e.g., -1, -2, etc.) or no function return value is returned at the location corresponding to line 6. Depending on whether the corresponding location (which row) returns a function return value normally or whether the function return value is a normal return value, it may be determined whether the row is running in error.
In contrast, the first function returns a function return value during operation, when a certain row of the first function is in error, the first function does not continue to operate after the error function return value is returned or the function return value is not normally returned; the first function displays system parameters corresponding to the first function when running, and the first function still continues to run subsequent functions even if a certain row of the first function is in error.
For the control method of this embodiment 1, in another possible implementation manner, as will be illustrated below in conjunction with a numbering map and an error coding map, table 1 is a numbering map, which represents a numbering rule, and table 2 is an error coding map, which represents a coding rule of a fault that may occur in the image forming apparatus 10.
TABLE 1
TABLE 2
After the image forming apparatus 10 is turned on, executing S100 a receiving task; executing S200 again, in a different usage scenario, the image forming apparatus 10 does not execute the thread under each process, table 1 lists the case where the image forming apparatus 10 executes the N first functions under each process next after executing the process; then, executing S300, receiving response information returned by the first function, typically a function return value; judging whether the first function fails or not by executing S400 to judge whether the function return value is 0 or can be normally received or not; if the function return value is 0, indicating that the image forming apparatus 10 is operating normally without malfunction, S500' is performed; if the function return value is not 0 or the function return value is not received at all, S500 is performed. In the execution 500, since the first functions perform functions such as printing, copying, scanning, and faxing, the functions corresponding to the first functions are numbered with numerals to generate function numbers 1,2,3, and 4, for example, the printing number is '1', the copying number is '2', the scanning number is '3', and the faxing number is '4'; numbering each corresponding process to generate process numbers 1 and 2 … … N, for example, the first process is numbered as '1', the second process is numbered as '2', … …, and the Nth process is numbered as 'N'; the function numbers consisting of function numbers and process numbers are then 11, 12 … … n,21, 22 … … n,31, 32 … … 3n,41, 42 … … n. For example, if the image forming apparatus 10 fails when executing the second process to print, the image forming apparatus cannot receive the function return value corresponding to the failed first function or receives the non-0 return value, i.e. the process number of the second process corresponding to the print is called, written into the log file and stored in the storage module; that is, as shown in table 1, '11' represents a first process of printing, '22' represents a second process of copying, '43' represents a third process of facsimile, and '3n' represents an nth process of scanning.
In addition, if the image forming apparatus 10 executes a plurality of threads under each process and executes the first function, each thread is further numbered, and a thread number 1,2 … … n is generated, a number '1' is the first thread, a number '2' is the second thread, … …, a number 'n' is the nth thread, and the final function number includes the process number, the thread number and the number, when the image forming apparatus 10 fails when executing the third thread of the second process of printing, a corresponding function return value cannot be received or a non-0 return value is received, that is, a corresponding number '123' of the third thread under the second process of printing is called, written into the log file, and stored in the storage module.
In table 2, errors that may occur during the operation of the image forming apparatus 10 are encoded, such as "out of paper" as "1", "jam" as "2", "dead halt caused by pulling out of the wire during WSD scanning" as "5", etc., which are one-to-one correspondence with the number of encoding lines in the first function, i.e., "out of paper" as "1" corresponds to the 1 st line encoding in the first function, "jam" as "2" corresponds to the 2 nd line encoding in the first function, and so on. Note that common failures of all the image forming apparatuses 10 are not illustrated here, and only an illustration is given. It should be noted that, the above function numbers and error codes may be in the form of a combination of numbers, characters, wildcards, or any combination of the three. According to the control method, fault detection is carried out on various first functions in operation, the obtained detection result comprises the first functions in normal operation, the first functions with faults and task information corresponding to the first functions, when the detection result is analyzed to obtain faults, the memory address corresponding to the first functions with faults is obtained, a pre-stored number mapping table is accessed, corresponding function numbers are obtained according to the mapping relation, the function numbers are written into log files, and the function numbers are stored in a flash memory. And error coding the first function with the faults according to the fault type with the faults. The error code not only has task information corresponding to the first function with the fault, but also comprises the fault type, and the fault can be common fault or unusual fault. By writing the function numbers and error codes of the first functions into the log file and storing the same when the faults occur, the faults are reproduced conveniently when technicians repair the faults, and therefore the maintenance efficiency and the maintenance effect of the image forming device 10 are improved.
When the image forming apparatus 10 is currently executing printing under the second process, a failure occurs in which it is difficult to reproduce—wsd (WSD is a communication protocol that is commonly used for scanners and printers. Is a one-way communication protocol) is unplugged during scanning to cause a dead halt, then the function return value of the first function corresponding to printing in the second process received in the control method of this embodiment 1 is not 0, or only the function return value corresponding to a certain first function in the first process is 0 and the function return value of the first function corresponding to printing in the second process is not received; at this time, the control method generates corresponding function numbers (process numbers and function numbers) and fault codes, namely corresponding function numbers '12' and fault codes '5', according to the pre-stored number mapping table (table 1 above) and error code mapping table (table 2 above), and knows that the image forming apparatus 10 has a fault which is hard to reproduce when printing is performed by the second process according to the function numbers '12' and the fault codes '5', namely that the network cable is unplugged in the WSD scanning process to cause a crash, which is obviously beneficial for technicians to analyze the fault source, reproduce the fault and maintain. The new string '125' is then written to the log file, consisting of the function number '12' and the fault code '5', and saved to the storage module.
In the control method of this embodiment 1, the error code map may be previously set and stored in the image forming apparatus 10, or may be each failure written in successive maintenance according to the failure encountered in the history during use. When error codes are generated, judging whether faults exist in a pre-stored fault corresponding relation or not; if the error code exists, calling the error code corresponding to the functional module with the fault and writing the error code into a log file; if the error codes do not exist, the error codes are added into the corresponding relation of the faults and written into the log file. The fault correspondence is an example in which faults that may occur during the operation of the image forming apparatus 10 are encoded, and each fault is one-to-one corresponding to the encoding to form a fault correspondence, as shown in table 2 above.
After all the above steps of S500 are performed, when a technician needs to reproduce the trouble while repairing the failed image forming apparatus 10, the contents of the log file in the image forming apparatus 10 need to be acquired, so that the control method of the present embodiment 1 further includes, on the basis of the flow of the control method shown in fig. 2 to 4, as shown in fig. 7:
s600: the log file is acquired from the image forming apparatus 10.
Execution of S600 enables acquisition of a log file after a failure occurs during operation of image forming apparatus 10, and solves the problem that a technician is difficult to reproduce the failure when the probability of occurrence is extremely low and the failure cannot be reproduced, wherein the "failure which is extremely low and cannot be reproduced" is, for example, a dead halt caused by pulling out a network cable during WSD scanning.
As shown in fig. 8, in the control method of the present embodiment 1, S600 specifically includes:
s601: connecting the image forming apparatus 10 to the processing apparatus 20, causing the image forming apparatus 10 to enter a start-up mode;
s602: issuing an instruction to the image forming apparatus 10 by the processing apparatus 20;
S603: the image forming apparatus 10 parses the received instruction;
S604: when the resolution instruction of the image forming apparatus 10 is successful, the image forming apparatus 10 transmits the log file to the processing apparatus 20;
s605: when the image forming apparatus 10 fails to parse the instruction, the image forming apparatus 10 generates error information of the parsing failure and transmits to the processing apparatus 20.
Specifically, when S601 is performed, the technician connects the image forming apparatus 10 and the processing apparatus 20 (typically, a personal computer, PC) through the communication module 30 (typically, a universal serial bus, USB), and causes the image forming apparatus 10 to enter a boot mode (boot mode). Note here that when the type of failure in which the image forming apparatus 10 fails is "the probability of occurrence is low, and reproduction is not possible", it is necessary to copy the log file in which the failure occurs to the PC of the technician through the USB issue instruction in the boot mode. When the type of failure in which the image forming apparatus 10 fails is a common failure, it is not necessary to enter the boot mode to acquire the log file of the failure. Specifically, the technician operates to enter the start-up mode by disassembling the image forming apparatus 10, shorting some two pins on the hardware circuit board therein. After execution of S602, the operation PC issues a copy instruction instructing to copy the log file stored in the storage module (typically, flash memory) in the image forming apparatus 10 to the PC, after connection through the USB. S603 is executed, and the image forming apparatus 10 receives the copy command of the PC and parses the command. After the image forming apparatus 10 successfully parses the instruction, S604 is performed, and the image forming apparatus 10 transfers the log file stored in the storage module to the PC. When the image forming apparatus 10 fails to parse the instruction, S605 is executed, and the corresponding error information is transmitted to the PC.
In the control method of this embodiment 1, when the log file is required to be stored at the time of executing all the steps described above, the log file is stored in the storage module.
In summary, the control method of the image forming apparatus 10 of the present embodiment 1 is to write the function number and the error code of the failed first function into the log file and save it to the storage module when the failure of the image forming apparatus 10 is detected; finally, the image forming apparatus 10 is controlled to enter a boot mode (boot mode), and the issued instruction copy log file is received in a USB connection manner through the communication module 30 (USB). The final technician can acquire a log file through the USB connection, and repair the image forming apparatus 10 by reproducing the failure through the log file. The function number comprises a process number, a thread number and a function number, the rule for carrying out function number on the function executed by the first running function is that a character or a number is used for mapping a corresponding certain function, and the rule for carrying out process number of the process executed by the first running function or thread number of the thread is that a character or a number is used for mapping a certain process or thread. The control method of the image forming apparatus 10 of the present embodiment 1 may also write the error coding of the failure to the log file only when a special failure is detected.
Example 2
Embodiment 2 of the present application discloses a control device of an image forming apparatus 10 for executing the control method of the image forming apparatus 10 disclosed in embodiment 1 of the present application to realize that when an unusual failure occurs in the image forming apparatus 10, a technician can analyze the cause of the failure of the image forming apparatus 10 by repeating the failure, thereby facilitating the maintenance of the image forming apparatus 10 by the technician.
As shown in fig. 9, the control device of the present embodiment 2 includes a detection module 40 and a control module 50 that are communicatively connected to each other. Wherein the detection module 40 has a function of detecting the operation of the image forming apparatus 10 by an internal sensor, mainly for detecting whether or not the image forming apparatus 10 has failed during the operation; the control module 50 has a function of encoding by an internal encoder for each occurrence of the image forming apparatus 10 during operation, for generating function numbers of each first function in operation and generating error codes if a failure occurs, writing the function numbers and the error codes into a log file, and storing them.
Specifically, in the control device of this embodiment 2, the first function is included in all the running functions, which are the functional functions that will be used during the operation of the image forming apparatus 10, including the first function that performs important tasks and other functional functions that perform non-important tasks, and preferably, the first function may be a part of the important functions, and the detection module 40 of the control device of this embodiment 2 performs fault detection only for the first function. When the image forming apparatus 10 runs the first function, the memory address corresponding to the first function is obtained, the first function is numbered by calling a specific function (such as log function), a number mapping table between the memory address corresponding to the first function and the function number is generated, and the number mapping table is stored.
As shown in fig. 10, the control device of the present embodiment 2 further includes a receiving module 60, an operating module 70, and a writing module 80, which are communicatively connected to the detecting module 40 and the control module 50; the receiving module 60 is used for receiving tasks; the execution module 70 is configured to execute one or more processes according to the task, then execute one or more threads under each process, and then execute one or more function functions under each thread; the writing module 80 is configured to obtain a memory address corresponding to the first function when the running module 70 runs the first function, call a specific function to number the memory address corresponding to the first function, generate a mapping table between the memory address corresponding to the first function and the number, and store the mapping table.
In this embodiment 2, the image forming apparatus 10 has a function capable of executing various tasks received by the receiving module 60, for example, the image forming apparatus 10 has a function capable of executing printing, copying, scanning facsimile, and representing network or power connection. The run module 70 initiates one or more processes, each process including one or more threads, each having one or more functional functions under it, which form functional functions capable of performing various types of tasks, such as 9 processes for printing, 9 threads for copying, 10 processes for copying, 10 threads for execution, etc. The independent setting of the function functions can facilitate fault detection, can be beneficial to locking fault sources when faults are found, and is convenient for technicians to reproduce faults and maintain. The function has at least one first function, the operation module 70 operates the first function, the writing module 80 obtains the memory address corresponding to the first function, calls a specific function (such as log function) to number the memory address corresponding to the first function, and generates and stores a mapping table between the memory address corresponding to the first function and the number. The writing module 80 generates a process number according to each process, generates a thread number according to each thread under each process, generates a function number according to a first function corresponding to each function under each thread, and respectively or arbitrarily combines the process number and the function number into a mapping relation, when the first function fails, the writing module 80 can write the process number and the thread number of the failed first function and the function number together as a function number into a log file according to the mapping relation and store the function number.
The function number may be the first case, and when running, the memory address corresponding to the process, the thread, and the first function is obtained, the specific function is called to number the process, the thread, and the memory address corresponding to the first function, and the corresponding memory address and the number mapping table including the process, the thread, and the function are generated and stored.
The function numbering may be the second case, where the memory address of a first function under a thread under a process is only numbered, and a mapping table including only the memory address and the number of the first function is obtained.
The writing module 80 numbers both the process thread and the first function in the first case, and can directly know which first function is wrong under which thread under which process according to the number. The writing module 80 uses the second situation to number only the first function, and after knowing which first function is wrong, it is also necessary to trace back which thread calls the first function according to the function call relationship, and further trace back which process calls the process, so as to know which thread or even which process the wrong first function belongs to, which process is complicated. However, if the writing module 80 uses the first situation call function to number a process, a thread, and a memory address of a first function, the device may be overloaded to run, which is complicated.
After the execution of the first function under each process and thread is completed, a corresponding function return value is returned as response information, so that after the execution of the first function is completed, the execution module 70 also returns a response function return value as response information, when the function return value is 0, the response information is normal, and when the function return value is not 0, the response information is abnormal. In addition, when the normal return function returns a value, it is explained that the response information is abnormal.
In the control device of embodiment 2, when the detection module 40 detects that no failure has occurred, the writing module 80 generates a function number of the first function, writes the function number into the log file, and stores the function number. When the detection module 40 detects that the image forming apparatus 10 is working normally (no fault occurs), when the operation module 70 completes the operation of the first functions, the writing module 80 obtains the memory addresses corresponding to the first functions, accesses the pre-stored number mapping table, obtains the corresponding function numbers according to the mapping relation, writes the function numbers into the log file, and stores the function numbers in the flash memory. Although the image forming apparatus 10 does not need to record error codes when it is not faulty, it is still necessary to write the log file of the function number of the first function of the normal operation by the module 80 so that when the image forming apparatus 10 is faulty, a technician can know when the image forming apparatus 10 is faulty, and how the faulty first function is changed from the other first functions of the normal operation, so that the technician can be facilitated to reproduce the fault and repair the apparatus.
In the control device of embodiment 2, the detection module 40 specifically functions to: detecting response information of each first function, and judging the receiving condition of the response information; if the reception condition is that the reception is not normal or the reception is incorrect, it is determined that the image forming apparatus 10 has a failure in the operation process; if the reception condition is normal reception or the reception is correct, it is determined that the image forming apparatus 10 is in a normal operation state.
Specifically, in the control device of embodiment 2, when the detection module 40 does not normally receive the response information or receives the incorrect response information, it may be determined that the current operation process of the image forming apparatus 10 has a fault, so that the writing module 80 performs function numbering on the functional module and the next process thereof and performs error coding on the fault; and if the detection module 40 receives the response information normally or receives the correct response information, it may determine that the image forming apparatus 10 is currently in a normal working state, so that the writing module 80 performs function numbering on the functional module that operates normally and the next process thereof. For example, assuming that normal response information, i.e., a function return value, is 0 and abnormal response information, i.e., a function return value, is not 0, when the response information acquired by the detection module 40 in the current operation of the image forming apparatus 10 is not 0, it is determined that the operation of the image forming apparatus 10 has failed; and if the response information acquired by the detection module 40 is 0, it is determined that the operation of the image forming apparatus 10 is normal. The detection module 40 returns a corresponding function return value as response information for each first function at the time of operation to determine whether the operation of the image forming apparatus 10 is faulty, and the determination logic is simple and the calculation process is quick.
In the control device of this embodiment 2, the writing module 80 is specifically configured to: if the first function fails, acquiring a memory address corresponding to the failed first function; according to the stored mapping relation between the memory address corresponding to the first function and the function number, obtaining the function number corresponding to the memory address corresponding to the first function with faults, and writing the function number into a log file and storing the log file; and according to the operation parameters of the first function with the faults, acquiring the number of the code lines with the faults as error codes, writing the error codes into a log file and storing the error codes. Wherein, there is a mapping relationship between the memory address and the function number, and the mapping relationship is shown in table 1 above.
Specifically, in the control device of embodiment 2, the operation parameter may be a system parameter or a function return value for error coding.
The system parameters refer to: after the first function is operated, if errors occur, the corresponding system parameters (line numbers) are displayed in the system parameter display area to indicate which line the operated first function is in error, and the continuous operation of the first function is not prevented. Such as: when the first function 1 is running and the 6 th running error occurs, the system parameters will show: "error: XXXX,6 … … "and the like indicate that the first function 1 is in error in line 6, and of course, for the first function that is operating normally, the system parameters will display information related to normal operation, so that other normal operating states in the first function 1 display normal information, and even if the first function 1 is in error, the subsequent part of the first function or the subsequent first function 2 will still continue to operate after the operation is completed.
The function return value refers to: when the first function runs, a corresponding function return value is returned; for example, if there is an error in line 6 of the first function, then a function return value other than 0 (e.g., -1, -2, etc.) or no function return value is returned at the location corresponding to line 6. Depending on whether the corresponding location (which row) returns a function return value normally or whether the function return value is a normal return value, it may be determined whether the row is running in error.
In contrast, the first function returns a function return value during operation, when a certain row of the first function is in error, the first function does not continue to operate after the error function return value is returned or the function return value is not normally returned; the first function displays system parameters corresponding to the first function when running, and the first function still continues to run subsequent functions even if a certain row of the first function is in error.
In the control device of this embodiment 2, the error code map may be previously set and stored in the image forming apparatus 10, or may be each failure written in successive repairs according to the failure encountered in the history during use. The control module 50 is therefore also specifically configured to: when the writing module 80 generates error codes, judging whether faults exist in a pre-stored fault corresponding relation or not; if the error code exists, calling the error code corresponding to the functional module with the fault and writing the error code into a log file; if the error codes do not exist, the error codes are added into the corresponding relation of the faults and written into the log file. Wherein, the failure correspondence is referred to table 2 in the present embodiment 1.
As shown in fig. 11, the control apparatus of the present embodiment 2 further includes a communication module 30 communicatively connected to the control module 50, the communication module 30 being configured to acquire a log file from the image forming device 10. The communication module 30 may be a USB interface I/F, mainly for connecting the image forming apparatus 10 and the processing apparatus 20, so that the processing apparatus 20 may issue a command copy to acquire a stored log file containing important function numbers and error codes in the case where the image forming apparatus 10 enters a boot mode (boot mode).
A technician can acquire a log file after a fault occurs in the operation process of the image forming apparatus 10 through the communication module 30, so as to solve the problem that the technician is difficult to reproduce the fault when the probability of occurrence is extremely low and the fault cannot be reproduced, wherein the "fault which occurs extremely low and cannot be reproduced" is, for example, a dead halt caused by pulling out a network cable in the WSD scanning process.
In the control device of embodiment 2, the communication module 30 is specifically configured to: connecting the image forming apparatus 10 to the processing apparatus 20, causing the image forming apparatus 10 to enter a start-up mode; issuing an instruction to the image forming apparatus 10 by the processing apparatus 20; the image forming apparatus 10 parses the received instruction; after the image forming apparatus 10 succeeds in parsing the instruction, the image forming apparatus 10 transmits the log file to the processing apparatus 20; when the image forming apparatus 10 fails to parse the instruction, the image forming apparatus 10 generates error information of the parsing failure and transmits to the processing apparatus 20.
Specifically, the technician connects the image forming apparatus 10 with the processing apparatus 20 (typically, a personal computer, PC) through the communication module 30 (typically, a universal serial bus, USB), and operates to cause the image forming apparatus 10 to enter a boot mode (boot mode). Note here that when the type of failure in which the image forming apparatus 10 fails is "the probability of occurrence is low, and reproduction is not possible", it is necessary to copy the log file in which the failure occurs to the PC of the technician through the USB issue instruction in the boot mode. When the type of failure in which the image forming apparatus 10 fails is a common failure, it is not necessary to enter the boot mode to acquire the log file of the failure. Specifically, the technician operates to enter the start-up mode by disassembling the image forming apparatus 10, shorting some two pins on the hardware circuit board therein. After connection through the communication module 30 (USB), the operation processing apparatus 20 (PC) issues a copy instruction instructing to copy the log file stored in the image forming apparatus 10 to the processing apparatus 20. The image forming apparatus 10 receives a copy command of the processing apparatus 20 through the communication module 30, and parses the command. After the image forming apparatus 10 succeeds in parsing the instruction, the image forming apparatus 10 transmits the stored log file to the processing apparatus 20 through the communication module 30. When the image forming apparatus 10 fails to parse the instruction, the corresponding error information is transmitted to the processing apparatus 20 through the communication module 30.
As shown in fig. 12, the control device of the present embodiment 2 further includes a storage module 90, and the storage module 90 is communicatively connected to the communication module 30 and the authoring module 80, respectively, and the log file is stored in the storage module 90. The storage module 90 is mainly used for saving function numbers of important functions and error codes of faults, and here the storage module 90 may be a Flash memory (Flash memory) so that data loss of log files can be avoided even when the image forming apparatus 10 is abnormally powered off.
In summary, the control device of the image forming apparatus 10 of the present embodiment 2 writes the function number and the error code of the failed first function into the log file by the control module 50 and saves it to the storage module 90 when the detection module 40 detects that the image forming apparatus 10 has failed; finally, the communication module 30 (USB) controls the image forming apparatus 10 to enter a boot mode (boot mode) by connecting the image forming apparatus 10 to the processing apparatus 20, and receives the issued command copy log file in a USB connection manner through the communication module 30. The final technician can acquire a log file through the USB connection, and repair the image forming apparatus 10 by reproducing the failure through the log file. The function number includes a process number, a thread number, and a function number, and the rule that the writing module 80 performs the function number on the function executed by the first function is to map a corresponding certain function using a character or a number, and the rule that the process number of the process executed by the first function or the thread number of the thread is to map a certain process or thread using a character or a number. The control device of the image forming apparatus 10 of this embodiment 2 may also invoke the writing module 80 to write the error code of the error into the log file only when the detection module 40 detects a special error.
Example 3
Embodiment 3 of the present application provides a computer-readable storage medium including a program or instructions which, when executed on a computer, perform the control method of the image forming apparatus as embodiment 1 of the present application.
Example 4
As shown in fig. 13, embodiment 4 of the present application provides an electronic device 700, including a memory 720 and a processor 710, where the memory 720 is used to store information including program instructions, and the processor 710 is used to control execution of the program instructions, and when the program instructions are loaded and executed by the processor, the steps of the control method of the image forming device are implemented. In order to avoid repetition, details are not repeated here. Or the computer program when executed by the processor 710, performs the functions of the embodiments as applied to each model/unit in the image forming control apparatus, and is not described herein in detail for avoiding repetition.
It will be appreciated by those skilled in the art that fig. 13 is merely an example of an electronic device 700 and is not intended to limit the computer device 700, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device 700 may further include an input-output device, a network access device, a bus, etc.
The Processor 710 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), field programmable gate arrays (Field Programmable GATE ARRAY, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 720 may be an internal storage unit of electronic device 700, such as a hard disk or memory of electronic device 700.
The memory 720 may also be an external storage device of the electronic device 700, such as a plug-in hard disk provided on the electronic device 700, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like. But may also be memory on a server where the stored computer program 730 may be transmitted over a network to other memory modules within the electronic device so that the processor 710 can load and execute the computer program 730. Further, the memory 720 may also include both internal and external storage units of the electronic device 700. The memory 720 is used to store computer programs and other programs and data needed by the electronic device 700. The memory 720 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a high-density digital video disc (Digital Video Disc, DVD)), or a semiconductor medium (e.g., a Solid state disk (Solid STATE DISK, SSD)), etc.
The control method and the device of the image forming equipment disclosed by the embodiment of the application can solve some loopholes (bug) which are difficult to reproduce; meanwhile, some important functions are numbered, error codes are defined, and the error function numbers and the error codes are written into a log file for recording faults and stored in a storage module, so that the code safety is improved, the size of the log file is reduced, and leakage of user information is avoided because only the function numbers and the error codes are recorded.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the application.

Claims (12)

1. A control method of an image forming apparatus, characterized by comprising:
detecting whether the image forming apparatus has a failure in the operation process;
if the fault occurs, generating function numbers of all the first functions in operation, generating error codes, writing the function numbers and the error codes into a log file and storing the log file;
if the fault occurs, generating function numbers of the running first functions, generating error codes, writing the function numbers and the error codes into a log file and storing the log file, and further comprising:
acquiring the log file from the image forming apparatus;
in acquiring the log file from the image forming apparatus, it includes:
Connecting the image forming apparatus to a processing apparatus, causing the image forming apparatus to enter a start-up mode;
issuing an instruction to the image forming apparatus by the processing apparatus;
The image forming device analyzes the received instruction;
When the image forming device successfully analyzes the instruction, the image forming device transmits the log file to the processing device;
When the image forming apparatus fails to parse the instruction, the image forming apparatus generates error information of the parsing failure and transmits the error information to the processing apparatus.
2. The control method according to claim 1, wherein when a failure occurs, generating a function number of a first function in operation and generating an error code, writing the function number and the error code into a log file and storing, includes:
if the first function fails, acquiring a memory address corresponding to the failed first function;
according to the stored mapping relation between the memory address corresponding to the first function and the function number, obtaining the function number corresponding to the memory address corresponding to the first function with faults, writing the function number into the log file and storing the log file;
And according to the operation parameters of the first function with the faults, acquiring the number of the code lines with the faults as error codes, writing the error codes into a log file and storing the error codes.
3. The control method according to claim 2, wherein the image forming apparatus performs one or more processes during operation; executing one or more threads while executing each of the processes; executing one or more functional functions while executing each of the threads; the function has at least one first function;
the function number includes at least one of a process number, a thread number, and a function number.
4. The control method according to claim 1, characterized in that in detecting whether or not the image forming apparatus has failed during operation, comprising:
detecting response information of each first function, and judging the receiving condition of the response information;
If the receiving condition is abnormal receiving or incorrect receiving, judging that the image forming equipment has faults in the running process;
and if the receiving condition is normal receiving or the receiving is correct, judging that the image forming equipment is in a normal working state.
5. The control method according to claim 1, characterized in that before detecting whether or not the image forming apparatus has failed during operation, the control method further comprises:
Receiving a task;
Operating the image forming device, executing one or more processes according to the tasks, then executing one or more threads under each process, and then operating one or more functional functions under each thread;
The function comprises at least one first function, the first function is operated, a memory address corresponding to the first function is obtained, a specific function is called to number the memory address corresponding to the first function, and a mapping table between the memory address corresponding to the first function and the number is generated and stored;
And the first function is operated and response information is returned.
6. A control device of an image forming apparatus, characterized by comprising a detection module and a control module which are communicatively connected to each other;
The detection module is used for detecting whether the image forming equipment has faults in the operation process;
The control module is used for generating function numbers of all the first functions in operation and generating error codes if faults occur, and writing the function numbers and the error codes into a log file and storing the log file;
The control device also comprises a communication module which is in communication connection with the control module and is used for acquiring the log file from the image forming equipment;
the communication module is specifically used for connecting the image forming device to a processing device to enable the image forming device to enter a starting mode;
issuing an instruction to the image forming apparatus by the processing apparatus;
The image forming device analyzes the received instruction;
When the image forming device successfully analyzes the instruction, the image forming device transmits the log file to the processing device;
When the image forming apparatus fails to parse the instruction, the image forming apparatus generates error information of the parsing failure and transmits the error information to the processing apparatus.
7. The control device of claim 6, wherein the control module is specifically configured to:
if the first function fails, acquiring a memory address corresponding to the failed first function;
According to the stored mapping relation between the memory address corresponding to the first function and the function number, obtaining the function number corresponding to the memory address corresponding to the first function with faults, and writing the function number into the log file and storing the log file;
and acquiring the number of the failed coding lines as error codes according to the operation parameters of the failed first function, and writing the error codes into a log file and storing the error codes.
8. The control apparatus according to claim 7, wherein the image forming device performs one or more processes during operation; executing one or more threads while executing each of the processes; executing one or more functional functions while executing each of the threads; the function has at least one first function;
the function number includes at least one of a process number, a thread number, and a function number.
9. The control device of claim 6, wherein the detection module is specifically configured to:
detecting response information of each first function, and judging the receiving condition of the response information;
If the receiving condition is abnormal receiving or incorrect receiving, judging that the image forming equipment has faults in the running process;
and if the receiving condition is normal receiving or the receiving is correct, judging that the image forming equipment is in a normal working state.
10. The control device of claim 6, further comprising a receiving module, an operating module, and a writing module communicatively coupled to the detecting module and the control module;
The receiving module is used for receiving the task;
The running module is used for running the image forming equipment, executing one or more processes according to the tasks, then executing one or more threads under each process, and then running one or more functional functions under each thread;
wherein, the function has at least one first function, and the first function returns response information after execution is completed;
the writing module is used for acquiring the memory address corresponding to the first function when the running module runs the first function, calling a specific function to number the memory address corresponding to the first function, generating a mapping table between the memory address corresponding to the first function and the number, and storing the mapping table.
11. A computer-readable storage medium including a stored computer program, characterized in that the apparatus in which the storage medium is controlled to execute the control method of the image forming apparatus according to any one of claims 1 to 5 when the program is run.
12. An electronic device comprising a memory for storing information including program instructions and a processor for controlling execution of the program instructions, characterized by: the program instructions, when loaded and executed by a processor, implement the steps of the control method of an image forming apparatus according to any one of claims 1 to 5.
CN202111666377.7A 2021-12-31 2021-12-31 Control method and device of image forming device Active CN114290828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111666377.7A CN114290828B (en) 2021-12-31 2021-12-31 Control method and device of image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111666377.7A CN114290828B (en) 2021-12-31 2021-12-31 Control method and device of image forming device

Publications (2)

Publication Number Publication Date
CN114290828A CN114290828A (en) 2022-04-08
CN114290828B true CN114290828B (en) 2024-05-03

Family

ID=80973042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111666377.7A Active CN114290828B (en) 2021-12-31 2021-12-31 Control method and device of image forming device

Country Status (1)

Country Link
CN (1) CN114290828B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098386A (en) * 2006-06-29 2008-01-02 佳能株式会社 Image output apparatus, image output apparatus control method, program, electronic document management system
JP2008027171A (en) * 2006-07-20 2008-02-07 Kyocera Mita Corp Image forming apparatus
CN101500054A (en) * 2008-01-31 2009-08-05 株式会社理光 Image processing apparatus and image processing method
JP2012118229A (en) * 2010-11-30 2012-06-21 Kyocera Document Solutions Inc Image forming apparatus
JP2012141808A (en) * 2010-12-29 2012-07-26 Seiko Epson Corp Control device, control method thereof, and program
US9552249B1 (en) * 2014-10-20 2017-01-24 Veritas Technologies Systems and methods for troubleshooting errors within computing tasks using models of log files
CN107666551A (en) * 2016-07-28 2018-02-06 京瓷办公信息系统株式会社 Image processing system
CN110121012A (en) * 2018-02-07 2019-08-13 夏普株式会社 Image forming apparatus, storage medium and control method
CN110620851A (en) * 2018-06-19 2019-12-27 柯尼卡美能达株式会社 Image processing apparatus, self-diagnosis method, and computer-readable recording medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4125274B2 (en) * 2004-08-26 2008-07-30 キヤノン株式会社 Image input / output device, information processing method, computer-readable storage medium storing program, and program
JP7059590B2 (en) * 2017-11-28 2022-04-26 セイコーエプソン株式会社 Printing device and control method of printing device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098386A (en) * 2006-06-29 2008-01-02 佳能株式会社 Image output apparatus, image output apparatus control method, program, electronic document management system
JP2008027171A (en) * 2006-07-20 2008-02-07 Kyocera Mita Corp Image forming apparatus
CN101500054A (en) * 2008-01-31 2009-08-05 株式会社理光 Image processing apparatus and image processing method
JP2012118229A (en) * 2010-11-30 2012-06-21 Kyocera Document Solutions Inc Image forming apparatus
JP2012141808A (en) * 2010-12-29 2012-07-26 Seiko Epson Corp Control device, control method thereof, and program
US9552249B1 (en) * 2014-10-20 2017-01-24 Veritas Technologies Systems and methods for troubleshooting errors within computing tasks using models of log files
CN107666551A (en) * 2016-07-28 2018-02-06 京瓷办公信息系统株式会社 Image processing system
CN110121012A (en) * 2018-02-07 2019-08-13 夏普株式会社 Image forming apparatus, storage medium and control method
CN110620851A (en) * 2018-06-19 2019-12-27 柯尼卡美能达株式会社 Image processing apparatus, self-diagnosis method, and computer-readable recording medium

Also Published As

Publication number Publication date
CN114290828A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
WO2021169260A1 (en) System board card power supply test method, apparatus and device, and storage medium
US7536699B2 (en) Simplified device drivers for hardware devices of a computer system
US9164875B2 (en) Error detection method, information processing circuit, and error detection computer program product
JP7346633B2 (en) Information processing device, control method for information processing device, and program
CN107256134B (en) Method and device for virtualizing POS terminal as computer printer and POS terminal
JP2012038162A (en) Automatic test tool program and automatic test method
US8381035B2 (en) Information processing device for creating and analyzing log files
CN101799792A (en) Messaging device, control method and computer program
CN114290828B (en) Control method and device of image forming device
CN114253841A (en) Test script generation method and device and storage medium
CN103399717B (en) Print controlling apparatus and data managing method
JP2012147140A (en) Image processing apparatus, image formation apparatus, image processing method, image processing program and storage medium
JP4683113B2 (en) Image forming apparatus
JPH0546435A (en) Method and device for automatic test
CN100382002C (en) Printing method and apparatus for rectifying error and computer readable recording medium
US8891122B2 (en) Electronic apparatus, connector-connection-state detection method, and computer program product
US7646993B2 (en) Method and control device for displaying diagnosis data of a printer or copier
JP4866377B2 (en) Image processing apparatus and image processing system
US6369903B1 (en) Technique for debugging scanning and printing system
US20230092303A1 (en) Information processing apparatus, information processing method and non-transitory recording medium
CN115328712B (en) Detection method of KVM switch and related equipment
CN115168097A (en) Method, device, equipment and medium for automatically tracing controlled condition of source port in abnormal condition
US20100146345A1 (en) Information processing apparatus, recording medium including program for information processing apparatus, and method of controlling information processing apparatus
KR100597427B1 (en) Method of transmitting a massage for a service request in a network printer
CN115437868A (en) BIOS EDPC function testing method, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant