Image forming apparatus, image forming system and program
The image forming apparatus converts non-target PJL data into target data using filter data, addressing the rebuilding burden in image forming systems by ensuring seamless integration with updated apparatuses.
Patent Information
- Application Number
- JP2020145341
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-31
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2040-08-31
AI Technical Summary
Image forming systems face increased rebuilding burdens when image forming apparatuses are updated due to changes in performance and functionality, necessitating a solution that minimizes system reconstruction.
An image forming apparatus with an external interface, non-volatile memory, and a computer that acquires, filters, and converts PJL data using stored filter data to associate non-target PJL data with target PJL data, allowing seamless integration without system rebuilding.
The solution enables the image forming apparatus to convert non-target PJL data into target data, reducing the burden of system rebuilding and ensuring compatibility with updated apparatuses.
Smart Images

Figure 0007552152000014 
Figure 0007552152000008 
Figure 0007552152000005
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for processing data written in a printer job language (hereinafter referred to as PJL). [Background technology]
[0002] Patent document 1 describes a technology in which an image forming device stores new PJL data sent from a PC and the processing corresponding to the new PJL data in a PJL dictionary, and when new PJL data is received from the PC, the image forming device performs processing that corresponds to the received new PJL data in the PJL dictionary. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-171757 A Summary of the Invention [Problem to be solved by the invention]
[0004] Image forming devices, such as printers, are undergoing changes such as improvements in performance and functionality, as well as diversification of the value they provide. However, in an image forming system equipped with an image forming device, if the image forming device is updated to accommodate the above changes, the burden of reconstructing the image forming system increases.
[0005] Therefore, the present invention has been created to solve the above-mentioned problems, and aims to provide a technology that does not impose a large burden on the user in reconstructing an image forming system even when an image forming device is updated. [Means for solving the problem]
[0006] In order to achieve the above-mentioned object, the present invention provides a technique for an image forming apparatus including an external interface, a computer, and a non-volatile memory, in which the computer executes a PJL data acquisition process for acquiring PJL data via the external interface, a filter data acquisition process for acquiring filter data via the external interface, and a storage process for storing the filter data acquired by the filter data acquisition process in the non-volatile memory, in which the filter data is data for associating non-target PJL data with target PJL data, the non-target PJL data is PJL data that is not intended for causing the image forming apparatus to execute a specified process, and the target PJL data is PJL data that is intended for causing the image forming apparatus to execute a specified process, and further, in the case where the PJL data acquired by the PJL data acquisition process is non-target PJL data associated with the target PJL data by the filter data stored in the non-volatile memory, the computer executes a conversion process for converting the acquired PJL data into target PJL data associated with the non-target PJL data in the filter data stored in the non-volatile memory.
[0007] When a computer acquires PJL data (non-target PJL data) that is not intended to cause the image forming device to execute a specified process, the computer uses filter data to convert the acquired PJL data into PJL data (target PJL data) that is intended to cause the image forming device to execute a specified process.
[0008] The technology disclosed in this specification can be realized in various forms, for example, as a program, a recording medium on which a program is recorded, an image forming system, and the like. Effect of the Invention
[0009] According to the present invention, it is possible to provide an image forming apparatus in which the burden of reconstructing the image forming system is not large even when the image forming apparatus is updated. [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 is an explanatory diagram illustrating a main electrical configuration of the image forming apparatus according to the embodiment of the present invention. [Diagram 2] FIG. 1A is an explanatory diagram showing an example of a print job, and FIG. [Diagram 3] FIG. 11 is an explanatory diagram of a conversion mode. [Figure 4] 1A is an explanatory diagram of conversion mode 1, and FIG. 1B is an explanatory diagram of conversion mode 2. [Diagram 5] FIG. 1A is an explanatory diagram showing an example of filter data in this embodiment, FIG. 1B is an explanatory diagram showing an example of recommended filter data, and FIG. 1C is an explanatory diagram showing an example of non-recommended filter data. [Figure 6] FIG. 13 is an explanatory diagram showing an example of a conversion rule for converting PJL data to which (A) is applied conversion mode 1, (B) to (D) are conversion mode 2, (E) is conversion mode 3, and (F) is conversion mode 4. [Figure 7] 4 is a flowchart showing a main routine executed by a CPU. [Figure 8] 8 is a flowchart showing a continuation of the main routine of FIG. 7. [Figure 9] 13 is a flowchart showing a PJL data conversion process. [Figure 10] 13 is a flowchart showing mode 1 PJL data conversion processing. [Figure 11] 13 is a flowchart showing an acquired PJL data conversion process. [Figure 12] 13 is a flowchart showing a read-ahead process. [Figure 13] 13 is a flowchart showing a mode 2 PJL data conversion process. [Figure 14] 14 is a flowchart showing the continuation of the mode 2 PJL data conversion process of FIG. 13. [Figure 15] 13 is a flowchart showing a filter data R / W process. [Figure 16] 13 is a flowchart showing an associated rule filter data construction process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] The image forming apparatus, the image forming system, and the program according to the embodiment of the present invention will be described below with reference to the drawings. The main electrical configuration of the image forming apparatus will be described with reference to Fig. 1. The image forming apparatus 10 includes a print engine 11, a flash ROM 12, an NVRAM 14, an image processing circuit 15, a user IF (abbreviation of interface) 16, a communication IF 17, a USB IF 18, a bus 19, a control unit 20, a RAM 22, and a ROM 23.
[0012] The print engine 11 is an engine for printing an image on a recording medium such as a sheet, and employs a printing method such as electrophotography, inkjet, or thermal. The image processing circuit 15 performs RIP (short for Raster Image Processor) processing on image data related to the PDL unit 32 (FIG. 2) and converts it into drawing data corresponding to pixels to be printed on a recording medium such as a sheet. The converted drawing data is output to the print engine 11. The NVRAM 14 is a non-volatile memory that stores print setting information and the like.
[0013] The user IF 16 is, for example, a touch panel, and has a function of displaying messages and a function of accepting operations by a user. The communication IF 17 is connected to the information processing device 40 via a LAN line L1 so that they can communicate with each other. As a method of communication between the image forming device 10 and the information processing device 40, a communication protocol such as Bluetooth (registered trademark) can also be used. The information processing device 40 is, for example, a PC or a smartphone. The USB IF 18 is hardware for communicating with a connected device based on the USB standard.
[0014] The control unit 20 is composed of a CPU 21 and the like. The control unit 20 controls the print engine 11 according to the print setting information stored in the NVRAM 14. The control unit 20 also controls communication with the information processing device 40 via the communication IF 17. The flash ROM 12 stores filter data 13. The filter data 13 is data describing a conversion rule for converting PJL data transmitted from the information processing device 40 into PJL data executable in the image forming device 10. The filter data 13 may be stored in a USB memory storage medium and provided to the image forming device 10 from the storage medium. The filter data 13 will be described in detail later. The CPU 21 or the control unit 20 including the CPU 21 is an example of a computer of the present invention, and the flash ROM 12 is an example of a non-volatile memory of the present invention. The image forming device 10 and the information processing device 40 are also an example of an image forming system of the present invention.
[0015] The ROM 23 stores a program 24 executed by the CPU 21. The RAM 22 has a storage area for developing the filter data 13 read from the flash ROM 12, a work area for developing the program 24 read from the ROM 23, etc. The control unit 20, the RAM 22, the ROM 23, the flash ROM 12, the NVRAM 14, the print engine 11, the image processing circuit 15, the user IF 16, the communication IF 17, and the USB IF 18 are interconnected by a bus 19. The communication IF 17 and the USB IF 18 are examples of external interfaces of the present invention, and the program 24 is an example of a program of the present invention.
[0016] The program 24 and the filter data 13 may be stored in a computer-readable storage medium, provided from the storage medium to the image forming apparatus 10, and executed by the CPU 21. A computer-readable storage medium is a non-transitory medium. Non-transitory media include recording media such as CD-ROMs, DVD-ROMs, and USB memories. Non-transitory media are also tangible media. On the other hand, an electrical signal carrying a program downloaded from a server on the Internet or the like is a computer-readable signal medium, which is a type of computer-readable medium, but is not included in computer-readable non-transitory storage media.
[0017] In the following description, processes such as "judgment," "analysis," "reference," "detection," "addition," "deletion," "discard," "selection," "reading," "expanding," "writing," "save," "output," "transmission," "decision," "identification," "acquisition," "control," and "setting" represent processes performed by the CPU 21. Processes performed by the CPU 21 also include hardware control via the OS. "Acquisition" is used as a concept that does not require a request. In other words, a process in which the CPU 21 receives data without a request is also included in the concept of "the CPU 21 acquires data." In addition, "data" in this specification is represented by a bit string that can be read by a computer. Data that has the same substantial meaning but different formats is treated as the same data. The same applies to "information" in this specification.
[0018] Next, the configuration of a print job that the image forming apparatus 10 obtains from the information processing apparatus 40 will be described with reference to FIG. 2A. The print job 30 has a PJL section 31 described in PJL and a PDL section 32. The data D1 "EC%-12345X@PJL" written at the beginning of the print job 30 is an opening command indicating that the PJL section 31, in which the PJL data is written, begins on the next line. Each PJL data constituting the PJL section 31 indicates the name of the creator of the print job 30, the name of the print job 30, print setting information, etc. The print setting information includes print setting information such as paper size, print direction, whether to print in color or monochrome, the number of copies to be printed, and print quality. For example, the PJL data D2 "@PJL SET LPARM:PCL MEDIASIZE=LETTER" indicates an instruction to set the paper size to "LETTER".
[0019] Data D3 "@PJL ENTER LAMGUAGE=PCL XL" written at the end of the PJL section 31 is PJL data indicating that the PJL section 31 ends and that the PDL section 32 described in a page description language called PDL (short for Page Description Language) begins on the next line. Examples of page description languages include PCL (short for Printer Command Language) and PS (short for Post Script) data. Data D4 "EC%-12345X@PJL EOJ NAME="office -PDF(A&A4).pdf"" written next to the PDL section 32 is PJL data indicating the end of the print job 30. Data 5 "EC%-12345X" written on the next line of data D4 is a command indicating the end of the analysis process of the PDL section 32. The PDL section 32 is an example of print data of the present invention.
[0020] Next, the components of PJL data will be described with reference to FIG. 2B. FIG. 2B shows an example of PJL data, which is "@PJL DEFAULT LPARM:PCL PTSIZE=14.25". This PJL data instructs that the initial point size when printing the PDL section 32 described in PCL is set to 14.25. PJL data is data consisting of four elements: "PJL Prefix", "Command", "Command modifier:Value", and "Option name". "@PJL" is "PJL Prefix". "DEFAULT" is "Command". "LPARM:PCL" is "Command modifier:Value". "PTSIZE=14.25" is "Option name=Value". In the following, "PJL Prefix" is the first element, "Command" is the second element, "Command modifier:Value" is the third element, and "Option name=Value" is the fourth element.
[0021] The first element is required, but there are two formats for PJL data: Format 1, which consists of only the first and second elements, and Format 2, which consists of elements 1 through 4. The PJL standard allows for the omission of elements 2 through 4. Below, of the PJL data in Format 2, PJL data written in a format in which elements 2 through 4 are not omitted is referred to as non-abbreviated PJL data, and PJL data written in a format in which one or two of elements 2 through 4 are omitted is referred to as abbreviated PJL data.
[0022] The definition of PJL data processed in the image forming apparatus includes definitions that are commonly used by a plurality of different image forming apparatuses and definitions that are not commonly used. For example, the PJL data specifying the print paper size is defined as "@PJL SET LPARM:PCL MEDIASIZE=LETTER" in the model A, whereas it is defined as "@PJL SET LPARM:PCL PAPER=LETTER" in the model B. For example, if the image forming apparatus connected to the information processing apparatus 40 (FIG. 1) is changed from the model A to the model B, even if the information processing apparatus 40 sends "@PJL SET LPARM:PCL MEDIASIZE=LETTER" as PJL data to the image forming apparatus, the image forming apparatus will not be able to analyze the received PJL data and set the print paper to letter size. The models A and B may be models of the same manufacturer or different manufacturers. Therefore, the inventor of the present application has created a technique for converting PJL data transmitted from the information processing device 40 to the model A into PJL data usable in the model B so that the PJL data transmitted from the information processing device 40 to the model A can be processed in the model B. In other words, the technique is characterized in that, when the PJL data acquired from the information processing device 40 is PJL data that is not the target for causing the image forming device 10 to execute a predetermined process such as setting a print function, the PJL data is converted into PJL data that is the target for causing the image forming device 10 to execute the above-mentioned predetermined process. Hereinafter, PJL data that is not the target for causing the image forming device 10 to execute the above-mentioned predetermined process is referred to as pre-conversion PJL data, and PJL data that is the target for causing the image forming device 10 to execute the above-mentioned predetermined process is referred to as post-conversion PJL data. The pre-conversion PJL data is an example of non-target PJL data in the present invention, and the post-conversion PJL data is an example of target PJL data in the present invention.
[0023] It should be noted that by installing a driver for controlling model B in the information processing device 40, it is also possible to transmit PJL data conforming to the specifications of model B from the information processing device 40. However, a system administrator who manages an image forming system would like to avoid changing the system program as much as possible, for reasons such as the risk of it being a factor in impeding normal operation of the system and the effort required. Therefore, the inventor of the present application has created a technology that makes it possible to use the PJL data that was previously transmitted from the information processing device to the image forming device, even when the model of the image forming device connected to the information processing device is changed, without changing the system program.
[0024] Next, the PJL data conversion modes will be described with reference to Figures 3 and 4. Conversion mode 1 is a conversion mode for converting PJL data of format 1 consisting only of the first and second elements described above. Example 1 shown in Figure 4(A) shows an example in which pre-conversion PJL data of format 1 called "@PJL UNKNOWNINIT" is converted into post-conversion PJL data of format 1 called "@PJL INITIALIZE". Example 2 shows an example in which pre-conversion PJL data of format 1 called "@PJL UNKNOWNJOB" is converted into post-conversion PJL data of format 1 called "@PJL JOB".
[0025] Conversion mode 2 is a conversion mode for converting PJL data of the above-mentioned format 2. As described above, format 2 includes non-abbreviated PJL data and abbreviated PJL data. Therefore, if non-abbreviated PJL data is described as pre-conversion PJL data of the conversion rule, the CPU 21 can convert the acquired PJL data (hereinafter, described as "acquired PJL data") into converted PJL data according to the above-mentioned conversion rule when the acquired PJL data is non-abbreviated. Also, if abbreviated PJL data is described as pre-conversion PJL data of the conversion rule, the CPU 21 can convert the acquired PJL data into converted PJL data according to the above-mentioned conversion rule when the acquired PJL data is abbreviated. Also, since the CPU 21 can analyze both non-abbreviated PJL data and abbreviated PJL data, either non-abbreviated PJL data or abbreviated PJL data may be described as post-conversion PJL data of the conversion rule.
[0026] Example 1 shown in FIG. 4B shows an example of converting abbreviated PJL data "@PJL INQUIRE MEDIASIZE" from the acquired PJL data with the third element omitted into abbreviated converted PJL data "@PJL INQUIRE PAPER" from the acquired PJL data with the third element omitted. Example 2 shown in FIG. 4B shows an example of converting non-abbreviated PJL data "@PJL INQUIRE LPARM:PCL MEDIASIZE" from the acquired PJL data into non-abbreviated converted PJL data "@PJL INQUIRE LPARM:PCL PAPER". Example 3 shown in FIG. 4B shows an example of converting non-abbreviated PJL data "@PJL SET LPARM:PCL MEDIASIZE=LETTER" from the acquired PJL data into non-abbreviated converted PJL data "@PJL SET LPARM:PCL PAPER=LETTER".
[0027] Also, PJL data unique to the manufacturer of the image forming apparatus 10 (hereinafter, referred to as unique PJL data) can be described as the pre-conversion PJL data of the conversion rule. For example, in the unique PJL data, the first to third elements can be omitted, and only the fourth element can be a required element. For example, when unique PJL data with only the fourth element is described as the pre-conversion PJL data of the conversion rule, if the fourth element of the acquired PJL data matches the unique PJL data that is the pre-conversion PJL data of the conversion rule, the acquired PJL data can be converted into the post-conversion PJL data associated with the pre-conversion PJL data in the conversion rule, regardless of the contents of the second and third elements of the acquired PJL data. For example, in the conversion rule, it is assumed that pre-conversion PJL data (unique PJL data) with only the fourth element, "MEDIASIZE=LETTER", is associated with the post-conversion PJL data, "PAPER=LETTER". If the fourth element of the acquired PJL data contains "MEDIASIZE=LETTER", the acquired PJL data is converted to converted PJL data containing "PAPER=LETTER", regardless of the contents of the second and third elements of the acquired PJL data. In other words, in all cases where PJL data containing "MEDIASIZE=LETTER" in the fourth element is acquired, converted PJL data can be generated in which "MEDIASIZE=LETTER" is converted to "PAPER=LETTER". By using conversion rules that describe unique PJL data as pre-conversion PJL data, it is possible to convert, for example, an retrieval PJL command such as "@PJL SET MEDIASIZE=LETTER," which instructs a temporary paper size setting, to "@PJL SET PAPER=LETTER," and to convert an retrieval PJL command such as "@PJL DEFAULT MEDIASIZE=LETTER," which instructs the setting of a default paper size value, to "@PJL DEFAULT PAPER=LETTER."
[0028] Next, the filter data will be described with reference to FIG. 6. The filter data 13 stored in the flash ROM 12 is data for converting the acquired PJL data into converted PJL data that can be analyzed in the image forming apparatus 10. As shown in FIG. 6(A)-(F), in the filter data 13, the pre-conversion PJL data and the converted PJL data are associated with each other. That is, when the acquired PJL data matches a predetermined pre-conversion PJL data in the filter data 13, the CPU 21 converts the acquired PJL data into the converted PJL data. The numerical value A shown in FIG. 6(A)-(F) indicates the serial number of the conversion rule (hereinafter, referred to as the conversion rule number) when converting the pre-conversion PJL data into the converted PJL data. In FIG. 6(A)-(F), conversion rules 1, 3, 5, 6, 8, and 9 are illustrated among the filters having conversion rules 1 to 10 shown in FIG. 5(A). 6A to 6D, the number B indicates the number of pre-conversion PJL data in the conversion rule (the number of pre-conversion PJL data) (FIG. 6). For example, if two pre-conversion PJL data are required to cause the image forming apparatus 10 to execute one process, then B=2.
[0029] The numerical value F shown in FIG. 6(E) indicates the number of PJL data to be deleted. For example, when PJL data matching the pre-conversion PJL data set as the deletion target in the filter data 13 is transmitted from the information processing device 40, the transmitted PJL data is deleted. The CPU 21 does not execute the process specified by the converted PJL data associated with the pre-conversion PJL data matching the PJL data. When the number of PJL data to be deleted is 1, F=1. The numerical value H shown in FIG. 6(F) indicates the number of converted PJL data to be added. For example, when PJL data is acquired from the information processing device 40, and the pre-conversion PJL data matching the acquired PJL data is the pre-conversion PJL data to be added in the filter data 13, the acquired PJL data is converted into the converted PJL data associated with the pre-conversion PJL data in the filter data 13, and the converted converted PJL data is added to the other converted PJL data. As a result, the CPU 21 executes the process specified by the added converted PJL data. When the number of converted PJL data to be added is one, H=1.
[0030] The numerical value C shown in Figs. 6A to 6D indicates the number of the conversion mode to be applied to the acquired PJL data. For example, C=1 indicates that the acquired PJL data is converted by applying the conversion mode 1 (Fig. 4A). The numerical value G shown in Fig. 6E indicates the number of the conversion mode to be applied to the acquired PJL data. In this example, G=3 indicates the conversion mode 3 (deletion mode). In the conversion mode 3, when the acquired PJL data matches the pre-conversion PJL data of the conversion mode 3 set in the filter data 13, the acquired PJL data is deleted. The numerical value I shown in Fig. 6F indicates the number of the conversion mode to be applied to the acquired PJL data. In this example, I=4 indicates the conversion mode 4 (addition mode). In the conversion mode 4, when the acquired PJL data matches the pre-conversion PJL data of the conversion mode 4 set in the filter data 13, the converted PJL data associated with the pre-conversion PJL data is added to the other converted PJL data.
[0031] The numerical value D shown in FIGS. 6(B) to (D) indicates the number of converted PJL data after conversion (number of converted PJL data). For example, D=1 indicates that the number of converted PJL data after conversion is 1. The numerical value E shown in FIGS. 6(A) to (D) is a numerical value indicating which conversion mode the format of the converted PJL data corresponds to. For example, E=1 indicates that it is written in format 1 corresponding to conversion mode 1. Note that in the example shown in FIGS. 6(B) to (D), the numerical value C and the numerical value E indicate the same numerical value, but since the format in which the converted PJL data is written can be determined arbitrarily, the numerical value C and the numerical value E may be different.
[0032] Next, an example of a conversion rule for converting acquired PJL data into converted PJL data will be described with reference to Fig. 6. Conversion rule 1 (A=1) shown in Fig. 6(A) is a conversion rule in which conversion mode 1 is applied. Conversion rule 3 (A=3) shown in Fig. 6(B) is a conversion rule in which conversion mode 2 is applied. In addition, conversion rule 3 is associated with related rules 4 and 7 (indexes 4, 7 in the figure), which will be described later. The process in which the image forming device 10 sets the paper size to letter (LETTER) based on the converted PJL data "SET LPARM:PCL PAPER=LETTER" of conversion rule 3 is an example of a predetermined process or setting content change process of the present invention.
[0033] In addition, the conversion rule 4 (A = 4) shown in FIG. 5(A) is also a conversion rule to which the conversion mode 2 is applied. Further, the conversion rule 7 (A = 7) has an abbreviated element configuration in which the second and third elements are omitted and only the fourth element is present, and is a conversion rule for converting the abbreviated PJL data to which the conversion mode 2 is applied into abbreviated converted PJL data. The conversion rule 5 (A = 5) shown in FIG. 6(C) is a conversion rule to which the conversion mode 2 is applied. The conversion rule 5 is an example of a conversion rule for converting N (N ≧ 2) pieces of abbreviated PJL data into M (M < N) pieces of abbreviated converted PJL data. In the image forming apparatus before the update to the image forming apparatus 10, this conversion rule 5 requires obtaining N (N ≧ 2) pieces of abbreviated PJL data to execute one process, but in the updated image forming apparatus 10, it is applied when only M (M < N) pieces of abbreviated PJL data need to be obtained to execute the above one process.
[0034] The conversion rule 6 (A = 6) shown in FIG. 6(D) is a conversion rule to which the conversion mode 2 is applied. The conversion rule 6 is an example of a conversion rule for converting M (M < N) pieces of abbreviated PJL data into N (N ≧ 2) pieces of abbreviated converted PJL data. In the image forming apparatus before the update to the image forming apparatus 10, this conversion rule 6 only requires obtaining M (M < N) pieces of abbreviated PJL data to execute one process, but in the updated image forming apparatus 10, it is applied when N (N ≧ 2) pieces of abbreviated PJL data need to be obtained to execute the above one process. The staple process performed on the printed paper by the CPU 21 based on the converted PJL data "SET OUTBIN FINISHER" and "SET STAPLE ON" of the conversion rule 6 is an example of a predetermined process or a setting content change process of the present invention.
[0035] Conversion rule 8 (A=8) shown in FIG. 6(E) is a conversion rule to which conversion mode 3 (deletion mode) is applied. Conversion rule 8 is a conversion rule for deleting acquired PJL data when PJL data matching the pre-conversion PJL data is acquired. The image forming apparatus 10 does not execute a process of converting pre-conversion PJL data matching the deleted PJL data into converted PJL data. Conversion rule 9 (A=9) shown in FIG. 6(F) is a conversion rule to which conversion mode 4 (addition mode) is applied when at least one of PJL data and the PDL unit 32 (FIG. 2) is acquired from the information processing apparatus 40. The conversion rule 9 adds abbreviated converted PJL data of "SET DUPLEX ON" to the acquired data. As a result, the image forming apparatus 10 executes a process specified by the added converted PJL data, for example, double-sided printing. Note that the filter data 13 shown in FIG. 5(A) shows a part of the conversion rule, and a conversion rule other than that shown in the figure may be set in the filter data 13. The filter data 13 is an example of print function setting filter data of the present invention.
[0036] The filter data 13 includes associated pre-conversion PJL data, which is pre-conversion PJL data having data associated with the pre-conversion PJL data, and associated post-conversion PJL data, which is PJL data associated with the associated pre-conversion PJL data. For example, among the conversion rules set in the filter data 13, when comparing the pre-conversion PJL data to which conversion rule 3 is applied with the pre-conversion PJL data to which conversion rule 4 is applied, the two conversion rules are associated in that they have a third element, "LPARM:PCL", and a fourth element, "MEDIASIZE=LETTER". In other words, the two conversion rules share some of the data constituting the pre-conversion PJL data in common. That is, conversion rule 4 is an associated rule of conversion rule 3 in the sense that they have data associated with each other. Also, when comparing the pre-conversion PJL data to which conversion rule 3 is applied with the pre-conversion PJL data to which conversion rule 7 is applied, the two conversion rules are associated in that they have a fourth element, "MEDIASIZE". That is, conversion rule 7 is an associated rule of conversion rule 3. 6B, in the filter data 13, conversion rules 4 and 7 are associated with conversion rule 3 as related rules of conversion rule 3. The reference symbols “4, 7” in the drawing are indexes used by the CPU 21 to search for related rules of conversion rule 3.
[0037] As shown in FIG. 5A, the filter data 13 is set such that, except for the conversion rule 10, the pre-conversion PJL data consists only of "Command", and the conversion rules 1 and 2 are grouped to which the conversion mode 1 is applied, and the conversion rules 3 to 7 are grouped to which the conversion mode 2 is applied. The CPU 21 stores the filter data 13 so as to be set in the process of S12 described later. By arranging the conversion rules in this way, when the CPU 21 searches for pre-conversion PJL data that matches the acquired PJL data, it is sufficient to search for the same type of group as the acquired PJL data, and there is no need to search for other groups, so that the search time can be shortened compared to the case where the conversion rules are randomly arranged. Therefore, the conversion speed can be increased by the amount of the shortened search time. In addition, in the group of conversion rules 3 to 7 to which the conversion mode 2 is applied, the conversion rules 3 and 4 in which non-abbreviated PJL data is set as the pre-conversion PJL data are arranged first, followed by the conversion rules 5 to 7 in which abbreviated PJL data is set as the pre-conversion PJL data. CPU 21 stores the filter data in such an arrangement in the process of S12 described later. That is, CPU 21 rearranges filter data 13 and stores it in flash ROM 12 so that the determination of whether the acquired PJL data matches at least a part of the non-abbreviated PJL data is executed with priority over the determination of whether the acquired PJL data matches at least a part of the abbreviated PJL data. Therefore, when the acquired PJL data is non-abbreviated PJL data, there is no risk of the non-abbreviated PJL data being erroneously converted to abbreviated PJL data.
[0038] For example, filter data 50 shown in Fig. 5(B) is an example of recommended filter data, in which conversion rule R1 for converting non-abbreviated PJL data is placed at the beginning, and conversion rule R2 for converting abbreviated PJL data is placed after conversion rule R1. Filter data 51 shown in Fig. 5(C) is an example of non-recommended filter data, in which conversion rule R1 for converting abbreviated PJL data is placed at the beginning, and conversion rule R2 for converting non-abbreviated PJL data is placed after conversion rule R1. The non-abbreviated PJL data "SET ORGTRAY=1" and the converted PJL data "SET TRAY=STD" are each non-abbreviated PJL data, and the non-abbreviated PJL data "ORGTRAY" and the converted PJL data "TRAY" are each abbreviated PJL data.
[0039] Assume that the filter data 51 is used, and the PJL data acquired by the CPU 21 is "SET ORGTRAY=1". Since this "SET ORGTRAY=1" is non-abbreviated PJL data, it should be converted to non-abbreviated PJL data "SET TRAY=STD". The CPU 21 refers to the beginning of the filter data 51, and therefore refers to the conversion rule R1 to determine whether the acquired PJL data "SET ORGTRAY=1" matches "ORGTRAY". Here, since "ORGTRAY" among the data constituting "SET ORGTRAY=1" matches "ORGTRAY" in the conversion rule R1, the CPU 21 converts "ORGTRAY" among the data constituting "SET ORGTRAY=1" to "TRAY". As a result, the acquired PJL data "SET ORGTRAY=1" is converted to "SET TRAY=1". In other words, instead of the full PJL data "SET TRAY=STD" that should be converted, it is converted to the abbreviated PJL data "SET TRAY=1." As a result, the image forming device cannot execute the process specified by the acquired PJL data.
[0040] In the above example, in order to prevent conversion errors, as shown in filter data 50 in Fig. 5(B), "SET ORGTRAY=1" (PJL data before conversion) and "SET TRAY =STD" (PJL data after conversion) are associated as conversion rule R1, and "ORGTRAY" (PJL data before conversion) and "TRAY" (PJL data after conversion) are associated as conversion rule R2. In this case, CPU 21 refers to conversion rule 1 and determines that the acquired "SET ORGTRAY=1" matches the non-abbreviated PJL data "SET ORGTRAY=1" of conversion rule 1, so that the acquired "SET ORGTRAY=1" is correctly converted to the PJL data "SET TRAY=STD" after conversion.
[0041] Next, the main routine executed by the CPU 21 of the control unit 20 will be described with reference to Figs. 7 and 8. Below, the process executed by the CPU 21 when a print job 30 (Fig. 2) transmitted from the information processing device 40 (Fig. 1) is received will be described. The CPU 21 executes each process of the main routine and subroutines according to the program 24 stored in the ROM 23. In the following description, the steps of the process executed by the CPU 21 are abbreviated as S.
[0042] The CPU 21 judges whether or not the filter data 13 (FIG. 5(A)) has been saved in the flash ROM 12 (FIG. 1) (S1 in FIG. 7). If the CPU 21 judges that the filter data 13 has been saved in the flash ROM 12 (S1: Yes), the CPU 21 reads the filter data 13 from the flash ROM 12 and expands the read filter data 13 in the RAM 22 (FIG. 1) (S2). If the filter data 13 has been stored in the RAM 22 in advance, the CPU 21 can read the filter data 13 from the RAM 22 and expand the read filter data 13 in the RAM 22. The CPU 21 also assigns an index of the associated rule to a conversion rule having an associated rule among the filter data 13 read from the flash ROM 12 (S2). In the example shown in FIG. 5(A), since the associated rules 4 and 7 exist in the conversion rule 3, the indexes 4 and 7 are assigned to the conversion rule 3. The index may be a symbol other than a number as long as it can identify the associated rule, or may be a combination of a number and a symbol.
[0043] Next, CPU 21 acquires data from information processing device 40 (S3) and determines the type of the acquired data (S4). Next, CPU 21 determines whether the type of the acquired data is PJL data (S5), and if it is determined that the acquired PJL data is PJL data (S5: Yes), it determines whether the acquired PJL data is PJL data that is permitted to be converted into converted PJL data (S6). A list of PJL data that is prohibited from being converted is stored in flash ROM 12, and conversion is permitted if the acquired PJL data is not on that list.
[0044] For example, PJL data that instructs uploading a file stored in the image forming apparatus 10 onto a network, PJL data that instructs deleting a file, etc. can be included in a list of PJL data that is prohibited from being converted. In this way, when the image forming apparatus 10 is connected to a network such as the Internet, it is possible to prevent attacks from malicious individuals that result in uploading or deleting files. In other words, the security of the image forming apparatus 10 can be improved.
[0045] When the CPU 21 judges that the acquired PJL data is PJL data for which conversion is permitted (S6: Yes), it executes a PJL data conversion process (S7) which will be described later. Next, the CPU 21 analyzes the PJL data (S8) and judges whether or not the data D3 "@PJL ENTER LAMGUAGE=PCL XL" (FIG. 2) is detected (S9 in FIG. 8). If the CPU 21 judges that the data D3 "@PJL ENTER LAMGUAGE=PCL XL" is detected (S9: Yes), it judges whether or not the data written next to the data D3 "@PJL ENTER LAMGUAGE=PCL XL" is a PDL section 32 (FIG. 2) (S10). If the CPU 21 judges that the data is a PDL section 32 (S10: Yes), it judges whether or not additional converted PJL data exists in the filter data 13 (S15). The additional converted PJL data is converted PJL data to be added to the data acquired by the CPU 21. Here, if the CPU 21 determines that the PJL data to be added exists in the filter data 13 (S15: Yes), the CPU 21 acquires the PJL data to be added from the filter data 13 and adds the acquired PJL data to the data already acquired by the CPU 21 (S16). For example, the converted PJL data "SET DUPLEX ON" shown in Fig. 6(F) is added converted PJL data. This causes the image forming apparatus 10 to execute a process specified by the added converted PJL data, for example, double-sided printing.
[0046] Next, the CPU 21 executes the RIP process (S17) and executes the print process (S18). This print process (S18) is executed after the PJL data conversion process (S7) is executed, so that the instruction contents indicated by the PJL data converted by the PJL data conversion process can be reflected in the print process. In detail, if the converted PJL data converted by the PJL data conversion process is data instructing a change in the setting contents of the print function, the CPU 21 changes the setting contents of the print function according to the instruction, and executes printing based on the print function whose setting has been changed and the acquired PDL section 32. If the CPU 21 determines that the data is not the PDL section 32 (S10: No), it determines whether the data is the filter data 13 (S11), and if it determines that the data is the filter data 13 (S11: Yes), it executes the filter data R / W process (S12) described later. If CPU 21 determines that the data is not filter data 13 (S11: No), it determines whether the data is PCL filter data (S13), and if it determines that the data is PCL filter data (S13: Yes), it executes a PCL filter data R / W process (S14). In this PCL filter data R / W process, it executes a process of writing the acquired PCL filter data to flash ROM 12 and a process of reading the PCL filter data from flash ROM 12.
[0047] The PCL filter data is filter data for converting PCL data that is not a processing target in the image forming apparatus 10 into PCL data that is a processing target. If the CPU 21 determines that the acquired data is not PJL data (S5: No in FIG. 7), or if the CPU 21 determines that the acquired PJL data is not PJL data that allows conversion (S6: No), the process proceeds to S9 (FIG. 8). If the CPU 21 determines that the data D3 "@PJL ENTER LAMGUAGE=PCL XL" (FIG. 2) is not detected (S9: No), the process returns to S3 (FIG. 7) and acquires data. If the CPU 21 determines that the data is not PCL filter data (S13: No), the process ends the main routine. If the CPU 21 acquires PJL data in S3, S3 is an example of a PJL data acquisition process of the present invention. The PCL data is an example of data of a format different from the PJL data of the present invention, and the PCL filter data is an example of another filter data of the present invention.
[0048] Next, the PJL data conversion process executed by the CPU 21 in S7 of the main routine (FIG. 7) will be described with reference to FIG. 9. The CPU 21 judges whether the PJL data acquired in S3 of the main routine (FIG. 7) is PJL data consisting only of the second element "Command" (S20). If the CPU 21 judges that the PJL data consists only of "Command" (S20: Yes), it executes mode 1 PJL data conversion process (S21) to be described later, and if the CPU 21 judges that the PJL data does not consist only of "Command" (S20: No), it executes mode 2 PJL data conversion process (S22) to be described later. That is, as described above, the filter data 13 is set up by dividing the pre-conversion PJL data into a group consisting of "Command" only, conversion rules 1 and 2 to which conversion mode 1 is applied, and a group consisting of conversion rules 3 to 7 to which conversion mode 2 is applied. Therefore, by dividing the search target group and the processing routine depending on whether the acquired PJL data consists only of "Command", the CPU 21 can eliminate unnecessary searches and shorten the search time. Therefore, the conversion speed can be increased by the amount of the shortened search time.
[0049] Next, the mode 1 PJL data conversion process executed by the CPU 21 in S21 (FIG. 9) of the PJL data conversion process will be described with reference to FIG. 10. The CPU 21 sets the conversion rule number N of the conversion rule to be referenced to 1 (S30). The conversion rule number N is the number indicated by the symbol A in FIG. 5(A). Next, the CPU 21 refers to the conversion rule with conversion rule number N=1 (S31), and adds "1" to the conversion rule number N (S32).
[0050] Next, the CPU 21 judges whether the conversion rule number N being referred to is a conversion rule number indicating a conversion rule at the end of the filter data 13 (S33), and if it is judged that the conversion rule number is not a conversion rule at the end of the filter data 13 (S33: No), it judges whether the currently referred conversion rule is a conversion rule to which conversion mode 2 is applied (S34). Here, if the CPU 21 judges that the currently referred conversion rule is a conversion rule to which conversion mode 2 is applied (S34: Yes), it returns to the main routine. Also, if the CPU 21 judges that the currently referred conversion rule is not a conversion rule to which conversion mode 2 is applied (S34: No), it executes an acquired PJL data change process (S35) to be described later. In the example shown in FIG. 5(A), the conversion rule number indicating the conversion rule at the end of the filter data 13 is "10", but the conversion rule number indicating the conversion rule at the end of the filter data 13 differs depending on the number of conversion rules constituting the filter data 13. Next, the CPU 21 determines whether the PJL data acquired in S3 (FIG. 7) of the main routine has been converted (S36), and if it determines that the PJL data has been converted (S36: Yes), ends the mode 1 PJL data conversion process.
[0051] Also, when the CPU 21 judges that the conversion rule number N being referred to is the conversion rule number indicating the conversion rule at the end of the filter data 13 (S33: Yes), it returns to the main routine. Also, when the CPU 21 judges that the acquired PJL data has not been converted (S36: No), it executes S31 to judge whether the currently referred to conversion rule N is a conversion rule to which conversion mode 3 (deletion mode) is applied (S37). Here, when the CPU 21 judges that the conversion rule is a conversion rule to which conversion mode 3 is applied (S37: Yes), it judges whether the pre-conversion PJL data of the currently referred to conversion rule N matches the acquired PJL data (S38), and when it judges that they match (S38: Yes), it deletes the acquired PJL data (S39). For example, as shown in FIG. 6(E), when the acquired PJL data is PJL data called "MEDIACOLOR" set as the pre-conversion PJL data to be deleted in the conversion rule 8, the acquired PJL data is deleted. "MEDIACOLOR" is an example of the predetermined non-target PJL data of the present invention.
[0052] Next, the acquired PJL data conversion process executed by the CPU 21 in S35 (FIG. 10) of the mode 1 PJL data conversion process will be described with reference to FIG. 11. The CPU 21 sets the number of reference PJL data X to "1" (S50). The number of reference PJL data X is a number indicating which PJL data the CPU 21 refers to among the PJL data constituting the pre-conversion PJL data of the referenced conversion rule. Setting the number of reference PJL data X to "1" means that the first PJL data among the PJL data constituting the pre-conversion PJL data is the target for reference.
[0053] Next, the CPU 21 refers to the first (Xth) PJL data among the pre-conversion PJL data of the currently referred conversion rule (S51). Next, the CPU 21 judges whether the PJL data acquired in S3 (FIG. 7) of the main routine matches the first (Xth) PJL data of the pre-conversion PJL data of the currently referred conversion rule (S52). "Match" means that all the characters and symbols constituting one PJL data match. For example, assume that the acquired PJL data is "UNKNOWNINIT" and conversion rule 1 (A=1) is currently being referred to. As shown in FIG. 5(A), the pre-conversion PJL data of conversion rule 1 is only one PJL data called "UNKNOWNINIT", which matches the acquired PJL data "UNKNOWNINIT". Therefore, the CPU 21 determines that the acquired PJL data matches the pre-conversion PJL data of the currently referred conversion rule (S52: Yes).
[0054] Next, when the CPU 21 judges that the acquired PJL data matches the first piece of pre-conversion PJL data of the currently referred conversion rule (S52: Yes), it judges whether or not there is PJL data in the pre-conversion PJL data of the currently referred conversion rule that does not match the acquired PJL data (S53).Here, when the CPU 21 judges that there is no PJL data in the pre-conversion PJL data of the currently referred conversion rule that does not match the acquired PJL data (S53: No), it converts the acquired PJL data into post-conversion PJL data associated with the pre-conversion PJL data in the currently referred conversion rule (S58), and ends the judgment process of whether or not the acquired PJL data matches the pre-conversion PJL data of the currently referred conversion rule. In other words, the CPU 21 converts the pre-conversion PJL data that was the subject of judgment when it was determined in S52 that the acquired PJL data matches the PJL data in question, into post-conversion PJL data that is associated with the pre-conversion PJL data in the referenced conversion rule, and terminates the judgment process.
[0055] For example, assume that the acquired PJL data is "UNKNOWNINIT" and conversion rule 1 is referenced. The CPU 21 determines that there is no PJL data that does not match the acquired PJL data "UNKNOWNINIT" among the pre-conversion PJL data of the currently referenced conversion rule 1 (S53: No), and converts the acquired PJL data "UNKNOWNINIT" into post-conversion PJL data "INITALIZE" that is associated with the pre-conversion PJL data "UNKNOWNINIT" in the conversion rule 1 (S58). In this way, if the acquired PJL data is PJL data to which conversion mode 1 is applied, a group of conversion rules in which pre-conversion PJL data to which conversion mode 1 is applied is set as the pre-conversion PJL data among the filter data 13 is referenced, and pre-conversion PJL data that matches the acquired PJL data is searched and found from the referenced group, so that the search time can be shortened. Therefore, the processing speed for converting the pre-conversion PJL data to the post-conversion PJL data can be increased by the amount of the shortened search time.
[0056] Furthermore, when the CPU 21 determines that the pre-conversion PJL data of the currently referred conversion rule contains PJL data that does not match the acquired PJL data (S53: Yes), it executes a look-ahead process (FIG. 12) described later (S54) and searches for the presence of the non-matching PJL data in other acquired PJL data. For example, assume that the PJL data acquired by the CPU 21 is "UNKNOWNINIT" and conversion rule 10 is currently referred to. The pre-conversion PJL data of conversion rule 10 is composed of two PJL data, "UNKNOWNINIT" and "REBOOT", and "REBOOT" is PJL data that does not match the acquired "UNKNOWNINIT". In this case, the CPU 21 determines that the pre-conversion PJL data of the currently referred conversion rule 10 contains PJL data that does not match the acquired PJL data (S53: Yes).
[0057] Furthermore, if the CPU 21 determines that the acquired PJL data does not match the first (Xth) piece of pre-conversion PJL data of the currently referenced conversion rule (S52: No), it determines whether or not X, indicating that the Xth PJL data of the pre-conversion PJL data is currently being referenced, is equal to the number of pre-conversion PJL data (S56). The number of pre-conversion PJL data is the total number of PJL data constituting the pre-conversion PJL data of the referenced conversion rule. Here, if the CPU 21 determines that X is not equal to the number of pre-conversion PJL data (S56: No), it adds "1" to X (S57) and references the Xth piece of pre-conversion PJL data currently being referenced (S51).
[0058] For example, assume that the acquired PJL data is "REBOOT" and refers to conversion rule 10 (A=10). The pre-conversion PJL data of conversion rule 10 has PJL data "UNKNOWNINIT" as the first item and PJL data "REBOOT" as the second item. Therefore, CPU 21 determines that the acquired PJL data "REBOOT" does not match the first pre-conversion PJL data "UNKNOWNINIT" of conversion rule 10 (S52: No). Next, CPU 21 determines that "1 (X=1)" is not equal to the number of pre-conversion PJL data "2" (S56: No), and adds "1" to X to make X=2 (S57). Next, CPU 21 refers to the second (X=2) PJL data "REBOOT" of conversion rule 10 (S51).
[0059] Next, CPU 21 determines that the acquired PJL data "REBOOT" matches the second pre-conversion PJL data "REBOOT" of the referenced conversion rule 10 (S52: Yes). Next, CPU 21 determines that PJL data "UNKNOWNINIT" that does not match the acquired PJL data "REBOOT" is present among the pre-conversion PJL data "UNKNOWNINIT" and "REBOOT" of the referenced conversion rule 10 (S53: Yes). In the next look-ahead process, a search is performed to determine whether this mismatched PJL data "UNKNOWNINIT" exists in the PJL data acquired by CPU 21.
[0060] Furthermore, when CPU21 judges that X is equal to the number of pre-conversion PJL data (S56: Yes), it ends the acquired PJL data conversion process. In other words, the state in which the acquired PJL data does not match the X-th piece of pre-conversion PJL data of the currently referenced conversion rule, and X is equal to the number of pre-conversion PJL data, indicates that no matching PJL data exists even after all comparisons between the acquired PJL data and the X pieces of PJL data indicating the pre-conversion PJL data of the currently referenced conversion rule have been performed, and therefore the acquired PJL data conversion process ends. S52 executed by CPU21 is an example of the judgment process of the present invention.
[0061] Next, the look-ahead process executed by the CPU 21 in S54 (FIG. 11) of the acquired PJL data conversion process will be described with reference to FIG. 12. In the look-ahead process, when it is determined in S53 (FIG. 11) of the acquired PJL data conversion process that PJL data that does not match the acquired PJL data exists in the pre-conversion PJL data of the conversion rule being referenced, the process searches for the non-matching PJL data from among the acquired PJL data. Hereinafter, the non-matching PJL data will be referred to as non-matching PJL data.
[0062] The CPU 21 refers to the read-ahead data (S60). The read-ahead data is data that the CPU 21 determines whether or not it matches the mismatched data. For example, the CPU 21 refers to the first line of PJL data among multiple lines of PJL data that have already been acquired as the read-ahead data (S60). Next, CPU 21 judges whether the referenced read-ahead data is the end of the acquired data (S61), and if it is determined that it is not the end (S61: No), it judges whether the referenced read-ahead data is PJL data described as "ENTER LAMGUAGE" (for example, data D3 "@PJL ENTER LAMGUAGE=PCL XL" (FIG. 2(A)) (S62). Here, if CPU 21 determines that the referenced read-ahead data is not PJL data described as "ENTER LAMGUAGE" (S62: No), it judges whether the referenced read-ahead data is PDL section 32 (FIG. 2(A)) (S63), and if it is determined that it is not PDL section 32 (S63: No), it judges whether the referenced read-ahead data matches the mismatched PJL data (S64).
[0063] Here, if the CPU 21 determines that the referenced read-ahead data does not match the unmatched PJL data (S64: No), it references the data of the next line (S65) and executes S61 to S64. If the CPU 21 determines that the referenced read-ahead data matches the unmatched PJL data (S64: Yes), it stores the read-ahead data that was the subject of this determination in the RAM 22 (FIG. 1) (S66). For example, if the unmatched data is "UNKNOWNINIT" and the read-ahead data when the data of the second line is referenced is PJL data in which "UNKNOWNINIT" is written, the CPU 21 stores the read-ahead data "UNKNOWNINIT" in the RAM 22. Furthermore, if the CPU 21 determines in the look-ahead process (FIG. 12) that this is the end of the data (S61: Yes), or that the PJL data describes "ENTER LAMGUAGE" (S62: Yes), or that the PDL section 32 is included (S63: Yes), the CPU 21 ends the look-ahead process and returns to the acquired PJL data conversion process (FIG. 11). S64 executed by the CPU 21 is an example of the determination process of the present invention.
[0064] In S55 (FIG. 11) of the acquired PJL data conversion process described above, the CPU 21 determines whether or not the read-ahead data has been saved (S55), and if it determines that the data has been saved (S55: Yes), the CPU 21 refers to a conversion rule having pre-conversion PJL data consisting of the Xth pre-conversion PJL data that was the subject of determination in S52 when it was determined that the acquired PJL data matches the Xth piece of pre-conversion PJL data of the referenced conversion rule, and the read-ahead data saved in S66 (FIG. 12) of the read-ahead process, that is, the conversion rule referenced in S31 (FIG. 10) that caused the affirmative determination in S53, and converts the acquired PJL data into post-conversion PJL data that corresponds to the pre-conversion PJL data in the conversion rule (S58).
[0065] For example, assume that the acquired PJL data is "REBOOT", conversion rule 10 is referred to in S31, and the PJL data that is the subject of judgment when it is determined in S52 that the acquired PJL data matches the X-th piece of pre-conversion PJL data of the referred conversion rule is "REBOOT" of conversion rule 10, and the pre-read data saved in S66 (FIG. 12) of the pre-read process is "UNKNOWNINIT". CPU 21 refers to a conversion rule having pre-conversion PJL data consisting of "REBOOT" and "UNKNOWNINIT", that is, conversion rule 10 referred to in S31 (FIG. 5(A)), and converts the acquired PJL data "UNKNOWNINIT" and "REBOOT" into post-conversion PJL data "INTIALIZE" that is associated in conversion rule 10 with the pre-conversion PJL data "UNKNOWNINIT" and "REBOOT". Moreover, when the CPU 21 determines that the read-ahead data has not been saved (S55: No), it ends the acquired PJL data conversion process and returns to the mode 1 PJL data conversion process.
[0066] As in the above-mentioned conversion rule 10, when the pre-conversion PJL data consists of one set of PJL data (two in the above example), it is assumed that PJL data matching one of the set has been acquired, but it is unclear whether PJL data matching the remaining PJL data has already been acquired. In such a case, by executing the above-mentioned look-ahead processing, it is possible to search and find whether PJL data matching the remaining PJL data exists in the acquired PJL data. Therefore, even if PJL data matching each of the multiple PJL data constituting the pre-conversion PJL data is transmitted from the information processing device 40 at different lines, that is, at different times, it is possible to finally find the pre-conversion PJL data matching the multiple transmitted PJL data, and therefore the pre-conversion PJL data can be accurately converted into the post-conversion PJL data. S58 executed by the CPU 21 is an example of the conversion processing of the present invention.
[0067] Next, the mode 2 PJL data conversion process executed by CPU 21 in S22 (FIG. 9) of the PJL data conversion process will be described with reference to FIGS. 13 and 14. CPU 21 sets the conversion rule number N of the conversion rule to be referred to to 1 (S70). Next, CPU 21 refers to conversion rule 1 with conversion rule number N=1 (S71) and adds "1" to conversion rule number N (S72). Next, CPU 21 determines whether conversion rule number N is a conversion rule number indicating a conversion rule at the end of filter data 13 (S73), and if it is determined that the conversion rule number is not a conversion rule number indicating a conversion rule at the end of filter data 13 (S73: No), it determines whether the conversion rule of the conversion rule number N being referred to is a conversion rule to which conversion mode 2 has been applied (S74).
[0068] Here, if the CPU 21 determines that the conversion rule being referred to is a conversion rule to which conversion mode 2 has been applied (S74: Yes), it determines whether the pre-conversion PJL data of the conversion rule being referred to is completely identical to the acquired PJL data (S75). Completely identical here means that all the characters and symbols of the elements that make up the PJL data are identical without any difference. Here, if the CPU 21 determines that there is a complete match (S75: Yes), it converts the acquired PJL data into post-conversion PJL data that is associated with the pre-conversion PJL data in the conversion rule being referred to (S76). For example, if the acquired PJL data is "SET LPARM:PCL MEDIASIZE LETTER" and the pre-conversion PJL data of the referenced conversion rule 3 (N=3) is "SET LPARM:PCL MEDIASIZE LETTER" (FIG. 5(A)), the CPU 21 converts the acquired PJL data "SET LPARM:PCL MEDIASIZE LETTER" to the post-conversion PJL data "SET LPARM:PCL PAPER LETTER" that corresponds to the pre-conversion PJL data in the conversion rule 3 (S76). In this way, if the acquired PJL data is PJL data to which conversion mode 2 is applied, a group of conversion rules in which pre-conversion PJL data to which conversion mode 2 is applied is set as the pre-conversion PJL data among the filter data 13 is referenced, and pre-conversion PJL data that matches the acquired PJL data is searched and found from the referenced group, so that the search time can be shortened. Therefore, the processing speed for converting the pre-conversion PJL data to the post-conversion PJL data can be increased by the amount of the shortened search time. S75 executed by the CPU 21 is an example of a determination process of the present invention, and S76 executed by the CPU 21 is an example of a conversion process of the present invention.
[0069] Furthermore, if the CPU 21 determines that the pre-conversion PJL data of the referenced conversion rule does not completely match the acquired PJL data (S75: No), it determines whether or not the required elements in the pre-conversion PJL data of the referenced conversion rule match the acquired PJL data (S77). The required element is the fourth element, which cannot be omitted, among the first to fourth elements constituting the PJL data to which conversion mode 2 is applied. For example, if the acquired PJL data is "SET LPARM:PCL MEDIASIZE LETTER", the fourth element "MEDIASIZE" is a required element.
[0070] Here, when the CPU 21 determines that the required elements in the pre-conversion PJL data of the conversion rule being referred to match the acquired PJL data (S77: Yes), it determines whether or not the referenced conversion rule has an associated rule (S78). Here, when the CPU 21 determines that the referenced conversion rule has an associated rule (S78: Yes), it refers to associated rule M (S79 in FIG. 14). For example, if the acquired PJL data is "DEFAULT LPARM:PCL MEDIASIZE LETTER" and conversion rule 3 with conversion rule number 3 (N=3) is referenced, the pre-conversion PJL data of conversion rule 3 is "SET LPARM:PCL MEDIASIZE LETTER" (FIG. 5(A)), and the two match in the fourth element "MEDIASIZE", which is a required element, so the CPU 21 determines that the required elements in the pre-conversion PJL data of the referenced conversion rule match the acquired PJL data (S77: Yes). Next, since related rules 4 and 7 are associated with conversion rule 3 (FIG. 5A), the CPU 21 determines that a related rule exists for conversion rule 3 (S78: Yes), and refers to related rule 4 (S79).
[0071] Next, the CPU 21 judges whether the acquired PJL data and the pre-conversion PJL data of the related rule M completely match (S80 in FIG. 14), and if it is judged that they completely match (S80: Yes), it converts the acquired PJL data to the post-conversion PJL data associated with the pre-conversion PJL data in the related rule M (S81). For example, if the acquired PJL data is "DEFAULT LPARM:PCL MEDIASIZE LETTER" and the referenced related rule M is related rule 4 (M=4), the pre-conversion PJL data of the related rule 4 is "DEFAULT LPARM:PCL MEDIASIZE LETTER", which matches the acquired PJL data. Therefore, the CPU 21 converts the acquired PJL data "DEFAULT LPARM:PCL MEDIASIZE LETTER" to the post-conversion PJL data "SET LPARM:PCL PAPER LETTER" (FIG. 5(A)) associated with the pre-conversion PJL data in the related rule 4. The step S81 executed by the CPU 21 is an example of the conversion process of the present invention.
[0072] Also, when the CPU 21 judges that the acquired PJL data does not completely match the pre-conversion PJL data of the related rule M (S80: No), it judges whether or not all related rules M associated with the conversion rule N referred to in S71 have been referred to (S82), and when it judges that all related rules M have been referred to (S82: Yes), it returns to S76 (FIG. 13). That is, even if the pre-conversion PJL data of the referred conversion rule does not completely match the acquired PJL data (S75: No), the essential elements in the pre-conversion PJL data of the referred conversion rule match the acquired PJL data (S77: Yes), which indicates that either the acquired PJL data or the referred pre-conversion PJL data is abbreviated PJL data. Also, the state of negation in S82 indicates a state in which no related rule having pre-conversion PJL data matching the acquired PJL data was found even if all related rules M were referred to. Therefore, the CPU 21 converts the acquired PJL data into post-conversion PJL data that is associated in the conversion rule that references the pre-conversion PJL data that matches the acquired PJL data (S76). In this way, even if the acquired PJL data is abbreviated PJL data and an association rule M having matching pre-conversion PJL data is not found, the acquired PJL data can be converted into post-conversion PJL data. Furthermore, if the CPU 21 determines that all association rules M have not been referenced (S82: No), it refers to the next association rule M (S79).
[0073] For example, assume that the second and third elements are omitted from the acquired PJL data, and only the fourth element "MEDIASIZE" is included, and conversion rule 3 is referenced. CPU 21 determines that the pre-conversion PJL data of conversion rule 3 is "SET LPARM:PCL MEDIASIZE LETTER", and that the required element "MEDIASIZE" matches the acquired PJL data (S77: Yes), and determines that related rule 4 exists in conversion rule 3 (S78: Yes). Next, CPU 21 refers to related rule 4 (S79 in FIG. 14), and determines that related rule 4 does not completely match the pre-conversion PJL data of related rule 4 "DEFAULT LPARM:PCL MEDIASIZE LETTER" (S80: No). Next, CPU 21 determines that not all related rules M have been referenced, since related rule 7 exists in addition to related rule 4 in the referenced conversion rule 3 (FIG. 5(A)) (S82: No), and refers to the next related rule 7 (S79). Next, CPU 21 determines that the acquired PJL data "MEDIASIZE" matches the pre-conversion PJL data "MEDIASIZE" of association rule 7 (S80: Yes), and converts the acquired PJL data "MEDIASIZE" to post-conversion PJL data "PAPER" that is associated in association rule 7 with the pre-conversion PJL data "MEDIASIZE" that matches the acquired PJL data (S81). S80 executed by CPU 21 is an example of the determination process of the present invention. Furthermore, the pre-conversion PJL data "MEDIASIZE" of association rule 7 is an example of non-related PJL data of the present invention, and the post-conversion PJL data "PAPER" of association rule 7 is an example of related PJL data of the present invention.
[0074] Furthermore, if the CPU 21 determines that the conversion rule being referred to is not a conversion rule to which conversion mode 2 has been applied (S74: No in FIG. 13), it determines whether the conversion rule being referred to is a conversion rule to which conversion mode 3 (deletion mode) has been applied (S83 in FIG. 14). If the CPU 21 determines that the conversion rule is a conversion rule to which conversion mode 3 has been applied (S83: Yes), it determines whether the acquired PJL data matches the pre-conversion PJL data of the conversion rule being referred to (S84), and if it determines that they match (S84: Yes), it deletes the acquired PJL data (S85).
[0075] Also, when the CPU 21 judges that the conversion rule number N of the referred conversion rule is the conversion rule number indicating the conversion rule at the end of the filter data 13 (S73: Yes in FIG. 13), it returns to the main routine. Also, when the CPU 21 judges that the essential elements in the pre-conversion PJL data of the referred conversion rule do not match the acquired PJL data (S77: No), it refers to the conversion rule with the conversion rule number (N+1) (S71) and executes S72 to S87. Also, when the CPU 21 judges that the referred conversion rule does not have an associated rule (S78: No), it returns to S76 (FIG. 13). In other words, the fact that the pre-conversion PJL data of the referred conversion rule does not completely match the acquired PJL data (S75: No), but the essential elements in the pre-conversion PJL data of the referred conversion rule match the acquired PJL data (S77: Yes) indicates that either the acquired PJL data or the referred pre-conversion PJL data is an abbreviated PJL data. Therefore, the CPU 21 converts the acquired PJL data into the converted PJL data that corresponds to the pre-conversion PJL data that matches the acquired PJL data in the conversion rule that is being referenced (S76). Therefore, even if the acquired PJL data is abbreviated PJL data, it can be converted into the converted PJL data.
[0076] If the CPU 21 determines that the conversion rule being referred to is not a conversion rule to which conversion mode 3 (deletion mode) is applied (S83: No), or if the acquired PJL data does not match the pre-conversion PJL data of the conversion rule being referred to (S84: No), the CPU 21 refers to the conversion rule with conversion rule number (N+1) (S71) and executes S72 to S87. If the CPU 21 determines that the additional post-conversion PJL data does not exist in the filter data 13 (S86: No), the CPU 21 ends the mode 2 PJL data conversion process and returns to the main routine.
[0077] As described above, every time the CPU 21 acquires one piece of PJL data, the CPU 21 executes a determination process for each piece of pre-conversion PJL data associated with the converted PJL data by the filter data 13 to determine whether the acquired piece of PJL data matches any of the pre-conversion PJL data associated with the converted PJL data by the filter data 13 stored in the flash ROM 12. Furthermore, when the CPU 21 finds pre-conversion PJL data that matches the acquired PJL data as a result of the determination that the acquired piece of PJL data matches any of the pre-conversion PJL data associated with the converted PJL data by the filter data 13 stored in the flash ROM 12 for all of the pre-conversion PJL data set in each conversion rule, the CPU 21 executes a conversion process for converting the acquired PJL data into the pre-conversion PJL data associated with the pre-conversion PJL data in the filter data 13 stored in the flash ROM 12.
[0078] Next, the filter data R / W process executed by the CPU 21 in S13 (FIG. 8) of the main routine will be described with reference to FIG. 15. The CPU 21 judges whether the acquired data is data instructing to read the filter data 13 (hereinafter referred to as read instruction data) or data instructing to write the filter data 13 (hereinafter referred to as write instruction data) (S90). If the CPU 21 judges that the acquired data is read instruction data (S90: Read), it analyzes the name of the filter data to be read, which is indicated by the read instruction data (S91), and judges whether the read instruction data includes transmission address information indicating a transmission destination (S92).
[0079] Here, if CPU 21 determines that transmission address information exists (S92: Yes), it determines a transmission destination based on the transmission destination address information (S93). Next, CPU 21 determines whether filter data 13 has been saved in flash ROM 12 (S94), and if it determines that filter data 13 has been saved (S94: Yes), it reads filter data 13 from flash ROM 12 and transmits the read filter data 13 to the transmission destination determined in S93 (S95). For example, if the address of information processing device 40 (FIG. 1) is set in filter data 13 as transmission destination address information, filter data 13 read from flash ROM 12 is transmitted to information processing device 40 via LAN line L1.
[0080] Furthermore, if CPU 21 determines that filter data 13 does not contain transmission address information (S92: No) and determines that filter data 13 has already been saved in flash ROM 12 (S94: Yes), it transmits filter data 13 to a default destination not specified by the transmission address information (S95). Furthermore, if CPU 21 determines that filter data 13 has not already been saved in flash ROM 12 (S94: No), it transmits an error (S96). For example, message data stating "No filter data exists" is transmitted as an error. If a destination was determined in S93, the error is transmitted to that destination, and if a destination was not determined, the error is transmitted to the default destination.
[0081] Furthermore, when the CPU 21 determines that the acquired data is write instruction data (S90: Write), it analyzes the name of the filter data to be written, which is indicated by the write instruction data (S97). Next, the CPU 21 determines whether or not filter data identical to the filter data name to be written has already been saved in the flash ROM 12 (S98), and when it determines that the filter data has already been saved (S98: Yes), it discards the filter data 13 saved in the flash ROM 12 (S99). Next, the CPU 21 rearranges the filter data acquired in S3 (FIG. 7) of the main routine into a group of conversion rules to which conversion mode 1 is applied and a group of conversion rules to which conversion mode 2 is applied (S100), and arranges the conversion rules to which conversion mode 1 is applied from the top, and arranges the conversion rules for abbreviated PJL data to which conversion mode 2 is applied after the conversion rules for non-abbreviated PJL data (S101). Next, the CPU 21 writes the filter data to the flash ROM 12 (S102). Note that CPU 21 can also write the filter data to RAM 22. In this format, the filter data written to RAM 22 is erased when image forming apparatus 10 is powered off, but this format is effective in an image forming system in which image forming apparatus 10 is always powered on, or in an image forming system in which filter data is written every time the power is turned on.
[0082] Next, the CPU 21 executes an associated rule filter data construction process (S103), which will be described later. Next, the CPU 21 reads out filter data from the flash ROM 12, and loads the read out associated rule filter data in the RAM 22 (FIG. 1) (S104). Next, the CPU 21 reads out associated rule filter data from the flash ROM 12, and loads the read out associated rule filter data in the RAM 22 (S105). If the CPU 21 determines that filter data having the same name as the filter data to be written has not been saved in the flash ROM 12 (S98: No), the CPU 21 executes S100 to S105. S100 executed by the CPU 21 is an example of a storage process of the present invention. If the CPU 21 acquires filter data in S3 (FIG. 7), S3 is an example of a filter data acquisition process of the present invention. The process in which the CPU 21 reads out filter data 13 from the flash ROM 12 in S95 is an example of an output process of the present invention.
[0083] Next, the associated rule filter data construction process executed by the CPU 21 in S101 (FIG. 15) of the filter data R / W process will be described with reference to Fig. 16. The CPU 21 sets the conversion rule number N of the conversion rule to be referred to to 1 (S110), judges whether the conversion rule number N of the conversion rule to be referred to is the conversion rule number indicating the conversion rule at the end of the filter data 13 (S111), and if it is judged that the conversion rule number N of the conversion rule to be referred to is not the conversion rule number indicating the conversion rule at the end of the filter data 13 (S111: No), it acquires the conversion rule N from the filter data 13 (FIG. 5(A)) (S112).
[0084] Next, CPU 21 adds "1" to conversion rule number N of conversion rule N acquired in S112 and sets value M as the conversion rule number of comparison rule M (S113). The comparison rule is a conversion rule to be compared with conversion rule N acquired in S112. For example, if conversion rule N acquired in S112 is conversion rule 3 (N=3), CPU 21 sets M=4 (=3+1) as the conversion rule number of comparison rule M (S113). Next, CPU 21 determines whether M set in S113 is a conversion rule number indicating a conversion rule at the end of filter data 13 (S114), and if it is determined that M is not a conversion rule number indicating a conversion rule at the end of filter data 13 (S114: No), CPU 21 acquires comparison rule M (conversion rule with conversion rule number M) from filter data 13 (S116).
[0085] Next, CPU 21 determines whether the conversion mode of conversion rule N acquired in S112 matches the conversion mode of comparison rule M acquired in S116 (S117), and if it is determined that they match (S117: Yes), it determines whether the essential elements of the pre-conversion PJL data of conversion rule N acquired in S112 match the essential elements of the pre-conversion PJL data of comparison rule M acquired in S116 (S118). Here, if it is determined that they match (S118: Yes), CPU 21 adds comparison rule M acquired in S116 to filter data 13 as related rule M of conversion rule N acquired in S112 (S119).
[0086] For example, suppose that the conversion rule N acquired in S112 is conversion rule 3 (N=3) and the comparison rule M is conversion rule 4 (M=4). The conversion modes of conversion rule 3 and conversion rule 4 are both conversion mode 2 (FIG. 5(A)), and the conversion modes of conversion rule 3 and conversion rule 4 match (S117: Yes). In addition, the required element of the pre-conversion PJL data of conversion rule 3 and conversion rule 4 is the fourth element "MEDIASIZE" (FIG. 5(A)), and the required element of the pre-conversion PJL data of conversion rule 3 and conversion rule 4 match (S118: Yes). Therefore, the CPU 21 adds conversion rule 4 to the filter data 13 as related rule 4 of conversion rule 3 (S119). As shown in FIG. 5(A), related rule 4 is added to the filter data 13 in such a manner that it is associated with conversion rule 3.
[0087] Next, CPU 21 adds "1" to conversion rule number M of comparison rule M (S120), and executes S114 to S120. For example, if the related rule M added in S119 of the previous processing routine was conversion rule 4, CPU 21 acquires conversion rule 5 with conversion rule number 5 (=4+1) from the filter data (S116). As shown in FIG. 5(A), the conversion mode of conversion rule 5 is conversion mode 2, which is the same as conversion rule 3, so CPU 21 determines that the conversion mode of conversion rule 3 acquired in S112 matches the conversion mode of conversion rule 5 (S117: Yes). However, the required element of the pre-conversion PJL data of conversion rule 5 is the fourth element "MEDIATYPE", which is different from "MEDIASIZE" of conversion rule 3, so CPU 21 determines that the required element of the pre-conversion PJL data of conversion rule 3 does not match the required element of the pre-conversion PJL data of conversion rule 5 (S118: No). Therefore, the CPU 21 does not add the conversion rule 5 to the filter data 13 as a related rule to the conversion rule 3 .
[0088] Furthermore, when conversion rule 7 is acquired as comparison rule M, the conversion mode of conversion rule 7 is conversion mode 2, so CPU 21 determines that the conversion mode of conversion rule 3 acquired in S112 matches the conversion mode of conversion rule 7 (S117: Yes). Then, the required element of the pre-conversion PJL data of conversion rule 7 is the fourth element "MEDIASIZE", which is the same as "MEDIASIZE" of conversion rule 3, so CPU 21 determines that the required element of the pre-conversion PJL data of conversion rule 3 matches the required element of the pre-conversion PJL data of conversion rule 7 (S118: Yes). Therefore, CPU 21 adds conversion rule 7 to filter data 13 as associated rule 7 of conversion rule 3 (S119). As shown in FIG. 5(A), associated rule 7 is added to filter data 13 in association with conversion rule 3.
[0089] Furthermore, if the CPU 21 determines that the conversion rule number M set in S113 is the conversion rule number indicating the conversion rule at the end of the filter data (S114: Yes), it adds "1" to the conversion rule number N (S115) and constructs associated rule filter data for the conversion rule with the conversion rule number (N+1). If the CPU 21 determines that the conversion rule number (N+1) of the conversion rule to be referred to is not the conversion rule number indicating the conversion rule at the end of the filter data 13 (S111: No), it acquires the conversion rule with the conversion rule number (N+1) from the filter data (S112). Then, the CPU 21 sets the value obtained by adding "1" to the conversion rule number (N+1) of the conversion rule N acquired in S112 as the conversion rule number of the comparison rule M (S113). Thereafter, CPU 21 executes the above-mentioned S114 to S120, and if there is an associated comparison rule M for the conversion rule with conversion rule number (N+1), adds that comparison rule M to filter data 13 as an associated rule M for the conversion rule with conversion rule number (N+1) (S119).
[0090] That is, the CPU 21 executes S111 to S120 for each conversion rule constituting the filter data 13, and if there is a comparison rule related to a conversion rule, adds the comparison rule as an associated rule of the conversion rule to the filter data 13. Furthermore, if the CPU 21 determines that the conversion rule number N of the conversion rule to be referenced is the conversion rule number indicating the conversion rule at the end of the filter data 13 (S111: Yes), it saves the associated rule filter data indicating the associated rule added in S119 in the flash ROM 12 (S120), and returns to the filter data R / W processing (FIG. 15).
[0091] [Effects of the embodiment] (1) According to the above-described embodiment, even if the PJL data acquired from the information processing device 40 is PJL data that has been used for an image forming device other than the image forming device 10 and cannot be executed in the image forming device 10, the PJL data can be converted into PJL data that can be executed in the image forming device 10. Therefore, the administrator of the image forming system having the information processing device 40 and the image forming device 10 does not need to re-create the PJL data that was used before the image forming device was updated to the image forming device 10 in accordance with the specifications of the image forming device 10. In other words, according to the above-described embodiment, since it is not necessary to re-construct the image forming system having the information processing device 40 and the image forming device 10, the burden on the administrator can be reduced.
[0092] (2) Furthermore, according to the embodiment described above, since filter data 13 can be read out from flash ROM 12 and output, for example, the output filter data 13 can be edited. (3) Furthermore, according to the embodiment described above, filter data 13 can be read from flash ROM 12 and the read filter data 13 can be transmitted to a predetermined destination. Therefore, for example, filter data 13 can be used in the image forming device of the predetermined destination.
[0093] (4) Furthermore, according to the embodiment described above, the CPU 21 can convert the acquired PJL data into converted PJL data regardless of whether the acquired PJL data is non-abbreviated PJL data or abbreviated PJL data. Furthermore, according to the embodiment described above, the CPU 21 can write the filter data 13 into the flash ROM 12 so that the conversion rules for non-abbreviated PJL data to which conversion mode 1 is applied are arranged from the beginning, and the abbreviated PJL data to which conversion mode 2 is applied are arranged after the conversion rules for non-abbreviated PJL data. Therefore, when the PJL data acquired by the CPU 21 is non-abbreviated PJL data, there is no risk of it being erroneously converted into abbreviated PJL data.
[0094] (5) Furthermore, according to the embodiment described above, when the CPU 21 determines that there is no PJL data that does not match the acquired PJL data among the pre-conversion PJL data of the currently referenced conversion rule (S53: No), it converts the acquired PJL data into post-conversion PJL data that is associated with the pre-conversion PJL data in the filter data 13 (S58), and ends the process of determining whether the acquired PJL data matches the non-abbreviated PJL data of the currently referenced conversion rule. Therefore, it is possible to improve the conversion process speed for converting the acquired PJL data into post-conversion PJL data that is associated with the pre-conversion PJL data in the conversion rule.
[0095] (6) Further, according to the above-described embodiment, the CPU 21 determines whether it matches the acquired PJL data in order from the head (conversion rule 1) to the end (conversion rule 10) of the filter data 13. When it is determined that it does not completely match the acquired PJL data, if an index of a related rule is associated with the conversion rule that is the target of the determination, it skips to the conversion rule (related rule) indicated by the index, and makes a determination with the skipped conversion rule (related rule) as the determination target. Therefore, since the CPU 21 can skip the determination target based on the index associated with the conversion rule, compared with the process of making determinations in order from conversion rule 1 to conversion rule 10, the time required to find a matching conversion rule can be shortened. That is, accordingly, the conversion processing speed required to convert the acquired PJL data into the converted PJL data can be improved.
[0096] (7) Further, according to the above-described embodiment, in the image forming apparatus before updating the image forming apparatus 10, it was necessary to acquire N (N≥2) pieces of PJL data in order to execute one process. However, in the updated image forming apparatus 10, when it is sufficient to acquire M (M<N) pieces of PJL data in order to execute the above one process, by executing the acquired PJL data conversion process (FIG. 11), the acquired N pieces of PJL data can be converted into M pieces of converted PJL data.
[0097] (8) Further, according to the above-described embodiment, in the image forming apparatus before updating the image forming apparatus 10, it was necessary to acquire PJL data composed of N (N≥2) pieces of data in order to execute one process. However, in the updated image forming apparatus, when it is sufficient to acquire PJL data composed of M (M<N) pieces of data in order to execute the above one process, the pre-conversion PJL data composed of N pieces of data can be converted into the post-conversion PJL data composed of M pieces of data. (9) Further, according to the above-described embodiment, in the image forming apparatus before updating the image forming apparatus 10, in order to execute one process, it was only necessary to acquire PJL data composed of M pieces of data (M < N), but in the image forming apparatus after updating, when it is necessary to acquire PJL data composed of N pieces of data (N ≧ 2) in order to execute the above one process, the PJL data composed of M pieces of data can be converted into converted PJL data composed of N pieces of data.
[0098] (10) Further, according to the above-described embodiment, when the PJL data acquired by the CPU 21 is PJL data to which conversion mode 1 is applied and only matches one of the plurality of pre-conversion PJL data in the referenced conversion rule, it is possible to check whether the non-matching PJL data exists in the already acquired PJL data or perform a pre-reading process. Then, when the matching PJL data is found by the pre-reading process, the PJL data obtained by combining the found PJL data and the PJL data determined to match in the previous process can be converted into the pre-conversion PJL data that matches the combined PJL data and the converted PJL data associated therewith in the above-referenced conversion rule. That is, according to the above-described embodiment, in the image forming apparatus before updating the image forming apparatus 10, two pieces of PJL data to which conversion mode 1 is applied were required to execute a certain process, but in the updated image forming apparatus 10, when only one piece of PJL data to which conversion mode 1 is applied is required to execute the above process, when one of the two pieces of PJL data is acquired, it is possible to check whether the other piece of PJL data has already been acquired or find it by pre-reading, so that the two acquired pieces of PJL data can be accurately converted.
[0099] (11) Further, according to the above-described embodiment, since the printing process (S16) is executed after the PJL data conversion process (S7) is executed, the instruction content indicated by the PJL data converted by the PJL data conversion process can be reflected in the printing process. (12) Furthermore, according to the embodiment described above, filter data 13 associates pre-conversion PJL data with converted PJL data that instructs a change to the settings of the print function. Therefore, it is possible to change the settings of the print function without changing the PJL data that was used in the image forming device before it was updated to image forming device 10.
[0100] (13) Furthermore, according to the embodiment described above, when the CPU 21 determines that the additionally converted PJL data exists in the filter data 13 (S15 in FIG. 8: Yes), the CPU 21 acquires the additionally converted PJL data from the filter data 13 and adds the acquired additionally converted PJL data to the data acquired by the CPU 21 (S16 in FIG. 8). Therefore, according to the embodiment described above, even if a new function is added to the image forming device 10, the information processing device 40 that transmits the print job 30 to the image forming device 10 can cause the new function to be executed without transmitting converted PJL data for executing the new function to the image forming device 10.
[0101] (14) Furthermore, according to the embodiment described above, when the CPU 21 determines that the conversion rule to which conversion mode 3 (deletion mode) is applied (S37: Yes in FIG. 10), the CPU 21 determines whether the pre-conversion PJL data of the currently referenced conversion rule N matches the acquired PJL data (S38), and if it determines that they match (S38: Yes), it can delete the acquired PJL data (S39). Therefore, according to the embodiment described above, the CPU 21 does not execute the process of converting the acquired PJL data that matches the deleted PJL data into post-conversion PJL data. In other words, the CPU 21 does not execute the process specified by the acquired PJL data.
[0102] (15) Furthermore, according to the embodiment described above, it is possible to execute a process of acquiring PCL filter data, writing the acquired PCL filter data to flash ROM 12, and reading the PCL filter data from flash ROM 12 (S14 in FIG. 8). Therefore, according to the embodiment described above, when image forming apparatus 10 uses PCL as a page description language (PDL), if the PCL data sent from information processing apparatus 40 is data that cannot be processed by image forming apparatus 10, for example, PCL data of a different version, it is possible to convert the data into processable data by using a PCL filter.
[0103] Other Embodiments (1) When the acquired filter data is edited filter data obtained by editing filter data, CPU 21 can store the edited filter data in flash ROM 12. When the acquired PJL data is pre-conversion PJL data associated with the post-conversion PJL data by the edited filter data stored in flash ROM 12, CPU 21 can convert the acquired PJL data into post-conversion PJL data associated with the pre-conversion PJL data in the edited filter data stored in flash ROM 12. According to this embodiment, even when the image forming device is updated and functions or performance of the image forming device are added or deleted, the added or deleted functions or performance can be accommodated by editing the contents of the filter data.
[0104] (2) A plurality of types of filter data can be stored in the flash ROM 12. Then, the CPU 21 accepts an operation to designate any one of the plurality of types of filter data stored in the flash ROM 12 via the user IF 16 (FIG. 1), and when the acquired PJL data is pre-conversion PJL data that is associated with the converted PJL data by the designated filter data, the acquired PJL data can be converted into the converted PJL data that is associated with the pre-conversion PJL data in the designated filter data. According to this embodiment, the user can select and use the necessary filter data.
[0105] (3) When writing the acquired filter data to the flash ROM 12 (S102 in FIG. 15), the CPU 21 can also sort each pre-conversion PJL data associated with the converted PJL data by the acquired filter data and then write it to the flash ROM 12. Although the sorting method is not limited, for example, each pre-conversion PJL data can be sorted so that the first characters of each pre-conversion PJL data are in alphabetical order. Then, when searching for pre-conversion PJL data matching the acquired PJL data, the CPU 21 can search for pre-conversion PJL data matching the acquired PJL data by narrowing down each pre-conversion PJL data by a binary search method. According to this embodiment, the determination processing speed of the CPU 21 can be improved, and therefore the conversion processing speed for converting the acquired PJL data into the converted PJL data can be improved.
[0106] (4) The CPU 21 can acquire additional information notification filter data, which is filter data for associating pre-conversion PJL data with post-conversion PJL data that instructs notification of additional information (e.g., user name, print job name, etc.) of the print process (S18 in FIG. 8). The CPU 21 then stores the acquired additional information notification filter data in the flash ROM 12, and can execute additional information notification processing for notifying additional information of the print process when the post-conversion PJL data converted by the conversion process (S58 in FIG. 11, S76 in FIG. 13, S81 in FIG. 14) is the post-conversion PJL data in the additional information notification filter data stored in the flash ROM 12. According to this embodiment, the additional information can be notified from the image forming apparatus 10 without changing the pre-conversion PJL data that was used until the image forming apparatus 10 was updated.
[0107] (5) Although CPU 21 has acquired PCL filter data as separate filter data for converting data in a format different from PJL data into data processable in image forming apparatus 10, CPU 21 can also acquire separate filter data for converting data other than PCL data (e.g., PS data) into data processable in image forming apparatus 10. CPU 21 then stores the acquired separate filter in flash ROM 12, and when acquiring data other than PCL data, CPU 21 can convert the acquired data into data processable based on the separate filter stored in flash ROM 12. According to this embodiment, even when the image forming apparatus is updated to image forming apparatus 10 and data in a format different from PJL data that was used in the image forming apparatus before the update is acquired, the acquired data can be converted into data processable in image forming apparatus 10.
[0108] (6) The program of the present invention can be obtained from the web, or from a storage medium such as a USB memory, a CD-ROM, etc. Furthermore, the program of the present invention can be obtained by communicating with another image forming device or information processing device in which the program is stored. [Explanation of symbols]
[0109] 10 image forming device, 12 flash ROM, 13 filter data, 16 user IF, 17 communication IF, 20 control unit, 21 CPU, 22 RAM, 30 print job, 31 PJL unit, 32 PDL unit, 40 information processing device
Claims
1. An image forming apparatus including an external interface, a computer, and a non-volatile memory, The computer includes: A PJL data acquisition process for acquiring PJL data via the external interface; A filter data acquisition process for acquiring filter data via the external interface; a storage process for storing the filter data acquired by the filter data acquisition process in the non-volatile memory; the filter data is data for associating non-target PJL data with target PJL data, the non-target PJL data being PJL data that is not a target for causing the image forming apparatus to execute a predetermined process, and the target PJL data being PJL data that is a target for causing the image forming apparatus to execute the predetermined process, Furthermore, the computer a conversion process for converting the acquired PJL data into the target PJL data that is associated with the non-target PJL data in the filter data stored in the non-volatile memory when the PJL data acquired by the PJL data acquisition process is the non-target PJL data that is associated with the target PJL data by the filter data stored in the non-volatile memory; and if the PJL data acquired by the PJL data acquisition process instructs reading and outputting the filter data from the non-volatile memory, executing an output process to read and output the filter data from the non-volatile memory.
2. The output process includes:
2. The image forming apparatus according to claim 1, wherein, when the PJL data acquired by the PJL data acquisition process instructs reading the filter data from the non-volatile memory and transmitting the filter data to a specified destination, the image forming apparatus reads the filter data from the non-volatile memory and transmits the filter data to the specified destination.
3. An image forming apparatus including an external interface, a computer, a non-volatile memory, and a user interface, The computer includes: A PJL data acquisition process for acquiring PJL data via the external interface; A filter data acquisition process for acquiring filter data via the external interface; a storage process for storing the filter data acquired by the filter data acquisition process in the non-volatile memory; the filter data is data for associating non-target PJL data with target PJL data, the non-target PJL data being PJL data that is not a target for causing the image forming apparatus to execute a predetermined process, and the target PJL data being PJL data that is a target for causing the image forming apparatus to execute the predetermined process, Furthermore, the computer When the PJL data acquired by the PJL data acquisition process is the non-target PJL data that is associated with the target PJL data by the filter data stored in the non-volatile memory, a conversion process is executed to convert the acquired PJL data into the target PJL data that is associated with the non-target PJL data in the filter data stored in the non-volatile memory; The storage process includes: A plurality of types of the filter data can be stored in the non-volatile memory; The conversion process includes: an image forming apparatus which receives, via the user interface, an operation to specify one of the filter data from among the multiple types of filter data stored in the non-volatile memory, and when the PJL data acquired by the PJL data acquisition process is the non-target PJL data which is associated with the target PJL data by the specified filter data, converts the acquired PJL data into the target PJL data which is associated with the non-target PJL data in the specified filter data.
4. An image forming apparatus including an external interface, a computer, and a non-volatile memory, The computer includes: A PJL data acquisition process for acquiring PJL data via the external interface; A filter data acquisition process for acquiring filter data via the external interface; a storage process for storing the filter data acquired by the filter data acquisition process in the non-volatile memory; the filter data is data for associating non-target PJL data with target PJL data, the non-target PJL data being PJL data that is not a target for causing the image forming apparatus to execute a predetermined process, and the target PJL data being PJL data that is a target for causing the image forming apparatus to execute the predetermined process, Furthermore, the computer When the PJL data acquired by the PJL data acquisition process is the non-target PJL data that is associated with the target PJL data by the filter data stored in the non-volatile memory, a conversion process is executed to convert the acquired PJL data into the target PJL data that is associated with the non-target PJL data in the filter data stored in the non-volatile memory; The PJL data that can be acquired by the PJL data acquisition process includes: There are non-abbreviated PJL data, which is PJL data in an unabbreviated format, and abbreviated PJL data, which is PJL data in an abbreviated format, The filter data includes: The PJL data includes target PJL data associated with the non-abbreviated PJL data and target PJL data associated with the abbreviated PJL data, The computer includes: execute a determination process for determining whether or not the PJL data acquired by the PJL data acquisition process at least partially matches the non-target PJL data associated with the target PJL data by the filter data stored in the non-volatile memory, for each of the non-target PJL data indicating the filter data; The storage process includes: in the determination process, the filter data is rearranged and stored in the non-volatile memory so that a determination as to whether the acquired PJL data matches at least a portion of the non-abbreviated PJL data associated with the target PJL data by the filter data stored in the non-volatile memory is executed with priority over a determination as to whether the acquired PJL data matches at least a portion of the abbreviated PJL data associated with the target PJL data by the filter data; The conversion process includes: When the PJL data acquired by the PJL data acquisition process is the non-target PJL data that is associated with the target PJL data by the filter data stored in the non-volatile memory and is the non-abbreviated PJL data, converting the acquired PJL data into the target PJL data that is associated with the non-abbreviated PJL data in the filter data stored in the non-volatile memory; An image forming apparatus characterized in that, when the PJL data acquired by the PJL data acquisition process is the non-target PJL data that is associated with the target PJL data by the filter data stored in the non-volatile memory and is the abbreviated PJL data, the acquired PJL data is converted into the target PJL data that is associated with the abbreviated PJL data in the filter data stored in the non-volatile memory.
5. The determination process includes:
5. The image forming apparatus according to claim 4, wherein the judgment process is terminated when it is determined that the non-target PJL data matching the PJL data acquired by the PJL data acquisition process exists in the filter data stored in the non-volatile memory.
6. The filter data stored in the non-volatile memory includes: Associated non-target PJL data, which is non-target PJL data having data associated with the non-target PJL data; and related target PJL data, which is PJL data associated with the related non-target PJL data, The storage process includes: When storing the filter data acquired by the filter data acquisition process in the non-volatile memory, an index for searching the associated non-target PJL data having data associated with the non-target PJL data associated with the target PJL data by the filter data is stored in the non-volatile memory in association with the non-target PJL data associated with the target PJL data by the filter data; The determination process includes: When it is determined that the PJL data acquired by the PJL data acquisition process does not match the non-target PJL data associated with the target PJL data by the filter data, the associated non-target PJL data having data associated with the non-target PJL data is searched for based on the index associated with the non-target PJL data that is the subject of the determination, and it is determined whether the associated non-target PJL data found by the search matches the acquired PJL data; The conversion process includes: The image forming apparatus according to claim 4 or claim 5, characterized in that, when the judgment process determines that the non-related PJL data found by the search matches the acquired PJL data, the acquired PJL data is converted into the related PJL data that is associated with the non-related PJL data in the filter data stored in the non-volatile memory.
7. The storage process includes: sorting each non-target PJL data associated with the target PJL data by the filter data acquired by the filter data acquisition process, and then storing the sorted data in the non-volatile memory; The determination process includes: The image forming apparatus according to any one of claims 4 to 6, characterized in that the non-target PJL data stored in the non-volatile memory after the sorting is narrowed down by a binary search technique to search for non-target PJL data that matches the PJL data acquired by the PJL data acquisition process.
8. The filter data includes: N pieces (N≧2) of non-target PJL data are associated with M pieces (M<N) of target PJL data, The PJL data acquisition process acquires N pieces of PJL data one by one over N times via the external interface, the storage process stores the filter data acquired by the filter data acquisition process in the non-volatile memory; The determination process includes: Each time one piece of PJL data is acquired by the PJL data acquisition process, a determination is made as to whether or not the acquired piece of PJL data matches any of the N pieces of non-target PJL data associated with the M pieces of target PJL data by the filter data stored in the non-volatile memory, for each of the N pieces of non-target PJL data associated with the M pieces of target PJL data by the filter data; The conversion process includes:
8. The image forming apparatus according to claim 4, wherein, in the determination process, it is determined for all of the acquired N pieces of PJL data that the acquired PJL data matches any of the N pieces of non-target PJL data that are associated with the M pieces of target PJL data by the filter data stored in the non-volatile memory, and when N pieces of non-target PJL data that match the acquired N pieces of PJL data are found, the acquired N pieces of PJL data are converted into M pieces of target PJL data that are associated with the N pieces of non-target PJL data in the filter data stored in the non-volatile memory.
9. The filter data includes: Non-target PJL data consisting of N pieces of data (N≧2) is associated with target PJL data consisting of M pieces of data (M<N), the storage process stores the filter data acquired by the filter data acquisition process in the non-volatile memory; The determination process includes: When the PJL data acquired by the PJL data acquisition process consists of N pieces of data, a determination is made as to whether or not the acquired PJL data consisting of N pieces of data matches with the target PJL data by the filter data stored in the non-volatile memory, and The conversion process includes:
9. The image forming apparatus according to claim 4, wherein when it is determined by the determination process that the acquired PJL data consisting of N pieces of data matches non-target PJL data consisting of N pieces of data that is associated with the target PJL data consisting of the N pieces of data by the filter data stored in the non-volatile memory, the acquired PJL data consisting of N pieces of data is converted into target PJL data consisting of the M pieces of data that is associated with the non-target PJL data consisting of the N pieces of data in the filter data stored in the non-volatile memory.
10. The filter data includes: Non-target PJL data consisting of M pieces of data (M<N) is associated with target PJL data consisting of N pieces of data (N≧2), the storage process stores the filter data acquired by the filter data acquisition process in the non-volatile memory; The determination process includes: When the PJL data acquired by the PJL data acquisition process is composed of M pieces of data, a determination is made as to whether or not the acquired PJL data composed of M pieces of data matches with the target PJL data by the filter data stored in the non-volatile memory, and The conversion process includes:
10. The image forming apparatus according to claim 4, wherein when it is determined by the determination process that the acquired PJL data consisting of M pieces of data matches non-target PJL data consisting of M pieces of data that is associated with the target PJL data by the filter data stored in the non-volatile memory, the acquired PJL data consisting of M pieces of data is converted into target PJL data consisting of the N pieces of data that is associated with the non-target PJL data consisting of the M pieces of data in the filter data stored in the non-volatile memory.
11. The determination process includes: When the PJL data and print data are acquired by the PJL data acquisition process, it is determined whether or not the PJL data acquired by the PJL data acquisition process matches any of the non-target PJL data associated with the target PJL data by the filter data stored in the non-volatile memory; The conversion process includes: When it is determined by the determination process that the acquired PJL data matches any of the non-target PJL data associated with the target PJL data by the filter data stored in the non-volatile memory, the acquired PJL data is converted into the non-target PJL data determined to match the PJL data and the target PJL data associated in the filter data stored in the non-volatile memory; The computer includes:
11. The image forming apparatus according to claim 4, wherein a print process is executed based on the target PJL data converted by the conversion process and the acquired print data.
12. The filter data acquisition process includes: obtaining print function setting filter data, which is filter data for associating the non-target PJL data with target PJL data for instructing a change in the setting contents of the print function; The storage process includes: storing the print function setting filter data acquired by the filter data acquisition process in the non-volatile memory; The computer includes: When the target PJL data converted by the conversion process is the target PJL data in the print function setting filter data stored in the non-volatile memory, a setting content change process is executed to change the setting content of the print function according to the content specified by the target PJL data; The printing process includes:
12. The image forming apparatus according to claim 11, wherein printing is executed based on the print function whose settings have been changed by the setting content change process and the acquired print data.
13. The filter data acquisition process includes: obtaining additional information notification filter data, which is filter data for associating the non-target PJL data with target PJL data that instructs notification of additional information of the printing process; The storage process includes: storing the additional information notification filter data acquired by the filter data acquisition process in the non-volatile memory; The computer includes: The image forming apparatus according to claim 11 or 12, characterized in that, when the target PJL data converted by the conversion process is the target PJL data in the additional information notification filter data stored in the non-volatile memory, an additional information notification process is executed to notify additional information of the printing process.
14. It is also possible that the filter data stored in the non-volatile memory includes additional target PJL data, which is PJL data to be added, The determination process includes: A determination is made for each non-target PJL data as to whether or not the PJL data acquired by the PJL data acquisition process at least partially matches the non-target PJL data associated with the target PJL data by the filter data stored in the non-volatile memory, and a determination is made as to whether or not the addition target PJL data, which is the PJL data to be added to the filter data, exists in the filter data stored in the non-volatile memory; The conversion process includes: When it is determined by the determination process that the PJL data to be added exists in the filter data stored in the non-volatile memory, the PJL data to be added is added to the target PJL data converted by the conversion process; The computer includes:
14. The image forming apparatus according to claim 4, wherein a process specified by the PJL data to be added that is added by the conversion process is executed.
15. The determination process includes: determining whether the PJL data acquired by the PJL data acquisition process matches predetermined non-target PJL data associated with the target PJL data by the filter data stored in the non-volatile memory; The conversion process includes: The image forming apparatus according to any one of claims 4 to 12, characterized in that, when the judgment process determines that the acquired PJL data matches the specified non-target PJL data stored in the non-volatile memory, the acquired PJL data is deleted.
16. The storage process includes: If the filter data acquired by the filter data acquisition process is edited filter data obtained by editing the filter data, the edited filter data is stored in the non-volatile memory; The conversion process includes:
5. The image forming apparatus according to claim 1, wherein, when the PJL data acquired by the PJL data acquisition process is the non-target PJL data that is associated with the target PJL data by the edited filter data stored in the non-volatile memory, the acquired PJL data is converted to the target PJL data that is associated with the non-target PJL data in the edited filter data stored in the non-volatile memory.
17. The filter data acquisition process includes: obtaining separate filter data for converting data in a format different from the PJL data obtained by the PJL data obtaining process into data that can be processed by the image forming apparatus; The storage process includes: storing the different filter data acquired by the filter data acquisition process in the non-volatile memory; The conversion process includes:
17. The image forming apparatus according to claim 1, wherein when data in a format different from the PJL data is acquired by the PJL data acquisition process, the acquired data is converted into the processable data based on the other filter data stored in the non-volatile memory.
Citation Information
Patent Citations
Method and device for recording
JP1997185468A
Printing controller, image processor, printer emulation system, printing control method, control program of printing controller and recording medium capable of being read by computer
JP2005324553A
Method for converting JDF information into command for printer, system and program
JP2009271927A
Image forming apparatus
JP2010228419A
Piezoelectric element, acoustic generator, acoustic generating device, and electronic apparatus
JP2014049903A
