JP2006203422A - Data processor limiting access based upon address information, information processor communicating with data processor, setting method for address information, method for controlling information processor, and program - Google Patents

Data processor limiting access based upon address information, information processor communicating with data processor, setting method for address information, method for controlling information processor, and program Download PDF

Info

Publication number
JP2006203422A
JP2006203422A JP2005011475A JP2005011475A JP2006203422A JP 2006203422 A JP2006203422 A JP 2006203422A JP 2005011475 A JP2005011475 A JP 2005011475A JP 2005011475 A JP2005011475 A JP 2005011475A JP 2006203422 A JP2006203422 A JP 2006203422A
Authority
JP
Japan
Prior art keywords
address information
setting
data processing
processing device
printer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005011475A
Other languages
Japanese (ja)
Other versions
JP5105708B2 (en
JP2006203422A5 (en
Inventor
Kuniaki Otsuka
邦明 大塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2005011475A priority Critical patent/JP5105708B2/en
Publication of JP2006203422A publication Critical patent/JP2006203422A/en
Publication of JP2006203422A5 publication Critical patent/JP2006203422A5/ja
Application granted granted Critical
Publication of JP5105708B2 publication Critical patent/JP5105708B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a setting method which facilitates a registering operation for an address when access to a printer through a network is limited and is free of misregistration. <P>SOLUTION: The printer decides whether a received packet complies with a designated protocol and stores its transmission source address when so. Addresses which are stored are displayed when an access limitation setting utility is actuated and an address is selected out of them to be registered as an address whose access is allowed. When network settings of the printer are made by operating a computer, an address of the printer or an access point designated at the time of setting is registered to the printer to enable automatic access from the computer or the access point. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、アドレス情報に基づいてアクセス制限を行なうデータ処理装置、データ処理装置と通信する情報処理装置、アドレス情報の設定方法、情報処理装置の制御方法及びプログラムに関する。   The present invention relates to a data processing device that performs access restriction based on address information, an information processing device that communicates with the data processing device, a method for setting address information, a control method for the information processing device, and a program.

IEEE標準委員会ではIEEE Std 802.11という名称で無線LANの物理層およびメディアアクセス制御層(以下、MAC層と略記する)を標準化した。更にIEEE Std 802.11a、IEEE Std 802.11bおよびIEEE Std 802.11gとして高速な物理層およびMAC層を標準化している。IEEE Std 802.11a、11bおよび11gはIEEE 802.11に対する追補版であり、IEEE Std 802.11で規定する機能を包含するものである。   The IEEE standard committee has standardized the physical layer and the media access control layer (hereinafter abbreviated as the MAC layer) of the wireless LAN under the name IEEE Std 802.11. Furthermore, the high-speed physical layer and the MAC layer are standardized as IEEE Std 802.11a, IEEE Std 802.11b, and IEEE Std 802.11g. IEEE Std 802.11a, 11b, and 11g are supplementary versions to IEEE 802.11, and include the functions defined in IEEE Std 802.11.

IEEE Std 802.11では、当該標準に適合する無線媒体へのMAC機能と物理インターフェースを有する装置をステーションと呼び、無線媒体を通してアソシエートしているステーションのために分配システムへのアクセスを提供するエンティティをアクセスポイントと呼んでいる。   In IEEE Std 802.11, a device having a MAC function and a physical interface to a wireless medium conforming to the standard is called a station, and an entity that provides access to a distribution system for a station that associates through the wireless medium. It is called an access point.

一方、ホストコンピュータでプリンタを使用して所望の画像やテキストなどを印刷するには、プリンタ専用のドライバソフトウェア(以後プリンタドライバと記す)をそのホストコンピュータにインストールする必要がある。更にそのプリンタをネットワーク経由で使用する場合は当該プリンタのネットワーク設定を行い、ホストコンピュータにプリンタのネットワークポートを作成する必要がある。   On the other hand, in order to print a desired image or text using a printer on a host computer, it is necessary to install driver software dedicated to the printer (hereinafter referred to as a printer driver) on the host computer. Furthermore, when the printer is used via a network, it is necessary to make network settings for the printer and create a printer network port on the host computer.

ところで、無線LANを使用する場合、通信媒体が無線媒体であるために、SSIDと呼ばれる無線LANのネットワークを識別するための識別符号さえ知っていれば、そのネットワークに参加できてしまうというセキュリティの問題がある。その問題に対処するために無線LANに暗号化手段を設定して、データを暗号化して送受信する機能などがある。   By the way, when using a wireless LAN, since the communication medium is a wireless medium, the security problem is that if an identification code for identifying a wireless LAN network called SSID is known, the user can join the network. There is. In order to cope with this problem, there is a function of setting encryption means in the wireless LAN, encrypting data, and transmitting / receiving data.

特許文献1には、識別符号が予め登録されている無線端末のみを有線無線変換装置へ接続することを許可する技術が記載されている。特許文献1に記載されている技術のように、アクセスポイントにはMACアドレスと呼ぶ無線LAN端末毎に固有に有するアドレス情報を登録しておき、MACアドレスが登録されている無線LAN端末のみをアソシエートするMACアドレスフィルタリングという機能を有するものがある。   Patent Document 1 describes a technology that permits only a wireless terminal whose identification code is registered in advance to be connected to a wired wireless conversion device. As in the technique described in Patent Document 1, the access point stores unique address information called a MAC address for each wireless LAN terminal, and associates only the wireless LAN terminal with the registered MAC address. Some have the function of MAC address filtering.

この機能をネットワークプリンタへも適用し、ネットワークプリンタに予めMACアドレスやIPアドレスを登録する手段を備え、登録されたMACアドレスやIPアドレスを持ったの端末装置からのみ、プリント操作を受け付ける機能を持ったものも登場している。   This function is also applied to network printers, equipped with means to register MAC addresses and IP addresses in advance in the network printer, and has the function of accepting printing operations only from terminal devices having registered MAC addresses and IP addresses. There is also a thing.

但し、プリンタにはアドレス登録に十分な操作部や表示部を備えていないものが多いため、これらの登録はコンピュータにインストールしたユーティリティソフトウェアを起動して行う場合が多い。上記ユーティリティソフトウェアとネットワークプリンタが通信を行って、MACアドレスやIPアドレスはネットワークプリンタ内のメモリに登録される。そしてネットワークプリンタは受信したフレームの送信元アドレスが登録されたアドレスに含まれているかどうかを検索し、含まれている場合は正常に受信し、含まれていない場合は受信したフレームを破棄する。これによって、登録されたアドレスを持った機器からはネットワークプリンタで印刷が行えるが、登録されていないアドレスを持った機器からは該ネットワークプリンタで印刷が行えないことになる。
特開昭64−89828号公報
However, since many printers do not have an operation unit or display unit sufficient for address registration, these registrations are often performed by starting utility software installed on the computer. The utility software and the network printer communicate with each other, and the MAC address and IP address are registered in a memory in the network printer. Then, the network printer searches whether or not the transmission source address of the received frame is included in the registered address. If it is included, it is received normally, and if it is not included, the received frame is discarded. As a result, a device having a registered address can perform printing with a network printer, but a device having an unregistered address cannot perform printing with the network printer.
JP-A 64-89828

しかしながら、前述したようなプリンタでは、端末装置のMACアドレスやIPアドレスを登録する操作が煩雑であったために、せっかく有している機能があまり使用されないという課題があった。   However, in the printer as described above, since the operation of registering the MAC address and IP address of the terminal device is complicated, there is a problem that the functions that are possessed are not used much.

また、MACアドレスやIPアドレスは非常に長く、そのようなアドレス情報を手入力しなければならない場合、一部でも入力を誤るとプリンタと通信できなくなってしまう。最悪の場合、どの端末装置からも無線を介してアクセスできなくなるという課題があった。   Also, the MAC address and IP address are very long, and if such address information has to be entered manually, communication with the printer cannot be made if a part of the information is entered incorrectly. In the worst case, there is a problem that access from any terminal device becomes impossible via radio.

更に、MACアドレスやIPアドレスによるアクセス制限機能を設定したことにより、登録したアドレスを有するコンピュータからはアクセスできるが、DHCP(Dynamic Host Configuration Protocol)によってアクセスポイントからIPアドレスを取得したり、特に無線LANのセキュリティ機能を使用するために、定期的に認証や暗号キーの送受信を行う必要がある場合に、アクセスポイントのアドレスを登録し忘れたために、上記のようなIPアドレスを取得することができなくなったり、定期的な認証や暗号キーの送受信ができなくなる課題があった。   Furthermore, by setting an access restriction function based on a MAC address or an IP address, access can be made from a computer having a registered address. However, an IP address can be acquired from an access point by DHCP (Dynamic Host Configuration Protocol), or a wireless LAN can be used. When it is necessary to periodically authenticate and send / receive the encryption key to use the security function, you forgot to register the access point address and cannot obtain the above IP address. There is a problem that periodic authentication and encryption key transmission / reception cannot be performed.

また、ルータ機能を持ったアクセスポイントには、コンピュータから受信したフレームをプリンタに送信する際に、送信元アドレスをコンピュータのMACアドレスからアクセスポイントの無線LANMACアドレスに書き換えて送信するものもあった。このようなアクセスポイントを使用する場合は、プリンタにコンピュータのMACアドレスを登録していても、コンピュータからのフレームは、アクセスポイントのMACアドレスが送信元のフレームとしてプリンタに届くため破棄されてしまう。従って、プリンタにアクセスポイントのMACアドレスを登録しなければならないが、一般ユーザにとって、アクセスポイントが上記のような送信元アドレスを書き換えるものであるかどうかは知るすべがない上に、MACアドレス自体が一般ユーザになじみがなく、さらに、通常アクセスポイントは複数MACアドレス(有線LAN通信部のMACアドレスと無線LAN通信部のMACアドレス)を有しているため、アクセスポイントの無線LANMACアドレスは更にわかりにくく、アドレス登録が困難であった。   Some access points having a router function rewrite the transmission source address from the MAC address of the computer to the wireless LAN MAC address of the access point when transmitting a frame received from the computer to the printer. When such an access point is used, even if the MAC address of the computer is registered in the printer, the frame from the computer is discarded because the MAC address of the access point reaches the printer as the transmission source frame. Therefore, the MAC address of the access point must be registered in the printer. However, for general users, there is no way to know whether the access point rewrites the transmission source address as described above. It is unfamiliar to general users, and the normal access point has multiple MAC addresses (MAC address of wired LAN communication unit and MAC address of wireless LAN communication unit), so the wireless LAN MAC address of the access point is more difficult to understand Address registration was difficult.

本発明は上記のような問題点に鑑みてなされたものであり、ネットワークプリンタ等のデータ処理装置のセキュリティ機能の一つであるアドレス情報によるアクセス制限機能を設定し易くすることを目的とするものである。   The present invention has been made in view of the above-described problems, and it is an object of the present invention to make it easy to set an access restriction function based on address information, which is one of security functions of a data processing apparatus such as a network printer. It is.

また、本発明の他の目的は、アクセス制限機能を設定した場合に、自動的に少なくとも1台の通信装置からはアクセス可能とすることである。   Another object of the present invention is to automatically allow access from at least one communication device when an access restriction function is set.

また、本発明の他の目的は、アクセス制限機能を設定した場合に、アクセスポイント、ルータ等の中継装置との通信は自動的に可能とすることである。   Another object of the present invention is to automatically enable communication with a relay device such as an access point or a router when an access restriction function is set.

本発明は、上記目的のうちの少なくとも1つを達成するために、データ処理装置において、受信パケットに含まれるアドレス情報に基づいて、前記データ処理装置に対するアクセス制限処理を行なう制限手段と、所定のプロトコルに従った受信パケットを識別する識別手段と、前記識別手段による識別に応じて、受信パケットの送信元アドレス情報を記憶する記憶手段と、前記記憶手段に記憶されたアドレス情報を、前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として設定する設定手段と、を有することを特徴とするデータ処理装置を提供する。   In order to achieve at least one of the above-mentioned objects, the present invention provides a data processing apparatus, a limiting means for performing access restriction processing for the data processing apparatus based on address information included in a received packet, Identification means for identifying a received packet in accordance with a protocol; storage means for storing source address information of a received packet in accordance with identification by the identification means; and address information stored in the storage means for the restriction means And setting means for setting as address information to be referred to when performing access restriction processing.

また、データ処理装置において、受信パケットに含まれるアドレス情報に基づいて、前記データ処理装置に対するアクセス制限処理を行なう制限手段と、前記データ処理装置のネットワーク設定を実施した情報処理装置のアドレス情報を取得する取得手段と、前記取得手段により取得したアドレス情報を、前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として自動的に設定する設定手段と、を有することを特徴とするデータ処理装置を提供する。   Further, in the data processing device, based on the address information included in the received packet, obtains the restriction means for performing the access restriction processing on the data processing device and the address information of the information processing device that performs the network setting of the data processing device. And a setting unit that automatically sets the address information acquired by the acquiring unit as address information to be referred to when the access restricting process is performed by the restricting unit. I will provide a.

また、データ処理装置において、受信パケットに含まれるアドレス情報に基づいて、前記データ処理装置に対するアクセス制限処理を行なう制限手段と、前記データ処理装置のネットワーク設定を行なう際に指定された中継装置のアドレス情報を取得する取得手段と、前記取得手段により取得したアドレス情報を、前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として自動的に設定する設定手段と、を有することを特徴とするデータ処理装置を提供する。   Further, in the data processing device, based on the address information included in the received packet, restriction means for performing access restriction processing for the data processing device, and the address of the relay device specified when performing network setting of the data processing device An acquisition unit that acquires information; and a setting unit that automatically sets the address information acquired by the acquisition unit as address information to be referred to when access restriction processing is performed by the restriction unit. A data processing apparatus is provided.

また、情報処理装置において、受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置から、所定のプロトコルに従ったパケットを送信する通信装置のアドレス情報を受信する受信手段と、前記受信手段により受信したアドレス情報を表示するための表示手段と、ユーザ操作に基づいて、前記表示手段により表示した少なくとも1つのアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知手段と、を有することを特徴とする情報処理装置を提供する。   Further, in the information processing device, from the data processing device that performs access restriction processing based on the address information included in the received packet, a receiving unit that receives address information of a communication device that transmits a packet according to a predetermined protocol; Display means for displaying the address information received by the receiving means, and at least one address information displayed by the display means based on a user operation as the address information to be referred to when performing the access restriction process, the data There is provided an information processing apparatus comprising notification means for notifying a processing apparatus.

また、情報処理装置において、受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置のネットワーク設定を行なう設定手段と、前記設定手段により前記データ処理装置のネットワーク設定を行なう際に、前記情報処理装置のアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知手段と、を有することを特徴とする情報処理装置を提供する。   Further, in the information processing apparatus, when performing network setting of the data processing apparatus by the setting means for setting the network of the data processing apparatus that performs access restriction processing based on the address information included in the received packet, There is provided an information processing apparatus comprising notification means for notifying the data processing apparatus of address information of the information processing apparatus as address information to be referred to when performing the access restriction process.

また、データ処理装置においてアクセス制限を行なう際に参照するアドレス情報を設定する設定方法において、所定のプロトコルに従った受信パケットを識別する識別工程と、前記識別工程における識別に応じて、受信パケットの送信元アドレス情報を記憶するための記憶工程と、前記記憶工程において記憶されたアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、を有することを特徴とする設定方法を提供する。   Further, in a setting method for setting address information to be referred to when access restriction is performed in the data processing device, an identifying step for identifying a received packet in accordance with a predetermined protocol, and according to the identification in the identifying step, A storage step for storing source address information, and address information that is referenced when the data processing device performs an access restriction process based on the address information included in the received packet with respect to the address information stored in the storage step. And a setting step for setting as a setting method.

また、データ処理装置においてアクセス制限を行なう際に参照するアドレス情報を設定する設定方法において、前記データ処理装置のネットワーク設定を実施した情報処理装置のアドレス情報を取得する取得工程と、前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、を有することを特徴とする設定方法を提供する。   Further, in a setting method for setting address information to be referred to when access restriction is performed in a data processing device, an acquisition step of acquiring address information of an information processing device that performs network setting of the data processing device, and in the acquisition step A setting step of setting the acquired address information as address information to be referred to when the data processing device performs access restriction processing based on the address information included in the received packet. To do.

また、データ処理装置においてアクセス制限を行なう際に参照するアドレス情報を設定する設定方法において、前記データ処理装置のネットワーク設定を行なう際に指定された中継装置のアドレス情報を取得する取得工程と、前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、を有することを特徴とする設定方法を提供する。   Further, in a setting method for setting address information to be referred to when performing access restriction in a data processing device, an acquisition step of acquiring address information of a relay device designated when performing network setting of the data processing device; A setting step for setting the address information acquired in the acquisition step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet. Provide a method.

また、情報処理装置の制御方法において、受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置から、所定のプロトコルに従ったパケットを送信する通信装置のアドレス情報を受信する受信工程と、前記受信工程において受信したアドレス情報を表示するための表示工程と、ユーザ操作に基づいて、前記表示工程において表示した少なくとも1つのアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、を有することを特徴とする情報処理装置の制御方法を提供する。   In addition, in the control method of the information processing device, a receiving step of receiving address information of a communication device that transmits a packet according to a predetermined protocol from a data processing device that performs access restriction processing based on address information included in the received packet And a display step for displaying the address information received in the reception step, and address information referred to when performing the access restriction process on at least one address information displayed in the display step based on a user operation And a notification step of notifying the data processing device as a control method of the information processing device.

また、情報処理装置の制御方法において、受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置のネットワーク設定を行なうための設定工程と、前記設定工程において前記データ処理装置のネットワーク設定を行なう際に、前記情報処理装置のアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、を有することを特徴とする情報処理装置の制御方法を提供する。   In addition, in the control method of the information processing apparatus, a setting step for performing network setting of a data processing device that performs access restriction processing based on address information included in a received packet, and network setting of the data processing device in the setting step And a notification step of notifying the data processing device of the address information of the information processing device as address information to be referred to when performing the access restriction process. Provide a method.

また、データ処理装置において実行されるプログラムにおいて、所定のプロトコルに従った受信パケットを識別する識別工程と、前記識別工程における識別に応じて、受信パケットの送信元アドレス情報を記憶するための記憶工程と、前記記憶工程において記憶されたアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、を有することを特徴とするプログラムを提供する。   Further, in a program executed in the data processing apparatus, an identification step for identifying a received packet according to a predetermined protocol, and a storage step for storing source address information of the received packet according to the identification in the identification step And a setting step for setting the address information stored in the storage step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet. Provide a featured program.

また、データ処理装置において実行されるプログラムにおいて、前記データ処理装置のネットワーク設定を実施した情報処理装置のアドレス情報を取得する取得工程と、前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、を有することを特徴とするプログラムを提供する。   Further, in a program executed in the data processing device, the data processing device obtains the acquisition step of acquiring address information of the information processing device that has performed network setting of the data processing device, and the address information acquired in the acquisition step. And a setting step of setting as address information to be referred to when performing access restriction processing based on address information included in a received packet.

また、データ処理装置において実行されるプログラムにおいて、前記データ処理装置のネットワーク設定を行なう際に指定された中継装置のアドレス情報を取得する取得工程と、前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、を有することを特徴とするプログラムを提供する。   Further, in a program executed in the data processing device, an acquisition step of acquiring address information of the relay device specified when performing network setting of the data processing device, and the address information acquired in the acquisition step include the data And a setting step of setting as address information to be referred to when the processing device performs access restriction processing based on address information included in the received packet.

また、情報処理装置において実行されるプログラムにおいて、受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置から、所定のプロトコルに従ったパケットを送信する通信装置のアドレス情報を受信する受信工程と、前記受信工程において受信したアドレス情報を表示するための表示工程と、ユーザ操作に基づいて、前記表示工程において表示した少なくとも1つのアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、を有することを特徴とするプログラムを提供する。   Further, in a program executed in the information processing apparatus, the address information of a communication apparatus that transmits a packet according to a predetermined protocol is received from a data processing apparatus that performs access restriction processing based on address information included in the received packet. A reception step, a display step for displaying the address information received in the reception step, and at least one address information displayed in the display step based on a user operation are referred to when the access restriction process is performed. And a notification step of notifying the data processing device as address information.

また、情報処理装置において実行されるプログラムにおいて、受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置のネットワーク設定を行なうための設定工程と、前記設定工程において前記データ処理装置のネットワーク設定を行なう際に、前記情報処理装置のアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、を有することを特徴とするプログラムを提供する。   Further, in a program executed in the information processing device, a setting step for performing network setting of a data processing device that performs access restriction processing based on address information included in a received packet, and in the setting step, the data processing device And a notification step of notifying the data processing device of address information of the information processing device as address information to be referred to when performing the access restriction processing when performing network setting. To do.

本発明によれば、アドレス情報によるアクセス制限機能を容易に設定することができる。また、アクセス制限機能の際に参照するアドレス情報を正確に設定することができる。   According to the present invention, an access restriction function based on address information can be easily set. In addition, it is possible to accurately set address information to be referred to in the access restriction function.

以下、本発明の実施の形態を、図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1の実施の形態)
図1は、本実施形態におけるネットワークプリンタの概略ブロック図である。
(First embodiment)
FIG. 1 is a schematic block diagram of a network printer in this embodiment.

同図において101はプリンタ、102はIEEE Std 802.11b/gなどに準拠した無線LAN通信部、103はIEEE Std 802.3またはIEEE Std 802.3uなどに準拠した有線LAN通信部、104はUSB(Universal Serial Bus)通信部、105は無線LAN通信部102に設定したSSID(Service Set Identifier:無線LANの識別名称)や無線LAN通信部102または有線LAN通信部103に設定したIPアドレスなどの各種パラメータを記憶しておくための通信設定パラメータ記憶部、106は通信設定パラメータ記憶部105から読み出した値を無線LAN通信部102または有線LAN通信部103に設定したり、無線LAN通信部102または有線LAN通信部103またはUSB通信部104を必要に応じて切り替え制御したり、無線LAN通信部102または有線LAN通信部103またはUSB通信部104が受信したデータを処理したり、無線LAN通信部102または有線LAN通信部103またはUSB通信部104のうち使用されている通信部へ送信データを入力したりする通信制御部である。なお、通信制御部は、メモリ(不図示)に記憶されているプログラムに従って、各部を制御し、後述する各種制御を行なう。107は通信制御部106が受信した印刷データを順次書き込むためのリングバッファなどから成る印刷データ一時記憶部、108は印刷データ一時記憶部107から読み出した印刷データに従って印刷媒体にインクを吐出するなどして印刷を実行する印刷エンジン部である。印刷エンジン部は上記のようなインクジェット方式に限らず、感熱方式、電子写真方式など他の方式であっても構わない。109は通信制御部106が無線LANまたは有線LANで受信したパケットの内容が後述する所定のプロトコルに従ったコマンドである場合に、そのパケットの送信元MAC(Media Access Control)アドレスまたはIP(Internet Protocol)アドレスを記憶するための第1記憶領域110と、プリンタ101へのアクセス制限を行なうためのMACアドレス、IPアドレスを記憶するための第2記憶領域111を有するアドレス記憶部である。   In the figure, 101 is a printer, 102 is a wireless LAN communication unit compliant with IEEE Std 802.11b / g, 103 is a wired LAN communication unit compliant with IEEE Std 802.3 or IEEE Std 802.3u, 104 is USB (Universal Serial Bus) communication unit 105 is an SSID (Service Set Identifier: wireless LAN identification name) set in the wireless LAN communication unit 102 and an IP address set in the wireless LAN communication unit 102 or the wired LAN communication unit 103 A communication setting parameter storage unit 106 for storing parameters, a value read from the communication setting parameter storage unit 105 is set in the wireless LAN communication unit 102 or the wired LAN communication unit 103, or the wireless LAN communication unit 1 2 or the wired LAN communication unit 103 or the USB communication unit 104 as necessary, or the data received by the wireless LAN communication unit 102 or the wired LAN communication unit 103 or the USB communication unit 104 is processed, or the wireless LAN communication is performed. This is a communication control unit that inputs transmission data to a used communication unit among the unit 102, the wired LAN communication unit 103, or the USB communication unit 104. The communication control unit controls each unit according to a program stored in a memory (not shown) and performs various controls described later. Reference numeral 107 denotes a print data temporary storage unit including a ring buffer for sequentially writing print data received by the communication control unit 106. Reference numeral 108 denotes discharge of ink onto a print medium in accordance with the print data read from the print data temporary storage unit 107. The print engine unit that executes printing. The print engine unit is not limited to the ink jet method as described above, and may be another method such as a heat sensitive method or an electrophotographic method. Reference numeral 109 denotes a packet source MAC (Media Access Control) address or IP (Internet Protocol) when the content of a packet received by the communication control unit 106 via a wireless LAN or a wired LAN is a command according to a predetermined protocol described later. ) An address storage unit having a first storage area 110 for storing addresses and a second storage area 111 for storing MAC addresses and IP addresses for restricting access to the printer 101.

アドレス情報によってプリンタ101へのアクセスを制限する方式として、受信パケットの送信元MACアドレスをプリンタ101に登録されているMACアドレスと比較する第1の方式と、受信パケットの送信元IPアドレスをプリンタ101に登録されているIPアドレスと比較する第2の方式とがあるが、以下では、第1の方式に関して説明する。   As a method for restricting access to the printer 101 based on the address information, a first method for comparing the source MAC address of the received packet with the MAC address registered in the printer 101, and the source IP address of the received packet as the printer 101. In the following, the first method will be described.

図2は、本実施形態におけるホストコンピュータの概略ブロック図である。   FIG. 2 is a schematic block diagram of the host computer in this embodiment.

同図において201はコンピュータ、202はコンピュータ201の各部を制御するための主制御部、203は主制御部202が読み出して後述する各種処理を実行するためのプログラムを記憶したり、必要に応じて情報やデータを記憶させるためのメモリ、204は液晶表示装置などから成る表示部、205はキーボードやポインティングデバイスなどによる操作部、206はIEEE Std 802.11b/gなどに準拠した無線LAN通信部、207は無線LAN通信部206に設定したSSID(無線ネットワークの識別名称)やIPアドレスなどの各種パラメータを記憶しておくための無線LAN用パラメータ記憶部、208は無線LAN用パラメータ記憶部207から読み出した値を無線LAN通信部206に設定したり、無線LAN通信部206が受信したデータを処理したり、無線LAN通信部206へ送信データを入力したりする無線LAN制御部、216は有線LAN用パラメータ記憶部219から読み出した値を有線LAN通信部217に設定したり、有線LAN通信部217が受信したデータを処理したり、有線LAN通信部217へ送信データを入力したりする有線LAN制御部、217はIEEE std802.3uなどに準拠した有線LAN通信部、218は有線LANポート、219は有線LAN通信部217に設定したIPアドレスなどの各種パラメータを記憶しておくための有線LAN用パラメータ記憶部である。209はUSB通信制御部、210はUSBポート、211は無線LANポート、212はUSBポート210と無線LANポート211と有線LANポート218を必要に応じて主制御部202の指示によって切り替えたり、USB通信制御部209または無線LAN通信部206または有線LAN通信部217と主制御部202との間で所定のコマンドの送受信を中継するポート切替制御部、213は主制御部202の指示によって入力されたデータを出力するプリンタに合わせた印刷データに変換する印刷データ変換部、214は印刷データ変換部213によって変換された印刷データを一時格納しておき、ポート切替制御部212によってUSBポート210、有線LANポート218または無線LANポート211のいずれかが印刷のための通信が可能になっている(プリンタのポートが切り替えられている)かによって無線LAN制御部208、有線LAN制御部216またはUSB通信制御部209を経由してプリンタへ印刷データを送信するための印刷データ一時記憶部、215はプリンタのステータス情報を主制御部202のコマンドによって読み出すためのプリンタ状態読み取り制御部であり、ポート切替制御部212によってUSBポート210を経由してプリンタ101と通信するか、無線LANポート211を経由してプリンタ101と通信するか、有線LANポート218を経由してプリンタ101と通信するかが定まる。   In the figure, 201 is a computer, 202 is a main control unit for controlling each part of the computer 201, 203 is a program that is read by the main control unit 202 and executes various processes to be described later. Memory for storing information and data; 204, a display unit including a liquid crystal display device; 205, an operation unit using a keyboard or a pointing device; 206, a wireless LAN communication unit compliant with IEEE Std 802.11b / g, 207 is a wireless LAN parameter storage unit for storing various parameters such as an SSID (wireless network identification name) and IP address set in the wireless LAN communication unit 206, and 208 is read from the wireless LAN parameter storage unit 207. Set the value in the wireless LAN communication unit 206 or A wireless LAN control unit that processes data received by the line LAN communication unit 206 and inputs transmission data to the wireless LAN communication unit 206, and a value read from the wired LAN parameter storage unit 219 is a wired LAN communication unit The wired LAN control unit 217 is set to 217, processes the data received by the wired LAN communication unit 217, and inputs transmission data to the wired LAN communication unit 217. The wired LAN control unit 217 is a wired LAN compliant with IEEE std802.3u or the like. A communication unit 218 is a wired LAN port, and 219 is a wired LAN parameter storage unit for storing various parameters such as an IP address set in the wired LAN communication unit 217. 209 is a USB communication control unit, 210 is a USB port, 211 is a wireless LAN port, 212 is a USB port 210, a wireless LAN port 211, and a wired LAN port 218 are switched according to the instruction of the main control unit 202 as necessary, or USB communication A port switching control unit that relays transmission / reception of a predetermined command between the control unit 209 or the wireless LAN communication unit 206 or the wired LAN communication unit 217 and the main control unit 202, and 213 is data input according to an instruction from the main control unit 202 The print data conversion unit 214 converts the print data into print data suitable for the printer that outputs the print data, temporarily stores the print data converted by the print data conversion unit 213, and the USB port 210 and the wired LAN port by the port switching control unit 212. Either 218 or wireless LAN port 211 is marked Print data is transmitted to the printer via the wireless LAN control unit 208, the wired LAN control unit 216, or the USB communication control unit 209 depending on whether communication for the printer is enabled (the printer port is switched) A print data temporary storage unit 215 is a printer status reading control unit for reading printer status information by a command of the main control unit 202. The port switching control unit 212 communicates with the printer 101 via the USB port 210. Whether to communicate with the printer 101 via the wireless LAN port 211 or to communicate with the printer 101 via the wired LAN port 218 is determined.

図3は、無線LAN通信によりプリンタ101およびコンピュータ201間で通信を行うシステム構成図の一例である。同図において、101は図1で説明したプリンタ、201は図2で説明したコンピュータである。303は無線LANの中継および無線LANと有線LANの中継機能を有する無線LANアクセスポイント機能付きのルータ、304はADSL(Asymmetric Didital Subscriber Line)モデムなどのような、コンピュータ201が公衆回線にアクセスするために必要なモデム、305はルータ303とモデム304を接続するLANケーブル、306はADSL回線のような公衆回線、307はコンピュータ201がADSL回線306を介してインターネットにアクセスしたり、電子メールの送受信を行うWAN(Wide Aria Network)である。308はコンピュータ201にプリンタ101用のドライバソフトウェアをインストールしたり、プリンタ101の無線LAN機能をセットアップしたり、コンピュータ201にセットアップしたプリンタ101用のポートを設定するためにプリンタ101のUSB通信部104とコンピュータ201のUSB通信部209を一時的に接続するためのUSBケーブルである。   FIG. 3 is an example of a system configuration diagram for performing communication between the printer 101 and the computer 201 by wireless LAN communication. In the figure, 101 is the printer described in FIG. 1, and 201 is the computer described in FIG. Reference numeral 303 denotes a router with a wireless LAN access point function having a wireless LAN relay function and a wireless LAN / wired LAN relay function, and 304 denotes an ADSL (Asymmetric Digital Subscriber Line) modem for the computer 201 to access a public line. 305 is a LAN cable for connecting the router 303 and the modem 304, 306 is a public line such as an ADSL line, and 307 is a computer 201 for accessing the Internet via the ADSL line 306 and sending and receiving e-mails. WAN (Wide Area Network) to be performed. In order to install the driver software for the printer 101 in the computer 201, set up the wireless LAN function of the printer 101, and set the port for the printer 101 set up in the computer 201, 308 This is a USB cable for temporarily connecting the USB communication unit 209 of the computer 201.

図4は、コンピュータ201にプリンタ101用のプリンタドライバソフトウェアをインストールする手順を示す概略フローチャートである。   FIG. 4 is a schematic flowchart showing a procedure for installing printer driver software for the printer 101 in the computer 201.

コンピュータ201の図示しないCD−ROMドライブに、プリンタ101用のCD−ROMをセットすると、主制御部202はCD−ROM内のセットアッププログラムを起動して、プリンタソフトウェアのインストールを開始する。まず、CD−ROMからプリンタドライバソフトイウェアをメモリの所定の領域にコピーする(S101)。次に主制御部202はCD−ROMから読み出される情報に従って表示部204に、プリンタ101のUSB通信部104とコンピュータ101のUSBポート210をUSBケーブル308で接続してプリンタ101の図示しない電源スイッチをONするように促す表示を行う(S102)。ここから所定時間経過前に主制御部202が、プリンタ101が接続されたことをプラグアンドプレイによって認識すると(S104)、プリンタ状態読み取り制御部215からUSBポート210経由でプリンタ101の情報を読み取り、メモリ203の所定領域に設定して(S105)、プリンタドライバのインストールが完了したことを表示部204に表示させる(S106)。この時点でコンピュータ201にはプリンタドライバをインストールしたプリンタ101のアイコンが追加される。   When a CD-ROM for the printer 101 is set in a CD-ROM drive (not shown) of the computer 201, the main control unit 202 activates a setup program in the CD-ROM and starts installation of printer software. First, the printer driver software is copied from the CD-ROM to a predetermined area of the memory (S101). Next, the main control unit 202 connects the USB communication unit 104 of the printer 101 and the USB port 210 of the computer 101 to the display unit 204 with the USB cable 308 according to the information read from the CD-ROM, and turns on a power switch (not shown) of the printer 101. A display prompting to turn on is performed (S102). When the main control unit 202 recognizes that the printer 101 has been connected by plug and play before the predetermined time has elapsed from here (S104), the printer status reading control unit 215 reads the information of the printer 101 via the USB port 210, and A predetermined area of the memory 203 is set (S105), and the fact that the installation of the printer driver is completed is displayed on the display unit 204 (S106). At this time, the icon of the printer 101 in which the printer driver is installed is added to the computer 201.

続いてプリンタ101をネットワーク(無線LANまたは有線LAN)で使用する場合にはネットワークセットアップが選択される必要がある。このネットワークセットアップが選択された場合は(S107)、ネットワークセットアップに関するフローチャート図5へ進む。   Subsequently, when the printer 101 is used in a network (wireless LAN or wired LAN), network setup needs to be selected. If this network setup is selected (S107), the flow advances to FIG.

図4のS103において、主制御部201が所定時間内にプリンタ101を認識しなかった場合、例えばプリンタ101の電源をONしなかったり、USBケーブルで接続しないうちに所定時間が経過した場合は表示部108にプリンタドライバのインストールが正常に完了しなかったこと表示し(S108)、終了する。   In S103 of FIG. 4, if the main control unit 201 does not recognize the printer 101 within a predetermined time, for example, if the printer 101 is not turned on, or if the predetermined time has elapsed before the USB cable is connected, A message indicating that the printer driver installation has not been completed normally is displayed on the unit 108 (S108), and the process ends.

また、S107でプリンタのネットワークセトアップが選択されなかった場合は処理を終了する。この場合はコンピュータ101はUSBケーブルを接続しておけばプリンタ101に所望の印刷を行わせることが可能である。   If the printer network setup is not selected in S107, the process is terminated. In this case, the computer 101 can cause the printer 101 to perform desired printing by connecting a USB cable.

図5はコンピュータ201にプリンタドライバをインストールした後、プリンタ101を無線LANで使用する場合に行う処理手順を示すフローチャートである。   FIG. 5 is a flowchart showing a processing procedure performed when the printer 101 is used in a wireless LAN after installing a printer driver in the computer 201.

図4に示したプリンタドライバのインストール完了後、操作部205の操作によってプリンタをネットワーク(無線LANまたは有線LAN)で使用するためのセットアップが選択されると(図4のS107)、プリンタ101を無線LANで使用するか、有線LANで使用するかを選択する画面が表示部204に表示される。操作部205の操作によって無線LANが選択された場合はS202以後へ進み、有線LANが選択された場合は図11へ進むものとする。なお、プリンタ101を無線LANで使用することが選択された場合でも、図3においてルータ303が無線LANだけではなく有線LANポートも有していれば、コンピュータ201を有線LANでルータ303と接続して、コンピュータ201⇔(有線LAN)⇔ルータ303⇔(無線LAN)⇔プリンタ101という経路での通信が可能であるが、説明の簡略化のために、プリンタ101を無線LANで使用する場合はコンピュータ側も無線LANを使用し、プリンタ101を有線LANで使用する場合はコンピュータ側も有線LANを使用することとして説明することにする。   When the setup for using the printer in the network (wireless LAN or wired LAN) is selected by the operation of the operation unit 205 after the printer driver installation shown in FIG. 4 is completed (S107 in FIG. 4), the printer 101 is wirelessly connected. A screen for selecting whether to use the LAN or the wired LAN is displayed on the display unit 204. When the wireless LAN is selected by the operation of the operation unit 205, the process proceeds to S202 and after, and when the wired LAN is selected, the process proceeds to FIG. Even when the printer 101 is selected to be used in a wireless LAN, if the router 303 has a wired LAN port as well as a wireless LAN in FIG. 3, the computer 201 is connected to the router 303 via the wired LAN. Thus, communication via the route of the computer 201 (wired LAN), the router 303 (wireless LAN), and the printer 101 is possible. However, for simplicity of explanation, when the printer 101 is used in a wireless LAN, a computer is used. The description will be made assuming that the wireless LAN is used on the side and the printer 101 is also used on the wired LAN when the printer 101 is used on the wired LAN.

図5のS201において無線LANが選択されると、主制御部202はポート切替制御部212、USB通信制御部209、USBポート210を経由して無線LANのセットアップを開始する予め定められたコマンドをプリンタ101へ送信する。プリンタ101では、USB通信部104を経由して上記コマンドを通信制御部106が受信すると、無線LAN通信部102を起動し、通信設定パラメータ記憶部105から読み出した所定の設定値を無線LAN通信部102に入力し、設定する。コンピュータ201の主制御部202は続けてアクセスポイントを検索するコマンドをプリンタ101へUSB経由で送信する(S202)。プリンタ101の通信制御部106はS202で送信されたコマンドを受信すると、無線LAN通信部102を、例えばSSIDをANYに、暗号化をOFFに設定するなどのアクセスポイントを検索するための設定に変更する。通信制御部106は無線LAN通信部102が検出したアクセスポイントに関する情報、例えば検出された各アクセスポイントに設定されているSSID、無線チャンネル、暗号化設定の有無または種別などをコンピュータ201へUSB経由で返送する。上記返送されたプリンタ101が検出したアクセスポイントの情報を主制御部202は表示部204へ表示する(S203)。続いて操作部205の操作によって表示されたアクセスポイントから一つのアクセスポイントが選択され、暗号化が設定されているアクセスポイントである場合はプリンタにも同様の暗号化設定を行うための情報が入力されたり、S203で表示されたアクセスポイント情報にプリンタ101を接続したいアクセスポイントが含まれていなかったり、或いはアクセスポイントが一つも表示されなかった場合に、SSIDや暗号化設定に関する情報、更に必要な場合はプリンタ101に設定するIPアドレスに関する情報が手入力によって入力されると(S204)、主制御部202はUSB経由でプリンタ101にS204で入力された設定情報を送信する(S205)。これを受信したプリンタ101の通信制御部106は受信した設定情報を無線LAN通信部102に入力して設定し、無線LAN通信部102がアクセスポイントに接続されたか否かを観察する。接続されたと判断すると、アクセスポイントに接続されたことを示す情報をコンピュータ201へ返送する。主制御部202はプリンタ101がアクセスポイントに接続されたことの通知を受けると(S206)、次に無線LAN制御部208へプリンタ101を検出するためのコマンドを無線LAN通信部206、無線LANポート211を経由してプリンタ101へ送信する(S207)。このコマンドは、コンピュータ201からルータ303経由で無線LANでプリンタ101へ送信されることになる。   When the wireless LAN is selected in S201 of FIG. 5, the main control unit 202 issues a predetermined command for starting the setup of the wireless LAN via the port switching control unit 212, the USB communication control unit 209, and the USB port 210. Transmit to the printer 101. In the printer 101, when the communication control unit 106 receives the command via the USB communication unit 104, the wireless LAN communication unit 102 is activated, and the predetermined setting value read from the communication setting parameter storage unit 105 is transmitted to the wireless LAN communication unit. Input to 102 and set. The main control unit 202 of the computer 201 continues to transmit a command for searching for an access point to the printer 101 via the USB (S202). When the communication control unit 106 of the printer 101 receives the command transmitted in S202, the wireless LAN communication unit 102 is changed to a setting for searching for an access point such as setting the SSID to ANY and encryption to OFF. To do. The communication control unit 106 sends information related to the access point detected by the wireless LAN communication unit 102, such as the SSID, wireless channel, presence / absence or type of encryption setting set to each detected access point, to the computer 201 via USB. Return it. The main control unit 202 displays the access point information detected by the returned printer 101 on the display unit 204 (S203). Subsequently, when an access point is selected from the access points displayed by the operation of the operation unit 205 and the access point is set to be encrypted, information for performing similar encryption settings is also input to the printer. If no access point to which the printer 101 is to be connected is included in the access point information displayed in S203, or if no access point is displayed, information on SSID and encryption settings, and further necessary information In this case, when information related to the IP address set in the printer 101 is manually input (S204), the main control unit 202 transmits the setting information input in S204 to the printer 101 via USB (S205). Upon receiving this, the communication control unit 106 of the printer 101 inputs and sets the received setting information to the wireless LAN communication unit 102, and observes whether the wireless LAN communication unit 102 is connected to the access point. If it is determined that it is connected, information indicating that it is connected to the access point is returned to the computer 201. When the main control unit 202 receives a notification that the printer 101 is connected to the access point (S206), the main control unit 202 then sends a command for detecting the printer 101 to the wireless LAN control unit 208, the wireless LAN communication unit 206, and the wireless LAN port. The data is transmitted to the printer 101 via 211 (S207). This command is transmitted from the computer 201 to the printer 101 via the router 303 via the wireless LAN.

プリンタ101からルータ303を経由して無線LANで所定の返信コマンドをコンピュータ201が受信すれば、主制御部202は無線LANでプリンタ101を検出できたと判断し(S208のYES)、無線LANポート211にポート名を付けてプリンタ101用の無線LANポートを作成し、プリンタ101用のポートをUSBポート210から前記ポート名を付けた無線LANポート211に切り替える(S209)。以後はコンピュータ201で印刷操作を行うと、主制御部202からプリンタ101へ送信される印刷データは印刷データ変換部213、印刷データ一時記憶部214、ポート切替部212、無線LAN通信制御部208、無線LAN通信部206および無線LANポート211を通ってプリンタ101へ送信される。この段階で図3に示したUSBケーブル308は取り外すことが可能となる。主制御部202は表示部204にネットワークセットアップが完了したことを表示し(S210)、処理を終了する。   If the computer 201 receives a predetermined reply command from the printer 101 via the router 303 via the wireless LAN, the main control unit 202 determines that the printer 101 can be detected via the wireless LAN (YES in S208), and the wireless LAN port 211 A wireless LAN port for the printer 101 is created by attaching a port name to the printer 101, and the port for the printer 101 is switched from the USB port 210 to the wireless LAN port 211 with the port name (S209). Thereafter, when a printing operation is performed by the computer 201, print data transmitted from the main control unit 202 to the printer 101 is a print data conversion unit 213, a print data temporary storage unit 214, a port switching unit 212, a wireless LAN communication control unit 208, The data is transmitted to the printer 101 through the wireless LAN communication unit 206 and the wireless LAN port 211. At this stage, the USB cable 308 shown in FIG. 3 can be removed. The main control unit 202 displays the completion of network setup on the display unit 204 (S210), and ends the process.

一方S204で設定入力操作をするのではなく、アクセスポイントを再度検索する操作が実行された場合は(S211)、S202へ戻ってプリンタ101に対してアクセスポイントを検索するコマンドをUSB経由で再度送信する。セットアップを中止する操作がなされた場合は(S212)、これまでの処理を中断してプリンタ101のネットワークセットアップ処理を終了する。この場合、コンピュータ201からセットアップ中断のコマンドをプリンタ101へ送信し、このコマンドを受けた通信制御部106は無線LAN通信部102の設定を通信設定パラメータ記憶部から読み出して設定しなおし、セットアップを開始する前の設定値に戻す。   On the other hand, instead of performing the setting input operation in S204, if an operation for searching for an access point is executed again (S211), the process returns to S202 and a command for searching for an access point is sent again to the printer 101 via USB. To do. When an operation for canceling the setup is performed (S212), the processing so far is interrupted and the network setup processing of the printer 101 is ended. In this case, a setup interruption command is transmitted from the computer 201 to the printer 101, and upon receiving this command, the communication control unit 106 reads out the setting of the wireless LAN communication unit 102 from the communication setting parameter storage unit, sets it again, and starts setup. Return to the setting value before the operation.

更にS208でプリンタ101を無線LAN経由で検出しなかった場合、プリンタ101にネットワーク設定値の送信を指示するコマンドをUSB経由で送信してプリンタ101にネットワーク設定値をUSB経由で送信させ、USB経由で受信したネットワーク設定値を表示部204へ表示させる(S213)。この表示をユーザが確認することによって、正しくない個所があって設定変更操作が施されれば(S214)、その設定情報を再度プリンタ101へUSB経由で送信して(S215)、無線LAN通信部102の設定を変更させ、S206以降の処理を繰り返す。S214で設定変更する代わりにセットアップを中止する操作がなされた場合は(S216)、これまでの処理を中断してプリンタ101のネットワークセットアップ処理を終了する。この場合も、コンピュータ201からセットアップ中断のコマンドをプリンタ101へ送信し、このコマンドを受けた通信制御部106は無線LAN通信部102の設定を通信設定パラメータ記憶部から読み出して設定しなおし、セットアップを開始する前の設定値に戻す。   If the printer 101 is not detected via the wireless LAN in step S208, a command for instructing the printer 101 to transmit the network setting value is transmitted via the USB, and the network setting value is transmitted to the printer 101 via the USB. The network setting value received at step S213 is displayed on the display unit 204 (S213). If the user confirms this display and there is an incorrect place and a setting change operation is performed (S214), the setting information is transmitted again to the printer 101 via USB (S215), and the wireless LAN communication unit The setting of 102 is changed, and the processing after S206 is repeated. If an operation for canceling the setup is performed instead of changing the setting in S214 (S216), the processing up to this point is interrupted and the network setup processing of the printer 101 is terminated. Also in this case, a setup interruption command is transmitted from the computer 201 to the printer 101, and upon receiving this command, the communication control unit 106 reads out the setting of the wireless LAN communication unit 102 from the communication setting parameter storage unit, sets it again, and performs the setup. Return to the setting value before starting.

以上の処理を行なうことでプリンタ101およびコンピュータ201間を無線LANで通信できるようになり、プリンタ101は無線LANで印刷可能になるが、コンピュータ201以外の他のコンピュータも同一の無線LANに参加していれば、プリンタ101と通信が可能である。そこでセキュリティ機能が問題となるが、プリンタ101は無線LANでも設定パラメータの変更が可能である場合が多く、勝手に設定変更されると本来の利用者が使用できなくなったり、勝手に印刷されてプリント用紙やインクなどの消耗品が浪費されるなどの懸念がある。それらを解決するために暗号化設定機能もあるが、MACアドレスを登録しておくことにより、登録されたMACアドレスのコンピュータからのみ通信が可能でにあるようにすることが可能となる。またMACアドレスの代わりにIPアドレスを登録しておき、登録されているIPアドレスのコンピュータからのみ通信ができるようにすることもできる。また、MACアドレスおよびIPアドレスが両方登録可能で、どちらかが登録されている機器が通信できるようにすることもできる。   By performing the above processing, the printer 101 and the computer 201 can communicate with each other over a wireless LAN, and the printer 101 can print over the wireless LAN. However, other computers than the computer 201 also participate in the same wireless LAN. If so, communication with the printer 101 is possible. Therefore, although the security function is a problem, the printer 101 can often change setting parameters even in a wireless LAN. If the setting is changed arbitrarily, the original user cannot use it or it can be printed without permission. There is concern that consumables such as paper and ink are wasted. In order to solve these problems, there is an encryption setting function. However, by registering the MAC address, it is possible to enable communication only from a computer having the registered MAC address. It is also possible to register an IP address instead of the MAC address so that communication can be performed only from a computer having the registered IP address. Further, both the MAC address and the IP address can be registered, and a device in which either one is registered can be configured to be able to communicate.

従来のMACアドレスまたはIPアドレスによる制限設定画面を図15に、接続を許可するMACアドレス登録画面を図16にそれぞれ示す。   FIG. 15 shows a conventional restriction setting screen by MAC address or IP address, and FIG. 16 shows a MAC address registration screen for permitting connection.

図15は、プリンタの各種設定項目がコンピュータ201の表示部204に表示されたユーティリティ画面の一部である。1601はプリンタへのアクセス制限に関する設定画面を開くためのタブ、1602はMACアドレスによる制限またはIPアドレスによる制限のどちらかを選択するためのプルダウンメニュー、1603は1702でMACアドレスを選択した場合に表示され、プリンタへのMACアドレスによるアクセス制限を有効にするためのチェックボックス、1604は登録されたMACアドレス等を表示するアドレス表示部、1605は、MACアドレス(またはIPアドレス)を新たに追加したい場合にクリックする追加ボタン、1606はアドレス表示部に表示されているアドレスを選択するとボタンが有効になり、選択したアドレスを削除するためにクリックする削除ボタン、1607は本画面での設定をプリンタに送信して終了するためのOKボタンである。1608は、今までの操作を無効にして現在の設定のまま操作を終了するためのキャンセルボタンボタンであり、1609は操作方法がわからない場合にヘルプ画面を表示させるためのヘルプボタンである。   FIG. 15 is a part of a utility screen in which various setting items of the printer are displayed on the display unit 204 of the computer 201. 1601 is a tab for opening a setting screen for restricting access to the printer, 1602 is a pull-down menu for selecting either restriction by MAC address or restriction by IP address, and 1603 is displayed when a MAC address is selected by 1702 A check box for enabling access restriction by the MAC address to the printer, 1604 an address display unit for displaying a registered MAC address, and 1605 for newly adding a MAC address (or IP address). An add button to be clicked on, 1606 is enabled when an address displayed in the address display section is selected, a delete button to be clicked to delete the selected address, and 1607 sends settings on this screen to the printer To exit It is OK button. Reference numeral 1608 denotes a cancel button for invalidating the operation so far and ending the operation with the current setting. Reference numeral 1609 denotes a help button for displaying a help screen when the operation method is unknown.

図16は、図15の追加ボタン1605をクリックすると表示されるMACアドレス登録画面であり、1701はMACアドレス入力部、1702は1701に入力したMACアドレスが何を表すかなどのコメントを入力するためのコメント入力部、1703は1701および1702に入力した内容を有効にするためのOKボタンである。MACアドレス入力部1701は16桁のMACアドレスを2桁ずつハイフンで区切って入力するようになっている。本画面にて登録されたMACアドレスおよびコメントは図15の例のようにMACアドレス表示部1604に表示される。追加ボタン1605をクリックし、図16のMACアドレス登録画面で登録を繰り返すことによって、複数の機器のMACアドレスを登録することが可能である。   FIG. 16 is a MAC address registration screen displayed when the add button 1605 in FIG. 15 is clicked. 1701 is a MAC address input unit, 1702 is for inputting comments such as what the MAC address input to 1701 represents. The comment input unit 1703 is an OK button for validating the contents input to 1701 and 1702. The MAC address input unit 1701 inputs a 16-digit MAC address by separating each two digits with a hyphen. The MAC address and comment registered on this screen are displayed on the MAC address display unit 1604 as in the example of FIG. By clicking the add button 1605 and repeating registration on the MAC address registration screen of FIG. 16, it is possible to register the MAC addresses of a plurality of devices.

ところがこの方法では、16桁もあるMACアドレスを手入力しなければならないため、非常に操作が煩雑であることと、MACアドレスは数字とAからFまでのランダムな羅列であるため、入力時に誤り易いという問題がある。間違えて入力してしまえば、本来登録しようとしていた機器から印刷できなくなってしまう。また、1つのMACアドレスのみ登録した場合、そのMACアドレスが誤っていればどの機器からもアクセスできなくなってしまうことになる。   However, this method requires manual input of a 16-digit MAC address, which is very cumbersome and the MAC address is a random list of numbers and A to F. There is a problem that it is easy. If you enter it incorrectly, you will not be able to print from the device you originally intended to register. In addition, when only one MAC address is registered, if the MAC address is incorrect, no device can access it.

そこで、本実施の形態のプリンタ101は図6ように動作する。   Therefore, the printer 101 of this embodiment operates as shown in FIG.

無線LANを使用するためのセットアップの完了後、プリンタ101の通信制御部106は、無線LAN通信部102経由で無線LANのパケットを受信すると(S301)、そのパケットがプリンタ101の専用のネットワークプロトコルに従ったパケットであるかどうかを識別し(S302)、そうである場合は受信したパケットの送信元アドレスがアドレス記憶部109の第1の記憶領域110または第2の記憶領域111にあるか否かを比較し、既に記憶されているアドレスでなければ、そのアドレスをアドレス記憶部109の第1の領域110に記憶する(S303)。S301からS303を繰り返しているうちに、アクセス制限設定手段がコンピュータ201で起動されると、主制御装置202は現在のアクセス制限の状態(有効か無効か、MACアドレスによる制限かIPアドレスによる制限か、登録されているアドレス情報があればその情報)を問い合わせるコマンドをプリンタ101へ送信する。このコマンドはコンピュータ201とプリンタ101とが無線LANのみで接続されている場合は無線LAN経由で、USBで接続されている場合はUSBで送信することが可能である。   After completing the setup for using the wireless LAN, when the communication control unit 106 of the printer 101 receives a wireless LAN packet via the wireless LAN communication unit 102 (S301), the packet is converted into a dedicated network protocol for the printer 101. Whether or not the packet is in compliance is identified (S302). If so, whether the source address of the received packet is in the first storage area 110 or the second storage area 111 of the address storage unit 109 is determined. If the address is not already stored, the address is stored in the first area 110 of the address storage unit 109 (S303). If the access restriction setting means is activated by the computer 201 while repeating S301 to S303, the main control device 202 determines whether the current access restriction state (valid or invalid, whether it is restricted by the MAC address or restricted by the IP address). If there is registered address information, the information is transmitted to the printer 101. This command can be transmitted via a wireless LAN when the computer 201 and the printer 101 are connected only by a wireless LAN, and via USB when connected by a USB.

本実施の形態では、図7に示すように、アクセス制限タブ701を開くと(S304)、現在アクセス制限が設定されていればMACアドレスかIPアドレスがプルダウンメニュー702に表示され、チェックボックス703にチェックが表示される。アクセス制限が有効に設定されていなければチェックボックス703にチェックは入っていないことになる。また、登録されているMACアドレス(プルダウンメニュー702の表示がIPアドレスの場合は登録されているIPアドレス)がアドレス情報表示部704に表示される。追加ボタン705をクリックすることにより、図16に示したMACアドレス登録画面が表示され、手入力によって登録可能であるが、更にアドレス記憶部109の第1の領域110に記憶されているMACアドレスがあれば、そのMACアドレスはアクセスされたMACアドレス表示画面706に表示される。   In this embodiment, as shown in FIG. 7, when the access restriction tab 701 is opened (S304), if access restriction is currently set, the MAC address or IP address is displayed in the pull-down menu 702, and the check box 703 is displayed. A check is displayed. If the access restriction is not set to be valid, the check box 703 is not checked. In addition, the registered MAC address (registered IP address when the pull-down menu 702 is displayed as an IP address) is displayed on the address information display unit 704. When the add button 705 is clicked, the MAC address registration screen shown in FIG. 16 is displayed and can be registered manually, but the MAC address stored in the first area 110 of the address storage unit 109 is further changed. If there is, the MAC address is displayed on the accessed MAC address display screen 706.

コンピュータ201の操作者は、アクセスされたMACアドレス表示画面706を見て、プリンタ101と通信することを許可したいMACアドレスがあればそのMACアドレスをクリックすることにより選択し、登録ボタン707をクリックすれば、そのMACアドレスはアクセス可能なMACアドレス表示画面704に追加される。それらの操作を繰り返してアクセスされたMACアドレス表示画面706に表示されているMACアドレスから複数のMACアドレスをアクセス可能なMACアドレス表示画面704に追加することも可能である。また、アクセスされたMACアドレス表示画面706に表示されているMACアドレスから削除したいMACアドレスがあれば当該MACアドレスを選択して削除ボタン708をクリックすることにより削除することも可能であり、誤ってアクセス可能なMACアドレス表示画面704に追加してしまったり、コンピュータ201の無線LANカードを変更するなどによりMACアドレスが変わったために、アクセス可能なMACアドレス表示画面704から削除したいMACアドレスがある場合は当該MACアドレスを選択して削除ボタン709をクリックすることにより削除することも可能である。こうした後、OKボタン710をクリックすることにより、登録、削除された最新のアクセス可能なMACアドレス情報とアクセスされたMACアドレス情報を、またアクセス制限を有効にするチェックボックス703のチェックが変更された場合はその情報もプリンタ101に送信する。なお、削除ボタン708は備えられなくとも本発明の有効性には大きな影響はない。キャンセルボタン711は、今までの操作を無効にして現在の設定のまま操作を終了するためのボタンであり、ヘルプボタン712は操作方法がわからない場合にヘルプ画面を表示させるためのボタンである。プリンタ101の通信制御装置106は、受信した情報にアクセス制限をONにするコマンドが含まれていれば(S306)、通信設定パラメータ記憶部105にアクセス制限を有効に設定したパラメータをセットし、同じく受信した情報からアクセス許可するMACアドレスをアドレス記憶部の第2の記憶領域111に格納する(S307)。ここで他の暗号化設定やSSIDの設定などは無線LAN通信部102に設定すると共に、通信設定パラメータ記憶部105に記憶させておく。暗号化処理自体および設定されたSSIDを用いるアクセスポイントの検索や接続制御は無線LAN通信部が実行するが、MACアドレスによるアクセス制限やIPアドレスによるアクセス制限は無線LAN経由で受信したパケットが印刷データであれば、通信制御部106が通信設定パラメータ記憶部105に記憶されているアクセス制限設定が有効になっている場合、アドレス記憶部109の第2の記憶領域111に記憶されているアドレス情報と受信したパケットの送信元アドレスとを比較し、受信したパケットの送信元アドレスが第2の記憶領域111に記憶されていれば印刷データを印刷データ一時記憶部107に渡し、第2の記憶領域111に記憶されていなければ印刷データを廃棄する。また、無線LAN経由で受信したパケットがコマンドであれば、印刷データの時と同様に受信パケットの送信元アドレスと第2記憶領域111に記憶されているアドレスとにより通信制御部106が応答するかどうかを判断する。   The operator of the computer 201 looks at the accessed MAC address display screen 706, selects any MAC address that he wishes to permit to communicate with the printer 101 by clicking on the MAC address, and clicks the registration button 707. For example, the MAC address is added to the accessible MAC address display screen 704. It is also possible to add a plurality of MAC addresses to the accessible MAC address display screen 704 from the MAC addresses displayed on the accessed MAC address display screen 706 by repeating these operations. In addition, if there is a MAC address to be deleted from the MAC addresses displayed on the accessed MAC address display screen 706, it can be deleted by selecting the MAC address and clicking the delete button 708. When there is a MAC address to be deleted from the accessible MAC address display screen 704 because it has been added to the accessible MAC address display screen 704 or the MAC address has been changed by changing the wireless LAN card of the computer 201. It is also possible to delete by selecting the MAC address and clicking the delete button 709. After that, by clicking the OK button 710, the check of the check box 703 for enabling the access restriction and the latest accessible MAC address information registered and deleted and the accessed MAC address information are changed. In that case, the information is also transmitted to the printer 101. Even if the delete button 708 is not provided, the effectiveness of the present invention is not greatly affected. A cancel button 711 is a button for disabling the operation so far and ending the operation with the current setting, and a help button 712 is a button for displaying a help screen when the operation method is unknown. If the received information includes a command for turning on the access restriction (S306), the communication control device 106 of the printer 101 sets a parameter in which the access restriction is set to be effective in the communication setting parameter storage unit 105. The MAC address for which access is permitted from the received information is stored in the second storage area 111 of the address storage unit (S307). Here, other encryption settings, SSID settings, and the like are set in the wireless LAN communication unit 102 and stored in the communication setting parameter storage unit 105. The wireless LAN communication unit executes the encryption processing itself and access point search and connection control using the set SSID, but the access received by the MAC address and the access restricted by the IP address are transmitted from the packet received via the wireless LAN. If the access restriction setting stored in the communication setting parameter storage unit 105 is valid, the communication control unit 106 is configured to use the address information stored in the second storage area 111 of the address storage unit 109 and The transmission source address of the received packet is compared, and if the transmission source address of the received packet is stored in the second storage area 111, the print data is passed to the print data temporary storage unit 107, and the second storage area 111 If not stored, the print data is discarded. If the packet received via the wireless LAN is a command, whether the communication control unit 106 responds with the transmission source address of the received packet and the address stored in the second storage area 111 as in the case of print data. Judge whether.

更にアクセス制限を有効にしている間もアクセス可能なMACアドレスとしてアドレス記憶部109の第2の記憶領域111に含まれていない送信元MACアドレスのパケットを受信した場合(S301)、プリンタ101と通信するための専用のプロトコルに従ったパケットであれば(S302)、アドレス記憶部109の第1の記憶領域110にそのMACアドレスが含まれているかどうかを比較し、含まれていなければアドレス記憶部109の第1の記憶領域110に追加して記憶させておく(S303)。これにより、再度アクセス制限設定タブ701が開かれた場合に、アクセスされたMACアドレス画面706には前回開いた時点では表示されていなかったMACアドレスがいくつか表示されている可能性があり、そのいくつかのアドレスの中にプリンタ101へのアクセスを許可したいものがあれば非常に簡単な操作で追加登録することが可能になる。   Further, when a packet of a source MAC address not included in the second storage area 111 of the address storage unit 109 is received as an accessible MAC address while the access restriction is enabled (S301), communication with the printer 101 is performed. If the packet is in accordance with a dedicated protocol for performing (S302), it is compared whether or not the MAC address is included in the first storage area 110 of the address storage unit 109. If not, the address storage unit The information is additionally stored in the first storage area 110 of 109 (S303). As a result, when the access restriction setting tab 701 is opened again, the accessed MAC address screen 706 may display some MAC addresses that were not displayed at the time of the previous opening. If there are some addresses that want to permit access to the printer 101, additional registration can be performed with a very simple operation.

ところで、プリンタ101と通信するための所定のプロトコルを説明するために、図8にコンピュータ201のネットワーク概略階層図、図9にプリンタ101のネットワーク概略階層図を示す。図8において、801は無線LAN通信部206に含まれる物理層(Physical Layer)、802は同じく無線LAN通信部206に含まれるMAC層(Medium Access Control Layer)、803はMAC層802および物理層801を無線LAN制御部208によって制御するデバイスドライバ、804は受信パケットのIPアドレスを監視したりIPアドレスを送信パケットに付したりするためのOSI参照モデルのネットワーク層にあたるIP層(Internet Protocol Layer)、805はIP層が受信したパケットを受けて処理を行うOSI参照モデルのトランスポート層にあたるTCP/UDP層(Transmission Control Protocol/User Datagram Protocol Layer)であってTCPは信頼性が高く、UDPは信頼性でTCPに劣るが高速であるため2種類の使い分けが可能である。一般にはTCP/UDP層805とIP層804とは合わせてTCP/IPと呼ばれ、一つのソフトウェアモジュールである場合が多い。806はプリンタ101と通信するための所定のプロトコル(以下、ネットワークプリンタプロトコルまたはNWPPと記す)であり、プリンタ101のネットワークセットアップを行った際にコンピュータ201にインストールされるプロトコルである。807はプリンタドライバやプリンタ101の設定ユーティリティなどのアプリケーション層である。物理層801およびMAC層802はハードウェアであり、デバイスドライバ803からアプリケーション層807はソフトウェアである場合が多い。   In order to describe a predetermined protocol for communicating with the printer 101, FIG. 8 shows a schematic network hierarchy diagram of the computer 201, and FIG. In FIG. 8, reference numeral 801 denotes a physical layer (Physical Layer) included in the wireless LAN communication unit 206, 802 denotes a MAC layer (Medium Access Control Layer) also included in the wireless LAN communication unit 206, and 803 denotes a MAC layer 802 and a physical layer 801. 804 is an IP layer (Internet Protocol Layer) corresponding to the network layer of the OSI reference model for monitoring the IP address of the received packet and attaching the IP address to the transmitted packet. Reference numeral 805 denotes a TCP / UDP layer (Transmission Control Protocol / Use) corresponding to the transport layer of the OSI reference model that receives and processes packets received by the IP layer. r Datagram Protocol Layer), TCP is high in reliability, and UDP is inferior to TCP in terms of reliability, but it is fast and can be used in two types. In general, the TCP / UDP layer 805 and the IP layer 804 are collectively referred to as TCP / IP and are often one software module. Reference numeral 806 denotes a predetermined protocol for communication with the printer 101 (hereinafter referred to as a network printer protocol or NWPP), which is a protocol installed in the computer 201 when the network setup of the printer 101 is performed. Reference numeral 807 denotes an application layer such as a printer driver and a setting utility for the printer 101. In many cases, the physical layer 801 and the MAC layer 802 are hardware, and the device layer 803 to the application layer 807 are software.

アクセスされたアクセスされたアクセスされたアクセスされたアクセスされたアクセスされたアクセスされたアクセスされた図9においても同様であり、901は無線LAN通信部102に含まれる物理層、902は無線LAN通信部102に含まれるMAC層、903はMAC層902および物理層901を通信制御部106によって制御するデバイスドライバ、904はIP層、905はTCP/UDP層、906はネットワークプリンタプロトコル、907はプリンタドライバから送信された印刷データやユーティリティから送信されたコマンドを処理するなどの役割を果たすアプリケーション層である。   In FIG. 9, the same is applied to the physical layer included in the wireless LAN communication unit 102, and 902 is the wireless LAN communication. , 903 is a device driver that controls the MAC layer 902 and the physical layer 901 by the communication control unit 106, 904 is an IP layer, 905 is a TCP / UDP layer, 906 is a network printer protocol, and 907 is a printer driver. This is an application layer that plays a role such as processing print data sent from the server and commands sent from the utility.

プリンタ101が受信したパケットが所定のプロトコルに従ったものであるかどうかは、例えばネットワークプリンタプロトコル806および906ではNWPPというヘッダを付して互いに送信する規約としておけば、TCP/UDP層から上がってきたパケットにNWPPというヘッダがあるかどうかで判別可能である。   Whether or not the packet received by the printer 101 conforms to a predetermined protocol can be determined from the TCP / UDP layer if the network printer protocols 806 and 906 have a NWPP header and send each other. It is possible to determine whether or not the packet has a header of NWPP.

本実施の形態により、パケットの送信元MACアドレスでプリンタへのアクセス制限を実施するにあたって、MACアドレスを手入力する煩雑さが解消されるとともに、誤入力の懸念もなくなる効果がある。なおS307で選択されたMACアドレスは、S303で記憶されたプリンタ101と通信する専用のプロトコルに従ったパケットを送信したものであることから、殆どの場合従来の手段では手入力で登録されるはずのコンピュータなどのMACアドレスであり、それ以外の外部から侵入した機器のMACアドレスは含まれていないため安全である。更に、一旦アクセス制限を有効に設定した後でも、プリンタ101と通信する専用のプロトコルに従ったパケットの送信元アドレスで新たなアドレスがあれば追加して記憶させることにより、後からプリンタ101と通信させたいコンピュータを追加するような場合でも、再びユーティリティのアクセス制限画面701を起動してアクセス可能なMACアドレスを追加する操作も非常に簡単で誤入力のない追加が可能となる。   According to the present embodiment, when restricting access to the printer with the packet source MAC address, the trouble of manually inputting the MAC address is eliminated, and there is an effect of eliminating the fear of erroneous input. Since the MAC address selected in S307 is a packet transmitted in accordance with a dedicated protocol for communicating with the printer 101 stored in S303, in most cases, it should be registered manually by conventional means. It is safe because it does not include the MAC address of the other device that has entered from the outside. Further, even after the access restriction is set to be effective once, if there is a new address in the transmission source address of the packet in accordance with the dedicated protocol for communication with the printer 101, it is stored in the memory, so that it can communicate with the printer 101 later. Even when a computer to be added is added, an operation for starting up the access restriction screen 701 of the utility again to add an accessible MAC address is very simple and can be added without erroneous input.

(第2の実施の形態)
図10に本実施形態のシステム構成図を示す。
(Second Embodiment)
FIG. 10 shows a system configuration diagram of the present embodiment.

図10は図3と同様、プリンタ101(図1)およびコンピュータ201(図2)に示した構成、機能を有するプリンタ1001およびコンピュータ1002を使用して有線LANでプリンタ1001とコンピュータ1002間の通信を行うシステム構成図の一例である。同図において1001はプリンタ、1002はコンピュータである。1003は複数の有線LANポートを備えていてそれぞれの有線LANポート同士の通信およびモデムと接続するためのポート(以後WANポートという)を備えていて、各有線LANポートとWANポート間の中継機能を有するルータ、1004はADSL(Asymmetric Didital Subscriber Line)モデムなどの、コンピュータ1002が公衆回線にアクセスするために必要なモデム、1005はルータ1003のWANポートとモデム1004を接続するLANケーブル、1006はADSL回線のような公衆回線、1007はコンピュータ1002がADSL回線1006を介してインターネットにアクセスしたり、電子メールの送受信を行うWAN(Wide Aria Network)である。1008および1009はそれぞれコンピュータ1002およびプリンタ1001とルータ1003の有線LANポートを接続するためのLANケーブルであり、1010はコンピュータ1002にプリンタ1001用のドライバソフトウェアをインストールしたり、プリンタ1001の無線LAN機能をセットアップしたり、コンピュータ1002にセットアップしたプリンタ1001用のポートを設定するためにプリンタ1001のUSBポートとコンピュータ1002のUSBポートを一時的に接続するためのUSBケーブルである。   As in FIG. 3, FIG. 10 uses the printer 1001 and the computer 1002 having the configurations and functions shown in the printer 101 (FIG. 1) and the computer 201 (FIG. 2) to communicate between the printer 1001 and the computer 1002 via a wired LAN. It is an example of the system block diagram to perform. In the figure, reference numeral 1001 denotes a printer, and reference numeral 1002 denotes a computer. The reference numeral 1003 includes a plurality of wired LAN ports, a communication port between each wired LAN port, and a port for connecting to a modem (hereinafter referred to as a WAN port), and a relay function between each wired LAN port and the WAN port. 1004 is a modem necessary for the computer 1002 to access the public line, such as an ADSL (Asymmetric Digital Subscriber Line) modem, 1005 is a LAN cable that connects the WAN port of the router 1003 and the modem 1004, and 1006 is an ADSL line A public line 1007 is a WAN (Wide Area Network) in which the computer 1002 accesses the Internet via the ADSL line 1006 and transmits and receives electronic mail. Reference numerals 1008 and 1009 denote LAN cables for connecting the wired LAN ports of the computer 1002 and the printer 1001 to the router 1003. Reference numeral 1010 denotes a driver software for the printer 1001 installed in the computer 1002 or the wireless LAN function of the printer 1001. A USB cable for temporarily connecting the USB port of the printer 1001 and the USB port of the computer 1002 in order to set up or set a port for the printer 1001 set up in the computer 1002.

図10においてプリンタ1001のドライバソフトウェアを図4に示したフローチャートと同様の手順でコンピュータ1002にインストールした後、プリンタ1001を有線LANに接続して使用するために、図5のS201で有線LANのセットアップが選択されると、図11のフローチャートに示すプリンタ1001の有線LANの設定、有線LANポートの作成およびインストールしたコンピュータのポートの変更が行われる。この場合、コンピュータ1002は既に有線LANでルータ1003に接続されていて、IPアドレスの取得または決定が済んでおり、コンピュータ1002とルータ1003間は通信可能な状態になっていることを前提とする。まずUSB経由でコンピュータ1002からプリンタ1001へプリンタ1001の有線LANポートがリンクONになっているかどうか問い合わせる(S1101)。リンクONとはプリンタ1001の有線LANポートと接続先とがLANケーブルが接続されていて、なおかつ電気信号をLANケーブルを通して互いにやりとりできる状態を言う。プリンタ1001の通信制御部106がこの問い合わせを解釈して有線LAN通信部103の状態を見て判断し、USBケーブル1010を通してコンピュータ1002に判断結果を通知する。リンクONであればプリンタ1001はルータ1003にIPアドレスを要求し、ルータ1003から返信されたIPアドレスを自分のIPアドレスとするか、または予め通信設定パラメータ記憶部105に記憶されていたIPアドレスを読み出すなどして、IPアドレスを決定する(S1102)。リンクONであることをプリンタ1001からコンピュータ1002にUSBケーブル1010を通して返信すると、コンピュータ1002は有線LANケーブル1008、ルータ1003および有線LANケーブル1009を通してプリンタ1001を検出するためのコマンドを図8のネットワークプリンタプロトコル806に従って送信する(S1103)。   In FIG. 10, after installing the driver software of the printer 1001 in the computer 1002 in the same procedure as the flowchart shown in FIG. 4, in order to connect the printer 1001 to the wired LAN and use it, the wired LAN setup is performed in S201 of FIG. Is selected, the setting of the wired LAN of the printer 1001, the creation of the wired LAN port, and the change of the port of the installed computer are performed as shown in the flowchart of FIG. In this case, it is assumed that the computer 1002 has already been connected to the router 1003 via a wired LAN, has already acquired or determined an IP address, and is in a communicable state between the computer 1002 and the router 1003. First, an inquiry is made from the computer 1002 via the USB to the printer 1001 as to whether or not the wired LAN port of the printer 1001 is link ON (S1101). “Link ON” means a state in which the LAN cable is connected to the wired LAN port of the printer 1001 and the connection destination, and electrical signals can be exchanged with each other through the LAN cable. The communication control unit 106 of the printer 1001 interprets this inquiry, makes a determination by looking at the state of the wired LAN communication unit 103, and notifies the computer 1002 of the determination result through the USB cable 1010. If the link is ON, the printer 1001 requests the router 1003 for an IP address, and uses the IP address returned from the router 1003 as its own IP address or the IP address stored in the communication setting parameter storage unit 105 in advance. The IP address is determined by reading (S1102). When the link 100 is returned from the printer 1001 to the computer 1002 through the USB cable 1010, the computer 1002 sends a command for detecting the printer 1001 through the wired LAN cable 1008, the router 1003, and the wired LAN cable 1009 to the network printer protocol in FIG. Transmission is performed according to 806 (S1103).

プリンタ1001およびコンピュータ1002が同じルータ1003のLAN側に接続されていて両者ともリンクONになっており、プリンタ1001とコンピュータ1002のIPアドレスがルータ1003のIPアドレスと同じネットワークアドレスになっていて、それぞれ重複しないIPアドレスになっていれば、なおかつファイヤウォールでこの検出するためのコマンドおよびその応答コマンドが防御されていなければ、上記コマンドの応答がプリンタ1001からコンピュータ1002に返信されるので、コンピュータ1002からプリンタ1001が検出されるはずである。コンピュータ1002がプリンタ1001を検出すれば(S1104)、コンピュータ1002は、プリンタ1001のネットワークポートを作成し(S1105)、ネットワークセットアップを完了する表示を行う(S1106)。これによってUSBケーブル1010は取り外すことが可能となり、以後はコンピュータ1002とプリンタ1001間はLANケーブル1008、ルータ1003およびLANケーブル1009を通して通信が可能である。   The printer 1001 and the computer 1002 are connected to the LAN side of the same router 1003 and both are linked ON. The IP address of the printer 1001 and the computer 1002 is the same network address as the IP address of the router 1003. If the IP address does not overlap, and if the command for detecting the response and the response command are not protected by the firewall, the response of the command is returned from the printer 1001 to the computer 1002. The printer 1001 should be detected. If the computer 1002 detects the printer 1001 (S1104), the computer 1002 creates a network port for the printer 1001 (S1105), and displays that the network setup is completed (S1106). As a result, the USB cable 1010 can be removed, and thereafter, the computer 1002 and the printer 1001 can communicate with each other through the LAN cable 1008, the router 1003, and the LAN cable 1009.

一方、S1101において、プリンタ1001からリンクONでないと通知されたコンピュータ1002は、プリンタ1001の有線LAN通信部103がリンクONでないと判断し、コンピュータの表示部に有線LANが接続されていないことを表示する(S1107)。例えば「セットアップを中止する場合は「中止」ボタンを、セットアップを続ける場合はプリンタの有線LANポートが接続されていることを確認して「戻る」ボタンをクリックしてください。」のようなメッセージを表示する。「中止」ボタンが操作された場合は(S1108)、セットアップを中断して終了する。この場合、コンピュータ1002のプリンタ1002用のポートはUSBのままであり、USBケーブル1010で互いを接続しておけばコンピュータ1002からプリンタ1001に印刷させることは可能である。上記例の「戻る」ボタンが操作された場合は、コンピュータ1002は再度プリンタに有線LANポートがリンクONになっているかどうかを問い合わせるコマンドをプリンタ1001へ送信する(S1101)。   On the other hand, in step S1101, the computer 1002 notified from the printer 1001 that the link is not ON determines that the wired LAN communication unit 103 of the printer 1001 is not link ON, and displays that the wired LAN is not connected to the display unit of the computer. (S1107). For example, click the “Cancel” button to cancel the setup, or click the “Return” button to confirm that the printer's wired LAN port is connected to continue the setup. "Is displayed. When the “Cancel” button is operated (S1108), the setup is interrupted and the process is terminated. In this case, the port for the printer 1002 of the computer 1002 remains USB, and if the USB cable 1010 is connected to each other, the computer 1002 can print on the printer 1001. When the “return” button in the above example is operated, the computer 1002 transmits to the printer 1001 a command for inquiring again whether the wired LAN port is linked ON to the printer (S1101).

更にS1104にて、有線LAN経由でコンピュータ1002からプリンタ1001が検出できなかった場合は、コンピュータ1002はプリンタ1001のIPアドレスやサブネットマスク、デフォルトゲートウェイ等の項目の設定画面と各パラメータの現在のプリンタ1001の値をUSBケーブル1010経由で問い合わせて表示する(S1109)。これらの中で設定変更が行われれば(S1110)、設定変更された情報をコンピュータ1002からUSBケーブル1010経由でプリンタ1001に送信する(S1111)。プリンタ1001では通信制御部106が設定変更に関する情報を有線LAN通信部103に設定し、通信設定パラメータ記憶部105に格納する。そしてプリンタ1001はIPアドレスを自動で取得する設定になっていればルータ1003にIPアドレスを再度要求して返信されたIPアドレスを自分のIPアドレスとするS1102へ戻ってそれ以降を繰り返す。S1109の後で設定変更ではなくセットアップを中断することが選択された場合は(S1112)、これまでの処理を中断してプリンタ1001のネットワークセットアップ処理を終了する。この場合、コンピュータ1002からセットアップ中断のコマンドをプリンタ1001へ送信し、通信制御部106は有線LAN通信部103の設定を通信設定パラメータ記憶部105から読み出して設定しなおし、セットアップを開始する前の設定値に戻す。   If the printer 1001 cannot be detected from the computer 1002 via the wired LAN in step S1104, the computer 1002 displays a setting screen for items such as the IP address, subnet mask, and default gateway of the printer 1001, and the current printer 1001 for each parameter. Is inquired and displayed via the USB cable 1010 (S1109). If the setting is changed in these (S1110), the changed information is transmitted from the computer 1002 to the printer 1001 via the USB cable 1010 (S1111). In the printer 1001, the communication control unit 106 sets information regarding the setting change in the wired LAN communication unit 103 and stores the information in the communication setting parameter storage unit 105. If the printer 1001 is set to automatically acquire the IP address, the printer 1001 requests the router 1003 again for the IP address, returns to S1102 with the returned IP address as its own IP address, and repeats the subsequent steps. If it is selected after S1109 not to change the setting but to cancel the setup (S1112), the processing so far is interrupted and the network setup processing of the printer 1001 is terminated. In this case, a setup interruption command is transmitted from the computer 1002 to the printer 1001, and the communication control unit 106 reads out the setting of the wired LAN communication unit 103 from the communication setting parameter storage unit 105 and sets it again, and the setting before starting the setup. Return to value.

有線LANのセットアップが完了した場合、プリンタ1001は図6に示したフローチャートと同様の動きをする(但し、本実施形態の場合は、無線LANでパケットを送受信する代わりに有線LAN経由でパケットを送受信することになる。)。   When the setup of the wired LAN is completed, the printer 1001 operates in the same manner as the flowchart shown in FIG. 6 (however, in this embodiment, instead of transmitting / receiving a packet via the wireless LAN, the printer 1001 transmits / receives a packet via the wired LAN). Will do.)

またコンピュータ1002の設定ユーティリティのアクセス制限に関する部分も図7と同じ表示をする。   Further, the portion related to the access restriction of the setting utility of the computer 1002 also displays the same as in FIG.

これによって、プリンタ1001を有線LANで使用する場合も、パケットの送信元MACアドレスでプリンタへのアクセス制限を実施するにあたって、MACアドレスを手入力する煩雑さが解消されるとともに、誤入力の懸念もなくなる効果がある。アクセスされたMACアドレス表示部706に表示されるMACアドレスはプリンタ1001と通信する所定のプロトコル(NWPP806および906)に従ったパケットを送信したものであることから、殆どの場合従来は手入力で登録されるはであったコンピュータなどのMACアドレスであり、それ以外の外部から侵入した機器のMACアドレスは含まれていないため、選択して登録しても安全であり、むしろ登録しなけばないらないMACアドレスである場合が多い。更に、一旦アクセス制限を有効に設定した後でも、プリンタ1001と通信する専用のプロトコルに従ったパケットの送信元アドレスで新たなアドレスがあれば追加して記憶させることにより、後からプリンタ1001と通信させたいコンピュータを追加するような場合でも、再びユーティリティのアクセス制限画面701を起動してアクセス可能なMACアドレスを追加する操作も非常に簡単で誤入力のない追加が可能となる。   As a result, even when the printer 1001 is used in a wired LAN, the complexity of manually entering the MAC address is eliminated and the input error may be a concern when restricting access to the printer by the packet source MAC address. It has the effect of disappearing. Since the MAC address displayed on the accessed MAC address display unit 706 is a packet transmitted in accordance with a predetermined protocol (NWPP 806 and 906) for communicating with the printer 1001, in most cases, it is conventionally registered manually. Since it is a MAC address of a computer etc. that is not included, it does not include the MAC address of other devices that entered from outside, so it is safe to select and register, rather it must be registered In many cases, it is a MAC address. Further, even after the access restriction is set to be effective once, if there is a new address in the source address of the packet in accordance with a dedicated protocol for communicating with the printer 1001, it is stored and stored later. Even when a computer to be added is added, an operation for starting up the access restriction screen 701 of the utility again to add an accessible MAC address is very simple and can be added without erroneous input.

(第3の実施の形態)
図12は第3の実施の形態に係るフローチャートである。本実施の形態では、図1に示したプリンタ101および図2に示したコンピュータ201を図3に示したようにそれぞれ無線LANを使用して通信させる場合を想定している。第1の実施の形態で説明した図4のプリンタドライバのインストールが完了し(S106)、ネットワークセットアップが選択されると(S107のYES)、図12のフローチャートに示す処理を行なう。
(Third embodiment)
FIG. 12 is a flowchart according to the third embodiment. In this embodiment, it is assumed that the printer 101 shown in FIG. 1 and the computer 201 shown in FIG. 2 communicate with each other using a wireless LAN as shown in FIG. When the installation of the printer driver of FIG. 4 described in the first embodiment is completed (S106) and network setup is selected (YES in S107), the processing shown in the flowchart of FIG. 12 is performed.

コンピュータ201の操作部205の操作によってプリンタ101を無線LANで使用することが選択されると(S1201)、図5のフローと同様に、コンピュータ201の主制御部202はポート切替制御部212、USB通信制御部209、USBポート210を経由して無線LANのセットアップを開始する予め定められたコマンドをプリンタ101へ送信する。   When the use of the printer 101 in the wireless LAN is selected by the operation of the operation unit 205 of the computer 201 (S1201), the main control unit 202 of the computer 201 is connected to the port switching control unit 212, the USB, similarly to the flow of FIG. A predetermined command for starting setup of the wireless LAN is transmitted to the printer 101 via the communication control unit 209 and the USB port 210.

プリンタ101では、USB通信部104を経由して上記コマンドを通信制御部106が受信すると、無線LAN通信部102を起動し、通信設定パラメータ記憶部105から読み出した所定の設定値を無線LAN通信部102に入力する。コンピュータ201の主制御部202は続けてアクセスポイントを検索するコマンドをプリンタ101へUSB経由で送信する(S1202)。プリンタ101の通信制御部106は、S1202で送信されたコマンドを受信すると、無線LAN通信部102を、例えばSSIDをANYに、暗号化をOFFに設定するなどのアクセスポイントを検索するための設定に変更する。通信制御部106は無線LAN通信部102が検出したアクセスポイントに関する情報、例えば検出された各アクセスポイントに設定されているSSID、無線チャンネル、暗号化設定の有無または種別などをコンピュータ101へUSB経由で返送する。上記返送されたプリンタ101が検出したアクセスポイントの情報を主制御部202は表示部204へ表示する(S1203)。   In the printer 101, when the communication control unit 106 receives the command via the USB communication unit 104, the wireless LAN communication unit 102 is activated, and the predetermined setting value read from the communication setting parameter storage unit 105 is transmitted to the wireless LAN communication unit. 102. The main control unit 202 of the computer 201 continues to transmit a command for searching for an access point to the printer 101 via the USB (S1202). Upon receiving the command transmitted in S1202, the communication control unit 106 of the printer 101 sets the wireless LAN communication unit 102 to search for an access point such as setting the SSID to ANY and encryption to OFF. change. The communication control unit 106 sends information related to the access point detected by the wireless LAN communication unit 102, such as the SSID, wireless channel, presence / absence or type of encryption set to each detected access point, to the computer 101 via USB. Return it. The main control unit 202 displays the access point information detected by the returned printer 101 on the display unit 204 (S1203).

続いて操作部205によって表示されたアクセスポイントから一つのアクセスポイントが選択され、暗号化が設定されているアクセスポイントである場合はプリンタにも同様の暗号化設定を行うための情報が入力されたり、S1203で表示されたアクセスポイント情報にプリンタを接続したいアクセスポイントが含まれていなかったり、或いはアクセスポイントが一つも表示されなかった場合に、SSIDや暗号化設定に関する情報、更に必要な場合はプリンタに設定するIPアドレスに関する情報が手入力によって入力されると(S1204)、主制御部202はUSB経由でプリンタ101にS204で入力された設定情報を送信する(S1205)。これを受信したプリンタ101の通信制御部106は受信した設定情報を無線LAN通信部102に入力し、無線LAN通信部102がアクセスポイント(図3の場合はルータ303)に接続されたか否かを観察する。接続されたと判断すると、アクセスポイントに接続されたことを示す情報をコンピュータ201へ返送する。主制御部202はプリンタ101がアクセスポイントに接続されたことの通知を受けると(S1206)、次に無線LAN制御部208へ所定のプリンタを検出するためのコマンドを入力し、無線LAN通信部206、無線LANポート211を経由してプリンタ101へ送信する(S1207)このコマンドはコンピュータ201からルータ303経由で無線LANでプリンタ101へ送信されることになる。   Subsequently, one access point is selected from the access points displayed on the operation unit 205, and if the access point is set to be encrypted, information for performing similar encryption settings is input to the printer. If the access point information displayed in step S1203 does not include an access point to which the printer is to be connected, or if no access point is displayed, information on the SSID and encryption settings, and if necessary, the printer When the information related to the IP address to be set is manually input (S1204), the main control unit 202 transmits the setting information input in S204 to the printer 101 via USB (S1205). Upon receiving this, the communication control unit 106 of the printer 101 inputs the received setting information to the wireless LAN communication unit 102 and determines whether the wireless LAN communication unit 102 is connected to an access point (router 303 in the case of FIG. 3). Observe. If it is determined that it is connected, information indicating that it is connected to the access point is returned to the computer 201. When the main control unit 202 receives a notification that the printer 101 is connected to the access point (S1206), the main control unit 202 next inputs a command for detecting a predetermined printer to the wireless LAN control unit 208, and the wireless LAN communication unit 206 The command is transmitted to the printer 101 via the wireless LAN port 211 (S1207). This command is transmitted from the computer 201 to the printer 101 via the router 303 via the wireless LAN.

プリンタ101からルータ303を経由して無線LANで所定の返信コマンドをコンピュータ201が受信すれば、主制御部202は無線LANでプリンタ101を検出できたと判断し(S1208のYES)、コンピュータ101に所定の無線LANポート名を加えて、プリンタ101用のポートをUSBポート210から前記ポート名を付けた無線LANポート211に切り替える(S1209)。   If the computer 201 receives a predetermined reply command from the printer 101 via the router 303 via the wireless LAN, the main control unit 202 determines that the printer 101 has been detected via the wireless LAN (YES in step S1208). The port for the printer 101 is switched from the USB port 210 to the wireless LAN port 211 with the port name (S1209).

ここで本実施の形態では、コンピュータ201の主制御部202は、無線LAN制御部208を介して無線LAN通信部206または無線LAN用パラメータ記憶部207からコンピュータ201の無線LANに一意に割り当てられているMACアドレスを読み出す。そして読み出されたMACアドレスをUSB経由でプリンタ101へ送信する(S1210)。プリンタ101の通信制御装置106は受信したMACアドレスをアドレス記憶部109の第2の記憶領域111へ記憶する(S1211)。その後、主制御部202は表示部204にネットワークセットアップが完了したことを表示し(S1212)、処理を終了する。この段階で図3に示したUSBケーブル308は取り外すことが可能となる。以後はコンピュータ201で印刷操作を行うと、主制御部206からプリンタ101へ送信される印刷データは印刷データ変換部213、印刷データ一時記憶部214、ポート切替部212、無線LAN通信制御部208、無線LAN通信部206および無線LANポート211を通ってプリンタ101へ送信される。   Here, in the present embodiment, the main control unit 202 of the computer 201 is uniquely assigned to the wireless LAN of the computer 201 from the wireless LAN communication unit 206 or the wireless LAN parameter storage unit 207 via the wireless LAN control unit 208. Read the MAC address. Then, the read MAC address is transmitted to the printer 101 via the USB (S1210). The communication control device 106 of the printer 101 stores the received MAC address in the second storage area 111 of the address storage unit 109 (S1211). Thereafter, the main control unit 202 displays the completion of network setup on the display unit 204 (S1212), and ends the process. At this stage, the USB cable 308 shown in FIG. 3 can be removed. Thereafter, when a printing operation is performed by the computer 201, print data transmitted from the main control unit 206 to the printer 101 is a print data conversion unit 213, a print data temporary storage unit 214, a port switching unit 212, a wireless LAN communication control unit 208, The data is transmitted to the printer 101 through the wireless LAN communication unit 206 and the wireless LAN port 211.

なお、図12においてS1213、S1214、S1215、S1216、S1217およびS1218はそれぞれ図5に示したS211、S212、S213、S214、S215およびS216と同じ動作をするステップであるので、説明を省略する。   In FIG. 12, S1213, S1214, S1215, S1216, S1217, and S1218 are steps that perform the same operations as S211, S212, S213, S214, S215, and S216 shown in FIG.

また、図12において説明したセットアップが完了した後は、プリンタ101は、上述した図6に示したフローチャートと同様な動作を行なう。   In addition, after the setup described in FIG. 12 is completed, the printer 101 performs the same operation as the flowchart shown in FIG.

S1211でコンピュータ201の無線LAN用MACアドレスをアドレス記憶部109の第2の記憶領域111に自動的に書き込むことにより、MACアドレスによるアクセス制限が設定された場合、コンピュータ201の無線LAN用MACは既にアクセス可能なMACアドレスとして登録されていることになり、コンピュータ201のMACアドレスを手入力する煩雑さがなく、また手入力による誤りの心配もなくプリンタ101と通信することが可能になる。   In S1211, when the access restriction by the MAC address is set by automatically writing the wireless LAN MAC address of the computer 201 to the second storage area 111 of the address storage unit 109, the wireless LAN MAC of the computer 201 has already been set. Since it is registered as an accessible MAC address, it is possible to communicate with the printer 101 without the trouble of manually inputting the MAC address of the computer 201 and without worrying about errors due to manual input.

(第4の実施の形態)
図13は、第4の実施の形態に係るフローチャートである。本実施の形態では、図1に示したプリンタ101および図2に示したコンピュータ201を図10に示したようにそれぞれ有線LANを使用して通信させる場合を想定している。第3の実施の形態で説明した図12のS1201において、プリンタを有線LANで使用する方が選択された場合に、図13のフローチャートに示す処理を行なう。
(Fourth embodiment)
FIG. 13 is a flowchart according to the fourth embodiment. In the present embodiment, it is assumed that the printer 101 shown in FIG. 1 and the computer 201 shown in FIG. 2 communicate with each other using a wired LAN as shown in FIG. In S1201 of FIG. 12 described in the third embodiment, when the use of the printer in the wired LAN is selected, the processing shown in the flowchart of FIG. 13 is performed.

この場合、コンピュータ1002は既に有線LANでルータ1003に接続されていて、IPアドレスの取得または決定が済んでおり、コンピュータ1002とルータ1003間は通信可能な状態になっていることを前提とする。まずUSB経由でコンピュータ1002からプリンタ1001へプリンタの有線LANポートがリンクONになっているかどうか問い合わせる(S1301)。リンクONとはプリンタの有線LANポートと接続先とがLANケーブルが接続されていて、なおかつ電気信号をLANケーブルを通して互いにやりとりできる状態を言う。プリンタ1001の通信制御部106がこの問い合わせを解釈して有線LAN通信部104の状態を見て判断する。リンクONであればプリンタ1001はルータ1003にIPアドレスを要求し、返信されたIPアドレスを自分のIPアドレスとするか、または予め通信設定パラメータ記憶部に記憶されていたIPアドレスを読み出すなどして、IPアドレスを決定する(S1302)。リンクONであることをプリンタ1001からコンピュータ1002にUSBケーブル1010を通して返信すると、コンピュータ1002は有線LANケーブル1008、ルータ1003および有線LANケーブル1009を通してプリンタ1001を検出するためのNWPP806に従ったコマンドを送信する(S1303)。プリンタ1001およびコンピュータ1002が同じルータ1003のLAN側に接続されていて両者ともリンクONになっており、プリンタ1001とコンピュータ1002のIPアドレスがルータ1003のIPアドレスと同じネットワークアドレスになっていて、それぞれ重複しないIPアドレスになっていれば、なおかつファイヤウォールでこの検出するためのコマンドおよびその応答コマンドが防御されていなければ、プリンタ1001から上記コマンドの応答が返信されるので、コンピュータ1002からプリンタ1001が検出されるはずである。プリンタ1001が検出されれば(S1304)、コンピュータ1002に、プリンタ1001のネットワークポートを作成する(S1305)。   In this case, it is assumed that the computer 1002 has already been connected to the router 1003 via a wired LAN, has already acquired or determined an IP address, and is in a communicable state between the computer 1002 and the router 1003. First, an inquiry is made from the computer 1002 to the printer 1001 via the USB as to whether or not the wired LAN port of the printer is link ON (S1301). “Link ON” refers to a state in which the wired LAN port of the printer and the connection destination are connected to the LAN cable, and electrical signals can be exchanged with each other through the LAN cable. The communication control unit 106 of the printer 1001 interprets this inquiry and determines by looking at the state of the wired LAN communication unit 104. If the link is ON, the printer 1001 requests the router 1003 for an IP address and uses the returned IP address as its own IP address, or reads the IP address stored in the communication setting parameter storage unit in advance. The IP address is determined (S1302). When the link 100 is returned from the printer 1001 to the computer 1002 through the USB cable 1010, the computer 1002 transmits a command according to the NWPP 806 for detecting the printer 1001 through the wired LAN cable 1008, the router 1003, and the wired LAN cable 1009. (S1303). The printer 1001 and the computer 1002 are connected to the LAN side of the same router 1003 and both are linked ON. The IP address of the printer 1001 and the computer 1002 is the same network address as the IP address of the router 1003. If the IP address is non-overlapping, and if the command for detecting the response and the response command are not protected by the firewall, the printer 1001 returns a response to the command. Should be detected. If the printer 1001 is detected (S1304), a network port of the printer 1001 is created in the computer 1002 (S1305).

ここで本実施の形態では、コンピュータ1002の主制御部202は、有線LAN制御部216を介して有線LAN通信部217または有線LAN用パラメータ記憶部219からコンピュータ1002の有線LANに一意に割り当てられているMACアドレスを読み出す。そして読み出されたMACアドレスをUSB経由でプリンタ1001へ送信する(S1306)。プリンタ1001の通信制御装置106は受信したMACアドレスをアドレス記憶部109の第2の記憶領域111へ記憶する(S1307)。その後、コンピュータ1001の主制御部202は表示部204にネットワークセットアップが完了したことを表示し(S1308)、処理を終了する。   Here, in this embodiment, the main control unit 202 of the computer 1002 is uniquely assigned to the wired LAN of the computer 1002 from the wired LAN communication unit 217 or the wired LAN parameter storage unit 219 via the wired LAN control unit 216. Read the MAC address. The read MAC address is transmitted to the printer 1001 via the USB (S1306). The communication control device 106 of the printer 1001 stores the received MAC address in the second storage area 111 of the address storage unit 109 (S1307). Thereafter, the main control unit 202 of the computer 1001 displays on the display unit 204 that the network setup has been completed (S1308), and ends the process.

これによってUSBケーブル1010は取り外すことが可能となり、以後はコンピュータ1002とプリンタ1001間はLANケーブル1008、ルータ1003およびLANケーブル1009を通して通信が可能である。   As a result, the USB cable 1010 can be removed, and thereafter, the computer 1002 and the printer 1001 can communicate with each other through the LAN cable 1008, the router 1003, and the LAN cable 1009.

なお、図13におけるS1309、S1310、S1311、S1312、S1313およびS1314はそれぞれ図11に示したS1107、S1108、S1109、S1110、S1111およびS1112と同じ動作をするステップであり、第2の実施の形態の説明と同様であるため、説明を省略する。   Note that S1309, S1310, S1311, S1312, S1313, and S1314 in FIG. 13 are steps that perform the same operations as S1107, S1108, S1109, S1110, S1111, and S1112 shown in FIG. 11, respectively, in the second embodiment. Since it is the same as the description, the description is omitted.

また、図13において説明したセットアップが完了した後は、プリンタ101は、上述した図6に示したフローチャートと同様な動作を行なう。ただし、第2の実施形態と同様に、パケットは有線LAN経由で受信する。   In addition, after the setup described in FIG. 13 is completed, the printer 101 performs the same operation as the flowchart shown in FIG. However, as in the second embodiment, the packet is received via the wired LAN.

S1307でコンピュータ1002の有線LAN用MACアドレスをアドレス記憶部109の第2の記憶領域111に自動的に記憶することにより、MACアドレスによるアクセス制限が設定された場合、コンピュータ1002の有線LAN用MACは既にアクセス可能なMACアドレスとして登録されていることになり、コンピュータ1002のMACアドレスを手入力する煩雑さがなく、また手入力による誤りの心配もなくプリンタ1001と通信することが可能になる。   In S1307, when the access restriction by the MAC address is set by automatically storing the wired LAN MAC address of the computer 1002 in the second storage area 111 of the address storage unit 109, the wired LAN MAC of the computer 1002 is Since it is already registered as an accessible MAC address, it is possible to communicate with the printer 1001 without the trouble of manually inputting the MAC address of the computer 1002 and without worrying about errors due to manual input.

(第5の実施の形態)
更にプリンタ101にMACアドレスによるアクセス制限を有効に設定する際に、アクセスポイントやルータのMACアドレスを登録する必要がある場合がある。例えば、図3においてプリンタ101がルータ303のDHCP(Dynamic Host Configuration Protocol)サーバ機能によりIPアドレスを取得している場合、ルータ303のDHCPサーバ機能が定めているIPアドレスのリース時間が経過すると、それまでに取得して使用していたIPアドレスが使用できなくなる。そのため、リース時間経過前に、再度DHCPサーバ機能によってIPアドレスを要求し、応答によって得られたIPアドレスを使用することになる。ところが、プリンタ101にMACアドレスによるアクセス制限を有効に設定し、かつルータ303のMACアドレスが登録されていなければ、プリンタ101からルータ303へIPアドレスを要求してもその応答であるルータ303からのルータ303のMACアドレスのパケットはアクセス許可の対象ではない為に受信処理しないことになってしまう。その他、WPA(Wi−Fi Protected Access)(商標)に従って再度ルータ303に認証を受ける場合や暗号化のためのキーをルータ303から受信する場合にもそのためのパケットが制限されてしまい、受信処理ができなくなってしまう。そこで本実施の形態では、図5のS206または図12のS1206において接続指定されたアクセスポイントまたはルータに接続ができた場合、接続されたアクセスポイントまたはルータから送信されるパケットから得られるBSSIDを当該アクセスポイントまたはルータのMACアドレスとしてアドレス記憶部109の第2の記憶領域111へ記憶する。BSSID(Basic Service Set Identifier)とは、一般にIEEE Std 802.11b/gにおけるインフラストラクチャーモードではアクセスポイントまたはルータの無線LAN部のMACアドレスである。アクセスポイントまたはルータのBSSIDをアドレス記憶部109の第2の記憶領域111へ記憶することにより、アクセスポイントまたはルータのMACアドレスをわざわざ煩雑な操作で登録しなくとも、上述したパケットの受信が可能となり、安心してMACアドレスのアクセス制限を有効に設定することが可能となる。
(Fifth embodiment)
Further, when the access restriction by the MAC address is set to be valid in the printer 101, it may be necessary to register the MAC address of the access point or router. For example, in FIG. 3, when the printer 101 has acquired an IP address by the DHCP (Dynamic Host Configuration Protocol) server function of the router 303, if the lease time of the IP address defined by the DHCP server function of the router 303 has elapsed, The IP address that has been acquired and used until now can no longer be used. Therefore, before the lease time elapses, the IP address is requested again by the DHCP server function, and the IP address obtained by the response is used. However, if the access restriction based on the MAC address is set to be valid for the printer 101 and the MAC address of the router 303 is not registered, even if an IP address is requested from the printer 101 to the router 303, the response from the router 303 is the response. The packet with the MAC address of the router 303 is not subject to access permission, and therefore is not received. In addition, when authentication is again performed by the router 303 in accordance with WPA (Wi-Fi Protected Access) (trademark) or when a key for encryption is received from the router 303, the packet for that is limited, and reception processing is restricted. It becomes impossible. Therefore, in the present embodiment, when connection is established to the access point or router designated in S206 of FIG. 5 or S1206 of FIG. 12, the BSSID obtained from the packet transmitted from the connected access point or router is determined. The MAC address of the access point or router is stored in the second storage area 111 of the address storage unit 109. BSSID (Basic Service Set Identifier) is generally the MAC address of the wireless LAN part of the access point or router in the infrastructure mode in IEEE Std 802.11b / g. By storing the BSSID of the access point or router in the second storage area 111 of the address storage unit 109, it is possible to receive the above-mentioned packet without registering the MAC address of the access point or router by a complicated operation. Therefore, it is possible to set the MAC address access restriction effectively.

図14は第1の実施の形態、第3の実施の形態および第5の実施の形態を組み合わせて実施した場合の、図3のシステム構成でコンピュータ201に表示されるプリンタ101へのアクセス制限設定ユーティティの画面例である。   FIG. 14 shows an access restriction setting for the printer 101 displayed on the computer 201 in the system configuration of FIG. 3 when the first embodiment, the third embodiment, and the fifth embodiment are combined. It is an example of a utility screen.

同図の各部は前述した図7と同様であり、アクセス可能なMACアドレスとして、第3の実施の形態で説明したプリンタ101を無線LANで使用するようにセットアップしたコンピュータ201のMACアドレス、第5の実施の形態で説明したプリンタ101が接続されたルータ303のMACアドレス、および第1の実施の形態で説明したようにアクセスされたMACアドレス画面1406から登録されたノートパソコンのMACアドレスがそれぞれ登録されている。すなわちプリンタ101のアドレス記憶部109の第2の記憶領域111に格納されている場合の例である。ルータ303はアクセスポイントと表示されている。ルータは一般にWAN側のMACアドレスおよびLAN側のMACアドレスを持っている場合が多く、同図の場合に登録されているのはLAN側のMACアドレスである。またLAN側が有線LANと無線LANの各々のMACアドレスを有している場合は無線LANのMACアドレスになる。   7 are the same as those in FIG. 7 described above. As an accessible MAC address, the MAC address of the computer 201 set up to use the printer 101 described in the third embodiment in a wireless LAN, The MAC address of the router 303 to which the printer 101 described in the embodiment is connected and the MAC address of the notebook computer registered from the accessed MAC address screen 1406 as described in the first embodiment are registered. Has been. That is, this is an example in which the data is stored in the second storage area 111 of the address storage unit 109 of the printer 101. The router 303 is displayed as an access point. In general, a router often has a MAC address on the WAN side and a MAC address on the LAN side, and the LAN side MAC address is registered in the case of FIG. When the LAN side has the MAC addresses of the wired LAN and the wireless LAN, the MAC address of the wireless LAN is used.

本実施の形態により、プリンタを無線LANで使用するためのセットアップを行い、更にプリンタにMACアドレスによるアクセス制限を有効に設定する場合に、アクセスポイント(ルータ)の無線LANMACアドレスを登録しなくとも自動的に登録されるため、登録し忘れにより、アクセスポイントからのパケットを受信できなくなる問題を解消することが可能となる。また。わざわざわかりにくいアクセスポイントの無線LANMACアドレスを調べる必要もなくなる。   According to this embodiment, when the printer is set up for use in a wireless LAN and access restriction by MAC address is set to be valid for the printer, the wireless LAN MAC address of the access point (router) is not automatically registered. Therefore, the problem that the packet from the access point cannot be received due to forgetting to register can be solved. Also. There is no need to check the wireless LAN MAC address of an access point that is difficult to understand.

なお、本発明は、上述した以外の接続形態、すなわちプリンタ101が無線LANでルータと接続され、コンピュータ201が有線LANでルータと接続される形態でも、逆にプリンタ101が有線LANでルータと接続され、コンピュータ201が無線LANでルータと接続される形態でも、プリンタ101が無線LANまたは有線LANのどちらかでルータに接続され、複数のコンピュータがあって有線LANでルータに接続されるものと無線LANでルータに接続されるものが混在する環境であってもよい。   In the present invention, the printer 101 is connected to the router via the wired LAN, even if the printer 101 is connected to the router via the wireless LAN and the computer 201 is connected to the router via the wired LAN. Even when the computer 201 is connected to the router via a wireless LAN, the printer 101 is connected to the router via either a wireless LAN or a wired LAN, and there are a plurality of computers connected to the router via a wired LAN. An environment in which things connected to a router via a LAN are mixed may be used.

以上説明した実施の形態はインフラストラクチャーモードでもアドホックモードでも適用可能である。また無線LANがIEEE Std 802.11b、IEEE Std 802.11a、IEEE Std 802.11gまたは将来の無線LAN規格に従ったものなどいずれでも対応可能であり、またはBluetooth(商標)、HomeRF(商標)などの他の無線通信方式に準拠した無線通信手段であってもアドレスを扱うものであれば有効である。   The embodiment described above can be applied in the infrastructure mode or the ad hoc mode. In addition, the wireless LAN can support any of IEEE Std 802.11b, IEEE Std 802.11a, IEEE Std 802.11g, or those that comply with the future wireless LAN standards, or Bluetooth (trademark), HomeRF (trademark), etc. Even wireless communication means compliant with other wireless communication systems are effective as long as they can handle addresses.

プリンタ101、301はインクジェットプリンタでなく、電子写真方式などその他のプリンタであってもよい。また、スキャナ(画像読み取り)機能を併せ持つ複合機のプリンタであっても本発明は適用可能である。更にはプリンタ以外のスキャナなどのコンピュータ用周辺装置にも適用を拡大することが容易に可能になることを理解されたい。   The printers 101 and 301 may be other printers such as an electrophotographic system instead of an ink jet printer. The present invention can also be applied to a multifunction printer having a scanner (image reading) function. Furthermore, it should be understood that the application can be easily expanded to peripheral devices for computers such as scanners other than printers.

アクセス制限設定ユーティリティはコンピュータによって起動されるものとして説明したが、印刷装置または他の周辺装置が液晶表示機や操作部を有していれば、それらを利用して表示および設定されるものであってもよい。   Although it has been described that the access restriction setting utility is started by a computer, if the printing device or other peripheral device has a liquid crystal display or an operation unit, it is displayed and set by using them. May be.

以上説明したように、本発明の実施の形態によれば、印刷装置へのアクセスを許可するアドレスを登録する際にその候補となるアドレスを送信して表示し、その中からユーザに選択させることが可能になる。また、アクセス許可の候補となるアドレスは、所定のプロトコルに従って送信したものであるから、アクセスを許可するアドレスとして登録する必要がある機器のアドレスである可能性が高く、印刷装置へアクセスして欲しくない機器は含まれていない可能性が高いため、アクセスを許可するアドレスの登録操作に非常に有効である。   As described above, according to the embodiment of the present invention, when registering an address permitting access to the printing apparatus, the candidate address is transmitted and displayed, and the user can select from among the addresses. Is possible. In addition, since the address that is a candidate for access permission is transmitted according to a predetermined protocol, there is a high possibility that it is an address of a device that needs to be registered as an address that permits access, and it is desired to access the printing apparatus. Since there is a high possibility that no device is included, it is very effective for registering an address that permits access.

また、印刷装置へのアクセスを許可するアドレスを登録する際に、長くてわかりにくいアドレスを入力する必要がなくなり、誤入力がなく、非常に簡単な操作でアドレスの登録操作ができるようになるという多大な効果がある。   In addition, when registering an address that allows access to the printing device, it is not necessary to input a long and difficult-to-understand address, and there is no erroneous input, and the address registration operation can be performed with a very simple operation. It has a great effect.

さらに、アクセス制限を実行している際にも、アクセス許可の候補となるアドレスを記憶することにより、アクセスを許可するアドレスを追加する場合にも、容易な操作で誤入力の心配がない追加操作が可能となる。   In addition, even when performing access restriction, by storing addresses that are candidates for access permission, even when adding an address that permits access, an additional operation that is easy and does not involve erroneous input Is possible.

また、印刷装置のネットワーク設定を実施したホストコンピュータのアドレス情報をアクセスを許可するアドレスとして記憶することにより、アクセスを許可するアドレスを登録せずに印刷装置へのアクセス制限を有効に設定してしまったり、誤入力したアドレスを登録した状態で印刷装置へのアクセス制限を有効に設定してしまった場合でも、上記ネットワーク設定を行ったホストコンピュータからは確実にアクセスが可能となるという効果がある。これにより、どのコンピュータ装置からも印刷装置へのアクセスができなくなるという問題は回避できるようになる効果がある。   In addition, by storing the address information of the host computer that has set the network of the printing device as an address that permits access, the access restriction to the printing device can be set to be effective without registering the address that permits access. Even if the access restriction to the printing apparatus is set to be valid in a state where an erroneously entered address is registered, it is possible to reliably access the host computer with the network setting. As a result, there is an effect that it is possible to avoid the problem that the printing apparatus cannot be accessed from any computer apparatus.

更に、印刷装置を無線LANで使用する場合に、ネットワーク設定手順の中で指定されたアクセスポイントと接続した場合に、当該アクセスポイントのアドレス情報をアクセスを許可するアドレスとして記憶することにより、アクセスポイントのわかりにくい無線LANMACアドレスをわざわざ煩雑な操作で入力しなくとも、アクセスポイントからIPアドレスを取得するためのパケット、認証パケット、または暗号化のためのキー交換のようなアクセスポイントと印刷装置との間の必要なパケットの送受信が可能になる。   Further, when the printing apparatus is used in a wireless LAN, when connecting to an access point designated in the network setting procedure, the access point address information is stored as an access-permitted address. Even if you do not need to enter complicated wireless LAN MAC addresses, it is necessary to connect the access point and the printing device such as a packet for acquiring an IP address from the access point, an authentication packet, or a key exchange for encryption. Necessary packets can be sent and received between.

また、アクセス制限の設定のためのアプリケーションが起動された時に、アクセス許可の対象としているアドレスを表示することにより、ネットワーク設定を実施したホストコンピュータのアドレスやアクセスポイントのアドレスがアクセスを許可するアドレスとして表示されるため、わかり易い設定手段を提供でき、例えばネットワーク設定を行ったホストコンピュータのアドレスが何らかの理由で存在しなくなったり、アクセスポイントを変更したり、その他の理由で削除したくなった場合には、これらを削除することも容易に行える効果がある。   In addition, when the application for setting access restrictions is started, the addresses that are subject to access permission are displayed, so that the address of the host computer or the access point that has made the network settings can be accessed. Because it is displayed, it is possible to provide an easy-to-understand setting means.For example, if the address of the host computer that made the network setting does not exist for some reason, the access point is changed, or you want to delete it for other reasons These can be easily deleted.

昨今の無線通信の普及および動向をみると、セキュリティに関する課題が非常に大きい中、本発明の一つを実施しても効果は大であるが、組み合わせて実施することにより更に効果は大きくなる。   Looking at the recent spread and trend of wireless communication, while there are a great number of security issues, even if one of the present invention is implemented, the effect is great, but the effect becomes even greater when implemented in combination.

本発明の実施の形態に係るプリンタの概略ブロック図である。1 is a schematic block diagram of a printer according to an embodiment of the present invention. 本発明の実施の形態に係るコンピュータの概略ブロック図である。It is a schematic block diagram of a computer according to an embodiment of the present invention. 本発明の第1の実施の形態、第3の実施の形態および第5の実施の形態に係るシステム構成図である。It is a system configuration figure concerning a 1st embodiment of the present invention, a 3rd embodiment, and a 5th embodiment. 本発明の実施の形態に係るプリンタドライバをインストールする際のフローチャートである。6 is a flowchart when installing a printer driver according to an embodiment of the present invention. 本発明の第1の実施の形態に係るプリンタにネットワークの設定を行なう際のフローチャートである。3 is a flowchart for setting a network in the printer according to the first embodiment of the present invention. 本発明の実施の形態に係るアクセス制限を行なうアドレスの候補を収集する際のフローチャートである。It is a flowchart at the time of collecting the address candidate which performs access restriction which concerns on embodiment of this invention. 本発明の実施の形態に係るプリンタへのアクセス制限設定ユーティティの画面である。10 is a screen for a utility setting for restricting access to a printer according to an embodiment of the present invention. 本発明の実施の形態に係るコンピュータのネットワーク概略階層図である。It is a network schematic hierarchy figure of the computer concerning an embodiment of the invention. 本発明の実施の形態に係るプリンタのネットワーク概略階層図である。FIG. 2 is a schematic network hierarchy diagram of a printer according to an embodiment of the present invention. 本発明の第2の実施の形態および第4の実施の形態に係るシステム構成図である。It is a system block diagram concerning the 2nd Embodiment and 4th Embodiment of this invention. 本発明の第2の実施の形態に係るプリンタにネットワークの設定を行なう際のフローチャートである。6 is a flowchart for setting a network in a printer according to a second embodiment of the present invention. 本発明の第3の実施の形態に係るプリンタにネットワークの設定を行なう際のフローチャートである。10 is a flowchart for setting a network in a printer according to a third embodiment of the present invention. 本発明の第4の実施の形態に係るプリンタにネットワークの設定を行なう際のフローチャートである。It is a flowchart at the time of performing a network setting to the printer which concerns on the 4th Embodiment of this invention. 本発明の第1の実施の形態、第3の実施の形態および第5の実施の形態に係るプリンタへのアクセス制限設定ユーティティの画面である。It is a screen of the access restriction setting utility to the printer according to the first embodiment, the third embodiment, and the fifth embodiment of the present invention. 従来のプリンタへのアクセス制限設定ユーティティの画面である。It is a screen of a conventional printer access restriction setting utility. MACアドレス登録画面である。It is a MAC address registration screen.

符号の説明Explanation of symbols

101 プリンタ
102 無線LAN通信部
103 有線LAN通信部
104 USB通信部
105 通信設定パラメータ記憶部
106 通信制御部
107 印刷データ一時記憶部
108 印刷エンジン部
109 アドレス記憶部
111 第1記憶領域
112 第2記憶領域
DESCRIPTION OF SYMBOLS 101 Printer 102 Wireless LAN communication part 103 Wired LAN communication part 104 USB communication part 105 Communication setting parameter memory | storage part 106 Communication control part 107 Print data temporary storage part 108 Print engine part 109 Address memory part 111 1st memory area 112 2nd memory area

Claims (24)

データ処理装置において、
受信パケットに含まれるアドレス情報に基づいて、前記データ処理装置に対するアクセス制限処理を行なう制限手段と、
所定のプロトコルに従った受信パケットを識別する識別手段と、
前記識別手段による識別に応じて、受信パケットの送信元アドレス情報を記憶する記憶手段と、
前記記憶手段に記憶されたアドレス情報を、前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として設定する設定手段と、
を有することを特徴とするデータ処理装置。
In a data processing device,
Restricting means for performing access restriction processing for the data processing device based on address information included in the received packet;
An identification means for identifying a received packet according to a predetermined protocol;
Storage means for storing source address information of the received packet in accordance with the identification by the identification means;
Setting means for setting the address information stored in the storage means as address information to be referred to when access restriction processing is performed by the restriction means;
A data processing apparatus comprising:
請求項1において、
前記識別手段により前記所定のプロトコルに従ったパケットであると識別された受信パケットの送信元アドレス情報と、既に前記記憶手段に記憶されているアドレス情報とを比較する比較手段と、を有し、
前記比較手段による比較に応じて、前記記憶手段は受信パケットの送信元アドレス情報を記憶することを特徴とするデータ処理装置。
In claim 1,
Comparing means for comparing source address information of a received packet identified as a packet according to the predetermined protocol by the identifying means and address information already stored in the storage means,
In accordance with the comparison by the comparison means, the storage means stores the source address information of the received packet.
請求項2において、
前記制限手段による前記アクセス制限を有効または無効に切替える切替手段を有し、
前記記憶手段は、前記切替手段による切替えに係らず、前記比較手段による比較に応じて、受信パケットの送信元アドレス情報を記憶することを特徴とするデータ処理装置。
In claim 2,
Switching means for switching the access restriction by the restriction means to valid or invalid,
The data processing apparatus, wherein the storage unit stores source address information of a received packet according to the comparison by the comparison unit regardless of the switching by the switching unit.
請求項1において、
前記設定手段は、通信相手からの指示に基づいて前記アドレス情報を設定することを特徴とするデータ処理装置。
In claim 1,
The data processing apparatus, wherein the setting means sets the address information based on an instruction from a communication partner.
請求項1において、
前記制限手段は、受信パケットに含まれる送信元アドレス情報と、前記設定手段により設定されたアドレス情報とに応じて、受信パケットを破棄もしくは受信パケットを受け付けることを特徴とするデータ処理装置。
In claim 1,
The data processing apparatus, wherein the restricting unit discards the received packet or accepts the received packet according to the source address information included in the received packet and the address information set by the setting unit.
請求項1において、
前記記憶手段に記憶したアドレス情報を通信相手に通知する通知手段を有することを特徴とするデータ処理装置。
In claim 1,
A data processing apparatus comprising: notification means for notifying a communication partner of address information stored in the storage means.
請求項1において、
前記データ処理装置のネットワーク設定を実施した情報処理装置のアドレス情報を取得する取得手段を有し、
前記設定手段は、前記取得手段により取得した前記情報処理装置のアドレス情報を前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として設定することを特徴とするデータ処理装置。
In claim 1,
Obtaining means for obtaining address information of an information processing device that has performed network settings of the data processing device;
The data processing apparatus, wherein the setting means sets the address information of the information processing apparatus acquired by the acquisition means as address information to be referred to when performing access restriction processing by the restriction means.
請求項1において、
前記データ処理装置のネットワーク設定を行なう際に指定された中継装置のアドレス情報を取得する取得手段を有し、
前記設定手段は、前記取得手段により取得した前記中継装置のアドレス情報を前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として設定することを特徴とするデータ処理装置。
In claim 1,
Obtaining means for obtaining address information of a relay device designated when performing network setting of the data processing device;
The data processing apparatus, wherein the setting means sets the address information of the relay apparatus acquired by the acquisition means as address information to be referred to when performing access restriction processing by the restriction means.
請求項1において、
前記所定のプロトコルは、印刷データを通信するためのプロトコルであることを特徴とするデータ処理装置。
In claim 1,
The data processing apparatus, wherein the predetermined protocol is a protocol for communicating print data.
データ処理装置において、
受信パケットに含まれるアドレス情報に基づいて、前記データ処理装置に対するアクセス制限処理を行なう制限手段と、
前記データ処理装置のネットワーク設定を実施した情報処理装置のアドレス情報を取得する取得手段と、
前記取得手段により取得したアドレス情報を、前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として自動的に設定する設定手段と、
を有することを特徴とするデータ処理装置。
In a data processing device,
Restricting means for performing access restriction processing for the data processing device based on address information included in the received packet;
Obtaining means for obtaining address information of an information processing device that has performed network settings of the data processing device;
Setting means for automatically setting the address information acquired by the acquisition means as address information to be referred to when performing access restriction processing by the restriction means;
A data processing apparatus comprising:
データ処理装置において、
受信パケットに含まれるアドレス情報に基づいて、前記データ処理装置に対するアクセス制限処理を行なう制限手段と、
前記データ処理装置のネットワーク設定を行なう際に指定された中継装置のアドレス情報を取得する取得手段と、
前記取得手段により取得したアドレス情報を、前記制限手段によりアクセス制限処理を行なう際に参照するアドレス情報として自動的に設定する設定手段と、
を有することを特徴とするデータ処理装置。
In a data processing device,
Restricting means for performing access restriction processing for the data processing device based on address information included in the received packet;
Obtaining means for obtaining address information of a relay device designated when performing network setting of the data processing device;
Setting means for automatically setting the address information acquired by the acquisition means as address information to be referred to when performing access restriction processing by the restriction means;
A data processing apparatus comprising:
情報処理装置において、
受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置から、所定のプロトコルに従ったパケットを送信する通信装置のアドレス情報を受信する受信手段と、
前記受信手段により受信したアドレス情報を表示するための表示手段と、
ユーザ操作に基づいて、前記表示手段により表示した少なくとも1つのアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知手段と、
を有することを特徴とする情報処理装置。
In the information processing apparatus,
Receiving means for receiving address information of a communication device that transmits a packet according to a predetermined protocol from a data processing device that performs access restriction processing based on address information included in the received packet;
Display means for displaying address information received by the receiving means;
Notification means for notifying the data processing device of at least one address information displayed by the display means as address information to be referred to when performing the access restriction processing based on a user operation;
An information processing apparatus comprising:
請求項12において、
前記データ処理装置が前記アクセス制限処理を行なう際に参照するアドレス情報を設定するための設定手段を有し、
前記受信手段は、前記設定手段により前記設定を行なう際に、前記データ処理装置から前記アドレス情報を受信することを特徴とするデータ処理装置。
In claim 12,
Setting means for setting address information to be referred to when the data processing device performs the access restriction process;
The data processing apparatus, wherein the receiving means receives the address information from the data processing apparatus when the setting is performed by the setting means.
情報処理装置において、
受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置のネットワーク設定を行なう設定手段と、
前記設定手段により前記データ処理装置のネットワーク設定を行なう際に、前記情報処理装置のアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知手段と、
を有することを特徴とする情報処理装置。
In the information processing apparatus,
Setting means for performing network setting of a data processing device that performs access restriction processing based on address information included in a received packet;
A notification means for notifying the data processing apparatus of address information of the information processing apparatus as address information to be referred to when performing the access restriction process when performing network setting of the data processing apparatus by the setting means;
An information processing apparatus comprising:
データ処理装置においてアクセス制限を行なう際に参照するアドレス情報を設定する設定方法において、
所定のプロトコルに従った受信パケットを識別する識別工程と、
前記識別工程における識別に応じて、受信パケットの送信元アドレス情報を記憶するための記憶工程と、
前記記憶工程において記憶されたアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、
を有することを特徴とする設定方法。
In a setting method for setting address information to be referred to when performing access restriction in a data processing device,
An identification step for identifying a received packet according to a predetermined protocol;
In accordance with the identification in the identification step, a storage step for storing the source address information of the received packet;
A setting step for setting the address information stored in the storage step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet;
The setting method characterized by having.
データ処理装置においてアクセス制限を行なう際に参照するアドレス情報を設定する設定方法において、
前記データ処理装置のネットワーク設定を実施した情報処理装置のアドレス情報を取得する取得工程と、
前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、
を有することを特徴とする設定方法。
In a setting method for setting address information to be referred to when performing access restriction in a data processing device,
An acquisition step of acquiring address information of an information processing device that has performed network setting of the data processing device;
A setting step for setting the address information acquired in the acquisition step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet;
The setting method characterized by having.
データ処理装置においてアクセス制限を行なう際に参照するアドレス情報を設定する設定方法において、
前記データ処理装置のネットワーク設定を行なう際に指定された中継装置のアドレス情報を取得する取得工程と、
前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、
を有することを特徴とする設定方法。
In a setting method for setting address information to be referred to when performing access restriction in a data processing device,
An acquisition step of acquiring address information of a relay device designated when performing network setting of the data processing device;
A setting step for setting the address information acquired in the acquisition step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet;
The setting method characterized by having.
情報処理装置の制御方法において、
受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置から、所定のプロトコルに従ったパケットを送信する通信装置のアドレス情報を受信する受信工程と、
前記受信工程において受信したアドレス情報を表示するための表示工程と、
ユーザ操作に基づいて、前記表示工程において表示した少なくとも1つのアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、
を有することを特徴とする情報処理装置の制御方法。
In the control method of the information processing apparatus,
A receiving step of receiving address information of a communication device that transmits a packet according to a predetermined protocol from a data processing device that performs access restriction processing based on address information included in the received packet;
A display step for displaying the address information received in the reception step;
A notification step of notifying the data processing device of at least one address information displayed in the display step as address information to be referred to when performing the access restriction processing based on a user operation;
A method for controlling an information processing apparatus, comprising:
情報処理装置の制御方法において、
受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置のネットワーク設定を行なうための設定工程と、
前記設定工程において前記データ処理装置のネットワーク設定を行なう際に、前記情報処理装置のアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、
を有することを特徴とする情報処理装置の制御方法。
In the control method of the information processing apparatus,
A setting step for performing network setting of a data processing device that performs access restriction processing based on address information included in the received packet;
A notification step of notifying the data processing device of address information of the information processing device as address information referred to when performing the access restriction processing when performing network setting of the data processing device in the setting step;
A method for controlling an information processing apparatus, comprising:
データ処理装置において実行されるプログラムにおいて、
所定のプロトコルに従った受信パケットを識別する識別工程と、
前記識別工程における識別に応じて、受信パケットの送信元アドレス情報を記憶するための記憶工程と、
前記記憶工程において記憶されたアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、
を有することを特徴とするプログラム。
In a program executed in a data processing device,
An identification step for identifying a received packet according to a predetermined protocol;
In accordance with the identification in the identification step, a storage step for storing the source address information of the received packet;
A setting step for setting the address information stored in the storage step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet;
The program characterized by having.
データ処理装置において実行されるプログラムにおいて、
前記データ処理装置のネットワーク設定を実施した情報処理装置のアドレス情報を取得する取得工程と、
前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、
を有することを特徴とするプログラム。
In a program executed in a data processing device,
An acquisition step of acquiring address information of an information processing device that has performed network setting of the data processing device;
A setting step for setting the address information acquired in the acquisition step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet;
The program characterized by having.
データ処理装置において実行されるプログラムにおいて、
前記データ処理装置のネットワーク設定を行なう際に指定された中継装置のアドレス情報を取得する取得工程と、
前記取得工程において取得したアドレス情報を、前記データ処理装置が受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なう際に参照するアドレス情報として設定する設定工程と、
を有することを特徴とするプログラム。
In a program executed in a data processing device,
An acquisition step of acquiring address information of a relay device designated when performing network setting of the data processing device;
A setting step for setting the address information acquired in the acquisition step as address information to be referred to when the data processing device performs an access restriction process based on the address information included in the received packet;
The program characterized by having.
情報処理装置において実行されるプログラムにおいて、
受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置から、所定のプロトコルに従ったパケットを送信する通信装置のアドレス情報を受信する受信工程と、
前記受信工程において受信したアドレス情報を表示するための表示工程と、
ユーザ操作に基づいて、前記表示工程において表示した少なくとも1つのアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、
を有することを特徴とするプログラム。
In a program executed in an information processing device,
A receiving step of receiving address information of a communication device that transmits a packet according to a predetermined protocol from a data processing device that performs access restriction processing based on address information included in the received packet;
A display step for displaying the address information received in the reception step;
A notification step of notifying the data processing device of at least one address information displayed in the display step as address information to be referred to when performing the access restriction processing based on a user operation;
The program characterized by having.
情報処理装置において実行されるプログラムにおいて、
受信パケットに含まれるアドレス情報に基づいてアクセス制限処理を行なうデータ処理装置のネットワーク設定を行なうための設定工程と、
前記設定工程において前記データ処理装置のネットワーク設定を行なう際に、前記情報処理装置のアドレス情報を、前記アクセス制限処理を行なう際に参照するアドレス情報として前記データ処理装置に通知する通知工程と、
を有することを特徴とするプログラム。
In a program executed in an information processing device,
A setting step for performing network setting of a data processing device that performs access restriction processing based on address information included in the received packet;
A notification step of notifying the data processing device of address information of the information processing device as address information referred to when performing the access restriction processing when performing network setting of the data processing device in the setting step;
The program characterized by having.
JP2005011475A 2005-01-19 2005-01-19 Data processing device for restricting access based on address information, information processing device communicating with data processing device, address information setting method, information processing device control method, and program Expired - Fee Related JP5105708B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005011475A JP5105708B2 (en) 2005-01-19 2005-01-19 Data processing device for restricting access based on address information, information processing device communicating with data processing device, address information setting method, information processing device control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005011475A JP5105708B2 (en) 2005-01-19 2005-01-19 Data processing device for restricting access based on address information, information processing device communicating with data processing device, address information setting method, information processing device control method, and program

Publications (3)

Publication Number Publication Date
JP2006203422A true JP2006203422A (en) 2006-08-03
JP2006203422A5 JP2006203422A5 (en) 2008-03-06
JP5105708B2 JP5105708B2 (en) 2012-12-26

Family

ID=36961041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005011475A Expired - Fee Related JP5105708B2 (en) 2005-01-19 2005-01-19 Data processing device for restricting access based on address information, information processing device communicating with data processing device, address information setting method, information processing device control method, and program

Country Status (1)

Country Link
JP (1) JP5105708B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008105075A1 (en) * 2007-02-27 2008-09-04 Fujitsu Limited Wireless usb connector, wireless usb connection method, and wireless usb connection program
JP2010103838A (en) * 2008-10-24 2010-05-06 I-O Data Device Inc Network device and connecting method thereof
US7730191B2 (en) 2006-02-17 2010-06-01 Canon Kabushiki Kaisha Information processing apparatus requesting registration with peripheral, and peripheral determining whether to accept registration request of information processing apparatus
WO2014042332A1 (en) * 2012-09-17 2014-03-20 Samsung Electronics Co., Ltd. Image forming apparatus, driving method thereof, and computer-readable recording medium
JP2014127838A (en) * 2012-12-26 2014-07-07 Oki Data Corp Information processing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002236561A (en) * 2001-02-07 2002-08-23 Nec Corp Setting device for radio lan printer equipment
JP2003348116A (en) * 2002-05-28 2003-12-05 Hitachi Ltd Address automatic setting system for in-home network
JP2004253843A (en) * 2003-02-18 2004-09-09 Canon Inc Information processing apparatus, method of controlling the same, and control program thereof
JP2004328288A (en) * 2003-04-23 2004-11-18 Canon Inc Image pickup device, image processor, control method for them. and radio communication environment setting method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002236561A (en) * 2001-02-07 2002-08-23 Nec Corp Setting device for radio lan printer equipment
JP2003348116A (en) * 2002-05-28 2003-12-05 Hitachi Ltd Address automatic setting system for in-home network
JP2004253843A (en) * 2003-02-18 2004-09-09 Canon Inc Information processing apparatus, method of controlling the same, and control program thereof
JP2004328288A (en) * 2003-04-23 2004-11-18 Canon Inc Image pickup device, image processor, control method for them. and radio communication environment setting method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730191B2 (en) 2006-02-17 2010-06-01 Canon Kabushiki Kaisha Information processing apparatus requesting registration with peripheral, and peripheral determining whether to accept registration request of information processing apparatus
US8019918B2 (en) 2006-02-17 2011-09-13 Canon Kabushiki Kaisha Information processing apparatus requesting registration with peripheral
WO2008105075A1 (en) * 2007-02-27 2008-09-04 Fujitsu Limited Wireless usb connector, wireless usb connection method, and wireless usb connection program
JP2010103838A (en) * 2008-10-24 2010-05-06 I-O Data Device Inc Network device and connecting method thereof
WO2014042332A1 (en) * 2012-09-17 2014-03-20 Samsung Electronics Co., Ltd. Image forming apparatus, driving method thereof, and computer-readable recording medium
KR20140036628A (en) * 2012-09-17 2014-03-26 삼성전자주식회사 Image forming apparatus, driving method thereof, and computer-readable recording medium
CN103685805A (en) * 2012-09-17 2014-03-26 三星电子株式会社 Image forming apparatus, driving method thereof, and computer-readable recording medium
US9357092B2 (en) 2012-09-17 2016-05-31 Samsung Electronics Co., Ltd. Image forming apparatus, driving method thereof, and computer-readable recording medium
KR102012436B1 (en) * 2012-09-17 2019-08-20 휴렛-팩커드 디벨롭먼트 컴퍼니, 엘.피. Image forming apparatus, driving method thereof, and computer-readable recording medium
JP2014127838A (en) * 2012-12-26 2014-07-07 Oki Data Corp Information processing device

Also Published As

Publication number Publication date
JP5105708B2 (en) 2012-12-26

Similar Documents

Publication Publication Date Title
US10015206B2 (en) Client device obtaining network connection information from an image processing apparatus by capturing an image with a camera
US7158783B2 (en) Radio device communication setting method of switching from first setting information to second setting information
US7689725B2 (en) Peripheral control device and method for controlling peripheral device
JP4667175B2 (en) Information processing apparatus, information processing apparatus control method, computer program, and computer-readable storage medium
US20100142502A1 (en) Wireless Communication Device and Computer Usable Medium Therefor
JP2005286883A (en) Packet relay device and address assignment method thereof
JP2008146437A (en) Printer selection support device and system via network
JP5105708B2 (en) Data processing device for restricting access based on address information, information processing device communicating with data processing device, address information setting method, information processing device control method, and program
JP2006254301A (en) Ip address setting system
JP2007193407A (en) Printing system and printer
JP2006338358A (en) Application program
JP2005174134A (en) Program, apparatus and system for configuration processing, and network apparatus
JP4505861B2 (en) Information processing apparatus, information processing system, and program
JP6597423B2 (en) Information processing apparatus and program
JP2009124302A (en) Wireless lan system
JP4579623B2 (en) Information processing apparatus and received packet filtering method
JP2006333083A (en) Network setup system
JP2015212903A (en) Printing system, terminal device, printer, control method of terminal device, control method of printer, and program
JP2005150794A (en) Computer apparatus and computer program
JP4630671B2 (en) Information processing apparatus, communication setting method thereof, and control program
JP2005184314A (en) Wireless communication device
JP5040949B2 (en) Communication device, access point and address providing system.
JP2008159024A (en) Service disclosure suppressing device, method and program
JP2007074556A (en) Communication apparatus, communication system, and control method thereof
JP4282571B2 (en) Facsimile machine

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080118

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080118

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100608

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101019

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101203

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110308

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110601

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20110608

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20110708

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121002

R151 Written notification of patent or utility model registration

Ref document number: 5105708

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151012

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees