JP2024018390A - Communication device and computer program for communication device - Google Patents

Communication device and computer program for communication device Download PDF

Info

Publication number
JP2024018390A
JP2024018390A JP2022121707A JP2022121707A JP2024018390A JP 2024018390 A JP2024018390 A JP 2024018390A JP 2022121707 A JP2022121707 A JP 2022121707A JP 2022121707 A JP2022121707 A JP 2022121707A JP 2024018390 A JP2024018390 A JP 2024018390A
Authority
JP
Japan
Prior art keywords
value
command
oid
communication device
utf
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
JP2022121707A
Other languages
Japanese (ja)
Inventor
勝則 榎本
Katsunori Enomoto
聡 松下
Satoshi Matsushita
哲 柳
Chol Yoo
宗久 松田
Munehisa Matsuda
清孝 大原
Kiyotaka Ohara
裕紀 矢田
Hironori Yada
匡平 森
Kyohei Mori
英樹 野川
Hideki Nogawa
哲也 奥野
Tetsuya Okuno
光樹 伊津見
Koki Izumi
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 JP2022121707A priority Critical patent/JP2024018390A/en
Publication of JP2024018390A publication Critical patent/JP2024018390A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication device that can appropriately execute processing in consideration of character codes.
SOLUTION: A communication device may include: a memory that stores, for each of a plurality of OIDs of an MIB, management information in which the OID is associated with a setting value; a setting command receiving unit that receives a setting command in accordance with TCP of the transport layer of the OSI reference model from a terminal device, in which the setting command includes a first OID and a first value written in UTF; a first conversion unit that converts the first value included in the setting command into a second value written in non-UTF when the setting command is received from the terminal device; and a writing unit that writes the converted second value into the management information in association with the first OID included in the setting command.
SELECTED DRAWING: Figure 3
COPYRIGHT: (C)2024,JPO&INPIT

Description

本明細書は、OID(Object IDの略)と設定値とが関連付けられている管理情報を記憶する通信装置に関する技術を開示する。 This specification discloses a technology related to a communication device that stores management information in which an OID (abbreviation for Object ID) and a setting value are associated.

特許文献1には、PCが、HTTP(Hyper Test Tranfer Protocolの略)に従って、事務機器から、MIB(Management Information Baseの略)のOID(Object IDの略)に対応する機器情報を取得することが開示されている。 Patent Document 1 describes that a PC can acquire device information corresponding to OID (abbreviation of Object ID) of MIB (abbreviation of Management Information Base) from office equipment according to HTTP (abbreviation of Hyper Test Transfer Protocol). Disclosed.

特開2004-264995号公報Japanese Patent Application Publication No. 2004-264995

上記の技術では、文字コードについて何ら考慮されていない。本明細書では、文字コードを考慮して処理を適切に実行可能な通信装置を開示する。 The above techniques do not take character codes into consideration at all. This specification discloses a communication device that can appropriately execute processing in consideration of character codes.

本明細書によって開示される通信装置は、MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った設定コマンドを受信する設定コマンド受信部であって、前記設定コマンドは、第1のOIDと、UTF(Unicode Transformation Formatの略)で記述される第1の値と、を含む、前記設定コマンド受信部と、前記端末装置から前記設定コマンドが受信される場合に、前記設定コマンドに含まれる前記第1の値を非UTFで記述される第2の値に変換する第1の変換部と、前記設定コマンドに含まれる前記第1のOIDに関連付けて、変換済みの前記第2の値を前記管理情報に書き込む書込部と、を備えてもよい。 The communication device disclosed in this specification stores, for each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base), management information in which the OID is associated with a setting value. A configuration command receiving unit that receives a configuration command in accordance with TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a memory and a terminal device, the configuration command comprising: , a first OID, and a first value written in UTF (Unicode Transformation Format); when the configuration command is received from the terminal device; a first conversion unit that converts the first value included in the configuration command into a second value written in non-UTF; and a first conversion unit that converts the first value included in the configuration command into a second value written in non-UTF; The information processing apparatus may further include a writing unit that writes a second value to the management information.

上記の構成によると、通信装置は、UTFで記述されている第1の値を非UTFで記述される第2の値に変換して、第1のOIDに関連付けて第2の値を管理情報に書き込む。従って、通信装置は、文字コードを考慮して書込処理を適切に実行することができる。 According to the above configuration, the communication device converts the first value written in UTF to the second value written in non-UTF, associates the second value with the first OID, and stores the second value in the management information. write to. Therefore, the communication device can appropriately execute the write process in consideration of the character code.

本明細書によって開示される通信装置は、MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った取得コマンドを受信する取得コマンド受信部であって、前記取得コマンドは、第2のOIDを含む、前記取得コマンド受信部と、前記端末装置から前記取得コマンドが受信される場合に、前記メモリ内の前記管理情報から、前記取得コマンドに含まれる前記第2のOIDに関連付けられている第3の値であって、非UTF(Unicode Transformation Formatの略)で記述される前記第3の値を取得する取得部と、取得済みの前記第3の値をUTFで記述される第4の値に変換する第2の変換部と、変換済みの前記第4の値を含む応答コマンドを前記端末装置に送信する応答コマンド送信部と、を備えてもよい。 The communication device disclosed in this specification stores, for each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base), management information in which the OID is associated with a setting value. An acquisition command receiving unit that receives an acquisition command according to TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a memory and a terminal device, wherein the acquisition command is , the acquisition command receiving unit including the second OID, and when the acquisition command is received from the terminal device, the acquisition command receiving unit includes the second OID included in the acquisition command from the management information in the memory. an acquisition unit that acquires an associated third value that is written in non-UTF (abbreviation for Unicode Transformation Format); and a response command transmitter that transmits a response command including the converted fourth value to the terminal device.

上記の構成によると、通信装置は、非UTFで記述されている第3の値をUTFで記述される第4の値に変換して、第4の値を含む応答コマンドを端末装置に送信する。従って、通信装置は、文字コードを考慮して応答処理を適切に実行することができる。 According to the above configuration, the communication device converts the third value written in non-UTF to the fourth value written in UTF, and sends a response command including the fourth value to the terminal device. . Therefore, the communication device can appropriately execute response processing in consideration of the character code.

上記の通信装置を実現するためのコンピュータプログラム、及び、当該コンピュータプログラムを記憶するコンピュータ可読記憶媒体も新規で有用である。また、上記の通信装置によって実行される方法も新規で有用である。 A computer program for implementing the above-described communication device and a computer-readable storage medium that stores the computer program are also new and useful. Also, the method performed by the communication device described above is novel and useful.

通信システムの構成を示す。The configuration of the communication system is shown. コマンド処理のフローチャートを示す。A flowchart of command processing is shown. POST処理のフローチャートを示す。A flowchart of POST processing is shown. GET処理のフローチャートを示す。A flowchart of GET processing is shown. POSTコマンドを通信するケースのシーケンス図を示す。A sequence diagram of a case in which a POST command is communicated is shown. POSTコマンド及び応答コマンドの一例を示す。An example of a POST command and a response command is shown. GETコマンドを通信するケースのシーケンス図を示す。A sequence diagram of a case in which a GET command is communicated is shown. GETコマンド及び応答コマンドの一例を示す。An example of a GET command and a response command is shown.

(第1実施例)
(通信システム2の構成;図1)
図1に示されるように、通信システム2は、プリンタ10と端末装置100とを備える。各デバイス10,100は、LAN(Local Area Networkの略)6に接続されており、LAN6を介して相互に通信可能である。LAN6は、有線LANであってもよいし無線LANであってもよい。端末装置100は、デスクトップPC、ノートPC、タブレットPC、携帯電話(例えばスマートフォン)等のユーザ端末である。本実施例では、プリンタ10が、端末装置100からの要求コマンド(即ち後述のPOSTコマンド又はGETコマンド)に応じて、設定値を書き込んだり送信したりすることを実現する。
(First example)
(Configuration of communication system 2; Figure 1)
As shown in FIG. 1, the communication system 2 includes a printer 10 and a terminal device 100. Each device 10, 100 is 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. 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). In this embodiment, the printer 10 writes or transmits setting values in response to a request command (that is, a POST command or a GET command, which will be described later) from the terminal device 100.

(プリンタ10の構成)
プリンタ10は、印刷機能を実行可能な周辺装置(例えば端末装置100の周辺装置)である。変形例では、プリンタ10は、印刷機能に加えて、スキャン機能、FAX機能等を実行可能な多機能機であってもよい。プリンタ10は、操作部12と、表示部14と、LANインターフェース16と、印刷実行部18と、制御部30と、を備える。各部12~30は、バス線(符号省略)に接続されている。
(Configuration of printer 10)
The printer 10 is a peripheral device (for example, a peripheral device of the terminal device 100) that can execute a printing function. In a modified example, the printer 10 may be a multi-function device that can perform a scanning function, a FAX function, etc. in addition to the printing function. The printer 10 includes an operation section 12, a display section 14, a LAN interface 16, a print execution section 18, and a control section 30. Each part 12 to 30 is connected to a bus line (numerals omitted).

操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をプリンタ10に入力することができる。表示部14は、様々な情報を表示させるディスプレイである。表示部14は、いわゆるタッチパネル(即ちユーザの操作を受け付ける操作部)としても機能する。LANインターフェース16は、LAN6に接続されている。印刷実行部18は、インクジェット方式、レーザ方式等の印刷機構を備える。 The operation unit 12 includes a plurality of keys. A user can input various instructions to the printer 10 by operating the operation unit 12. The display unit 14 is a display that displays various information. The display unit 14 also functions as a so-called touch panel (that is, an operation unit that accepts user operations). LAN interface 16 is connected to LAN 6. The printing execution unit 18 includes a printing mechanism such as an inkjet type or a laser type.

制御部30は、CPU32と不揮発性メモリ34Aと揮発性メモリ34Bとを備える。CPU32は、不揮発性メモリ34Aに格納されているプログラム36に従って、様々な処理を実行する。不揮発性メモリ34Aは、プリンタ10の電源がOFFされても、記憶済みの情報が消去されないメモリである。不揮発性メモリ34Aは、プログラム36に加えて、管理テーブル38と判断リスト40と言語設定42と言語テーブル44と複数のコード表46とを記憶する。揮発性メモリ34Bは、プリンタ10の電源がOFFされると、記憶済みの情報が消去されるメモリである。揮発性メモリ34Bは、CPU32が処理を実行する過程で必要な情報を一時的に記憶する。 The control unit 30 includes a CPU 32, a nonvolatile memory 34A, and a volatile memory 34B. The CPU 32 executes various processes according to the program 36 stored in the nonvolatile memory 34A. The nonvolatile memory 34A is a memory whose stored information is not erased even if the printer 10 is powered off. In addition to the program 36, the nonvolatile memory 34A stores a management table 38, a judgment list 40, a language setting 42, a language table 44, and a plurality of code tables 46. The volatile memory 34B is a memory whose stored information is erased when the power of the printer 10 is turned off. The volatile memory 34B temporarily stores information necessary for the CPU 32 to execute processing.

管理テーブル38は、プリンタ10の様々な情報を記憶するためのテーブルである。当該情報は、例えば、プリンタ10の消耗品残量、MACアドレス、名前(即ちユーザ名)、IPアドレス等を含む。図1に例示されない情報としては、例えば、プリンタ10の設置場所、アクセス先、エラー履歴、ステータス(印刷実行中、待機中等)、印刷設定(例えばデフォルトの印刷解像度)等を含む。管理テーブル38は、ツリー構造(即ち階層構造)を利用して上記の様々な情報を格納する。このツリー構造を有する様々な情報の集合のことを「MIB(Management Information Baseの略」と呼ぶ。 The management table 38 is a table for storing various information about the printer 10. The information includes, for example, the remaining amount of consumables of the printer 10, the MAC address, the name (ie, user name), the IP address, and the like. Information not illustrated in FIG. 1 includes, for example, the installation location of the printer 10, access destination, error history, status (printing in progress, standby, etc.), print settings (for example, default print resolution), and the like. The management table 38 stores the various information described above using a tree structure (that is, a hierarchical structure). This collection of various information having a tree structure is called "MIB" (abbreviation for Management Information Base).

具体的には、管理テーブル38は、内容とOID(Object IDの略)とタイプとMIB値とを関連付けて記憶する。内容は、情報の意味を示す文字列である。OIDは、情報を識別する識別子である。タイプは、MIB値のタイプを示す。MIB値は、情報の具体的な値(即ち設定値)を示す。 Specifically, the management table 38 stores content, OID (abbreviation for Object ID), type, and MIB value 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. Type indicates the type of MIB value. The MIB value indicates a specific value of information (ie, a set value).

管理テーブル38では、多くのMIB値は、UTF-8の文字コードによって記述される。UTF-8は、UnicodeではUnicode TransformationFormat-8の略であり、ISO/IEC10646ではUCS Transformation Format 8の略である。以下では、UTF-8のことを単に「UTF」と記載する。MIB値のタイプがinteger(即ち整数)又はhex string(即ち16進数)である場合には、MIB値はUTFによって記述される。例えば、消耗品残量に対応するMIB値「80」は、UTFでは「38 30」と記述される。MIB値のタイプがstring(即ち文字列)である場合には、MIB値は、UTFによって記述されることもあるし、UTFとは異なる文字コード(以下では単に「非UTF」と記載する)によって記述されることもある。 In the management table 38, many MIB values are described using UTF-8 character codes. UTF-8 is an abbreviation for Unicode Transformation Format-8 in Unicode, and is an abbreviation for UCS Transformation Format 8 in ISO/IEC10646. In the following, UTF-8 will be simply referred to as "UTF." If the MIB value type is integer or hex string, the MIB value is written in UTF. For example, the MIB value "80" corresponding to the remaining amount of consumables is written as "38 30" in UTF. If the MIB value type is string, the MIB value may be written in UTF or in a character code different from UTF (hereinafter simply referred to as "non-UTF"). Sometimes it is written.

上述したように、管理テーブル38では、いくつかのMIB値は、非UTFによって記述される。これは、従来から存在する様々なプリンタの互換性の維持の観点に基づく。図1の例では、名前に対応するMIB値は、ポルトガル語の3個の文字からなる文字列を意味する。当該3個の文字は、「C」にセディーユが付された文字と、「E」にグレイブアクセントが付された文字と、「E」にアキュートアクセントが付された文字と、を含む。このようなポルトガル語の文字列を示すMIB値は、ポルトガル語に対応する非UTFの文字コードであるISO8859-1によって記述される。例えば、上記の3個の文字は、ISO8859-1では「C7 C8 C9」と記述される。 As described above, in the management table 38, some MIB values are written in non-UTF. This is based on the viewpoint of maintaining compatibility of various conventional printers. In the example of FIG. 1, the MIB value corresponding to the name means a string of three letters in Portuguese. The three characters include a "C" with a cedilla, an "E" with a grave accent, and an "E" with an acute accent. The MIB value indicating such a Portuguese character string is described by ISO8859-1, which is a non-UTF character code corresponding to Portuguese. For example, the above three characters are written as "C7 C8 C9" in ISO8859-1.

非UTFは、ISO8859-1に限られず、さらに、ISO8859-2、ISO8859-3、及び、ISO8859-5を含む。即ち、本実施例では、非UTFは、ISO8859系の文字コードであり、換言すると、8ビットの文字コードである。管理テーブル38内のMIB値がどの非UTFで記述されるのかは、プリンタ10の言語設定42に依存する。 Non-UTF is not limited to ISO8859-1, but also includes ISO8859-2, ISO8859-3, and ISO8859-5. That is, in this embodiment, the non-UTF is an ISO8859 character code, or in other words, an 8-bit character code. The non-UTF in which the MIB values in the management table 38 are written depends on the language setting 42 of the printer 10.

判断リスト40は、管理テーブル38内のMIB値がUTFで記述されるのか非UTFで記述されるのかを判断するためのリストである。判断リスト40内の情報は、プリンタ10のベンダによって予め決められている。判断リスト40は、複数個のOIDを含む。これらのOIDのそれぞれは、非UTFで記述されるMIB値に対応するOIDである。即ち、判断リスト40は、UTFで記述されるMIB値に対応するOIDを含まない。従って、判断リスト40の容量が大きくなるのを抑制することができる。 The determination list 40 is a list for determining whether the MIB value in the management table 38 is written in UTF or non-UTF. The information in decision list 40 is predetermined by the vendor of printer 10. The judgment list 40 includes a plurality of OIDs. Each of these OIDs corresponds to a MIB value written in non-UTF. That is, the judgment list 40 does not include OIDs corresponding to MIB values written in UTF. Therefore, it is possible to suppress the capacity of the judgment list 40 from increasing.

言語設定42は、プリンタ10の言語設定であり、通常、プリンタ10が初めて起動される際にユーザによって指定される。本実施例では、英語、ポルトガル語、チェコ語、日本語等の様々な言語のうちのいずれかが言語設定42として指定される。 The language setting 42 is the language setting of the printer 10, and is usually specified by the user when the printer 10 is started up for the first time. In this embodiment, one of various languages such as English, Portuguese, Czech, and Japanese is specified as the language setting 42.

言語テーブル44は、様々な言語のそれぞれに対応する非UTFを示す。例えば、英語、ドイツ語、ポルトガル語等に対応する非UTFはISO8859-1であり、チェコ語、ハンガリー語等に対応する非UTFはISO8859-2である。また、図1では図示省略しているが、トルコ語等に対応する非UTFはISO8859-3であり、ロシア語等に対応する非UTFはISO8859-5である。なお、本実施例では、日本語、中国語、及び、韓国語は、UTFで記述される。従って、言語テーブル44には、日本語等が存在しない。 Language table 44 shows the non-UTF corresponding to each of the various languages. For example, the non-UTF corresponding to English, German, Portuguese, etc. is ISO8859-1, and the non-UTF corresponding to Czech, Hungarian, etc. is ISO8859-2. Although not shown in FIG. 1, the non-UTF corresponding to Turkish and other languages is ISO8859-3, and the non-UTF corresponding to Russian and other languages is ISO8859-5. Note that in this embodiment, Japanese, Chinese, and Korean are written in UTF. Therefore, the language table 44 does not include Japanese or the like.

コード表46は、UTFのコード表と非UTFのコード表とを含む。非UTFのコード表は、ISO8859-1、ISO8859-2、ISO8859-3等のコード表を含む。 The code table 46 includes a UTF code table and a non-UTF code table. Non-UTF code tables include code tables such as ISO8859-1, ISO8859-2, and ISO8859-3.

(プリンタ10と端末装置100の間の通信プロトコル)
プリンタ10と端末装置100との間でMIB値を通信するための通信プロトコルとしては、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のUDP(User Datagram Protocolの略)に従ったプロトコルが広く知られている。具体的には、SNMP(Simple Network Management Protocolの略)が知られている。本発明者らは、MIB値を通信するための通信プロトコルとして、UDPに代えて、OSI参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った通信プロトコルを利用することを創作した。具体的には、HTTPS(Hyper Text Transfer Protocol Secureの略)を利用することを創作した。HTTPSは、ユーザ認証及びデータ暗号化を採用しているので、SNMPよりも高いセキュリティを有するからである。これにより、プリンタ10のMIB値が第三者によって不正に書き込まれたり不正に取得されたりすることを抑制することができる。
(Communication protocol between printer 10 and terminal device 100)
As a communication protocol for communicating MIB values between the printer 10 and the terminal device 100, a protocol according to UDP (abbreviation for User Datagram Protocol) of the transport layer of the OSI (abbreviation for Open Systems Interconnection) reference model is used. widely known. Specifically, SNMP (abbreviation for Simple Network Management Protocol) is known. The present inventors created the use of a communication protocol in accordance with TCP (abbreviation for Transmission Control Protocol) of the transport layer of the OSI reference model, instead of UDP, as a communication protocol for communicating MIB values. . Specifically, we created the use of HTTPS (abbreviation for Hyper Text Transfer Protocol Secure). This is because HTTPS has higher security than SNMP because it employs user authentication and data encryption. Thereby, it is possible to prevent the MIB value of the printer 10 from being illegally written or illegally acquired by a third party.

端末装置100は、HTTPSのPOSTコマンドを利用して、MIB値をプリンタ10に書き込むことができると共に、HTTPSのGETコマンドを利用して、プリンタ10からMIB値を取得することができる。通常、HTTPSコマンド及びその応答コマンドは、JSON(Java Script Object Notationの略)、XML(Extensible Markup Languageの略)等の汎用的なフォーマットを採用する。そして、これらの汎用的なフォーマットでは、UTF-8によって情報が記述される。このため、本実施例では、プリンタ10と端末装置100との間では、UTF-8によって情報が記述されたJSONフォーマットを有するHTTPSコマンド及びその応答コマンドの通信が実行される。なお、変形例では、JSONフォーマットに代えてXMLフォーマットが採用されてもよい。この場合でも、UTF-8によって情報が記述されたHTTPSコマンド及びその応答コマンドの通信が実行される。 The terminal device 100 can write MIB values to the printer 10 using an HTTPS POST command, and can also acquire MIB values from the printer 10 using an HTTPS GET command. Usually, the HTTPS command and its response command adopt a general-purpose format such as JSON (abbreviation for Java Script Object Notation) or XML (abbreviation for Extensible Markup Language). In these general-purpose formats, information is written in UTF-8. Therefore, in this embodiment, communication between the printer 10 and the terminal device 100 is performed using HTTPS commands and their response commands in the JSON format in which information is written in UTF-8. Note that in a modified example, an XML format may be adopted instead of the JSON format. Even in this case, communication of the HTTPS command and its response command whose information is written in UTF-8 is executed.

上述したように、プリンタ10の管理テーブル38では、互換性の維持の観点に鑑みて、ISO8859系の非UTFによって記述されたMIB値が記憶され得る。従って、本実施例では、プリンタ10は、UTFと非UTFとの間でMIB値の変換を実行して、管理テーブル38内でのMIB値の記憶と、端末装置100とのHTTPSコマンドの通信と、を実行する。これを実現するために、プリンタ10は、図2以降の各処理を実行する。 As described above, in view of maintaining compatibility, the management table 38 of the printer 10 may store MIB values written in ISO8859-based non-UTF. Therefore, in this embodiment, the printer 10 converts MIB values between UTF and non-UTF, stores the MIB values in the management table 38, and communicates HTTPS commands with the terminal device 100. , execute. In order to achieve this, the printer 10 executes each process shown in FIG. 2 and thereafter.

(プリンタ10のコマンド処理:図2)
図2を参照して、プリンタ10のCPU32によって実行されるコマンド処理を説明する。プリンタ10の電源がONされることをトリガとして、図2の処理が実行される。
(Command processing of printer 10: Figure 2)
With reference to FIG. 2, command processing executed by the CPU 32 of the printer 10 will be described. The process shown in FIG. 2 is executed when the power of the printer 10 is turned on as a trigger.

S10において、CPU32は、端末装置100からHTTPSコマンドを受信することを監視する。CPU32は、端末装置100からHTTPSコマンドを受信する場合に、S10でYESと判断してS12に進む。 In S10, the CPU 32 monitors reception of an HTTPS command from the terminal device 100. When receiving an HTTPS command from the terminal device 100, the CPU 32 determines YES in S10 and proceeds to S12.

S12において、CPU32は、ユーザ認証が成功したのか否かを判断する。具体的には、CPU32は、S10で受信されたHTTPSコマンドに対して、ユーザ認証がまだ成功していないこと(即ちUnauthorized)を示す応答コマンドを端末装置100に送信する。そして、CPU32は、端末装置100から認証情報(例えばユーザパスワード)を含むHTTPSコマンドを受信し、当該HTTPSコマンドに含まれる認証情報と、プリンタ10に記憶済みの認証情報と、が一致するのか否かを判断する。CPU32は、これらの認証情報が一致する場合に、認証成功を示す応答コマンドを端末装置100に送信し、S12でYESと判断してS14に進む。このように、ユーザ認証が成功することを条件としてMIB値の書き込み及び送信が実行されるので、プリンタ10のセキュリティを高めることができる。一方、CPU32は、これらの認証情報が一致しない場合に、S12でNOと判断して図2の処理を終了する。 In S12, the CPU 32 determines whether the user authentication was successful. Specifically, in response to the HTTPS command received in S10, the CPU 32 transmits to the terminal device 100 a response command indicating that user authentication has not yet been successful (that is, Unauthorized). Then, the CPU 32 receives an HTTPS command including authentication information (for example, a user password) from the terminal device 100, and determines whether the authentication information included in the HTTPS command matches the authentication information stored in the printer 10. to judge. If these pieces of authentication information match, the CPU 32 transmits a response command indicating successful authentication to the terminal device 100, determines YES in S12, and proceeds to S14. In this way, the MIB value is written and transmitted on the condition that the user authentication is successful, so the security of the printer 10 can be enhanced. On the other hand, if these pieces of authentication information do not match, the CPU 32 determines NO in S12 and ends the process of FIG.

S14において、CPU32は、暗号キーの交換を端末装置100と実行する。これにより、プリンタ10と端末装置100との間の以降の通信(例えばS20、図3のS150、図4のS250)において、HTTPSコマンド及び応答コマンド内の情報が暗号化される。このように、コマンド内の情報が暗号化されるので、プリンタ10のセキュリティを高めることができる。 In S14, the CPU 32 exchanges encryption keys with the terminal device 100. As a result, information in the HTTPS command and response command is encrypted in subsequent communications between the printer 10 and the terminal device 100 (for example, S20, S150 in FIG. 3, and S250 in FIG. 4). In this way, since the information in the command is encrypted, the security of the printer 10 can be increased.

S20において、CPU32は、端末装置100からHTTPSコマンドを受信することを監視する。当該HTTPコマンド内の情報は暗号化されている(S14参照)。CPU32は、端末装置100からHTTPSコマンドを受信する場合に、S20でYESと判断してS22に進む。 In S20, the CPU 32 monitors reception of an HTTPS command from the terminal device 100. The information in the HTTP command is encrypted (see S14). When receiving an HTTPS command from the terminal device 100, the CPU 32 determines YES in S20 and proceeds to S22.

S22において、CPU32は、S20で受信されたHTTPSコマンドがPOSTコマンドであるのかGETコマンドであるのかを判断する。CPU32は、HTTPSコマンドがPOSTコマンドである場合にS30に進み、HTTPSコマンドがGETコマンドである場合にS40に進む。POSTコマンドは、HTTPのPOSTメソッドに従ったコマンドである。GETコマンドは、HTTPのGETメソッドに従ったコマンドであってもよいし、「X-HTTP-Method-Override “GET”」がヘッダに記述されたHTTPのPOSTメソッドに従ったコマンドであってもよい。 In S22, the CPU 32 determines whether the HTTPS command received in S20 is a POST command or a GET command. The CPU 32 proceeds to S30 when the HTTPS command is a POST command, and proceeds to S40 when the HTTPS command is a GET command. The POST command is a command that follows the HTTP POST method. The GET command may be a command according to the HTTP GET method, or a command according to the HTTP POST method in which "X-HTTP-Method-Override "GET"" is written in the header. .

CPU32は、S30において、POST処理(図3参照)を実行し、S40において、GET処理(図4参照)を実行する、CPU32は、POST処理又はGET処理が終了すると、図2の処理を終了する。 The CPU 32 executes the POST process (see FIG. 3) in S30, and executes the GET process (see FIG. 4) in S40. When the POST process or the GET process ends, the CPU 32 ends the process in FIG. .

(POST処理:図3)
続いて、図3を参照して、図2のS30のPOST処理の内容を説明する。S100において、CPU32は、S20で受信されたPOSTコマンド内の1個のアイテムを特定する。ここで特定される1個のアイテムは、OIDとタイプとMIB値とを含む。当該タイプは、MIB値のタイプを示す情報であり、string、integer等である。以下では、S100で特定される1個のアイテムに含まれる各情報のことを、「対象OID」、「対象タイプ」、「対象MIB値」と記載する。
(POST processing: Figure 3)
Next, with reference to FIG. 3, the contents of the POST process in S30 of FIG. 2 will be explained. In S100, CPU 32 identifies one item in the POST command received in S20. One item specified here includes an OID, type, and MIB value. The type is information indicating the type of MIB value, such as string or integer. In the following, each piece of information included in one item identified in S100 will be referred to as "target OID,""targettype," and "target MIB value."

S110において、CPU32は、対象タイプがstringであるのか否かを判断する。CPU32は、対象タイプがstringである場合には、S110でYESと判断してS112に進む。一方、CPU32は、対象タイプがstringでない場合、例えば、対象タイプがinteger、hex string等である場合には、S110でNOと判断してS130に進む。このように、プリンタ10は、対象タイプに応じて、対象MIB値の変換を実行するのか否かを切り替えることができる。 In S110, the CPU 32 determines whether the target type is string. If the target type is string, the CPU 32 determines YES in S110 and proceeds to S112. On the other hand, if the target type is not string, for example, if the target type is integer, hex string, etc., the CPU 32 determines NO in S110 and proceeds to S130. In this way, the printer 10 can switch whether or not to convert the target MIB value depending on the target type.

S112において、CPU32は、対象MIB値が変換対象であるのか否かを判断する。具体的には、CPU32は、対象OIDが判断リスト40に含まれるのか否かを判断する。CPU32は、対象OIDが判断リスト40に含まれる場合に、S112でYESと判断してS114に進む。一方、CPU32は、対象OIDが判断リスト40に含まれない場合に、S112でNOと判断してS130に進む。このように、プリンタ10は、対象OIDが判断リスト40に含まれるのか否かに応じて、対象MIB値の変換を実行するのか否かを切り替えることができる。 In S112, the CPU 32 determines whether the target MIB value is a conversion target. Specifically, the CPU 32 determines whether the target OID is included in the determination list 40 or not. If the target OID is included in the determination list 40, the CPU 32 determines YES in S112 and proceeds to S114. On the other hand, if the target OID is not included in the determination list 40, the CPU 32 determines NO in S112 and proceeds to S130. In this manner, the printer 10 can switch whether or not to convert the target MIB value depending on whether the target OID is included in the determination list 40 or not.

S114において、CPU32は、言語設定42が日本語、中国語、又は韓国語であるのか否かを判断する。即ち、CPU32は、言語設定42が、UTFで記述される言語を示すのか、非UTFで記述される言語であるのか、を判断する。日本語、中国語、及び韓国語は、言語テーブル44に記述されていない。従って、S114の処理は、言語設定が、言語テーブル44に記述されていない言語を示すのか否かを判断する処理に等しい。CPU32は、言語設定42が日本語等である場合には、S114でYESと判断してS130に進む。CPU32は、言語設定42が日本語等でない場合、例えば、言語設定42が英語、ポルトガル語等である場合には、S114でNOと判断してS120に進む。このように、プリンタ10は、言語設定42に応じて、対象MIB値の変換を実行するのか否かを切り替えることができる。 In S114, the CPU 32 determines whether the language setting 42 is Japanese, Chinese, or Korean. That is, the CPU 32 determines whether the language setting 42 indicates a language written in UTF or a language written in non-UTF. Japanese, Chinese, and Korean are not described in the language table 44. Therefore, the process of S114 is equivalent to the process of determining whether the language setting indicates a language that is not described in the language table 44. If the language setting 42 is Japanese or the like, the CPU 32 determines YES in S114 and proceeds to S130. If the language setting 42 is not Japanese, for example, if the language setting 42 is English, Portuguese, etc., the CPU 32 determines NO in S114 and proceeds to S120. In this way, the printer 10 can switch whether or not to convert the target MIB value according to the language setting 42.

S120において、CPU32は、言語テーブル44を利用して、言語設定42に対応するISO文字コード(即ち非UTF)を特定する。例えば、CPU32は、言語設定42がポルトガル語である場合には、ISO8859-1を特定する。以下では、ここで特定された非UTFのことを「対象文字コード」と記載する。このように、プリンタ10は、言語設定42に対応する対象文字コードを特定するので、言語設定42に応じた適切な文字コードに変換することができる。 In S120, the CPU 32 uses the language table 44 to identify the ISO character code (ie, non-UTF) corresponding to the language setting 42. For example, if the language setting 42 is Portuguese, the CPU 32 specifies ISO8859-1. In the following, the non-UTF specified here will be referred to as a "target character code." In this manner, the printer 10 specifies the target character code corresponding to the language setting 42, so that it can convert to an appropriate character code according to the language setting 42.

S122において、CPU32は、コード表46からUTFのコード表と対象文字コードのコード表とを特定し、これらのコード表を利用して、対象MIB値をUTFから対象文字コードに変換する。 In S122, the CPU 32 identifies a UTF code table and a target character code code table from the code table 46, and uses these code tables to convert the target MIB value from UTF to the target character code.

S130において、CPU32は、MIB値を管理テーブル38に書き込む。S122を経たS130では、CPU32は、S122で変換済みのMIB値(即ち対象文字コードで記述されたMIB値)を管理テーブル38に書き込む。S110でNO、S112でNO、又は、S114でYESを経たS130では、CPU32は、対象MIB値(即ちUTFで記述されたMIB値)を管理テーブル38に書き込む。 In S130, the CPU 32 writes the MIB value into the management table 38. In S130 after S122, the CPU 32 writes the MIB value converted in S122 (that is, the MIB value written in the target character code) into the management table 38. In S130 after NO in S110, NO in S112, or YES in S114, the CPU 32 writes the target MIB value (that is, the MIB value written in UTF) into the management table 38.

S140において、CPU32は、POSTコマンド内の次のアイテムが存在するのか否かを判断する。CPU32は、次のアイテムが存在する場合には、S140でYESと判断し、S100において、次のアイテムを特定してS110以降の処理を再び実行する。CPU32は、次のアイテムが存在しない場合には、S140でNOと判断して、S150に進む。 In S140, the CPU 32 determines whether the next item in the POST command exists. If the next item exists, the CPU 32 determines YES in S140, specifies the next item in S100, and executes the processes from S110 onwards again. If the next item does not exist, the CPU 32 determines NO in S140 and proceeds to S150.

S150において、CPU32は、応答コマンドを端末装置100に送信する。当該応答コマンドは、S100で特定された各アイテム内のOIDと、MIB値の書き込みが完了したことを示すステータス情報と、を含む。当該応答コマンド内の情報は暗号化されている(図2のS14参照)。S150が終了すると、図3のPOST処理が終了する。 In S150, CPU 32 transmits a response command to terminal device 100. The response command includes the OID in each item identified in S100 and status information indicating that writing of the MIB value has been completed. The information in the response command is encrypted (see S14 in FIG. 2). When S150 ends, the POST process in FIG. 3 ends.

(GET処理:図4)
続いて、図4を参照して、図2のS40のGET処理の内容を説明する。S200において、CPU32は、S20で受信されたGETコマンド内の1個のアイテムを特定する。ここで特定される1個のアイテムは、OIDを含む。以下では、S200で特定される1個のアイテムに含まれるOIDのことを「対象OID」と記載する。
(GET processing: Figure 4)
Next, with reference to FIG. 4, the contents of the GET process in S40 of FIG. 2 will be explained. In S200, the CPU 32 identifies one item in the GET command received in S20. One item specified here includes an OID. Hereinafter, the OID included in one item identified in S200 will be referred to as a "target OID."

S202において、CPU32は、管理テーブル38から、対象OIDに関連付けられているタイプ及びMIB値を読み出す。以下では、ここで読み出されるタイプ、MIB値のことを、それぞれ、「対象タイプ」、「対象MIB値」と記載する。 In S202, the CPU 32 reads the type and MIB value associated with the target OID from the management table 38. In the following, the type and MIB value read here will be referred to as "target type" and "target MIB value", respectively.

S210~S220は、図3のS110~S120と同様である。このように、プリンタ10は、対象タイプに応じて(即ちS210の判断に応じて)、対象OIDが判断リスト40に含まれるのか否かに応じて(即ちS212の判断に応じて)、及び、言語設定42に応じて(即ちS214の判断に応じて)、対象MIB値の変換を実行するのか否かを切り替えることができる。また、プリンタ10は、言語設定42に対応する対象文字コードを特定するので(即ちS220を実行するので)、言語設定42に応じた適切な文字コードに変換することができる。 S210 to S220 are similar to S110 to S120 in FIG. 3. In this way, the printer 10 determines whether the target OID is included in the determination list 40 depending on the target type (i.e., depending on the determination in S210), and whether the target OID is included in the determination list 40 (i.e., in response to the determination in S212). Depending on the language setting 42 (that is, depending on the determination in S214), it is possible to switch whether or not to convert the target MIB value. Furthermore, since the printer 10 specifies the target character code corresponding to the language setting 42 (that is, executes S220), it can convert to an appropriate character code according to the language setting 42.

S222において、CPU32は、コード表46からUTFのコード表と対象文字コードのコード表とを特定し、これらのコード表を利用して、対象MIB値を対象文字コードからUTFに変換する。 In S222, the CPU 32 identifies the UTF code table and the target character code code table from the code table 46, and uses these code tables to convert the target MIB value from the target character code to UTF.

S230において、CPU32は、MIB値を応答コマンドに書き込む。S222を経たS230では、CPU32は、S222で変換済みのMIB値(即ちUTFで記述されたMIB値)を応答コマンドに書き込む。S210でNO、S212でNO、又は、S214でYESを経たS230では、CPU32は、対象MIB値(即ちUTFで記述されたMIB値)を応答コマンドに書き込む。 In S230, the CPU 32 writes the MIB value to the response command. In S230 after S222, the CPU 32 writes the MIB value converted in S222 (that is, the MIB value written in UTF) to the response command. In S230 after NO in S210, NO in S212, or YES in S214, the CPU 32 writes the target MIB value (that is, the MIB value written in UTF) to the response command.

S240において、CPU32は、GETコマンド内の次のアイテムが存在するのか否かを判断する。CPU32は、次のアイテムが存在する場合には、S240でYESと判断し、S200において、次のアイテムを特定してS202以降の処理を再び実行する。CPU32は、次のアイテムが存在しない場合には、S240でNOと判断して、S250に進む。 In S240, the CPU 32 determines whether the next item in the GET command exists. If the next item exists, the CPU 32 determines YES in S240, specifies the next item in S200, and executes the processes from S202 onwards again. If the next item does not exist, the CPU 32 determines NO in S240 and proceeds to S250.

S250において、CPU32は、応答コマンドを端末装置100に送信する。当該応答コマンドは、S200で特定された各アイテム内のOIDと、S230で書き込まれた各MIB値と、MIB値の書き込みが完了したことを示すステータス情報と、を含む。当該応答コマンド内の情報は暗号化されている(図2のS14参照)。S250が終了すると、図4のGET処理が終了する。 In S250, CPU 32 transmits a response command to terminal device 100. The response command includes the OID in each item specified in S200, each MIB value written in S230, and status information indicating that writing of the MIB value is completed. The information in the response command is encrypted (see S14 in FIG. 2). When S250 ends, the GET process in FIG. 4 ends.

(具体的なケース)
続いて、図5~図8を参照して、図2~図4の処理によって実現される具体的なケースを説明する。図5は、POSTコマンドが端末装置100からプリンタ10に送信されるケースである。図7は、GETコマンドが端末装置100からプリンタ10に送信されるケースである。図5及び図7の各ケースでは、プリンタ10の言語設定42がポルトガル語であり、管理テーブル38内には図1に示される各MIB値が書き込まれている。
(Specific case)
Next, specific cases realized by the processes shown in FIGS. 2 to 4 will be described with reference to FIGS. 5 to 8. FIG. 5 shows a case where a POST command is sent from the terminal device 100 to the printer 10. FIG. 7 shows a case where a GET command is sent from the terminal device 100 to the printer 10. In each case of FIGS. 5 and 7, the language setting 42 of the printer 10 is Portuguese, and each MIB value shown in FIG. 1 is written in the management table 38.

(POSTコマンドのケース:図5)
端末装置100は、T10において、ユーザから書込操作を受け付ける。書込操作は、書込対象の2個の情報「名前」及び「IPアドレス」を指定する操作と、当該2個の情報のそれぞれの変更後の文字列を指定する操作と、を含む。この場合、端末装置100は、T12において、HTTPSコマンドをプリンタ10に送信する。
(POST command case: Figure 5)
The terminal device 100 receives a write operation from the user at T10. The write operation includes an operation of specifying two pieces of information to be written, a "name" and an "IP address," and an operation of specifying a changed character string for each of the two pieces of information. In this case, the terminal device 100 transmits an HTTPS command to the printer 10 at T12.

プリンタ10は、T12において、端末装置100からHTTPSコマンドを受信すると(図2のS10でYES)、T14において、Unauthorizedを示す応答コマンドを端末装置100に送信する(S12)。 When the printer 10 receives the HTTPS command from the terminal device 100 at T12 (YES at S10 in FIG. 2), the printer 10 transmits a response command indicating Unauthorized to the terminal device 100 at T14 (S12).

端末装置100は、T14において、プリンタ10から応答コマンドを受信すると、認証情報を入力するための画面を表示し(図示省略)、T20において、ユーザから認証情報を入力する操作を受け付ける。この場合、端末装置100は、T22において、認証情報を含むHTTPSコマンドをプリンタ10に送信する。 When the terminal device 100 receives the response command from the printer 10 at T14, it displays a screen for inputting authentication information (not shown), and receives an operation from the user to input authentication information at T20. In this case, the terminal device 100 transmits an HTTPS command including authentication information to the printer 10 at T22.

プリンタ10は、T22において、端末装置100からHTTPSコマンドを受信すると、T24において、認証成功を示す応答コマンドを端末装置100に送信する(S12でYES)。そして、プリンタ10は、T30において、暗号キーの交換を端末装置100と実行する(S14)。 Upon receiving the HTTPS command from the terminal device 100 at T22, the printer 10 transmits a response command indicating successful authentication to the terminal device 100 at T24 (YES at S12). Then, at T30, the printer 10 exchanges the encryption key with the terminal device 100 (S14).

端末装置100は、T30において、暗号キーの交換をプリンタ10と実行すると、T32において、T10の書込操作に応じたPOSTコマンド200をプリンタ10に送信する。具体的には、端末装置100は、プリンタ10の管理テーブル38と同様に、情報の内容、OID、及び、タイプを関連付けて記憶している。このため、端末装置100は、T10の書込操作で指定された情報「名前」から、末尾4のOIDとタイプ「string」とを特定して、それらの情報をPOSTコマンド200に書き込むことができる。同様に、端末装置100は、T10の書込操作で指定された情報「IPアドレス」から、末尾5のOIDとタイプ「string」とを特定して、それらの情報をPOSTコマンド200に書き込むことができる。 After the terminal device 100 exchanges the encryption key with the printer 10 at T30, the terminal device 100 transmits the POST command 200 corresponding to the write operation at T10 to the printer 10 at T32. Specifically, similar to the management table 38 of the printer 10, the terminal device 100 stores information contents, OIDs, and types in association with each other. Therefore, the terminal device 100 can identify the last 4 OID and the type "string" from the information "name" specified in the write operation of T10, and write these information to the POST command 200. . Similarly, the terminal device 100 can identify the OID at the end of 5 and the type "string" from the information "IP address" specified in the write operation of T10, and write these information to the POST command 200. can.

図6に示されるように、POSTコマンド200は、JSON形式で記述され、ヘッダ部とボディ部とを備える。ボディ部は、2個のアイテム202,204を含む。アイテム202は、情報「名前」に対応する末尾4のOIDと、タイプ「string」と、UTFで記述されるMIB値「C3,8D C3,93」と、を含む。アイテム204は、情報「IPアドレス」に対応する末尾5のOIDと、タイプ「string」と、UTFで記述されるMIB値「31 37 32・・・」と、を含む。 As shown in FIG. 6, the POST command 200 is written in JSON format and includes a header section and a body section. The body portion includes two items 202 and 204. Item 202 includes the OID with the last 4 corresponding to the information "name", the type "string", and the MIB value "C3,8D C3,93" written in UTF. Item 204 includes the OID with the last 5 corresponding to the information "IP address", the type "string", and the MIB value "31 37 32..." written in UTF.

プリンタ10は、T32において、端末装置100からPOSTコマンド200を受信すると(S20でYES、S22でPOST)、2個のアイテム202,204のそれぞれを順に処理する。 When the printer 10 receives the POST command 200 from the terminal device 100 at T32 (YES at S20, POST at S22), it sequentially processes each of the two items 202 and 204.

プリンタ10は、アイテム202について、タイプがstringであると判断する(図3のS110でYES)。プリンタ10は、末尾4のOIDが判断リスト40に含まれるので、MIB値が変換対象であると判断する(S112でYES)。プリンタ10は、言語設定42がポルトガル語であると判断し(S114でNO)、言語テーブル44からポルトガル語に対応する非UTF(即ちISO8859-1)を特定する(S120)。プリンタ10は、T40において、UTFで記述されているMIB値「C3,8D C3,93」をISO8859-1で記述されているMIB値「CD D3」に変換する(S122)。そして、プリンタ10は、末尾4のOIDに関連付けて、ISO8859-1で記述されているMIB値「CD D3」を管理テーブル38に書き込む(S130)。 The printer 10 determines that the type of the item 202 is string (YES in S110 of FIG. 3). Since the last 4 OIDs are included in the determination list 40, the printer 10 determines that the MIB value is to be converted (YES in S112). The printer 10 determines that the language setting 42 is Portuguese (NO in S114), and specifies a non-UTF (ie, ISO8859-1) corresponding to Portuguese from the language table 44 (S120). At T40, the printer 10 converts the MIB value "C3,8D C3,93" written in UTF to the MIB value "CD D3" written in ISO8859-1 (S122). Then, the printer 10 writes the MIB value "CD D3" described in ISO8859-1 in the management table 38 in association with the OID with the last 4 (S130).

プリンタ10は、アイテム204について、タイプがstringであると判断する(S110でYES)。プリンタ10は、末尾5のOIDが判断リスト40に含まれないので、MIB値が変換対象でないと判断する(S112でNO)。このため、プリンタ10は、UTFで記述されているMIB値「31 37 32・・・」を変換しない。プリンタ10は、T42において、末尾5のOIDに関連付けて、UTFで記述されているMIB値「31 37 32・・・」を管理テーブル38に書き込む(S130)。 The printer 10 determines that the type of the item 204 is string (YES in S110). Since the last 5 OIDs are not included in the determination list 40, the printer 10 determines that the MIB value is not a conversion target (NO in S112). Therefore, the printer 10 does not convert the MIB values "31 37 32..." written in UTF. At T42, the printer 10 writes the MIB value "31 37 32..." written in UTF into the management table 38 in association with the OID with the last 5 (S130).

プリンタ10は、2個のアイテム202,204に対する処理を実行すると(S140でNO)、T44において、応答コマンド210を端末装置100に送信する(S150)。図6に示されるように、応答コマンド210は、JSON形式で記述され、ヘッダ部とボディ部とを備える。ボディ部は、2個のアイテム212,214を含む。アイテム212は、POSTコマンド200のアイテム202内の末尾4のOIDと同じOIDと、ステータス情報「success」と、を含む。アイテム214は、POSTコマンド200のアイテム204内の末尾5のOIDと同じOIDと、ステータス情報「success」と、を含む。 When the printer 10 executes the processing on the two items 202 and 204 (NO at S140), it transmits the response command 210 to the terminal device 100 at T44 (S150). As shown in FIG. 6, the response command 210 is written in JSON format and includes a header section and a body section. The body portion includes two items 212 and 214. Item 212 includes the same OID as the last 4 OIDs in item 202 of POST command 200, and status information "success". Item 214 includes the same OID as the last 5 OID in item 204 of POST command 200, and status information "success".

端末装置100は、T44において、プリンタ10から応答コマンド210を受信すると、書込処理が適切に完了したことを示すメッセージを表示する(図示省略)。これにより、ユーザは、書込処理が適切に完了したことを知ることができる。 When the terminal device 100 receives the response command 210 from the printer 10 at T44, it displays a message indicating that the write process has been appropriately completed (not shown). This allows the user to know that the write process has been properly completed.

図5のケースに示されるように、プリンタ10は、UTFで記述されているMIB値「C3,8D C3,93」を非UTFで記述されているMIB値「CD D3」に変換して、末尾「4」のOIDに関連付けてMIB値「CD D3」を管理テーブル38に書き込む(T40)。従って、プリンタ10は、HTTPSに従ったPOSTコマンドに応じて、文字コードを考慮して書込処理を適切に実行することができる。 As shown in the case of FIG. 5, the printer 10 converts the MIB value "C3,8D C3,93" written in UTF to the MIB value "CD D3" written in non-UTF, The MIB value "CD D3" is written in the management table 38 in association with the OID "4" (T40). Therefore, the printer 10 can appropriately execute the write process in response to the POST command according to HTTPS, taking into account the character code.

(GETコマンドのケース:図7)
端末装置100は、T50において、ユーザから取得操作を受け付ける。取得操作は、取得対象の3個の情報「消耗品残量」「名前」、及び、「IPアドレス」のそれぞれを指定する操作を含む。この場合、端末装置100は、T52において、HTTPSコマンドをプリンタ10に送信する。T52~T80は、図5のT12~T30と同様である。
(GET command case: Figure 7)
The terminal device 100 receives an acquisition operation from the user at T50. The acquisition operation includes an operation of specifying each of the three pieces of information to be acquired: "remaining amount of consumables,""name," and "IP address." In this case, the terminal device 100 transmits an HTTPS command to the printer 10 at T52. T52 to T80 are similar to T12 to T30 in FIG.

端末装置100は、T80において、暗号キーの交換をプリンタ10と実行すると、T82において、T50の取得操作に応じたGETコマンド220をプリンタ10に送信する。端末装置100は、T50の取得操作で指定された情報「消耗品残量」から末尾2のOIDを特定して、その情報をGETコマンド220に書き込むことができる。同様に、端末装置100は、T50の取得操作で指定された情報「名前」、「IPアドレス」から、それぞれ、末尾4のOID、末尾5のOIDを特定して、それらの情報をGETコマンド220に書き込むことができる。 After the terminal device 100 exchanges the encryption key with the printer 10 at T80, the terminal device 100 transmits a GET command 220 corresponding to the acquisition operation at T50 to the printer 10 at T82. The terminal device 100 can identify the second OID at the end from the information “remaining amount of consumables” specified in the acquisition operation of T50, and write that information in the GET command 220. Similarly, the terminal device 100 specifies the OID with the last 4 and the OID with the last 5 from the information "name" and "IP address" specified in the acquisition operation of T50, respectively, and sends these information using the GET command 220. can be written to.

図8に示されるように、GETコマンド220は、JSON形式で記述され、ヘッダ部とボディ部とを備える。ボディ部は、3個のアイテム222,224,226を含む。アイテム222は、情報「消耗品残量」に対応する末尾2のOIDを含む。アイテム224は、情報「名前」に対応する末尾4のOIDを含む。アイテム226は、情報「IPアドレス」に対応する末尾5のOIDを含む。 As shown in FIG. 8, the GET command 220 is written in JSON format and includes a header part and a body part. The body portion includes three items 222, 224, 226. Item 222 includes the last OID 2 corresponding to the information "remaining amount of consumables". Item 224 includes the last 4 OIDs corresponding to the information "name". Item 226 includes the last 5 OIDs corresponding to the information "IP address".

プリンタ10は、T82において、端末装置100からGETコマンド220を受信すると(S20でYES、S22でGET)、3個のアイテム222,224,226のそれぞれを順に処理する。 When the printer 10 receives the GET command 220 from the terminal device 100 at T82 (YES at S20, GET at S22), it processes each of the three items 222, 224, and 226 in order.

プリンタ10は、アイテム222について、管理テーブル38から、末尾2のOIDに関連付けられているタイプ「integer」及びMIB値「38 30」を読み出す(図4のS202)。プリンタ10は、タイプがintegerであると判断する(S210でNO)。このため、プリンタ10は、UTFで記述されているMIB値「38 30」を変換しない。プリンタ10は、T90において、末尾2のOIDと、タイプ「integer」と、UTFで記述されているMIB値「38 30」と、を応答コマンドに書き込む(S230、図8の応答コマンド230内のアイテム232参照)。 The printer 10 reads the type "integer" and the MIB value "38 30" associated with the last OID 2 from the management table 38 for the item 222 (S202 in FIG. 4). The printer 10 determines that the type is integer (NO in S210). Therefore, the printer 10 does not convert the MIB value "38 30" written in UTF. At T90, the printer 10 writes the last OID 2, the type "integer", and the MIB value "38 30" written in UTF into the response command (S230, the item in the response command 230 in FIG. 8 232).

プリンタ10は、アイテム224について、管理テーブル38から、末尾4のOIDに関連付けられているタイプ「string」及びMIB値「C7 C8 C9」を読み出す(S202)。プリンタ10は、タイプがstringであると判断する(S210でYES)。プリンタ10は、末尾4のOIDが判断リスト40に含まれるので、MIB値が変換対象であると判断する(S212でYES)。プリンタ10は、言語設定42がポルトガル語であると判断し(S214でNO)、言語テーブル44からポルトガル語に対応する非UTF(即ちISO8859-1)を特定する(S220)。プリンタ10は、T92において、ISO8859-1で記述されているMIB値「C7 C8 C9」をUTFで記述されているMIB値「C3,87 C3,88 C3,89」に変換する(S222)。そして、プリンタ10は、末尾4のOIDと、タイプ「string」と、UTFで記述されているMIB値「C3,87 C3,88 C3,89」と、を応答コマンドに書き込む(S230、図8の応答コマンド230内のアイテム234参照)。 The printer 10 reads the type "string" and the MIB value "C7 C8 C9" associated with the last 4 OIDs from the management table 38 for the item 224 (S202). The printer 10 determines that the type is string (YES in S210). Since the last 4 OIDs are included in the determination list 40, the printer 10 determines that the MIB value is to be converted (YES in S212). The printer 10 determines that the language setting 42 is Portuguese (NO in S214), and specifies a non-UTF (ie, ISO8859-1) corresponding to Portuguese from the language table 44 (S220). At T92, the printer 10 converts the MIB values "C7 C8 C9" described in ISO8859-1 to the MIB values "C3,87 C3,88 C3,89" described in UTF (S222). Then, the printer 10 writes the last 4 OID, the type "string", and the MIB value "C3,87 C3,88 C3,89" written in UTF into the response command (S230, shown in FIG. 8). (See item 234 in response command 230).

プリンタ10は、アイテム226について、管理テーブル38から、末尾5のOIDに関連付けられているタイプ「string」及びMIB値「31 39 32・・・」を読み出す(S202)。プリンタ10は、タイプがstringであると判断する(S210でYES)。プリンタ10は、末尾5のOIDが判断リスト40に含まれないので、MIB値が変換対象でないと判断する(S212でNO)。このため、プリンタ10は、UTFで記述されているMIB値「31 39 32・・・」を変換しない。プリンタ10は、T94において、末尾5のOIDと、タイプ「string」と、UTFで記述されているMIB値「31 39 32・・・」と、を応答コマンドに書き込む(S230、図8の応答コマンド230内のアイテム236参照)。 The printer 10 reads the type "string" and the MIB value "31 39 32..." associated with the last OID 5 from the management table 38 for the item 226 (S202). The printer 10 determines that the type is string (YES in S210). Since the last 5 OIDs are not included in the determination list 40, the printer 10 determines that the MIB value is not a conversion target (NO in S212). Therefore, the printer 10 does not convert the MIB values "31 39 32..." written in UTF. In T94, the printer 10 writes the OID ending in 5, the type "string", and the MIB value "31 39 32..." written in UTF to the response command (S230, the response command in FIG. 8 (See item 236 within 230).

プリンタ10は、3個のアイテム222,224,226に対する処理を実行すると(S240でNO)、T96において、応答コマンド230を端末装置100に送信する(S250)。図8に示されるように、応答コマンド230は、JSON形式で記述され、ヘッダ部とボディ部とを備える。ボディ部は、3個のアイテム232,234,236を含む。 When the printer 10 executes the processing on the three items 222, 224, and 226 (NO at S240), it transmits the response command 230 to the terminal device 100 at T96 (S250). As shown in FIG. 8, the response command 230 is written in JSON format and includes a header section and a body section. The body portion includes three items 232, 234, 236.

端末装置100は、T96において、プリンタ10から応答コマンド230を受信すると、応答コマンド230内の情報を表示する(図示省略)。具体的には、端末装置100は、アイテム232内の末尾2のOIDから特定される文字列「消耗品残量」と、アイテム232内のMIB値「38 30」から特定される文字列「80」と、を対応付けて表示する。同様に、端末装置100は、文字列「名前」と、MIB値「C3,87 C3,88 C3,89」から特定される文字列と、を対応付けて表示すると共に、文字列「IPアドレス」と、MIB値「31 39 32・・・」から特定される文字列「192・・・」と、を対応付けて表示する。これにより、ユーザは、プリンタ10内の各設定値を知ることができる。 Upon receiving the response command 230 from the printer 10 at T96, the terminal device 100 displays information in the response command 230 (not shown). Specifically, the terminal device 100 inputs the character string “remaining amount of consumables” specified from the last 2 OID in the item 232 and the character string “80” specified from the MIB value “38 30” in the item 232. ” and are displayed in association with each other. Similarly, the terminal device 100 displays the character string "Name" in association with the character string specified from the MIB value "C3,87 C3,88 C3,89", and also displays the character string "IP address". and the character string "192..." specified from the MIB values "31 39 32..." are displayed in association with each other. This allows the user to know each setting value within the printer 10.

図7のケースに示されるように、プリンタ10は、非UTFで記述されているMIB値「C7 C8 C9」をUTFで記述されているMIB値「C3,87 C3,88 C3,89」に変換して、変換済みのMIB値を含む応答コマンド230を端末装置100に送信する(T96)。従って、プリンタ10は、HTTPSのGETコマンドに応じて、文字コードを考慮して応答処理を適切に実行することができる。 As shown in the case of FIG. 7, the printer 10 converts the MIB value "C7 C8 C9" written in non-UTF to the MIB value "C3,87 C3,88 C3,89" written in UTF. Then, a response command 230 including the converted MIB value is transmitted to the terminal device 100 (T96). Therefore, the printer 10 can appropriately execute response processing in response to an HTTPS GET command, taking into account the character code.

(対応関係)
管理テーブル38が、「管理情報」の一例である。POSTコマンド、GETコマンドが、それぞれ、「設定コマンド」、「取得コマンド」の一例である。判断リスト40が、「特定情報」の一例である。日本語、中国語、及び、韓国語が、「所定の言語設定」の一例である。タイプ「string」、タイプ「integer」が、それぞれ、「第1のデータタイプ」、「第2のデータタイプ」の一例である。図6のPOSTコマンド200のアイテム202内のOID及びアイテム204内のOIDが、「第1のOID」の一例である。アイテム202内のMIB値、変換済みの当該MIB値が、それぞれ、「第1の値」、「第2の値」の一例である。図8のGETコマンド220のアイテム224内のOID及びアイテム226内のOIDが、「第2のOID」の一例である。アイテム224内のOIDに関連付けられている変換前のMIB値、変換済みの当該MIB値が、それぞれ、「第3の値」、「第4の値」の一例である。
(correspondence)
The management table 38 is an example of "management information". A POST command and a GET command are examples of a "setting command" and an "obtaining command", respectively. The judgment list 40 is an example of "specific information". Japanese, Chinese, and Korean are examples of "predetermined language settings." The type "string" and the type "integer" are examples of the "first data type" and "second data type", respectively. The OID in item 202 and the OID in item 204 of the POST command 200 in FIG. 6 are examples of the "first OID." The MIB value in item 202 and the converted MIB value are examples of a "first value" and a "second value," respectively. The OID in item 224 and the OID in item 226 of the GET command 220 in FIG. 8 are examples of the "second OID." The MIB value before conversion and the converted MIB value associated with the OID in item 224 are examples of the "third value" and the "fourth value", respectively.

図2のS20及び図5のT32が、「設定コマンド受信部」によって実行される処理の一例である。図3のS122及び図5のT40が、「第1の変換部」によって実行される処理の一例である。図3のS130、図5のT40及びT42が、「書込部」によって実行される処理の一例である。図3のS20及び図7のT82が、「取得コマンド受信部」によって実行される処理の一例である。図4のS202が、「取得部」によって実行される処理の一例である。図4のS222及び図7のT92が、「第2の変換部」によって実行される処理の一例である。図4のS250及び図7のT96が、「応答コマンド送信部」によって実行される処理の一例である。 S20 in FIG. 2 and T32 in FIG. 5 are examples of processing executed by the "setting command receiving section." S122 in FIG. 3 and T40 in FIG. 5 are examples of processing executed by the "first converter". S130 in FIG. 3 and T40 and T42 in FIG. 5 are examples of processing executed by the "writing unit". S20 in FIG. 3 and T82 in FIG. 7 are examples of processing executed by the "acquisition command receiving section." S202 in FIG. 4 is an example of a process executed by the "acquisition unit". S222 in FIG. 4 and T92 in FIG. 7 are examples of processing executed by the "second conversion unit." S250 in FIG. 4 and T96 in FIG. 7 are examples of processing executed by the "response command transmitter".

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。 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)判断リスト40、図3のS112、及び、図4のS212を省略してもよい。即ち、「特定情報」は省略可能である。また、「第1(又は第2)の変換部」は、第1のOID(又は第2のOID)が関連OIDであるのか否かに関わらず、第1の値(又は第3の値)を第2の値(又は第4の値)に変換してもよい。 (Modification 1) The judgment list 40, S112 in FIG. 3, and S212 in FIG. 4 may be omitted. That is, "specific information" can be omitted. In addition, the "first (or second) conversion unit" converts the first value (or the third value) regardless of whether the first OID (or the second OID) is a related OID. may be converted into a second value (or a fourth value).

(変形例2)図3のS114及び図4のS214を省略してもよい。この場合、S220において、日本語については、例えばShift-JISが特定されてもよい。また、中国語については、例えばGB2312-1980が特定されてもよい。即ち、「第1(又は第2)の変換部」は、通信装置の言語設定が所定の言語設定であるのか否かに関わらず、第1の値(又は第3の値)を第2の値(又は第4の値)に変換してもよい。 (Modification 2) S114 in FIG. 3 and S214 in FIG. 4 may be omitted. In this case, in S220, for Japanese, Shift-JIS, for example, may be specified. Furthermore, for Chinese, for example, GB2312-1980 may be specified. That is, the "first (or second) conversion unit" converts the first value (or third value) into the second value, regardless of whether the language setting of the communication device is the predetermined language setting or not. value (or a fourth value).

(変形例3)例えば英語のみをサポートしているプリンタ10(即ちユーザが言語設定42を指定不可能なプリンタ10)であれば、言語テーブル44が必要ない。この例では、コード表46としては、ISO8859-1の文字コードと、UTFの文字コードと、があればよい。即ち、「第1(又は第2)の変換部」は、言語設定に対応する非UTFの文字コードを特定しなくてもよい。 (Variation 3) For example, if the printer 10 supports only English (that is, the printer 10 in which the user cannot specify the language setting 42), the language table 44 is not necessary. In this example, the code table 46 only needs to have ISO8859-1 character codes and UTF character codes. That is, the "first (or second) conversion unit" does not need to specify the non-UTF character code corresponding to the language setting.

(変形例4)図3のS110及び図4のS210を省略してもよい。即ち、「第1(又は第2)の変換部」は、タイプ情報に関わらず、第1の値(又は第3の値)を第2の値(又は第4の値)に変換してもよい。 (Modification 4) S110 in FIG. 3 and S210 in FIG. 4 may be omitted. In other words, the "first (or second) conversion unit" converts the first value (or third value) into the second value (or fourth value) regardless of the type information. good.

(変形例5)UTFは、UTF-8に限られず、UTF-16、UTF-32等であってもよい。非UTFは、ISO8859系の文字コードに限られず、Shift-JIS、GB2312-1980等であってもよい。 (Modification 5) UTF is not limited to UTF-8, and may be UTF-16, UTF-32, or the like. Non-UTF is not limited to ISO8859-based character codes, but may also be Shift-JIS, GB2312-1980, or the like.

(変形例6)「通信装置」は、プリンタに限られず、スキャナ、ファクシミリ、PC、サーバ等の他の装置であってもよい。 (Variation 6) The "communication device" is not limited to a printer, but may be another device such as a scanner, facsimile, PC, or server.

(変形例7)上記の実施例では、CPU32がプログラム36を実行することによって、図2~図5及び図7の各処理が実現される。これに代えて、いずれかの処理は、論理回路等のハードウェアによって実現されてもよい。 (Modification 7) In the above embodiment, the CPU 32 executes the program 36 to realize the processes shown in FIGS. 2 to 5 and 7. 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)
通信装置であって、
MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、
端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った設定コマンドを受信する設定コマンド受信部であって、前記設定コマンドは、第1のOIDと、UTF(Unicode Transformation Formatの略)で記述される第1の値と、を含む、前記設定コマンド受信部と、
前記端末装置から前記設定コマンドが受信される場合に、前記設定コマンドに含まれる前記第1の値を非UTFで記述される第2の値に変換する第1の変換部と、
前記設定コマンドに含まれる前記第1のOIDに関連付けて、変換済みの前記第2の値を前記管理情報に書き込む書込部と、
を備える、通信装置。
(項目2)
前記メモリは、さらに、変換対象の設定値に関連付けられるOIDである関連OIDを特定するための特定情報を記憶し、
前記設定コマンドに含まれる前記第1のOIDが前記特定情報に基づいて前記関連OIDであると特定される場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換し、
前記書込部は、前記第1のOIDに関連付けて前記第2の値を前記管理情報に書き込み、
前記設定コマンドに含まれる前記第1のOIDが前記特定情報に基づいて前記関連OIDでないと特定される場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換せず、
前記書込部は、前記第1のOIDに関連付けて前記第1の値を前記管理情報に書き込む、項目1に記載の通信装置。
(項目3)
前記通信装置の言語設定が所定の言語設定でない場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換し、
前記書込部は、前記第1のOIDに関連付けて前記第2の値を前記管理情報に書き込み、
前記通信装置の前記言語設定が前記所定の言語設定である場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換せず、
前記書込部は、前記第1のOIDに関連付けて前記第1の値を前記管理情報に書き込む、項目1又は2に記載の通信装置。
(項目4)
前記第1の変換部は、前記通信装置の言語設定に対応する前記非UTFの文字コードを特定し、前記第1の値を特定済みの前記文字コードで記述される前記第2の値に変換する、項目1から3のいずれか一項に記載の通信装置。
(項目5)
前記設定コマンドは、さらに、前記第1の値のデータタイプを示すタイプ情報を含み、
前記設定コマンドに含まれる前記タイプ情報が第1のデータタイプを示す場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換し、
前記書込部は、前記第1のOIDに関連付けて前記第2の値を前記管理情報に書き込み、
前記設定コマンドに含まれる前記タイプ情報が前記第1のデータタイプとは異なる第2のデータタイプを示す場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換せず、
前記書込部は、前記第1のOIDに関連付けて前記第1の値を前記管理情報に書き込む、項目1から4のいずれか一項に記載の通信装置。
(項目6)
前記通信装置は、さらに、
前記端末装置から、前記TCPに従った取得コマンドを受信する取得コマンド受信部であって、前記取得コマンドは、第2のOIDを含む、前記取得コマンド受信部と、
前記端末装置から前記取得コマンドが受信される場合に、前記メモリ内の前記管理情報から、前記取得コマンドに含まれる前記第2のOIDに関連付けられている第3の値であって、前記非UTFで記述される前記第3の値を取得する取得部と、
取得済みの前記第3の値を前記UTFで記述される第4の値に変換する第2の変換部と、
変換済みの前記第4の値を含む応答コマンドを前記端末装置に送信する応答コマンド送信部と、
を備える、項目1から5のいずれか一項に記載の通信装置。
(項目7)
通信装置であって、
MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、
端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った取得コマンドを受信する取得コマンド受信部であって、前記取得コマンドは、第2のOIDを含む、前記取得コマンド受信部と、
前記端末装置から前記取得コマンドが受信される場合に、前記メモリ内の前記管理情報から、前記取得コマンドに含まれる前記第2のOIDに関連付けられている第3の値であって、非UTF(Unicode Transformation Formatの略)で記述される前記第3の値を取得する取得部と、
取得済みの前記第3の値をUTFで記述される第4の値に変換する第2の変換部と、
変換済みの前記第4の値を含む応答コマンドを前記端末装置に送信する応答コマンド送信部と、
を備える、通信装置。
(項目8)
前記メモリは、さらに、変換対象の設定値に関連付けられるOIDである関連OIDを特定するための特定情報を記憶し、
前記取得コマンドに含まれる前記第2のOIDが前記特定情報に基づいて前記関連OIDであると特定される場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換し、
前記応答コマンド送信部は、前記第4の値を含む前記応答コマンドを前記端末装置に送信し、
前記取得コマンドに含まれる前記第2のOIDが前記特定情報に基づいて前記関連OIDでないと特定される場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換せず、
前記応答コマンド送信部は、前記第3の値を含む前記応答コマンドを前記端末装置に送信する、項目7に記載の通信装置。
(項目9)
前記通信装置の言語設定が所定の言語設定でない場合に、
前記第2の変換部は、前記第1の値を前記第2の値に変換し、
前記応答コマンド送信部は、前記第4の値を含む前記応答コマンドを前記端末装置に送信し、
前記通信装置の前記言語設定が前記所定の言語設定である場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換せず、
前記応答コマンド送信部は、前記第3の値を含む前記応答コマンドを前記端末装置に送信する、項目7又は8に記載の通信装置。
(項目10)
前記第2の変換部は、前記通信装置の言語設定に対応する前記非UTFの文字コードを特定し、特定済みの前記文字コードで記述される前記第3の値を前記第4の値に変換する、項目7から9のいずれか一項に記載の通信装置。
(項目11)
前記取得コマンドに含まれる前記第2のOIDに関連付けられている前記第3の値のデータタイプが第1のデータタイプである場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換し、
前記応答コマンド送信部は、前記第4の値を含む前記応答コマンドを前記端末装置に送信し、
前記取得コマンドに含まれる前記第2のOIDに関連付けられている前記第3の値のデータタイプが前記第1のデータタイプとは異なる第2のデータタイプである場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換せず、
前記応答コマンド送信部は、前記第3の値を含む前記応答コマンドを前記端末装置に送信する、項目7から10のいずれか一項に記載の通信装置。
(項目12)
前記UTFは、UTF-8であり、
前記非UTFは、ISO8859系の文字コードである、項目1から11のいずれか一項に記載の通信装置。
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 communication device,
a memory that stores management information in which the OID and setting value are associated with each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base);
A configuration command receiving unit that receives a configuration command according to TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a terminal device, the configuration command being a first and a first value written in UTF (Unicode Transformation Format);
a first conversion unit that converts the first value included in the configuration command into a second value written in non-UTF when the configuration command is received from the terminal device;
a writing unit that writes the converted second value in the management information in association with the first OID included in the setting command;
A communication device comprising:
(Item 2)
The memory further stores specific information for specifying a related OID that is an OID associated with a setting value to be converted,
When the first OID included in the setting command is identified as the related OID based on the specific information,
The first conversion unit converts the first value into the second value,
The writing unit writes the second value in the management information in association with the first OID,
When the first OID included in the setting command is identified as not the related OID based on the specific information,
The first conversion unit does not convert the first value to the second value,
The communication device according to item 1, wherein the writing unit writes the first value into the management information in association with the first OID.
(Item 3)
If the language setting of the communication device is not a predetermined language setting,
The first conversion unit converts the first value into the second value,
The writing unit writes the second value in the management information in association with the first OID,
when the language setting of the communication device is the predetermined language setting,
The first conversion unit does not convert the first value to the second value,
The communication device according to item 1 or 2, wherein the writing unit writes the first value into the management information in association with the first OID.
(Item 4)
The first conversion unit specifies the non-UTF character code corresponding to the language setting of the communication device, and converts the first value into the second value written in the specified character code. The communication device according to any one of items 1 to 3.
(Item 5)
The setting command further includes type information indicating a data type of the first value,
When the type information included in the configuration command indicates a first data type,
The first conversion unit converts the first value into the second value,
The writing unit writes the second value in the management information in association with the first OID,
When the type information included in the configuration command indicates a second data type different from the first data type,
The first conversion unit does not convert the first value to the second value,
The communication device according to any one of items 1 to 4, wherein the writing unit writes the first value to the management information in association with the first OID.
(Item 6)
The communication device further includes:
an acquisition command receiving unit that receives an acquisition command according to the TCP from the terminal device, the acquisition command including a second OID;
When the acquisition command is received from the terminal device, a third value associated with the second OID included in the acquisition command is determined from the management information in the memory, the non-UTF an acquisition unit that acquires the third value described by;
a second conversion unit that converts the acquired third value into a fourth value written in UTF;
a response command transmitter that transmits a response command including the converted fourth value to the terminal device;
The communication device according to any one of items 1 to 5, comprising:
(Item 7)
A communication device,
a memory that stores management information in which the OID and setting value are associated with each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base);
An acquisition command receiving unit that receives an acquisition command according to TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a terminal device, the acquisition command being a second The acquisition command receiving unit includes an OID of
When the acquisition command is received from the terminal device, a third value associated with the second OID included in the acquisition command is determined from the management information in the memory, and is a non-UTF ( an acquisition unit that acquires the third value described in Unicode Transformation Format (abbreviation for Unicode Transformation Format);
a second conversion unit that converts the acquired third value into a fourth value written in UTF;
a response command transmitter that transmits a response command including the converted fourth value to the terminal device;
A communication device comprising:
(Item 8)
The memory further stores specific information for specifying a related OID that is an OID associated with a setting value to be converted,
When the second OID included in the acquisition command is identified as the related OID based on the specific information,
The second conversion unit converts the third value into the fourth value,
The response command transmitting unit transmits the response command including the fourth value to the terminal device,
When the second OID included in the acquisition command is identified as not the related OID based on the specific information,
The second conversion unit does not convert the third value to the fourth value,
The communication device according to item 7, wherein the response command transmitting unit transmits the response command including the third value to the terminal device.
(Item 9)
If the language setting of the communication device is not a predetermined language setting,
The second conversion unit converts the first value into the second value,
The response command transmitting unit transmits the response command including the fourth value to the terminal device,
when the language setting of the communication device is the predetermined language setting,
The second conversion unit does not convert the third value to the fourth value,
9. The communication device according to item 7 or 8, wherein the response command transmitting unit transmits the response command including the third value to the terminal device.
(Item 10)
The second conversion unit specifies the non-UTF character code corresponding to the language setting of the communication device, and converts the third value written in the specified character code to the fourth value. The communication device according to any one of items 7 to 9.
(Item 11)
when the data type of the third value associated with the second OID included in the acquisition command is the first data type;
The second conversion unit converts the third value into the fourth value,
The response command transmitting unit transmits the response command including the fourth value to the terminal device,
when the data type of the third value associated with the second OID included in the acquisition command is a second data type different from the first data type;
The second conversion unit does not convert the third value to the fourth value,
The communication device according to any one of items 7 to 10, wherein the response command transmitting unit transmits the response command including the third value to the terminal device.
(Item 12)
The UTF is UTF-8,
The communication device according to any one of items 1 to 11, wherein the non-UTF is an ISO8859-based character code.

2:通信システム、6:LAN、10:プリンタ、12:操作部、14:表示部、16:LANインターフェース、18:印刷実行部、30:制御部、32:CPU、34A:不揮発性メモリ、34B:揮発性メモリ、36:プログラム、38:管理テーブル、40:判断リスト、42:言語設定、44:言語テーブル、46:コード表、100:端末装置 2: Communication system, 6: LAN, 10: Printer, 12: Operation unit, 14: Display unit, 16: LAN interface, 18: Print execution unit, 30: Control unit, 32: CPU, 34A: Non-volatile memory, 34B : volatile memory, 36: program, 38: management table, 40: judgment list, 42: language setting, 44: language table, 46: code table, 100: terminal device

Claims (14)

通信装置であって、
MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、
端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った設定コマンドを受信する設定コマンド受信部であって、前記設定コマンドは、第1のOIDと、UTF(Unicode Transformation Formatの略)で記述される第1の値と、を含む、前記設定コマンド受信部と、
前記端末装置から前記設定コマンドが受信される場合に、前記設定コマンドに含まれる前記第1の値を非UTFで記述される第2の値に変換する第1の変換部と、
前記設定コマンドに含まれる前記第1のOIDに関連付けて、変換済みの前記第2の値を前記管理情報に書き込む書込部と、
を備える、通信装置。
A communication device,
a memory that stores management information in which the OID and setting value are associated with each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base);
A configuration command receiving unit that receives a configuration command according to TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a terminal device, the configuration command being a first and a first value written in UTF (Unicode Transformation Format);
a first conversion unit that converts the first value included in the configuration command into a second value written in non-UTF when the configuration command is received from the terminal device;
a writing unit that writes the converted second value in the management information in association with the first OID included in the setting command;
A communication device comprising:
前記メモリは、さらに、変換対象の設定値に関連付けられるOIDである関連OIDを特定するための特定情報を記憶し、
前記設定コマンドに含まれる前記第1のOIDが前記特定情報に基づいて前記関連OIDであると特定される場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換し、
前記書込部は、前記第1のOIDに関連付けて前記第2の値を前記管理情報に書き込み、
前記設定コマンドに含まれる前記第1のOIDが前記特定情報に基づいて前記関連OIDでないと特定される場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換せず、
前記書込部は、前記第1のOIDに関連付けて前記第1の値を前記管理情報に書き込む、請求項1に記載の通信装置。
The memory further stores specific information for specifying a related OID that is an OID associated with a setting value to be converted,
When the first OID included in the setting command is identified as the related OID based on the specific information,
The first conversion unit converts the first value into the second value,
The writing unit writes the second value in the management information in association with the first OID,
When the first OID included in the setting command is identified as not the related OID based on the specific information,
The first conversion unit does not convert the first value to the second value,
The communication device according to claim 1, wherein the writing unit writes the first value into the management information in association with the first OID.
前記通信装置の言語設定が所定の言語設定でない場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換し、
前記書込部は、前記第1のOIDに関連付けて前記第2の値を前記管理情報に書き込み、
前記通信装置の前記言語設定が前記所定の言語設定である場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換せず、
前記書込部は、前記第1のOIDに関連付けて前記第1の値を前記管理情報に書き込む、請求項1に記載の通信装置。
If the language setting of the communication device is not a predetermined language setting,
The first conversion unit converts the first value into the second value,
The writing unit writes the second value in the management information in association with the first OID,
when the language setting of the communication device is the predetermined language setting,
The first conversion unit does not convert the first value to the second value,
The communication device according to claim 1, wherein the writing unit writes the first value into the management information in association with the first OID.
前記第1の変換部は、前記通信装置の言語設定に対応する前記非UTFの文字コードを特定し、前記第1の値を特定済みの前記文字コードで記述される前記第2の値に変換する、請求項1に記載の通信装置。 The first conversion unit specifies the non-UTF character code corresponding to the language setting of the communication device, and converts the first value into the second value written in the specified character code. The communication device according to claim 1. 前記設定コマンドは、さらに、前記第1の値のデータタイプを示すタイプ情報を含み、
前記設定コマンドに含まれる前記タイプ情報が第1のデータタイプを示す場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換し、
前記書込部は、前記第1のOIDに関連付けて前記第2の値を前記管理情報に書き込み、
前記設定コマンドに含まれる前記タイプ情報が前記第1のデータタイプとは異なる第2のデータタイプを示す場合に、
前記第1の変換部は、前記第1の値を前記第2の値に変換せず、
前記書込部は、前記第1のOIDに関連付けて前記第1の値を前記管理情報に書き込む、請求項1に記載の通信装置。
The setting command further includes type information indicating a data type of the first value,
When the type information included in the configuration command indicates a first data type,
The first conversion unit converts the first value into the second value,
The writing unit writes the second value in the management information in association with the first OID,
When the type information included in the configuration command indicates a second data type different from the first data type,
The first conversion unit does not convert the first value to the second value,
The communication device according to claim 1, wherein the writing unit writes the first value into the management information in association with the first OID.
前記通信装置は、さらに、
前記端末装置から、前記TCPに従った取得コマンドを受信する取得コマンド受信部であって、前記取得コマンドは、第2のOIDを含む、前記取得コマンド受信部と、
前記端末装置から前記取得コマンドが受信される場合に、前記メモリ内の前記管理情報から、前記取得コマンドに含まれる前記第2のOIDに関連付けられている第3の値であって、前記非UTFで記述される前記第3の値を取得する取得部と、
取得済みの前記第3の値を前記UTFで記述される第4の値に変換する第2の変換部と、
変換済みの前記第4の値を含む応答コマンドを前記端末装置に送信する応答コマンド送信部と、
を備える、請求項1に記載の通信装置。
The communication device further includes:
an acquisition command receiving unit that receives an acquisition command according to the TCP from the terminal device, the acquisition command including a second OID;
When the acquisition command is received from the terminal device, a third value associated with the second OID included in the acquisition command is determined from the management information in the memory, the non-UTF an acquisition unit that acquires the third value described by;
a second conversion unit that converts the acquired third value into a fourth value written in UTF;
a response command transmitter that transmits a response command including the converted fourth value to the terminal device;
The communication device according to claim 1, comprising:
通信装置であって、
MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、
端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った取得コマンドを受信する取得コマンド受信部であって、前記取得コマンドは、第2のOIDを含む、前記取得コマンド受信部と、
前記端末装置から前記取得コマンドが受信される場合に、前記メモリ内の前記管理情報から、前記取得コマンドに含まれる前記第2のOIDに関連付けられている第3の値であって、非UTF(Unicode Transformation Formatの略)で記述される前記第3の値を取得する取得部と、
取得済みの前記第3の値をUTFで記述される第4の値に変換する第2の変換部と、
変換済みの前記第4の値を含む応答コマンドを前記端末装置に送信する応答コマンド送信部と、
を備える、通信装置。
A communication device,
a memory that stores management information in which the OID and setting value are associated with each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base);
An acquisition command receiving unit that receives an acquisition command according to TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a terminal device, the acquisition command being a second The acquisition command receiving unit includes an OID of
When the acquisition command is received from the terminal device, a third value associated with the second OID included in the acquisition command is determined from the management information in the memory, and is a non-UTF ( an acquisition unit that acquires the third value described in Unicode Transformation Format (abbreviation for Unicode Transformation Format);
a second conversion unit that converts the acquired third value into a fourth value written in UTF;
a response command transmitter that transmits a response command including the converted fourth value to the terminal device;
A communication device comprising:
前記メモリは、さらに、変換対象の設定値に関連付けられるOIDである関連OIDを特定するための特定情報を記憶し、
前記取得コマンドに含まれる前記第2のOIDが前記特定情報に基づいて前記関連OIDであると特定される場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換し、
前記応答コマンド送信部は、前記第4の値を含む前記応答コマンドを前記端末装置に送信し、
前記取得コマンドに含まれる前記第2のOIDが前記特定情報に基づいて前記関連OIDでないと特定される場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換せず、
前記応答コマンド送信部は、前記第3の値を含む前記応答コマンドを前記端末装置に送信する、請求項7に記載の通信装置。
The memory further stores specific information for specifying a related OID that is an OID associated with a setting value to be converted,
When the second OID included in the acquisition command is identified as the related OID based on the specific information,
The second conversion unit converts the third value into the fourth value,
The response command transmitting unit transmits the response command including the fourth value to the terminal device,
When the second OID included in the acquisition command is identified as not the related OID based on the specific information,
The second conversion unit does not convert the third value to the fourth value,
The communication device according to claim 7, wherein the response command transmitter transmits the response command including the third value to the terminal device.
前記通信装置の言語設定が所定の言語設定でない場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換し、
前記応答コマンド送信部は、前記第4の値を含む前記応答コマンドを前記端末装置に送信し、
前記通信装置の前記言語設定が前記所定の言語設定である場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換せず、
前記応答コマンド送信部は、前記第3の値を含む前記応答コマンドを前記端末装置に送信する、請求項7に記載の通信装置。
If the language setting of the communication device is not a predetermined language setting,
The second conversion unit converts the third value into the fourth value,
The response command transmitting unit transmits the response command including the fourth value to the terminal device,
when the language setting of the communication device is the predetermined language setting,
The second conversion unit does not convert the third value to the fourth value,
The communication device according to claim 7, wherein the response command transmitter transmits the response command including the third value to the terminal device.
前記第2の変換部は、前記通信装置の言語設定に対応する前記非UTFの文字コードを特定し、特定済みの前記文字コードで記述される前記第3の値を前記第4の値に変換する、請求項7に記載の通信装置。 The second conversion unit specifies the non-UTF character code corresponding to the language setting of the communication device, and converts the third value written in the specified character code to the fourth value. The communication device according to claim 7. 前記取得コマンドに含まれる前記第2のOIDに関連付けられている前記第3の値のデータタイプが第1のデータタイプである場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換し、
前記応答コマンド送信部は、前記第4の値を含む前記応答コマンドを前記端末装置に送信し、
前記取得コマンドに含まれる前記第2のOIDに関連付けられている前記第3の値のデータタイプが前記第1のデータタイプとは異なる第2のデータタイプである場合に、
前記第2の変換部は、前記第3の値を前記第4の値に変換せず、
前記応答コマンド送信部は、前記第3の値を含む前記応答コマンドを前記端末装置に送信する、請求項7に記載の通信装置。
when the data type of the third value associated with the second OID included in the acquisition command is the first data type;
The second conversion unit converts the third value into the fourth value,
The response command transmitting unit transmits the response command including the fourth value to the terminal device,
when the data type of the third value associated with the second OID included in the acquisition command is a second data type different from the first data type;
The second conversion unit does not convert the third value to the fourth value,
The communication device according to claim 7, wherein the response command transmitter transmits the response command including the third value to the terminal device.
前記UTFは、UTF-8であり、
前記非UTFは、ISO8859系の文字コードである、請求項1から11のいずれか一項に記載の通信装置。
The UTF is UTF-8,
12. The communication device according to claim 1, wherein the non-UTF is an ISO8859-based character code.
通信装置のためのコンピュータプログラムであって、
前記通信装置は、
MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、
コンピュータと、を備え、
前記コンピュータプログラムは、前記コンピュータを、以下の各部、即ち、
端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った設定コマンドを受信する設定コマンド受信部であって、前記設定コマンドは、第1のOIDと、UTF(Unicode Transformation Formatの略)で記述される第1の値と、を含む、前記設定コマンド受信部と、
前記端末装置から前記設定コマンドが受信される場合に、前記設定コマンドに含まれる前記第1の値を非UTFで記述される第2の値に変換する第1の変換部と、
前記設定コマンドに含まれる前記第1のOIDに関連付けて、変換済みの前記第2の値を前記管理情報に書き込む書込部と、
として機能させる、コンピュータプログラム。
A computer program for a communication device, the computer program comprising:
The communication device includes:
a memory that stores management information in which the OID and setting value are associated with each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base);
comprising a computer;
The computer program causes the computer to run the following parts:
A configuration command receiving unit that receives a configuration command according to TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a terminal device, the configuration command being a first and a first value written in UTF (Unicode Transformation Format);
a first conversion unit that converts the first value included in the configuration command into a second value written in non-UTF when the configuration command is received from the terminal device;
a writing unit that writes the converted second value in the management information in association with the first OID included in the setting command;
A computer program that functions as
通信装置のためのコンピュータプログラムであって、
前記通信装置は、
MIB(Management Information Baseの略)の複数個のOID(Object IDの略)のそれぞれについて、当該OIDと設定値とが関連付けられている管理情報を記憶するメモリと、
コンピュータと、を備え、
前記コンピュータプログラムは、前記コンピュータを、以下の各部、即ち、
端末装置から、OSI(Open Systems Interconnectionの略)参照モデルのトランスポート層のTCP(Transmission Control Protocolの略)に従った取得コマンドを受信する取得コマンド受信部であって、前記取得コマンドは、第2のOIDを含む、前記取得コマンド受信部と、
前記端末装置から前記取得コマンドが受信される場合に、前記メモリ内の前記管理情報から、前記取得コマンドに含まれる前記第2のOIDに関連付けられている第3の値であって、非UTF(Unicode Transformation Formatの略)で記述される前記第3の値を取得する取得部と、
取得済みの前記第3の値をUTFで記述される第4の値に変換する第2の変換部と、
変換済みの前記第4の値を含む応答コマンドを前記端末装置に送信する応答コマンド送信部と、
として機能させる、コンピュータプログラム。
A computer program for a communication device, the computer program comprising:
The communication device includes:
a memory that stores management information in which the OID and setting value are associated with each of a plurality of OIDs (abbreviation of Object ID) of MIB (abbreviation of Management Information Base);
comprising a computer;
The computer program causes the computer to run the following parts:
An acquisition command receiving unit that receives an acquisition command according to TCP (Transmission Control Protocol) of a transport layer of an OSI (Open Systems Interconnection) reference model from a terminal device, the acquisition command being a second The acquisition command receiving unit includes an OID of
When the acquisition command is received from the terminal device, a third value associated with the second OID included in the acquisition command is determined from the management information in the memory, and is a non-UTF ( an acquisition unit that acquires the third value described in Unicode Transformation Format (abbreviation for Unicode Transformation Format);
a second conversion unit that converts the acquired third value into a fourth value written in UTF;
a response command transmitter that transmits a response command including the converted fourth value to the terminal device;
A computer program that functions as
JP2022121707A 2022-07-29 2022-07-29 Communication device and computer program for communication device Pending JP2024018390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022121707A JP2024018390A (en) 2022-07-29 2022-07-29 Communication device and computer program for communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022121707A JP2024018390A (en) 2022-07-29 2022-07-29 Communication device and computer program for communication device

Publications (1)

Publication Number Publication Date
JP2024018390A true JP2024018390A (en) 2024-02-08

Family

ID=89807611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022121707A Pending JP2024018390A (en) 2022-07-29 2022-07-29 Communication device and computer program for communication device

Country Status (1)

Country Link
JP (1) JP2024018390A (en)

Similar Documents

Publication Publication Date Title
US10275188B2 (en) Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method
JP4259564B2 (en) Server apparatus, method in server apparatus, and computer program
JP6098095B2 (en) Specific server and communication device
US8115951B2 (en) Approach for implementing locked printing with unlock via a user input device
JP5079383B2 (en) Printing device with locked printing process
JP2017121761A (en) Printer and computer program
JP2016189543A (en) Multi-function machine
JP2007200324A (en) Mime type-based printer driver selection
JP6296376B2 (en) Terminal device and printer
JP6590056B2 (en) Multi-function machine
US10740044B2 (en) Image processing device, non-transitory computer-readable recording medium storing computer-readable instructions for image processing device, and method
JP2024018390A (en) Communication device and computer program for communication device
JP2016173861A (en) Specific server and communication apparatus
JP2009301421A (en) Information processing device, information processing system, information processing method, information processing program and recording medium
JP7484340B2 (en) Computer program for terminal device, terminal device and communication device
JP2022049518A (en) Server, and computer program for server
US10582073B2 (en) Computer-readable medium and information processing device for preventing erroneous recognition of authentication result
JP6551810B2 (en) Terminal device and printer
JP2024018396A (en) Communication device, computer program for communication device, and method executed by communication device
US11972270B2 (en) Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method performed by communication device
JP6245331B2 (en) Terminal device and printer
JP2010009505A (en) Computer program for installing application for executing function by function execution device in communication device
JP2024018397A (en) Communication device, computer program for communication device, and control method
US11233916B2 (en) Printer and non-transitory computer-readable recording medium storing computer readable instructions for printer
JP6593075B2 (en) Printing apparatus and computer program