Information processing method, computer system and computer readable storage medium
By receiving image formation job data and device status in a computer system, determining keyword information and recording it to a log file, the problem of incomplete log files in the prior art is solved, and comprehensive recording and control of image formation jobs is realized.
Patent Information
- Application Number
- CN202411480064.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-04-10
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-22
AI Technical Summary
In the prior art, when the image forming device records the running status and logs, the log file content is incomplete, which makes it difficult for the computer system to effectively control the image forming operation.
By implementing the information processing method in the computer system, the image forming job data is received, and the keyword information is determined based on the data and the status of the image forming device, and the keyword information is recorded in the log file of the computer system.
It realizes complete recording of image formation job data and device status, improves the accuracy and comprehensiveness of log information, and facilitates the computer system to effectively control image formation jobs.
Smart Images

Figure CN119473766A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing, and in particular to an information processing method. Background Art
[0002] A type of existing electronic device can record its own operating status and form a log file. The log file can be used by maintenance personnel to find out the cause of the failure when the electronic device fails, or by users or device administrators to determine the usage of the electronic device.
[0003] Electronic devices can be connected to a computer system as peripheral devices of the computer system. For example, after a peripheral device such as an image forming device is connected to a computer, it can be controlled by the computer to complete the image forming job specified by the computer. Since the peripheral device and the computer use different systems (or instruction sets), in order for the peripheral device to understand the instructions and data issued by the computer, it is usually necessary to install a driver in the computer system to convert the data and instructions issued by the computer system into data and instructions that can be directly processed by the peripheral device. That is, the process of completing the image forming job involves both the driver and the image forming device.
[0004] However, if the log recording method of the prior art is used, the image forming device may only record its own operating parameters in the log inside the image forming device, resulting in incomplete content of the log file. The above factors will be detrimental to the computer system's control over the image forming job. Summary of the invention
[0005] In order to solve the defects of the prior art, the embodiments of the present invention provide an information processing method, a computer system and a computer-readable storage medium.
[0006] According to a first aspect of the present invention, there is provided an information processing method, which is executed on a computer system, wherein the computer system is communicatively connected to an image forming device; the method comprises: receiving image forming job data; determining at least one keyword information based on the image forming job data and / or the state of the image forming device; and recording the at least one keyword information into a log file of the computer system.
[0007] Optionally, the computer system includes an image formation processing module and a monitoring module; recording the at least one keyword information into the log file of the computer system includes: the image formation job processing module sends the at least one keyword information to a data bus in the computer system; the monitoring module reads the at least one keyword information from the data bus and records the at least one keyword information into the log file of the computer system.
[0008] Optionally, recording the at least one keyword information into a log file of the computer system includes: recording the at least one keyword information into the log file of the computer system in a structured form.
[0009] Optionally, the monitoring module records the at least one keyword information into the log file of the computer system, including: creating a log file and adding the at least one keyword information to the log file; or accessing the created log file and adding the at least one keyword information to the log file; creating a database file, the database file being associated with the log file; wherein the database file is capable of executing a query on the keyword information in the log file in response to a single API instruction.
[0010] Optionally, at least one keyword information is determined based on the image forming job data and / or the status of the image forming device, including: obtaining job attributes from a file associated with the image forming job data through program instructions, and determining first category keyword information based on the job attributes; or obtaining job attributes from a file associated with the image forming job data through program instructions; sending a status query command to the image forming device; and accepting status information returned by the image forming device in response to the status query command; sending a status query command to the image forming device, and accepting status information returned by the image forming device in response to the status query command; determining second category keyword information based on the status information; or obtaining job attributes from a file associated with the image forming job data through program instructions; sending a status query command to the image forming device; and accepting status information returned by the image forming device in response to the status query command; and determining third category keyword information based on the job attributes and the status information.
[0011] Optionally, recording the at least one keyword information into a log file of the computer system includes: when information used to characterize the end of a job is detected, recording the determined at least one keyword information into the log file of the computer system.
[0012] Optionally, the image forming job data is generated by a universal Unix printing system CUPS, and the image forming job processing module is a filter module.
[0013] Optionally, the monitoring module can execute an operation on the log file in response to a log operation instruction; the log operation instruction is associated with a user authority of the monitoring module.
[0014] According to a second aspect of the present invention, there is provided an information processing method, which is executed in a monitoring module in the computer system; the computer system further comprises an image forming job processing module, and the computer system is communicatively connected with an image forming device; the method comprises: reading at least one keyword information on a data bus of the computer system, and recording the at least one keyword information in a log file of the computer system; the at least one keyword information is sent to the data bus in advance by the image forming processing module; creating a database file, the database file being associated with the log file; wherein the database file is capable of executing a query on the keyword information in the log file in response to a single API instruction.
[0015] Optionally, recording the at least one keyword information into a log file of the computer system includes: recording the at least one keyword information into the log file of the computer system in a structured form.
[0016] According to a third aspect of the present invention, there is provided a computer system which is communicatively connected to an image forming device, the computer system comprising an image forming job processing module, the image job processing module comprising: a receiving unit for receiving image forming job data; a keyword information determination unit for determining at least one keyword information based on the image forming job data and / or the state of the image forming device; and a recording unit for recording the at least one keyword information into a log file of the computer system.
[0017] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, the storage medium comprising a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the information processing method as described in the first aspect or the second aspect of the present invention.
[0018] One beneficial effect of the present invention is that the image forming job processing module determines keyword information according to the image forming job data and / or the state of the image forming device, and stores the keyword information in a log file, thereby obtaining relatively complete log information. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of the connection relationship between an image forming device and a computer system in the prior art;
[0021] Figure 2 A flowchart of an information processing method according to an embodiment of the present invention;
[0022] Figure 3 A flowchart of an information processing method according to another embodiment of the present invention;
[0023] Figure 4 A schematic diagram of a computer system according to an embodiment of the present invention;
[0024] Figure 5 The figure is a schematic diagram of communication relationship according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0026] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] Figure 1Schematic diagram of a connection relationship between a peripheral device and a computer system. The image forming device 100 may be a printer, a copier, a scanner, a fax machine, or a multifunction machine having at least one of the above functions. The computer system 150 may be an electronic device having computing capabilities, such as a personal computer, a mobile terminal, a wearable electronic device, etc. The job sending module 151 may be a printing system pre-installed in the operating system of the computer system 150, such as the Common UNIX Printing System (CUPS), or a text / image processing application (such as a text editing software, an image editing software, a web browser, etc.) that can be installed or uninstalled on the operating system. The job sending module 151 sends the job that the user wants to perform image formation to the image forming job processing module 152. The image forming job processing module 152 may be a driver application, such as a print driver, a scan driver, or a data processing module such as a filter in a UNIX system. The image forming job processing module 152 is used to send the processed job to the image forming device 100. After receiving the job, the image forming device 100 controls the imaging module 110 (such as a laser imaging component) through the processor 120 (such as a printer system-on-chip) to complete the job. In the prior art, the information generated by the image forming device 100 during operation is usually recorded in the first memory 130 in the form of a log, which is generally used for troubleshooting; and the information generated by the operating system of the computer system 150 during operation can be recorded in the second memory 153 in the form of a log, which generally only includes information at the operating system level and may not include or only include log information of a small part of the application program. It can be seen that the information related to the job in the prior art may exist in both the image forming device 100 and the computer system 150, but is actually stored separately; and the data generated by the image forming job processing module 152 in the process of processing the job data and in the process of communicating with the image forming device 100 is missing, resulting in inaccurate log information and low processing efficiency.
[0028] To this end, the present invention provides an information processing method, which can be executed by an image forming job processing module in a computer system, and the image forming job processing module can be a driver program such as a print driver, a scan driver, or a data processing module such as a filter module in a Common UNIX Printing System (CUPS). The computer system and the image forming device have a communication connection relationship, and the communication connection relationship can specifically be a wireless communication connection, a wired communication connection, an electrical signal transmission, an optical signal transmission, or the like.
[0029] A flow chart of an embodiment of the present invention is as follows Figure 2As shown, including:
[0030] S210: Receive image forming job data.
[0031] Taking the case of a print driver as an example, the print driver can receive job data from an application such as a word processing software. The job data may include data content and control instructions. The data content may include page data to be printed, and the control instructions may include double-sided printing, black and white printing, etc. Taking the CUPS system as an example, some operating systems such as Unix uniformly use the CUPS system to process print jobs. The data processed by CUPS may be sent to the image forming device after further data processing or format conversion by a filter or other module. The developer of the image forming device can develop a filter module so that the data sent to the image forming device can be correctly processed by the image forming device. It can be seen from this that S210 takes into account that the image forming job processing module can receive information related to the image forming job data more completely, so it chooses to start subsequent data processing operations after receiving the image forming job data, so that the image forming job data can be identified and processed when it is generated, which can improve the accuracy and timeliness of the processing.
[0032] S220: Determine at least one keyword information based on the image forming job data and / or the state of the image forming apparatus.
[0033] Keyword information can be a character string in a log file that complies with preset rules. Keyword information can include keywords and values corresponding to the keywords. For example, the types of keywords that can be preset for a log include "task ID, image forming device name, total number of pages, number of copies printed...", etc. Assuming that "printer name = AABBCC" is recorded in the log, then "printer name = AABBCC" can be regarded as a keyword information, where "printer name" is the keyword and "AABBCC" is the value of the keyword.
[0034] Keyword information may be related to the image forming job data, or may be related to the state of the image forming device, or may be jointly determined by the image forming job data and the state of the image forming device. For example, information such as task ID, printer name, total number of pages, and number of copies printed will be recorded in the data received by the image forming job processing module, and these keyword information can be identified in the image forming job data. Information such as printing completion time and number of successfully printed pages is related to the time and number of pages actually completed by the printer, so it needs to be obtained from the printer. Information such as error messages and printing results may need to consider both the image forming job data and the state of the printer. For example, if there is an abnormality in the printing process, it may be caused by network reasons, or it may be caused by the printer not returning to the state normally, or it may be caused by abnormal conditions such as lack of ink and paper jam in the printer, which makes it impossible to return information in time. These situations need to be jointly determined by the image forming job data processing module and the printer, and the image forming job data and the state of the image forming device need to be fully considered to be accurately determined.
[0035] In one embodiment, the image forming job processing module can obtain job attributes from a file associated with the image forming job data through program instructions, and determine the first type of keyword information according to the job attributes. The file associated with the image forming job data can be a page description file generated during the printing process, or a text file recording a print control command, or a PPD (PostScript Printer Definition) file, etc. The job attributes can be obtained by executing a query statement using the job attributes as a search field, or directly obtaining it through a predefined parameter acquisition instruction. For example, the filter or driver can query the computer through a query command in a program language to obtain the first type of keyword information including one or more of the task ID, printer name, total number of pages, and number of copies.
[0036] In another embodiment, the image forming job processing module may send a status query command to the image forming device, and determine the second type of keyword information based on the status information returned by the image forming device in response to the status query command. For example, the filter or driver may send a query command to the printer via a wired or wireless method, and after receiving the query command, the printer will return corresponding information related to the printer, including the actual completion time of the printer or the number of successfully printed pages, based on which the filter or driver can determine the second type of keyword information. The wired method may be USB (Universal Serial Bus) or Ethernet. The wireless method may be SNMP (Simple Network Management Protocol), Bluetooth, or Wi-Fi (Wireless Fidelity).
[0037] In another embodiment, the third type of keyword information can be determined based on the aforementioned job attributes and the aforementioned status information. For example, the filter or driver can query the first information related to the image forming job inside the computer system, and query the second information related to the status of the image forming device through a query statement, and determine the third type of keyword information according to the preset mapping relationship between the first information and the second information. The preset mapping relationship can be: in the case where the third type of keyword information is "error message", when the first information indicates that the filter or driver has sent a query command, and the second information indicates that the image forming device has not received the query command, it is determined that "error message = network error"; when the first information indicates that the filter or driver has sent a query command, and the second information indicates that the image forming device has received the query command, and the image forming device is in a paper jam state, it is determined that "error message = query timeout due to printer abnormality".
[0038] It can be seen that compared with the solution in the prior art that the image forming device and the computer system only record their own logs, the image forming job processing module S220 can collect the first keyword information after the image forming job data is generated; it can also query and integrate the second type of keyword information of the image forming device; and it can also compare the information and status information of the image forming job data to determine the third type of keyword information. In this way, the log file formed according to the keyword information can contain more comprehensive information than the log file of the prior art, which can improve the accuracy and comprehensiveness of the log file.
[0039] S230: Record at least one keyword information into a log file of the computer system.
[0040] After determining the keyword information, it is also necessary to store the keyword information in a log file. It is possible to first determine whether information used to indicate the end of a job is detected. When determining whether information used to indicate the end of a job is detected, at least one determined keyword information is recorded in a log file of the computer system. For example, it is possible to determine whether a "jobend" flag is detected in the image forming job data. If detected, it is considered that the image forming job has ended, and the keyword information identified at this stage can be stored in a log file.
[0041] In an optional implementation, if the log file does not exist in the computer system, a log file can be created and at least one keyword information is added to the log file; if the log file already exists in the computer system, the created log file can be accessed and at least one keyword information is added to the log file. Then a database file is created, and the database file is linked to the log file. The database file is configured to be able to perform a query on the keyword information in the log file in response to a single API (Application Programming Interface) instruction.
[0042] For example, the database file can be a sqlite program, which is a known database technology that allows users to search or add keyword information in other files through database query statements. The use of database files can facilitate the structured storage of keyword information, so that keyword information provided by different equipment manufacturers can be stored in the same data structure, which is convenient for the unified management of keyword information. The database file can also be configured to use a specific API instruction for querying, so as to quickly query when auditing the keyword information of the log file, so as to improve the query efficiency of the audit information. This is in consideration of the fact that the log information of the prior art is used by equipment manufacturers when troubleshooting equipment failures. Due to the low frequency of use, the prior art usually does not improve the query efficiency. The embodiment of the present invention takes into account that other entities other than equipment manufacturers also have potential audit needs for the content of log information. Therefore, the embodiment of the present invention sets the query mode to a single instruction when configuring the data file, so that the subject with audit needs can complete the audit query with higher efficiency.
[0043] The embodiment of the present invention can also be executed in a monitoring module in a computer system. The monitoring module can be a computer program with monitoring authority, such as a status monitor for monitoring an image forming device and an image forming job. At this time, S230 is specifically: the image forming job processing module sends at least one keyword information to a data bus in the computer system; the monitoring module reads at least one keyword information from the data bus, and records at least one keyword information in a structured form in a log file of the computer system. That is, the storage of keyword information can be performed by the image forming job processing module or by the monitoring module. For example, if the log file of this embodiment is stored in a system folder, if the image forming job processing module is allowed to add or query data at will, it may not meet security requirements. The authority level of the monitoring module may be higher than that of the image forming job processing module. In some implementations, the monitoring module may have system administrator authority, security officer authority, or auditor authority. In this case, the storage of keyword information through the monitoring module can allow different types of administrators to query or add keywords with different authorities, which is conducive to authority management. If the monitoring module is used to store keyword information, the image forming job processing module can first send the keyword information to the data bus of the operating system, and the monitoring module continuously monitors the information on the data bus, and when the keyword information is detected, the keyword information is stored in the log file of the computer system. It should be noted that after receiving the keyword information, the monitoring module can also store the monitoring information in the log file, or for some first-category keyword information, second-category keyword information or third-category keyword information that cannot be queried by the image forming job processing module, the monitoring information can also be queried and stored.
[0044] Furthermore, the monitoring module can respond to the log operation instruction and perform the operation on the log file. The log operation instruction is associated with the user rights of the monitoring module. For example, ordinary users can view the log information in the log file through the monitoring module, but cannot edit the log information. System administrators can view and edit the user's log information through the monitoring module.
[0045] It can be seen that S230 records the keyword information into the log file in the computer system, and can merge and organize the information about the image forming job data and / or the image forming device determined in S220 and store them together in the computer. This is different from the technical solution in the prior art that the image forming device and the computer system store their own logs, resulting in incomplete log information and inconvenient query. S230 reduces the cost of querying the database through structured storage, and improves query efficiency and management efficiency.
[0046] It should be noted that one type of existing log information standardization technology is to achieve standardization through character-by-character processing from the already formed log files. For example, the required information is identified by character-by-character processing from the already formed text log files of manufacturers A and B through regular expressions and other methods, and then stored in a standardized manner. This method processes the log formation process and the log standardization process as two different processes, which will increase the processing cost, and because different manufacturers can store logs in any format, it may cause some log information to be difficult to accurately identify due to the non-standard format, thereby reducing the accuracy of the standardized log information. The embodiment of the present invention obtains the information required for the standardized log file during the communication between the image forming job processing module and the image forming device. Since the communication method between the computer system and the image forming device conforms to the standardized transmission protocol (such as Bluetooth, WLAN, SNMP, etc.), the possibility of generating non-standardized data can be reduced during this transmission process. And the embodiment of the present invention stores the log file only after the keyword information required for the log file is collected, avoiding the reduction of processing efficiency caused by the standardized processing after the log file is formed.
[0047] The embodiment of the present invention further provides an information processing method, which is executed in a monitoring module in the computer system, wherein the computer system further comprises an image forming operation processing module; wherein the computer system is in communication connection with the image forming device. The information processing method comprises:
[0048] S320: Read at least one keyword information on the data bus of the computer system, and record the at least one keyword information in a log file of the computer system. The at least one keyword information is sent to the data bus in advance by the image forming processing module;
[0049] Optionally, the at least one keyword information may be recorded in a structured form into a log file of the computer system.
[0050] S330: Create a log file and add at least one keyword information to the log file; or access the created log file and add at least one keyword information to the log file.
[0051] S340: Create a database file, the database file is associated with the log file; wherein the database file can execute a query on the keyword information in the log file in response to a single API instruction.
[0052] The information processing method of this embodiment is implemented by the monitoring module, and the specific implementation of S320, S330 and S340 has been described in detail in the previous information processing method, which will not be repeated here.
[0053] The embodiment of the present invention further provides a computer system 400, which is connected to the image forming device 450 for communication. The computer system 400 includes an image forming job processing module 410. The image forming job processing module 410 includes: a receiving unit 411 for receiving image forming job data; a keyword information determination unit 412 for determining at least one keyword information based on the image forming job data and / or the state of the image forming device; and a recording unit 413 for recording at least one keyword information into a log file of the computer system. The computer system 400 and the image forming device 450 of this embodiment can be physical devices, the image forming job processing module 410 can be a program module running in the computer system 400, and the receiving unit 411, the keyword information determination unit 412 and the recording unit 413 can be subroutine modules in the program module.
[0054] <Application Examples>
[0055] like Figure 5 As shown, the computer 50 is an example of a computer system, and the printer 51 is an example of an image forming device. An operating system 53 is running in the computer 50, wherein the printing system 53a may be a CUPS system, and the CUPS system is a part of the operating system 53. At the same time, a data bus 53b is also provided in the operating system 53, and data can be transmitted between different processes through the data bus 53b. In a Unix system, the data bus 53b may be a dbus. The filter 52 may be a filter module in a Unix system, and the print driver in a Windows system may also play a similar role to the filter 52. In this embodiment, the filter 52 and the status monitor 54 are application programs that run on the operating system and are different from the operating system itself.
[0056] S510 indicates that the server 54a of the status monitor 54 continuously monitors the data bus 53b of the operation 53. If the filter 52 directly stores the keyword information, S510 does not need to be executed.
[0057] S520 indicates that the user sends a print job to the filter 52 through the printing system 53a. Taking the CUPS system as an example, the CUPS system usually converts the document to be printed by the user into the PostScript printing language, but some printers may not have a built-in PostScript interpreter and cannot directly recognize the PostScript printing language. To solve this problem, the printer provider can properly develop the filter 52 so that the filter 52 can convert the PostScript printing language into a language recognizable by the printer of the provider.
[0058] S530 indicates that the filter 52 sends the converted file to be printed to the printer 51 so that the printer 51 executes the print job. Since the computer 50 and the printer 51 are in a communication relationship, such as a wired connection such as USB, wired network, or a wireless connection such as Bluetooth, Wi-Fi, etc., the filter 52 can select an appropriate communication method to send the file to be printed to the printer 51.
[0059] S540 indicates that the filter 52 continuously identifies and integrates the keyword information, which may be the first type of keyword information identified from the print data, the second type of keyword information identified from the status query result returned by the printer, or the third type of information identified based on the combination of the print data and the status query result. It should be noted that the execution order of S530 and S540 may be adjusted arbitrarily, for example, S540 may be executed first to identify the keyword information, and then S530 may be executed to send the file to be printed.
[0060] S550 indicates that after the filter 52 recognizes the job end mark (jobend) information, it determines that CUPS has sent all the print job data. At this time, the filter 52 sends the keyword information collected in the S540 stage to the data bus 53b. The filter 52 can also store the keyword information directly in the log file. Figure 5 The illustrated example shows a situation where the status monitor 54 stores keyword information in a log file.
[0061] S560 indicates that after the server of the status monitor 54 monitors the keyword information from the data bus, it reads the keyword information from the data bus.
[0062] S570 indicates that the server 54 a stores the keyword information in a log file in the computer 50 .
[0063] S580 indicates that after the server 54 a completes the storage of the log file, it sends a notification signal to the client 54 b of the status monitor 54 .
[0064] S590 indicates that after receiving the notification signal, the client 54b displays the printing result information, such as printing completion or printing error, to the user through the display interface.
[0065] An embodiment of the present invention further provides a computer-readable storage medium, the storage medium including a stored program, which controls a device where the storage medium is located to execute the aforementioned information processing method when the program is running.
[0066] The embodiments of the present invention may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure.
[0067] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0068] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0069] The computer program instructions for performing the operation of the disclosed embodiment can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize and customize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the disclosed embodiment.
[0070] Various aspects of the disclosed embodiments are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to the disclosed embodiments. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0071] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0072] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0073] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0074] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An information processing method, executed in a computer system, wherein the computer system is communicatively connected to an image forming device; characterized in that: The method comprises: receiving image forming job data; determining at least one keyword information based on the image forming job data and / or the state of the image forming device; The at least one keyword information is recorded in a log file of the computer system.
2. The information processing method according to claim 1, characterized in that: The computer system includes an image forming processing module and a monitoring module, and recording the at least one keyword information into a log file of the computer system includes: The image forming job processing module sends the at least one keyword information to a data bus in the computer system; The monitoring module reads the at least one keyword information from the data bus, and records the at least one keyword information into a log file of the computer system.
3. The information processing method according to claim 1, characterized in that: Recording the at least one keyword information into a log file of the computer system includes: The at least one keyword information is recorded in a structured form in a log file of the computer system.
4. The information processing method according to claim 2, characterized in that: The monitoring module records the at least one keyword information into the log file of the computer system, including: Creating a log file, and adding the at least one keyword information to the log file; or accessing the created log file, and adding the at least one keyword information to the log file; A database file is created, wherein the database file is associated with the log file; wherein the database file can perform a query on the keyword information in the log file in response to a single API instruction.
5. The information processing method according to claim 1, characterized in that: Based on the image forming job data and / or the state of the image forming device, at least one keyword information is determined, including: Acquiring job attributes from a file associated with the image forming job data through program instructions, and determining first-category keyword information according to the job attributes; or Sending a status query command to the image forming device, and receiving status information returned by the image forming device in response to the status query command; determining the second type of keyword information based on the status information; or Obtaining job attributes from a file associated with the image forming job data through program instructions; sending a status query command to the image forming device; and receiving status information returned by the image forming device in response to the status query command; and determining third-category keyword information based on the job attributes and the status information.
6. The information processing method according to claim 1, characterized in that: Recording the at least one keyword information into a log file of the computer system includes: When information indicating the end of a job is detected, the at least one keyword information that has been determined is recorded in a log file of the computer system.
7. The information processing method according to claim 1, characterized in that: The image forming job data is generated by a universal Unix printing system CUPS, and the image forming job processing module is a filter module.
8. The information processing method according to claim 2, characterized in that: The monitoring module can execute an operation on the log file in response to a log operation instruction; the log operation instruction is associated with a user authority of the monitoring module.
9. An information processing method, executed in a monitoring module in the computer system; the computer system further comprises an image forming operation processing module, the computer system is in communication connection with an image forming device; characterized in that: The method comprises: Reading at least one keyword information on a data bus of the computer system, and recording the at least one keyword information in a log file of the computer system; the at least one keyword information is sent to the data bus in advance by the image forming processing module; A database file is created, wherein the database file is associated with the log file; wherein the database file can perform a query on the keyword information in the log file in response to a single API instruction.
10. The information processing method according to claim 9, characterized in that: Recording the at least one keyword information into a log file of the computer system includes: The at least one keyword information is recorded in a structured form in a log file of the computer system.
11. A computer system, connected in communication with an image forming device, the computer system comprising an image forming job processing module, the image job processing module comprising: A receiving unit, configured to receive image forming job data; a keyword information determining unit, configured to determine at least one keyword information based on the image forming job data and / or the state of the image forming device; A recording unit is used to record the at least one keyword information into a log file of the computer system.
12. A computer-readable storage medium, the storage medium comprising a stored program, wherein: When the program is running, the device where the storage medium is located is controlled to execute the information processing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Image forming apparatus and image forming method
CN104469053A
Automatic testing method and device, electronic equipment and storage medium
CN115757483A
Printing system, information collection method, information search method and information search system
CN1975730A
Image forming apparatus
JP2006093824A
Electric equipment
JP2006099169A