JP2024018411A - Computer program for terminal device and terminal device - Google Patents

Computer program for terminal device and terminal device Download PDF

Info

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
Application number
JP2022121742A
Other languages
Japanese (ja)
Inventor
哲 柳
宗久 松田
清孝 大原
勝則 榎本
光樹 伊津見
匡平 森
英樹 野川
哲也 奥野
聡 松下
裕紀 矢田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2022121742A priority Critical patent/JP2024018411A/en
Publication of JP2024018411A publication Critical patent/JP2024018411A/en
Pending legal-status Critical Current

Links

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).

特開2009-211175号公報Japanese Patent Application Publication No. 2009-211175

本明細書では、端末装置が適切なプロトコルを利用して通信装置との通信を実行可能な技術を提供する。 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.

通信システムの構成を示す図である。FIG. 1 is a diagram showing the configuration of a communication system. 各テーブルの一例を示す図である。It is a figure showing an example of each table. コマンド処理のフローチャートを示す図である。FIG. 3 is a diagram showing a flowchart of command processing. SNMP処理のフローチャートを示す図である。It is a figure which shows the flowchart of SNMP processing. HTTPS処理のフローチャートを示す図である。It is a figure which shows the flowchart of HTTPS processing. HTTPSが利用される場合のケースA、ケースBのシーケンスを示す図である。It is a diagram showing the sequence of case A and case B when HTTPS is used. SNMPが利用される場合のケースC、ケースDのシーケンスを示す図である。It is a figure which shows the sequence of case C and case D when SNMP is used. 比較例において、設定値の書き込みが失敗するケースのシーケンスを示す図である。FIG. 7 is a diagram illustrating a sequence in a case where writing of a setting value fails in a comparative example.

(通信システム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 printers 10A and 10B and a terminal device 100. The devices 10A, 10B, and 100 are connected to a LAN (abbreviation for Local Area Network) 6 and can communicate with each other via the LAN 6. The LAN 6 may be a wired LAN or a wireless LAN. In this embodiment, the printers 10A and 10B write or transmit setting values in response to a request command (that is, a SET command, a POST command, or a GET command, which will be described later) from the terminal device 100. .

(プリンタ10A、10Bの構成)
各プリンタ10A、10Bは、印刷機能を実行可能な周辺装置(例えば端末装置100の周辺装置)である。変形例では、各プリンタ10A、10Bは、印刷機能に加えて、スキャン機能、FAX機能等を実行可能な多機能機であってもよい。
(Configuration of printers 10A and 10B)
Each printer 10A, 10B is a peripheral device (for example, a peripheral device of the terminal device 100) that can execute a printing function. In a modified example, each of the printers 10A and 10B may be a multi-function device that can perform a scanning function, a FAX function, etc. in addition to a printing function.

プリンタ10Aは、SNMP(Simple Network Management Protocolの略)をサポートしていると共にHTTPS(Hyper Text Transfer Protocol Secureの略)をサポートしていない。SNMP及びHTTPSについては後で詳しく説明する。 The printer 10A supports SNMP (abbreviation for Simple Network Management Protocol) and does not support HTTPS (abbreviation for Hyper Text Transfer Protocol Secure). SNMP and HTTPS will be explained in detail later.

プリンタ10Aは、不揮発性メモリ34Aと揮発性メモリ36Aとを備える。不揮発性メモリ34Aは、プリンタ10Aの電源がOFFされても、記憶済みの情報が消去されないメモリである。不揮発性メモリ34Aは、第1管理テーブル38Aを記憶する。揮発性メモリ36Aは、プリンタ10Aの電源がOFFされると、記憶済みの情報が消去されるメモリである。揮発性メモリ36Aは、プリンタ10Aが処理を実行する過程で必要な情報を一時的に記憶する。 The printer 10A includes a nonvolatile memory 34A and a volatile memory 36A. The nonvolatile memory 34A is a memory whose stored information is not erased even if the printer 10A is powered off. The nonvolatile memory 34A stores a first management table 38A. The volatile memory 36A is a memory whose stored information is erased when the printer 10A is powered off. The volatile memory 36A temporarily stores information necessary for the printer 10A to perform processing.

プリンタ10Bは、SNMPをサポートしていると共にHTTPSをサポートしている。プリンタ10Bは、第2管理テーブル38Bが記憶されている不揮発性メモリ34Bと、揮発性メモリ36Bと、を備える。以下では、プリンタ10A、10Bを総称して、「プリンタ10」と記載することがある。 The printer 10B supports SNMP as well as HTTPS. The printer 10B includes a nonvolatile memory 34B in which a second management table 38B is stored, and a volatile memory 36B. Below, printers 10A and 10B may be collectively referred to as "printer 10."

(端末装置100の構成)
端末装置100は、デスクトップPC、ノートPC、タブレットPC、携帯電話(例えばスマートフォン)等のユーザ端末である。端末装置100は、操作部112と、表示部114と、通信インターフェース116と、制御部130と、を備えている。以下では、インターフェースを「I/F」と記載する。
(Configuration of terminal device 100)
The terminal device 100 is a user terminal such as a desktop PC, a notebook PC, a tablet PC, or a mobile phone (for example, a smartphone). The terminal device 100 includes an operation section 112, a display section 114, a communication interface 116, and a control section 130. Hereinafter, the interface will be referred to as "I/F".

操作部112は、様々な指示を端末装置100に入力するためのI/Fである。表示部114は、様々な情報を表示するためのディスプレイである。表示部114は、いわゆるタッチパネルであり、操作部としても機能する。通信I/F116は、LAN6に接続されている。通信I/F116は、無線I/Fであってもよいし、有線I/Fであってもよい。 The operation unit 112 is an I/F for inputting various instructions to the terminal device 100. The display unit 114 is a display for displaying various information. The display section 114 is a so-called touch panel, and also functions as an operation section. Communication I/F 116 is connected to LAN 6. Communication I/F 116 may be a wireless I/F or a wired I/F.

制御部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 control unit 130 includes a CPU 132 and a memory 134. CPU 132 executes various processes according to programs 136 and 138 stored in memory 134. The memory 134 is composed of volatile memory, nonvolatile memory, and the like. The memory 134 stores an OS (abbreviation for operating system) program 136 and a setting application 138. In the following, the settings application 138 will be referred to as "application 138." The OS program 136 is a program for controlling the basic operations of the terminal device 100. The application 138 is an application for managing the printer 10 using the terminal device 100. Although not shown, the memory 134 stores information contents and OIDs in association with each other, similar to the first management table 38A of the printer 10A.

(第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 printer 10A and the second management table 38B stored in the nonvolatile memory 34B of the printer 10B will be described.

第1管理テーブル38Aは、プリンタ10Aの様々な情報を記憶するためのテーブルである。当該情報は、例えば、プリンタ10Aの管理者アドレス、消耗品残量、MACアドレス等を含む。 The first management table 38A is a table for storing various information about the printer 10A. The information includes, for example, the administrator address of the printer 10A, the remaining amount of consumables, the MAC address, and the like.

第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 printer 10A to perform communication. The communication settings include the IP address of the printer 10A, Proxy settings, etc. Information not illustrated in FIG. 2 includes APIPA (abbreviation for Automatic Private IP Addressing) settings, Network Reset, Reboot (i.e. restart), installation location of printer 10A, access destination, error history, status (printing in progress, standby, etc.). ), print settings (for example, default print resolution), etc. The first management table 38A stores the above-described various information using a tree structure (that is, a hierarchical structure). A collection of various information having this tree structure is called "MIB" (abbreviation for Management Information Base).

具体的には、第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 printer 10B. In this embodiment, the information stored in the second management table 38B is the same as the information stored in the first management table 38A. Note that in a modification, the information stored in the second management table 38B and the information stored in the first management table 38A may be different.

第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 printer 10A, 10B and terminal device 100)
The communication protocol for communicating MIB values between the printer 10A, etc. and the terminal device 100 is a protocol that follows UDP (abbreviation for User Datagram Protocol) of the transport layer of the OSI (abbreviation for Open Systems Interconnection) reference model. is widely known. Specifically, SNMP (abbreviation for Simple Network Management Protocol) is known. In this embodiment, the terminal device 100 uses, in addition to SNMP, a communication protocol that follows TCP (abbreviation for Transmission Control Protocol) of the transport layer of the OSI reference model as a communication protocol for communicating MIB values. . Specifically, HTTPS (abbreviation for Hyper Text Transfer Protocol Secure) is used. HTTPS has a higher level of security than SNMP because it employs user authentication and data encryption.

図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 printer 10B allows the MIB value to be written or transmitted when a request command according to HTTPS is received.

(端末装置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 CPU 132 of the terminal device 100 according to the application 138 will be described. The process in FIG. 3 is executed in response to the application 138 being launched. Note that since all communications in the embodiment are performed via the communication interface 116, a description of "via the communication interface 116" will be omitted below.

S10において、CPU132は、通信対象のプリンタ(以下では「対象プリンタ」と記載する)を選択するための操作(以下では、「プリンタ選択操作」と記載する)を受付けることを監視する。CPU132は、プリンタ選択操作を受付ける場合に、S10でYESと判断して、S12に進む。プリンタ選択操作は、LAN6に接続されているプリンタを検索するための操作を含む。CPU132は、当該操作を受付けると、LAN6に接続されているプリンタを検索し、LAN6に接続されているプリンタのリストを表示する。プリンタ選択操作は、さらに、当該リストに表示されている1以上のプリンタの中から、対象プリンタを選択する操作を含む。 In S10, the CPU 132 monitors acceptance of an operation (hereinafter referred to as a "printer selection operation") for selecting a printer to be communicated with (hereinafter referred to as a "target printer"). When accepting the printer selection operation, the CPU 132 determines YES in S10 and proceeds to S12. The printer selection operation includes an operation for searching for printers connected to the LAN 6. Upon receiving the operation, the CPU 132 searches for printers connected to the LAN 6 and displays a list of printers connected to the LAN 6. The printer selection operation further includes an operation of selecting a target printer from among the one or more printers displayed in the list.

S12において、CPU132は、プロトコル決定処理を実行する。プロトコル決定処理は、対象プリンタとの通信に利用する通信プロトコル(以下では、「利用プロトコル」と記載する)を決定するための処理である。具体的には、CPU132は、能力情報要求を対象プリンタに送信する。能力情報要求は、対象プリンタがサポートしているプロトコルを示す情報を含む能力情報の送信を要求するためのコマンドである。対象プリンタは、端末装置100から能力情報要求を受信する場合に、対象プリンタがサポートしている各プロトコルを示す情報を含む能力情報を端末装置100に送信する。なお、能力情報要求の送信、及び、能力情報の受信は、SNMPを利用して実行される。 In S12, the CPU 132 executes protocol determination processing. The protocol determination process is a process for determining a communication protocol (hereinafter referred to as "protocol to be used") to be used for communication with the target printer. Specifically, the CPU 132 transmits a capability information request to the target printer. The capability information request is a command for requesting transmission of capability information including information indicating protocols supported by the target printer. When the target printer receives a capability information request from the terminal device 100, the target printer transmits capability information including information indicating each protocol supported by the target printer to the terminal device 100. Note that the transmission of the capability information request and the reception of the capability information are performed using SNMP.

例えば、プリンタ10Aが対象プリンタである場合、対象プリンタは、対象プリンタがSNMPをサポートしていることを示す情報を含む能力情報を端末装置100に送信する。当該能力情報は、HTTPSをサポートしていることを示す情報を含まない。また、プリンタ10Bが対象プリンタである場合、対象プリンタは、対象プリンタがSNMPとHTTPSをサポートしていることを示す情報を含む能力情報を端末装置100に送信する。CPU132は、能力情報を利用して、利用プロトコルを決定する。受信済みの能力情報が、SNMPのみをサポートしていることを示す場合、CPU132は、SNMPを利用プロトコルとして決定する。受信済みの能力情報が、SNMPとHTTPSとをサポートしていることを示す場合、CPU132は、高いセキュリティレベルを有するHTTPSを利用プロトコルとして決定する。このように、CPU132は、対象プリンタの能力情報に従って、利用プロトコルを適切に決定することができる。 For example, when the printer 10A is the target printer, the target printer transmits capability information including information indicating that the target printer supports SNMP to the terminal device 100. The capability information does not include information indicating that HTTPS is supported. Further, when the printer 10B is the target printer, the target printer transmits capability information including information indicating that the target printer supports SNMP and HTTPS to the terminal device 100. The CPU 132 uses the capability information to determine the protocol to be used. If the received capability information indicates that only SNMP is supported, the CPU 132 determines SNMP as the protocol to be used. If the received capability information indicates that SNMP and HTTPS are supported, the CPU 132 determines HTTPS, which has a high security level, as the protocol to be used. In this manner, the CPU 132 can appropriately determine the protocol to be used according to the capability information of the target printer.

S14において、CPU132は、S12で決定された利用プロトコルがSNMPであるのか否かを判断する。CPU132は、利用プロトコルがSNMPである場合(S14でYES)に、S20に進み、利用プロトコルがSNMPでない場合、即ち、利用プロトコルがHTTPSである場合(S14でNO)に、S30に進む。 In S14, the CPU 132 determines whether the protocol to be used determined in S12 is SNMP. When the usage protocol is SNMP (YES in S14), the CPU 132 proceeds to S20, and when the usage protocol is not SNMP, that is, when the usage protocol is HTTPS (NO in S14), the process proceeds to S30.

S20において、CPU132は、SNMP処理を実行する。SNMP処理は、SNMPに従って、端末装置100と対象プリンタとの間で通信が実行される処理である。CPU132は、S20が終了すると、図3の処理を終了する。 In S20, the CPU 132 executes SNMP processing. The SNMP process is a process in which communication is executed between the terminal device 100 and the target printer according to SNMP. Upon completion of S20, the CPU 132 ends the process of FIG.

S30において、CPU132は、HTTPS処理を実行する。HTTPS処理は、HTTPSに従って、端末装置100と対象プリンタとの間で通信が実行される処理である。CPU132は、S30が終了すると、図3の処理を終了する。 In S30, the CPU 132 executes HTTPS processing. The HTTPS process is a process in which communication is performed between the terminal device 100 and the target printer according to HTTPS. Upon completion of S30, the CPU 132 ends the process of FIG.

(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 CPU 132 monitors acceptance of the setting operation. The setting operation in the SNMP process includes an operation of specifying information to be set (for example, an IP address), and an operation of specifying a changed character string for the specified information. When accepting a setting operation (YES in S50), the CPU 132 determines that a setting instruction has been acquired, and proceeds to S52.

S52において、CPU132は、設定操作で指定された情報のOIDと、設定操作で指定された文字列と、を含むSETコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からSETコマンドを受信する場合に、当該SETコマンド内のOIDと文字列とを特定する。そして、対象プリンタは、特定済みのOIDに関連付けて、特定済みの文字列をMIB値として、対象プリンタの管理テーブル(以下では、「対象管理テーブル」と記載する)に書き込む。そして、対象プリンタは、設定操作で指定された情報のOIDと、MIB値の書き込みが完了したことを示すステータス情報と、を含む応答コマンドを端末装置100に送信する。 In S52, the CPU 132 sends a SET command including the OID of the information specified in the setting operation and the character string specified in the setting operation to the target printer. When receiving a SET command from the terminal device 100, the target printer identifies the OID and character string in the SET command. Then, the target printer writes the identified character string as an MIB value in a management table (hereinafter referred to as "target management table") of the target printer in association with the identified OID. The target printer then transmits to the terminal device 100 a response command that includes the OID of the information specified in the setting operation and status information indicating that writing of the MIB value has been completed.

S54において、CPU132は、対象プリンタから応答コマンドを受信する。CPU132は、S54が終了すると、S50に戻る。 In S54, the CPU 132 receives a response command from the target printer. Upon completion of S54, the CPU 132 returns to S50.

また、CPU132は、S50の監視と同時的に、S60において、取得操作を受付けることを監視する。SNMP処理における取得操作は、取得対象の情報(例えば、IPアドレス)を指定する操作を含む。CPU132は、取得操作を受付ける場合(S60でYES)に、取得指示が取得されたと判断し、S62に進む。 Further, at the same time as monitoring S50, the CPU 132 monitors acceptance of an acquisition operation in S60. The acquisition operation in the SNMP process includes an operation of specifying information to be acquired (for example, an IP address). When accepting the acquisition operation (YES in S60), the CPU 132 determines that the acquisition instruction has been acquired, and proceeds to S62.

S62において、CPU132は、取得操作で指定された情報のOIDを含むGETコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からGETコマンドを受信する場合に、対象管理テーブルから、当該GETコマンドに含まれるOIDに関連付けられているMIB値を取得する。そして、CPU132は、取得済みのMIB値を含む応答コマンドを端末装置100に送信する。 In S62, the CPU 132 sends a GET command including the OID of the information specified in the acquisition operation to the target printer. When receiving a GET command from the terminal device 100, the target printer acquires the MIB value associated with the OID included in the GET command from the target management table. Then, the CPU 132 transmits a response command including the acquired MIB value to the terminal device 100.

S64において、CPU132は、対象プリンタから応答コマンドを受信する。また、CPU132は、当該応答コマンド内の情報を表示部114に表示させる。これにより、ユーザは、対象プリンタ内の設定を知ることができる。CPU132は、S64が終了すると、S50に戻る。 In S64, the CPU 132 receives a response command from the target printer. Further, the CPU 132 causes the display unit 114 to display information in the response command. This allows the user to know the settings within the target printer. Upon completion of S64, the CPU 132 returns to S50.

また、CPU132は、S50及びS60の監視と同時的に、S70において、プリンタ選択操作を受付けることを監視する。CPU132は、プリンタ選択操作を受付ける場合(S70でYES)に、図3のS12に戻る。 Further, at the same time as monitoring S50 and S60, the CPU 132 monitors acceptance of a printer selection operation in S70. If the CPU 132 accepts the printer selection operation (YES in S70), the process returns to S12 in FIG.

(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 CPU 132 monitors acceptance of the setting operation. Setting operations in HTTPS processing include an operation of specifying information to be set (for example, an IP address), an operation of specifying a changed character string for the specified information, and an operation of inputting authentication information. . When accepting a setting operation (YES in S90), the CPU 132 determines that a setting instruction has been acquired, and proceeds to S92.

S92において、CPU132は、認証情報を含むHTTPSコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からHTTPSコマンドを受信すると、当該コマンド内の認証情報を利用した認証を実行する。対象プリンタは、当該認証が成功する場合に、認証成功を示す情報「OK」を含む応答コマンドを端末装置100に送信し、当該認証が失敗する場合に、認証失敗を示す情報「NG」を含む応答コマンドを端末装置100に送信する。なお、HTTPS処理における認証は、HTTPSのダイジェスト認証方式又はベーシック認証方式に従った認証である。 In S92, the CPU 132 sends an HTTPS command including authentication information to the target printer. When the target printer receives the HTTPS command from the terminal device 100, it performs authentication using the authentication information in the command. The target printer sends a response command to the terminal device 100 that includes information "OK" indicating success in authentication when the authentication is successful, and includes information "NG" indicating failure in authentication when the authentication fails. A response command is sent to the terminal device 100. Note that authentication in the HTTPS process is authentication according to the HTTPS digest authentication method or basic authentication method.

S94において、CPU132は、対象プリンタから情報「OK」を含む応答コマンドを受信したのか否かを判断する。CPU132は、対象プリンタから情報「OK」を含む応答コマンドを受信する場合(S94でYES)に、S96に進み、対象プリンタから情報「OK」を含まない応答コマンドを受信する場合(S94でNO)に、S90に戻る。なお、CPU132は、S94でNOと判断する場合に、認証が失敗したことを示す情報を表示部114に表示させる。 In S94, the CPU 132 determines whether a response command including the information "OK" has been received from the target printer. If the CPU 132 receives a response command that includes the information "OK" from the target printer (YES in S94), the process proceeds to S96, and if it receives a response command that does not include the information "OK" from the target printer (NO in S94). Then, the process returns to S90. Note that when determining NO in S94, the CPU 132 causes the display unit 114 to display information indicating that the authentication has failed.

S96において、CPU132は、暗号キーの交換(Key Exchange)を対象プリンタと実行する。これにより、端末装置100と対象プリンタとの間の以降の通信(例えばS98、S100)において、POSTコマンド及び応答コマンド内の情報が暗号化される。このように、コマンド内の情報が暗号化されるので、セキュリティレベルを高めることができる。 In S96, the CPU 132 executes a key exchange with the target printer. As a result, information in the POST command and response command is encrypted in subsequent communications (for example, S98, S100) between the terminal device 100 and the target printer. In this way, since the information in the command is encrypted, the security level can be increased.

S98において、CPU132は、設定操作で指定された情報のOIDと、設定操作で指定された文字列と、を含むPOSTコマンドを対象プリンタに送信する。対象プリンタは、端末装置100からPOSTコマンドを受信する場合に、当該POSTコマンド内のOIDと文字列とを特定する。そして、対象プリンタは、特定済みの文字列をMIB値として特定済みのOIDに関連付けて対象管理テーブルに書き込む。そして、対象プリンタは、設定操作で指定された情報のOIDと、MIB値の書き込みが完了したことを示すステータス情報と、を含む応答コマンドを端末装置100に送信する。 In S98, the CPU 132 sends a POST command including the OID of the information specified in the setting operation and the character string specified in the setting operation to the target printer. When receiving a POST command from the terminal device 100, the target printer identifies the OID and character string in the POST command. Then, the target printer writes the specified character string as an MIB value in association with the specified OID in the target management table. The target printer then transmits to the terminal device 100 a response command that includes the OID of the information specified in the setting operation and status information indicating that writing of the MIB value has been completed.

S100において、CPU132は、対象プリンタから応答コマンドを受信する。CPU132は、S100が終了すると、S90に戻る。 In S100, the CPU 132 receives a response command from the target printer. Upon completion of S100, the CPU 132 returns to S90.

また、CPU132は、S90の監視と同時的に、S110において、取得操作を受付けることを監視する。HTTPS処理における取得操作は、取得対象の情報(例えば、IPアドレス)を指定する操作と、認証情報を入力する操作と、を含む。CPU132は、取得操作を受付ける場合(S110でYES)に、取得指示が取得されたと判断し、S112に進む。 Furthermore, simultaneously with the monitoring in S90, the CPU 132 monitors acceptance of an acquisition operation in S110. The acquisition operation in the HTTPS process includes an operation of specifying information to be acquired (for example, an IP address) and an operation of inputting authentication information. When accepting the acquisition operation (YES in S110), the CPU 132 determines that the acquisition instruction has been acquired, and proceeds to S112.

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 terminal device 100 and the target printer (for example, S118, S120). In S118, the CPU 132 sends a GET command including the OID of the information specified in the acquisition operation to the target printer. When receiving a GET command from the terminal device 100, the target printer acquires the MIB value associated with the OID included in the GET command from the target management table. Then, the CPU 132 transmits a response command including the acquired MIB value to the terminal device 100.

S120において、CPU132は、対象プリンタから応答コマンドを受信する。また、CPU132は、当該応答コマンド内の情報を表示部114に表示させる。これにより、ユーザは、対象プリンタ内の設定を知ることができる。CPU132は、S120が終了すると、S90に戻る。 In S120, the CPU 132 receives a response command from the target printer. Further, the CPU 132 causes the display unit 114 to display information in the response command. This allows the user to know the settings within the target printer. Upon completion of S120, the CPU 132 returns to S90.

また、CPU132は、S90及びS110の監視と同時的に、S130において、プリンタ選択操作を受付けることを監視する。CPU132は、プリンタ選択操作を受付ける場合(S130でYES)に、図3のS12に戻る。 Furthermore, at the same time as monitoring S90 and S110, the CPU 132 monitors acceptance of a printer selection operation in S130. If the CPU 132 accepts the printer selection operation (YES in S130), the process returns to S12 in FIG.

(具体的なケース)
続いて、図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 terminal device 100 receives a printer selection operation to select the printer 10B from the user at T10 (YES at S10 in FIG. 3), the terminal device 100 transmits a capability information request to the printer 10B at T12, and at T14, the terminal device 100 transmits a capability information request to the printer 10B. , receives capability information indicating that printer 10B supports SNMP and HTTPS. In this case, the terminal device 100 determines that the security level of HTTPS is higher than the security level of SNMP, and specifies HTTPS as the protocol to be used (NO in S12 and S14, S30).

端末装置100は、T20において、ユーザから設定操作を受付ける(図5のS90でYES)。本ケースの設定操作は、書込対象の情報「IPアドレス」を指定する操作と、「IPアドレス」について、変更後の文字列「192.168.2.2」を指定する操作と、認証情報を入力する操作と、を含む。この場合、端末装置100は、T22において、認証情報を含むHTTPSコマンドをプリンタ10Bに送信する(S92)。 The terminal device 100 receives a setting operation from the user at T20 (YES at S90 in FIG. 5). The setting operations in this case include specifying the information to be written, "IP address," specifying the changed character string "192.168.2.2" for "IP address," and authentication information. and an operation of inputting. In this case, the terminal device 100 transmits an HTTPS command including authentication information to the printer 10B at T22 (S92).

プリンタ10Bは、T22において、端末装置100からHTTPSコマンドを受信し、当該コマンド内の認証情報を利用した認証が成功すると、T24において、情報「OK」を含む応答コマンドを端末装置100に送信する。 The printer 10B receives the HTTPS command from the terminal device 100 at T22, and when authentication using the authentication information in the command is successful, transmits a response command including the information "OK" to the terminal device 100 at T24.

端末装置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 terminal device 100 receives the response command including the information "OK" from the printer 10B at T24 (YES at S94), it exchanges the encryption key with the printer 10B at T30 (S96), and at T32, the terminal device 100 exchanges the encryption key with the printer 10B (S96). A POST command 200 corresponding to the setting operation is transmitted to the printer 10B (S98). The terminal device 100 specifies the OID ending in "4" from the information "IP address" specified in the setting operation at T20, and writes the information to the POST command 200. Furthermore, the terminal device 100 writes the character string “192.168.2.2” specified in the setting operation of T20 to the POST command 200 as an MIB value.

プリンタ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 printer 10B receives the POST command 200 from the terminal device 100 at T32, it determines that the command includes an OID ending in "4", and the security information associated with the OID ending in "4" is "High". It is determined that The printer 10B determines that the POST command according to HTTPS has been received, determines that writing of the MIB value is permitted, and at T40 writes the MIB value "" in the command in association with the OID ending in "4". 192.168.2.2" is written into the second management table 38B. Next, at T42, the printer 10B transmits a response command 210 to the terminal device 100, which includes the same OID as the OID ending in "4" of the POST command 200, and status information "success".

端末装置100は、T42において、プリンタ10Bから応答コマンド210を受信する(S100)。これにより、書込処理が完了する。 The terminal device 100 receives the response command 210 from the printer 10B at T42 (S100). This completes the write process.

(ケース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 terminal device 100 receives an acquisition operation from the user at T110 (YES at S110). The acquisition operation in this case includes an operation of specifying the information "remaining amount of consumables" to be acquired, and an operation of inputting authentication information. T112, T114, and T120 (S112 to S116) are the same as T22, T24, and T30 in case A, respectively.

端末装置100は、T122において、T110の取得操作に応じたGETコマンド220をプリンタ10Bに送信する(S118)。端末装置100は、T110の取得設定操作で指定された情報「消耗品残量」から、末尾「2」のOIDを特定して、当該情報をGETコマンド220に書き込む。 At T122, the terminal device 100 transmits a GET command 220 corresponding to the acquisition operation at T110 to the printer 10B (S118). The terminal device 100 identifies the OID ending in "2" from the information "remaining amount of consumables" specified in the acquisition setting operation at T110, and writes the information to the GET command 220.

プリンタ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 printer 10B receives the GET command 220 from the terminal device 100 at T122, it determines that the GET command 220 includes an OID ending in "2", and the security information associated with the OID ending in "2" is "Low". ”. The printer 10B determines that the GET command according to HTTPS has been received, determines that transmission of the MIB value is permitted, and selects the MIB value associated with the OID ending in "2" in the second management table 38B. “60” is specified, and in T124, a response command 230 including the specified MIB value “60” is transmitted to the terminal device 100.

端末装置100は、T124において、プリンタ10Bから応答コマンド230を受信すると、T126において、応答コマンド230内のMIB値「60」を表示する(S120)。これにより、取得処理が完了する。 When the terminal device 100 receives the response command 230 from the printer 10B at T124, it displays the MIB value "60" in the response command 230 at T126 (S120). This completes the acquisition process.

(ケース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 terminal device 100 receives a printer selection operation to select the printer 10A from the user at T210 (YES at S10 in FIG. 3), the terminal device 100 transmits a capability information request to the printer 10A at T212, and at T214, the terminal device 100 sends a capability information request to the printer 10A. , receives capability information indicating that the printer 10A supports SNMP. In this case, the terminal device 100 specifies SNMP as the protocol to be used (YES in S12 and S14, S20).

端末装置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 terminal device 100 receives a setting operation from the user at T220 (YES at S50 in FIG. 4). The setting operation in this case includes the operation of specifying the information to be written "IP address" and the operation of specifying the changed character string "192.168.2.1" for "IP address". . In this case, at T222, the terminal device 100 transmits the SET command 300 corresponding to the setting operation at T220 to the printer 10A (S52). The terminal device 100 specifies the OID ending in "4" from the information "IP address" specified in the setting operation of T220, and writes the information to the SET command 300. Further, the terminal device 100 writes the character string “192.168.2.1” specified in the setting operation of T220 to the SET command 300 as an MIB value.

プリンタ10Aは、T222において、端末装置100からSETコマンド300を受信すると、当該コマンドが末尾「4」のOIDを含むと判断し、T230において、第1管理テーブル38Aにおいて、末尾「4」のOIDに関連付けて、当該コマンド内のMIB値「192.168.2.1」を書き込む。T232は、それぞれ、図6のケースAのT42と同様である。 When the printer 10A receives the SET command 300 from the terminal device 100 at T222, the printer 10A determines that the command includes an OID ending with "4", and at T230 stores the OID ending in "4" in the first management table 38A. In association with this, the MIB value "192.168.2.1" in the command is written. T232 is the same as T42 in case A of FIG. 6, respectively.

(ケース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 terminal device 100 receives an acquisition operation from the user at T310 (YES at S60). The acquisition operation in this case includes an operation for specifying the information "remaining amount of consumables" to be acquired. At T312, the terminal device 100 transmits a GET command 320 corresponding to the acquisition operation at T310 to the printer 10A (S62). The terminal device 100 specifies the OID ending in "2" from the information "remaining amount of consumables" specified in the acquisition setting operation of T310, and writes the information to the GET command 320.

プリンタ10Aは、T312において、端末装置100からGETコマンド320を受信すると、GETコマンド320が末尾「2」のOIDを含むと判断し、第1管理テーブル38Aにおいて、末尾「2」のOIDに関連付けられているMIB値「80」を特定し、T314において、特定済みのMIB値「80」を含む応答コマンド330を端末装置100に送信する。 When the printer 10A receives the GET command 320 from the terminal device 100 at T312, the printer 10A determines that the GET command 320 includes an OID ending in "2", and stores information associated with the OID ending in "2" in the first management table 38A. The MIB value "80" that has been specified is specified, and in T314, a response command 330 including the specified MIB value "80" is transmitted to the terminal device 100.

端末装置100は、T314において、プリンタ10Aから応答コマンド330を受信すると、T316において、応答コマンド330内のMIB値「80」を表示する(S64)。これにより、取得処理が完了する。 Upon receiving the response command 330 from the printer 10A at T314, the terminal device 100 displays the MIB value "80" in the response command 330 at T316 (S64). This completes the acquisition process.

(ケース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 terminal device 150 of the comparative example will be explained with reference to FIG. The terminal device 150 of the comparative example does not execute the protocol determination process of S12 in FIG. Therefore, even if the printer 10B that supports SNMP and HTTPS is selected as the target printer, the terminal device 150 can send a request command according to SNMP to the printer 10B.

端末装置150は、T410において、プリンタ10Bを選択するプリンタ選択操作を受付け、T420において、ユーザから設定操作を受付ける。本ケースの設定操作は、書込対象の情報「IPアドレス」を指定する操作と、「IPアドレス」について、変更後の文字列「192.168.2.2」を指定する操作と、を含む。この場合、端末装置150は、T422において、SNMPに従ったSETコマンド410をプリンタ10Bに送信する。SETコマンド400は、図7のSETコマンド300と同じである。 The terminal device 150 accepts a printer selection operation to select the printer 10B at T410, and accepts a setting operation from the user at T420. The setting operation in this case includes the operation of specifying the information to be written "IP address" and the operation of specifying the changed character string "192.168.2.2" for "IP address". . In this case, the terminal device 150 transmits the SET command 410 according to SNMP to the printer 10B at T422. SET command 400 is the same as SET command 300 in FIG.

プリンタ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 printer 10B receives the SET command 400 from the terminal device 150 at T422, it determines that the command includes an OID ending in "4", and in the second management table 38B, the command is associated with the OID ending in "4". It is determined that the security information is "High". The printer 10B determines that the SET command according to SNMP has been received, determines that writing and transmitting the MIB value is prohibited, and sends the MIB value "192.168.2.2" in the command to the second management. Do not write to table 38B. Next, the printer 10B transmits an ERROR command including the status information "error" to the terminal device 150 at T424. Further, when the printer 10B receives a SNMP-compliant GET command including an OID ending in "4" from the terminal device 150, it transmits an ERROR command including the status information "error" to the terminal device 150.

上述のように、プリンタ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 printer 10B receives a SET command according to SNMP from the terminal device 150 (T422 in FIG. 8), the printer 10B may not write the MIB value to the second management table 38B. On the other hand, the terminal device 100 of this embodiment transmits a POST command according to HTTPS to the printer 10B (T32 in FIG. 6). In this case, the printer 10B writes the MIB value included in the POST command to the second management table 38B (T40). Therefore, it is possible to reduce the possibility that the MIB value will not be written to the second management table 38B. Therefore, user convenience can be improved.

また、プリンタ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 terminal device 150, the printer 10B may not transmit the MIB value to the terminal device 150. On the other hand, the terminal device 100 of this embodiment transmits a GET command according to HTTPS to the printer 10B (T122 in FIG. 6). In this case, the printer 10B transmits the MIB value corresponding to the OID included in the GET command to the terminal device 100 (T122 in FIG. 6). Therefore, the possibility that the MIB value will not be transmitted to the terminal device 100 can be reduced. Therefore, user convenience can be improved.

(本実施例の効果)
上記の構成によると、端末装置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 terminal device 100 sends a SET command according to SNMP to the printer 10A that supports SNMP but does not support HTTPS, and sends a SET command according to SNMP to the printer 10A that supports SNMP and does not support HTTPS. A POST command according to HTTPS is sent to the printer 10B that is installed. Therefore, the terminal device 100 can send a configuration command (ie, a SET command or a POST command) to the printer 10 using an appropriate protocol.

また、端末装置100は、SNMPをサポートしていると共にHTTPSをサポートしていないプリンタ10Aには、SNMPに従ったGETコマンドを送信し、SNMPをサポートしていると共にHTTPSをサポートしているプリンタ10Bには、HTTPSに従ったGETコマンドを送信する。従って、端末装置100は、適切なプロトコルを利用して、取得コマンド(即ちGETコマンド)をプリンタ10に送信することができる。 Further, the terminal device 100 sends a GET command according to SNMP to the printer 10A which supports SNMP but does not support HTTPS, and sends a GET command according to SNMP to the printer 10B which supports SNMP and supports HTTPS. , a GET command according to HTTPS is sent. Therefore, the terminal device 100 can send an acquisition command (ie, a GET command) to the printer 10 using an appropriate protocol.

(対応関係)
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 printer 10A and the printer 10B are examples of a "first communication device" and a "second communication device", respectively. The setting instruction obtained in S50 of FIG. 4 and the setting instruction obtained in S90 of FIG. 5 are examples of a "first setting instruction" and a "second setting instruction," respectively. The SET command and the POST command are examples of a "first setting command" and a "second setting command", respectively. The OID included in the SET command in S52 of FIG. 4 is an example of the "first OID." The MIB value included in the SET command in S52 of FIG. 4 is an example of a "first setting value." The OID included in the POST command in S98 of FIG. 5 is an example of the "second OID." The MIB value included in the POST command in S98 of FIG. 5 is an example of the "second setting value." The first management table 38A and the second management table 38B are examples of "first management information" and "second management information", respectively. The security information "High" in the second management table 38B and the security information "High" in the second management table 38B are examples of "prohibition information" and "permission information", respectively. The capability information at T214 in FIG. 7 and the capability information at T14 in FIG. 6 are examples of "first protocol information" and "second protocol information", respectively. The capability information request at T212 in FIG. 7 and the capability information request at T12 in FIG. 6 are examples of a "first information request" and a "second information request," respectively.

図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 printer 10B may not include security information.

(第3変形例)端末装置100は、図3のS12において、対象プリンタがSNMPをサポとしているのか否かを示す情報の送信を要求する信号を送信し、次いで、対象プリンタがHTTPSをサポートしているのか否かを示す情報の送信を要求する信号を送信してもよい。 (Third Modification) In S12 of FIG. 3, the terminal device 100 transmits a signal requesting transmission of information indicating whether or not the target printer supports SNMP, and then determines whether the target printer supports HTTPS. A signal may be transmitted requesting the transmission of information indicating whether or not 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 memory 134 of the terminal device 100. For example, when the ability information is input by the user of the terminal device 100, the ability information is stored in the memory 134. In this modification, the terminal device 100 determines the usage protocol in S12 of FIG. 3 by using the capability information in the memory 134 without transmitting a capability information request to the target printer. In this modification, the "first protocol information receiving section", "second protocol information receiving section", "first information request transmitting section", and "second information request transmitting section" can be omitted. be.

(第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 terminal device 100 receives capability information from the printer 10 before the command processing in FIG. 3 is executed. In this modification, the terminal device 100 determines the usage protocol in S12 of FIG. 3 without transmitting a capability information request to the target printer. In this modification, the "first information request transmitter" and the "second information request transmitter" can be omitted. Note that in another modification, the terminal device 100 may transmit the capability information request to the target printer only when the capability information of the target printer is not stored in S12 of FIG.

(第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 CPU 132 executes the programs 136 and 138, thereby realizing the processes shown in FIGS. 3 to 5. Alternatively, any of the processes may be realized by hardware such as a logic circuit.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。 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のプロトコルのセキュリティレベルは、前記第1のプロトコルのセキュリティレベルよりも高く、
前記第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.
前記第1のプロトコルは、SNMP(Simple Network Management Protocolの略)であり、
前記第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のプロトコルのセキュリティレベルは、前記第1のプロトコルのセキュリティレベルよりも高く、
前記第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.
前記第1のプロトコルは、SNMP(Simple Network Management Protocolの略)であり、
前記第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:
JP2022121742A 2022-07-29 2022-07-29 Computer program for terminal device and terminal device Pending JP2024018411A (en)

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)

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