JP2012043455A - Data conversion device, data processing method and program - Google Patents

Data conversion device, data processing method and program Download PDF

Info

Publication number
JP2012043455A
JP2012043455A JP2011224770A JP2011224770A JP2012043455A JP 2012043455 A JP2012043455 A JP 2012043455A JP 2011224770 A JP2011224770 A JP 2011224770A JP 2011224770 A JP2011224770 A JP 2011224770A JP 2012043455 A JP2012043455 A JP 2012043455A
Authority
JP
Japan
Prior art keywords
data
data conversion
port
conversion
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011224770A
Other languages
Japanese (ja)
Other versions
JP5168398B2 (en
Inventor
Takashi Tanaka
俊 田中
Yasushi Usui
康 臼井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2011224770A priority Critical patent/JP5168398B2/en
Publication of JP2012043455A publication Critical patent/JP2012043455A/en
Application granted granted Critical
Publication of JP5168398B2 publication Critical patent/JP5168398B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a data conversion device, which converts received data but does not correspond to communication across a firewall, and is capable of being easily rendered corresponding to communication across the firewall.SOLUTION: A data conversion device 20 converting data received from an information processing device 10 capable of being connected to a network across a firewall 50 comprises: a first data conversion function unit 21 for listening to a first port that is not allowed to be used in the firewall 50 and performing a specified data conversion with respect to the received data from the first port regardless of the data format thereof; and a second data conversion function unit 22 for listening to a second port that is allowed to be used in the firewall 50, converting data received from the second port into the data format capable of being processed by the first data conversion function unit 21 and looping back result data to the first port.

Description

この発明は、受信したデータの形式を変換するデータ変換装置、このようなデータ変換装置と情報処理装置とを備えたデータ変換システム、このようなデータ変換装置の制御方法、このようなデータ変換装置に対するデータ変換機能付加方法、コンピュータにこのようなデータ変換装置を制御させるためのプログラム、およびこのようなプログラムを記録したコンピュータ読み取り可能な記録媒体に関する。   The present invention relates to a data conversion device that converts the format of received data, a data conversion system including such a data conversion device and an information processing device, a control method for such a data conversion device, and such a data conversion device. The present invention relates to a data conversion function adding method, a program for causing a computer to control such a data conversion device, and a computer-readable recording medium on which such a program is recorded.

従来から、特定のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行うデータ変換装置が知られている。
そして、このようなデータ変換装置の具体例としては、例えば、PC(パーソナルコンピュータ)から受信したプリントデータに基づいて印刷を行うプリンタが挙げられる。
2. Description of the Related Art Conventionally, there is known a data conversion apparatus that listens to a specific port and performs specific data conversion on data received at the port regardless of the data format.
A specific example of such a data conversion apparatus is a printer that performs printing based on print data received from a PC (personal computer).

図22に、このようなPCとプリンタの機能構成を示す。
この図に示すように、PC80には、一般的に、ワードプロセッサや表計算、ドローイングを始めとする種々の機能を実現するためのアプリケーション(アプリ)81を備えており、ユーザは、このアプリケーション81で取り扱う文書や図等をプリントするために、アプリケーション81に対して印刷の指示を行う。
FIG. 22 shows the functional configuration of such a PC and printer.
As shown in this figure, the PC 80 generally includes an application (application) 81 for realizing various functions such as a word processor, spreadsheet, and drawing. In order to print a document or a figure to be handled, an instruction for printing is issued to the application 81.

また、PC80には、アプリケーション81が出力する、プリントすべき画像の内容を、プリンタ90が処理できる形式のプリンタ言語で記載されたプリントデータ(プリント言語形式のプリントデータ)に変換するプリンタドライバ82を備えている。そして、アプリケーション81は、ユーザが印刷を指示した場合に、指定されたプリンタと対応するプリンタドライバ82に、出力する画像の内容を示すデータを渡し、プリンタドライバ82が、そのデータを、ユーザが指定したプリンタが処理できる形式のプリントデータに変換してポートモニタ83のスプールディレクトリにスプールする。   In addition, the PC 80 includes a printer driver 82 that converts the content of an image to be printed output from the application 81 into print data (print language format print data) described in a printer language in a format that can be processed by the printer 90. I have. When the user instructs printing, the application 81 passes data indicating the contents of the output image to the printer driver 82 corresponding to the designated printer, and the printer driver 82 designates the data. The print data is converted into a format that can be processed by the printer and spooled in the spool directory of the port monitor 83.

ポートモニタ83は、PC80とプリンタ90との間のデータの転送を行うドライバであり、スプールディレクトリにスプールされたデータを、使用するプリンタのアドレスの、9100番ポートに送信する。このポートは、プリンタが一般にプリントデータの受信に使用するポートである。   The port monitor 83 is a driver that transfers data between the PC 80 and the printer 90, and transmits the data spooled in the spool directory to the 9100th port of the printer address to be used. This port is a port that a printer generally uses to receive print data.

一方、プリンタ90には、実際にプリント動作を行うエンジン部であるプリントエンジン93と、プリンタアプリ91とを備えている。
そして、プリンタアプリ91は、起動している間は常に9100番ポートをリスンし、ここにデータが送られてくると、そのデータが特定のプリンタ言語で記載されたプリントデータであることを前提に、そのプリントデータを、プリントエンジン93にプリントを行わせるための画像データに変換する。この処理は、例えばプリントデータに基づいて画像メモリに描画を行い、ビットマップ形式の画像データを生成する処理である。そして、その画像データに基づいてプリントエンジン93を駆動することにより、用紙上に、受信したプリントデータに基づく画像を形成させることができる。
On the other hand, the printer 90 includes a print engine 93 that is an engine unit that actually performs a print operation, and a printer application 91.
The printer application 91 always listens to the 9100 port while it is running, and when data is sent here, it is assumed that the data is print data described in a specific printer language. The print data is converted into image data for causing the print engine 93 to perform printing. This process is, for example, a process of drawing in an image memory based on print data to generate image data in a bitmap format. Then, by driving the print engine 93 based on the image data, an image based on the received print data can be formed on the paper.

この場合において、プリンタアプリ91は、開発効率向上や処理負荷低減の観点から、受信したデータの形式はチェックせず、どのようなデータを受信した場合でも、同じように処理を行うようにすることが行われている。そして、このようにした場合でも、データの送信元のPCの側でプリンタアプリ91が処理できるような形式のデータを送信するような制御を確実に行えば、プリンタ90を問題なく動作させることができる。
このようなプリンタについては、例えば特許文献1に記載されている。
また、プリンタ等の画像形成装置にファイアウォールの外側からコマンドを送る手法としては、例えば特許文献2及び特許文献3に記載されているものが挙げられる。
In this case, from the viewpoint of improving development efficiency and reducing the processing load, the printer application 91 does not check the format of the received data, and performs the same processing when receiving any data. Has been done. Even in such a case, the printer 90 can be operated without any problems if the control of transmitting data in a format that can be processed by the printer application 91 is securely performed on the data transmission source PC side. it can.
Such a printer is described in Patent Document 1, for example.
Examples of techniques for sending commands to an image forming apparatus such as a printer from the outside of a firewall include those described in Patent Document 2 and Patent Document 3, for example.

ところで、近年、個人情報を含む様々なデータへのセキュリティ重視の傾向が高まっている。そして、このため、HDD(ハードディスクドライブ)内のデータの保護や通信経路の保護のための様々な対策が取られるようになっている。
このうち、通信経路の保護については、インターネットチャンネルを用いた顧客とプロバイダとの間のデータ授受を暗号化することが行われているが、社内の通信インフラ(PCとプリンタ間、プリンタ同士の間等)についても同様な傾向が波及している。
こうした傾向を受け、例えば金融機関のような企業では、DMZ(DeMilitarized Zone)との境界線、サーバ室、各拠点間といった社内環境にも、ファイアウォールを設置することが行われるようになっている。
By the way, in recent years, a tendency of emphasizing security on various data including personal information is increasing. For this reason, various measures are taken to protect data in the HDD (hard disk drive) and to protect the communication path.
Of these, for communication path protection, data exchange between customers and providers using the Internet channel is encrypted, but in-house communication infrastructure (between PC and printer, between printers) Etc.) is also spreading.
In response to this trend, companies such as financial institutions, for example, are installing firewalls in the in-house environment such as boundaries with DMZ (DeMilitarized Zone), server rooms, and between bases.

これに対し、社内ネットワークに接続される装置には、独自のプロトコルを利用し、そのプロトコルに応じた独自のポートを使用して通信を行う装置が数多くある。上述したプリンタ90や、そのプリンタ90が使用する9100番ポートも、その一例である。そして、ファイアウォールは、通常はこのような独自のポートの使用を許可しないような設定がなされ、このようなポートに対する通信は遮断するようになっている。
従って、独自のプロトコルを利用した通信を行う装置をファイアウォール越しに使用できるようにするには、ファイアウォールの設定を変更してその独自のポートを使用できるようにする必要があり、その操作に手間を要するという問題があった。
On the other hand, many devices connected to the in-house network use a unique protocol and communicate using a unique port corresponding to the protocol. The printer 90 described above and the 9100 port used by the printer 90 are examples. The firewall is normally set not to permit the use of such a unique port, and communication with respect to such a port is blocked.
Therefore, to be able to use a device that communicates using a unique protocol over a firewall, it is necessary to change the firewall settings so that the unique port can be used. There was a problem that it took.

この問題に対しては、上記の特許文献2又は3に記載の技術等を利用し、独自のプロトコル及びポートを使用して通信を行う装置の側を、HTTP(HyperText Transfer Protocol)のように通常ファイアウォールで使用が許可されているポートを使用する通信を行うように改変してしまうことも考えられる。
しかし、このような改変は、従来知られている方法では、工数やコストがかかり、負担が大きいという問題があった。特に、ファイアウォール内部のみでの利用を考えると、改変後にも独自のプロトコルを利用した通信が行える状態であることが好ましいが、このような改変は、複数のプロトコルを意識した設計が必要になる分、余計に工数やコストがかかるという問題があった。
To deal with this problem, the technology described in Patent Document 2 or 3 above is used, and the side of the device that performs communication using a unique protocol and port is usually used as HTTP (HyperText Transfer Protocol). It may be modified to perform communication using a port that is allowed to be used by the firewall.
However, such a modification has a problem that a conventionally known method requires a lot of man-hours and costs, and a burden is large. In particular, considering the use only within the firewall, it is preferable that communication using a unique protocol can be performed even after modification, but such modification requires design that takes into account multiple protocols. There was a problem that it took extra man-hours and costs.

この発明は、このような問題を解決し、受信したデータに対してデータ変換を行う、ファイアウォール越しの通信に対応していないデータ変換装置を、容易にファイアウォール越しの通信に対応させられるようにすることを目的とする。特に、このような機能を有する装置を、既存の資源を利用して容易に開発できるようにすることを目的とする。   The present invention solves such a problem, and enables a data conversion apparatus that performs data conversion on received data and does not support communication through a firewall, and can easily support communication through a firewall. For the purpose. In particular, an object of the present invention is to make it possible to easily develop a device having such a function using existing resources.

上記の目的を達成するため、この発明のデータ変換装置は、ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置において、上記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段と、上記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して、上記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って上記第1のポートにループバックする第2のデータ変換手段とを設けたものである。
このようなデータ変換装置において、上記第2のポートを、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートとするとよい。
In order to achieve the above object, a data conversion apparatus according to the present invention is a data conversion apparatus for converting data received through a firewall from a device connectable to a network. A first data conversion unit that listens to a port and performs specific data conversion on data received at the port regardless of the format of the data; and a second port that is permitted to be used by the firewall. A second data conversion unit that listens and converts the data received at the port into a format that the first data conversion unit can handle and loops back to the first port; Is provided.
In such a data conversion apparatus, the second port may be a port reserved to be used for communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP.

さらに、上記第2のデータ変換手段を、各々上記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、上記第2のポートで受信したデータを上記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して上記第1のポートにループバックする手段とするとよい。
さらに、自身を省エネルギモードに移行させる手段と、上記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手段と、上記第2のポートで何らかのデータを受信した場合に上記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手段とを設けるとよい。
Further, each of the second data conversion means listens to a specific port different from the first port, performs data conversion on the data received at the port, and listens to the data conversion means at the next stage. A plurality of data conversion means that loop back to each other, and each of the data conversion means performs a plurality of stages of data conversion processing so that the data received at the second port is handled by the first data conversion means. It is preferable to convert the data into a format that can be used and loop back to the first port.
Furthermore, means for shifting itself to the energy saving mode, means for returning itself from the energy saving mode to the normal operation mode when any data is received at the first port, and any data at the second port. It is preferable to provide means for transmitting dummy data for returning itself to the normal operation mode to the first port when it is received.

さらにまた、上記第1のデータ変換手段が行うデータ変換を、プリンタ言語で記述されたプリントデータから、プリントエンジンに画像形成を行わせるための画像データへの変換とするとよい。
また、上記第2のデータ変換手段が行うデータ変換を、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換とするとよい。
さらに、上記第2のデータ変換手段が行うデータ変換に、上記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含めるとよい。
Furthermore, the data conversion performed by the first data conversion unit may be conversion from print data described in a printer language to image data for causing the print engine to form an image.
The data conversion performed by the second data conversion means may be conversion from an HTTP message to print data described in a printer language.
Further, in the data conversion performed by the second data conversion means, the data indicating the print attribute included in the HTTP message is converted into the print attribute data described in the printer job language, and the data is converted into a print after conversion. It is recommended to include processing that is part of the data.

また、この発明のデータ変換システムは、情報処理装置と、その情報処理装置からファイアウォール越しに受信したデータを処理するデータ変換装置とを備えたデータ変換システムにおいて、上記データ変換装置に、上記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段と、上記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して上記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って上記第1のポートにループバックする第2のデータ変換手段とを設け、上記情報処理装置に、上記データ変換装置にデータを送信する場合に、上記第2のデータ変換手段が処理できる形式のデータを上記第2のポートに送信する手段を設けたものである。
このようなデータ変換システムにおいて、上記第2のポートを、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートとするとよい。
The data conversion system of the present invention is a data conversion system comprising an information processing device and a data conversion device for processing data received from the information processing device through a firewall. A first data conversion unit that listens to a first port that is not permitted to be used and performs specific data conversion on the data received at the port regardless of the format of the data; Listening to the permitted second port, converting the data received at that port into a format that can be handled by the first data conversion means, and looping back to the first port Second data conversion means for transmitting data to the information processing apparatus to the data conversion apparatus The data format that can be processed above the second data conversion means is provided with a means for transmitting to said second port.
In such a data conversion system, the second port may be a port reserved for use in communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP.

さらに、上記データ変換装置の上記第2のデータ変換手段を、各々上記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、上記第2のポートで受信したデータを上記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して上記第1のポートにループバックする手段とするとよい。
さらに、上記データ変換装置に、自身を省エネルギモードに移行させる手段と、上記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手段と、上記第2のポートで何らかのデータを受信した場合に上記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手段とを設けるとよい。
Further, the second data conversion means of the data conversion apparatus listens to a specific port that is different from the first port, performs data conversion on the data received at the port, and performs data conversion at the next stage. A plurality of data conversion means that loop back to the port on which the means listens, and each of the data conversion means performs a plurality of stages of data conversion processing, whereby the data received at the second port is converted into the first data; The data may be converted into data in a format that can be handled by the conversion means and looped back to the first port.
Further, means for causing the data converter to shift itself to an energy saving mode, means for returning itself from the energy saving mode to the normal operation mode when receiving some data at the first port, and the second It is preferable to provide means for transmitting dummy data for returning itself to the normal operation mode to the first port when any data is received at the first port.

さらにまた、上記データ変換装置において、上記第1のデータ変換手段が行うデータ変換を、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換とするとよい。
また、上記データ変換装置において、上記第2のデータ変換手段が行うデータ変換を、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換とするとよい。
さらに、上記データ変換装置において、上記第2のデータ変換手段が行うデータ変換に、上記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含めるとよい。
Furthermore, in the data conversion apparatus, the data conversion performed by the first data conversion unit may be conversion from data described in a printer language into image data for causing the print engine to form an image.
In the data conversion apparatus, the data conversion performed by the second data conversion means may be conversion from an HTTP message to print data described in a printer language.
Further, in the data conversion device, the data indicating the print attribute included in the HTTP message is converted into the print attribute data described in the printer job language for the data conversion performed by the second data conversion means, A process for converting the data into a part of the converted print data may be included.

また、この発明のデータ変換装置の制御方法は、ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置に、上記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手順と、上記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して上記第1のデータ変換手順で取り扱うことのできる形式へのデータ変換を行って上記第1のポートにループバックする第2のデータ変換手順とを実行させるものである。
このようなデータ変換装置の制御方法において、上記第2のポートを、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートとするとよい。
The data conversion device control method of the present invention also listens to the data conversion device that converts data received through a firewall from a device that can be connected to a network, by using the first port that is not permitted by the firewall. The first data conversion procedure for performing specific data conversion on the data received at the port regardless of the data format, and the second port permitted to be used by the firewall , Executing data conversion into a format that can be handled by the first data conversion procedure for the data received at the port, and executing a second data conversion procedure for looping back to the first port It is.
In such a data conversion apparatus control method, if the second port is a port reserved for use in communication using any one of the protocols HTTP, HTTPS, LDAP, POP3, SMTP, and FTP. Good.

さらに、上記第2のデータ変換手順を、各々の手順で上記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手順でリスンするポートにループバックする複数のデータ変換手順で複数段のデータ変換処理を行うことにより、上記第2のポートで受信したデータを上記第1のデータ変換手順で取り扱うことのできる形式のデータに変換して上記第1のポートにループバックする手順とするとよい。
さらに、上記データ変換装置に、自身を省エネルギモードに移行させる手順と、上記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手順と、上記第2のポートで何らかのデータを受信した場合に上記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手順とを実行させるようにするとよい。
Further, in the second data conversion procedure, each procedure listens to a specific port different from the first port, performs data conversion on the data received at that port, and performs the next data conversion procedure. By performing a plurality of stages of data conversion processing by a plurality of data conversion procedures that loop back to the listening port, the data received at the second port is converted into data that can be handled by the first data conversion procedure. The procedure may be to convert and loop back to the first port.
And a procedure for causing the data converter to shift itself to the energy saving mode, a procedure for returning itself from the energy saving mode to the normal operation mode when receiving some data at the first port, and the second When any data is received at this port, it is preferable to execute a procedure for transmitting dummy data for returning itself to the normal operation mode to the first port.

さらにまた、上記第1のデータ変換手順で行うデータ変換を、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換とするとよい。
また、上記第2のデータ変換手順で行うデータ変換を、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換とするとよい。
さらに、上記第2のデータ変換手順で行うデータ変換に、上記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含めるとよい。
Furthermore, the data conversion performed in the first data conversion procedure may be conversion from data described in the printer language into image data for causing the print engine to form an image.
The data conversion performed in the second data conversion procedure may be conversion from an HTTP message to print data described in a printer language.
Further, in the data conversion performed in the second data conversion procedure, the data indicating the print attribute included in the HTTP message is converted into the print attribute data described in the printer job language, and the converted print data It is recommended to include processing that is part of the data.

また、この発明のデータ変換機能付加方法は、ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置であって、上記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段を有するデータ変換装置に、上記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して、上記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って上記第1のポートにループバックする第2のデータ変換手段を付加するものである。
このようなデータ変換機能付加方法において、上記第2のポートを、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートとするとよい。
The data conversion function addition method of the present invention is a data conversion device for converting data received through a firewall from a device connectable to a network, wherein the first port that is not permitted to be used by the firewall is provided. Listen to the data conversion device having the first data conversion means for performing specific data conversion on the data received at the port regardless of the format of the data. Second data that loops back to the first port by converting the data received at that port into a format that can be handled by the first data conversion means. Conversion means is added.
In such a data conversion function addition method, the second port may be a port reserved to be used for communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP. .

さらに、上記第2のデータ変換手段を、各々上記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、上記第2のポートで受信したデータを上記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して上記第1のポートにループバックする手段とするとよい。
さらに、上記データ変換装置を、自身を省エネルギモードに移行させる手段と、上記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手段と、上記第2のポートで何らかのデータを受信した場合に上記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手段とを有する装置とするとよい。
Further, each of the second data conversion means listens to a specific port different from the first port, performs data conversion on the data received at the port, and listens to the data conversion means at the next stage. A plurality of data conversion means that loop back to each other, and each of the data conversion means performs a plurality of stages of data conversion processing so that the data received at the second port is handled by the first data conversion means. It is preferable to convert the data into a format that can be used and loop back to the first port.
Further, the data conversion device has means for shifting itself to the energy saving mode, means for returning itself from the energy saving mode to the normal operation mode when receiving some data at the first port, and the second It is preferable that the apparatus has a means for transmitting dummy data for returning itself to the normal operation mode to the first port when any data is received at the first port.

さらにまた、上記第1のデータ変換手段が行うデータ変換を、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換とするとよい。
また、上記第2のデータ変換手段が行うデータ変換を、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換とするとよい。
さらに、上記第2のデータ変換手段が行うデータ変換に、上記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含めるとよい。
Furthermore, the data conversion performed by the first data conversion means may be conversion from data described in the printer language into image data for causing the print engine to form an image.
The data conversion performed by the second data conversion means may be conversion from an HTTP message to print data described in a printer language.
Further, in the data conversion performed by the second data conversion means, the data indicating the print attribute included in the HTTP message is converted into the print attribute data described in the printer job language, and the data is converted into a print after conversion. It is recommended to include processing that is part of the data.

また、この発明のプログラムは、ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置を制御するコンピュータを、上記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段と、上記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して、上記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って上記第1のポートにループバックする第2のデータ変換手段として機能させるためのプログラムである。
このようなプログラムにおいて、上記第2のポートを、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートとするとよい。
In addition, the program of the present invention listens to a first port that is not permitted to be used by the firewall for a computer that controls a data conversion device that converts data received through a firewall from a device connectable to a network. And listening to the first data conversion means for performing specific data conversion on the data received at the port regardless of the format of the data, and the second port permitted to be used by the firewall, The data received at the port is converted into a format that can be handled by the first data conversion means and functions as a second data conversion means that loops back to the first port. It is a program.
In such a program, the second port may be a port reserved to be used for communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP.

さらに、上記第2のデータ変換手段を、各々上記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、上記第2のポートで受信したデータを上記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して上記第1のポートにループバックする手段とするとよい。
さらに、上記コンピュータを、上記データ変換装置を省エネルギモードに移行させる手段と、上記第1のポートで何らかのデータを受信した場合に上記データ変換装置を省エネルギモードから通常動作モードに復帰させる手段と、上記第2のポートで何らかのデータを受信した場合に上記第1のポートに上記データ変換装置を通常動作モードに復帰させるためのダミーのデータを送信する手段として機能させるためのプログラムを含めるとよい。
Further, each of the second data conversion means listens to a specific port different from the first port, performs data conversion on the data received at the port, and listens to the data conversion means at the next stage. A plurality of data conversion means that loop back to each other, and each of the data conversion means performs a plurality of stages of data conversion processing so that the data received at the second port is handled by the first data conversion means. It is preferable to convert the data into a format that can be used and loop back to the first port.
Means for causing the computer to shift the data conversion device to an energy saving mode; and means for returning the data conversion device from an energy saving mode to a normal operation mode when any data is received at the first port. A program for causing the first port to function as a means for transmitting dummy data for returning the data converter to the normal operation mode when any data is received at the second port may be included. .

さらにまた、上記第1のデータ変換手段が行うデータ変換を、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換とするとよい。
また、上記第2のデータ変換手段が行うデータ変換を、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換とするとよい。
さらに、上記第2のデータ変換手段が行うデータ変換に、上記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含めるとよい。
また、この発明の記録媒体は、上記のいずれかのプログラムを記録したコンピュータ読み取り可能な記録媒体である。
Furthermore, the data conversion performed by the first data conversion means may be conversion from data described in the printer language into image data for causing the print engine to form an image.
The data conversion performed by the second data conversion means may be conversion from an HTTP message to print data described in a printer language.
Further, in the data conversion performed by the second data conversion means, the data indicating the print attribute included in the HTTP message is converted into the print attribute data described in the printer job language, and the data is converted into a print after conversion. It is recommended to include processing that is part of the data.
The recording medium of the present invention is a computer-readable recording medium on which any one of the above programs is recorded.

以上のようなこの発明のデータ変換装置、データ変換システム、データ変換装置の制御方法、またはデータ変換機能付加方法によれば、受信したデータに対してデータ変換を行う、ファイアウォール越しの通信に対応していないデータ変換装置を、容易にファイアウォール越しの通信に対応させられるようにすることができる。また、このような機能を有する装置を、既存の資源を利用して容易に開発できるようにすることもできる。
また、この発明のプログラムによれば、コンピュータにデータ変換装置を制御させて上記のような機能を実現させ、同様な効果を得ることができる。
この発明の記録媒体によれば、上記のプログラムを記憶していないコンピュータにそのプログラムを読み出させて実行させ、上記の効果を得ることができる。
According to the data conversion device, the data conversion system, the data conversion device control method, or the data conversion function addition method of the present invention as described above, the data conversion is performed on the received data, and the communication through the firewall is supported. It is possible to make it possible for a data conversion device that has not been used to easily handle communication through a firewall. In addition, a device having such a function can be easily developed using existing resources.
Further, according to the program of the present invention, the same function can be obtained by causing the computer to control the data conversion apparatus to realize the above functions.
According to the recording medium of the present invention, the above effect can be obtained by causing a computer not storing the above program to read and execute the program.

この発明のデータ変換システムの第1の実施形態の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of 1st Embodiment of the data conversion system of this invention. そのデータ変換システムにおいて、情報処理装置とデータ変換装置の間にファイアウォールがない状態での動作について説明するための図である。In the data conversion system, it is a figure for demonstrating operation | movement in the state without a firewall between information processing apparatus and a data converter. 図1に示したデータ変換装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the data converter shown in FIG. 図1に示したシステムの変形例を示す機能ブロック図である。It is a functional block diagram which shows the modification of the system shown in FIG. その別の変形例を示す機能ブロック図である。It is a functional block diagram which shows the other modification. この発明のデータ変換システムの第2の実施形態であるプリントシステムの構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the printing system which is 2nd Embodiment of the data conversion system of this invention. 図5に示したシステムにおいてプリンタが取り扱うデータの形式を示す図である。It is a figure which shows the format of the data which a printer handles in the system shown in FIG. 図6に示したPC及びプリンタを設置する環境の例を示す図である。FIG. 7 is a diagram illustrating an example of an environment in which the PC and the printer illustrated in FIG. 6 are installed. 図6に示したPCにおいて拡張スプーラの使用並びに、通信の暗号化の有無を設定するための画面例を示す図である。FIG. 7 is a diagram illustrating an example of a screen for setting use of an extension spooler and presence / absence of communication encryption in the PC illustrated in FIG. 6. 同じくプリントに使用するポートの設定の状態を参照する画面の例を示す図である。It is a figure which shows the example of the screen which similarly refers the setting state of the port used for printing. 図6に示したシステムにおいてPC側で実行する処理のフローチャートである。7 is a flowchart of processing executed on the PC side in the system shown in FIG. 6. 同じくプリンタ側でHTTP通信用アプリにより実行する処理のフローチャートである。6 is a flowchart of processing executed by the HTTP communication application on the printer side. 同じくプリンタ側でHTTPS通信用アプリにより実行する処理のフローチャートである。6 is a flowchart of processing executed by the HTTPS communication application on the printer side. 同じくプリンタ側でプリンタアプリにより実行する処理のフローチャートである。6 is a flowchart of processing executed by the printer application on the printer side. 第2の実施形態の変形例でのHTTP通信用アプリにおけるデータの取扱い例を示す図である。It is a figure which shows the example of handling of the data in the application for HTTP communication in the modification of 2nd Embodiment. その別の例を示す図である。It is a figure which shows the other example. そのさらに別の例を示す図である。It is a figure which shows another example. 第2の実施形態の変形例でのHTTPS通信用アプリにおけるデータの取扱い例を示す図である。It is a figure which shows the example of handling of the data in the application for HTTPS communication in the modification of 2nd Embodiment. 第2の実施形態の一変形例の構成を示す、図6と対応する図である。It is a figure corresponding to FIG. 6 which shows the structure of the modification of 2nd Embodiment. 第2の実施形態の別の変形例の構成を示す、図6と対応する図である。It is a figure corresponding to Drawing 6 showing the composition of another modification of a 2nd embodiment. 第2の実施形態のさらに別の変形例の構成を示す、図6と対応する図である。It is a figure corresponding to FIG. 6 which shows the structure of another modification of 2nd Embodiment. 従来のデータ変換装置の一例であるプリンタの機能構成を、そのプリンタにプリントを指示するPCの機能構成例と併せて示す図である。It is a figure which shows the functional structure of the printer which is an example of the conventional data converter together with the functional structural example of PC which instruct | indicates printing to the printer.

以下、この発明を実施するための最良の形態を図面に基づいて具体的に説明する。
〔第1の実施形態:図1乃至図5〕
まず、図1に、この発明のデータ変換システムの第1の実施形態の構成を示す機能ブロック図を示す。
この図に示すように、このデータ変換システムは、情報処理装置10と、データ変換装置20を、LAN(ローカルエリアネットワーク)のようなネットワーク等の何らかの通信経路によって通信可能に接続して構成することができる。ただし、この通信経路は、少なくとも情報処理装置10からデータ変換装置20にデータを送信できるものであればよく、逆方向のデータ送信が可能である必要はない。
Hereinafter, the best mode for carrying out the present invention will be specifically described with reference to the drawings.
[First Embodiment: FIGS. 1 to 5]
FIG. 1 is a functional block diagram showing the configuration of the first embodiment of the data conversion system of the present invention.
As shown in this figure, the data conversion system is configured by connecting the information processing apparatus 10 and the data conversion apparatus 20 so that they can communicate with each other through some communication path such as a network such as a LAN (local area network). Can do. However, this communication path only needs to be at least capable of transmitting data from the information processing apparatus 10 to the data conversion apparatus 20, and need not be able to transmit data in the reverse direction.

また、データ変換装置20は、第1のデータ変換機能部21と第2のデータ変換機能部22を有する。そして、第1のデータ変換機能部21は、第1のデータ変換手段であり、第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う機能を有する。また、第2のデータ変換機能部22は、第2のデータ変換手段であり、第1のポートとは異なる第2のポートをリスンして、そのポートで受信したデータに対して、第1のデータ変換機能部21が取り扱うことのできる形式へのデータ変換を行って、その変換後のデータをループバックにより第1のポートに送信する機能を有する。   Further, the data conversion device 20 includes a first data conversion function unit 21 and a second data conversion function unit 22. The first data conversion function unit 21 is a first data conversion unit that listens to the first port and converts the data received at the port to a specific data conversion regardless of the data format. It has a function to perform. The second data conversion function unit 22 is a second data conversion unit, which listens to a second port different from the first port and performs a first operation on data received at the port. The data conversion function unit 21 has a function of performing data conversion into a format that can be handled, and transmitting the converted data to the first port by loopback.

なお、第1のデータ変換機能部21による処理後のデータは、外部に出力しても、データ変換装置20の内部で別の用途に使用してもよい。
また、ここでいう「データの形式によらず」とは、アプリケーションが処理対象として認識するレベルでの形式を指すものである。装置間でデータを送受信する際には、通信プロトコルに従ってデータパケットに所定の形式のヘッダやフッタを付すことが行われるので、ポートに入力するデータ自体には、一部所定の形式であることが必要な部分もあるが、この部分のデータについては考慮しないものとする。
The data processed by the first data conversion function unit 21 may be output to the outside or used for another purpose inside the data conversion device 20.
Further, the term “regardless of the data format” here refers to a format at a level recognized by the application as a processing target. When data is transmitted and received between devices, a header or footer of a predetermined format is attached to a data packet in accordance with a communication protocol. Therefore, data input to a port itself may have a predetermined format. Although there is a necessary part, the data of this part is not considered.

一方、情報処理装置10は、送信データ生成部11と通信制御部12を備えている。そして、送信データ生成部11は、データ変換装置20に送信して処理させるデータを生成する機能を有し、通信制御部12は、送信データ生成部11が生成したデータを、データ変換装置20の第1のポート又は第2のポートに送信する機能を有する。なお、データ変換装置20のアドレス等の宛先情報は、通信制御部12が参照できるように予め設定しておくようにする。   On the other hand, the information processing apparatus 10 includes a transmission data generation unit 11 and a communication control unit 12. The transmission data generation unit 11 has a function of generating data to be transmitted to the data conversion device 20 and processed, and the communication control unit 12 converts the data generated by the transmission data generation unit 11 to the data conversion device 20. It has a function of transmitting to the first port or the second port. The destination information such as the address of the data conversion device 20 is set in advance so that the communication control unit 12 can refer to it.

また、情報処理装置10とデータ変換装置20との間には、ファイアウォール50を設け、予め定めた特定のポート以外のポートを使用した通信を遮断し、不正な通信を防止できるようにしている。すなわち、データ変換装置20は、情報処理装置10からファイアウォール50越しにデータを受信することになる。そして、データ変換装置20における第2のポートは、ファイアウォール50において使用が許可されているポート、第1のポートは、ファイアウォール50において使用が許可されていないポートである。
このため、情報処理装置10からデータ変換装置20にデータを送信しようとする場合、第1のポートに送信しようとすると、その送信はファイアウォール50によって遮断されてしまう。一方、第2のポートに送信すれば、ファイアウォール50を通過してデータ変換装置20までデータを届けることができる。
Further, a firewall 50 is provided between the information processing apparatus 10 and the data conversion apparatus 20, and communication using a port other than a predetermined specific port is blocked so that unauthorized communication can be prevented. That is, the data conversion apparatus 20 receives data from the information processing apparatus 10 through the firewall 50. The second port in the data conversion device 20 is a port that is permitted to be used in the firewall 50, and the first port is a port that is not permitted to be used in the firewall 50.
For this reason, when data is to be transmitted from the information processing apparatus 10 to the data conversion apparatus 20, the transmission is blocked by the firewall 50 when attempting to transmit to the first port. On the other hand, if the data is transmitted to the second port, the data can be delivered to the data converter 20 through the firewall 50.

ここで、HTTPやHTTPS(HyperText
Transfer Protocol Security)、あるいはLDAP(Lightweight Directory Access Protocol),POP3(Post Office Protocol 3),SMTP(Simple
Mail Transport Protocol),FTP(File Transfer Protocol)のような通常よく使用されるプロトコルを用いた通信に使用されるポート、すなわちこれらのプロトコルを用いた通信に使用する旨が予約されているポートは、ファイアウォール50において使用が許可されることが多いため、第2のポートとするに適する。
そして、データ変換装置20の第2のポートにデータを送信する際には、そのポート番号と対応するプロトコルを使用し、データの形式も、そのプロトコルを用いた転送に適した形式とするとよい。第2のデータ変換機能部22は、このデータを、第1のデータ変換機能部が取り扱うことのできる形式へ変換する機能を有し、変換後のデータを第1のポートにループバックする。
Here, HTTP or HTTPS (HyperText
Transfer Protocol Security (LDAP), Lightweight Directory Access Protocol (LDAP), POP3 (Post Office Protocol 3), SMTP (Simple
Ports used for communication using commonly used protocols such as Mail Transport Protocol (FTP) and File Transfer Protocol (FTP), that is, ports reserved for communication using these protocols are: Since the use is often permitted in the firewall 50, it is suitable for the second port.
When data is transmitted to the second port of the data converter 20, a protocol corresponding to the port number is used, and the data format may be a format suitable for transfer using the protocol. The second data conversion function unit 22 has a function of converting this data into a format that can be handled by the first data conversion function unit, and loops back the converted data to the first port.

すると、第1のデータ変換機能部21は、情報処理装置10からのデータが初めから第1のポートに送信されてきたかの如く、第2のデータ変換機能部22から送信されてきたデータを変換し、変換後のデータを出力することができる。
従って、データ変換装置20によれば、情報処理装置10から第1のポートにデータを送信できない環境下であっても、データ変換装置20側で、ファイアウォールのない環境での使用を想定して設計した第1のデータ変換機能部21に一切変更を加えることなく、また、ファイアウォール50の設定を変更することもなく、情報処理装置10から第2のポートに、そのポートへの送信に適した形式でデータを送信することにより、第1のポートにデータを送信した場合と同等な出力を得ることができる。
Then, the first data conversion function unit 21 converts the data transmitted from the second data conversion function unit 22 as if the data from the information processing apparatus 10 was transmitted to the first port from the beginning. The converted data can be output.
Therefore, according to the data conversion apparatus 20, even in an environment where data cannot be transmitted from the information processing apparatus 10 to the first port, the data conversion apparatus 20 is designed on the assumption that it is used in an environment without a firewall. A format suitable for transmission from the information processing apparatus 10 to the second port without any change to the first data conversion function unit 21 and without changing the setting of the firewall 50. By transmitting the data, it is possible to obtain an output equivalent to the case where the data is transmitted to the first port.

なお、図2に示すように、情報処理装置10がデータ変換装置20と同じファイアウォールの内側にあり、これらの間にファイアウォールがない場合も考えられる。
そして、このような場合には、情報処理装置10からデータ変換装置20の第1のポートに、第1のデータ変換機能部21が取り扱うことのできる形式のデータを送信して処理させることも可能である。データ変換装置20に第2のデータ変換機能部22を設けたとしても、このような第1のデータ変換機能部21の機能はいささかも妨げられることはない。従って、このような場合には、通信制御部12に、第2のデータ変換機能部22が取り扱うことのできる形式でのデータ送信を行う機能を設けなくても、データ変換装置20に、変換後データの出力を行わせることができる。
In addition, as shown in FIG. 2, the information processing apparatus 10 is inside the same firewall as the data conversion apparatus 20, and there may be no firewall between them.
In such a case, data in a format that can be handled by the first data conversion function unit 21 can be transmitted from the information processing apparatus 10 to the first port of the data conversion apparatus 20 for processing. It is. Even if the second data conversion function unit 22 is provided in the data conversion device 20, the function of the first data conversion function unit 21 is not hindered at all. Therefore, in such a case, even if the communication control unit 12 is not provided with a function for transmitting data in a format that can be handled by the second data conversion function unit 22, the data conversion device 20 can perform post-conversion. Data can be output.

ただし、第1のデータ変換機能部21は、受信したデータの形式によらず特定のデータ変換を行うようにしている。従って、処理対象として想定している形式以外の形式のデータを受信してしまうと、変換処理が意味を成さないものとなり、出力が全く無意味なデータになってしまう。従って、情報処理装置10の側で、送信先のポートに応じた適切な形式のデータをデータ変換装置20に送信する必要がある。   However, the first data conversion function unit 21 performs specific data conversion regardless of the format of the received data. Therefore, if data in a format other than the format assumed as the processing target is received, the conversion processing does not make sense, and the output becomes completely meaningless data. Therefore, it is necessary for the information processing apparatus 10 side to transmit data in an appropriate format according to the transmission destination port to the data conversion apparatus 20.

第2のデータ変換機能部22も、同様に受信したデータの形式によらず特定のデータ変換を行うようにしてもよい。しかし、第2のデータ変換機能部22が処理するデータは、上述したようなHTTPやHTTPSを始めとする、よく使用されるプロトコルを用いた転送に適した形式のデータとすることが好ましい。そして、このような形式のデータには、種々のパラメータを含め、データの内容を示すことがよく行われるため、このようなパラメータの値を参照し、その値に応じて処理の内容を変えるようにしてもよい。
例えば、基本処理として、HTTPメッセージの所定のタグの中身を取り出す処理を行い、HTTPメッセージ中に、その所定のタグの中身が圧縮されている旨の情報が含まれていた場合には、取り出したデータにさらに解凍処理を行う等である。
Similarly, the second data conversion function unit 22 may perform specific data conversion regardless of the format of the received data. However, the data processed by the second data conversion function unit 22 is preferably data in a format suitable for transfer using a commonly used protocol such as HTTP or HTTPS described above. Since data in such a format is often used to indicate the contents of the data including various parameters, the values of such parameters are referred to, and the contents of processing are changed according to the values. It may be.
For example, as a basic process, a process for extracting the contents of a predetermined tag of an HTTP message is performed. If the HTTP message includes information indicating that the contents of the predetermined tag are compressed, the contents are extracted. For example, the data is further decompressed.

次に、図3に、上述したデータ変換装置20のハードウェア構成を示す。
この図に示すように、データ変換装置20は、CPU121,ROM122,RAM123,不揮発性メモリ124,通信インタフェース(I/F)125を備え、これらがシステムバス126により接続されている。
Next, FIG. 3 shows a hardware configuration of the data conversion apparatus 20 described above.
As shown in this figure, the data conversion apparatus 20 includes a CPU 121, ROM 122, RAM 123, nonvolatile memory 124, and communication interface (I / F) 125, which are connected by a system bus 126.

そして、CPU121は、データ変換装置20全体を統括制御する制御手段であり、ROM122や不揮発性メモリ124に記録された種々のプログラムを実行することにより、第1,第2のデータ変換手段等の各手段として機能し、この実施形態の特徴に係る種々の機能を実現する。
ROM122は、不揮発性の記憶手段であり、CPU121が実行するプログラムや、固定的なパラメータ等を記憶する。ROM122を書き換え可能な記憶手段として構成し、これらのデータをアップデートできるようにしてもよい。
The CPU 121 is a control unit that performs overall control of the entire data conversion device 20, and executes various programs recorded in the ROM 122 and the non-volatile memory 124, whereby each of the first and second data conversion units and the like is executed. It functions as a means to realize various functions according to the features of this embodiment.
The ROM 122 is a nonvolatile storage unit, and stores programs executed by the CPU 121, fixed parameters, and the like. The ROM 122 may be configured as a rewritable storage means so that these data can be updated.

RAM123は、一時的に使用するデータを記憶したり、CPU121のワークメモリとして使用したりする記憶手段である。
不揮発性メモリ124は、フラッシュメモリやHDD(ハードディスクドライブ)等による書き換え可能な不揮発性記憶手段であり、CPU121が実行するプログラムや、装置の電源がOFFされた後でも保持しておく必要があるパラメータの値等を記憶する。
The RAM 123 is storage means for storing temporarily used data or used as a work memory for the CPU 121.
The non-volatile memory 124 is a rewritable non-volatile storage means such as a flash memory or an HDD (hard disk drive). The program executed by the CPU 121 and parameters that need to be retained even after the apparatus is turned off. The value of etc. is memorized.

通信I/F125は、データ変換装置20をネットワークに接続するためのインタフェースであり、例えばイーサネット(登録商標)方式の通信を行うためのネットワークインタフェースとすることができる。そして、ネットワークを介して他の装置と通信を行う場合、この通信I/F125とCPU121とが通信手段として機能する。なお、通信I/F125は、ネットワークの規格や使用する通信プロトコル等に応じて適切なものを用意する。また、複数の規格に対応させて複数の通信I/F125を設けることも当然可能である。   The communication I / F 125 is an interface for connecting the data conversion apparatus 20 to a network, and can be a network interface for performing Ethernet (registered trademark) communication, for example. And when communicating with another apparatus via a network, this communication I / F125 and CPU121 function as a communication means. Note that an appropriate communication I / F 125 is prepared in accordance with a network standard, a communication protocol to be used, and the like. It is also possible to provide a plurality of communication I / Fs 125 corresponding to a plurality of standards.

なお、図3には示していないが、データ変換装置20に、外部に対して通信以外の物理的な出力を行うためのエンジン部を設けてもよい。このエンジン部は、例えばデータ変換装置20がレーザプリンタであれば、電子写真方式によるプリントエンジンであり、CPU121がこれらの動作を適切に制御することにより、データ変換装置20にプリント動作を実行させることができる。
また、情報処理装置10のハードウェア構成も、図3に示したものと同様、CPU,ROM,RAM,HDD,通信I/Fを設けたものとすればよく、例えば公知のコンピュータを用いることができる。
Although not shown in FIG. 3, the data conversion device 20 may be provided with an engine unit for performing physical output other than communication to the outside. For example, if the data conversion device 20 is a laser printer, the engine unit is an electrophotographic print engine, and the CPU 121 causes the data conversion device 20 to execute a print operation by appropriately controlling these operations. Can do.
Also, the hardware configuration of the information processing apparatus 10 may be a CPU, a ROM, a RAM, an HDD, and a communication I / F as in the case shown in FIG. 3. For example, a known computer is used. it can.

そして、これらのハードウェアに、図1を用いて説明したような機能を実現させることにより、データ変換装置20において、第1のデータ変換機能部21が、処理するデータの取得をファイアウォール50によって使用が許可されていない第1のポートから行う機能しか有しない場合でも、ファイアウォール50の外側からデータ変換装置20に対してデータを送信し、望みのデータを第1のデータ変換機能部21に処理させ、最終的に第1のデータ変換機能部21による変換後の形式のデータを出力させることができる。   Then, by realizing the functions described with reference to FIG. 1 in these hardware, the first data conversion function unit 21 uses the firewall 50 to acquire data to be processed in the data conversion device 20. Even if it has only a function to be performed from the first port that is not permitted, data is transmitted from the outside of the firewall 50 to the data conversion device 20 to cause the first data conversion function unit 21 to process the desired data. Finally, the data in the format after the conversion by the first data conversion function unit 21 can be output.

また、この場合において、第1のデータ変換機能部21がデータを受け取る受け口を、情報処理装置10から受け取る場合と、第2のデータ変換機能部22から受け取る場合とで共通化しているため、第1のデータ変換機能部21(を実現するためのソフトウェアやハードウェア)が開発済みである場合、それ自体を改変する必要は全くない。そして、第2のデータ変換機能部22を実現するためのソフトウェアやハードウェアを追加するだけで、データ変換装置20に上述した機能を実現させることができる。
従って、データ変換装置20が、ファイアウォールで使用が許可されているポートでデータを受信して第1のデータ変換機能部21による処理に供することができるようにしつつ、このような機能を有する装置を、既存の資源を利用して容易に開発できるようにすることができる。
Further, in this case, since the first data conversion function unit 21 receives the data receiving port from the information processing apparatus 10 and the second data conversion function unit 22 in common, the first data conversion function unit 21 receives the data. When one data conversion function unit 21 (software or hardware for realizing the data conversion function unit 21) has been developed, there is no need to modify itself. Then, the function described above can be realized in the data conversion apparatus 20 only by adding software or hardware for realizing the second data conversion function unit 22.
Therefore, the data conversion device 20 can receive data at a port permitted to be used by the firewall and can be used for processing by the first data conversion function unit 21, while a device having such a function is provided. Can be developed easily using existing resources.

なお、図4に示すように、データ変換機能部を多段に設け、順次、次段のデータ変換機能部で処理可能なデータ形式への変換を行って、そのデータ変換機能部がデータを受け付けるポートに、変換後のデータをループバックさせるようにしても、同様な効果を得ることができる。この場合、第1のデータ変換機能部21以外の各データ変換機能部が、第2のデータ変換手段に該当する。また、最初にデータを受け付けるポート(図4では第3のポート)のみについて、ファイアウォール50で使用が許可されていれば、その後の処理を問題なく行うことができる。また、図では3段だが、それ以上のデータ変換機能部を設けてよいことは、もちろんである。   In addition, as shown in FIG. 4, the data conversion function part is provided in multiple stages, sequentially converts to a data format that can be processed by the data conversion function part in the next stage, and the data conversion function part receives data. In addition, the same effect can be obtained by looping back the converted data. In this case, each data conversion function unit other than the first data conversion function unit 21 corresponds to the second data conversion unit. If only the port that receives data first (the third port in FIG. 4) is permitted by the firewall 50, the subsequent processing can be performed without any problem. Moreover, although it is three steps in the figure, it is needless to say that a data conversion function unit beyond that may be provided.

そして、このようにした場合でも、情報処理装置10側の通信制御部12がプリントデータをデータ変換装置20′に送信する際のポートを第3のポートとし、第3のデータ変換機能部23が取り扱うことのできるデータ形式で送信を行うようにすれば、データ変換装置20′の側では、各データ変換機能部がデータ変換を実行しつつ、最終的に第1のデータ変換機能部21による変換後のデータを出力させることができる。   Even in this case, the port when the communication control unit 12 on the information processing device 10 side transmits the print data to the data conversion device 20 ′ is the third port, and the third data conversion function unit 23 is If transmission is performed in a data format that can be handled, each data conversion function unit performs data conversion on the data conversion device 20 'side, and finally conversion by the first data conversion function unit 21 is performed. Later data can be output.

この場合において、多段の変換処理のうち、途中のデータ変換機能部と対応するポート(例えば図3における第2のポート)もファイアウォールで使用が許可されていれば、ここにデータを送信しても、対応する変換機能部以降の変換処理を実行させることも可能である。すなわち、多段の変換処理のうち、途中の工程から処理を開始させる制御も、情報処理装置10側でデータ変換装置20′にデータを送信する際のポートの選択により、可能である。   In this case, if the use of the port corresponding to the data conversion function part in the middle (for example, the second port in FIG. 3) is permitted by the firewall in the multi-stage conversion process, the data can be transmitted here. It is also possible to execute conversion processing after the corresponding conversion function unit. That is, of the multi-stage conversion processing, control for starting processing from an intermediate process is also possible by selecting a port when transmitting data to the data conversion device 20 ′ on the information processing device 10 side.

また、図5に示すように、データ変換装置20″側で、複数のデータ変換機能部が、第1のデータ変換機能部21が取り扱うことのできる形式へのデータ変換を行って、処理後のデータを第1のポートにループバックさせるような構成も可能である。このようにしても、最初にデータを受け付けるポート(図5では第2及び第3のポート)について、ファイアウォール50で使用が許可されていれば、最終的に第1のデータ変換機能部21による変換後のデータを出力させることができる。
図4のような構成は、データ変換を入れ子式に行う必要がある場合、図5のような構成は、第1のデータ変換機能部21が処理できる形式にするまでのデータ変換は1度に1種類でよいが、複数の変換方式又はプロトコルに対応させたい場合に採用するとよい。もちろん、これらを組み合わせてもよい。
Further, as shown in FIG. 5, on the data conversion device 20 ″ side, a plurality of data conversion function units perform data conversion into a format that can be handled by the first data conversion function unit 21. A configuration is also possible in which the data is looped back to the first port, and even in this case, the firewall 50 is permitted to use the ports that receive data first (the second and third ports in FIG. 5). If so, the data converted by the first data conversion function unit 21 can be finally output.
In the configuration as shown in FIG. 4, when it is necessary to perform data conversion in a nested manner, the configuration as shown in FIG. 5 performs data conversion until the first data conversion function unit 21 can process the data at a time. One type may be used, but it may be adopted when it is desired to support a plurality of conversion methods or protocols. Of course, these may be combined.

〔第2の実施形態:図6乃至図14〕
次に、この発明のデータ変換システムの、より具体的な第2の実施形態について説明する。図6は、その第2の実施形態であるプリントシステムの構成を示す機能ブロック図である。なお、この図においては、ソフトウェアにより実現される機能を示すブロックに、そのソフトウェアの名称を付している。また、以後、説明の便宜のため、CPUがソフトウェアを実行することによって行う処理や動作を、そのソフトウェアが処理や動作を行うものとして説明することもある。
[Second Embodiment: FIGS. 6 to 14]
Next, a more specific second embodiment of the data conversion system of the present invention will be described. FIG. 6 is a functional block diagram showing the configuration of the print system according to the second embodiment. In this figure, the name of the software is attached to the block indicating the function realized by the software. Further, hereinafter, for convenience of explanation, processing and operations performed by the CPU executing the software may be described as processing performed by the software.

図6に示すように、このプリントシステムは、PC30とプリンタ40によって構成している。そして、これらはそれぞれ第1の実施形態の情報処理装置10及びデータ変換装置20に該当する。
そして、プリンタ40は、第1のデータ変換手段としてプリンタアプリ41を、第2のデータ変換手段としてHTTP通信用アプリ42及びHTTPS通信用アプリ43を有する。
As shown in FIG. 6, this print system includes a PC 30 and a printer 40. These correspond to the information processing apparatus 10 and the data conversion apparatus 20 of the first embodiment, respectively.
The printer 40 includes a printer application 41 as the first data conversion unit, and an HTTP communication application 42 and an HTTPS communication application 43 as the second data conversion unit.

そして、プリンタアプリ41は、第1のポートである9100番ポートをリスンして、ここで何らかのデータを受信した場合、そのデータを特定のプリンタ言語で記載されたプリントデータとして取り扱い、そのプリントデータを、プリントエンジン44にプリントを行わせるための画像データに変換する処理を行う。すなわち、背景技術の項で図22を用いて説明したプリンタ90のプリンタアプリ91と同様な機能を有する。   Then, when the printer application 41 listens to the 9100 port as the first port and receives some data here, the printer application 41 treats the data as print data written in a specific printer language, and handles the print data. Then, the image data is converted into image data for causing the print engine 44 to perform printing. That is, it has the same function as that of the printer application 91 of the printer 90 described with reference to FIG.

また、HTTP通信用アプリ42は、PC30等の外部装置との間でHTTPを用いた通信を行う機能を有する。そして、第2のポートであるHTTPポート、より具体的には、80番ポートや8080番ポート等、HTTPを用いた通信に通常使用するポート、をリスンして、ここで何らかのデータを受信した場合、そのデータをHTTPメッセージとして取り扱い、その構造を解析すると共に、プリンタアプリ41が取り扱うことができる形式のプリントデータが記載されているはずの特定のタグ内の要素を取り出す機能を有する。また、取り出したプリントデータをループバックにより9100番ポートに送信する機能も有する。その他の機能を併せ持たせてもよいが、この点については後述する。   The HTTP communication application 42 has a function of performing communication using an HTTP with an external device such as the PC 30. When listening to an HTTP port as a second port, more specifically, a port normally used for communication using HTTP, such as port 80 or port 8080, and receiving some data here The data is handled as an HTTP message, the structure thereof is analyzed, and the element in a specific tag in which print data in a format that can be handled by the printer application 41 should be extracted is included. In addition, it has a function of transmitting the extracted print data to the 9100 port by loopback. Other functions may be provided, but this point will be described later.

また、HTTPS通信用アプリ43は、使用するポートがHTTPSポート、より具体的には443番ポートのようにHTTPSを用いた通信に通常使用するポート、であり、通信に使用するプロトコルがHTTPSであって、取り扱うHTTPメッセージが暗号化された状態で送信されてくるものであることを除けば、HTTP通信用アプリ42と同様な機能を有する。   In addition, the HTTPS communication application 43 is a port that is normally used for communication using HTTPS such as an HTTPS port, more specifically, a port 443, and the protocol used for communication is HTTPS. The HTTP communication application 42 has the same function as the HTTP communication application 42 except that the HTTP message to be handled is transmitted in an encrypted state.

従って、プリンタ40は、9100番ポートで特定のプリンタ言語で記載されたプリントデータを受信した場合にそのプリントデータに基づいてプリントを行うことができると共に、それとは異なるHTTPポートやHTTPSポートで、HTTPメッセージ内に記載されたプリントデータを受信した場合には、ここからプリントデータを取り出した上で、そのプリントデータに基づいてプリントを行うことができる。   Accordingly, when the printer 40 receives print data written in a specific printer language at the 9100 port, the printer 40 can perform printing based on the print data, and at a different HTTP port or HTTPS port, When the print data described in the message is received, the print data is taken out from the print data, and printing can be performed based on the print data.

なお、プリンタアプリ41は、受信するデータが特定の形式であることを前提にデータ変換処理を行うので、実際に受信したデータの形式がそれと異なる形式であった場合には、出力は無意味なデータになってしまう。しかし、このような構成としても、データの送信側を制御して正しい形式のデータを送信させるようにすれば問題なく動作するので、処理負荷の低減を考慮し、このような構成を採用している。   Since the printer application 41 performs data conversion processing on the assumption that the received data is in a specific format, the output is meaningless if the format of the actually received data is a different format. It becomes data. However, even in such a configuration, if the data transmission side is controlled to transmit data in the correct format, it operates without any problem. Therefore, this configuration is adopted in consideration of a reduction in processing load. Yes.

HTTP通信用アプリ42及びHTTPS通信用アプリ43についても、同様に、受信するデータが特定の形式であることを前提にデータ変換処理を行うようにしてもよい。
また、HTTP通信用アプリ42及びHTTPS通信用アプリ43は、デバイス組み込み用のJava(登録商標)であるJ2ME(Java 2 Micro Edition)を利用し、DSDK(Device Software Development Kit)の環境で動作するDSDKサーバアプリケーションとして作成することが考えられる。
Similarly, the HTTP communication application 42 and the HTTPS communication application 43 may perform data conversion processing on the assumption that the received data is in a specific format.
Further, the HTTP communication application 42 and the HTTPS communication application 43 use a device embedded Java (registered trademark) J2ME (Java 2 Micro Edition) and operate in a DSDK (Device Software Development Kit) environment. It is possible to create it as a server application.

また、プリンタ40は、上記以外にも、省エネルギ制御部45を備えており、一定時間何のデータも受信せず、かつプリント動作も行っていない場合に、自身を省エネルギモードに移行させるようにしている。そして、この状態では、消費エネルギを低減するため、プリンタ40の各部の電源を遮断する等し、RAMに常駐させておくプログラムも、必要最低限のものとしている。   In addition to the above, the printer 40 is provided with an energy saving control unit 45 so that the printer 40 shifts itself to the energy saving mode when no data is received for a certain period of time and no printing operation is performed. I have to. In this state, in order to reduce energy consumption, a program that is resident in the RAM, such as by shutting off the power supply of each part of the printer 40, is kept to a minimum.

ただし、図6に示した範囲では、プリンタアプリ41,HTTP通信用アプリ42,HTTPS通信用アプリ43は共に重要なアプリであるので、省エネルギモードでも常駐させておくようにしており、省エネルギモードで機能が停止されるのは、プリントエンジン44のみである。   However, in the range shown in FIG. 6, since the printer application 41, the HTTP communication application 42, and the HTTPS communication application 43 are all important applications, they are made to stay resident even in the energy saving mode. The function is stopped only by the print engine 44.

そして、省エネルギ制御部45は、プリントデータが送られてくるはずの9100番ポートで何らかのデータを受信したり、図示しない操作部により何らかの操作を受け付ける等すると、プリンタ40を通常動作モードに復帰させ、RAMから削除していたプログラムも、不揮発メモリから読み出して、再度実行可能な状態に戻すようにしている。
また、HTTPポートやHTTPSポートで何らかのデータを受信した場合については、HTTP通信用アプリ42やHTTPS通信用アプリ43が、9100番ポートに自身を通常動作モードに復帰させるためのダミーのデータとして、例えばヘッダとフッタのみのプリントデータをループバック送信することにより、プリンタ40を通常動作モードに復帰させることができるようにしている。
The energy saving control unit 45 returns the printer 40 to the normal operation mode when receiving some data at the 9100 port to which print data should be sent or accepting some operation by an operation unit (not shown). The program deleted from the RAM is also read from the nonvolatile memory and returned to an executable state.
In addition, when any data is received at the HTTP port or the HTTPS port, the HTTP communication application 42 or the HTTPS communication application 43 is, for example, dummy data for returning itself to the normal operation mode at the 9100 port. The printer 40 can be returned to the normal operation mode by transmitting the print data of only the header and the footer in a loopback manner.

一方、PC30には、アプリケーション31とプリンタドライバ32とポートモニタ33を備えるが、このうち、アプリケーション31とプリンタドライバ32は、背景技術の項で図22を用いて説明したPC80のアプリケーション81及びプリンタドライバ82と同様な機能を有する。   On the other hand, the PC 30 includes an application 31, a printer driver 32, and a port monitor 33. Of these, the application 31 and the printer driver 32 are the application 81 and the printer driver of the PC 80 described with reference to FIG. 82 has the same function.

また、ポートモニタ33は、標準スプーラ34と拡張スプーラ35を備えているが、このうち標準スプーラ34の機能は、上記のPC80のポートモニタ83の機能と同様なものである。すなわち、プリンタドライバ32は、プリンタ言語形式に変換したプリントデータを、標準スプーラ34のスプールディレクトリにスプールするようにし、標準スプーラ34は、そのスプールディレクトリにスプールされたデータを、使用するプリンタのアドレスの、9100番ポートに送信する機能を有する。
PC30とプリンタ40との間にファイアウォールがないか、あっても9100番ポートの使用が許可されている場合には、この標準スプーラ34を用いてプリンタ40にプリントデータを送信し、プリントを行わせることも可能である。
The port monitor 33 includes a standard spooler 34 and an expansion spooler 35. Among these, the function of the standard spooler 34 is the same as the function of the port monitor 83 of the PC 80 described above. In other words, the printer driver 32 spools the print data converted into the printer language format into the spool directory of the standard spooler 34. The standard spooler 34 uses the data spooled in the spool directory for the address of the printer to be used. , 9100 port transmission function.
If there is no firewall between the PC 30 and the printer 40, or even if the use of the 9100 port is permitted, the standard spooler 34 is used to transmit print data to the printer 40 for printing. It is also possible.

しかし、後述のようにプリント指示時に拡張スプーラ35を使用する旨が設定されているプリンタに対してプリントデータを送信する場合には、標準スプーラ34のデータ送信機能を使用せず、標準スプーラ34のスプールディレクトリにスプールされたデータは、拡張スプーラ35のスプールディレクトリにスプールし直し、拡張スプーラ35が、そのデータをプリンタ40の所定のポートに送信するようにしている。
またこの時、ユーザの指定に応じて必要な場合には通信の暗号化を行うようにしている。そして、ここで暗号化を行わない場合は、HTTPを用いてHTTPポートに送信し、暗号化を行う場合は、HTTPSを用いてHTTPSポートに送信するようにしている。
However, when print data is transmitted to a printer that is set to use the extended spooler 35 at the time of printing as described later, the data transmission function of the standard spooler 34 is not used, and the standard spooler 34 The data spooled in the spool directory is re-spooled in the spool directory of the expansion spooler 35, and the expansion spooler 35 transmits the data to a predetermined port of the printer 40.
At this time, communication encryption is performed if necessary according to the user's designation. If encryption is not performed here, the message is transmitted to the HTTP port using HTTP. If encryption is performed, the message is transmitted to the HTTPS port using HTTPS.

以上のようなPC30とプリンタ40のハードウェア構成は、第1の実施形態で図3を用いて説明したものと同様でよい。ただし、プリンタ40は、エンジン部としてプリントエンジン44を備えている。また、プリンタ40は、コピーやファクシミリ通信等の機能を併せ持つデジタル複合機(MFP)であってもよい。   The hardware configurations of the PC 30 and the printer 40 as described above may be the same as those described with reference to FIG. 3 in the first embodiment. However, the printer 40 includes a print engine 44 as an engine unit. The printer 40 may be a digital multi-function peripheral (MFP) having functions such as copying and facsimile communication.

ここで、図7に、プリンタ40が取り扱うデータの形式を示す。
図7に示すように、プリンタ40は、HTTPポート又はHTTPSポートで受信するデータがHTTPメッセージであることを想定して構成している。なお、HTTPSポートで受信するデータは、暗号化されており、復号化に必要な情報を記載したヘッダやフッタが記載されているが、復号化してしまえば、HTTPメッセージとなる。
そして、このHTTPメッセージの中には、予め定めたタグでマークアップした種々の情報が記載され得る。
例えば、(a)に示す例では、HTTPメッセージに、印刷属性データと、プリントデータファイルとを記載している。
Here, FIG. 7 shows a data format handled by the printer 40.
As shown in FIG. 7, the printer 40 is configured assuming that the data received at the HTTP port or the HTTPS port is an HTTP message. The data received at the HTTPS port is encrypted and includes a header and a footer that describe information necessary for decryption. However, if decrypted, the data is an HTTP message.
In the HTTP message, various information marked up with a predetermined tag can be described.
For example, in the example shown in (a), print attribute data and a print data file are described in the HTTP message.

このうち、プリントデータファイルは、プリンタアプリ41が取り扱うことのできるプリンタ言語によるプリントデータをバイナリで記載したデータを含むファイルである。プリンタ言語としてPCL(Printer Control Language)6,PCL5e,RPCS等を用いる場合、バイナリのプリントデータに、PJL(Printer
Job Language)言語で記載したヘッダとフッタを付し、ここに、用紙サイズ、解像度等、プリントジョブの実行に関する情報のうち、画像データの内容に関わる情報を記載する。
Among these, the print data file is a file including data in which print data in a printer language that can be handled by the printer application 41 is described in binary. When PCL (Printer Control Language) 6, PCL5e, RPCS, etc. are used as the printer language, PJL (Printer
A header and a footer described in the (Job Language) language are attached, and information relating to the contents of the image data among the information relating to the execution of the print job such as the paper size and resolution is described here.

そして、この例では、プリントデータファイルをHTTPメッセージ中からそのまま取り出すだけで、例えば、受信したHTTPメッセージのうち特定のタグでマークアップされている部分を取り出すだけで、受信したHTTPメッセージをプリンタアプリ41が取り扱うことのできるデータに変換することができる。   In this example, the print data file is simply taken out of the HTTP message as it is, and for example, the received HTTP message is simply taken out of the received HTTP message and marked with a specific tag. Can be converted to data that can be handled.

また、印刷属性データは、なくてもよいデータであるが、両面印刷有無,集約印刷を行うならばその集約形式,ステープル処理有無,パンチ穴あけ有無等、プリントジョブの実行に関する情報のうち、画像データの内容には関わらない、プリンタ40側での処理を指定する情報を示すデータである。そして、HTTP通信用アプリ42及びHTTPS通信用アプリ43は、このデータに基づき、PJL言語の拡張ヘッダを生成し、HTTPメッセージ中から取り出したプリントデータにマージして9100番ポートにループバック送信することができる。   The print attribute data may be omitted, but image data includes information regarding execution of a print job, such as whether or not double-sided printing is performed, if aggregated printing is performed, the aggregation format, whether or not stapling is performed, and whether punching is performed. This is data indicating information for specifying processing on the printer 40 side, irrespective of the contents of. Based on this data, the HTTP communication application 42 and the HTTPS communication application 43 generate an extension header in the PJL language, merge it with the print data extracted from the HTTP message, and send it back to the 9100 port. Can do.

なお、印刷属性データは、PJL言語の拡張ヘッダとしてHTTPメッセージ中に記載し、そのまま取り出してプリントデータにマージできるようにしても、パラメータの羅列としてHTTPメッセージ中に記載し、プリンタ40側でこれをPJL言語に変換してもよいが、ここでは後者の方式を採用している。この方が、プリンタ40側で実行できない機能に係る設定、例えば両面ユニットがない場合の両面印刷設定等、をプリンタ40側の判断で排除できるため、好ましい。
また、印刷属性データや、その中の細分化された項目をそれぞれタグによりマークアップしておけば、印刷属性データに関する処理を行う必要がない場合には、単にタグの内容を読み飛ばすようにすることにより、処理を簡略化することができる。
The print attribute data is described in the HTTP message as an extension header of the PJL language, and even if it can be extracted and merged with the print data as it is, it is described in the HTTP message as a list of parameters, and is printed on the printer 40 side. Although it may be converted into the PJL language, the latter method is adopted here. This is preferable because settings relating to functions that cannot be executed on the printer 40 side, such as duplex printing settings when there is no duplex unit, can be eliminated by judgment on the printer 40 side.
In addition, if the print attribute data and the subdivided items in it are marked up with tags, the contents of the tags are simply skipped when there is no need to perform processing related to the print attribute data. As a result, the processing can be simplified.

一方、(b)に示す例では、HTTPメッセージに、印刷属性データと、印刷内容ファイルとを記載している。
このうち、印刷内容ファイルは、プリンタ40にプリントさせる画像の内容を、PDF(Portable
Document Format)やPS(PostScript)といったページ記述言語で記載したり、プリントさせる情報の内容をXML(eXtensible
Markup Language)といった構造化言語により記載したりしたデータを含むファイルである。
On the other hand, in the example shown in (b), print attribute data and a print content file are described in the HTTP message.
Among these, the print content file is a PDF (Portable) image content to be printed by the printer 40.
The content of information to be described or printed in a page description language such as Document Format or PS (PostScript) is XML (eXtensible
A file containing data described in a structured language such as Markup Language.

そして、HTTP通信用アプリ42及びHTTPS通信用アプリ43には、このような印刷内容ファイルを含むHTTPメッセージを受信した場合に、印刷内容ファイルの内容を解釈し、その内容に基づき、プリントすべき画像の内容を、プリンタアプリ41が取り扱うことのできるプリンタ言語によるプリントデータに変換する機能を持たせることができる。これは、PDFやPSといった特定の形式のデータのみ処理可能な機能でもよいし、複数の形式を識別して、各々に対し適切な処理が可能な機能としてもよい。   When the HTTP communication application 42 and the HTTPS communication application 43 receive an HTTP message including such a print content file, the HTTP communication application 42 interprets the content of the print content file and prints an image to be printed based on the content. Can be provided with a function of converting the contents of the print data into print data in a printer language that can be handled by the printer application 41. This may be a function that can process only data in a specific format such as PDF or PS, or a function that can identify a plurality of formats and perform appropriate processing on each.

ただし、このような機能によりプリントデータを生成したとしても、もとの印刷内容ファイルにPJL言語によるヘッダやフッタが含まれていなければ、変換後のデータにもヘッダやフッタは含まれない。そこで、デフォルトのヘッダ及びフッタを自動生成して変換後のプリントデータに付すようにするとよい。
また、HTTPメッセージに印刷属性データが含まれていれば、(a)の場合と同様にPJL言語の拡張ヘッダを生成し、これを変換後のプリントデータに付すことができる。この場合には、自動生成するのはフッタのみでよい。
However, even if print data is generated by such a function, if the original print content file does not include a header or footer in the PJL language, the converted data does not include the header or footer. Therefore, a default header and footer may be automatically generated and attached to the converted print data.
If print attribute data is included in the HTTP message, an extension header in PJL language can be generated as in the case of (a), and this can be attached to the converted print data. In this case, only the footer may be automatically generated.

次に、図8に、図6に示したPC30及びプリンタ40を設置する環境の例を示す。
会社等においてネットワーク環境を構築する場合、外部からのアクセスを許可するサーバ60a〜60cは、社内環境と社外環境の双方からファイアウォール50eにより隔離したDMZと呼ばれる領域に設けることは広く行われている。
そして、近年においては、社内環境においても、拠点毎、部署毎、フロア毎といった環境毎にファイアウォール50a〜50dを設け、セキュリティの強化を図ることが行われるようになっている。図6に示したPC30及びプリンタ40は、PC30a〜30d,プリンタ40a〜40dのようにファイアウォール50a〜50dの内側に配置される。このような配置は必須ではないが、少なくともプリンタ40については、このような位置に配置される場合に効果を発揮する。
Next, FIG. 8 shows an example of an environment in which the PC 30 and the printer 40 shown in FIG. 6 are installed.
When a network environment is constructed in a company or the like, the servers 60a to 60c that permit external access are widely provided in an area called DMZ that is isolated from both the internal environment and the external environment by a firewall 50e.
In recent years, even in the in-house environment, firewalls 50a to 50d are provided for each environment such as each base, each department, and each floor to enhance security. The PC 30 and the printer 40 shown in FIG. 6 are arranged inside the firewalls 50a to 50d like the PCs 30a to 30d and the printers 40a to 40d. Such an arrangement is not essential, but at least the printer 40 is effective when arranged at such a position.

すなわち、ファイアウォール50a〜50dは、HTTPやHTTPSといった通常良く使用されるプロトコルでの通信に使用するポートの使用は許可するが、9100番ポートのように、機種依存のプロトコルでの通信に使用するポートの使用は許可しない設定となっていることが多い。従って、各環境においてプリンタ40(包括的に指す場合には符号のアルファベットは省略する)がファイアウォール50の内側に配置されている場合、同一環境内のPC30からのプリントデータは、9100番ポートで直接受信できるが、他の環境内のPC30の場合には、9100番ポートへの送信は、ファイアウォール50により遮断されてしまう。   In other words, the firewalls 50a to 50d permit the use of ports used for communication with commonly used protocols such as HTTP and HTTPS, but ports used for communication with model-dependent protocols such as the 9100th port. The use of is often not allowed. Accordingly, when the printer 40 (the alphabet of reference numerals is omitted when referring generically) is arranged inside the firewall 50 in each environment, print data from the PC 30 in the same environment is directly at port 9100. In the case of the PC 30 in another environment, transmission to the 9100 port is blocked by the firewall 50.

しかし、図6を用いて説明したようなHTTP通信用アプリ42及びHTTPS通信用アプリ43を設け、HTTPやHTTPSといった、ファイアウォール50で使用を許可されているポートを使用するプロトコルでのプリントデータの送受信を可能にすれば、ファイアウォール50が存在しても、それを越えてプリントデータを送信し、プリンタ40にプリントを実行させることができるのである。また、この際に、プリンタアプリ41やプリントエンジン44については、9100番ポートでプリントデータを受信するような従来の機種のものに、一切変更を加える必要がない。   However, an HTTP communication application 42 and an HTTPS communication application 43 as described with reference to FIG. 6 are provided, and print data is transmitted and received using a protocol that uses a port permitted to be used by the firewall 50, such as HTTP or HTTPS. If it is possible, even if the firewall 50 exists, print data can be transmitted beyond the firewall 50 and the printer 40 can execute printing. At this time, the printer application 41 and the print engine 44 do not need to be changed at all in the conventional model that receives the print data at the 9100 port.

次に、図9及び図10に、PC30において拡張スプーラ35の設定に使用する画面の例を示す。これらの画面は、PC30のディスプレイに表示させるGUI(グラフィカル・ユーザ・インタフェース)である。
図9は、プリンタにプリントを実行させる場合の、拡張スプーラ35の使用並びに、通信の暗号化の有無を設定するための画面例である。
この設定画面150は、PC30のOS(オペレーティングシステム)にデバイスドライバとして拡張スプーラ35が登録されている場合、ユーザが拡張スプーラ35を使用したプリントの設定を行おうとすると、その拡張スプーラ35の機能により表示されるものである。
Next, FIG. 9 and FIG. 10 show examples of screens used for setting the expansion spooler 35 in the PC 30. These screens are GUIs (graphical user interfaces) displayed on the display of the PC 30.
FIG. 9 is an example of a screen for setting the use of the extension spooler 35 and the presence / absence of communication encryption when the printer executes printing.
When the expansion spooler 35 is registered as a device driver in the OS (operating system) of the PC 30, the setting screen 150 is displayed by the function of the expansion spooler 35 when the user attempts to perform print settings using the expansion spooler 35. It is what is displayed.

そして、この画面においては、ユーザがプロトコル選択部151でプリント時のプリントデータ転送に使用するプロトコルを選択し、検索ボタン152を押下すると、PC30がOSの機能によりブロードキャストを行って、使用可能なプリンタを検索し、プリンタ一覧部153にその情報を表示する。また、ファイアウォール50を越える別環境にあるプリンタの情報については、サーバ60等に機器リストを登録しておき、これを参照して情報を表示するようにしてもよい。図の例では、プリンタ一覧部153にプリンタの機種と、プリンタ個別のIDと、プリンタのIP(Internet Protocol)アドレスを表示するようにしているが、これに限られるものではない。   In this screen, when the user selects a protocol to be used for print data transfer at the time of printing with the protocol selection unit 151 and presses the search button 152, the PC 30 performs broadcasting by the function of the OS, and the usable printer And the information is displayed on the printer list unit 153. For information on printers in other environments beyond the firewall 50, a device list may be registered in the server 60 or the like, and the information may be displayed with reference to the device list. In the example shown in the drawing, the printer model, the individual ID of the printer, and the IP (Internet Protocol) address of the printer are displayed on the printer list unit 153, but the present invention is not limited to this.

そして、ユーザがカーソル154を合わせてプリンタ一覧部153からいずれかのプリンタを選択し、OKボタン156を押下すると、そのプリンタにプリントを指示するためのポートが作成され、OSに、そのプリンタにプリントを指示する際に、拡張スプーラ35を使用する旨が設定される。また、そのプリンタにデータを送信する際のIPアドレスも設定される。またこのとき、チェックボックス155にチェックが入っていた場合、プリントデータの転送を、HTTPSプロトコルにより暗号化してHTTPSポートに対して行う旨も設定される。また、キャンセルボタン157が押下された場合には、設定は行わずにこの画面を閉じる。   When the user moves the cursor 154 to select one of the printers from the printer list unit 153 and presses the OK button 156, a port for instructing the printer to print is created, and the OS prints to the printer. Is set to use the expansion spooler 35. In addition, an IP address for transmitting data to the printer is also set. At this time, if the check box 155 is checked, it is also set that the print data is transferred to the HTTPS port after being encrypted by the HTTPS protocol. If the cancel button 157 is pressed, this screen is closed without setting.

また、図10は、上記の設定画面150により拡張スプーラ35の使用を設定したプリンタにつき、プリントに使用するポートの設定の状態の参照を指示した場合に表示される画面例である。
そして、この参照画面160では、画面のタイトル161により、拡張スプーラ35を使用することがわかり、ポート番号表示部162により、プリンタにデータを送信する際にどのポートに送信するかを確認することができる。また、チェックボックス163により、通信の暗号化を行うか否かも確認することができる。
FIG. 10 is an example of a screen that is displayed when the printer for which use of the expansion spooler 35 is set on the setting screen 150 is instructed to refer to the setting state of the port used for printing.
In the reference screen 160, it can be seen from the screen title 161 that the expansion spooler 35 is used, and the port number display unit 162 can confirm to which port the data is transmitted when data is transmitted to the printer. it can. The check box 163 can also confirm whether or not to encrypt communication.

ここでは、通信の暗号化を行うため、送信先のポートは443番としている。しかし、プリンタ側の設定に応じて、この内容は変更可能である。また、通信の暗号化をしない旨が設定された場合、送信先のポートを自動的に80番又は8080番に変更するようにしてもよい。   Here, the destination port is 443 in order to encrypt communication. However, this content can be changed according to the setting on the printer side. Further, when it is set that communication is not encrypted, the destination port may be automatically changed to 80 or 8080.

次に、図11乃至図14を用いて、図6に示したプリントシステムにおいてPC30及びプリンタ40が実行する、この実施形態の特徴に係る処理について説明する。この処理については、種々のバリエーションが考えられるが、ここでは、PC30からプリンタ40に、図7(a)に示したようなHTTPメッセージを送信することを前提とした場合の処理例を示す。   Next, processing according to the feature of this embodiment executed by the PC 30 and the printer 40 in the print system shown in FIG. 6 will be described with reference to FIGS. 11 to 14. Various variations are conceivable for this processing, but here, a processing example is shown assuming that an HTTP message as shown in FIG. 7A is transmitted from the PC 30 to the printer 40.

まず、図11に、PC30側で実行する処理のフローチャートを示す。
この処理は、PC30において、拡張スプーラ35を利用する旨が設定されているプリンタでのプリントが指示された場合に、CPUがプリンタドライバ及び拡張スプーラ35を実行することにより行うものである。
First, FIG. 11 shows a flowchart of processing executed on the PC 30 side.
This processing is performed by the CPU executing the printer driver and the expansion spooler 35 when the PC 30 is instructed to print with a printer that is set to use the expansion spooler 35.

この処理においてはまず、ステップS11で、プリンタドライバが、標準スプーラ34のスプールディレクトリに、印刷内容を示すプリントデータをスプールする。
その後、ステップS12で、スプールしたプリントデータと、プリント指示時に指定された拡張印刷属性(図7に示した印刷属性データとして記載すべき項目の属性)に基づく印刷属性データとを含むHTTPメッセージを生成し、ステップS13で、作成したHTTPメッセージを拡張スプーラ35のスプールディレクトリにスプールする。
In this process, first, in step S <b> 11, the printer driver spools print data indicating print contents in the spool directory of the standard spooler 34.
After that, in step S12, an HTTP message including spooled print data and print attribute data based on the extended print attribute (the attribute of the item to be described as print attribute data shown in FIG. 7) designated at the time of printing is generated. In step S13, the created HTTP message is spooled in the spool directory of the extension spooler 35.

そして、ステップS14で、通信を暗号化する旨の設定がなされているか否か判断する。
ここで暗号化しない旨が設定されていれば、ステップS15に進み、拡張スプーラ35のスプールディレクトリにスプールしたHTTPメッセージを、HTTPプロトコルによりプリンタ40のアドレスのHTTPポート(送信先として設定されているポート)に送信し、処理を終了する。
In step S14, it is determined whether or not a setting for encrypting communication is made.
If no encryption is set here, the process proceeds to step S15, and the HTTP message spooled in the spool directory of the expansion spooler 35 is transferred to the HTTP port (port set as the transmission destination) of the printer 40 by the HTTP protocol. ) To finish the process.

また、ステップS14で暗号化する旨が設定されていれば、ステップS16に進み、拡張スプーラ35のスプールディレクトリにスプールしたHTTPメッセージを、HTTPSプロトコルによりプリンタ40のアドレスのHTTPSポート(送信先として設定されているポート)に送信し、処理を終了する。
なお、これらの送信は、4096バイトずつ等、所定サイズ毎に行ってもよい。
If encryption is set in step S14, the process proceeds to step S16, in which the HTTP message spooled in the spool directory of the extension spooler 35 is set to the HTTPS port (set as the transmission destination) of the printer 40 by the HTTPS protocol. Port) to finish the process.
These transmissions may be performed for each predetermined size, such as 4096 bytes.

以上の処理により、プリントデータを、プリンタ40のHTTP通信用アプリ42が処理できる形式で送信する場合には、HTTP通信用アプリ42がリスンしているポートに、HTTPS通信用アプリ43が処理できる形式で送信する場合には、HTTPS通信用アプリ43がリスンしているポートに送信することができる。
従って、プリンタ40側で各データを適切に処理させることができる。
With the above processing, when print data is transmitted in a format that can be processed by the HTTP communication application 42 of the printer 40, a format that can be processed by the HTTPS communication application 43 at a port on which the HTTP communication application 42 is listening. Can be transmitted to the port on which the HTTPS communication application 43 is listening.
Therefore, each data can be appropriately processed on the printer 40 side.

次に、図12に、プリンタ40側でCPUがHTTP通信用アプリ42により実行する処理のフローチャートを示す。
CPUは、プリンタ40が起動されると、HTTP通信用アプリ42を実行することにより、図12のフローチャートに示す処理を開始する。
Next, FIG. 12 shows a flowchart of processing executed by the CPU 42 using the HTTP communication application 42 on the printer 40 side.
When the printer 40 is activated, the CPU starts the process shown in the flowchart of FIG. 12 by executing the HTTP communication application 42.

そして、ステップS21でHTTP通信用アプリ42をHTTPポートにバインドし、このポートをリスンする状態にする。そして、ステップS22及びS23でそのHTTPポートへの接続を待つ。
その後、PC30等の外部クライアントからあるいはローカルのループバック等により接続要求に係るデータを受信すると、ステップS23からステップS24に進んでその接続を許可すると共に、ステップS25でローカルホストの9100番ポートに接続要求を行って、接続許可を受ける。
In step S21, the HTTP communication application 42 is bound to the HTTP port, and the port is set to listen. In steps S22 and S23, the connection to the HTTP port is awaited.
After that, when data related to the connection request is received from an external client such as the PC 30 or by local loopback or the like, the process proceeds from step S23 to step S24 to permit the connection and to connect to the 9100 port of the local host in step S25. Make a request and get permission to connect.

そして、ステップS26で、ローカルホストの9100番ポートにダミーデータを送信し、プリンタ40が省エネルギモードであれば、通常動作モードに復帰させる。
その後、ステップS27で、HTTPポートでHTTPメッセージを受信し、それをバッファに蓄積しつつ、その蓄積したHTTPメッセージからプリントデータを抽出する。
そして、ステップS28で、受信したデータ中に印刷属性データがあったか否か判断し、あれば、ステップS29でその印刷属性データからPJL言語の拡張ヘッダを生成して、ステップS27で抽出したプリントデータにマージし、ステップS30以下に進む。なければそのままステップS30以下に進む。
In step S26, dummy data is transmitted to the 9100 port of the local host, and if the printer 40 is in the energy saving mode, the normal operation mode is restored.
Thereafter, in step S27, an HTTP message is received at the HTTP port, and the print data is extracted from the accumulated HTTP message while accumulating it in the buffer.
In step S28, it is determined whether or not print attribute data is included in the received data. If there is, the PJL language extension header is generated from the print attribute data in step S29, and the print data extracted in step S27 is added. Merge and proceed to step S30 and subsequent steps. If not, the process proceeds to step S30 and subsequent steps.

ステップS30では、クライアントからの通信切断、ステップS27での抽出処理エラーのいずれかが起こったか否か判断する。ここで、抽出処理エラーは、抽出に使用したライブラリから処理結果としてエラーが返された場合である。プリントデータとして抽出されたデータが不適当な形式のデータであっても、エラーとはならない。
そして、ステップS30で上記のいずれも起こっていなければ、ステップS31で、抽出したプリントデータを、マージした拡張ヘッダも含めてローカルホストの9100番ポートに送信する。その送信は、データの切れ目を意識せずに4096バイトずつ等の所定サイズずつ行えばよい。また、一度に送信するサイズは、PC30から直接9100番ポートにプリントデータを送信する場合と同じサイズとするとよい。
In step S30, it is determined whether any one of the disconnection from the client and the extraction processing error in step S27 has occurred. Here, the extraction processing error is a case where an error is returned as a processing result from the library used for extraction. Even if the data extracted as print data is in an inappropriate format, no error will occur.
If none of the above has occurred in step S30, the extracted print data including the merged extension header is transmitted to port 9100 of the local host in step S31. The transmission may be performed by a predetermined size such as 4096 bytes without being aware of data breaks. Further, the size to be transmitted at a time may be the same size as when print data is directly transmitted from the PC 30 to the 9100th port.

その後、ステップS32で、プリントデータの抽出及び9100番ポートへの送信が完了したか否か判断し、完了していなければステップS27に戻って処理を繰り返し、完了していれば、ステップS33に進んで通信を切断し、ステップS22に戻る。
また、ステップS30でYESの場合も、ステップS33に進んで通信を切断し、ステップS22に戻る。
Thereafter, in step S32, it is determined whether or not print data extraction and transmission to the 9100th port are completed. If not completed, the process returns to step S27 to repeat the process. If completed, the process proceeds to step S33. Then, the communication is disconnected and the process returns to step S22.
Also in the case of YES at step S30, the process proceeds to step S33 to disconnect the communication and returns to step S22.

以上の処理により、プリンタ40は、HTTPポートに受信したデータであるHTTPメッセージに対し、プリンタアプリ41が処理できる形式のデータとするための特定の変換処理を行い、その処理後のデータを9100番ポートに送信することができる。この変換処理は、ここでは受信したデータの形式によらず同じ処理としているが、適切な形式のデータを受信していれば、出力は、プリンタアプリ41が処理できる形式のプリントデータとなる。なお、ステップS28及びS29の処理は、行わなくてもよい。   Through the above processing, the printer 40 performs specific conversion processing for converting the HTTP message, which is data received at the HTTP port, into data in a format that can be processed by the printer application 41, and sets the processed data to number 9100. Can be sent to the port. This conversion processing is the same processing here regardless of the format of the received data. However, if data in an appropriate format is received, the output is print data in a format that can be processed by the printer application 41. Note that the processing in steps S28 and S29 may not be performed.

次に、図13に、プリンタ40側でCPUがHTTPS通信用アプリ43により実行する処理のフローチャートを示す。
CPUは、プリンタ40が起動されると、HTTPS通信用アプリ43を実行することにより、図13のフローチャートに示す処理を開始する。
ただし、この処理は、図12に示した処理と概ね同様なものであり、リスンするポートがHTTPSポートである点(S41,S42)、受信したHTTPメッセージを復号化する点(S47)が異なるのみであるので、詳細な説明は省略する。
そして、この処理により、プリンタ40は、HTTPSポートに受信したデータである暗号化されたHTTPメッセージに対し、プリンタアプリ41が処理できる形式のデータとするための特定の変換処理を行い、その処理後のデータを9100番ポートに送信することができる。
Next, FIG. 13 shows a flowchart of processing executed by the CPU 43 using the HTTPS communication application 43 on the printer 40 side.
When the printer 40 is activated, the CPU starts the process shown in the flowchart of FIG. 13 by executing the HTTPS communication application 43.
However, this process is substantially the same as the process shown in FIG. 12, except that the listening port is an HTTPS port (S41, S42) and the received HTTP message is decrypted (S47). Therefore, detailed description is omitted.
Through this process, the printer 40 performs a specific conversion process for converting the encrypted HTTP message, which is the data received at the HTTPS port, into data in a format that can be processed by the printer application 41. Can be transmitted to the 9100 port.

次に、図14に、プリンタ40側でCPUがプリンタアプリ41により実行する処理のフローチャートを示す。
CPUは、プリンタ40が起動されると、プリンタアプリ41を実行することにより、図14のフローチャートに示す処理を開始する。
そして、ステップS61でプリンタアプリ41を9100番ポートにバインドし、このポートをリスンする状態にする。そして、ステップS62及びS63でその9100番ポートへの接続を待つ。
Next, FIG. 14 shows a flowchart of processing executed by the printer application 41 by the CPU on the printer 40 side.
When the printer 40 is activated, the CPU starts the processing shown in the flowchart of FIG. 14 by executing the printer application 41.
In step S61, the printer application 41 is bound to the 9100th port, and the port is set to listen. In steps S62 and S63, the connection to the port 9100 is awaited.

その後、PC30等の外部クライアントあるいはローカルのループバック等により接続要求があると、ステップS63からステップS64に進んでその接続を許可する。
そして、ステップS65で、9100番ポートでデータを受信し、それをバッファに蓄積しつつ、その蓄積したデータをもとに、画像メモリに画像データを描画して、プリントエンジン44にその画像データに基づくプリントを指示する。
そして、ステップS66で、クライアントからの通信切断、ステップS65での描画処理エラー、描画完了のいずれかが起こるまでステップS65に戻って処理を繰り返す。そして、いずれかが起こるとステップS67で通信を切断し、ステップS62に戻って処理を繰り返す。
Thereafter, when there is a connection request by an external client such as the PC 30 or a local loopback, the process proceeds from step S63 to step S64 and the connection is permitted.
In step S65, data is received at port 9100, and the data is stored in the buffer, and based on the stored data, image data is drawn in the image memory, and the print engine 44 stores the image data. Direct print based.
In step S66, the process returns to step S65 and repeats until one of disconnection of communication from the client, drawing process error in step S65, and drawing completion occurs. If any of them occurs, the communication is disconnected in step S67, and the process returns to step S62 to repeat the process.

以上の処理により、プリンタ40は、9100番ポートに受信したデータを、プリントエンジン43を駆動するための画像データに変換するための特定の描画処理を行い、その処理後のデータに基づいてプリントエンジン44にプリントを実行させることができる。この処理は、データの送信元がPC30であっても、HTTP通信用アプリ42やHTTPS通信用アプリ43であっても、共通に行うようにしている。また、描画処理は、受信したデータの形式によらず同じ処理を行うが、適切な形式のデータを受信していれば、描画により、形成すべき画像の内容を示す画像データを得ることができる。
なお、このフローチャートに示した処理は、従来のプリンタに備えるプリントエンジンの場合と同様なものでよい。
Through the above processing, the printer 40 performs a specific drawing process for converting the data received at the 9100th port into image data for driving the print engine 43, and the print engine is based on the processed data. 44 can execute printing. This processing is commonly performed regardless of whether the data transmission source is the PC 30, the HTTP communication application 42, or the HTTPS communication application 43. The drawing process is the same regardless of the format of the received data, but if data in an appropriate format is received, image data indicating the contents of the image to be formed can be obtained by drawing. .
Note that the processing shown in this flowchart may be the same as that of a print engine provided in a conventional printer.

以上説明してきたようなプリントシステムによれば、PC及びプリンタに、以上説明してきたような機能を実現させることにより、プリンタ40において、プリンタアプリがファイアウォールによって使用が許可されていないポートでしかプリントデータを受信できない場合でも、PC30からプリンタ40に対してファイアウォールで使用が許可されているポートにプリントデータを送信し、そのデータに基づくプリントを行わせることができる。   According to the print system as described above, by realizing the functions as described above in the PC and the printer, the print data in the printer 40 can be printed only at a port that the printer application is not permitted to use by the firewall. Even if it is not possible to receive the print data, the print data can be transmitted from the PC 30 to the printer 40 to the port permitted to be used by the firewall, and printing based on the data can be performed.

また、この場合において、プリンタアプリ41がデータを受け取る受け口を、PC30から受け取る場合と、HTTP通信用アプリ42やHTTPS通信用アプリ43から受け取る場合とで共通化しているため、従来からあるプリンタアプリ41を改変する必要は全くない。そして、HTTP通信用アプリ42やHTTPS通信用アプリ43を追加し、必要な設定を行うだけで、プリンタ40に上述した機能を実現させることができる。また、PC30側においても、従来の構成を変更することなく、新たに拡張スプーラ35をインストールし、プリンタ40にプリントを指示する場合にその拡張スプーラ35を使用してプリントデータを送信する旨を設定するのみでよい。   In this case, the printer application 41 receives the data reception port from the PC 30 and the case where the reception is received from the HTTP communication application 42 or the HTTPS communication application 43. There is no need to modify. Then, the function described above can be realized in the printer 40 only by adding the HTTP communication application 42 and the HTTPS communication application 43 and performing necessary settings. Also, on the PC 30 side, without changing the conventional configuration, when the expansion spooler 35 is newly installed and the printer 40 is instructed to print, the setting is made to transmit print data using the expansion spooler 35. Just do it.

従って、既存の資源を有効に利用し、少ない開発工数で、ファイアウォールを越えてプリントデータを転送可能なプリントシステムを開発することができる。また、プリンタ40側では、プリンタアプリ41が受信したデータに対しては、特定の処理を行うようにしているので、一般にハードウェア資源の制約が厳しいプリンタ40の側での処理負荷を低減すると共に、この点でもアプリの開発工数を低減することができる。HTTP通信用アプリ42やHTTPS通信用アプリ43が受信したデータについても同様な取扱いをするようにすれば、さらに大きな効果を得ることができる。   Therefore, it is possible to develop a print system that can effectively use existing resources and transfer print data across a firewall with a small number of development steps. In addition, since the printer 40 side performs specific processing on the data received by the printer application 41, the processing load on the printer 40 side, which generally has severe hardware resource restrictions, is reduced. Even in this respect, the development man-hours for the application can be reduced. If data handled by the HTTP communication application 42 or the HTTPS communication application 43 is handled in the same manner, a greater effect can be obtained.

〔第2の実施形態の変形例:図15乃至図21〕
次に、以上説明してきた第2の実施形態のプリントシステムの変形例について説明する。
第2の実施形態においては、主としてHTTPメッセージにプリンタ言語で記述されたプリントデータがそのまま記載されている例について説明したが、これに限られることはない。すなわち、プリントデータを、圧縮したり暗号化したりした状態でHTTPメッセージに記載するようにしてもよい。また、XML形式で定義された帳票データとして記載することも考えられる。
[Modifications of Second Embodiment: FIGS. 15 to 21]
Next, a modified example of the print system of the second embodiment described above will be described.
In the second embodiment, the example in which the print data described in the printer language is described as it is in the HTTP message is described, but the present invention is not limited to this. That is, the print data may be described in the HTTP message in a compressed or encrypted state. In addition, it may be described as form data defined in the XML format.

図15乃至図17にこれらの場合のHTTP通信用アプリ42におけるデータの取扱い例を示す。
例えば、図15に示すように圧縮したプリントデータをHTTPメッセージに記載した場合、HTTP通信用アプリ42は、受信したHTTPメッセージから取り出した圧縮状態のプリントデータを解凍して9100番ポートにループバック送信する。
このようにすることにより、PC30からプリンタ40に送信するデータのサイズを低減し、データ転送速度が遅い場合には、全体としてプリントまでの時間を短縮できる。
15 to 17 show examples of data handling in the HTTP communication application 42 in these cases.
For example, when the compressed print data is described in the HTTP message as shown in FIG. 15, the HTTP communication application 42 decompresses the compressed print data extracted from the received HTTP message and sends it to the 9100 port as a loopback. To do.
By doing so, the size of data transmitted from the PC 30 to the printer 40 can be reduced, and when the data transfer speed is low, the time until printing as a whole can be shortened.

また、図16に示すように暗号化したプリントデータをHTTPメッセージに記載した場合、HTTP通信用アプリ42は、受信したHTTPメッセージから取り出した暗号化状態のプリントデータを復号化して9100番ポートにループバック送信する。
このようにすることにより、HTTPSプロトコルを使用しなくても、転送するデータを暗号化してセキュリティを向上させることができる。
In addition, when the encrypted print data is described in the HTTP message as shown in FIG. 16, the HTTP communication application 42 decrypts the encrypted print data extracted from the received HTTP message and loops to the 9100 port. Send back.
This makes it possible to improve the security by encrypting the data to be transferred without using the HTTPS protocol.

また、図17に示すようにXML形式で定義された帳票データ等をそのままHTTPメッセージに記載した場合、HTTP通信用アプリ42は、受信したHTTPメッセージから取り出した帳票データをプリンタ言語形式のプリントデータに変換して9100番ポートにループバック送信する。
このようにすれば、PC30側にプリンタドライバを設けなくても、プリンタ40にプリントを行わせることが可能になる。従って、多数のクライアントがプリンタ40を共用する場合等には、各クライアントに個別にプリンタドライバをインストールすることが不要になり、管理の負担を軽減することができる。
Also, as shown in FIG. 17, when form data defined in the XML format is directly described in the HTTP message, the HTTP communication application 42 converts the form data extracted from the received HTTP message into print data in the printer language format. The data is converted and looped back to the 9100 port.
In this way, it is possible to cause the printer 40 to print without providing a printer driver on the PC 30 side. Therefore, when a large number of clients share the printer 40, it is not necessary to install a printer driver individually for each client, and the management burden can be reduced.

また、PDA(携帯情報端末)や携帯電話のように、持ち歩く端末では、常に適切なドライバを設定しておくことが難しいし、CPUの処理能力も比較的小さいと考えられるので、このような場合にはプリンタ40の側にプリンタドライバの機能を持たせることが特に有効と考えられる。
なお、HTTPメッセージに、プリントデータの記載形式(圧縮、暗号化、XML形式等)を記載しておき、HTTP通信用アプリ42が受信したHTTPメッセージからまずその記載形式のデータを読み取り、その内容に応じた処理を選択して実行するようにしてもよい。
In addition, in the case of a portable terminal such as a PDA (personal digital assistant) or a mobile phone, it is difficult to always set an appropriate driver, and the processing capacity of the CPU is considered to be relatively small. In particular, it is considered to be particularly effective to provide the printer driver function on the printer 40 side.
In addition, the print data description format (compression, encryption, XML format, etc.) is described in the HTTP message, and the data in the description format is first read from the HTTP message received by the HTTP communication application 42, and the contents thereof A corresponding process may be selected and executed.

また、HTTPSを利用する場合も、同様にプリントデータを圧縮した状態やXML形式の状態等でHTTPメッセージに記載してもよい。暗号化についても、HTTPSプロトコルによる暗号化と重複するため、意味は薄いが、可能である。
図18に、図15と対応する例を示す。
Similarly, when using HTTPS, the print data may be described in the HTTP message in a compressed state, an XML format state, or the like. Encryption is also possible although it has little meaning because it overlaps with encryption by the HTTPS protocol.
FIG. 18 shows an example corresponding to FIG.

また、第1の実施形態で図4を用いて説明した例と対応するものとして、複数段のデータ変換処理により、プリンタアプリ41が対応しているプリンタ言語形式のプリントデータを生成して9100番ポートに転送するようにすることも考えられる。
図19にこのようにする場合のプリントシステムの機能ブロック図の例を示す。
この例においては、プリンタ40′には、HTTPS通信用アプリ43は省略したが、図5のプリンタ40の構成に加え、解凍アプリ46を設け、9200番ポートで受信したデータに対し、特定の復号化処理を行って、その結果を9100番ポートに送信するようにしている。そして、HTTP通信用アプリ42′は、受信したHTTPメッセージから圧縮状態のプリントデータを取り出して、これを9200番ポートに送信するようにしている。
Also, as corresponding to the example described with reference to FIG. 4 in the first embodiment, print data in the printer language format supported by the printer application 41 is generated by a plurality of stages of data conversion processing, and the number 9100 is generated. It is possible to forward to a port.
FIG. 19 shows an example of a functional block diagram of the print system in such a case.
In this example, the HTTPS communication application 43 is omitted from the printer 40 ′, but a decompression application 46 is provided in addition to the configuration of the printer 40 in FIG. 5, and specific decryption is performed on the data received at the 9200th port. The result is transmitted to the 9100 port. Then, the HTTP communication application 42 ′ extracts compressed print data from the received HTTP message and transmits it to the 9200th port.

そして、PC30側では、プリントデータに圧縮処理を施し、このデータをHTTPメッセージに記載してプリンタ40′のHTTPポートに送信すると、プリンタ40′側で解凍処理を行わせ、プリントデータに基づくプリントを行わせることができる。すなわち、図15を用いて説明した場合と同様な処理が可能である。
そして、この場合、HTTP通信用アプリ42′にはプリントデータを解凍する機能を設けなくてよく、また、解凍アプリ46には単に受信したデータに対して特定の解凍処理を行って9100番ポートにループバック送信する機能を設ければよい。従って、各アプリの構成を単純化し、開発工数の低減やコストダウンを図ることができる。
On the PC 30 side, the print data is subjected to compression processing. When this data is described in an HTTP message and transmitted to the HTTP port of the printer 40 ', the printer 40' side performs decompression processing, and print based on the print data is performed. Can be done. That is, the same processing as that described with reference to FIG. 15 is possible.
In this case, the HTTP communication application 42 ′ does not have to have a function for decompressing the print data, and the decompression application 46 simply performs a specific decompression process on the received data and sets the port 9100 to the port. A function for performing loopback transmission may be provided. Therefore, the configuration of each application can be simplified, and the development man-hours can be reduced and the cost can be reduced.

また、図20に別の例を示すが、この図に示すプリンタ40″に備えるHTTP通信用アプリ42″のように、受信したHTTPリクエストに記載されていたプリントデータが圧縮されているかいないかに応じて、ループバック送信先を変えることができるようにしてもよい。このようにすれば、PC30から送信されてくるプリントデータの形式が場合によって異なっても、プリンタ40″側でこれを振り分けて適切に処理し、プリントデータに基づくプリントを行うことができる。   FIG. 20 shows another example. Depending on whether or not the print data described in the received HTTP request is compressed as in the HTTP communication application 42 ″ included in the printer 40 ″ shown in FIG. Thus, the loopback transmission destination may be changed. In this way, even if the format of the print data transmitted from the PC 30 varies depending on the case, the printer 40 ″ can distribute and properly process the print data based on the print data.

もちろん、復号化機能を有するアプリや、XML形式の帳票データをプリントデータに変換する機能を有するアプリ等を設け、HTTPメッセージに含まれるデータの形式に応じ、これらのアプリがリスンするポートにループバック送信できるようにすることも考えられる。
また、プリンタ40にプリントデータを送信する装置の具体例としては、以上説明してきたようなPC30以外にも、例えばスキャナやMFP等の画像機器(画像処理装置)が考えられる。
Of course, an application with a decryption function, an application with a function to convert form data in XML format into print data, etc. are provided, and loopback to the port where these applications listen according to the data format included in the HTTP message. It may be possible to transmit.
Further, as a specific example of an apparatus for transmitting print data to the printer 40, an image device (image processing apparatus) such as a scanner or an MFP can be considered in addition to the PC 30 as described above.

図21に、この場合のプリントシステムの構成例を示す。
この図に示す画像機器70は、操作パネル71及びスキャナエンジン73を備え、スキャナアプリ72によって操作パネル71からの指示を検出してそれに従ってスキャナエンジン73を駆動し、ADF(自動原稿給装装置)やコンタクトガラス上に載置された原稿の画像を読み取って画像データを得る。
FIG. 21 shows a configuration example of the print system in this case.
An image device 70 shown in this figure includes an operation panel 71 and a scanner engine 73. The scanner application 72 detects an instruction from the operation panel 71, and drives the scanner engine 73 according to the detected instruction, thereby ADF (automatic document feeder). Image data is obtained by reading an image of a document placed on the contact glass.

そして、スキャナエンジン73は、その画像データをプリンタドライバ74に渡し、以後、その画像データに係る画像をプリントさせるためのプリントデータを、PC30の場合と同様に、標準スプーラ76と拡張スプーラ77を備えるポートモニタ75により、プリントを実行させるプリンタ40の適当なポートに、適当なプロトコルで送信し、プリントを行わせる。どのアドレスのプリンタにどのプロトコルで送信するかは、操作パネル71からの操作により指定することができる。
このようにプリントシステムを構成することにより、スキャナエンジン73で読み取った画像をプリンタ40にプリントさせることができ、全体として、画像機器70とプリンタ40が近くにあればコピー機、遠くにあればファクシミリ装置のような動作を行わせることができる。
Then, the scanner engine 73 passes the image data to the printer driver 74, and thereafter includes print data for printing an image related to the image data, as in the case of the PC 30, with a standard spooler 76 and an expansion spooler 77. The port monitor 75 transmits the data to an appropriate port of the printer 40 that executes printing by using an appropriate protocol to perform printing. It is possible to specify which protocol to send to which printer by which protocol using the operation panel 71.
By configuring the printing system in this manner, an image read by the scanner engine 73 can be printed on the printer 40. As a whole, if the image device 70 and the printer 40 are close to each other, a copier, and if far away, a facsimile machine is used. Operation like an apparatus can be performed.

また、PC30や画像機器70がプリンタ40に送信するプリントデータは、送信側で自ら作成したものでなくてもよく、他の装置から受信した印刷要求に含まれるプリントデータを転送するものでもよい。また、この場合に、図7に示したような印刷属性データを付加して転送するようにしてもよい。   Further, the print data transmitted from the PC 30 or the image device 70 to the printer 40 does not have to be created on the transmission side itself, but may be print data included in a print request received from another apparatus. In this case, print attribute data as shown in FIG. 7 may be added and transferred.

以上で実施形態の説明を終了するが、以上説明してきた実施形態及び変形例において、装置やシステムの構成、具体的な処理内容、通信に使用する通信プロトコル等が上述の実施形態で説明したものに限られないことはもちろんである。
例えば、通信経路として、ネットワーク以外にも、パラレルケーブルを介した通信経路を用いることも考えられる。
Although the description of the embodiment has been completed above, in the embodiment and modifications described above, the configuration of the apparatus and system, specific processing contents, the communication protocol used for communication, and the like described in the above embodiment Of course, it is not limited to.
For example, it is possible to use a communication path via a parallel cable as a communication path in addition to a network.

また、プリンタアプリ41に、処理中にデータが不正な内容であることを認識した場合(正しい形式のデータであればありえない形式でデータが並んでいた場合等)に、エラーと認識し、プリントを中止する機能を設けてもよい。このようにすれば、誤ったデータに基づいて無駄なプリントを行ってしまうことを防止できる。
また、この発明はプリンタのような画像形成装置以外のデータ変換装置にも適用できることはもちろんである。その具体例としては、帳票システムや発券システム等の業務システム、テレビ・ビデオ・ラジオ等の記録装置や出力装置等が挙げられる。
さらに、以上説明してきた実施形態や変形例の構成は、矛盾しない範囲で適宜組み合わせることもできる。
In addition, when the printer application 41 recognizes that the data has an illegal content during the processing (when the data is arranged in a format that is not possible if the data is in the correct format), the printer application 41 recognizes the error and prints the data. A function to cancel may be provided. In this way, it is possible to prevent unnecessary printing from being performed based on erroneous data.
Of course, the present invention can be applied to a data conversion apparatus other than an image forming apparatus such as a printer. Specific examples thereof include business systems such as form systems and ticket issuing systems, recording devices such as televisions, videos, and radios, output devices, and the like.
Furthermore, the configurations of the embodiments and the modifications described above can be combined as appropriate within a consistent range.

また、この発明によるプログラムは、コンピュータに受信したデータの形式を変換するデータ変換装置を制御させ、上述したデータ変換装置20のような装置として機能させるためのプログラムであり、このようなプログラムをコンピュータに実行させることにより、上述したような効果を得ることができる。
このようなプログラムは、はじめからコンピュータに備えるROMあるいはHDD等の記憶手段に格納しておいてもよいが、記録媒体であるCD−ROMあるいはフレキシブルディスク,SRAM,EEPROM,メモリカード等の不揮発性記録媒体(メモリ)に記録して提供することもできる。そのメモリに記録されたプログラムをコンピュータにインストールしてCPUに実行させるか、CPUにそのメモリからこのプログラムを読み出して実行させることにより、上述した各手順を実行させることができる。
さらに、ネットワークに接続され、プログラムを記録した記録媒体を備える外部機器あるいはプログラムを記憶手段に記憶した外部機器からダウンロードして実行させることも可能である。
Further, the program according to the present invention is a program for causing a computer to control a data conversion device that converts the format of received data and causing the computer to function as a device such as the data conversion device 20 described above. By executing the above, the effects as described above can be obtained.
Such a program may be stored in a storage means such as a ROM or HDD provided in the computer from the beginning, but a non-volatile recording such as a CD-ROM or flexible disk, SRAM, EEPROM, memory card or the like as a recording medium. It can also be recorded on a medium (memory) and provided. Each procedure described above can be executed by installing a program recorded in the memory in a computer and causing the CPU to execute the program, or causing the CPU to read and execute the program from the memory.
Furthermore, it is also possible to download and execute an external device that is connected to a network and includes a recording medium that records the program, or an external device that stores the program in the storage unit.

以上説明してきたように、この発明のデータ変換装置、データ変換システム、データ変換装置の制御方法、データ変換機能付加方法、プログラム又は記録媒体によれば、受信したデータに対してデータ変換を行う、ファイアウォール越しの通信に対応していないデータ変換装置を、容易にファイアウォール越しの通信に対応させられるようにすることができる。また、このような機能を有する装置を、既存の資源を利用して容易に開発できるようにすることもできる
従って、この発明を適用することにより、処理の柔軟性が高いデータ変換装置を安価に提供することができる。
As described above, according to the data conversion device, the data conversion system, the data conversion device control method, the data conversion function addition method, the program, or the recording medium of the present invention, data conversion is performed on the received data. A data conversion apparatus that does not support communication through a firewall can be easily made compatible with communication through a firewall. In addition, a device having such a function can be easily developed using existing resources. Therefore, by applying the present invention, a data conversion device with high processing flexibility can be made inexpensive. Can be provided.

10:情報処理装置、11:送信データ生成部、12:通信制御部、
20:データ変換装置、21:第1のデータ変換機能部、
22:第2のデータ変換機能部、23:第3のデータ変換機能部、
30,80:PC、31,81:アプリケーション、
32,74,82:プリンタドライバ、33,75,83:ポートモニタ、
34,76:標準スプーラ、35,77:拡張スプーラ、
40,40′,40″,90:プリンタ、41,91:プリンタアプリ、
42,42′,42″:HTTP通信用アプリ、43:HTTPS通信用アプリ、
44,93:プリントエンジン、45:省エネルギ制御部、46:解凍アプリ、
50:ファイアウォール
10: Information processing device, 11: Transmission data generation unit, 12: Communication control unit,
20: data conversion device, 21: first data conversion function unit,
22: second data conversion function unit, 23: third data conversion function unit,
30, 80: PC, 31, 81: Application,
32, 74, 82: Printer driver, 33, 75, 83: Port monitor,
34,76: Standard spooler, 35,77: Expansion spooler,
40, 40 ′, 40 ″, 90: printer, 41, 91: printer application,
42, 42 ', 42 ": HTTP communication application, 43: HTTPS communication application,
44, 93: Print engine, 45: Energy saving control unit, 46: Defrosting application,
50: Firewall

特開2004−252984号公報、段落0061JP 2004-252984 A, paragraph 0061 特開2003−323360号公報JP 2003-323360 A 特開2004−5418号公報JP 2004-5418 A

この発明は、データを受信して処理する装置、このような装置におけるデータ処理方法、およびこのような装置において実行されるプログラムに関する。 The present invention relates to an apparatus for receiving and processing data, a data processing method in such an apparatus, and a program executed in such an apparatus .

この発明は、このような背景に鑑みてなされたものであり、データを受信して処理する装置を、容易にファイアウォール越しの通信に対応させられるようにすることを目的とする。 The present invention has been made in view of such a background, and an object of the present invention is to make it possible for a device that receives and processes data to easily cope with communication through a firewall .

上記の目的を達成するため、この発明は、データを受信する第1のポートと、第1のポートから受信したデータに対して所定のデータ処理を行う第1のデータ処理手段とを備える装置において、ファイアウォール越しで特定のデータ形式のデータを受信することを許可する第2のポートと、上記第2のポートから受信した上記特定のデータ形式のデータに対して上記第1のデータ処理手段と異なる所定のデータ処理を行う第2のデータ処理手段と、上記第2のデータ処理手段によって所定のデータ処理が行われたデータを上記第1のポートに送信するデータ送信手段と、を設けたものである。 To achieve the above object, the present invention provides an apparatus comprising: a first port that receives data; and a first data processing unit that performs predetermined data processing on data received from the first port. A second port that permits reception of data in a specific data format through a firewall, and the data in the specific data format received from the second port is different from the first data processing means. A second data processing unit that performs predetermined data processing; and a data transmission unit that transmits data subjected to predetermined data processing by the second data processing unit to the first port. is there.

さらに、データを出力する出力手段を設け、上記第1のデータ処理手段による所定のデータ処理を、上記第1のポートから受信したデータのデータ形式が第1のデータ形式である場合に、その第1のデータ形式のデータを用いて上記出力手段が出力できるデータ形式の出力データを作成する処理とし、上記第2のデータ処理手段による所定のデータ処理を、上記第2のポートから受信したデータのデータ形式が第2のデータ形式である場合に、その第2のデータ形式のデータを用いて上記第1のデータ形式のデータを作成する処理とし、上記出力手段が、上記第1のデータ処理手段によって作成された上記出力データを出力するようにするとよい。Further, output means for outputting data is provided, and the predetermined data processing by the first data processing means is performed when the data format of the data received from the first port is the first data format. The processing of creating output data in a data format that can be output by the output means using data in the data format of 1 is performed, and predetermined data processing by the second data processing means is performed on the data received from the second port. When the data format is the second data format, the data in the first data format is created using the data in the second data format, and the output means is the first data processing means. It is preferable to output the output data created by the above.

さらに、上記第2のデータ処理手段による所定のデータ処理を、上記第2のデータ形式のデータの一部として含まれる上記第1のデータ形式のデータを取り出して上記第1のデータ形式のデータを作成する処理とするとよい。Further, the predetermined data processing by the second data processing means is performed to take out the data in the first data format included as a part of the data in the second data format and to convert the data in the first data format. It is better to create it.
さらに、上記第2のデータ処理手段による所定のデータ処理を、上記第2のデータ形式のデータの一部として含まれる属性データをさらに取り出し、上記属性データを上記第1のデータ形式のデータにマージする処理とするとよい。Further, predetermined data processing by the second data processing means further extracts attribute data included as part of the data in the second data format, and merges the attribute data into the data in the first data format It is better to do this.

あるいは、属性データに基づいて、上記第1のデータ形式のデータにマージすることのできる拡張データを生成する拡張データ生成手段を設け、上記第2のデータ処理手段によるデータ処理を、上記第2のデータ形式のデータの一部として含まれる上記属性データをさらに取り出し、上記拡張データ生成手段により上記属性データに基づいて生成された上記拡張データを上記第1のデータ形式のデータにマージする処理としてもよい。Alternatively, extended data generation means for generating extended data that can be merged with the data in the first data format based on the attribute data is provided, and the data processing by the second data processing means is performed by the second data processing means. The attribute data included as part of the data in the data format may be further extracted, and the extended data generated based on the attribute data by the extended data generation unit may be merged with the data in the first data format. Good.

あるいはまた、上記第2のデータ処理手段により上記第2のデータ形式のデータから取り出されたデータに上記属性データが含まれているか否かを判断する判断手段を設け、上記拡張データ生成手段が、上記判断手段によって上記属性データが含まれていると判断された場合に上記拡張データを生成するようにしてもよい。Alternatively, there is provided a judging means for judging whether or not the attribute data is included in the data extracted from the data in the second data format by the second data processing means, and the extended data generating means The extension data may be generated when the determination unit determines that the attribute data is included.
あるいはまた、上記第1のデータ形式のデータを構成する一部のデータである部分データを生成する部分データ生成手段を設け、上記第2のデータ処理手段による所定のデータ処理を、上記第2のデータ形式のデータの一部として含まれる出力の対象となる出力内容データを取り出し、その出力内容データを上記第1のデータ処理手段が取り扱うことの出来るデータに変換し、その変換後のデータに上記部分データ生成手段により生成された上記部分データを付加して上記第1のデータ形式のデータを作成する処理としてもよい。Alternatively, partial data generation means for generating partial data, which is part of data constituting the data in the first data format, is provided, and predetermined data processing by the second data processing means is performed by the second data processing means. Output content data to be output included as part of the data in the data format is extracted, and the output content data is converted into data that can be handled by the first data processing means. The partial data generated by the partial data generation means may be added to create data of the first data format.

また、上記第2のデータ処理手段による所定のデータ処理を、上記第2のデータ形式のデータの一部として含まれる出力の対象となるデータである出力内容データおよびその出力内容データの記載形式に関する情報である記載形式情報を取り出し、その取り出した記載形式情報の内容に応じた処理を行って上記第1のデータ形式のデータを作成する処理とすることも考えられる。Further, the predetermined data processing by the second data processing means is related to output content data that is output target data included as part of the data in the second data format and a description format of the output content data. It is also conceivable to take out the description format information, which is information, and perform processing according to the content of the extracted description format information to create data of the first data format.
さらに、上記第2のデータ処理手段に、圧縮されたデータを解凍するデータ解凍処理を行う手段と、暗号化されたデータを復号化するデータ復号化処理を行う手段と、上記第1のデータ処理手段が取り扱うことの出来ない出力内容データを上記第1のデータ処理手段が取り扱うことの出来るデータに変換するデータ変換処理を行う手段とを設けるとよい。Furthermore, the second data processing means includes means for performing data decompression processing for decompressing the compressed data, means for performing data decryption processing for decrypting the encrypted data, and the first data processing. It is preferable to provide means for performing data conversion processing for converting output content data that cannot be handled by the means into data that can be handled by the first data processing means.

また、上記の各装置において、上記第1のデータ形式を、印刷言語形式とし、上記第2のデータ形式を、HTTP、HTTPS、LDAP、POP3、SMTP、FTPのいずれかのプロトコルで転送されるメッセージの形式とするとよい。Further, in each of the above devices, the first data format is a print language format, and the second data format is a message transferred by one of the protocols HTTP, HTTPS, LDAP, POP3, SMTP, and FTP. It is good to use the form.
さらに、上記第1のデータ処理手段が、上記第1のポートから受信したデータのデータ形式によらずその受信したデータに上記所定のデータ処理を行うようにするとよい。Furthermore, the first data processing means may perform the predetermined data processing on the received data regardless of the data format of the data received from the first port.

また、この発明のデータ処理方法は、データを受信する第1のポートと、ファイアウォール越しで特定のデータ形式のデータを受信することを許可する第2のポートとを備える装置において実行されるデータ処理方法であって、上記第2のポートから受信した上記特定のデータ形式のデータに対して所定のデータ処理を行う第1の手順と、上記第1の手順による上記所定のデータ処理で得られたデータを上記第1のポートに送信する第2の手順と、上記第1のポートで受信したデータに対して上記第1の手順とは異なる所定のデータ処理を行う第3の手順とを備えるものである。Further, the data processing method of the present invention is a data processing executed in an apparatus including a first port for receiving data and a second port for permitting reception of data of a specific data format through a firewall. A first method for performing predetermined data processing on data in the specific data format received from the second port, and obtained by the predetermined data processing according to the first procedure A second procedure for transmitting data to the first port, and a third procedure for performing predetermined data processing different from the first procedure on the data received at the first port It is.

また、この発明のプログラムは、データを受信する第1のポートと、その第1のポートから受信したデータに対して所定のデータ処理を行う第1のデータ処理手段と、ファイアウォール越しで特定のデータ形式のデータを受信することを許可する第2のポートと、を備える装置において実行されるプログラムであって、コンピュータに、上記第2のポートから受信した上記特定のデータ形式のデータに対して上記第1のデータ処理手段と異なる所定のデータ処理を行う第2のデータ処理手段と、上記第2のデータ処理手段による上記所定のデータ処理で得られたデータを上記第1のポートに送信するデータ送信手段と、の機能を実現させるためのプログラムである。Further, the program of the present invention includes a first port for receiving data, first data processing means for performing predetermined data processing on data received from the first port, and specific data through a firewall. A program that is executed in an apparatus comprising: a second port that permits reception of data in a format, the computer receiving the data in the specific data format received from the second port. Second data processing means for performing predetermined data processing different from the first data processing means, and data for transmitting the data obtained by the predetermined data processing by the second data processing means to the first port This is a program for realizing the functions of the transmission means.

以上のようなこの発明の装置、データ変換方法またはプログラムによれば、データを受信して処理する装置を、容易にファイアウォール越しの通信に対応させられるようにすることができる。 According to the device, the data conversion method, or the program of the present invention as described above, the device that receives and processes data can be easily adapted to the communication through the firewall .

以上説明してきたように、この発明の装置、データ変換方法またはプログラムによれば、データを受信して処理する装置を、容易にファイアウォール越しの通信に対応させられるようにすることができる。
従って、この発明を適用することにより、処理の柔軟性が高いデータ変換装置を安価に提供することができる。
As described above, according to the device, the data conversion method, or the program of the present invention, the device that receives and processes the data can be easily adapted to the communication through the firewall .
Therefore, by applying the present invention, a data conversion apparatus with high processing flexibility can be provided at low cost.

Claims (36)

ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置であって、
前記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段と、
前記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して、前記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って前記第1のポートにループバックする第2のデータ変換手段とを設けたことを特徴とするデータ変換装置。
A data conversion device that converts data received through a firewall from a device connectable to a network,
A first data conversion unit that listens to a first port that is not allowed to be used by the firewall and performs specific data conversion on the data received at the port regardless of the format of the data;
The second port that is permitted to be used by the firewall is listened to, and the data received at the port is converted into a format that can be handled by the first data conversion unit, and the first port is converted. And a second data conversion means for looping back to one port.
請求項1記載のデータ変換装置であって、
前記第2のポートは、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートであることを特徴とするデータ変換装置。
The data conversion device according to claim 1, wherein
2. The data conversion apparatus according to claim 1, wherein the second port is a port reserved for use in communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP.
請求項1又は2記載のデータ変換装置であって、
前記第2のデータ変換手段が、各々前記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、前記第2のポートで受信したデータを前記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して前記第1のポートにループバックする手段であることを特徴とするデータ変換装置。
The data conversion device according to claim 1 or 2,
Each of the second data conversion means listens to a specific port different from the first port, performs data conversion on the data received at the port, and loops to the port on which the data conversion means at the next stage listens By having a plurality of data conversion units to be backed up and performing data conversion processing in a plurality of stages by each of these data conversion units, the data received at the second port can be handled by the first data conversion unit A data conversion device comprising means for converting data into a format and looping back to the first port.
請求項1乃至3のいずれか一項記載のデータ変換装置であって、
自身を省エネルギモードに移行させる手段と、
前記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手段と、
前記第2のポートで何らかのデータを受信した場合に前記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手段とを設けたことを特徴とするデータ変換装置。
The data conversion device according to any one of claims 1 to 3,
Means to shift itself to energy saving mode;
Means for returning itself from the energy saving mode to the normal operation mode when any data is received at the first port;
A data conversion apparatus, comprising: means for transmitting dummy data for returning itself to a normal operation mode to the first port when any data is received at the second port.
請求項1乃至4のいずれか一項記載のデータ変換装置であって、
前記第1のデータ変換手段が行うデータ変換は、プリンタ言語で記述されたプリントデータから、プリントエンジンに画像形成を行わせるための画像データへの変換であることを特徴とするデータ変換装置。
The data conversion device according to any one of claims 1 to 4, wherein
The data conversion performed by the first data conversion means is conversion from print data described in a printer language into image data for causing the print engine to form an image.
請求項1乃至5のいずれか一項記載のデータ変換装置であって、
前記第2のデータ変換手段が行うデータ変換は、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換であることを特徴とするデータ変換装置。
A data conversion device according to any one of claims 1 to 5,
The data conversion performed by the second data conversion means is conversion from an HTTP message into print data described in a printer language.
請求項6記載のデータ変換装置であって、
前記第2のデータ変換手段が行うデータ変換が、前記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含むことを特徴とするデータ変換装置。
The data conversion device according to claim 6, wherein
The data conversion performed by the second data conversion means converts the data indicating the print attribute included in the HTTP message into the print attribute data described in the printer job language, and converts the data into the converted print data. A data conversion apparatus characterized by including processing as a part.
情報処理装置と、その情報処理装置からファイアウォール越しに受信したデータを処理するデータ変換装置とを備えたデータ変換システムであって、
前記データ変換装置に、
前記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段と、
前記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して前記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って前記第1のポートにループバックする第2のデータ変換手段とを設け、
前記情報処理装置に、
前記データ変換装置にデータを送信する場合に、前記第2のデータ変換手段が処理できる形式のデータを前記第2のポートに送信する手段を設けたことを特徴とするデータ変換システム。
A data conversion system comprising an information processing device and a data conversion device that processes data received from the information processing device through a firewall,
In the data converter,
A first data conversion unit that listens to a first port that is not allowed to be used by the firewall and performs specific data conversion on the data received at the port regardless of the format of the data;
The first port that is permitted to be used by the firewall is listened, and the data received at the port is converted into a format that can be handled by the first data conversion means, and the first port is converted. A second data conversion means for looping back to the other port,
In the information processing apparatus,
A data conversion system comprising means for transmitting data in a format that can be processed by the second data conversion means to the second port when data is transmitted to the data conversion apparatus.
請求項8記載のデータ変換システムであって、
前記第2のポートは、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートであることを特徴とするデータ変換システム。
The data conversion system according to claim 8, wherein
2. The data conversion system according to claim 1, wherein the second port is a port reserved for use in communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP.
請求項8又は9記載のデータ変換システムであって、
前記データ変換装置の前記第2のデータ変換手段が、各々前記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、前記第2のポートで受信したデータを前記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して前記第1のポートにループバックする手段であることを特徴とするデータ変換システム。
The data conversion system according to claim 8 or 9, wherein
The second data conversion means of the data conversion device listens to a specific port that is different from the first port, performs data conversion on the data received at the port, and the next data conversion means A plurality of data conversion means for looping back to the listening port, and each of the data conversion means performs a plurality of stages of data conversion processing, whereby the data received at the second port is converted into the first data conversion means; A data conversion system, characterized in that the data conversion system converts the data into a format that can be handled by and loops back to the first port.
請求項8乃至10記載のデータ変換システムであって、
前記データ変換装置に、
自身を省エネルギモードに移行させる手段と、
前記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手段と、
前記第2のポートで何らかのデータを受信した場合に前記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手段とを設けたことを特徴とするデータ変換システム。
The data conversion system according to claim 8, wherein
In the data converter,
Means to shift itself to energy saving mode;
Means for returning itself from the energy saving mode to the normal operation mode when any data is received at the first port;
A data conversion system comprising means for transmitting dummy data for returning itself to a normal operation mode to the first port when any data is received at the second port.
請求項8乃至11のいずれか一項記載のデータ変換システムであって、
前記データ変換装置において、
前記第1のデータ変換手段が行うデータ変換が、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換であることを特徴とするデータ変換システム。
A data conversion system according to any one of claims 8 to 11,
In the data converter,
A data conversion system characterized in that the data conversion performed by the first data conversion means is conversion from data described in a printer language into image data for causing a print engine to form an image.
請求項8乃至12のいずれか一項記載のデータ変換システムであって、
前記データ変換装置において、
前記第2のデータ変換手段が行うデータ変換が、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換であることを特徴とするデータ変換システム。
The data conversion system according to any one of claims 8 to 12,
In the data converter,
A data conversion system characterized in that the data conversion performed by the second data conversion means is conversion from an HTTP message into print data described in a printer language.
請求項13記載のデータ変換システムであって、
前記データ変換装置において、
前記第2のデータ変換手段が行うデータ変換が、前記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含むことを特徴とするデータ変換システム。
14. A data conversion system according to claim 13, wherein
In the data converter,
The data conversion performed by the second data conversion means converts the data indicating the print attribute included in the HTTP message into the print attribute data described in the printer job language, and converts the data into the converted print data. A data conversion system characterized by including processing as a part.
ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置に、
前記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手順と、
前記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して前記第1のデータ変換手順で取り扱うことのできる形式へのデータ変換を行って前記第1のポートにループバックする第2のデータ変換手順とを実行させることを特徴とするデータ変換装置の制御方法。
To a data conversion device that converts data received through a firewall from a device that can be connected to the network,
A first data conversion procedure for listening to a first port that is not allowed to be used by the firewall and performing specific data conversion on the data received at the port regardless of the format of the data;
The first port that is permitted to be used by the firewall is listened, and the data received at the port is converted into a format that can be handled by the first data conversion procedure, and the first port is converted. And a second data conversion procedure for looping back to the other port.
請求項15記載のデータ変換装置の制御方法であって、
前記第2のポートは、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートであることを特徴とするデータ変換装置の制御方法。
A control method for a data conversion device according to claim 15,
The second port is a port reserved to be used for communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP. .
請求項15又は16記載のデータ変換装置の制御方法であって、
前記第2のデータ変換手順が、各々の手順で前記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手順でリスンするポートにループバックする複数のデータ変換手順で複数段のデータ変換処理を行うことにより、前記第2のポートで受信したデータを前記第1のデータ変換手順で取り扱うことのできる形式のデータに変換して前記第1のポートにループバックする手順であることを特徴とするデータ変換装置の制御方法。
A control method for a data conversion device according to claim 15 or 16,
The second data conversion procedure listens to a specific port different from the first port in each procedure, performs data conversion on the data received at that port, and listens in the next data conversion procedure By performing a plurality of stages of data conversion processing in a plurality of data conversion procedures that loop back to the port, the data received at the second port is converted into data in a format that can be handled by the first data conversion procedure. A method for controlling the data conversion apparatus, characterized in that the procedure is to loop back to the first port.
請求項15乃至17のいずれか一項記載のデータ変換装置の制御方法であって、
前記データ変換装置に、
自身を省エネルギモードに移行させる手順と、
前記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手順と、
前記第2のポートで何らかのデータを受信した場合に前記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手順とを実行させることを特徴とするデータ変換装置の制御方法。
A data conversion device control method according to any one of claims 15 to 17,
In the data converter,
The procedure to shift itself to energy saving mode,
A procedure for returning itself from the energy saving mode to the normal operation mode when any data is received at the first port;
A control of a data converter characterized by causing the first port to execute dummy data for returning itself to a normal operation mode when any data is received at the second port Method.
請求項15乃至18のいずれか一項記載のデータ変換装置の制御方法であって、
前記第1のデータ変換手順で行うデータ変換が、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換であることを特徴とするデータ変換装置の制御方法。
A data conversion device control method according to any one of claims 15 to 18, comprising:
A data conversion apparatus control method, wherein the data conversion performed in the first data conversion procedure is conversion from data described in a printer language into image data for causing a print engine to form an image. .
請求項15乃至18のいずれか一項記載のデータ変換装置の制御方法であって、
前記第2のデータ変換手順で行うデータ変換が、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換であることを特徴とするデータ変換装置の制御方法。
A data conversion device control method according to any one of claims 15 to 18, comprising:
A method for controlling a data conversion apparatus, wherein the data conversion performed in the second data conversion procedure is conversion from an HTTP message to print data described in a printer language.
請求項20記載のデータ変換装置の制御方法であって、
前記第2のデータ変換手順で行うデータ変換が、前記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含むことを特徴とするデータ変換装置の制御方法。
A method for controlling a data conversion apparatus according to claim 20, comprising:
In the data conversion performed in the second data conversion procedure, the data indicating the print attribute included in the HTTP message is converted into the print attribute data described in the printer job language, and the data is converted into the print data after conversion. A method for controlling a data conversion apparatus, comprising a process as a part.
ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置であって、前記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段を有するデータ変換装置に、
前記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して、前記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って前記第1のポートにループバックする第2のデータ変換手段を付加することを特徴とするデータ変換機能付加方法。
A data conversion device that converts data received from a device that can be connected to a network through a firewall, listening to a first port that is not allowed to be used by the firewall, and for data received at that port In the data conversion apparatus having the first data conversion means for performing specific data conversion regardless of the data format,
The second port that is permitted to be used by the firewall is listened to, and the data received at the port is converted into a format that can be handled by the first data conversion unit, and the first port is converted. A method for adding a data conversion function, comprising adding a second data conversion means for looping back to one port.
請求項22記載のデータ変換機能付加方法であって、
前記第2のポートは、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートであることを特徴とするデータ変換機能付加方法。
A data conversion function adding method according to claim 22,
The data conversion function adding method, wherein the second port is a port reserved for use in communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP.
請求項22又は23記載のデータ変換機能付加方法であって、
前記第2のデータ変換手段が、各々前記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、前記第2のポートで受信したデータを前記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して前記第1のポートにループバックする手段であることを特徴とするデータ変換機能付加方法。
A data conversion function adding method according to claim 22 or 23,
Each of the second data conversion means listens to a specific port different from the first port, performs data conversion on the data received at the port, and loops to the port on which the data conversion means at the next stage listens By having a plurality of data conversion units to be backed up and performing data conversion processing in a plurality of stages by each of these data conversion units, the data received at the second port can be handled by the first data conversion unit A data conversion function adding method, characterized in that the data conversion function is means for converting the data into a format and looping back to the first port.
請求項22乃至24のいずれか一項記載のデータ変換機能付加方法であって、
前記データ変換装置が、
自身を省エネルギモードに移行させる手段と、
前記第1のポートで何らかのデータを受信した場合に自身を省エネルギモードから通常動作モードに復帰させる手段と、
前記第2のポートで何らかのデータを受信した場合に前記第1のポートに自身を通常動作モードに復帰させるためのダミーのデータを送信する手段とを有する装置であることを特徴とするデータ変換機能付加方法。
A data conversion function addition method according to any one of claims 22 to 24, wherein:
The data converter is
Means to shift itself to energy saving mode;
Means for returning itself from the energy saving mode to the normal operation mode when any data is received at the first port;
A data conversion function comprising: means for transmitting dummy data for returning itself to a normal operation mode to the first port when any data is received at the second port Append method.
請求項22乃至25のいずれか一項記載のデータ変換機能付加方法であって、
前記第1のデータ変換手段が行うデータ変換は、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換であることを特徴とするデータ変換機能付加方法。
A data conversion function adding method according to any one of claims 22 to 25,
A data conversion function adding method characterized in that the data conversion performed by the first data conversion means is conversion from data described in a printer language into image data for causing the print engine to perform image formation.
請求項22乃至26のいずれか一項記載のデータ変換機能付加方法であって、
前記第2のデータ変換手段が行うデータ変換は、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換であることを特徴とするデータ変換機能付加方法。
A data conversion function adding method according to any one of claims 22 to 26,
A data conversion function adding method, wherein the data conversion performed by the second data conversion means is conversion from an HTTP message to print data described in a printer language.
請求項27記載のデータ変換機能付加方法であって、
前記第2のデータ変換手段が行うデータ変換が、前記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含むことを特徴とするデータ変換機能付加方法。
A data conversion function addition method according to claim 27,
The data conversion performed by the second data conversion means converts the data indicating the print attribute included in the HTTP message into the print attribute data described in the printer job language, and converts the data into the converted print data. A method for adding a data conversion function, characterized in that the method includes a part of processing.
ネットワークに接続可能な装置からファイアウォール越しに受信したデータの変換を行うデータ変換装置を制御するコンピュータを、
前記ファイアウォールで使用が許可されていない第1のポートをリスンして、そのポートで受信したデータに対してそのデータの形式によらず特定のデータ変換を行う第1のデータ変換手段と、
前記ファイアウォールで使用が許可されている第2のポートをリスンして、そのポートで受信したデータに対して、前記第1のデータ変換手段が取り扱うことのできる形式へのデータ変換を行って前記第1のポートにループバックする第2のデータ変換手段として機能させるためのプログラム。
A computer that controls a data conversion device that converts data received through a firewall from a device connectable to the network.
A first data conversion unit that listens to a first port that is not allowed to be used by the firewall and performs specific data conversion on the data received at the port regardless of the format of the data;
The second port that is permitted to be used by the firewall is listened to, and the data received at the port is converted into a format that can be handled by the first data conversion unit, and the first port is converted. A program for functioning as second data conversion means for looping back to one port.
請求項29記載のプログラムであって、
前記第2のポートは、HTTP,HTTPS,LDAP,POP3,SMTP,FTPのいずれかのプロトコルを用いた通信に使用する旨が予約されているポートであることを特徴とするプログラム。
A program according to claim 29,
The program characterized in that the second port is a port reserved to be used for communication using any one protocol of HTTP, HTTPS, LDAP, POP3, SMTP, and FTP.
請求項29又は30記載のプログラムであって、
前記第2のデータ変換手段が、各々前記第1のポートと異なる特定のポートをリスンし、そのポートで受信したデータに対してデータ変換を行って次段のデータ変換手段がリスンするポートにループバックするデータ変換手段を複数有し、これらの各データ変換手段によって複数段のデータ変換処理を行うことにより、前記第2のポートで受信したデータを前記第1のデータ変換手段が取り扱うことのできる形式のデータに変換して前記第1のポートにループバックする手段であることを特徴とするプログラム。
A program according to claim 29 or 30, wherein
Each of the second data conversion means listens to a specific port different from the first port, performs data conversion on the data received at the port, and loops to the port on which the data conversion means at the next stage listens By having a plurality of data conversion units to be backed up and performing data conversion processing in a plurality of stages by each of these data conversion units, the data received at the second port can be handled by the first data conversion unit A program for converting data into a format and looping back to the first port.
請求項29乃至31のいずれか一項記載のプログラムであって、
前記コンピュータを、
前記データ変換装置を省エネルギモードに移行させる手段と、
前記第1のポートで何らかのデータを受信した場合に前記データ変換装置を省エネルギモードから通常動作モードに復帰させる手段と、
前記第2のポートで何らかのデータを受信した場合に前記第1のポートに前記データ変換装置を通常動作モードに復帰させるためのダミーのデータを送信する手段として機能させるためのプログラムをさらに含むことを特徴とするプログラム。
A program according to any one of claims 29 to 31, comprising:
The computer,
Means for shifting the data converter to an energy saving mode;
Means for returning the data conversion device from an energy saving mode to a normal operation mode when any data is received at the first port;
A program for causing the first port to function as a means for transmitting dummy data for returning the data converter to the normal operation mode when any data is received at the second port; A featured program.
請求項29乃至32のいずれか一項記載のプログラムであって、
前記第1のデータ変換手段が行うデータ変換は、プリンタ言語で記述されたデータから、プリントエンジンに画像形成を行わせるための画像データへの変換であることを特徴とするプログラム。
A program according to any one of claims 29 to 32, wherein
The data conversion performed by the first data conversion means is conversion from data described in a printer language into image data for causing the print engine to perform image formation.
請求項29乃至33のいずれか一項記載のプログラムであって、
前記第2のデータ変換手段が行うデータ変換は、HTTPメッセージからプリンタ言語で記述されたプリントデータへの変換であることを特徴とするプログラム。
A program according to any one of claims 29 to 33,
The data conversion performed by the second data conversion means is a conversion from an HTTP message to print data described in a printer language.
請求項34記載のプログラムであって、
前記第2のデータ変換手段が行うデータ変換が、前記HTTPメッセージに含まれる、印刷属性を示すデータを、プリンタジョブ言語で記述された印刷属性データに変換し、そのデータを変換後のプリントデータの一部とする処理を含むことを特徴とするプログラム。
A program according to claim 34, wherein
The data conversion performed by the second data conversion means converts the data indicating the print attribute included in the HTTP message into the print attribute data described in the printer job language, and converts the data into the converted print data. A program characterized by including a part of processing.
請求項29乃至35のいずれか一項記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the program according to any one of claims 29 to 35 is recorded.
JP2011224770A 2011-10-12 2011-10-12 Apparatus, data processing method, and program Expired - Fee Related JP5168398B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011224770A JP5168398B2 (en) 2011-10-12 2011-10-12 Apparatus, data processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011224770A JP5168398B2 (en) 2011-10-12 2011-10-12 Apparatus, data processing method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2005271105A Division JP5021921B2 (en) 2005-09-16 2005-09-16 Data conversion apparatus, data conversion system, data conversion method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2012043455A true JP2012043455A (en) 2012-03-01
JP5168398B2 JP5168398B2 (en) 2013-03-21

Family

ID=45899587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011224770A Expired - Fee Related JP5168398B2 (en) 2011-10-12 2011-10-12 Apparatus, data processing method, and program

Country Status (1)

Country Link
JP (1) JP5168398B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6620939B2 (en) 2016-04-18 2019-12-18 株式会社NejiLaw Cutting tool
WO2019087420A1 (en) 2017-10-31 2019-05-09 シャープ株式会社 Wiring retention member

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001053744A (en) * 1999-08-06 2001-02-23 Toshiba Corp Parallel distribution system
JP2002182866A (en) * 2000-12-13 2002-06-28 Fujitsu Ltd Printing control method in network environment, print server, client, and storage medium
JP2002199004A (en) * 2000-12-26 2002-07-12 Matsushita Electric Ind Co Ltd Mobile communication method through ip network
JP2004005427A (en) * 2002-03-29 2004-01-08 Fujitsu Ltd Host terminal emulation program, program for repeating, host terminal emulation method, communication program, communication method, and client computer
JP2004252984A (en) * 2003-02-20 2004-09-09 Hewlett-Packard Development Co Lp Disclosing method of mobile enterprise printer on network to the public

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001053744A (en) * 1999-08-06 2001-02-23 Toshiba Corp Parallel distribution system
JP2002182866A (en) * 2000-12-13 2002-06-28 Fujitsu Ltd Printing control method in network environment, print server, client, and storage medium
JP2002199004A (en) * 2000-12-26 2002-07-12 Matsushita Electric Ind Co Ltd Mobile communication method through ip network
JP2004005427A (en) * 2002-03-29 2004-01-08 Fujitsu Ltd Host terminal emulation program, program for repeating, host terminal emulation method, communication program, communication method, and client computer
JP2004252984A (en) * 2003-02-20 2004-09-09 Hewlett-Packard Development Co Lp Disclosing method of mobile enterprise printer on network to the public

Also Published As

Publication number Publication date
JP5168398B2 (en) 2013-03-21

Similar Documents

Publication Publication Date Title
JP4870414B2 (en) Data processing system, data processing apparatus, data processing method and program
JP2007328558A (en) Data processor, data processing system, control method of data processor, method for adding data conversion function, program and recording medium
JP5022875B2 (en) Information processing apparatus and control method thereof, information processing system and program
JP5995525B2 (en) System, image forming apparatus, server, and control method thereof
JP5704800B2 (en) Data processing apparatus, data processing method, and program
JP5743671B2 (en) Information processing apparatus and control method thereof
JP5927950B2 (en) Control device
US7881334B2 (en) Network system, communication device and program
JP5804749B2 (en) Data processing apparatus, data processing method and program
JP6132618B2 (en) Image processing system, image processing method, and program for setting file name in received image data
JP6451175B2 (en) Image processing apparatus, system, and program
JP2008092556A (en) System and method for remotely constructing remote interface for image processing device
JP2020181573A (en) Image forming system, image forming apparatus, and image forming method
JP5021921B2 (en) Data conversion apparatus, data conversion system, data conversion method, program, and recording medium
JP5168398B2 (en) Apparatus, data processing method, and program
JP6768544B2 (en) Information processing equipment, control methods and programs
US8922841B2 (en) Image processing apparatus and method for controlling the same
JP5373126B2 (en) Document processing apparatus, document processing apparatus control program, and imaging node control method
JP5739724B2 (en) Image processing system
JP4965726B2 (en) Data processing system, data processing apparatus, information processing apparatus, program, and recording medium
JP2012080519A (en) Image processing device
JP5950613B2 (en) Program, information processing apparatus, and control method
JP2012108759A (en) Information processor, information processing system, information processing method and information processing program
US11057529B1 (en) Image forming system, image forming apparatus, and image forming method capable of pull printing without key input with no server
JP6292064B2 (en) Print processing program, print processing method, and information processing apparatus

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121127

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121210

R151 Written notification of patent or utility model registration

Ref document number: 5168398

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160111

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees