JP2024018411A - Computer program for terminal device and terminal device - Google Patents
Computer program for terminal device and terminal device Download PDFInfo
- Publication number
- JP2024018411A JP2024018411A JP2022121742A JP2022121742A JP2024018411A JP 2024018411 A JP2024018411 A JP 2024018411A JP 2022121742 A JP2022121742 A JP 2022121742A JP 2022121742 A JP2022121742 A JP 2022121742A JP 2024018411 A JP2024018411 A JP 2024018411A
- Authority
- JP
- Japan
- Prior art keywords
- command
- protocol
- communication device
- information
- 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.)
- Pending
Links
- 238000004590 computer program Methods 0.000 title claims description 52
- 238000004891 communication Methods 0.000 claims abstract description 189
- 230000004044 response Effects 0.000 claims description 73
- 230000005540 biological transmission Effects 0.000 claims description 30
- 230000006870 function Effects 0.000 claims description 19
- 238000012546 transfer Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000000034 method Methods 0.000 description 42
- 238000012545 processing Methods 0.000 description 18
- 238000012986 modification Methods 0.000 description 16
- 230000004048 modification Effects 0.000 description 16
- 230000001419 dependent effect Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000000052 comparative effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000007639 printing Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 1
Images
Abstract
【課題】端末装置が適切なプロトコルを利用して通信装置との通信を実行可能な技術を提供する。【解決手段】端末装置は、第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に設定コマンドを送信するための第1の設定指示が取得される場合に、第1のプロトコルに従った第1の設定コマンドを第1の通信装置に送信する。端末装置は、第1のプロトコルと第2のプロトコルとをサポートしている第2の通信装置に設定コマンドを送信するための第2の設定指示が取得される場合に、第2のプロトコルに従った第2の設定コマンドを第2の通信装置に送信する。【選択図】図3The present invention provides a technology that allows a terminal device to communicate with a communication device using an appropriate protocol. A case in which a terminal device obtains a first configuration instruction for transmitting a configuration command to a first communication device that supports a first protocol and does not support a second protocol. Then, a first setting command according to a first protocol is transmitted to the first communication device. The terminal device follows the second protocol when a second configuration instruction is obtained for sending a configuration command to a second communication device that supports the first protocol and the second protocol. and transmitting a second setting command to the second communication device. [Selection diagram] Figure 3
Description
本明細書は、OID(Object IDの略)と設定値とが関連付けられている管理情報を記憶する通信装置との通信を実行する端末装置に関する技術を開示する。 This specification discloses a technology related to a terminal device that performs communication with a communication device that stores management information in which an OID (abbreviation for Object ID) and a setting value are associated.
特許文献1には、SNMP(Simple Network Management Protocolの略)に従ってデバイスを管理する管理装置が開示されている。 Patent Document 1 discloses a management device that manages devices according to SNMP (abbreviation for Simple Network Management Protocol).
本明細書では、端末装置が適切なプロトコルを利用して通信装置との通信を実行可能な技術を提供する。 This specification provides a technology that allows a terminal device to communicate with a communication device using an appropriate protocol.
本明細書は、端末装置のためのコンピュータプログラムを開示する。前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に設定コマンドを送信するための第1の設定指示が取得される場合に、前記第1のプロトコルに従った第1の設定コマンドを前記第1の通信装置に送信する第1の設定コマンド送信部であって、前記第1の設定コマンドは、MIB(Management Information Baseの略)の第1のOID(Object IDの略)と、第1の設定値と、を含み、前記第1の設定コマンドは、前記第1のOIDに関連付けて前記第1の設定値を前記第1の通信装置の第1の管理情報に書き込むことを要求するコマンドである、前記第1の設定コマンド送信部と、前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に設定コマンドを送信するための第2の設定指示が取得される場合に、前記第2のプロトコルに従った第2の設定コマンドを前記第2の通信装置に送信する第2の設定コマンド送信部であって、前記第2の設定コマンドは、前記MIBの第2のOIDと、第2の設定値と、を含み、前記第2の設定コマンドは、前記第2のOIDに関連付けて前記第2の設定値を前記第2の通信装置の第2の管理情報に書き込むことを要求するコマンドである、前記第2の設定コマンド送信部と、として機能させてもよい。 This specification discloses a computer program for a terminal device. The computer program causes the computer of the terminal device to send a configuration command to the following units: a first communication device that supports a first protocol and does not support a second protocol; a first setting command transmitter that transmits a first setting command according to the first protocol to the first communication device when a first setting instruction is acquired; The setting command includes a first OID (abbreviation of Object ID) of MIB (abbreviation of Management Information Base) and a first setting value, and the first setting command is associated with the first OID. the first setting command transmitter, which is a command requesting to write the first setting value in the first management information of the first communication device; A second configuration command according to the second protocol is transmitted to the second communication device when a second configuration instruction is obtained for transmitting a configuration command to a second communication device that supports the second communication protocol. a second setting command transmitter that transmits to a communication device, the second setting command including a second OID of the MIB and a second setting value; , functions as the second setting command transmitter, which is a command requesting writing the second setting value in the second management information of the second communication device in association with the second OID. You may let them.
上記の構成によると、端末装置は、第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置には、第1のプロトコルに従った第1の設定コマンドを送信し、第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしている第2の通信装置には、第2のプロトコルに従った第2の設定コマンドを送信する。従って、端末装置は、適切なプロトコルを利用して、設定コマンドを通信装置に送信することができる。 According to the above configuration, the terminal device sends the first setting command according to the first protocol to the first communication device that supports the first protocol and does not support the second protocol. and transmits a second configuration command according to the second protocol to a second communication device that supports the first protocol and also supports the second protocol. Therefore, the terminal device can send the configuration command to the communication device using an appropriate protocol.
また、本明細書は、端末装置のためのコンピュータプログラムを開示する。前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に取得コマンドを送信するための第1の取得指示が取得される場合に、前記第1のプロトコルに従った第1の取得コマンドを前記第1の通信装置に送信する第1の取得コマンド送信部であって、前記第1の取得コマンドは、MIB(Management Information Baseの略)の第3のOID(Object IDの略)を含み、前記第1の取得コマンドは、前記第1の通信装置の第1の管理情報において前記第3のOIDに関連付けられている第3の設定値の送信を要求するコマンドである、前記第1の取得コマンド送信部と、前記第1の取得コマンドが前記第1の通信装置に送信される場合に、前記第1の通信装置から、前記第3の設定値を含む第1の応答コマンドを受信する第1の応答コマンド受信部と、前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に取得コマンドを送信するための第2の取得指示が取得される場合に、前記第2のプロトコルに従った第2の取得コマンドを前記第2の通信装置に送信する第2の取得コマンド送信部であって、前記第2の取得コマンドは、前記MIBの第4のOIDを含み、前記第2の取得コマンドは、前記第2の通信装置の第2の管理情報において前記第4のOIDに関連付けられている第4の設定値の送信を要求するコマンドである、前記第2の取得コマンド送信部と、前記第2の取得コマンドが前記第2の通信装置に送信される場合に、前記第2の通信装置から、前記第4の設定値を含む第2の応答コマンドを受信する第2の応答コマンド受信部と、として機能させてもよい。 This specification also discloses a computer program for a terminal device. The computer program causes the computer of the terminal device to send an acquisition command to the following units: a first communication device that supports a first protocol and does not support a second protocol; a first acquisition command transmitter that transmits a first acquisition command according to the first protocol to the first communication device when the first acquisition instruction is acquired; The acquisition command includes a third OID (abbreviation for Object ID) of MIB (abbreviation for Management Information Base), and the first acquisition command includes the third OID (abbreviation for Object ID) in the first management information of the first communication device. the first acquisition command transmitter, which is a command requesting transmission of a third setting value associated with an OID; and when the first acquisition command is transmitted to the first communication device; , a first response command receiving unit that receives a first response command including the third setting value from the first communication device, and supports the first protocol and the second protocol. a second acquisition instruction for transmitting an acquisition command to a second communication device that is connected to the second communication device; 2, wherein the second acquisition command includes a fourth OID of the MIB, and the second acquisition command includes the fourth OID of the MIB, and the second acquisition command includes the fourth OID of the second management information of the second communication device. The second acquisition command transmitting unit, which is a command requesting transmission of a fourth setting value associated with a fourth OID, and the second acquisition command are transmitted to the second communication device. In this case, the communication device may function as a second response command receiving unit that receives a second response command including the fourth setting value from the second communication device.
上記の構成によると、端末装置は、第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置には、第1のプロトコルに従った第1の取得コマンドを送信し、第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしている第2の通信装置には、第2のプロトコルに従った第2の取得コマンドを送信する。従って、端末装置は、適切なプロトコルを利用して、取得コマンドを通信装置に送信することができる。 According to the above configuration, the terminal device sends the first acquisition command according to the first protocol to the first communication device that supports the first protocol and does not support the second protocol. and transmits a second acquisition command according to the second protocol to a second communication device that supports the first protocol and also supports the second protocol. Therefore, the terminal device can send the acquisition command to the communication device using an appropriate protocol.
上記のコンピュータプログラムを記憶するコンピュータ可読記憶媒体、及び、端末装置そのものも、新規で有用である。また、端末装置によって実行される方法も、新規で有用である。また、上記の端末装置と第1の通信装置と第2の通信装置とを備える通信システムも、新規で有用である。 The computer readable storage medium that stores the above computer program and the terminal device itself are also new and useful. Also, the method performed by the terminal device is novel and useful. Further, a communication system including the above-mentioned terminal device, first communication device, and second communication device is also new and useful.
(通信システム2の構成;図1)
図1に示されるように、通信システム2は、プリンタ10A、10Bと端末装置100とを備える。各デバイス10A、10B、100は、LAN(Local Area Networkの略)6に接続されており、LAN6を介して相互に通信可能である。LAN6は、有線LANであってもよいし無線LANであってもよい。本実施例では、プリンタ10A、10Bが、端末装置100からの要求コマンド(即ち後述のSETコマンド、POSTコマンド、又は、GETコマンド)に応じて、設定値を書き込んだり送信したりすることを実現する。
(Configuration of communication system 2; Figure 1)
As shown in FIG. 1, the communication system 2 includes
(プリンタ10A、10Bの構成)
各プリンタ10A、10Bは、印刷機能を実行可能な周辺装置(例えば端末装置100の周辺装置)である。変形例では、各プリンタ10A、10Bは、印刷機能に加えて、スキャン機能、FAX機能等を実行可能な多機能機であってもよい。
(Configuration of
Each
プリンタ10Aは、SNMP(Simple Network Management Protocolの略)をサポートしていると共にHTTPS(Hyper Text Transfer Protocol Secureの略)をサポートしていない。SNMP及びHTTPSについては後で詳しく説明する。
The
プリンタ10Aは、不揮発性メモリ34Aと揮発性メモリ36Aとを備える。不揮発性メモリ34Aは、プリンタ10Aの電源がOFFされても、記憶済みの情報が消去されないメモリである。不揮発性メモリ34Aは、第1管理テーブル38Aを記憶する。揮発性メモリ36Aは、プリンタ10Aの電源がOFFされると、記憶済みの情報が消去されるメモリである。揮発性メモリ36Aは、プリンタ10Aが処理を実行する過程で必要な情報を一時的に記憶する。
The
プリンタ10Bは、SNMPをサポートしていると共にHTTPSをサポートしている。プリンタ10Bは、第2管理テーブル38Bが記憶されている不揮発性メモリ34Bと、揮発性メモリ36Bと、を備える。以下では、プリンタ10A、10Bを総称して、「プリンタ10」と記載することがある。
The
(端末装置100の構成)
端末装置100は、デスクトップPC、ノートPC、タブレットPC、携帯電話(例えばスマートフォン)等のユーザ端末である。端末装置100は、操作部112と、表示部114と、通信インターフェース116と、制御部130と、を備えている。以下では、インターフェースを「I/F」と記載する。
(Configuration of terminal device 100)
The
操作部112は、様々な指示を端末装置100に入力するためのI/Fである。表示部114は、様々な情報を表示するためのディスプレイである。表示部114は、いわゆるタッチパネルであり、操作部としても機能する。通信I/F116は、LAN6に接続されている。通信I/F116は、無線I/Fであってもよいし、有線I/Fであってもよい。
The
制御部130は、CPU132とメモリ134とを備える。CPU132は、メモリ134に格納されているプログラム136、138に従って、様々な処理を実行する。メモリ134は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ134は、OS(Operating Systemの略)プログラム136と、設定アプリケーション138と、を記憶する。以下では、設定アプリケーション138のことを「アプリ138」と記載する。OSプログラム136は、端末装置100の基本的な動作を制御するためのプログラムである。アプリ138は、端末装置100を利用して、プリンタ10を管理するためのアプリケーションである。図示省略しているが、メモリ134には、プリンタ10Aの第1管理テーブル38Aと同様に、情報の内容、及び、OIDが関連付けて記憶されている。
The
(第1管理テーブル38A、及び、第2管理テーブル38Bの説明;図2)
図2を参照して、プリンタ10Aの不揮発性メモリ34Aに記憶されている第1管理テーブル38A、及び、プリンタ10Bの不揮発性メモリ34Bに記憶されている第2管理テーブル38Bについて説明する。
(Description of the first management table 38A and the second management table 38B; FIG. 2)
Referring to FIG. 2, the first management table 38A stored in the nonvolatile memory 34A of the
第1管理テーブル38Aは、プリンタ10Aの様々な情報を記憶するためのテーブルである。当該情報は、例えば、プリンタ10Aの管理者アドレス、消耗品残量、MACアドレス等を含む。
The first management table 38A is a table for storing various information about the
第1管理テーブル38Aに記憶される情報は、さらに、プリンタ10Aが通信を実行するための通信設定を含む。通信設定は、プリンタ10AのIPアドレス、Proxy設定等を含む。図2に例示されない情報としては、APIPA(Automatic Private IP Addressingの略)設定、Network Reset、Reboot(即ち再起動)、プリンタ10Aの設置場所、アクセス先、エラー履歴、ステータス(印刷実行中、待機中等)、印刷設定(例えばデフォルトの印刷解像度)等を含む。第1管理テーブル38Aは、ツリー構造(即ち階層構造)を利用して上記の様々な情報を格納する。このツリー構造を有する様々な情報の集合のことを「MIB(Management Information Baseの略)」と呼ぶ。
The information stored in the first management table 38A further includes communication settings for the
具体的には、第1管理テーブル38Aは、内容とOID(Object IDの略)とMIB値とを関連付けて記憶する。内容は、情報の意味を示す文字列である。OIDは、情報を識別する識別子である。MIB値は、情報の具体的な値(即ち設定値)を示す。 Specifically, the first management table 38A stores contents, OID (abbreviation for Object ID), and MIB values in association with each other. The content is a character string that indicates the meaning of the information. OID is an identifier that identifies information. The MIB value indicates a specific value of information (ie, a set value).
第2管理テーブル38Bは、プリンタ10Bの様々な情報を記憶するためのテーブルである。本実施例において、第2管理テーブル38Bに記憶される情報は、第1管理テーブル38Aに記憶される情報と同じである。なお、変形例では、第2管理テーブル38Bに記憶される情報と、第1管理テーブル38Aに記憶される情報と、が異なっていてもよい。
The second management table 38B is a table for storing various information about the
第2管理テーブル38Bは、内容とOIDとMIB値とセキュリティ情報とを関連付けて記憶する。セキュリティ情報は、セキュリティレベルが高い情報であることを示す「High」と、セキュリティレベルが低い情報であることを示す「Low」と、のうちのいずれかを示す。 The second management table 38B stores contents, OIDs, MIB values, and security information in association with each other. The security information indicates either "High" indicating that the security level is high information, or "Low" indicating that the security level is information low.
(各プリンタ10A、10Bと端末装置100の間の通信プロトコル)
プリンタ10A等と端末装置100との間でMIB値を通信するための通信プロトコルとしては、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のUDP(User Datagram Protocolの略)に従ったプロトコルが広く知られている。具体的には、SNMP(Simple Network Management Protocolの略)が知られている。本実施例では、端末装置100は、MIB値を通信するための通信プロトコルとして、SNMPに加えて、OSI参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った通信プロトコルを利用する。具体的には、HTTPS(Hyper Text Transfer Protocol Secureの略)が利用される。HTTPSは、ユーザ認証及びデータ暗号化を採用しているので、SNMPよりも高いセキュリティレベルを有する。
(Communication protocol between each
The communication protocol for communicating MIB values between the
図2の第2管理テーブル38Bのセキュリティ情報「High」は、外部装置からSNMPに従った要求コマンドが受信される場合に、MIB値を書き込んだり送信したりすることが禁止されていることを示す。また、セキュリティ情報「Low」は、外部装置から、SNMPに従った要求コマンドが受信される場合に、MIB値を書き込んだり送信したりすることが許可されていることを示す。プリンタ10Bは、セキュリティ情報が「High」及び「Low」のどちらであっても、HTTPSに従った要求コマンドが受信される場合に、MIB値を書き込んだり送信したりすることを許可する。
The security information "High" in the second management table 38B in FIG. 2 indicates that writing or transmitting MIB values is prohibited when a request command according to SNMP is received from an external device. . Furthermore, the security information "Low" indicates that writing or transmitting MIB values is permitted when a request command according to SNMP is received from an external device. Regardless of whether the security information is "High" or "Low", the
(端末装置100のコマンド処理:図3)
図3を参照して、端末装置100のCPU132がアプリ138に従って実行するコマンド処理を説明する。アプリ138が起動されることに応じて、図3の処理が実行される。なお、実施例の各通信の全ては通信インターフェース116を介して実行されるので、以下では、「通信インターフェース116を介して」という説明を省略する。
(Command processing of terminal device 100: Figure 3)
With reference to FIG. 3, command processing executed by the
S10において、CPU132は、通信対象のプリンタ(以下では「対象プリンタ」と記載する)を選択するための操作(以下では、「プリンタ選択操作」と記載する)を受付けることを監視する。CPU132は、プリンタ選択操作を受付ける場合に、S10でYESと判断して、S12に進む。プリンタ選択操作は、LAN6に接続されているプリンタを検索するための操作を含む。CPU132は、当該操作を受付けると、LAN6に接続されているプリンタを検索し、LAN6に接続されているプリンタのリストを表示する。プリンタ選択操作は、さらに、当該リストに表示されている1以上のプリンタの中から、対象プリンタを選択する操作を含む。
In S10, the
S12において、CPU132は、プロトコル決定処理を実行する。プロトコル決定処理は、対象プリンタとの通信に利用する通信プロトコル(以下では、「利用プロトコル」と記載する)を決定するための処理である。具体的には、CPU132は、能力情報要求を対象プリンタに送信する。能力情報要求は、対象プリンタがサポートしているプロトコルを示す情報を含む能力情報の送信を要求するためのコマンドである。対象プリンタは、端末装置100から能力情報要求を受信する場合に、対象プリンタがサポートしている各プロトコルを示す情報を含む能力情報を端末装置100に送信する。なお、能力情報要求の送信、及び、能力情報の受信は、SNMPを利用して実行される。
In S12, the
例えば、プリンタ10Aが対象プリンタである場合、対象プリンタは、対象プリンタがSNMPをサポートしていることを示す情報を含む能力情報を端末装置100に送信する。当該能力情報は、HTTPSをサポートしていることを示す情報を含まない。また、プリンタ10Bが対象プリンタである場合、対象プリンタは、対象プリンタがSNMPとHTTPSをサポートしていることを示す情報を含む能力情報を端末装置100に送信する。CPU132は、能力情報を利用して、利用プロトコルを決定する。受信済みの能力情報が、SNMPのみをサポートしていることを示す場合、CPU132は、SNMPを利用プロトコルとして決定する。受信済みの能力情報が、SNMPとHTTPSとをサポートしていることを示す場合、CPU132は、高いセキュリティレベルを有するHTTPSを利用プロトコルとして決定する。このように、CPU132は、対象プリンタの能力情報に従って、利用プロトコルを適切に決定することができる。
For example, when the
S14において、CPU132は、S12で決定された利用プロトコルがSNMPであるのか否かを判断する。CPU132は、利用プロトコルがSNMPである場合(S14でYES)に、S20に進み、利用プロトコルがSNMPでない場合、即ち、利用プロトコルがHTTPSである場合(S14でNO)に、S30に進む。
In S14, the
S20において、CPU132は、SNMP処理を実行する。SNMP処理は、SNMPに従って、端末装置100と対象プリンタとの間で通信が実行される処理である。CPU132は、S20が終了すると、図3の処理を終了する。
In S20, the
S30において、CPU132は、HTTPS処理を実行する。HTTPS処理は、HTTPSに従って、端末装置100と対象プリンタとの間で通信が実行される処理である。CPU132は、S30が終了すると、図3の処理を終了する。
In S30, the
(SNMP処理;図4)
図4を参照して、図3のS20で実行されるSNMP処理について説明する。S50において、CPU132は、設定操作を受付けることを監視する。SNMP処理における設定操作は、設定対象の情報(例えば、IPアドレス)を指定する操作と、指定済みの情報について、変更後の文字列を指定する操作と、を含む。CPU132は、設定操作を受付ける場合(S50でYES)に、設定指示が取得されたと判断し、S52に進む。
(SNMP processing; Figure 4)
The SNMP process executed in S20 of FIG. 3 will be described with reference to FIG. 4. In S50, the
S52において、CPU132は、設定操作で指定された情報のOIDと、設定操作で指定された文字列と、を含むSETコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からSETコマンドを受信する場合に、当該SETコマンド内のOIDと文字列とを特定する。そして、対象プリンタは、特定済みのOIDに関連付けて、特定済みの文字列をMIB値として、対象プリンタの管理テーブル(以下では、「対象管理テーブル」と記載する)に書き込む。そして、対象プリンタは、設定操作で指定された情報のOIDと、MIB値の書き込みが完了したことを示すステータス情報と、を含む応答コマンドを端末装置100に送信する。
In S52, the
S54において、CPU132は、対象プリンタから応答コマンドを受信する。CPU132は、S54が終了すると、S50に戻る。
In S54, the
また、CPU132は、S50の監視と同時的に、S60において、取得操作を受付けることを監視する。SNMP処理における取得操作は、取得対象の情報(例えば、IPアドレス)を指定する操作を含む。CPU132は、取得操作を受付ける場合(S60でYES)に、取得指示が取得されたと判断し、S62に進む。
Further, at the same time as monitoring S50, the
S62において、CPU132は、取得操作で指定された情報のOIDを含むGETコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からGETコマンドを受信する場合に、対象管理テーブルから、当該GETコマンドに含まれるOIDに関連付けられているMIB値を取得する。そして、CPU132は、取得済みのMIB値を含む応答コマンドを端末装置100に送信する。
In S62, the
S64において、CPU132は、対象プリンタから応答コマンドを受信する。また、CPU132は、当該応答コマンド内の情報を表示部114に表示させる。これにより、ユーザは、対象プリンタ内の設定を知ることができる。CPU132は、S64が終了すると、S50に戻る。
In S64, the
また、CPU132は、S50及びS60の監視と同時的に、S70において、プリンタ選択操作を受付けることを監視する。CPU132は、プリンタ選択操作を受付ける場合(S70でYES)に、図3のS12に戻る。
Further, at the same time as monitoring S50 and S60, the
(HTTPS処理;図5)
図5を参照して、図3のS30で実行されるHTTPS処理について説明する。S90において、CPU132は、設定操作を受付けることを監視する。HTTPS処理における設定操作は、設定対象の情報(例えば、IPアドレス)を指定する操作と、指定済みの情報について、変更後の文字列を指定する操作と、認証情報を入力する操作と、を含む。CPU132は、設定操作を受付ける場合(S90でYES)に、設定指示が取得されたと判断し、S92に進む。
(HTTPS processing; Figure 5)
The HTTPS process executed in S30 of FIG. 3 will be described with reference to FIG. 5. In S90, the
S92において、CPU132は、認証情報を含むHTTPSコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からHTTPSコマンドを受信すると、当該コマンド内の認証情報を利用した認証を実行する。対象プリンタは、当該認証が成功する場合に、認証成功を示す情報「OK」を含む応答コマンドを端末装置100に送信し、当該認証が失敗する場合に、認証失敗を示す情報「NG」を含む応答コマンドを端末装置100に送信する。なお、HTTPS処理における認証は、HTTPSのダイジェスト認証方式又はベーシック認証方式に従った認証である。
In S92, the
S94において、CPU132は、対象プリンタから情報「OK」を含む応答コマンドを受信したのか否かを判断する。CPU132は、対象プリンタから情報「OK」を含む応答コマンドを受信する場合(S94でYES)に、S96に進み、対象プリンタから情報「OK」を含まない応答コマンドを受信する場合(S94でNO)に、S90に戻る。なお、CPU132は、S94でNOと判断する場合に、認証が失敗したことを示す情報を表示部114に表示させる。
In S94, the
S96において、CPU132は、暗号キーの交換(Key Exchange)を対象プリンタと実行する。これにより、端末装置100と対象プリンタとの間の以降の通信(例えばS98、S100)において、POSTコマンド及び応答コマンド内の情報が暗号化される。このように、コマンド内の情報が暗号化されるので、セキュリティレベルを高めることができる。
In S96, the
S98において、CPU132は、設定操作で指定された情報のOIDと、設定操作で指定された文字列と、を含むPOSTコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からPOSTコマンドを受信する場合に、当該POSTコマンド内のOIDと文字列とを特定する。そして、対象プリンタは、特定済みの文字列をMIB値として特定済みのOIDに関連付けて対象管理テーブルに書き込む。そして、対象プリンタは、設定操作で指定された情報のOIDと、MIB値の書き込みが完了したことを示すステータス情報と、を含む応答コマンドを端末装置100に送信する。
In S98, the
S100において、CPU132は、対象プリンタから応答コマンドを受信する。CPU132は、S100が終了すると、S90に戻る。
In S100, the
また、CPU132は、S90の監視と同時的に、S110において、取得操作を受付けることを監視する。HTTPS処理における取得操作は、取得対象の情報(例えば、IPアドレス)を指定する操作と、認証情報を入力する操作と、を含む。CPU132は、取得操作を受付ける場合(S110でYES)に、取得指示が取得されたと判断し、S112に進む。
Furthermore, simultaneously with the monitoring in S90, the
S112、S114、S116は、それぞれ、S92、S94、S96と同様である。これにより、端末装置100と対象プリンタとの間の以降の通信(例えばS118、S120)において、GETコマンド及び応答コマンド内の情報が暗号化される。S118において、CPU132は、取得操作で指定された情報のOIDを含むGETコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からGETコマンドを受信する場合に、対象管理テーブルから、当該GETコマンドに含まれるOIDに関連付けられているMIB値を取得する。そして、CPU132は、取得済みのMIB値を含む応答コマンドを端末装置100に送信する。
S112, S114, and S116 are the same as S92, S94, and S96, respectively. As a result, the information in the GET command and response command is encrypted in subsequent communications between the
S120において、CPU132は、対象プリンタから応答コマンドを受信する。また、CPU132は、当該応答コマンド内の情報を表示部114に表示させる。これにより、ユーザは、対象プリンタ内の設定を知ることができる。CPU132は、S120が終了すると、S90に戻る。
In S120, the
また、CPU132は、S90及びS110の監視と同時的に、S130において、プリンタ選択操作を受付けることを監視する。CPU132は、プリンタ選択操作を受付ける場合(S130でYES)に、図3のS12に戻る。
Furthermore, at the same time as monitoring S90 and S110, the
(具体的なケース)
続いて、図6及び図7を参照して、図3~図5の処理によって実現される具体的なケースA~ケースDを説明する。
(Specific case)
Next, specific cases A to D realized by the processes shown in FIGS. 3 to 5 will be described with reference to FIGS. 6 and 7.
(ケースA;図6)
図6を参照して、HTTPSに従った書込処理が実行されるケースAについて説明する。
(Case A; Figure 6)
With reference to FIG. 6, case A in which writing processing according to HTTPS is executed will be described.
端末装置100は、T10において、ユーザから、プリンタ10Bを選択するプリンタ選択操作を受付けると(図3のS10でYES)、T12において、能力情報要求をプリンタ10Bに送信し、T14において、プリンタ10Bから、プリンタ10BがSNMPとHTTPSをサポートしていることを示す能力情報を受信する。この場合、端末装置100は、HTTPSのセキュリティレベルがSNMPのセキュリティレベルよりも高いと判断し、HTTPSを利用プロトコルとして特定する(S12、S14でNO、S30)。
When the
端末装置100は、T20において、ユーザから設定操作を受付ける(図5のS90でYES)。本ケースの設定操作は、書込対象の情報「IPアドレス」を指定する操作と、「IPアドレス」について、変更後の文字列「192.168.2.2」を指定する操作と、認証情報を入力する操作と、を含む。この場合、端末装置100は、T22において、認証情報を含むHTTPSコマンドをプリンタ10Bに送信する(S92)。
The
プリンタ10Bは、T22において、端末装置100からHTTPSコマンドを受信し、当該コマンド内の認証情報を利用した認証が成功すると、T24において、情報「OK」を含む応答コマンドを端末装置100に送信する。
The
端末装置100は、T24において、プリンタ10Bから、情報「OK」を含む応答コマンドを受信すると(S94でYES)、T30において、暗号キーの交換をプリンタ10Bと実行し(S96)、T32において、T20の設定操作に応じたPOSTコマンド200をプリンタ10Bに送信する(S98)。端末装置100は、T20の設定操作で指定された情報「IPアドレス」から、末尾「4」のOIDを特定して、当該情報をPOSTコマンド200に書き込む。また、端末装置100は、T20の設定操作で指定された文字列「192.168.2.2」をMIB値としてPOSTコマンド200に書き込む。
When the
プリンタ10Bは、T32において、端末装置100からPOSTコマンド200を受信すると、当該コマンドが末尾「4」のOIDを含むと判断し、末尾「4」のOIDに関連付けられているセキュリティ情報が「High」であると判断する。プリンタ10Bは、HTTPSに従ったPOSTコマンドが受信されたと判断し、MIB値の書き込みが許可されていると判断し、T40において、末尾「4」のOIDに関連付けて、当該コマンド内のMIB値「192.168.2.2」を第2管理テーブル38Bに書き込む。次いで、プリンタ10Bは、T42において、POSTコマンド200の末尾「4」のOIDと同じOIDと、ステータス情報「success」と、を含む応答コマンド210を端末装置100に送信する。
When the
端末装置100は、T42において、プリンタ10Bから応答コマンド210を受信する(S100)。これにより、書込処理が完了する。
The
(ケースB;図6)
続いて、図6を参照して、HTTPSに従った取得処理が実行されるケースBについて説明する。ケースBは、ケースAの後の状態である。
(Case B; Figure 6)
Next, with reference to FIG. 6, case B in which acquisition processing according to HTTPS is executed will be described. Case B is the state after case A.
端末装置100は、T110において、ユーザから取得操作を受付ける(S110でYES)。本ケースの取得操作は、取得対象の情報「消耗品残量」を指定する操作と、認証情報を入力する操作と、を含む。T112、T114、T120(S112~S116)は、それぞれ、ケースAのT22、T24、T30と同様である。
The
端末装置100は、T122において、T110の取得操作に応じたGETコマンド220をプリンタ10Bに送信する(S118)。端末装置100は、T110の取得設定操作で指定された情報「消耗品残量」から、末尾「2」のOIDを特定して、当該情報をGETコマンド220に書き込む。
At T122, the
プリンタ10Bは、T122において、端末装置100からGETコマンド220を受信すると、GETコマンド220が末尾「2」のOIDを含むと判断し、末尾「2」のOIDに関連付けられているセキュリティ情報が「Low」であると判断する。プリンタ10Bは、HTTPSに従ったGETコマンドが受信されたと判断し、MIB値の送信が許可されていると判断し、第2管理テーブル38Bにおいて、末尾「2」のOIDに関連付けられているMIB値「60」を特定し、T124において、特定済みのMIB値「60」を含む応答コマンド230を端末装置100に送信する。
When the
端末装置100は、T124において、プリンタ10Bから応答コマンド230を受信すると、T126において、応答コマンド230内のMIB値「60」を表示する(S120)。これにより、取得処理が完了する。
When the
(ケースC;図7)
図7を参照して、SNMPに従った書込処理が実行されるケースCについて説明する。
(Case C; Figure 7)
With reference to FIG. 7, case C in which write processing according to SNMP is executed will be described.
端末装置100は、T210において、ユーザから、プリンタ10Aを選択するプリンタ選択操作を受付けると(図3のS10でYES)、T212において、能力情報要求をプリンタ10Aに送信し、T214において、プリンタ10Aから、プリンタ10AがSNMPをサポートしていることを示す能力情報を受信する。この場合、端末装置100は、SNMPを利用プロトコルとして特定する(S12、S14でYES、S20)。
When the
端末装置100は、T220において、ユーザから設定操作を受付ける(図4のS50でYES)。本ケースの設定操作は、書込対象の情報「IPアドレス」を指定する操作と、「IPアドレス」について、変更後の文字列「192.168.2.1」を指定する操作と、を含む。この場合、端末装置100は、T222において、T220の設定操作に応じたSETコマンド300をプリンタ10Aに送信する(S52)。端末装置100は、T220の設定操作で指定された情報「IPアドレス」から、末尾「4」のOIDを特定して、当該情報をSETコマンド300に書き込む。また、端末装置100は、T220の設定操作で指定された文字列「192.168.2.1」をMIB値としてSETコマンド300に書き込む。
The
プリンタ10Aは、T222において、端末装置100からSETコマンド300を受信すると、当該コマンドが末尾「4」のOIDを含むと判断し、T230において、第1管理テーブル38Aにおいて、末尾「4」のOIDに関連付けて、当該コマンド内のMIB値「192.168.2.1」を書き込む。T232は、それぞれ、図6のケースAのT42と同様である。
When the
(ケースD;図7)
続いて、図7を参照して、SNMPに従った取得処理が実行されるケースDについて説明する。ケースDは、ケースCの後の状態である。
(Case D; Figure 7)
Next, with reference to FIG. 7, a case D in which acquisition processing according to SNMP is executed will be described. Case D is a state after case C.
端末装置100は、T310において、ユーザから取得操作を受付ける(S60でYES)。本ケースの取得操作は、取得対象の情報「消耗品残量」を指定する操作を含む。端末装置100は、T312において、T310の取得操作に応じたGETコマンド320をプリンタ10Aに送信する(S62)。端末装置100は、T310の取得設定操作で指定された情報「消耗品残量」から、末尾「2」のOIDを特定して、当該情報をGETコマンド320に書き込む。
The
プリンタ10Aは、T312において、端末装置100からGETコマンド320を受信すると、GETコマンド320が末尾「2」のOIDを含むと判断し、第1管理テーブル38Aにおいて、末尾「2」のOIDに関連付けられているMIB値「80」を特定し、T314において、特定済みのMIB値「80」を含む応答コマンド330を端末装置100に送信する。
When the
端末装置100は、T314において、プリンタ10Aから応答コマンド330を受信すると、T316において、応答コマンド330内のMIB値「80」を表示する(S64)。これにより、取得処理が完了する。
Upon receiving the response command 330 from the
(ケースA~ケースDの効果)
ケースA~ケースDの効果を説明する前に、図8を参照して、比較例の端末装置150によって実行される処理について説明する。比較例の端末装置150は、図3のS12のプロトコル決定処理を実行しない。このため、端末装置150は、SNMPとHTTPSをサポートしているプリンタ10Bが対象プリンタとして選択された場合であっても、SNMPに従った要求コマンドをプリンタ10Bに送信し得る。
(Effects of cases A to D)
Before explaining the effects of cases A to D, the processing executed by the
端末装置150は、T410において、プリンタ10Bを選択するプリンタ選択操作を受付け、T420において、ユーザから設定操作を受付ける。本ケースの設定操作は、書込対象の情報「IPアドレス」を指定する操作と、「IPアドレス」について、変更後の文字列「192.168.2.2」を指定する操作と、を含む。この場合、端末装置150は、T422において、SNMPに従ったSETコマンド410をプリンタ10Bに送信する。SETコマンド400は、図7のSETコマンド300と同じである。
The
プリンタ10Bは、T422において、端末装置150からSETコマンド400を受信すると、当該コマンドが末尾「4」のOIDを含むと判断し、第2管理テーブル38Bにおいて、末尾「4」のOIDに関連付けられているセキュリティ情報が「High」であると判断する。プリンタ10Bは、SNMPに従ったSETコマンドが受信されたと判断し、MIB値の書き込み送信が禁止されていると判断し、当該コマンド内のMIB値「192.168.2.2」を第2管理テーブル38Bに書き込まない。次いで、プリンタ10Bは、T424において、ステータス情報「error」を含むERRORコマンドを端末装置150に送信する。また、プリンタ10Bは、端末装置150から、末尾「4」のOIDを含むSNMPに従ったGETコマンドを受信する場合に、ステータス情報「error」を含むERRORコマンドを端末装置150に送信する。
When the
上述のように、プリンタ10Bは、端末装置150から、SNMPに従ったSETコマンドが受信される場合(図8のT422)に、MIB値を第2管理テーブル38Bに書き込まない場合がある。一方、本実施例の端末装置100は、HTTPSに従ったPOSTコマンドをプリンタ10Bに送信する(図6のT32)。この場合、プリンタ10Bは、POSTコマンドに含まれるMIB値を第2管理テーブル38Bに書き込む(T40)。このため、MIB値が第2管理テーブル38Bに書き込まれない可能性を低減することができる。従って、ユーザの利便性を向上させることができる。
As described above, when the
また、プリンタ10Bは、端末装置150から、SNMPに従ったGETコマンドが受信される場合に、MIB値を端末装置150に送信しない場合がある。一方、本実施例の端末装置100は、HTTPSに従ったGETコマンドをプリンタ10Bに送信する(図6のT122)。この場合、プリンタ10Bは、GETコマンドに含まれるOIDに対応するMIB値を端末装置100に送信する(図6のT122)。このため、MIB値が端末装置100に送信されない可能性を低減することができる。従って、ユーザの利便性を向上させることができる。
Furthermore, when a GET command according to SNMP is received from the
(本実施例の効果)
上記の構成によると、端末装置100は、SNMPをサポートしていると共にHTTPSをサポートしていないプリンタ10Aには、SNMPに従ったSETコマンドを送信し、SNMPをサポートしていると共にHTTPSをサポートしているプリンタ10Bには、HTTPSに従ったPOSTコマンドを送信する。従って、端末装置100は、適切なプロトコルを利用して、設定コマンド(即ちSETコマンド又はPOSTコマンド)をプリンタ10に送信することができる。
(Effects of this example)
According to the above configuration, the
また、端末装置100は、SNMPをサポートしていると共にHTTPSをサポートしていないプリンタ10Aには、SNMPに従ったGETコマンドを送信し、SNMPをサポートしていると共にHTTPSをサポートしているプリンタ10Bには、HTTPSに従ったGETコマンドを送信する。従って、端末装置100は、適切なプロトコルを利用して、取得コマンド(即ちGETコマンド)をプリンタ10に送信することができる。
Further, the
(対応関係)
SNMP、HTTPSが、それぞれ、「第1のプロトコル」、「第2のプロトコル」の一例である。プリンタ10A、プリンタ10Bが、それぞれ、「第1の通信装置」、「第2の通信装置」の一例である。図4のS50で取得される設定指示、図5のS90で取得される設定指示が、それぞれ、「第1の設定指示」、「第2の設定指示」の一例である。SETコマンド、POSTコマンドが、それぞれ、「第1の設定コマンド」、「第2の設定コマンド」の一例である。図4のS52のSETコマンドに含まれるOIDが、「第1のOID」の一例である。図4のS52のSETコマンドに含まれるMIB値が、「第1の設定値」の一例である。図5のS98のPOSTコマンドに含まれるOIDが、「第2のOID」の一例である。図5のS98のPOSTコマンドに含まれるMIB値が、「第2の設定値」の一例である。第1管理テーブル38A、第2管理テーブル38Bが、それぞれ、「第1の管理情報」、「第2の管理情報」の一例である。第2管理テーブル38Bのセキュリティ情報「High」、第2管理テーブル38Bのセキュリティ情報「High」が、それぞれ、「禁止情報」、「許可情報」の一例である。図7のT214の能力情報、図6のT14の能力情報が、それぞれ、「第1のプロトコル情報」、「第2のプロトコル情報」の一例である。図7のT212の能力情報要求、図6のT12の能力情報要求が、それぞれ、「第1の情報要求」、「第2の情報要求」の一例である。
(correspondence)
SNMP and HTTPS are examples of the "first protocol" and "second protocol", respectively. The
図4のS52が、「第1の設定コマンド送信部」によって実行される処理の一例である。図5のS98が、「第2の設定コマンド送信部」によって実行される処理の一例である。 S52 in FIG. 4 is an example of a process executed by the "first setting command transmitter". S98 in FIG. 5 is an example of a process executed by the "second setting command transmitter".
図4のS60で取得される取得指示、図5のS110で取得される取得指示が、それぞれ、「第1の取得指示」、「第2の取得指示」の一例である。SNMPに従ったGETコマンド、HTTPSに従ったGETコマンドが、それぞれ、「第1の取得コマンド」、「第2の取得コマンド」の一例である。図4のS64の応答コマンド、図5のS120の応答コマンドが、それぞれ、「第1の応答コマンド」、「第2の応答コマンド」の一例である。図4のS62のGETコマンドに含まれるOIDが、「第3のOID」の一例である。図4のS64の応答コマンドに含まれるMIB値が、「第3の設定値」の一例である。図5のS118のGETコマンドに含まれるOIDが、「第4のOID」の一例である。図5のS120の応答コマンドに含まれるMIB値が、「第4の設定値」の一例である。 The acquisition instruction acquired in S60 of FIG. 4 and the acquisition instruction acquired in S110 of FIG. 5 are examples of a "first acquisition instruction" and a "second acquisition instruction," respectively. A GET command according to SNMP and a GET command according to HTTPS are examples of a "first acquisition command" and a "second acquisition command," respectively. The response command at S64 in FIG. 4 and the response command at S120 in FIG. 5 are examples of a "first response command" and a "second response command," respectively. The OID included in the GET command in S62 of FIG. 4 is an example of the "third OID." The MIB value included in the response command in S64 of FIG. 4 is an example of the "third setting value." The OID included in the GET command in S118 of FIG. 5 is an example of the "fourth OID." The MIB value included in the response command in S120 in FIG. 5 is an example of the "fourth setting value."
図4のS62が、「第1の取得コマンド送信部」によって実行される処理の一例である。図4のS64が、「第1の応答コマンド受信部」によって実行される処理の一例である。図5のS118が、「第2の取得コマンド送信部」によって実行される処理の一例である。図5のS120が、「第2の応答コマンド受信部」によって実行される処理の一例である。 S62 in FIG. 4 is an example of a process executed by the "first acquisition command transmitter". S64 in FIG. 4 is an example of a process executed by the "first response command receiving section." S118 in FIG. 5 is an example of a process executed by the "second acquisition command transmitter". S120 in FIG. 5 is an example of a process executed by the "second response command receiving section."
以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。 Although specific examples of the present invention have been described in detail above, these are merely illustrative and do not limit the scope of the claims. The techniques described in the claims include various modifications and changes to the specific examples illustrated above. Modifications of the above embodiment are listed below.
(第1変形例)「第1のプロトコル」、「第2のプロトコル」は、それぞれ、暗号方式を利用しないPJL(Printer Job Languageの略)、暗号方式を利用するPJLであってもよい。 (First Modification) The "first protocol" and the "second protocol" may be PJL (abbreviation for Printer Job Language) that does not use an encryption method and PJL that uses an encryption method, respectively.
(第2変形例)プリンタ10Bの第2管理テーブル38Bが、セキュリティ情報を含んでいなくてもよい。
(Second Modification) The second management table 38B of the
(第3変形例)端末装置100は、図3のS12において、対象プリンタがSNMPをサポとしているのか否かを示す情報の送信を要求する信号を送信し、次いで、対象プリンタがHTTPSをサポートしているのか否かを示す情報の送信を要求する信号を送信してもよい。
(Third Modification) In S12 of FIG. 3, the
(第4変形例)プリンタ10がサポートしている通信プロトコルに関する情報が、端末装置100のメモリ134に記憶されていてもよい。例えば、端末装置100のユーザによって、能力情報が入力されることによって、能力情報がメモリ134に記憶される。本変形例では、端末装置100は、図3のS12において、能力情報要求を対象プリンタに送信することなく、メモリ134内の能力情報を利用して、利用プロトコルを決定する。本変形例では、「第1のプロトコル情報受信部」、「第2のプロトコル情報受信部」、「第1の情報要求送信部」、及び、「第2の情報要求送信部」を省略可能である。
(Fourth Modification) Information regarding communication protocols supported by the printer 10 may be stored in the
(第5変形例)プリンタ10は、能力情報を定期的に送信するように構成されていてもよいし、プリンタ10の電源がONされる場合に能力情報を送信するように構成されていてもよい。即ち、本変形例では、端末装置100は、図3のコマンド処理が実行される前に、プリンタ10から能力情報を受信する。本変形例では、端末装置100は、図3のS12において、能力情報要求を対象プリンタに送信することなく、利用プロトコルを決定する。本変形例では、「第1の情報要求送信部」、及び、「第2の情報要求送信部」を省略可能である。なお、別の変形例では、端末装置100は、図3のS12において、対象プリンタの能力情報が記憶されていない場合にのみ、能力情報要求を対象プリンタに送信してもよい。
(Fifth Modification) The printer 10 may be configured to transmit capability information periodically, or may be configured to transmit capability information when the power of the printer 10 is turned on. good. That is, in this modification, the
(第6変形例)「第1の通信装置」及び「第2の通信装置」は、プリンタに限られず、スキャナ、ファクシミリ、PC、サーバ等の他の装置であってもよい。 (Sixth Modification) The "first communication device" and the "second communication device" are not limited to printers, but may be other devices such as a scanner, facsimile, PC, or server.
(第7変形例)上記の実施例では、CPU132がプログラム136、138を実行することによって、図3~図5の各処理が実現される。これに代えて、いずれかの処理は、論理回路等のハードウェアによって実現されてもよい。
(Seventh Modification) In the above embodiment, the
また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。 Further, the technical elements described in this specification or the drawings exhibit technical usefulness singly or in various combinations, and are not limited to the combinations described in the claims as filed. Furthermore, the techniques illustrated in this specification or the drawings simultaneously achieve multiple objectives, and achieving one of the objectives has technical utility in itself.
本特許出願時の特許請求の範囲において、各請求項が一部の請求項のみに従属している場合であっても、各請求項が当該一部の請求項のみに従属可能であることに限定されない。技術的に矛盾しない範囲において、各請求項は、出願時に従属していない他の請求項にも従属可能である。即ち、各請求項の技術は以下のように様々に組み合わせることができる。
(項目1)
端末装置のためのコンピュータプログラムであって、
前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、
第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に設定コマンドを送信するための第1の設定指示が取得される場合に、前記第1のプロトコルに従った第1の設定コマンドを前記第1の通信装置に送信する第1の設定コマンド送信部であって、前記第1の設定コマンドは、MIB(Management Information Baseの略)の第1のOID(Object IDの略)と、第1の設定値と、を含み、前記第1の設定コマンドは、前記第1のOIDに関連付けて前記第1の設定値を前記第1の通信装置の第1の管理情報に書き込むことを要求するコマンドである、前記第1の設定コマンド送信部と、
前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に設定コマンドを送信するための第2の設定指示が取得される場合に、前記第2のプロトコルに従った第2の設定コマンドを前記第2の通信装置に送信する第2の設定コマンド送信部であって、前記第2の設定コマンドは、前記MIBの第2のOIDと、第2の設定値と、を含み、前記第2の設定コマンドは、前記第2のOIDに関連付けて前記第2の設定値を前記第2の通信装置の第2の管理情報に書き込むことを要求するコマンドである、前記第2の設定コマンド送信部と、
として機能させる、コンピュータプログラム。
(項目2)
前記第2のプロトコルのセキュリティレベルは、前記第1のプロトコルのセキュリティレベルよりも高く、
前記第2の通信装置の前記第2の管理情報は、前記MIBの複数個のOIDのそれぞれについて、当該OIDと、設定値と、セキュリティ情報と、を関連付けて記憶しており、
前記セキュリティ情報は、
外部装置から、前記第1のプロトコルに従った設定コマンドが受信される場合に、当該設定コマンドに応じた設定値の書き込みが禁止されていることを示す禁止情報と、
外部装置から、前記第1のプロトコルに従った設定コマンドが受信される場合に、当該設定コマンドに応じた設定値の書き込みが許可されていることを示す許可情報と、
のうちのいずれかを示す、項目1に記載のコンピュータプログラム。
(項目3)
前記コンピュータプログラムは、前記コンピュータを、さらに、
前記第1の通信装置がサポートしているプロトコルを示す第1のプロトコル情報を受信する第1のプロトコル情報受信部と、
前記第2の通信装置がサポートしているプロトコルを示す第2のプロトコル情報を受信する第2のプロトコル情報受信部と、
として機能させ、
前記第1の設定コマンド送信部は、前記第1の設定指示が取得され、かつ、受信済みの前記第1のプロトコル情報が、前記第1の通信装置が前記第1のプロトコルをサポートしていると共に前記第2のプロトコルをサポートしていないことを示す場合に、前記第1の設定コマンドを前記第1の通信装置に送信し、
前記第2の設定コマンド送信部は、前記第2の設定指示が取得され、かつ、受信済みの前記第2のプロトコル情報が、前記第2の通信装置が前記第1のプロトコルと前記第2のプロトコルとをサポートしていることを示す場合に、前記第2の設定コマンドを前記第2の通信装置に送信する、項目1又は2に記載のコンピュータプログラム。
(項目4)
前記コンピュータプログラムは、前記コンピュータを、さらに、
前記第1のプロトコル情報の送信を要求する第1の情報要求を前記第1の通信装置に送信する第1の情報要求送信部と、
前記第2のプロトコル情報の送信を要求する第2の情報要求を前記第2の通信装置に送信する第2の情報要求送信部と、
して機能させ、
前記第1のプロトコル情報受信部は、前記第1の情報要求が前記第1の通信装置に送信されることに応じて、前記第1の通信装置から前記第1のプロトコル情報を受信し、
前記第2のプロトコル情報受信部は、前記第2の情報要求が前記第2の通信装置に送信されることに応じて、前記第2の通信装置から前記第2のプロトコル情報を受信する、項目3に記載のコンピュータプログラム。
(項目5)
前記第1のプロトコルは、SNMP(Simple Network Management Protocolの略)であり、
前記第2のプロトコルは、HTTPS(Hyper Text Transfer Protocol Secureの略)である、項目1から3のいずれか一項に記載のコンピュータプログラム。
(項目6)
前記コンピュータプログラムは、前記コンピュータを、さらに、
取得コマンドを前記第1の通信装置に送信するための第1の取得指示が取得される場合に、前記第1のプロトコルに従った第1の取得コマンドを前記第1の通信装置に送信する第1の取得コマンド送信部であって、前記第1の取得コマンドは、前記MIBの第3のOIDを含み、前記第1の取得コマンドは、前記第1の通信装置の前記第1の管理情報において前記第3のOIDに関連付けられている第3の設定値の送信を要求するコマンドである、前記第1の取得コマンド送信部と、
前記第1の取得コマンドが前記第1の通信装置に送信される場合に、前記第1の通信装置から、前記第3の設定値を含む第1の応答コマンドを受信する第1の応答コマンド受信部と、
取得コマンドを前記第2の通信装置に送信するための第2の取得指示が取得される場合に、前記第2のプロトコルに従った第2の取得コマンドを前記第2の通信装置に送信する第2の取得コマンド送信部であって、前記第2の取得コマンドは、前記MIBの第4のOIDを含み、前記第2の取得コマンドは、前記第2の管理情報において前記第4のOIDに関連付けられている第4の設定値の送信を要求するコマンドである、前記第2の設定コマンド送信部と、
前記第2の取得コマンドが前記第2の通信装置に送信される場合に、前記第2の通信装置から、前記第4の設定値を含む第2の応答コマンドを受信する第2の応答コマンド受信部と、
として機能させる、項目1から5のいずれか一項に記載のコンピュータプログラム。
(項目7)
端末装置のためのコンピュータプログラムであって、
前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、
第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に取得コマンドを送信するための第1の取得指示が取得される場合に、前記第1のプロトコルに従った第1の取得コマンドを前記第1の通信装置に送信する第1の取得コマンド送信部であって、前記第1の取得コマンドは、MIB(Management Information Baseの略)の第3のOID(Object IDの略)を含み、前記第1の取得コマンドは、前記第1の通信装置の第1の管理情報において前記第3のOIDに関連付けられている第3の設定値の送信を要求するコマンドである、前記第1の取得コマンド送信部と、
前記第1の取得コマンドが前記第1の通信装置に送信される場合に、前記第1の通信装置から、前記第3の設定値を含む第1の応答コマンドを受信する第1の応答コマンド受信部と、
前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に取得コマンドを送信するための第2の取得指示が取得される場合に、前記第2のプロトコルに従った第2の取得コマンドを前記第2の通信装置に送信する第2の取得コマンド送信部であって、前記第2の取得コマンドは、前記MIBの第4のOIDを含み、前記第2の取得コマンドは、前記第2の通信装置の第2の管理情報において前記第4のOIDに関連付けられている第4の設定値の送信を要求するコマンドである、前記第2の取得コマンド送信部と、
前記第2の取得コマンドが前記第2の通信装置に送信される場合に、前記第2の通信装置から、前記第4の設定値を含む第2の応答コマンドを受信する第2の応答コマンド受信部と、
として機能させる、コンピュータプログラム。
(項目8)
前記第2のプロトコルのセキュリティレベルは、前記第1のプロトコルのセキュリティレベルよりも高く、
前記第2の通信装置の前記第2の管理情報は、前記MIBの複数個のOIDのそれぞれについて、当該OIDと、設定値と、セキュリティ情報と、を関連付けて記憶しており、
前記セキュリティ情報は、
外部装置から、前記第1のプロトコルに従った取得コマンドが受信される場合に、当該取得コマンドに応じた設定値を含む応答コマンドの送信が禁止されていることを示す禁止情報と、
外部装置から、前記第2のプロトコルに従った設定コマンドが受信される場合に、当該取得コマンドに応じた設定値を含む応答コマンドの送信が許可されていることを示す許可情報と、のうちのいずれかを示す、項目7に記載のコンピュータプログラム。
(項目9)
前記コンピュータプログラムは、前記コンピュータを、さらに、
前記第1の通信装置がサポートしているプロトコルを示す第1のプロトコル情報を受信する第1のプロトコル情報受信部と、
前記第2の通信装置がサポートしているプロトコルを示す第2のプロトコル情報を受信する第2のプロトコル情報受信部と、
として機能させ、
前記第1の取得コマンド送信部は、前記第1の取得指示が取得され、かつ、受信済みの前記第1のプロトコル情報が、前記第1の通信装置が前記第1のプロトコルをサポートしていると共に前記第2のプロトコルをサポートしていないことを示す場合に、前記第1の取得コマンドを前記第1の通信装置に送信し、
第2の取得コマンド送信部は、前記第2の取得指示が取得され、かつ、受信済みの前記第2のプロトコル情報が、前記第2の通信装置が前記第1のプロトコルと前記第2のプロトコルとをサポートしていることを示す場合に、前記第2の取得コマンドを前記第2の通信装置に送信する、項目7又は8に記載のコンピュータプログラム。
(項目10)
前記コンピュータプログラムは、前記コンピュータを、さらに、
前記第1のプロトコル情報の送信を要求する第1の情報要求を前記第1の通信装置に送信する第1の情報要求送信部と、
前記第2のプロトコル情報の送信を要求する第2の情報要求を前記第2の通信装置に送信する第2の情報要求送信部と、
して機能させ、
前記第1のプロトコル情報受信部は、
前記第1の情報要求が前記第1の通信装置に送信されることに応じて、前記第1の通信装置から前記第1のプロトコル情報を受信し、
前記第2のプロトコル情報受信部は、
前記第2の情報要求が前記第2の通信装置に送信されることに応じて、前記第2の通信装置から前記第2のプロトコル情報を受信する、項目9に記載のコンピュータプログラム。
(項目11)
前記第1のプロトコルは、SNMP(Simple Network Management Protocolの略)であり、
前記第2のプロトコルは、HTTPS(Hyper Text Transfer Protocol Secureの略)である、項目7から10のいずれか一項に記載のコンピュータプログラム。
Even if each claim is dependent on only some of the claims in the scope of claims as of the filing of this patent application, each claim can be dependent on only some of the claims. Not limited. To the extent not technically inconsistent, each claim may be dependent on other claims to which it was not dependent as filed. That is, the techniques of each claim can be combined in various ways as follows.
(Item 1)
A computer program for a terminal device,
The computer program causes the computer of the terminal device to run the following parts, namely:
when a first configuration instruction is obtained for sending a configuration command to a first communication device that supports a first protocol and does not support a second protocol; a first setting command transmitting unit that transmits a first setting command according to the first setting command to the first communication device, the first setting command being a first setting command that corresponds to a first OID ( Object ID) and a first setting value, and the first setting command sets the first setting value to the first setting value of the first communication device in association with the first OID. the first setting command transmitter, which is a command requesting writing to management information;
according to the second protocol when a second configuration instruction is obtained for transmitting a configuration command to a second communication device that supports the first protocol and the second protocol. a second setting command transmitter that transmits a second setting command to the second communication device, the second setting command including a second OID of the MIB, a second setting value, The second setting command is a command requesting to write the second setting value in the second management information of the second communication device in association with the second OID. 2 setting command transmitter,
A computer program that functions as
(Item 2)
The security level of the second protocol is higher than the security level of the first protocol,
The second management information of the second communication device stores, for each of the plurality of OIDs of the MIB, the OID, a setting value, and security information in association with each other,
The security information is
Prohibition information indicating that when a configuration command according to the first protocol is received from an external device, writing of a configuration value according to the configuration command is prohibited;
When a configuration command according to the first protocol is received from an external device, permission information indicating that writing of a setting value according to the configuration command is permitted;
The computer program according to item 1, which shows any of the following.
(Item 3)
The computer program further causes the computer to
a first protocol information receiving unit that receives first protocol information indicating a protocol supported by the first communication device;
a second protocol information receiving unit that receives second protocol information indicating a protocol supported by the second communication device;
function as
The first setting command transmitting unit is configured to acquire the first setting instruction, and the received first protocol information indicates that the first communication device supports the first protocol. and transmitting the first setting command to the first communication device when indicating that the second protocol is not supported;
The second setting command transmitting unit is configured to transmit the second setting instruction to the second communication device, and to transmit the received second protocol information to the second communication device. The computer program according to item 1 or 2, wherein the computer program transmits the second setting command to the second communication device when indicating that the second communication device supports a protocol.
(Item 4)
The computer program further causes the computer to
a first information request transmitter that transmits a first information request requesting transmission of the first protocol information to the first communication device;
a second information request transmitter that transmits a second information request requesting transmission of the second protocol information to the second communication device;
and make it work,
The first protocol information receiving unit receives the first protocol information from the first communication device in response to the first information request being sent to the first communication device,
The second protocol information receiving unit receives the second protocol information from the second communication device in response to the second information request being transmitted to the second communication device. 3. The computer program according to 3.
(Item 5)
The first protocol is SNMP (Simple Network Management Protocol),
4. The computer program according to any one of items 1 to 3, wherein the second protocol is HTTPS (abbreviation for Hyper Text Transfer Protocol Secure).
(Item 6)
The computer program further causes the computer to
If a first acquisition instruction for transmitting an acquisition command to the first communication device is acquired, a first acquisition command for transmitting a first acquisition command according to the first protocol to the first communication device. 1, the first acquisition command includes a third OID of the MIB, and the first acquisition command includes a third OID of the MIB, and the first acquisition command includes a third OID of the MIB. the first acquisition command transmitter, which is a command requesting transmission of a third setting value associated with the third OID;
a first response command reception that receives a first response command including the third set value from the first communication device when the first acquisition command is sent to the first communication device; Department and
a second acquisition command for transmitting a second acquisition command according to the second protocol to the second communication device when a second acquisition instruction for transmitting an acquisition command to the second communication device is acquired; 2, wherein the second acquisition command includes a fourth OID of the MIB, and the second acquisition command is associated with the fourth OID in the second management information. the second setting command transmitter, which is a command requesting transmission of a fourth setting value that has been set;
a second response command reception that receives a second response command including the fourth set value from the second communication device when the second acquisition command is sent to the second communication device; Department and
The computer program according to any one of items 1 to 5, which is made to function as a computer program.
(Item 7)
A computer program for a terminal device,
The computer program causes the computer of the terminal device to run the following parts, namely:
when a first acquisition instruction is obtained for sending an acquisition command to a first communication device that supports a first protocol and does not support a second protocol; a first acquisition command transmitting unit that transmits a first acquisition command according to the first acquisition command to the first communication device, the first acquisition command being a third OID (abbreviation for Management Information Base) of MIB (Management Information Base); Object ID), and the first acquisition command is a command requesting transmission of a third setting value associated with the third OID in the first management information of the first communication device. the first acquisition command transmitter,
a first response command reception that receives a first response command including the third set value from the first communication device when the first acquisition command is sent to the first communication device; Department and
according to the second protocol when a second acquisition instruction is acquired for transmitting an acquisition command to a second communication device that supports the first protocol and the second protocol; a second acquisition command transmitter that transmits a second acquisition command to the second communication device, wherein the second acquisition command includes a fourth OID of the MIB; the second acquisition command transmitter, which is a command requesting transmission of a fourth setting value associated with the fourth OID in the second management information of the second communication device;
a second response command reception that receives a second response command including the fourth set value from the second communication device when the second acquisition command is sent to the second communication device; Department and
A computer program that functions as
(Item 8)
The security level of the second protocol is higher than the security level of the first protocol,
The second management information of the second communication device stores, for each of the plurality of OIDs of the MIB, the OID, a setting value, and security information in association with each other,
The security information is
Prohibition information indicating that, when an acquisition command according to the first protocol is received from an external device, transmission of a response command including a setting value according to the acquisition command is prohibited;
permission information indicating that, when a configuration command according to the second protocol is received from an external device, transmission of a response command including a configuration value according to the acquisition command is permitted; The computer program according to item 7, which indicates any of the following.
(Item 9)
The computer program further causes the computer to
a first protocol information receiving unit that receives first protocol information indicating a protocol supported by the first communication device;
a second protocol information receiving unit that receives second protocol information indicating a protocol supported by the second communication device;
function as
The first acquisition command transmitter is configured to acquire the first acquisition instruction, and the received first protocol information indicates that the first communication device supports the first protocol. and transmitting the first acquisition command to the first communication device when indicating that the second protocol is not supported;
The second acquisition command transmitting unit is configured to transmit the second acquisition instruction to the second communication device, and to transmit the received second protocol information to the second communication device. The computer program according to item 7 or 8, wherein the computer program transmits the second acquisition command to the second communication device when indicating that the second communication device supports the above.
(Item 10)
The computer program further causes the computer to
a first information request transmitter that transmits a first information request requesting transmission of the first protocol information to the first communication device;
a second information request transmitter that transmits a second information request requesting transmission of the second protocol information to the second communication device;
and make it work,
The first protocol information receiving section includes:
receiving the first protocol information from the first communication device in response to the first information request being sent to the first communication device;
The second protocol information receiving section includes:
10. The computer program product according to item 9, receiving the second protocol information from the second communication device in response to the second information request being sent to the second communication device.
(Item 11)
The first protocol is SNMP (Simple Network Management Protocol),
11. The computer program according to any one of items 7 to 10, wherein the second protocol is HTTPS (abbreviation for Hyper Text Transfer Protocol Secure).
2:通信システム、6:LAN、10A:プリンタ、10B:プリンタ、34A:不揮発性メモリ、34B:不揮発性メモリ、36A:揮発性メモリ、36B:揮発性メモリ、38A:第1管理テーブル、38B:第2管理テーブル、100:端末装置、112:操作部、114:表示部、116:通信I/F、130:制御部、132:CPU、134:メモリ、136:OSプログラム、138:設定アプリケーション、150:端末装置 2: Communication system, 6: LAN, 10A: Printer, 10B: Printer, 34A: Nonvolatile memory, 34B: Nonvolatile memory, 36A: Volatile memory, 36B: Volatile memory, 38A: First management table, 38B: Second management table, 100: terminal device, 112: operation unit, 114: display unit, 116: communication I/F, 130: control unit, 132: CPU, 134: memory, 136: OS program, 138: setting application, 150: Terminal device
Claims (13)
前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、
第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に設定コマンドを送信するための第1の設定指示が取得される場合に、前記第1のプロトコルに従った第1の設定コマンドを前記第1の通信装置に送信する第1の設定コマンド送信部であって、前記第1の設定コマンドは、MIB(Management Information Baseの略)の第1のOID(Object IDの略)と、第1の設定値と、を含み、前記第1の設定コマンドは、前記第1のOIDに関連付けて前記第1の設定値を前記第1の通信装置の第1の管理情報に書き込むことを要求するコマンドである、前記第1の設定コマンド送信部と、
前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に設定コマンドを送信するための第2の設定指示が取得される場合に、前記第2のプロトコルに従った第2の設定コマンドを前記第2の通信装置に送信する第2の設定コマンド送信部であって、前記第2の設定コマンドは、前記MIBの第2のOIDと、第2の設定値と、を含み、前記第2の設定コマンドは、前記第2のOIDに関連付けて前記第2の設定値を前記第2の通信装置の第2の管理情報に書き込むことを要求するコマンドである、前記第2の設定コマンド送信部と、
として機能させる、コンピュータプログラム。 A computer program for a terminal device,
The computer program causes the computer of the terminal device to operate the following sections, namely:
when a first configuration instruction is obtained for sending a configuration command to a first communication device that supports a first protocol and does not support a second protocol; a first setting command transmitting unit that transmits a first setting command according to the first setting command to the first communication device, the first setting command being a first setting command that corresponds to a first OID ( Object ID) and a first setting value, and the first setting command sets the first setting value to the first setting value of the first communication device in association with the first OID. the first setting command transmitter, which is a command requesting writing to management information;
according to the second protocol when a second configuration instruction is obtained for transmitting a configuration command to a second communication device that supports the first protocol and the second protocol; a second setting command transmitter that transmits a second setting command to the second communication device, the second setting command including a second OID of the MIB, a second setting value, The second setting command is a command requesting to write the second setting value in the second management information of the second communication device in association with the second OID. 2 setting command transmitter,
A computer program that functions as
前記第2の通信装置の前記第2の管理情報は、前記MIBの複数個のOIDのそれぞれについて、当該OIDと、設定値と、セキュリティ情報と、を関連付けて記憶しており、
前記セキュリティ情報は、
外部装置から、前記第1のプロトコルに従った設定コマンドが受信される場合に、当該設定コマンドに応じた設定値の書き込みが禁止されていることを示す禁止情報と、
外部装置から、前記第1のプロトコルに従った設定コマンドが受信される場合に、当該設定コマンドに応じた設定値の書き込みが許可されていることを示す許可情報と、
のうちのいずれかを示す、請求項1に記載のコンピュータプログラム。 The security level of the second protocol is higher than the security level of the first protocol,
The second management information of the second communication device stores, for each of the plurality of OIDs of the MIB, the OID, a setting value, and security information in association with each other,
The security information is
Prohibition information indicating that when a configuration command according to the first protocol is received from an external device, writing of a configuration value according to the configuration command is prohibited;
When a configuration command according to the first protocol is received from an external device, permission information indicating that writing of a setting value according to the configuration command is permitted;
The computer program according to claim 1, which shows any of the following.
前記第1の通信装置がサポートしているプロトコルを示す第1のプロトコル情報を受信する第1のプロトコル情報受信部と、
前記第2の通信装置がサポートしているプロトコルを示す第2のプロトコル情報を受信する第2のプロトコル情報受信部と、
として機能させ、
前記第1の設定コマンド送信部は、前記第1の設定指示が取得され、かつ、受信済みの前記第1のプロトコル情報が、前記第1の通信装置が前記第1のプロトコルをサポートしていると共に前記第2のプロトコルをサポートしていないことを示す場合に、前記第1の設定コマンドを前記第1の通信装置に送信し、
前記第2の設定コマンド送信部は、前記第2の設定指示が取得され、かつ、受信済みの前記第2のプロトコル情報が、前記第2の通信装置が前記第1のプロトコルと前記第2のプロトコルとをサポートしていることを示す場合に、前記第2の設定コマンドを前記第2の通信装置に送信する、請求項1に記載のコンピュータプログラム。 The computer program further causes the computer to
a first protocol information receiving unit that receives first protocol information indicating a protocol supported by the first communication device;
a second protocol information receiving unit that receives second protocol information indicating a protocol supported by the second communication device;
function as
The first setting command transmitting unit is configured to acquire the first setting instruction, and the received first protocol information indicates that the first communication device supports the first protocol. and transmitting the first setting command to the first communication device when indicating that the second protocol is not supported;
The second setting command transmitting unit is configured to transmit the second setting instruction to the second communication device, and to transmit the received second protocol information to the second communication device. The computer program product according to claim 1, wherein the computer program product transmits the second setting command to the second communication device when indicating that the second communication device supports a protocol.
前記第1のプロトコル情報の送信を要求する第1の情報要求を前記第1の通信装置に送信する第1の情報要求送信部と、
前記第2のプロトコル情報の送信を要求する第2の情報要求を前記第2の通信装置に送信する第2の情報要求送信部と、
として機能させ、
前記第1のプロトコル情報受信部は、前記第1の情報要求が前記第1の通信装置に送信されることに応じて、前記第1の通信装置から前記第1のプロトコル情報を受信し、
前記第2のプロトコル情報受信部は、前記第2の情報要求が前記第2の通信装置に送信されることに応じて、前記第2の通信装置から前記第2のプロトコル情報を受信する、請求項3に記載のコンピュータプログラム。 The computer program further causes the computer to
a first information request transmitter that transmits a first information request requesting transmission of the first protocol information to the first communication device;
a second information request transmitter that transmits a second information request requesting transmission of the second protocol information to the second communication device;
function as
The first protocol information receiving unit receives the first protocol information from the first communication device in response to the first information request being sent to the first communication device,
The second protocol information receiving unit receives the second protocol information from the second communication device in response to the second information request being transmitted to the second communication device. The computer program according to item 3.
前記第2のプロトコルは、HTTPS(Hyper Text Transfer Protocol Secureの略)である、請求項1に記載のコンピュータプログラム。 The first protocol is SNMP (Simple Network Management Protocol),
The computer program product according to claim 1, wherein the second protocol is HTTPS (abbreviation for Hyper Text Transfer Protocol Secure).
取得コマンドを前記第1の通信装置に送信するための第1の取得指示が取得される場合に、前記第1のプロトコルに従った第1の取得コマンドを前記第1の通信装置に送信する第1の取得コマンド送信部であって、前記第1の取得コマンドは、前記MIBの第3のOIDを含み、前記第1の取得コマンドは、前記第1の通信装置の前記第1の管理情報において前記第3のOIDに関連付けられている第3の設定値の送信を要求するコマンドである、前記第1の取得コマンド送信部と、
前記第1の取得コマンドが前記第1の通信装置に送信される場合に、前記第1の通信装置から、前記第3の設定値を含む第1の応答コマンドを受信する第1の応答コマンド受信部と、
取得コマンドを前記第2の通信装置に送信するための第2の取得指示が取得される場合に、前記第2のプロトコルに従った第2の取得コマンドを前記第2の通信装置に送信する第2の取得コマンド送信部であって、前記第2の取得コマンドは、前記MIBの第4のOIDを含み、前記第2の取得コマンドは、前記第2の管理情報において前記第4のOIDに関連付けられている第4の設定値の送信を要求するコマンドである、前記第2の設定コマンド送信部と、
前記第2の取得コマンドが前記第2の通信装置に送信される場合に、前記第2の通信装置から、前記第4の設定値を含む第2の応答コマンドを受信する第2の応答コマンド受信部と、
として機能させる、請求項1に記載のコンピュータプログラム。 The computer program further causes the computer to
If a first acquisition instruction for transmitting an acquisition command to the first communication device is acquired, a first acquisition command for transmitting a first acquisition command according to the first protocol to the first communication device. 1, the first acquisition command includes a third OID of the MIB, and the first acquisition command includes a third OID of the MIB, and the first acquisition command includes a third OID of the MIB. the first acquisition command transmitter, which is a command requesting transmission of a third setting value associated with the third OID;
a first response command reception that receives a first response command including the third set value from the first communication device when the first acquisition command is sent to the first communication device; Department and
a second acquisition command for transmitting a second acquisition command according to the second protocol to the second communication device when a second acquisition instruction for transmitting an acquisition command to the second communication device is acquired; 2, wherein the second acquisition command includes a fourth OID of the MIB, and the second acquisition command is associated with the fourth OID in the second management information. the second setting command transmitter, which is a command requesting transmission of a fourth setting value that has been set;
a second response command reception that receives a second response command including the fourth set value from the second communication device when the second acquisition command is sent to the second communication device; Department and
The computer program according to claim 1, which functions as a computer program.
前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、
第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に取得コマンドを送信するための第1の取得指示が取得される場合に、前記第1のプロトコルに従った第1の取得コマンドを前記第1の通信装置に送信する第1の取得コマンド送信部であって、前記第1の取得コマンドは、MIB(Management Information Baseの略)の第3のOID(Object IDの略)を含み、前記第1の取得コマンドは、前記第1の通信装置の第1の管理情報において前記第3のOIDに関連付けられている第3の設定値の送信を要求するコマンドである、前記第1の取得コマンド送信部と、
前記第1の取得コマンドが前記第1の通信装置に送信される場合に、前記第1の通信装置から、前記第3の設定値を含む第1の応答コマンドを受信する第1の応答コマンド受信部と、
前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に取得コマンドを送信するための第2の取得指示が取得される場合に、前記第2のプロトコルに従った第2の取得コマンドを前記第2の通信装置に送信する第2の取得コマンド送信部であって、前記第2の取得コマンドは、前記MIBの第4のOIDを含み、前記第2の取得コマンドは、前記第2の通信装置の第2の管理情報において前記第4のOIDに関連付けられている第4の設定値の送信を要求するコマンドである、前記第2の取得コマンド送信部と、
前記第2の取得コマンドが前記第2の通信装置に送信される場合に、前記第2の通信装置から、前記第4の設定値を含む第2の応答コマンドを受信する第2の応答コマンド受信部と、
として機能させる、コンピュータプログラム。 A computer program for a terminal device,
The computer program causes the computer of the terminal device to run the following parts, namely:
when a first acquisition instruction is obtained for sending an acquisition command to a first communication device that supports a first protocol and does not support a second protocol; a first acquisition command transmitting unit that transmits a first acquisition command according to the first acquisition command to the first communication device, the first acquisition command being a third OID (abbreviation for Management Information Base) of MIB (Management Information Base); Object ID), and the first acquisition command is a command requesting transmission of a third setting value associated with the third OID in the first management information of the first communication device. the first acquisition command transmitter,
a first response command reception that receives a first response command including the third set value from the first communication device when the first acquisition command is sent to the first communication device; Department and
according to the second protocol when a second acquisition instruction is acquired for transmitting an acquisition command to a second communication device that supports the first protocol and the second protocol; a second acquisition command transmitter that transmits a second acquisition command to the second communication device, wherein the second acquisition command includes a fourth OID of the MIB; the second acquisition command transmitter, which is a command requesting transmission of a fourth setting value associated with the fourth OID in the second management information of the second communication device;
a second response command reception that receives a second response command including the fourth set value from the second communication device when the second acquisition command is sent to the second communication device; Department and
A computer program that functions as
前記第2の通信装置の前記第2の管理情報は、前記MIBの複数個のOIDのそれぞれについて、当該OIDと、設定値と、セキュリティ情報と、を関連付けて記憶しており、
前記セキュリティ情報は、
外部装置から、前記第1のプロトコルに従った取得コマンドが受信される場合に、当該取得コマンドに応じた設定値を含む応答コマンドの送信が禁止されていることを示す禁止情報と、
外部装置から、前記第2のプロトコルに従った設定コマンドが受信される場合に、当該取得コマンドに応じた設定値を含む応答コマンドの送信が許可されていることを示す許可情報と、
のうちのいずれかを示す、請求項7に記載のコンピュータプログラム。 The security level of the second protocol is higher than the security level of the first protocol,
The second management information of the second communication device stores, for each of the plurality of OIDs of the MIB, the OID, a setting value, and security information in association with each other,
The security information is
Prohibition information indicating that, when an acquisition command according to the first protocol is received from an external device, transmission of a response command including a setting value according to the acquisition command is prohibited;
permission information indicating that, when a configuration command according to the second protocol is received from an external device, transmission of a response command including a configuration value according to the acquisition command is permitted;
The computer program according to claim 7, which shows any of the following.
前記第1の通信装置がサポートしているプロトコルを示す第1のプロトコル情報を受信する第1のプロトコル情報受信部と、
前記第2の通信装置がサポートしているプロトコルを示す第2のプロトコル情報を受信する第2のプロトコル情報受信部と、
として機能させ、
前記第1の取得コマンド送信部は、前記第1の取得指示が取得され、かつ、受信済みの前記第1のプロトコル情報が、前記第1の通信装置が前記第1のプロトコルをサポートしていると共に前記第2のプロトコルをサポートしていないことを示す場合に、前記第1の取得コマンドを前記第1の通信装置に送信し、
前記第2の取得コマンド送信部は、前記第2の取得指示が取得され、かつ、受信済みの前記第2のプロトコル情報が、前記第2の通信装置が前記第1のプロトコルと前記第2のプロトコルとをサポートしていることを示す場合に、前記第2の取得コマンドを前記第2の通信装置に送信する、請求項7に記載のコンピュータプログラム。 The computer program further causes the computer to
a first protocol information receiving unit that receives first protocol information indicating a protocol supported by the first communication device;
a second protocol information receiving unit that receives second protocol information indicating a protocol supported by the second communication device;
function as
The first acquisition command transmitter is configured to acquire the first acquisition instruction, and the received first protocol information indicates that the first communication device supports the first protocol. and transmitting the first acquisition command to the first communication device when indicating that the second protocol is not supported;
The second acquisition command transmitting unit is configured to transmit the second acquisition instruction to the second communication device, and to transmit the received second protocol information to the second communication device. 8. The computer program product according to claim 7, wherein the computer program product transmits the second acquisition command to the second communication device when indicating that the second communication device supports a protocol.
前記第1のプロトコル情報の送信を要求する第1の情報要求を前記第1の通信装置に送信する第1の情報要求送信部と、
前記第2のプロトコル情報の送信を要求する第2の情報要求を前記第2の通信装置に送信する第2の情報要求送信部と、
として機能させ、
前記第1のプロトコル情報受信部は、前記第1の情報要求が前記第1の通信装置に送信されることに応じて、前記第1の通信装置から前記第1のプロトコル情報を受信し、
前記第2のプロトコル情報受信部は、前記第2の情報要求が前記第2の通信装置に送信されることに応じて、前記第2の通信装置から前記第2のプロトコル情報を受信する、請求項9に記載のコンピュータプログラム。 The computer program further causes the computer to
a first information request transmitter that transmits a first information request requesting transmission of the first protocol information to the first communication device;
a second information request transmitter that transmits a second information request requesting transmission of the second protocol information to the second communication device;
function as
The first protocol information receiving unit receives the first protocol information from the first communication device in response to the first information request being sent to the first communication device,
The second protocol information receiving unit receives the second protocol information from the second communication device in response to the second information request being transmitted to the second communication device. The computer program according to item 9.
前記第2のプロトコルは、HTTPS(Hyper Text Transfer Protocol Secureの略)である、請求項7に記載のコンピュータプログラム。 The first protocol is SNMP (Simple Network Management Protocol),
The computer program product according to claim 7, wherein the second protocol is HTTPS (abbreviation for Hyper Text Transfer Protocol Secure).
第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に設定コマンドを送信するための第1の設定指示が取得される場合に、前記第1のプロトコルに従った第1の設定コマンドを前記第1の通信装置に送信する第1の設定コマンド送信部であって、前記第1の設定コマンドは、MIB(Management Information Baseの略)の第1のOID(Object IDの略)と、第1の設定値と、を含み、前記第1の設定コマンドは、前記第1のOIDに関連付けて前記第1の設定値を前記第1の通信装置の第1の管理情報に書き込むことを要求するコマンドである、前記第1の設定コマンド送信部と、
前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に設定コマンドを送信するための第2の設定指示が取得される場合に、前記第2のプロトコルに従った第2の設定コマンドを前記第2の通信装置に送信する第2の設定コマンド送信部であって、前記第2の設定コマンドは、前記MIBの第2のOIDと、第2の設定値と、を含み、前記第2の設定コマンドは、前記第2のOIDに関連付けて前記第2の設定値を前記第2の通信装置の第2の管理情報に書き込むことを要求するコマンドである、前記第2の設定コマンド送信部と、
を備える、端末装置。 A terminal device,
when a first configuration instruction is obtained for sending a configuration command to a first communication device that supports a first protocol and does not support a second protocol; a first setting command transmitting unit that transmits a first setting command according to the first setting command to the first communication device, the first setting command being a first setting command that corresponds to a first OID ( Object ID) and a first setting value, and the first setting command sets the first setting value to the first setting value of the first communication device in association with the first OID. the first setting command transmitter, which is a command requesting writing to management information;
according to the second protocol when a second configuration instruction is obtained for transmitting a configuration command to a second communication device that supports the first protocol and the second protocol. a second setting command transmitter that transmits a second setting command to the second communication device, the second setting command including a second OID of the MIB, a second setting value, The second setting command is a command requesting to write the second setting value in the second management information of the second communication device in association with the second OID. 2 setting command transmitter,
A terminal device comprising:
第1のプロトコルをサポートしていると共に第2のプロトコルをサポートしていない第1の通信装置に取得コマンドを送信するための第1の取得指示が取得される場合に、前記第1のプロトコルに従った第1の取得コマンドを前記第1の通信装置に送信する第1の取得コマンド送信部であって、前記第1の取得コマンドは、MIB(Management Information Baseの略)の第3のOID(Object IDの略)を含み、前記第1の取得コマンドは、前記第1の通信装置の第1の管理情報において前記第3のOIDに関連付けられている第3の設定値の送信を要求するコマンドである、前記第1の取得コマンド送信部と、
前記第1の取得コマンドが前記第1の通信装置に送信される場合に、前記第1の通信装置から、前記第3の設定値を含む第1の応答コマンドを受信する第1の応答コマンド受信部と、
前記第1のプロトコルと前記第2のプロトコルとをサポートしている第2の通信装置に取得コマンドを送信するための第2の取得指示が取得される場合に、前記第2のプロトコルに従った第2の取得コマンドを前記第2の通信装置に送信する第2の取得コマンド送信部であって、前記第2の取得コマンドは、前記MIBの第4のOIDを含み、前記第2の取得コマンドは、前記第2の通信装置の第2の管理情報において前記第4のOIDに関連付けられている第4の設定値の送信を要求するコマンドである、前記第2の取得コマンド送信部と、
前記第2の取得コマンドが前記第2の通信装置に送信される場合に、前記第2の通信装置から、前記第4の設定値を含む第2の応答コマンドを受信する第2の応答コマンド受信部と、
を備える、端末装置。
A terminal device,
when a first acquisition instruction is obtained for sending an acquisition command to a first communication device that supports a first protocol and does not support a second protocol; a first acquisition command transmitting unit that transmits a first acquisition command according to the first acquisition command to the first communication device, the first acquisition command being a third OID (abbreviation for Management Information Base) of MIB (Management Information Base); Object ID), and the first acquisition command is a command requesting transmission of a third setting value associated with the third OID in the first management information of the first communication device. the first acquisition command transmitter,
a first response command reception that receives a first response command including the third set value from the first communication device when the first acquisition command is sent to the first communication device; Department and
according to the second protocol when a second acquisition instruction is acquired for transmitting an acquisition command to a second communication device that supports the first protocol and the second protocol; a second acquisition command transmitter that transmits a second acquisition command to the second communication device, wherein the second acquisition command includes a fourth OID of the MIB; the second acquisition command transmitter, which is a command requesting transmission of a fourth setting value associated with the fourth OID in the second management information of the second communication device;
a second response command reception that receives a second response command including the fourth set value from the second communication device when the second acquisition command is sent to the second communication device; Department and
A terminal device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022121742A JP2024018411A (en) | 2022-07-29 | 2022-07-29 | Computer program for terminal device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022121742A JP2024018411A (en) | 2022-07-29 | 2022-07-29 | Computer program for terminal device and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2024018411A true JP2024018411A (en) | 2024-02-08 |
Family
ID=89807448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022121742A Pending JP2024018411A (en) | 2022-07-29 | 2022-07-29 | Computer program for terminal device and terminal device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2024018411A (en) |
-
2022
- 2022-07-29 JP JP2022121742A patent/JP2024018411A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7158783B2 (en) | Radio device communication setting method of switching from first setting information to second setting information | |
JP5300562B2 (en) | Information processing apparatus, information processing method, and program | |
JP4865299B2 (en) | Information processing apparatus, information processing method, and program thereof | |
JP4960782B2 (en) | Information processing apparatus and method and program for controlling the same | |
EP3161647B1 (en) | Information processing apparatus, and information processing system | |
US20070076244A1 (en) | Electronic apparatus, electronic apparatus system, control method and computer-readable storage medium | |
JP2019036062A (en) | Communication device | |
WO2008069080A2 (en) | Management apparatus and method thereof | |
JP2012124903A (en) | Image forming apparatus, host device, and connection method thereof | |
JP2007066076A (en) | Server device and event report method | |
JP7135635B2 (en) | Computer program for printers and terminals | |
US20030048303A1 (en) | Destination direction for push scanning to at least one of multiple destinations | |
US20070013949A1 (en) | Network image forming device and user terminal device for displaying device information and method thereof | |
JP2024018411A (en) | Computer program for terminal device and terminal device | |
JP7452198B2 (en) | Function execution device and computer program for the function execution device | |
JP2024018408A (en) | Computer program for terminal device and terminal device | |
JP4498045B2 (en) | Image processing apparatus, control method therefor, and program | |
JP7180097B2 (en) | Communication device and computer program for the communication device | |
JP4368776B2 (en) | Network device, network device control method, program, and recording medium | |
JP6507916B2 (en) | Communication equipment | |
JP2015195533A (en) | communication device | |
JP6776779B2 (en) | Communication device | |
JP2024018396A (en) | Communication device and computer program for communication device and method executed by communication device | |
JP2024018388A (en) | Communication device and computer program for communication device and method executed by communication device | |
JP4378338B2 (en) | Information processing apparatus, device setting method, storage medium, and program |