JP2020017312A - Information processing device, information processing method, and program - Google Patents

Information processing device, information processing method, and program Download PDF

Info

Publication number
JP2020017312A
JP2020017312A JP2019191153A JP2019191153A JP2020017312A JP 2020017312 A JP2020017312 A JP 2020017312A JP 2019191153 A JP2019191153 A JP 2019191153A JP 2019191153 A JP2019191153 A JP 2019191153A JP 2020017312 A JP2020017312 A JP 2020017312A
Authority
JP
Japan
Prior art keywords
information
information processing
processing apparatus
acquisition unit
acquisition
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
JP2019191153A
Other languages
Japanese (ja)
Other versions
JP6818108B2 (en
Inventor
卓哉 竹内
Takuya Takeuchi
卓哉 竹内
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2019191153A priority Critical patent/JP6818108B2/en
Publication of JP2020017312A publication Critical patent/JP2020017312A/en
Application granted granted Critical
Publication of JP6818108B2 publication Critical patent/JP6818108B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

To provide an information processing device, an information processing method, and a program that can obtain multiple pieces of information on a device while keeping communication traffic down.SOLUTION: An information processing device collectively obtains first device information which is information not involved in the setting of a device or a function of the device, from the device, obtains second device information which is information corresponding to the setting of the device or the function of the device, and stores the obtained first and second device information in storage means. On the basis of the obtained first device information, the information processing device identifies a device connected via communication.SELECTED DRAWING: Figure 3

Description

本発明は、例えばSNMPプロトコル等を用いたネットワーク管理ソフトウェアによりネットワークデバイスを制御する情報処理装置、情報処理方法、及びプログラムに関する。   The present invention relates to an information processing apparatus, an information processing method, and a program for controlling a network device using network management software using, for example, an SNMP protocol.

従来、ネットワーク上の機器等を管理するため、SNMP(Simple Network Management Protocol)が考案され、機器等を管理する際の通信プロトコルとして利用されている。SNMPプロトコルを用いたネットワーク管理システムでは、管理対象ノードと呼ばれる管理対象となるネットワーク機器に対して、管理情報の取得、設定の変更を行うことができる。また、SNMPプロトコルを用いた通信では、1つのSNMPメッセージ内に、複数の属性を指定することで、複数属性情報を一括で取得することが可能である。複数属性情報を一括で取得する際に、取得を試みている情報のうち一つでも取得エラーがあった場合、SNMPリクエスト自体がエラーとなってしまう。そこで、取得エラーが発生している属性部分を排除したSNMPリクエストメッセージを作成し、再度リクエストを行うことで、情報の取得エラーを防ぐ方法が提案されている(特許文献1参照)。   Conventionally, SNMP (Simple Network Management Protocol) has been devised for managing devices and the like on a network, and is used as a communication protocol when managing the devices and the like. In a network management system using the SNMP protocol, management information can be obtained and settings can be changed for network devices to be managed, which are called managed nodes. In communication using the SNMP protocol, a plurality of attributes can be collectively acquired by specifying a plurality of attributes in one SNMP message. When acquiring multiple attribute information in a lump, if there is an acquisition error in any of the information that is being acquired, the SNMP request itself will result in an error. Therefore, a method has been proposed in which an SNMP request message in which an attribute part in which an acquisition error has occurred is eliminated and a request is made again to prevent an information acquisition error (see Patent Document 1).

特願平7-97247号公報Japanese Patent Application No. 7-97247

しかしながら、SNMPプロトコルを用いて、複数の管理対象ノードを対象としたデバイスの探索等の通信を行い、情報取得時にエラーが発生したデバイスに対して再送処理を行う場合、通信トラフィックが増大してしまう可能性がある。また、取得しようとする複数の属性の中に取得エラーとなる複数の属性が含まれている場合は、エラー項目数に比例して通信トラフィックが大きくなってしまうという課題がある。   However, when communication such as device search is performed on a plurality of managed nodes using the SNMP protocol and retransmission processing is performed on a device in which an error has occurred during information acquisition, communication traffic increases. there is a possibility. In addition, when a plurality of attributes that result in an acquisition error are included in the plurality of attributes to be acquired, there is a problem that communication traffic increases in proportion to the number of error items.

本発明は上記従来の技術の有する課題に鑑みなされたものである。本発明では、通信トラフィックへ与える影響を軽減した上で、デバイスに関する複数の情報の取得を可能とすることを目的とする。   The present invention has been made in view of the above-mentioned problems of the conventional technology. An object of the present invention is to enable acquisition of a plurality of pieces of information about a device while reducing the influence on communication traffic.

上記目的を達成するために本発明に係る情報処理装置は、デバイスの設定或いはデバイスの有する機能に関わらない情報である第1のデバイス情報を一括でデバイスから取得する第1取得手段と、デバイスの設定或いはデバイスの有する機能に応じた情報である第2のデバイス情報をデバイスから取得する第2取得手段と、前記第1取得手段により取得した第1のデバイス情報及び前記第2取得手段により取得した第2のデバイス情報を格納する格納手段と、前記第1取得手段により取得した第1デバイス情報に基づいて、通信で接続されたデバイスを特定する特定手段と、を有する。   In order to achieve the above object, an information processing apparatus according to the present invention comprises: first acquisition means for collectively acquiring first device information from a device, which is information irrespective of device settings or functions of the device; Second acquisition means for acquiring from the device second device information that is information corresponding to settings or functions of the device, and first device information acquired by the first acquisition means and acquired by the second acquisition means A storage unit for storing second device information; and a specification unit for specifying a device connected by communication based on the first device information acquired by the first acquisition unit.

本発明によれば、通信トラフィックを抑えつつ、デバイスに関する複数の情報の取得を行うことができる。   According to the present invention, it is possible to acquire a plurality of pieces of information on a device while suppressing communication traffic.

実施形態1に係る情報収集装置とデバイスの構成を表す図である。FIG. 2 is a diagram illustrating a configuration of an information collection device and a device according to the first embodiment. 実施形態1に係るホストコンピュータのソフトウェア構成を示す図である。FIG. 2 is a diagram illustrating a software configuration of a host computer according to the first embodiment. 実施形態1に係るホストコンピュータが実装する処理を示すフローチャートである。5 is a flowchart illustrating a process implemented by the host computer according to the first embodiment. 検索結果リスト例を示す図である。It is a figure showing an example of a search result list.

本実施形態に係る発明では、SNMPとくにSNMP ver.1プロトコルでデバイスの探索を行う際に、取得する情報を一律に扱うのではなく、デバイスの設定やデバイスの有する機能に依存せず取得可能と想定される情報(デバイス非依存情報)と、デバイスの設定やデバイスの有する機能に依存して取得可否が変わる可能性がある情報(デバイス依存情報)とに分けて情報取得を行う。情報の種類に応じて情報取得を分けることで、取得情報に対して一律にエラー処理等を行う必要がなく、通信トラフィックへ与える影響を軽減した上で、デバイス探索および、複数のデバイス情報の取得(あるいは収集)を可能とする。   In the invention according to the present embodiment, when searching for a device using SNMP, particularly the SNMP ver. 1 protocol, information to be obtained is not handled uniformly, but can be obtained without depending on device settings or functions of the device. Information acquisition is performed separately for assumed information (device-independent information) and information (device-dependent information) whose availability may change depending on device settings and functions of the device. By dividing information acquisition according to the type of information, it is not necessary to uniformly perform error processing on the acquired information, reduce the influence on communication traffic, search for devices, and acquire multiple pieces of device information. (Or collection).

<実施形態1>
[システム構成]
図1は、本発明に係る情報処理装置の一例であるホストコンピュータ1(以下、ホスト)と、複数台のプリンタを含むデバイス管理システムの概略を示したブロック図である。本実施形態では、管理対象の装置をプリンタとし、そのプリンタをホストから探索する処理を例として示す。なお、プリンタは、単機能プリンタとは限らず、例えばプリンタ機能をスキャナ機能などと併せ持つ複合機能プリンタであってもよい。また、管理対象の装置は、プリンタに限定されるものではなく、他の情報処理装置であってもよい。
<First embodiment>
[System configuration]
FIG. 1 is a block diagram schematically showing a host computer 1 (hereinafter, host) as an example of an information processing apparatus according to the present invention, and a device management system including a plurality of printers. In the present embodiment, a device to be managed is a printer, and a process of searching for the printer from a host is described as an example. The printer is not limited to a single-function printer, but may be a multi-function printer having a printer function together with a scanner function. The device to be managed is not limited to a printer, but may be another information processing device.

図1に示されているようにホスト1とプリンタ2とは所定の双方向インタフェース3を介して互いに接続される。なお、ホスト1としては、例えば、パーソナルコンピュータ(PC)が挙げられる。ホスト1は、接続されたデバイスであるプリンタ2からデバイス情報を取得する情報収集装置として機能する。ホスト1は、CPU101などを含むメインボード109とキーボード110とLCDなどのディスプレイ111とハードディスク(HDD)などの記憶装置112とを有する。メインボード109はさらに、RAM102、ROM103、キーボードコントローラ(KBC)106、キーボード110やポインティングデバイス(不図示)からの入力を制御する。キーボードコントローラ110を操作部または入力部とも呼ぶ。ディスプレイコントローラ(DISPC)107は、ディスプレイ111の表示を制御する。RAM102は、CPU101のメインメモリあるいはワークエリアとして機能する。ROM103は、ブートプログラム等を記憶する。   As shown in FIG. 1, the host 1 and the printer 2 are connected to each other via a predetermined bidirectional interface 3. The host 1 is, for example, a personal computer (PC). The host 1 functions as an information collection device that acquires device information from a printer 2 that is a connected device. The host 1 has a main board 109 including a CPU 101 and the like, a keyboard 110, a display 111 such as an LCD, and a storage device 112 such as a hard disk (HDD). The main board 109 further controls inputs from a RAM 102, a ROM 103, a keyboard controller (KBC) 106, a keyboard 110, and a pointing device (not shown). The keyboard controller 110 is also called an operation unit or an input unit. The display controller (DISPC) 107 controls the display on the display 111. The RAM 102 functions as a main memory or a work area of the CPU 101. The ROM 103 stores a boot program and the like.

ディスクコントローラ(DKC)108は、ハードディスク等の記憶装置112とのアクセスを制御する。記憶装置112は、本実施形態に従う各機能を実行するアップデートプログラム、オペレーティングシステム、各種のアプリケーション等を記憶する。またSNMPやそのベースとなるTCP/IPなどを含むプロトコルスタックも記憶装置112にプログラムファイルとして記憶されている。   A disk controller (DKC) 108 controls access to a storage device 112 such as a hard disk. The storage device 112 stores an update program for executing each function according to the present embodiment, an operating system, various applications, and the like. A protocol stack including SNMP and TCP / IP as a base thereof is also stored in the storage device 112 as a program file.

インタフェースコントローラ(I/F C)104は、LAN等の通信で実現される双方向インタフェース3を介してプリンタ2に接続され、プリンタ2とのデータ及びコマンドの通信処理を制御する。   An interface controller (I / FC) 104 is connected to the printer 2 via a bidirectional interface 3 realized by communication such as a LAN, and controls communication processing of data and commands with the printer 2.

プリンタ2は、コントローラ121とプリンタエンジン125と操作パネル124と不揮発性記憶装置138とを有し、双方向インタフェース3を介して、ホスト1と接続されている。不揮発性記憶装置138は、ハードディスク(HDD)122またはEEPROM123を含む。不揮発性記憶装置を不揮発性メモリと呼ぶこともある。   The printer 2 includes a controller 121, a printer engine 125, an operation panel 124, and a nonvolatile storage device 138, and is connected to the host 1 via the bidirectional interface 3. The non-volatile storage device 138 includes a hard disk (HDD) 122 or an EEPROM 123. The nonvolatile storage device may be called a nonvolatile memory.

コントローラ121は、CPU114、ROM115、RAM116、インタフェースコントローラ(I/F C)113、ディスクコントローラ(DKC)118、パネルインタフェース(I/F P)119、エンジンインタフェース(I/F E)120を含む。   The controller 121 includes a CPU 114, a ROM 115, a RAM 116, an interface controller (I / FC) 113, a disk controller (DKC) 118, a panel interface (I / FP) 119, and an engine interface (I / FE) 120.

CPU114はシステムバス117に接続される上記各構成要素を総括的に制御し、各種プログラムを実行する。ROM115は、ホスト1から印刷用画像データとコマンドを受信し、プリンタエンジン125を制御して最適な印刷を実現させるプログラムや各種データを記憶する。RAM116は、各種データや各種プログラムを一時的に記憶するワークエリアとして用いられる。SNMPやそのベースとなるTCP/IPなどを含むプロトコルもROM115に記憶されている。また、プリンタ2のデバイス情報等を含むMIB(管理情報ベース)は、ROM115やHDD122などの記憶ユニットのいずれかに格納されている。   The CPU 114 controls the components connected to the system bus 117 as a whole, and executes various programs. The ROM 115 receives print image data and commands from the host 1, and stores programs and various data for controlling the printer engine 125 to realize optimal printing. The RAM 116 is used as a work area for temporarily storing various data and various programs. Protocols including SNMP and its base TCP / IP are also stored in the ROM 115. The MIB (management information base) including the device information of the printer 2 and the like is stored in any of the storage units such as the ROM 115 and the HDD 122.

インタフェースコントローラ(I/F C)113は、双方向インタフェース3を介してホスト1に接続され、ホスト1とのデータとコマンドの通信処理を制御する。ハードディスク(HDD)122は、ホスト1からのデータ及びそのデータに関する付属情報など大容量のデータを記憶する。EEPROM123は、記録動作時に使用する記録装置独自の情報などを記憶する。ディスクコントローラ(DKC)118は、不揮発性記憶装置であるハードディスク122やEEPROM123とのアクセスを制御する。パネルインタフェース(I/F P)119は、操作パネル124への表示や操作パネル124からの入力を制御する。エンジンインタフェース(I/F E)120は、ハードウェアを直接制御して最適な記録を実現させるプリンタエンジン125を制御する。   The interface controller (I / FC) 113 is connected to the host 1 via the bidirectional interface 3, and controls data and command communication with the host 1. The hard disk (HDD) 122 stores a large amount of data such as data from the host 1 and information attached to the data. The EEPROM 123 stores information unique to the recording device used during the recording operation. A disk controller (DKC) 118 controls access to a hard disk 122 or an EEPROM 123 which is a nonvolatile storage device. A panel interface (I / F P) 119 controls display on the operation panel 124 and input from the operation panel 124. An engine interface (I / FE) 120 controls a printer engine 125 that directly controls hardware and realizes optimum printing.

プリンタエンジン125はインクジェット記録方法を用いたプリンタエンジンや、電子写真方式に従うプリンタエンジンなどを用いることができる。   As the printer engine 125, a printer engine using an ink jet recording method, a printer engine according to an electrophotographic system, or the like can be used.

[デバイス管理システム]
図2は、本実施形態のデバイス管理システムの検索機能の構成を示したブロック図である。ホストコンピュータの機能について説明する。アプリケーション201は、ホスト1で実行されるプログラムであり、双方向インターフェース3で接続されたデバイスの探索処理を実行する。
[Device Management System]
FIG. 2 is a block diagram illustrating a configuration of a search function of the device management system according to the present embodiment. The function of the host computer will be described. The application 201 is a program executed by the host 1, and executes a process of searching for a device connected by the bidirectional interface 3.

検索処理部202は、デバイスの検索処理を担う処理部であり、一括情報取得部203と個別情報取得部204と検索結果保存部205とを含む。一括情報取得部203は、複数のデバイスに対して、SNMPの探索用パケットを送信する送信処理と、各デバイスからの返信パケットを受信する処理を行う。複数デバイスに対する送信処理を、本実施形態ではブロードキャスト通信として記載するが、マルチキャストでもよい。   The search processing unit 202 is a processing unit that performs a device search process, and includes a collective information acquisition unit 203, an individual information acquisition unit 204, and a search result storage unit 205. The collective information acquisition unit 203 performs a transmission process of transmitting an SNMP search packet to a plurality of devices and a process of receiving a return packet from each device. Although the transmission processing for a plurality of devices is described as broadcast communication in the present embodiment, multicast processing may be used.

個別情報取得部204は、各デバイスに対してユニキャストで個別情報取得用パケットを送信する送信処理と、デバイスからの返信パケットを受信する処理を行う。   The individual information acquisition unit 204 performs a transmission process of transmitting an individual information acquisition packet to each device by unicast, and a process of receiving a reply packet from the device.

検索結果保存部は、一括情報取得部(あるいは一括取得部)203および個別情報取得部(あるいは個別取得部)204の取得エラー状態と、取得結果情報とを元に、検索結果リスト206に情報を保存する処理を行う。検索結果リスト206は、検索処理部202で検索した検索結果情報を検索結果リストとして保持するデータベースである。本実施形態の検索結果リスト206に保存する検索結果リストの詳細は、図4において説明する。   The search result storage unit stores information in the search result list 206 based on the acquisition error state of the collective information acquisition unit (or collective acquisition unit) 203 and the individual information acquisition unit (or individual acquisition unit) 204 and the acquisition result information. Perform save processing. The search result list 206 is a database that stores search result information searched by the search processing unit 202 as a search result list. Details of the search result list stored in the search result list 206 according to the present embodiment will be described with reference to FIG.

[取得処理手順]
図3は、本実施形態に従う各機能を実行する検索プログラム(ホスト1の記憶装置112に格納)の処理フローを示したフロー図である。図3の手順は、RAM102にロードされた検索プログラムをCPU101により実行することで実現される。
[Acquisition processing procedure]
FIG. 3 is a flowchart illustrating a processing flow of a search program (stored in the storage device 112 of the host 1) that executes each function according to the present embodiment. The procedure in FIG. 3 is realized by the CPU 101 executing the search program loaded in the RAM 102.

アプリケーション201の検索処理部202が実行されると、初めに、ホスト1から双方向インタフェース3に対してブロードキャストで探索用SNMPパケットを送信する(301)。探索用パケットはデバイスの設定やデバイスの有する機能に依存せず受信可能な情報(これを共通情報或いはデバイス非依存情報と呼ぶ)を要求するため、例えばGetRequestを用いる。本実施形態では、図4のMacアドレス401、SerialNumber402、機種名403等のデバイスを識別するための情報が探索用パケットのブロードキャストで取得するデバイス非依存情報とする。このように、複数の種類のデバイス非依存情報を一括して要求する。このとき、複数の種類のデバイス非依存情報を要求すべく複数オブジェクト指定パケットを用いる。探索用パケットを受信したデバイスは、それに応じてResponseパケットを応答する。   When the search processing unit 202 of the application 201 is executed, first, the host 1 transmits a search SNMP packet to the bidirectional interface 3 by broadcast (301). The search packet uses, for example, GetRequest in order to request information that can be received without depending on the device setting or the function of the device (this is called common information or device-independent information). In the present embodiment, information for identifying a device such as the Mac address 401, the SerialNumber 402, and the model name 403 in FIG. 4 is device-independent information acquired by broadcasting a search packet. In this way, a plurality of types of device-independent information are requested collectively. At this time, a plurality of object designation packets are used to request a plurality of types of device-independent information. The device that has received the search packet responds with a Response packet accordingly.

探索用パケット送信後、あらかじめ定められた制限時間に達するまでの間、以降の処理を継続する(302)。すなわち、宛先デバイスからの返信パケット(Response)を待機し、返信パケットを受信するとステップ304〜ステップ311の処理を実行し、終了したなら、ステップ303で次の返信パケットの受信を待機する。この時点で受信済みの返信パケットがあれば、そのパケットを対象として直ちにステップ304以降の処理を行えばよい。制限時間内に応答を返したデバイスが、探索により発見(特定)されたデバイスとなる。   After transmitting the search packet, the subsequent processing is continued until a predetermined time limit is reached (302). In other words, it waits for a reply packet (Response) from the destination device, and upon receiving the reply packet, executes the processing of steps 304 to 311, and when it is completed, waits for the reception of the next reply packet in step 303. If there is a reply packet that has been received at this point, the process from step 304 onward should be performed immediately on the packet. The device that returns a response within the time limit is the device found (specified) by the search.

ステップ301で探索用SNMPパケットを送信した後、各デバイスからの返信パケットを受信する受信処理を行う(303)。デバイスからのパケットを受信した場合、受信パケットのエラーコードがnoError(エラーなし)かを判別する(304)。noErrorでない場合は、取得結果リスト206には追加せず、そのデバイスからの返信パケットに関する処理を終了して次のデバイス(本実施形態ではプリンタ)からの受信処理を継続する。   After transmitting the search SNMP packet in step 301, a reception process of receiving a reply packet from each device is performed (303). When a packet is received from the device, it is determined whether the error code of the received packet is noError (no error) (304). If it is not noError, the process is not added to the acquisition result list 206, the process regarding the return packet from the device is terminated, and the process of receiving from the next device (printer in the present embodiment) is continued.

探索パケットに対するプリンタからの返信がnoErrorの場合には、取得した情報を取得結果リストに追加し、変数iを0で初期化してステップ306から311の処理を継続する。受信した応答には、要求に応じて複数の種類のデバイス情報を含む場合がある。取得した情報は例えば、返信パケットの送信元デバイスのデバイスIDと関連付けて、情報の種類別に検索結果リスト206に登録される。   If the reply from the printer to the search packet is noError, the acquired information is added to the acquisition result list, the variable i is initialized to 0, and the processing of steps 306 to 311 is continued. The received response may include a plurality of types of device information according to the request. The acquired information is registered in the search result list 206 for each type of information in association with, for example, the device ID of the source device of the reply packet.

ステップ306から311の処理では、デバイスの設定やデバイスの有する機能に依存して受信可否が変わる情報を、属性毎に取得パケットをユニキャストで送信し、情報取得を行う。デバイスの設定やデバイスの有する機能に依存して受信可否が変わる情報とは、たとえばデバイスがその構成や設定に応じて有する情報などであり、個別情報或いはデバイス依存情報とも呼ぶ。本実施形態では図4のBonjour名404、DeviceID405が個別情報取得時に取得するデバイス依存情報となる。Bonjour名404は、Bonjour機能(IPアドレスとホスト名の割り当てやサービスの自動探索等の機能)が、プリンタ側で機能OFF状態になっている場合には、個別情報の取得要求に対する応答ができず、エラーとなる可能性がある。DeviceIDは、デバイスの有する機能によっては、取得不可となる可能性がある。例えば、Scan機能に関するDeviceID情報はScan機能を有するデバイスでは取得可能であるが、それ以外のデバイスでは取得できず、取得要求は失敗する。このように、デバイス依存情報は、取得できないことがある。   In the processing of Steps 306 to 311, information whose reception is changed depending on the device settings and the functions of the device is transmitted by unicasting an acquisition packet for each attribute to acquire information. The information whose reception is changed depending on the setting of the device or the function of the device is, for example, information that the device has according to the configuration or the setting, and is also referred to as individual information or device-dependent information. In the present embodiment, the Bonjour name 404 and DeviceID 405 in FIG. 4 are device-dependent information to be acquired when acquiring individual information. The Bonjour name 404 cannot respond to the individual information acquisition request when the Bonjour function (functions such as assignment of IP address and host name and automatic search for services) is turned off on the printer side. , May result in an error. The DeviceID may not be able to be obtained depending on the function of the device. For example, DeviceID information regarding the Scan function can be acquired by a device having the Scan function, but cannot be acquired by other devices, and the acquisition request fails. Thus, device-dependent information may not be obtained in some cases.

情報取得を行う対象の属性分、ステップ307から310の処理を繰り返し、全ての属性についてステップ307〜310が終了したなら当該デバイスについての処理を終了する(306)。個別情報取得では、単一の情報取得のための要求パケットを、属性毎にユニキャストで送信する(307)。このステップにおける要求パケットの宛先(送信先)は、ステップ303で受信した返信パケットの送信元のデバイスである。このとき、単一の種類のデバイス情報を要求すべく単一オブジェクト指定パケットを用いる。本実施形態では、Bonjour名と、DeviceIDとをそれぞれ独立した要求パケット(すなわち個別情報取得パケット)で要求する。その後、個別情報取得パケットそれぞれに対するデバイスからの返信パケットを受信する(308)。返信パケットの受信後、受信した返信パケットの解析を行い、noError(エラーなし)かどうかを判定する(309)。受信パケットがnoErrorでない場合は、次の属性の取得に進む(311)。受信パケットがnoErrorの場合には、取得した情報を取得結果リスト206に追加し(310)、次の属性の取得に進む(311)。このとき、ステップ308で取得(受信)した情報は、ステップ303で取得(受信)した情報に対応するものであるため、ステップ303で取得(受信)した情報と対応付けて保存する。   The processes of steps 307 to 310 are repeated for the attributes for which information is to be obtained, and when steps 307 to 310 are completed for all the attributes, the process for the device ends (306). In the individual information acquisition, a request packet for acquiring a single information is transmitted by unicast for each attribute (307). The destination (transmission destination) of the request packet in this step is the transmission source device of the reply packet received in step 303. At this time, a single object designation packet is used to request a single type of device information. In the present embodiment, the Bonjour name and the DeviceID are requested by independent request packets (that is, individual information acquisition packets). Thereafter, a reply packet from the device for each individual information acquisition packet is received (308). After receiving the reply packet, the received reply packet is analyzed to determine whether there is noError (no error) (309). If the received packet is not noError, the process proceeds to the acquisition of the next attribute (311). If the received packet is noError, the acquired information is added to the acquisition result list 206 (310), and the process proceeds to the acquisition of the next attribute (311). At this time, since the information obtained (received) in step 308 corresponds to the information obtained (received) in step 303, the information is stored in association with the information obtained (received) in step 303.

図4は、取得結果リスト206に格納した検索結果情報の一例を示す図である。デバイス毎のMacアドレス401、SerialNumber402、機種名403は、本実施形態ではステップ303の処理にて取得し、ステップ305で登録する情報であり、デバイスの設定に依存せず取得可能な情報である。Bonjour名404、DeviceID405は、本実施形態のステップ308の処理にて取得し、ステップ310で登録する情報であり、デバイスの設定あるいはデバイスの有する機能によっては取得可否が変わる情報である。図4において、Macアドレス"000085AABBCC"を持つプリンタは、すべての情報が取得できているデバイスの一例である。Macアドレス"000085DDEEFF"を持つプリンタは、個別情報取得パケットに関しては、Bonjour名404及びDeviceID405の両方とも取得エラーとなったデバイスの一例である。なお、個別情報は情報の種類ごとに独立して要求しているので、このいずれか一方のみ取得に成功している場合もあり得る。このように、本実施形態では、個別情報が取得できない場合も、デバイス非依存情報を取得して、デバイス探索の結果を得ることができる。   FIG. 4 is a diagram illustrating an example of the search result information stored in the acquisition result list 206. In this embodiment, the Mac address 401, SerialNumber 402, and model name 403 of each device are information acquired in the process of step 303 and registered in step 305, and are information that can be acquired without depending on the device settings. The Bonjour name 404 and the DeviceID 405 are information acquired in the process of step 308 of the present embodiment and registered in step 310, and are information whose availability is changed depending on device settings or functions of the device. In FIG. 4, the printer having the Mac address “000085AABBCC” is an example of a device from which all information can be obtained. The printer having the Mac address “000085DDEEFF” is an example of a device in which both the Bonjour name 404 and the DeviceID 405 have failed to acquire the individual information acquisition packet. Since the individual information is requested independently for each type of information, there is a possibility that only one of them is successfully obtained. As described above, in the present embodiment, even when individual information cannot be obtained, device-independent information can be obtained and a device search result can be obtained.

また、本実施形態では、デバイス非依存情報とデバイス依存情報を予め決めておくものとしたが、これに限定されるものではない。たとえば、デバイス依存情報またはデバイス非依存情報の一方のみを予め決めておき、その他の情報を他方の情報として扱うように決めてもよい。また、MIBは木構造を有することから、所定のノード以下の情報をデバイス非依存情報あるいはデバイス依存情報と定めてもよい。いずれにしても、デバイス非依存情報およびデバイス依存情報は、図3の手順の実行に先立って決定されており(すなわち所定されており)、たとえば記憶装置112などにその区別を示す情報が格納されている。そしてデバイスに対して情報を要求する場合には、そのデバイス依存情報とデバイス非依存情報との区別を示す情報が参照され、ステップ301及びステップ307それぞれの工程に応じた情報を要求するためのパケットが送信される。   In the present embodiment, the device-independent information and the device-dependent information are determined in advance, but the present invention is not limited to this. For example, only one of the device-dependent information and the device-independent information may be determined in advance, and the other information may be determined as the other information. Further, since the MIB has a tree structure, information below a predetermined node may be defined as device-independent information or device-dependent information. In any case, the device-independent information and the device-dependent information are determined (that is, predetermined) before the execution of the procedure in FIG. 3, and information indicating the distinction is stored in, for example, the storage device 112. ing. When requesting information from the device, information indicating the distinction between the device-dependent information and the device-independent information is referred to, and a packet for requesting information corresponding to each of the steps 301 and 307 is referred to. Is sent.

以上の手順では受信に失敗したデバイス情報は、次回の収集まで更新されることはないが、これに限定されず、受信に失敗したデバイス情報に関して所定回数の要求の再送信を試みてもよい。タイムアウトの場合にはデバイスの電源が切られていたり、通信が切断されている可能性があるので、再送信を試みる場合には所定時間経過後に行うのが望ましい。   In the above procedure, the device information that has failed to be received is not updated until the next collection. However, the present invention is not limited to this. For example, the device information that has failed to be received may be retransmitted a predetermined number of times. In the case of a timeout, there is a possibility that the power of the device has been turned off or the communication has been cut off. Therefore, it is desirable to perform retransmission after a predetermined time has elapsed.

また、上述した実施形態では、デバイス依存情報を個別に取得するものとしたが、これに限定されず、デバイス依存情報を一括で取得するようにしてもよい。すなわち、デバイス依存情報についても複数種類の情報を一括で取得するようにしてもよい。 本実施形態では、デバイスの設定やデバイスの有する機能に依存せず返信可能と想定される情報の取得処理と、デバイスの設定またはデバイスが有する機能またはその両方に依存して返信可否が変わると想定される情報の取得処理とを分離して行う。そして、少なくともデバイスの設定やデバイスの有する機能に依存しない非依存情報に基づいて、管理対象のデバイスの検索(特定)をすることができる。このように、本実施形態では、デバイス依存情報の取得結果に関わらず、デバイス非依存情報を取得することができ、デバイスの検索が失敗するのを抑制することができる。また、デバイス非依存情報とデバイス依存情報の返信結果を組み合わせて検索結果とすることで、通信トラフィックを抑えかつ、探索時に複数情報の取得を行うことが可能である。   Further, in the above-described embodiment, the device-dependent information is obtained individually. However, the present invention is not limited to this, and the device-dependent information may be obtained collectively. That is, a plurality of types of information may also be acquired collectively for the device-dependent information. In the present embodiment, it is assumed that the process of acquiring information which is assumed to be able to return without depending on the device setting or the function of the device, and whether or not the reply is possible depends on the device setting or the function of the device or both. The information acquisition process to be performed is performed separately. Then, a device to be managed can be searched (specified) based on at least device-independent information that does not depend on device settings or device functions. As described above, in the present embodiment, device-independent information can be acquired irrespective of the acquisition result of device-dependent information, and a failure in device search can be suppressed. In addition, by combining the device-independent information and the return result of the device-dependent information as a search result, it is possible to suppress communication traffic and to acquire a plurality of pieces of information during a search.

なお、SNMPプロトコルでデバイスの探索を行う際に、複数の情報を1つ1つ取得する場合、デバイスと複数回の通信を行う必要があるため、処理時間が長くなり、また、通信トラフィックが大きくなってしまう。これに対し、本実施形態では、SNMPプロトコルでデバイスの探索を行う際に、デバイス依存情報は一括で取得する。これにより、通信トラフィックへ与える影響を軽減した上で、デバイス探索をし、複数の属性情報の取得をすることができる。   Note that when searching for a device using the SNMP protocol, when acquiring a plurality of pieces of information one by one, it is necessary to perform communication with the device a plurality of times, which increases the processing time and increases communication traffic. turn into. On the other hand, in the present embodiment, when searching for a device by the SNMP protocol, the device-dependent information is acquired collectively. This makes it possible to perform device search and acquire a plurality of pieces of attribute information while reducing the influence on communication traffic.

[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other Embodiments]
The present invention supplies a program for realizing one or more functions of the above-described embodiments to a system or an apparatus via a network or a storage medium, and one or more processors in a computer of the system or the apparatus read and execute the program. This processing can be realized. Further, it can also be realized by a circuit (for example, an ASIC) that realizes one or more functions.

1 ホストコンピュータ、2 プリンタ、202 検索処理部、203 一括情報取得部、204 個別情報取得部、205 検索結果保存部、206 検索結果リスト 1 host computer, 2 printer, 202 search processing section, 203 batch information acquisition section, 204 individual information acquisition section, 205 search result storage section, 206 search result list

上記目的を達成するために本発明に係る情報処理装置は、SNMP(Simple Network Management Protocol)を用いて、第1情報と前記第1情報とは種類が異なる第2情報とを含む複数の種類の情報を要求するための探索パケットを送信し、前記探索パケットを受信したデバイスから送信される返信パケットに含まれる前記複数の種類の情報を取得する第1取得手段と、
前記SNMPを用いて、前記第1取得手段により取得される前記複数の種類の情報のいずれとも異なる種類の第3情報を要求するための要求パケットを、前記探索パケットに基づく返信パケットを送信した前記デバイスに対して送信し、前記要求パケットを受信した前記デバイスから送信される返信パケットに含まれる前記第3情報を取得する第2取得手段と、
前記第1取得手段及び前記第2取得手段により取得された情報を格納手段に格納する制御手段と、
を備え、
前記第3情報は、前記デバイスの特定機能に関連する情報であり、前記デバイスにおいて前記特定機能の設定がオフ状態の場合、前記第2取得手段が前記要求パケットを送信しても前記第3情報は前記デバイスから送信されないことを特徴とする
In order to achieve the above object, an information processing apparatus according to the present invention uses SNMP (Simple Network Management Protocol) to provide a plurality of types of information including first information and second information different in type from the first information. A first acquisition unit that transmits a search packet for requesting information and obtains the plurality of types of information included in a reply packet transmitted from a device that has received the search packet;
Using the SNMP, a request packet for requesting a third type of information different from any of the plurality of types of information obtained by the first obtaining unit, a reply packet based on the search packet is transmitted. A second acquisition unit that transmits to a device and acquires the third information included in a reply packet transmitted from the device that has received the request packet;
Control means for storing information acquired by the first acquisition means and the second acquisition means in a storage means;
With
The third information is information related to a specific function of the device, and when the setting of the specific function is off in the device, the third information is transmitted even if the second acquisition unit transmits the request packet. Is not transmitted from the device .

Claims (13)

デバイスの設定或いはデバイスの有する機能に関わらない情報である第1のデバイス情報を一括でデバイスから取得する第1取得手段と、
デバイスの設定或いはデバイスの有する機能に応じた情報である第2のデバイス情報をデバイスから取得する第2取得手段と、
前記第1取得手段により取得した第1のデバイス情報及び前記第2取得手段により取得した第2のデバイス情報を格納する格納手段と、
前記第1取得手段により取得した第1デバイス情報に基づいて、通信で接続されたデバイスを特定する特定手段と、
を有することを特徴とする情報処理装置。
First acquisition means for collectively acquiring, from the device, first device information, which is information irrespective of device settings or device functions,
Second acquisition means for acquiring, from the device, second device information that is information corresponding to device settings or functions of the device;
Storage means for storing the first device information obtained by the first obtaining means and the second device information obtained by the second obtaining means;
Specifying means for specifying a device connected by communication based on the first device information obtained by the first obtaining means;
An information processing apparatus comprising:
前記第2取得手段は、前記第1取得手段により第1のデバイス情報を取得した後に、取得した第1のデバイス情報に対応する第2のデバイス情報を取得することを特徴とする請求項1に記載の情報処理装置。   2. The method according to claim 1, wherein the second acquisition unit acquires second device information corresponding to the acquired first device information after acquiring the first device information by the first acquisition unit. An information processing apparatus according to claim 1. 前記第2取得手段は、前記第2のデバイス情報を情報の種類ごとに個別に取得することを特徴とする請求項1又は2に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the second acquisition unit acquires the second device information individually for each type of information. 前記第1取得手段および前記第2取得手段は、SNMPプロトコルを用いて前記デバイスに前記第1および第2のデバイス情報をそれぞれ要求し、前記デバイスからの応答として前記第1および第2のデバイス情報をそれぞれ受信することを特徴とする請求項1乃至3のいずれか一項に記載の情報処理装置。   The first acquisition unit and the second acquisition unit request the first and second device information from the device using an SNMP protocol, respectively, and receive the first and second device information as a response from the device. The information processing apparatus according to any one of claims 1 to 3, wherein the information processing apparatus receives the information. 前記第1取得手段は、前記第1のデバイス情報をSNMPプロトコルの複数オブジェクト指定パケットで一括して要求することを特徴とする請求項4に記載の情報処理装置。   5. The information processing apparatus according to claim 4, wherein the first acquisition unit requests the first device information collectively by using a plurality of object specification packets of an SNMP protocol. 6. 前記第2取得手段は、前記第2のデバイス情報の要求をユニキャストで各デバイスから情報取得することを特徴とする請求項4又は5に記載の情報処理装置。   The information processing apparatus according to claim 4, wherein the second acquisition unit acquires the request for the second device information from each device by unicast. 前記第2取得手段は、前記第2のデバイス情報をSNMPプロトコルの単一オブジェクト指定パケットで情報の種類ごとに要求することを特徴とする請求項4乃至6のいずれか一項に記載の情報処理装置。   7. The information processing apparatus according to claim 4, wherein the second acquisition unit requests the second device information for each type of information using a single object designation packet of an SNMP protocol. 8. apparatus. 前記第1取得手段は、前記第1のデバイス情報として複数の種類のデバイス情報を一括して取得し、
前記格納手段には、前記第1取得手段により一括して取得した前記複数の種類のデバイス情報を格納することを特徴とする請求項1乃至7のいずれか一項に記載の情報処理装置。
The first obtaining unit collectively obtains a plurality of types of device information as the first device information,
The information processing apparatus according to claim 1, wherein the storage unit stores the plurality of types of device information acquired collectively by the first acquisition unit.
前記第2取得手段は、前記第1取得手段による前記第1のデバイス情報の要求に応じて所定の制限時間に応答を返したデバイスを対象として、前記第2のデバイス情報を要求することを特徴とする請求項1乃至8のいずれか一項に記載の情報処理装置。   The second acquisition unit requests the second device information for a device that has returned a response within a predetermined time limit in response to a request for the first device information by the first acquisition unit. The information processing apparatus according to claim 1. 前記第1取得手段は、前記第1のデバイス情報の要求を、ブロードキャストまたはマルチキャストで送信することを特徴とする請求項1乃至9のいずれか一項に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the first acquisition unit transmits the request for the first device information by broadcast or multicast. 前記デバイスはプリンタ機能を有するデバイスであることを特徴とする請求項1乃至10のいずれか一項に記載の情報処理装置。   The information processing apparatus according to any one of claims 1 to 10, wherein the device is a device having a printer function. デバイスの設定或いはデバイスの有する機能に関わらない情報である第1のデバイス情報を一括でデバイスから取得する第1取得工程と、
デバイスの設定或いはデバイスの有する機能に応じた情報である第2のデバイス情報を取得する第2取得工程と、
前記1取得工程と前記2取得工程とにより取得した前記第1および第2のデバイス情報を格納手段に格納する工程と、
前記第1取得工程において取得した第1デバイス情報に基づいて、通信で接続されたデバイスを特定する特定工程と、
を有することを特徴とする情報処理方法。
A first acquisition step of collectively acquiring, from the device, first device information that is information irrelevant to device settings or functions of the device;
A second acquisition step of acquiring second device information that is information according to device settings or functions of the device;
Storing the first and second device information obtained in the first obtaining step and the second obtaining step in a storage unit;
A specifying step of specifying a device connected by communication based on the first device information obtained in the first obtaining step;
An information processing method comprising:
請求項1乃至11のいずれか一項に記載の情報処理装置としてコンピュータを機能させるためのプログラム。   A program for causing a computer to function as the information processing device according to claim 1.
JP2019191153A 2019-10-18 2019-10-18 Information processing equipment, information processing methods, and programs Active JP6818108B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019191153A JP6818108B2 (en) 2019-10-18 2019-10-18 Information processing equipment, information processing methods, and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019191153A JP6818108B2 (en) 2019-10-18 2019-10-18 Information processing equipment, information processing methods, and programs

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015110806A Division JP6606355B2 (en) 2015-05-29 2015-05-29 Information processing apparatus, information processing method, and program

Publications (2)

Publication Number Publication Date
JP2020017312A true JP2020017312A (en) 2020-01-30
JP6818108B2 JP6818108B2 (en) 2021-01-20

Family

ID=69581541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019191153A Active JP6818108B2 (en) 2019-10-18 2019-10-18 Information processing equipment, information processing methods, and programs

Country Status (1)

Country Link
JP (1) JP6818108B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009230666A (en) * 2008-03-25 2009-10-08 Brother Ind Ltd Apparatus and program for managing device in network
JP2011142577A (en) * 2010-01-08 2011-07-21 Ricoh Co Ltd Power saving control method, and image forming apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009230666A (en) * 2008-03-25 2009-10-08 Brother Ind Ltd Apparatus and program for managing device in network
JP2011142577A (en) * 2010-01-08 2011-07-21 Ricoh Co Ltd Power saving control method, and image forming apparatus

Also Published As

Publication number Publication date
JP6818108B2 (en) 2021-01-20

Similar Documents

Publication Publication Date Title
US7747779B2 (en) Information processing apparatus, information processing method, and medium storing therein program for executing the method
US9083671B2 (en) Image forming apparatus, method for controlling the same, and storage medium
US10802779B2 (en) Print processing system and method having print server converts document data into print data and to store the print data into plural storage servers for printing at image processing apparatus
US10896011B2 (en) Mobile device for automatically delivering print jobs to printers
US7899054B2 (en) Management device and program
US8676967B2 (en) Event proxy notification apparatus and method of controlling the same and program
US8738728B2 (en) Information processing apparatus that identifies transmission source, and control method and storage medium therefor
US20220391156A1 (en) Server, control method, storage medium, and printing system
US20100332681A1 (en) Communication apparatus capable of selecting a proper source address from a plurality of source addresses assigned thereto, method of controlling the same, and storage medium
US11240094B2 (en) Information processing apparatus, information processing method, and computer-readable medium
US8760703B2 (en) Job control system and job control method
US9294637B2 (en) Registering and using a plurality of functions of a plurality of image forming apparatuses
JP6818108B2 (en) Information processing equipment, information processing methods, and programs
US11556294B1 (en) Methods and printing system for peer-to-peer output management
US8326952B2 (en) Parameter setting system, device and parameter setting program
US11360727B2 (en) Non-transitory computer-readable medium, terminal management apparatus and terminal management system configured to transmit a received instruction to a relay apparatus without being divided
JP2009015716A (en) Image forming apparatus by multiple ip addresses
JP2007174201A (en) Information processor, and communication method and program
US7680896B2 (en) Obtaining or sending information to a device on a network by a client apparatus
US20040223179A1 (en) Network printing mode automation
US20240118847A1 (en) Information processing apparatus, control method thereof, and medium and printing system thereof
US11416190B2 (en) Information processing apparatus, control method, and non-transitory computer-readable storage medium storing program
US10652424B2 (en) Communication apparatus, communication method, and nontransitory computer readable storage medium that resends data when no response is received and records the result
US20230221910A1 (en) Methods and printing system for peer-to-peer output management
US20230221909A1 (en) Methods and printing system for peer-to-peer output management

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191115

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200824

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200904

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201104

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: 20201127

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201225

R151 Written notification of patent or utility model registration

Ref document number: 6818108

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151