JP7344366B2 - Data processing device, data processing method, and program - Google Patents
Data processing device, data processing method, and program Download PDFInfo
- Publication number
- JP7344366B2 JP7344366B2 JP2022505687A JP2022505687A JP7344366B2 JP 7344366 B2 JP7344366 B2 JP 7344366B2 JP 2022505687 A JP2022505687 A JP 2022505687A JP 2022505687 A JP2022505687 A JP 2022505687A JP 7344366 B2 JP7344366 B2 JP 7344366B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- unit
- data
- data processing
- relay
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Facsimiles In General (AREA)
- Information Transfer Between Computers (AREA)
Description
本発明は、データ処理装置、データ処理方法、及びプログラムに関する。 The present invention relates to a data processing device, a data processing method, and a program.
例えば、特許文献1には、アナログ配電盤が接続されたアナログ用遠隔監視制御装置(TC)と通信するためのCDT用回線制御部72と、デジタル配電盤が接続されたデジタル用遠隔監視制御装置(DTC)と通信するためのLAN用回線制御部76と、アナログ用遠隔監視制御装置(TC)と通信するためのCDTプロトコルとデジタル用遠隔監視制御装置(DTC)と通信するためのIPプロトコルとを相互に変換するメインCPU71とを備えるTC/DTC変換装置7が開示されている。 For example, Patent Document 1 describes a CDT line control unit 72 for communicating with an analog remote monitoring and control device (TC) connected to an analog switchboard, and a CDT line control unit 72 for communicating with an analog remote monitoring and control device (DTC) connected to a digital switchboard. ), the CDT protocol for communicating with the analog remote monitoring and control device (TC), and the IP protocol for communicating with the digital remote monitoring and control device (DTC). A TC/DTC conversion device 7 is disclosed, which includes a main CPU 71 that converts the TC/DTC.
また、特許文献2には、第一のプログラム実行環境提供手段を有し、所定の通信プロトコルを利用した第一のインタフェース仕様に従った要求の入力に応じて第一のプログラム実行環境提供手段を利用する第一のプログラムの管理処理を実行する第一の画像形成装置とネットワークを介して接続される第二の画像形成装置であって、第二のインタフェース仕様に従った要求の入力に応じ、第一の実行環境提供手段と異なる構成を有する第二のプログラム実行環境提供手段を利用する第二のプログラムの管理処理を実行する手段と、第一のインタフェース仕様に従った要求の入力を受け付ける手段と、受け付けられた要求を第二のインタフェース仕様に従った要求に変換し、変換後の要求をプログラム管理手段に入力する手段とを有する画像形成装置が開示されている。 Further, Patent Document 2 has a first program execution environment providing means, and the first program execution environment providing means is provided in response to input of a request according to a first interface specification using a predetermined communication protocol. A second image forming apparatus connected via a network to a first image forming apparatus that executes management processing for a first program to be used, in response to input of a request according to a second interface specification; means for executing a second program management process that utilizes a second program execution environment providing means having a configuration different from that of the first execution environment providing means; and means for accepting input of a request in accordance with the first interface specification. An image forming apparatus is disclosed, which includes means for converting the accepted request into a request according to a second interface specification and inputting the converted request to a program management means.
また、特許文献3には、監視装置(2)は、設備管理装置(3)に予め定めたサービスの提供を要求する際、要求内容を示すメッセージ本体に、サービスの提供を受けるためのパラメータが設定された第1のヘッダを付加した要求コマンドを第1のプロトコルに則って設備管理装置(3)に送信し、設備管理装置(3)は、要求コマンドを受信すると、要求コマンドの第1のヘッダに基づいて、受信した要求コマンドを第1のプロトコルとは異なる第2のプロトコルに則ったフレームに変換し、変換後のフレームに基づいて監視装置(2)にサービスを提供する通信システムが開示されている。 Furthermore, Patent Document 3 discloses that when the monitoring device (2) requests the facility management device (3) to provide a predetermined service, the monitoring device (2) includes parameters for receiving the service in the message body indicating the request content. The request command with the set first header added is sent to the equipment management device (3) according to the first protocol, and upon receiving the request command, the equipment management device (3) adds the first header of the request command. Disclosed is a communication system that converts a received request command into a frame compliant with a second protocol different from the first protocol based on a header, and provides a service to a monitoring device (2) based on the converted frame. has been done.
実装済みの通信プロトコルを活用して、使用可能な通信プロトコルの追加が比較的容易なデータ処理装置を提供することを目的とする。 It is an object of the present invention to provide a data processing device in which it is relatively easy to add usable communication protocols by utilizing already implemented communication protocols.
本発明に係るデータ処理装置は、データ処理を行うデータ処理部と、前記データ処理部により処理されるデータを第1の通信プロトコルで送信又は受信する第1の通信処理部と、前記第1の通信処理部と同じ筐体内に存在し、前記第1の通信処理部と筐体外部とのデータ通信を中継する中継部とを有し、前記中継部は、前記第1の通信処理部と、前記第1の通信プロトコルでデータ通信を行う第2の通信処理部と、前記第1の通信プロトコルとは異なる第2の通信プロトコルで、外部とデータ通信を行う第3の通信処理部とを含む。 The data processing device according to the present invention includes: a data processing unit that performs data processing; a first communication processing unit that transmits or receives data processed by the data processing unit using a first communication protocol; a relay unit that is present in the same housing as the communication processing unit and relays data communication between the first communication processing unit and the outside of the housing; the relay unit includes the first communication processing unit; a second communication processing unit that performs data communication using the first communication protocol; and a third communication processing unit that performs data communication with the outside using a second communication protocol different from the first communication protocol. .
好適には、前記第1の通信プロトコルは、TCP又はUDPであり、前記第2の通信プロトコルは、WebSocketプロトコルであり、前記第1の通信処理部は、筐体外部及び前記第2の通信処理部の双方に対して、TCPソケット通信又はUDPソケット通信を行う。 Preferably, the first communication protocol is TCP or UDP, the second communication protocol is WebSocket protocol, and the first communication processing unit is configured to communicate with the outside of the casing and the second communication processing unit. TCP socket communication or UDP socket communication is performed for both parts.
好適には、前記中継部は、ループバックアドレスを用いて、前記第1の通信処理部に対して、データの送受信を行う。 Preferably, the relay unit transmits and receives data to and from the first communication processing unit using a loopback address.
好適には、前記データ処理部は、スキャナに関する処理を前記データ処理として実施し、前記データ処理部によるスキャナ処理中に、前記第1の通信処理部及び前記中継部における通信経路を占有状態に設定する占有制御部をさらに有し、前記中継部は、前記占有制御部により占有状態に設定されている間、データ通信を中継するか否かを変更しない。 Preferably, the data processing unit executes processing related to a scanner as the data processing, and sets communication paths in the first communication processing unit and the relay unit to an occupied state during the scanner processing by the data processing unit. The relay unit further includes an occupancy control unit that does not change whether or not to relay data communication while the relay unit is set to the occupancy state by the occupancy control unit.
好適には、前記中継部は、TCPソケット通信又はUDPソケット通信のポート番号を示す情報を、WebSocket通信で送受信されるデータのヘッダに埋め込むプロトコル変換部をさらに含む。 Preferably, the relay unit further includes a protocol conversion unit that embeds information indicating a port number for TCP socket communication or UDP socket communication in a header of data transmitted and received by WebSocket communication.
好適には、前記中継部は、仕向け先情報、及び、既定のサービスとの連携の有効又は無効、の少なくとも一方に応じて、起動又は停止する。 Preferably, the relay unit starts or stops depending on destination information and at least one of whether cooperation with a predetermined service is enabled or disabled.
また、本発明に係るデータ処理方法は、データ処理を行うデータ処理ステップと、前記データ処理ステップにより処理されたデータを、第1の通信プロトコルで同一筐体内の中継部に送信する内部送信ステップと、前記中継部が、前記内部送信ステップにより送信されたデータを、前記第1の通信プロトコルとは異なる第2の通信プロトコルで、前記筐体の外部に送信する外部送信ステップとを有する。 Further, the data processing method according to the present invention includes a data processing step of performing data processing, and an internal transmission step of transmitting the data processed in the data processing step to a relay unit within the same housing using a first communication protocol. , an external transmission step in which the relay unit transmits the data transmitted in the internal transmission step to the outside of the casing using a second communication protocol different from the first communication protocol.
また、本発明に係るプログラムは、データ処理を行うデータ処理ステップと、前記データ処理ステップにより処理されたデータを、第1の通信プロトコルで同一筐体内の中継部に送信する内部送信ステップと、前記中継部が、前記内部送信ステップにより送信されたデータを、前記第1の通信プロトコルとは異なる第2の通信プロトコルで、前記筐体の外部に送信する外部送信ステップとをコンピュータに実行させる。 Further, the program according to the present invention includes a data processing step of performing data processing, an internal transmission step of transmitting the data processed in the data processing step to a relay unit in the same housing using a first communication protocol, and A relay unit causes the computer to execute an external transmission step of transmitting the data transmitted in the internal transmission step to the outside of the casing using a second communication protocol different from the first communication protocol.
実装済みの通信プロトコルを活用して、使用可能な通信プロトコルの追加が比較的容易なデータ処理装置を提供できる。 By utilizing already implemented communication protocols, it is possible to provide a data processing device in which it is relatively easy to add usable communication protocols.
以下、本発明の実施形態を、図面を参照して説明する。
図1は、通信システム1の全体構成を例示する図である。
図1に例示するように、通信システム1は、クライアント端末2と、スキャナ装置3と、クラウドサーバ4と、クライアント端末6とを含み、これらはインターネット7などの通信回線を介して互いに接続している。
クライアント端末2及びクライアント端末6は、例えば、タブレット端末やスマートフォンなどのコンピュータ端末である。本例のクライアント端末2は、TCP/UDPソケット通信によってスキャナ装置3とデータ通信を行い、スキャナ装置3を制御する。本例のクライアント端末6は、WebSocket通信でスキャナ装置3とデータ通信を行う。
スキャナ装置3は、画像表示媒体から光学的に画像データを読み取る画像読取装置であり、例えば、読み取られた画像データをTCPソケット通信でクライアント端末2に送信する。なお、スキャナ装置3は、本発明に係るデータ処理装置の一例である。Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram illustrating the overall configuration of a communication system 1. As shown in FIG.
As illustrated in FIG. 1, the communication system 1 includes a client terminal 2, a scanner device 3, a cloud server 4, and a client terminal 6, which are connected to each other via a communication line such as the Internet 7. There is.
The client terminal 2 and the client terminal 6 are, for example, computer terminals such as tablet terminals and smartphones. The client terminal 2 of this example performs data communication with the scanner device 3 through TCP/UDP socket communication and controls the scanner device 3. The client terminal 6 of this example performs data communication with the scanner device 3 using WebSocket communication.
The scanner device 3 is an image reading device that optically reads image data from an image display medium, and transmits the read image data to the client terminal 2 by, for example, TCP socket communication. Note that the scanner device 3 is an example of a data processing device according to the present invention.
クラウドサーバ4は、クライアント端末6と連携してサービスを提供するクラウド上のサーバである。例えば、クラウドサーバ4は、クライアント端末6にアプレットを提供し、当該アプレットはWebSocket通信でスキャナ装置3とデータ通信を行い、クラウドサーバ4上のサービスを利用して、スキャナ装置3から受信した画像データを活用する。 The cloud server 4 is a server on the cloud that provides services in cooperation with the client terminal 6. For example, the cloud server 4 provides an applet to the client terminal 6, and the applet performs data communication with the scanner device 3 using WebSocket communication, and uses the service on the cloud server 4 to transmit image data received from the scanner device 3. Make use of it.
上記通信システム1において、ネットワーク通信インタフェースを持つスキャナ装置3は、PCや携帯電話などのクライアント端末2からTCPならびにUDPのプロトコルデータを送受信して、スキャナ読み取りの一連の流れ(ユーザ操作、読み取り開始、データ転送、読み取り完了)を実行することができる。
上記に加えて、新たなサービス(例えば、インスタントメッセンジャーサービス)との連携を実現しようとする場合、サービスが用意するフレームワーク(例えば、アプレットのフレームワーク)には、TCPならびにUDPプロトコルによってデータを送受信するインタフェースが準備されていない場合もあり、リアルタイムに双方向通信可能なWebSocketプロトコルを使った枠組みのみが提供される場合もある。そのため、実装済みのインタフェースをそのまま踏襲した形では機能を実現できない。通常は、WebSocketプロトコルによる新インタフェースを作成し、専用の読み取り機能を構築するのであろうが、品質確保などの技術的課題はもちろん、開発期間が長期に渡るなどビジネス的な側面でもリスクを 背負うといった課題がある。In the communication system 1 described above, the scanner device 3 having a network communication interface transmits and receives TCP and UDP protocol data from a client terminal 2 such as a PC or a mobile phone, and performs a series of scanner reading processes (user operation, reading start, etc.). data transfer, read completion).
In addition to the above, when trying to realize cooperation with a new service (for example, an instant messenger service), the framework provided by the service (for example, an applet framework) must be able to send and receive data using TCP and UDP protocols. In some cases, there is no interface prepared, and in some cases, only a framework using the WebSocket protocol that allows two-way communication in real time is provided. Therefore, functions cannot be realized by following the implemented interface as is. Normally, a new interface using the WebSocket protocol would be created and a dedicated reading function would be built, but this not only poses technical issues such as ensuring quality, but also risks from a business perspective such as a long development period. There are challenges.
そこで、本実施形態の通信システム1におけるスキャナ装置3のファームウェアでは、後述する中継部520(WebSocketサーバ機能)を実装して、WebSocketプロトコルをサポートし、このインタフェースから受信されたデータを、スキャナ装置3内部で独自にプロトコル変換し、実装済みのTCP/UDPインタフェースにバイパス送信する手法を考案した。スキャナ装置3から送信するデータも同様に、TCP/UDPインタフェースによって、一旦、スキャナ装置3内部にローカルに送信後、 中継部520にバイパス送信し、クライアント端末6に転送する仕組みを実現した。
Therefore, in the firmware of the scanner device 3 in the communication system 1 of the present embodiment, a relay unit 520 (WebSocket server function) to be described later is implemented to support the WebSocket protocol, and data received from this interface is transmitted to the scanner device 3. We devised a method to perform internal protocol conversion and bypass transmission to the already implemented TCP/UDP interface. Similarly, data transmitted from the scanner device 3 is first transmitted locally inside the scanner device 3 using the TCP/UDP interface, then bypass-transmitted to the
図2は、スキャナ装置3のハードウェア構成を、制御機能を中心に例示する図である。
図2に例示するように、スキャナ装置3は、CPU300、メモリ302、フラッシュROM304、ネットワークインタフェース306(ネットワークIF306)、表示装置308、入力装置310、及び、スキャナ制御装置312を有し、これらの構成はバス314を介して互いに接続している。これらの構成は、同一の筐体内に設けられている。
CPU300は、例えば、中央演算装置である。
メモリ302は、例えば、揮発性メモリであり、主記憶装置として機能する。
フラッシュROM304は、例えば、フラッシュメモリであり、不揮発性の記録装置としてコンピュータプログラムやその他のデータファイルを格納する。
ネットワークIF306は、有線又は無線で通信するためのインタフェースであり、例えば、クライアント端末2及びクライアント端末6との通信を実現する。
表示装置308は、例えば、液晶ディスプレイである。
入力装置310は、例えば、タッチパネルである。
スキャナ制御装置312は、スキャン動作を行う各構成の制御を行う。FIG. 2 is a diagram illustrating the hardware configuration of the scanner device 3, focusing on the control functions.
As illustrated in FIG. 2, the scanner device 3 includes a
The
The network IF 306 is an interface for wired or wireless communication, and realizes communication with the client terminal 2 and the client terminal 6, for example.
A
図3は、スキャナ装置3の機能構成を例示する図である。
図3に例示するように、本例のスキャナ装置3には、スキャナプログラム5がファームウェアの一部としてインストールされ、動作する。スキャナプログラム5は、例えば、インターネット7を介して配布される。なお、スキャナプログラム5は、CD-ROM等の記録媒体に格納されており、クライアント端末2を介して、スキャナ装置3にインストールされてもよい。
スキャナプログラム5は、制御部500、占有制御部502、スキャナ処理部510、第1通信部512、及び、中継部520を有する。
なお、スキャナプログラム5の一部又は全部は、ASICなどのハードウェアにより実現されてもよく、また、OS(Operating System)の機能を一部借用して実現されてもよい。FIG. 3 is a diagram illustrating the functional configuration of the scanner device 3. As shown in FIG.
As illustrated in FIG. 3, a scanner program 5 is installed as part of firmware in the scanner device 3 of this example and operates. The scanner program 5 is distributed via the Internet 7, for example. Note that the scanner program 5 is stored in a recording medium such as a CD-ROM, and may be installed in the scanner device 3 via the client terminal 2.
The scanner program 5 includes a
Note that part or all of the scanner program 5 may be realized by hardware such as an ASIC, or may be realized by borrowing some functions of an OS (Operating System).
スキャナプログラム5において、制御部500は、スキャナプログラム5の各構成を制御する。例えば、制御部500は、スキャナ装置3の仕向け先情報、及び、既定のサービスとの連携の有効又は無効、の少なくとも一方に応じて、中継部520の機能を起動又は停止させる。本例の制御部500は、スキャナ装置3の仕向け先がA国であり、かつ、サービスBとの連携機能が有効である場合に、中継部520を起動させ、スキャナ装置3の仕向け先がA国以外である場合、又は、サービスBとの連携機能が無効に設定されている場合、中継部520を停止した状態にさせる。
In the scanner program 5, the
占有制御部502は、スキャナ処理部510によるスキャナ処理中に、第1通信部512及び中継部520における通信経路を占有状態に設定する。本例では、中継部520を経由する通信経路(WebSocket通信)と、中継部520を経由しない通信経路(TCP/UDPソケット通信)とが存在し、占有制御部502は、スキャナ処理部510によるスキャナ処理が開始され、このスキャナ処理が完了するまでの間、いずれか一方の通信経路に固定し、他方の通信経路による通信を禁止する。より具体的には、図8に例示するように、WebSocketプロトコルで通信する際、最初にアプレットがスキャナ装置3に占有コマンドを投げて占有し、USBやクラウド/モバイルなどの他の通信経路で他の端末がスキャナ装置3と通信できないようにした状態で一連のやりとりを行い、すべてのやり取り終了後に占有を解除する。
The
スキャナ処理部510は、スキャナ装置3に関するデータ処理を実施する。本例のスキャナ処理部510は、複数のアプリケーションプログラム(図中の「アプリA」~「アプリD」)を含み、画像データの転送処理やスキャナ装置3の設定処理等を行う。なお、スキャナ処理部510は、本発明に係るデータ処理部の一例である。
The
第1通信部512は、スキャナ処理部510により処理されるデータを第1の通信プロトコルで送受信する。本例の第1通信部512は、TCP/UDPソケットインタフェースで、スキャナ装置3の筐体内外に対してデータ通信を行う。より具体的には、第1通信部512は、スキャナ装置3の筐体外部にWebSocketで送信する場合には、ループバックアドレスを指定してTCP/UDPソケットインタフェースで、スキャナ装置3内部の中継部520に対してデータを送信し、スキャナ装置3の筐体外部にTCP/UDPで送信する場合には、外部の宛先アドレス(クライアント端末2のアドレスなど)を指定して、スキャナ装置3外部にデータを送信する。
The
中継部520は、第1通信部512と同じ筐体内に存在し、第1通信部512と筐体外部と間のデータ通信を中継する。
具体的には、中継部520は、第2通信部512、プロトコル変換部524、及び第3通信部526を含む。The
Specifically, the
第2通信部512は、第1通信部512と、第1の通信プロトコルでデータ通信を行う。本例の第2通信部512は、ループバックアドレスを指定してTCP/UDPソケットインタフェースで第1通信部512とデータ通信を行う。
The
プロトコル変換部524は、中継部520が中継するデータを、通信プロトコルに対応した形式に変換する。例えば、プロトコル変換部524は、TCPソケット通信又はUDPソケット通信のポート番号を示す情報を、WebSocket通信で送受信されるデータのヘッダに埋め込む。また、プロトコル変換部524は、WebSocket通信で送受信されるデータのヘッダから、TCPソケット通信又はUDPソケット通信のポート番号を特定し、特定されたポート番号でパケットを生成する。
The
第3通信部526は、第1の通信プロトコルとは異なる第2の通信プロトコルで、外部とデータ通信を行う。本例の第3通信部526は、WebSocketプロトコルで、クライアント端末6のアプレットとデータ通信を行う。
The
図4は、スキャナ装置3による送信処理(S10)を説明するフローチャートである。
図5は、WebSocketプロトコルによる送信処理を模式的に説明する図である。
図4に例示するように、ステップ100(S100)において、スキャナ処理部510(図3)は、データ処理を行い、送信すべきデータを生成する。
ステップ105(S105)において、第1通信部512は、スキャナ処理部510により生成されたデータの送信先を判定する。データの送信先がクライアント端末2である場合に、S110の処理に移行し、データの送信先がクライアント端末6である場合に、S115の処理に移行する。FIG. 4 is a flowchart illustrating the transmission process (S10) by the scanner device 3.
FIG. 5 is a diagram schematically explaining transmission processing using the WebSocket protocol.
As illustrated in FIG. 4, in step 100 (S100), the scanner processing unit 510 (FIG. 3) performs data processing to generate data to be transmitted.
In step 105 (S105), the
ステップ110(S110)において、第1通信部512は、TCP/UDPソケットインタフェースを使って、スキャナ処理部510により生成されたデータを外部(クライアント端末2)に送信する。
In step 110 (S110), the
ステップ115(S115)において、第1通信部512は、ループバックアドレスを指定して、TCP/UDPソケットインタフェースを使って、スキャナ処理部510により生成されたデータを自機(スキャナ装置3)に送信する。
ステップ120(S120)において、中継部520の第2通信部522は、TCP/UDPソケットインタフェースで、第1通信部512からデータを受信する。In step 115 (S115), the
In step 120 (S120), the
ステップ125(S125)において、プロトコル変換部524は、図5に例示するように、第2通信部522が受信したデータのヘッダに、ポート番号を示す情報(すなわち、アプリケーションを特定する情報)を埋め込む。
ステップ130(S130)において、第3通信部526は、プロトコル変換部524により情報が埋め込まれたデータを、WebSocketプロトコルで外部(クライアント端末6)に送信する。In step 125 (S125), the
In step 130 (S130), the
図6は、スキャナ装置3による受信処理(S20)を説明するフローチャートである。
図7は、WebSocketプロトコルによる受信処理を模式的に説明する図である。
図6に例示するように、ステップ200(S200)において、中継部520の第3通信部526は、外部(クライアント端末6)から、WebSocketプロトコルでデータを受信する。
ステップ205(S205)において、プロトコル変換部524は、図7に例示するように、第3通信部526により受信されたデータのヘッダから、ポート番号を示す情報を抽出する。
ステップ210(S210)において、第2通信部522は、プロトコル変換部524により抽出されたポート番号と、ループバックアドレスと基づいて、TCP/UDPソケットインタフェースで、第3通信部526により受信されたデータを第1通信部512に送信する。FIG. 6 is a flowchart illustrating the reception process (S20) by the scanner device 3.
FIG. 7 is a diagram schematically explaining reception processing using the WebSocket protocol.
As illustrated in FIG. 6, in step 200 (S200), the
In step 205 (S205), the
In step 210 (S210), the
ステップ215(S215)において、第1通信部512は、図7に例示するように、第2通信部522から受信したデータを、ポート番号に対応するアプリケーションに渡す。
ステップ220(S220)において、スキャナ処理部510は、第1通信部512により受信したデータを、ポート番号に対応するアプリケーションで処理する。In step 215 (S215), the
In step 220 (S220), the
以上説明したように、本実施形態のスキャナ装置3は、従来から実装されているTCP/UDPソケットインタフェースを活用しながら、ループバックアドレスで中継部520にデータを中継させて、WebSocketプロトコルでの通信を実現する。これにより、従来のスキャナ読取制御を一切修正することなく、短工程でかつ 高い品質を確保した形でWebSocketプロトコルによる通信機構を実現できる。
As described above, the scanner device 3 of this embodiment utilizes the conventionally implemented TCP/UDP socket interface and allows the
1 通信システム
3 スキャナ装置
5 スキャナプログラム
520 中継部1 Communication system 3 Scanner device 5
Claims (7)
前記データ処理部により処理されるデータを第1の通信プロトコルで送信又は受信する第1の通信処理部と、
前記第1の通信処理部と同じ筐体内に存在し、前記第1の通信処理部と筐体外部とのデータ通信を中継する中継部と
を有し、
前記中継部は、
前記第1の通信処理部と、前記第1の通信プロトコルでデータ通信を行う第2の通信処理部と、
前記第1の通信プロトコルとは異なる第2の通信プロトコルで、外部とデータ通信を行う第3の通信処理部と
を含み、
前記中継部は、既定のサービスとの連携が有効に設定されている場合に起動し、前記既定のサービスとの連携が無効に設定されている場合に停止する、
データ処理装置。 a data processing unit that performs data processing;
a first communication processing unit that transmits or receives data processed by the data processing unit using a first communication protocol;
a relay unit that is present in the same casing as the first communication processing unit and relays data communication between the first communication processing unit and the outside of the casing;
The relay section is
the first communication processing unit; a second communication processing unit that performs data communication using the first communication protocol;
a third communication processing unit that performs data communication with the outside using a second communication protocol different from the first communication protocol;
The relay unit starts when cooperation with a default service is set to be valid, and stops when cooperation with the default service is set to be disabled.
Data processing equipment.
前記第2の通信プロトコルは、WebSocketプロトコルであり、
前記第1の通信処理部は、筐体外部及び前記第2の通信処理部の双方に対して、TCPソケット通信又はUDPソケット通信を行う
請求項1に記載のデータ処理装置。 The first communication protocol is TCP or UDP,
The second communication protocol is a WebSocket protocol,
The data processing device according to claim 1, wherein the first communication processing unit performs TCP socket communication or UDP socket communication with both the outside of the case and the second communication processing unit.
請求項2に記載のデータ処理装置。 The data processing device according to claim 2, wherein the relay unit transmits and receives data to and from the first communication processing unit using a loopback address.
前記データ処理部によるスキャナ処理中に、前記第1の通信処理部及び前記中継部における通信経路を占有状態に設定する占有制御部
をさらに有し、
前記中継部は、前記占有制御部により占有状態に設定されている間、データ通信を中継するか否かを変更しない
請求項3に記載のデータ処理装置。 The data processing unit performs processing related to a scanner as the data processing,
further comprising an occupancy control unit that sets a communication path in the first communication processing unit and the relay unit to an occupied state during scanner processing by the data processing unit,
The data processing device according to claim 3, wherein the relay unit does not change whether or not to relay data communication while the occupancy control unit sets the occupancy state.
TCPソケット通信又はUDPソケット通信のポート番号を示す情報を、WebSocket通信で送受信されるデータのヘッダに埋め込むプロトコル変換部
をさらに含む
請求項4に記載のデータ処理装置。 The relay section is
The data processing device according to claim 4, further comprising: a protocol conversion unit that embeds information indicating a port number of TCP socket communication or UDP socket communication in a header of data transmitted and received by WebSocket communication.
前記データ処理ステップにより処理されたデータを、第1の通信プロトコルで同一筐体内の中継部に送信する内部送信ステップと、
既定のサービスとの連携が有効に設定されている場合に前記中継部が起動するステップと、
前記既定のサービスとの連携が無効に設定されている場合に前記中継部が停止するステップと、
起動した前記中継部が、前記内部送信ステップにより送信されたデータを、前記第1の通信プロトコルとは異なる第2の通信プロトコルで、前記筐体の外部に送信する外部送信ステップと
を有するデータ処理方法。 a data processing step for performing data processing;
an internal transmission step of transmitting the data processed in the data processing step to a relay unit within the same housing using a first communication protocol;
activating the relay unit when cooperation with a default service is enabled;
a step of stopping the relay unit when cooperation with the default service is set to be disabled;
an external transmission step in which the activated relay unit transmits the data transmitted in the internal transmission step to the outside of the casing using a second communication protocol different from the first communication protocol. Method.
前記データ処理ステップにより処理されたデータを、第1の通信プロトコルで同一筐体内の中継部に送信する内部送信ステップと、
既定のサービスとの連携が有効に設定されている場合に前記中継部が起動するステップと、
前記既定のサービスとの連携が無効に設定されている場合に前記中継部が停止するステップと、
起動した前記中継部が、前記内部送信ステップにより送信されたデータを、前記第1の通信プロトコルとは異なる第2の通信プロトコルで、前記筐体の外部に送信する外部送信ステップと
をコンピュータに実行させるプログラム。 a data processing step for performing data processing;
an internal transmission step of transmitting the data processed in the data processing step to a relay unit within the same housing using a first communication protocol;
activating the relay unit when cooperation with a default service is enabled;
a step of stopping the relay unit when cooperation with the default service is set to be disabled;
and an external transmission step in which the activated relay unit transmits the data transmitted in the internal transmission step to the outside of the casing using a second communication protocol different from the first communication protocol. program to do.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2020/011102 WO2021181656A1 (en) | 2020-03-13 | 2020-03-13 | Data processing device, data processing method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPWO2021181656A1 JPWO2021181656A1 (en) | 2021-09-16 |
| JP7344366B2 true JP7344366B2 (en) | 2023-09-13 |
Family
ID=77671067
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022505687A Active JP7344366B2 (en) | 2020-03-13 | 2020-03-13 | Data processing device, data processing method, and program |
Country Status (3)
| Country | Link |
|---|---|
| JP (1) | JP7344366B2 (en) |
| CN (1) | CN114746851B (en) |
| WO (1) | WO2021181656A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116126565A (en) * | 2023-03-06 | 2023-05-16 | 深圳市康冠商用科技有限公司 | Method, device, equipment and medium for transmitting kernel data based on TCP loop |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000148425A (en) | 1998-11-17 | 2000-05-30 | Canon Inc | Printing system, web server, information processing apparatus and method, and storage medium storing computer readable program |
| JP2008035058A (en) | 2006-07-27 | 2008-02-14 | Seiko Epson Corp | Program, information storage medium, communication apparatus, and image processing system |
| WO2016084485A1 (en) | 2014-11-27 | 2016-06-02 | ソニー株式会社 | Information processing device and information processing method |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102571751B (en) * | 2010-12-24 | 2014-12-31 | 佳能It解决方案株式会社 | Relay processing device and control method therefor |
| JP6354145B2 (en) * | 2013-12-12 | 2018-07-11 | 富士通株式会社 | Relay device, relay control method, and relay control program |
| JP6572787B2 (en) * | 2016-01-27 | 2019-09-11 | セイコーエプソン株式会社 | Image scanner and image scanning system |
| JP2018112895A (en) * | 2017-01-11 | 2018-07-19 | キヤノン株式会社 | Information processing device, control method thereof, program, and information processing system |
-
2020
- 2020-03-13 JP JP2022505687A patent/JP7344366B2/en active Active
- 2020-03-13 WO PCT/JP2020/011102 patent/WO2021181656A1/en not_active Ceased
- 2020-03-13 CN CN202080080743.8A patent/CN114746851B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000148425A (en) | 1998-11-17 | 2000-05-30 | Canon Inc | Printing system, web server, information processing apparatus and method, and storage medium storing computer readable program |
| JP2008035058A (en) | 2006-07-27 | 2008-02-14 | Seiko Epson Corp | Program, information storage medium, communication apparatus, and image processing system |
| WO2016084485A1 (en) | 2014-11-27 | 2016-06-02 | ソニー株式会社 | Information processing device and information processing method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114746851A (en) | 2022-07-12 |
| JPWO2021181656A1 (en) | 2021-09-16 |
| CN114746851B (en) | 2024-08-02 |
| WO2021181656A1 (en) | 2021-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20120307277A1 (en) | Information processing apparatus for transferring image data, server apparatus for receiving transferred image data, and control methods and storage media therefor | |
| US9264460B2 (en) | Method, apparatus, and system for executing a job in cooperation with a server | |
| JP2016206940A (en) | Information processor and control thereof, and program | |
| CN103218188A (en) | Information processing apparatus, method for controlling an information processing apparatus, and image forming system | |
| CN111600883A (en) | Vehicle diagnosis method and system, electronic equipment and storage medium | |
| CN108306943B (en) | Information processing apparatus, control method thereof, storage medium, and information processing system | |
| JP2019160097A (en) | Information processing system, information processing device, information processing method, and program | |
| JP2008524879A (en) | File transmission method, system, virtual printer apparatus and restoration apparatus in network | |
| US10499311B2 (en) | Method and apparatus for implementing network sharing | |
| JP2012252466A (en) | Server apparatus, information processing apparatus, control method therefor, and control program | |
| JP7344366B2 (en) | Data processing device, data processing method, and program | |
| JP7625896B2 (en) | Computer program for a communication system and terminal and a communication device | |
| JP7027084B2 (en) | Information processing equipment, its control method, and programs | |
| JP6052876B2 (en) | Relay device, control method thereof, and control program thereof | |
| JP2007323653A (en) | Data distribution system, data distribution method, and data distribution program | |
| JP5877283B1 (en) | Operating environment setting system, portable terminal, relay device, and operating environment setting program | |
| JP2019153079A (en) | Apparatus, information processing system, information processing method, and program | |
| CN115022252B (en) | A method and device for configuring the maximum length of a transmission data packet | |
| CN115134391B (en) | Device control method and device for non-IoT devices | |
| JP4923875B2 (en) | Information instruction apparatus, information instruction processing system, information instruction processing management system, and information instruction program | |
| CN116015737A (en) | A unified authentication method, device, system and storage medium for an audio and video platform | |
| JP6998746B2 (en) | Communication device, notification device, relay device, communication system, control method of each device, and program | |
| JP4900576B2 (en) | Program, storage medium, and image processing method | |
| US11212398B2 (en) | Information processing apparatus and information processing method for displaying registration information of terminals on servers | |
| JP5674558B2 (en) | COMMUNICATION CONTROL DEVICE, ITS CONTROL METHOD, AND COMMUNICATION DEVICE |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220302 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20221118 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230322 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230519 |
|
| 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: 20230808 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230901 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7344366 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |