JP2016178686A - Communication apparatus - Google Patents

Communication apparatus Download PDF

Info

Publication number
JP2016178686A
JP2016178686A JP2016112452A JP2016112452A JP2016178686A JP 2016178686 A JP2016178686 A JP 2016178686A JP 2016112452 A JP2016112452 A JP 2016112452A JP 2016112452 A JP2016112452 A JP 2016112452A JP 2016178686 A JP2016178686 A JP 2016178686A
Authority
JP
Japan
Prior art keywords
communication device
communication
type interface
interface
state
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
JP2016112452A
Other languages
Japanese (ja)
Other versions
JP6319364B2 (en
Inventor
隆延 鈴木
Takanobu Suzuki
隆延 鈴木
義継 友松
Yoshitsugu Tomomatsu
義継 友松
大河内 肇
Hajime Okochi
肇 大河内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2016112452A priority Critical patent/JP6319364B2/en
Publication of JP2016178686A publication Critical patent/JP2016178686A/en
Application granted granted Critical
Publication of JP6319364B2 publication Critical patent/JP6319364B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To disclose a technology for enabling first and second communication apparatuses to appropriately execute radio communication of target data.SOLUTION: A printer 10 comprises: an IC tag I/F22 which functions as an IC tag compliant to an NFC standard; a wireless LAN I/F20; and a control unit 30. The IC tag I/F22 transmits an SSID "X1" to a mobile terminal 50 by using NFC connection established between the printer 10 and the mobile terminal 50. The control unit 30 receives print data from the mobile terminal 50 through the wireless LAN I/F20 by using a WFD network to which both printer 10 and mobile terminal 50 belong.SELECTED DRAWING: Figure 3

Description

本明細書では、対象データの無線通信を実行する通信機器を開示する。   The present specification discloses a communication device that performs wireless communication of target data.

特許文献1には、美術館等に設置されるゲートと、携帯通信端末と、アクセスポイントと、コンテンツサーバと、を備えるシステムが開示されている。ゲートは、リーダライタを備えており、携帯通信端末の非接触型ICチップと通信を実行して、アクセスポイントのSSIDと、コンテンツサーバのURLと、を携帯通信端末に送信する。携帯通信端末は、アクセスポイントと通信を確立して、コンテンツサーバのURLにアクセスする。これにより、携帯通信端末は、アクセスポイントを介して、コンテンツサーバからコンテンツデータを取得することができる。   Patent Document 1 discloses a system including a gate installed in a museum or the like, a mobile communication terminal, an access point, and a content server. The gate includes a reader / writer, performs communication with the non-contact IC chip of the mobile communication terminal, and transmits the SSID of the access point and the URL of the content server to the mobile communication terminal. The mobile communication terminal establishes communication with the access point and accesses the URL of the content server. Thereby, the mobile communication terminal can acquire content data from the content server via the access point.

特開2012−134932号公報JP2012-134932A

本明細書では、第1及び第2の通信機器が対象データの無線通信を適切に実行し得る技術を開示する。   In the present specification, a technique is disclosed in which the first and second communication devices can appropriately execute wireless communication of target data.

本明細書によって開示される第1の通信機器は、IC(Integrated Circuit)タグとして機能する第1種のインターフェースと、第2種のインターフェースと、制御部と、を備える。制御部は、インターフェース制御部と、データ通信部と、を備える。インターフェース制御部は、第1の通信機器及び第2の通信機器の間に確立される第1の無線接続を利用した送信動作を、第1種のインターフェースに実行させる。送信動作は、第1種のインターフェースが、第1及び第2の通信機器の両方が所属すべき第1の無線ネットワークで利用されるネットワーク識別情報を、第2の通信機器に送信する動作を含む。データ通信部は、第1種のインターフェースが送信動作を実行した後に、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを利用して、第2種のインターフェースを介して、通信対象の対象データの無線通信を第2の通信機器と実行する。   A first communication device disclosed in the present specification includes a first type interface that functions as an IC (Integrated Circuit) tag, a second type interface, and a control unit. The control unit includes an interface control unit and a data communication unit. The interface control unit causes the first type interface to perform a transmission operation using the first wireless connection established between the first communication device and the second communication device. The transmission operation includes an operation in which the first type interface transmits network identification information used in the first wireless network to which both the first and second communication devices belong to the second communication device. . After the first type interface executes the transmission operation, the data communication unit uses the first wireless network to which both the first and second communication devices belong, and passes through the second type interface. Then, wireless communication of the target data to be communicated is executed with the second communication device.

上記の構成によると、ICタグとして機能する第1種のインターフェースは、第1の無線接続を利用して、第1及び第2の通信機器の両方が所属すべき第1の無線ネットワークで利用されるネットワーク識別情報を第2の通信機器に送信する。このように、ネットワーク識別情報が第2の通信機器に送信されるので、第1の通信機器は、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを利用して、第2種のインターフェースを介して、対象データの無線通信を第2の通信機器と適切に実行し得る。特に、第1種のインターフェースがICタグとして機能するインターフェースであるので、第1の通信機器は、比較的に簡易な構成を利用して、第2の通信機器と対象データの無線通信を実行し得る。   According to the above configuration, the first type interface that functions as an IC tag is used in the first wireless network to which both the first and second communication devices belong, using the first wireless connection. The network identification information is transmitted to the second communication device. Thus, since the network identification information is transmitted to the second communication device, the first communication device uses the first wireless network to which both the first and second communication devices belong. The wireless communication of the target data can be appropriately executed with the second communication device via the second type interface. In particular, since the first type interface is an interface that functions as an IC tag, the first communication device performs wireless communication of the target data with the second communication device using a relatively simple configuration. obtain.

第1の通信機器は、さらに、第2の通信機器から、第2種のインターフェースを介して、ネットワーク識別情報を含む特定の信号を受信する場合に、第2種のインターフェースを介して、第1及び第2の通信機器の間に第2の無線接続を確立して、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを形成する形成部を備えていてもよ
い。この構成によると、第1の通信機器は、ネットワーク識別情報を第2の通信機器に送信した結果として、第2の通信機器から当該ネットワーク識別情報を含む特定の信号を受信する場合に、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを適切に形成することができる。このために、第1の通信機器は、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを利用して、対象データの無線通信を第2の通信機器と適切に実行することができる。
The first communication device further receives the first signal from the second communication device via the second type interface when receiving a specific signal including the network identification information via the second type interface. And a second wireless connection may be established between the first communication device and the second communication device to form a first wireless network to which both the first and second communication devices belong. . According to this configuration, when the first communication device receives a specific signal including the network identification information from the second communication device as a result of transmitting the network identification information to the second communication device, The first wireless network to which both the second communication device and the second communication device belong can be appropriately formed. For this purpose, the first communication device uses the first wireless network to which both the first and second communication devices belong to appropriately perform wireless communication of the target data with the second communication device. Can be executed.

第1の通信機器は、無線ネットワークの親局として機能する親局状態と、無線ネットワークに所属していない状態である無所属状態と、を含む複数個の状態のうちのいずれかの状態で、選択的に動作してもよい。制御部は、さらに、第1の通信機器の状態が無所属状態である間に第1の無線接続が確立される第1の場合に、第1の通信機器の状態を無所属状態から親局状態に移行させて、第1の通信機器のみが所属している第1の無線ネットワークを形成する状態移行部を備えていてもよい。形成部は、第1の通信機器のみが所属している第1の無線ネットワークが形成された後に、特定の信号を受信する場合に、第2の無線接続を確立して、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを形成してもよい。この構成によると、第1の通信機器は、第1の通信機器の状態が無所属状態である間に第1の無線接続が確立される第1の場合に、第1の通信機器のみが所属している第1の無線ネットワークを形成し、その後、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを形成する。第1の通信機器は、第1及び第2の通信機器の両方が所属している第1の無線ネットワークを適切に形成することができる。   The first communication device is selected in one of a plurality of states including a parent station state that functions as a parent station of the wireless network and an unaffiliated state that does not belong to the wireless network. May operate automatically. The control unit further changes the state of the first communication device from the unaffiliated state to the master station state in the first case where the first wireless connection is established while the state of the first communication device is the unaffiliated state. You may provide the state transfer part which makes it transfer and forms the 1st wireless network to which only the 1st communication apparatus belongs. The forming unit establishes a second wireless connection when receiving a specific signal after the first wireless network to which only the first communication device belongs is formed, and the first and second A first wireless network to which both of the communication devices belong may be formed. According to this configuration, only the first communication device belongs to the first communication device in the first case where the first wireless connection is established while the state of the first communication device is the unaffiliated state. The first wireless network is formed, and then the first wireless network to which both the first and second communication devices belong is formed. The first communication device can appropriately form a first wireless network to which both the first and second communication devices belong.

第1種のインターフェースは、第1の無線接続が確立される場合に、特定の通知を制御部に供給してもよい。インターフェース制御部は、第1の場合において、第1種のインターフェースから特定の通知が取得される場合に、ネットワーク識別情報を生成して、ネットワーク識別情報を第1種のインターフェースに供給してもよい。この構成によると、第1の無線接続が確立される場合に、第1種のインターフェースから制御部に特定の通知が供給されるので、制御部は、第1の無線接続が確立されたことを知ることができる。その結果、ネットワーク識別情報の生成、及び、第1種のインターフェースへのネットワーク識別情報の供給、が実行される。このために、第1種のインターフェースは、第1の無線接続が確立される場合に、ネットワーク識別情報を第2の通信機器に適切に送信することができる。   The first type interface may supply a specific notification to the control unit when the first wireless connection is established. In the first case, the interface control unit may generate network identification information and supply the network identification information to the first type interface when a specific notification is acquired from the first type interface. . According to this configuration, when the first wireless connection is established, since the specific notification is supplied from the first type interface to the control unit, the control unit confirms that the first wireless connection has been established. I can know. As a result, generation of network identification information and supply of network identification information to the first type interface are executed. For this reason, the first type interface can appropriately transmit the network identification information to the second communication device when the first wireless connection is established.

状態移行部は、第1の場合に、ネットワーク識別情報が生成された後に、第1の通信機器の状態を無所属状態から親局状態に移行させてもよい。   In the first case, the state transition unit may cause the state of the first communication device to transition from the unaffiliated state to the master station state after the network identification information is generated.

インターフェース制御部は、第1の通信機器が親局として機能する第2の無線ネットワークが消滅する際に、第2の無線ネットワークの後に形成されるべき第1の無線ネットワークで利用されるネットワーク識別情報を生成して、ネットワーク識別情報を第1種のインターフェースに供給してもよい。この構成によると、第2の無線ネットワークが消滅する際に、ネットワーク識別情報の生成、及び、第1種のインターフェースへのネットワーク識別情報の供給、が実行される。このために、第1種のインターフェースは、第1の無線接続が確立される場合に、ネットワーク識別情報を第2の通信機器に適切に送信することができる。   When the second wireless network in which the first communication device functions as a master station disappears, the interface control unit uses network identification information used in the first wireless network to be formed after the second wireless network. And the network identification information may be supplied to the first type interface. According to this configuration, when the second wireless network disappears, generation of network identification information and supply of network identification information to the first type interface are executed. For this reason, the first type interface can appropriately transmit the network identification information to the second communication device when the first wireless connection is established.

第1種のインターフェースは、第1の無線接続が確立される場合に、特定の通知を制御部に供給してもよい。状態移行部は、第1の場合において、第1種のインターフェースから特定の通知が取得される場合に、第1の通信機器の状態を無所属状態から親局状態に移行させてもよい。この構成によると、第1の無線接続が確立される場合に、第1種のインターフェースから制御部に特定の通知が供給されるので、制御部は、第1の無線接続が確立されたことを知ることができる。その結果、無所属状態から親局状態への移行が実行さ
れる。
The first type interface may supply a specific notification to the control unit when the first wireless connection is established. In the first case, the state transition unit may cause the state of the first communication device to transition from the unaffiliated state to the master station state when a specific notification is acquired from the first type interface. According to this configuration, when the first wireless connection is established, since the specific notification is supplied from the first type interface to the control unit, the control unit confirms that the first wireless connection has been established. I can know. As a result, the transition from the unaffiliated state to the master station state is executed.

第1種のインターフェースは、第1の無線接続が確立される場合に、特定の通知を制御部に供給してもよい。インターフェース制御部は、第1種のインターフェースから特定の通知が取得される場合に、ネットワーク識別情報を第1種のインターフェースに供給してもよい。この構成によると、第1種のインターフェースから制御部に特定の通知が供給されるので、制御部は、第1の無線接続が確立されたことを知ることができる。従って、
インターフェース制御部は、適切なタイミングで、ネットワーク識別情報を第1種のインターフェースに供給することができる。
The first type interface may supply a specific notification to the control unit when the first wireless connection is established. The interface control unit may supply network identification information to the first type interface when a specific notification is acquired from the first type interface. According to this configuration, since the specific notification is supplied from the first type interface to the control unit, the control unit can know that the first wireless connection has been established. Therefore,
The interface control unit can supply the network identification information to the first type interface at an appropriate timing.

インターフェース制御部は、さらに、第1種のインターフェースの動作モードが第1のモードである状態で、第1の無線接続が確立されるように、第1種のインターフェースの動作モードを制御してもよい。第1のモードは、第1種のインターフェースが、第1の通信機器の外部から読み出しコマンドを受信する場合に、読み出しコマンドに応じて、第1の通信機器の外部に情報を送信する動作を実行するモードであり、かつ、第1種のインターフェースが、第1の通信機器の外部から書き込みコマンドを受信しても、書き込みコマンドに応じた動作を実行しないモードであってもよい。この構成によると、不要な情報が第1の通信機器に書き込まれることを抑制し得る。   The interface control unit may further control the operation mode of the first type interface so that the first wireless connection is established in a state where the operation mode of the first type interface is the first mode. Good. In the first mode, when the first type interface receives a read command from the outside of the first communication device, an operation of transmitting information to the outside of the first communication device is executed according to the read command. And a mode in which the first type interface does not execute an operation corresponding to the write command even when it receives a write command from the outside of the first communication device. According to this configuration, it is possible to suppress unnecessary information from being written in the first communication device.

第1種のインターフェースは、NFC(Near Field Communication)規格のICタグとして機能してもよい。インターフェース制御部は、NFC規格の第1の無線接続を利用した送信動作を、第1種のインターフェースに実行させてもよい。この構成によると、第1種のインターフェースが、NFC規格のICタグとして機能するインターフェースであるので、第1の通信機器は、比較的に簡易な構成を利用して、第2の通信機器と対象データの無線通信を実行し得る。   The first type of interface may function as an NFC (Near Field Communication) standard IC tag. The interface control unit may cause the first type interface to execute a transmission operation using the first wireless connection of the NFC standard. According to this configuration, since the first type interface is an interface that functions as an NFC standard IC tag, the first communication device uses the relatively simple configuration and the second communication device. Wireless communication of data may be performed.

第2種のインターフェースは、NFC規格とは異なる特定の規格に従って、無線通信を実行するためのインターフェースであってもよい。インターフェース制御部は、第2の通信機器が、特定の規格に従って対象データの無線通信を実行するためのアプリケーションを備える場合でも、アプリケーションを備えない場合でも、第1の無線接続が確立される場合に、第1種のインターフェースに送信動作を実行させてもよい。データ通信部は、第2の通信機器がアプリケーションを備える場合に、対象データの無線通信を第2の通信機器と実行し、第2の通信機器がアプリケーションを備えない場合に、対象データの無線通信を第2の通信機器と実行しなくてもよい。この構成によると、第1種のインターフェースは、第2の通信機器がアプリケーションを備えるのか否かに関わらず、ネットワーク識別情報を第2の通信機器に送信する。ただし、第1の通信機器は、第2の通信機器がアプリケーションを備えるのか否かに応じて、対象データの無線通信を第2の通信機器と実行するのか否かを適切に変えることができる。   The second type interface may be an interface for performing wireless communication in accordance with a specific standard different from the NFC standard. The interface control unit is configured when the first wireless connection is established even when the second communication device includes an application for performing wireless communication of the target data according to a specific standard or not. The transmission operation may be executed by the first type interface. The data communication unit executes wireless communication of target data with the second communication device when the second communication device includes an application, and wireless communication of the target data when the second communication device does not include the application. May not be executed with the second communication device. According to this configuration, the first type interface transmits network identification information to the second communication device regardless of whether or not the second communication device includes an application. However, the first communication device can appropriately change whether or not to perform wireless communication of the target data with the second communication device, depending on whether or not the second communication device includes an application.

制御部は、さらに、第1の通信機器の状態が親局状態である間に第1の無線接続が確立される第2の場合であって、第1の通信機器が親局として機能する第1の無線ネットワークが存在する第2の場合に、第1の無線ネットワークに所属している子局状態の機器である子局機器の数が、予め決められている上限値に一致するのか否かを判断する判断部を備えていてもよい。第2の場合において、子局機器の数が上限値に一致しないと判断される場合に、インターフェース制御部は、第1種のインターフェースに送信動作を実行させ、データ通信部は、第1の無線ネットワークを利用して、第2種のインターフェースを介して、対象データの無線通信を第2の通信機器と実行してもよい。第2の場合において、子局機器の数が上限値に一致すると判断される場合に、インターフェース制御部は、第1種のインターフェースに送信動作を実行させず、データ通信部は、第1の無線接続を利用して、第1種のインターフェースを介して、対象データの無線通信を第2の通信機器と実行
してもよい。この構成によると、第1の通信機器は、第1の通信機器の状態が親局状態である間に第1の無線接続が確立される第2の場合に、子局機器の数が上限値に一致するのか否かに応じて、第1種又は第2種のインターフェースを介して、対象データの無線通信を第2の通信機器と適切に実行することができる。
The control unit further includes a second case where the first wireless connection is established while the state of the first communication device is the parent station state, and the first communication device functions as the parent station. In the second case where one wireless network exists, whether or not the number of slave station devices that are slave station devices belonging to the first wireless network matches a predetermined upper limit value. A determination unit for determining In the second case, when it is determined that the number of slave station devices does not match the upper limit value, the interface control unit causes the first type interface to perform a transmission operation, and the data communication unit performs the first wireless communication. Wireless communication of the target data may be performed with the second communication device via the second type interface using the network. In the second case, when it is determined that the number of slave station devices matches the upper limit value, the interface control unit does not cause the first type interface to perform the transmission operation, and the data communication unit performs the first wireless communication. Using the connection, wireless communication of target data may be executed with the second communication device via the first type interface. According to this configuration, in the second case where the first wireless connection is established while the state of the first communication device is the master station state, the first communication device has an upper limit value for the number of slave station devices. The wireless communication of the target data can be appropriately executed with the second communication device via the first type or second type interface.

複数個の状態は、さらに、第1の通信機器が無線ネットワークの子局として機能する子局状態を含んでいてもよい。第1の通信機器の状態が子局状態である間に第1の無線接続が確立される第3の場合に、インターフェース制御部は、第1種のインターフェースに送信動作を実行させず、データ通信部は、第1の無線接続を利用して、第1種のインターフェースを介して、対象データの無線通信を第2の通信機器と実行してもよい。この構成によると、第1の通信機器は、第1の通信機器の状態が子局状態である間に第1の無線接続が確立される第3の場合に、第1種のインターフェースを介して、対象データの無線通信を第2の通信機器と適切に実行することができる。   The plurality of states may further include a slave station state in which the first communication device functions as a slave station of the wireless network. In the third case where the first wireless connection is established while the state of the first communication device is the slave station state, the interface control unit does not execute the transmission operation on the first type interface, and performs data communication. The unit may perform wireless communication of the target data with the second communication device via the first type interface using the first wireless connection. According to this configuration, in the third case where the first wireless connection is established while the state of the first communication device is the slave station state, the first communication device is connected via the first type interface. The wireless communication of the target data can be appropriately executed with the second communication device.

インターフェース制御部は、さらに、第1種のインターフェースの動作モードが第1のモードである状態で、第1の無線接続が確立されるように、第1種のインターフェースの動作モードを制御してもよい。第1のモードは、第1種のインターフェースが、第1の通信機器の外部から読み出しコマンドを受信する場合に、読み出しコマンドに応じて、第1の通信機器の外部に情報を送信する動作を実行するモードであり、かつ、第1種のインターフェースが、第1の通信機器の外部から書き込みコマンドを受信しても、書き込みコマンドに応じた動作を実行しないモードであってもよい。インターフェース制御部は、さらに、第1種のインターフェースに送信動作を実行させない場合に、第1種のインターフェースの動作モードを第1のモードから第2のモードに変更してもよい。第2のモードは、第1の通信機器の外部から書き込みコマンドを受信する場合に、書き込みコマンドに応じて、第1の通信機器の外部から情報を受信して、情報を制御部に供給するモードであってもよい。データ通信部は、第1種のインターフェースの動作モードが第2のモードである状態で、第1の無線接続を利用して、第1種のインターフェースを介して、第2の通信機器から対象データを受信してもよい。この構成によると、不要な情報が第1の通信機器に書き込まれることを抑制し得る。また、第1種のインターフェースが送信動作を実行しない場合に、第1種のインターフェースの動作モードが第1のモードから第2のモードに変更されるので、第1の通信機器は、第1種のインターフェースを介して、第2の通信機器から対象データを適切に受信することができる。   The interface control unit may further control the operation mode of the first type interface so that the first wireless connection is established in a state where the operation mode of the first type interface is the first mode. Good. In the first mode, when the first type interface receives a read command from the outside of the first communication device, an operation of transmitting information to the outside of the first communication device is executed according to the read command. And a mode in which the first type interface does not execute an operation corresponding to the write command even when it receives a write command from the outside of the first communication device. Furthermore, the interface control unit may change the operation mode of the first type interface from the first mode to the second mode when the transmission operation is not performed by the first type interface. In the second mode, when a write command is received from the outside of the first communication device, information is received from the outside of the first communication device and information is supplied to the control unit in response to the write command. It may be. The data communication unit uses the first wireless connection in a state where the operation mode of the first type interface is the second mode, and transmits the target data from the second communication device via the first type interface. May be received. According to this configuration, it is possible to suppress unnecessary information from being written in the first communication device. In addition, when the first type interface does not execute the transmission operation, the operation mode of the first type interface is changed from the first mode to the second mode. The target data can be appropriately received from the second communication device via the interface.

第2種のインターフェースを介した無線通信の通信速度は、第1種のインターフェースを介した無線通信の通信速度よりも速くてもよい。この構成によると、第1の通信機器は、第2種のインターフェースを介して、対象データの無線通信を迅速に実行することができる。   The communication speed of wireless communication via the second type interface may be faster than the communication speed of wireless communication via the first type interface. According to this configuration, the first communication device can quickly perform wireless communication of the target data via the second type interface.

データ通信部は、第1の無線ネットワークを利用して、第2種のインターフェースを介して、第2の通信機器から対象データを受信してもよい。第1の通信機器は、さらに、受信済みの対象データによって表わされる画像の印刷を実行する印刷機構を備えていてもよい。この構成によると、第1の通信機器は、第2の通信機器から対象データを受信して、画像の印刷を適切に実行することができる。   The data communication unit may receive the target data from the second communication device through the second type interface using the first wireless network. The first communication device may further include a printing mechanism that executes printing of an image represented by the received target data. According to this configuration, the first communication device can receive the target data from the second communication device and appropriately execute image printing.

上記の第1及び/又は第2の通信機器を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の第1及び第2の通信機器を備える通信システムも、新規で有用である。   A control method, a computer program, and a computer-readable recording medium storing the computer program for realizing the first and / or second communication device are also novel and useful. A communication system including the first and second communication devices is also novel and useful.

通信システムの構成を示す。1 shows a configuration of a communication system. 第1実施例のプリンタのCPUの処理のフローチャートを示す。2 is a flowchart of processing performed by a CPU of the printer according to the first embodiment. 第1実施例のプリンタ及び携帯端末の動作を表わすシーケンス図を示す。FIG. 3 is a sequence diagram illustrating operations of the printer and the mobile terminal according to the first embodiment. 第2実施例のプリンタのCPUの処理のフローチャートを示す。6 is a flowchart of processing performed by a CPU of a printer according to a second embodiment. 第2実施例のプリンタ及び携帯端末の動作を表わすシーケンス図を示す。The sequence diagram showing operation | movement of the printer of 2nd Example and a portable terminal is shown. 図5の続きのシーケンス図を示す。FIG. 6 shows a sequence diagram continued from FIG. 5. 第3実施例のプリンタのCPUの処理のフローチャートを示す。7 is a flowchart of processing performed by a CPU of a printer according to a third embodiment. 第3実施例のプリンタ及び携帯端末の動作を表わすシーケンス図を示す。FIG. 9 is a sequence diagram illustrating operations of a printer and a mobile terminal according to a third embodiment.

(第1実施例)
(通信システム2の構成)
図1に示されるように、通信システム2は、プリンタ10と、携帯端末50と、を備える。図1では、PC(Personal Computerの略)110が示されているが、PC110は
、後述の第3実施例で利用される。
(First embodiment)
(Configuration of communication system 2)
As shown in FIG. 1, the communication system 2 includes a printer 10 and a mobile terminal 50. In FIG. 1, a PC (abbreviation of personal computer) 110 is shown, but the PC 110 is used in a third embodiment to be described later.

(プリンタ10の構成)
プリンタ10は、印刷機能を実行可能な周辺機器(即ちPC110等の周辺機器)である。プリンタ10は、操作パネル12と、表示機構14と、印刷機構16と、無線LAN(LocalArea Networkの略)インターフェース20と、IC(Integrated Circuitの略)
タグインターフェース22と、制御部30と、を備える。各部12〜30は、バス線(符号省略)に接続されている。以下では、インターフェースのことを「I/F」と記載する。
(Configuration of Printer 10)
The printer 10 is a peripheral device that can execute a printing function (that is, a peripheral device such as the PC 110). The printer 10 includes an operation panel 12, a display mechanism 14, a printing mechanism 16, a wireless LAN (abbreviation for Local Area Network) interface 20, and an IC (abbreviation for Integrated Circuit).
A tag interface 22 and a control unit 30 are provided. Each part 12-30 is connected to a bus line (reference number omitted). Hereinafter, the interface is described as “I / F”.

操作パネル12は、複数のキーを備える。ユーザは、操作パネル12を操作することによって、様々な指示をプリンタ10に与えることができる。表示機構14は、様々な情報を表示するためのディスプレイである。印刷機構16は、インクジェット方式、レーザ方式等の印刷機構である。   The operation panel 12 includes a plurality of keys. The user can give various instructions to the printer 10 by operating the operation panel 12. The display mechanism 14 is a display for displaying various information. The printing mechanism 16 is a printing mechanism such as an inkjet method or a laser method.

無線LANI/F20は、WFD(Wi-Fi Directの略)方式に従った無線通信(以下では「WFD通信」と呼ぶ)を実行するためのI/Fである。WFD方式は、Wi−Fi Allianceによって作成された規格書「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」に記述されている無線通信方式である。WFD方式は、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び
、それに準ずる規格(例えば、802.11a,11b,11g,11n等)に従って、無線通信を実行するための無線通信方式である。
The wireless LAN I / F 20 is an I / F for executing wireless communication (hereinafter referred to as “WFD communication”) according to the WFD (abbreviation of Wi-Fi Direct) method. The WFD method is a wireless communication method described in a standard document “Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1” created by Wi-Fi Alliance. The WFD system is, for example, wireless in accordance with the 802.11 standard of IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) and standards conforming thereto (for example, 802.11a, 11b, 11g, 11n, etc.). It is a wireless communication system for executing communication.

以下では、WFD方式に従ったWFD通信を実行可能な機器(例えばプリンタ10)のことを、「WFD対応機器」と呼ぶ。上記のWFDの規格書では、WFD対応機器の状態として、Group Owner状態(以下では「G/O状態」と呼ぶ)、クライアント状態(以下では「CL状態」と呼ぶ)、及び、デバイス状態の3つの状態が定義されている。WFD対応機器は、通常、上記の3つの状態のうちの1つの状態で選択的に動作可能である。   Hereinafter, a device (for example, the printer 10) capable of executing WFD communication in accordance with the WFD method is referred to as a “WFD-compatible device”. In the WFD standard document, the states of the WFD-compatible device are group owner state (hereinafter referred to as “G / O state”), client state (hereinafter referred to as “CL state”), and device state. Two states are defined. A WFD-compatible device is normally operable selectively in one of the above three states.

デバイス状態の一対のWFD対応機器が無線ネットワークを新たに形成すべき際に、当該一対のWFD対応機器は、通常、G/Oネゴシエーションと呼ばれる無線通信を実行する。G/Oネゴシエーションでは、当該一対のWFD対応機器のうちの一方は、G/O状態(即ちG/O機器)になることを決定し、他方は、CL状態(即ちCL機器)になることを決定する。その後、当該一対のWFD対応機器は、接続を確立して、無線ネットワー
ク(即ちWFDネットワーク)を形成する。なお、後述の図3等では、WFDネットワークのことを「WFDNW」と記載する。
When a pair of WFD-compatible devices in a device state should newly form a wireless network, the pair of WFD-compatible devices usually perform wireless communication called G / O negotiation. In the G / O negotiation, one of the pair of WFD compatible devices is determined to be in the G / O state (that is, the G / O device), and the other is determined to be in the CL state (that is, the CL device). decide. Thereafter, the pair of WFD-compatible devices establish a connection and form a wireless network (that is, a WFD network). In FIG. 3 and the like to be described later, the WFD network is described as “WFDNW”.

G/OネゴシエーションによってWFDネットワークが新たに形成された段階では、1個のG/O機器及び1個のCL機器のみがWFDネットワークに所属している。ただし、G/O機器は、他の機器と接続を確立して、当該他の機器をCL機器としてWFDネットワークに新たに参加させることができる。この場合、2個以上のCL機器がWFDネットワークに所属している状態になる。即ち、WFDネットワークでは、1個のG/O機器と1個以上のCL機器とが存在し得る。   At the stage where a WFD network is newly formed by G / O negotiation, only one G / O device and one CL device belong to the WFD network. However, the G / O device can establish a connection with another device, and can newly join the other device as a CL device to the WFD network. In this case, two or more CL devices belong to the WFD network. That is, in the WFD network, there can be one G / O device and one or more CL devices.

G/O機器は、1個以上のCL機器を管理する。具体的に言うと、G/O機器は、1個以上のCL機器のMACアドレスを、G/O機器のメモリ内の管理リストに登録する。また、G/O機器は、CL機器がWFDネットワークから離脱すると、CL機器のMACアドレスを管理リストから削除する。なお、G/O機器が管理可能なCL機器の数の上限値(即ち、管理リストの登録可能なCL機器のMACアドレスの数の上限値)は、G/O機器によって予め決められている。一般的に言うと、上記の上限値は、1以上の整数であればよい。   The G / O device manages one or more CL devices. Specifically, the G / O device registers the MAC addresses of one or more CL devices in the management list in the memory of the G / O device. Further, when the CL device leaves the WFD network, the G / O device deletes the MAC address of the CL device from the management list. The upper limit value of the number of CL devices that can be managed by the G / O device (that is, the upper limit value of the number of MAC addresses of CL devices that can be registered in the management list) is determined in advance by the G / O device. Generally speaking, the upper limit value may be an integer of 1 or more.

G/O機器は、他機器を介さずに、管理リストに登録されているCL機器と対象データの無線通信を実行可能である。対象データは、OSI参照モデルのネットワーク層の情報、及び、ネットワーク層よりも上位層(例えばアプリケーション層)の情報を含むデータであり、例えば、印刷データ、スキャンデータ等を含む。また、G/O機器は、複数個のCL機器の間の対象データの無線通信を中継可能である。換言すると、一対のCL機器は、G/O機器を介して、対象データの無線通信を実行可能である。   The G / O device can execute wireless communication of the target data with the CL device registered in the management list without using other devices. The target data is data including information on the network layer of the OSI reference model and information on an upper layer (for example, application layer) than the network layer, and includes, for example, print data, scan data, and the like. In addition, the G / O device can relay wireless communication of target data between a plurality of CL devices. In other words, the pair of CL devices can perform wireless communication of the target data via the G / O device.

上述したように、WFDネットワークでは、対象データの送信元のWFD対応機器と、対象データの送信先のWFD対応機器と、の間で、これらのWFD対応機器とは別体に構成されているアクセスポイントを介さずに、対象データの無線通信を実行することができる。即ち、WFD通信、WFD方式は、それぞれ、アクセスポイントを介さない無線通信、アクセスポイントが利用されない無線通信方式であると言える。   As described above, in the WFD network, access between the WFD-compatible device that is the transmission source of the target data and the WFD-compatible device that is the transmission destination of the target data is configured separately from these WFD-compatible devices. Wireless communication of target data can be performed without going through a point. That is, it can be said that the WFD communication and the WFD method are wireless communication that does not use an access point and a wireless communication method that does not use an access point, respectively.

G/O機器は、対象データの無線通信をデバイス状態のWFD対応機器(即ちデバイス機器)と実行不可能であるが、WFD方式の接続用データの無線通信をデバイス機器と実行可能である。即ち、G/O機器は、WFD方式の接続用データの無線通信をデバイス機器と実行することによって、デバイス機器と接続を確立して、デバイス機器をWFDネットワークに参加させることができる。換言すると、デバイス機器は、WFD方式の接続用データの無線通信をG/O機器と実行することによって、G/O機器と接続を確立して、WFDネットワークに参加することができる。この場合、デバイス機器は、デバイス状態からCL状態に移行する。WFD方式の接続用データは、OSI参照モデルのネットワーク層よりも下位層(例えば、物理層、データリンク層)の情報を含むデータ(即ち、ネットワーク層の情報を含まないデータ)であり、例えば、Probe Request信号、Probe Response信号、Provision Discovery Request信号、Provision Discovery Response信号、Association Request信号、Association Response信号、Authentication Request信号、Authentication Response信号、4-Way Handshake信号等を含む。   The G / O device cannot execute wireless communication of target data with a WFD compatible device (that is, a device device) in a device state, but can execute wireless communication of WFD connection data with a device device. That is, the G / O device can establish a connection with the device device by executing wireless communication of WFD connection data with the device device, and can join the device device to the WFD network. In other words, the device device can establish a connection with the G / O device and participate in the WFD network by performing wireless communication of WFD connection data with the G / O device. In this case, the device device shifts from the device state to the CL state. The WFD connection data is data including information of lower layers (for example, physical layer and data link layer) than the network layer of the OSI reference model (that is, data not including information of the network layer). Includes a Probe Request signal, Probe Response signal, Provision Discovery Request signal, Provision Discovery Response signal, Association Request signal, Association Response signal, Authentication Request signal, Authentication Response signal, 4-Way Handshake signal, and the like.

なお、G/O機器は、WFD方式に従ったWFD通信を実行不可能な機器(以下では「レガシー機器」と呼ぶ)と接続を確立して、レガシー機器をWFDネットワークに参加させることもできる。G/O機器は、レガシー機器と接続を確立する場合に、レガシー機器のMACアドレスを管理リストに記述する。これにより、レガシー機器は、WFDネットワークに参加することができる。レガシー機器は、3つの状態(即ち、G/O状態、CL
状態、デバイス状態)のいずれかの状態で選択的に動作するものではないが、WFDネットワークに所属している間には、CL機器と同様の状態で動作する。
Note that the G / O device can also establish a connection with a device that cannot execute WFD communication according to the WFD scheme (hereinafter referred to as “legacy device”), and allow the legacy device to participate in the WFD network. When establishing a connection with a legacy device, the G / O device describes the MAC address of the legacy device in the management list. Accordingly, the legacy device can participate in the WFD network. Legacy devices have three states (ie G / O state, CL
The device does not selectively operate in any one of the state and the device state), but operates in the same state as the CL device while belonging to the WFD network.

プリンタ10は、WFD対応機器であるが、本実施例では、CL状態で動作することができない。また、プリンタ10は、他のWFD対応機器とG/Oネゴシエーションを実行するためのプログラムを搭載していない。即ち、プリンタ10は、G/O状態及びデバイス状態の2つの状態のうちの1つの状態で選択的に動作可能である。   The printer 10 is a WFD compatible device, but cannot operate in the CL state in this embodiment. The printer 10 does not have a program for executing G / O negotiation with other WFD compatible devices. That is, the printer 10 can selectively operate in one of the two states of the G / O state and the device state.

ICタグI/F22は、いわゆる近距離無線通信のためのNFC(Near Field Communicationの略)方式に従った無線通信(以下では「NFC通信」と呼ぶ)を実行するためのI/Fである。NFC方式は、例えば、ISO/IEC21481又は18092の国際標準規格に基づく無線通信方式である。NFC通信を実行するためのI/Fの種類として、NFCフォーラムデバイス(NFC Forum Device)と呼ばれるI/Fと、NFCフォーラムタグ(NFC Forum Tag)と呼ばれるI/Fと、が知られている。ICタグI/F22は
、NFCフォーラムタグであり、NFC規格(即ちISO/IEC21481又は18092)のICタグとして機能する。
The IC tag I / F 22 is an I / F for performing wireless communication (hereinafter referred to as “NFC communication”) in accordance with an NFC (Near Field Communication) method for so-called short-range wireless communication. The NFC scheme is a wireless communication scheme based on, for example, ISO / IEC 21481 or 18092 international standards. As types of I / F for executing NFC communication, an I / F called an NFC Forum Device and an I / F called an NFC Forum Tag are known. The IC tag I / F 22 is an NFC forum tag and functions as an IC tag of the NFC standard (that is, ISO / IEC21481 or 18092).

NFCフォーラムデバイスは、P2P(Peer To Peerの略)モード、R/W(Reader/Writerの略)モード、及び、CE(Card Emulationの略)モードのうちのいずれかのモー
ドで、選択的に動作可能なI/Fである。例えば、第1の機器のNFCI/Fと、第2の機器のNFCI/Fと、の両方がP2Pモードで動作する場合には、第1及び第2の機器は、情報の双方向通信を実行することができる。また、例えば、第1の機器のNFCI/FがR/WモードのうちのReaderモードで動作し、かつ、第2の機器のNFCI/FがCEモードで動作する場合には、第1の機器は、第2の機器からの情報の読み出し、即ち、第2の機器からの情報の受信を実行することができる。また、例えば、第1の機器のNFCI/FがR/WモードのうちのWriterモードで動作し、かつ、第2の機器のNFCI/FがCEモードで動作する場合には、第1の機器は、第2の機器への情報の書き込み、即ち、第2の機器への情報の送信を実行することができる。
NFC Forum Device selectively operates in any of P2P (Peer To Peer) mode, R / W (Reader / Writer) mode, and CE (Card Emulation) mode Possible I / F. For example, when both the NFC I / F of the first device and the NFC I / F of the second device operate in the P2P mode, the first and second devices execute bidirectional communication of information. can do. For example, when the NFC I / F of the first device operates in the Reader mode of the R / W mode and the NFC I / F of the second device operates in the CE mode, the first device Can read information from the second device, that is, receive information from the second device. For example, when the NFC I / F of the first device operates in the Writer mode of the R / W mode and the NFC I / F of the second device operates in the CE mode, the first device Can write information to the second device, i.e., send information to the second device.

NFCフォーラムタグ(即ちICタグI/F22)は、上記の3つのモードのうちのいずれかのモードで選択的に動作可能なI/Fではなく、ICタグのみとして機能するI/Fである。例えば、携帯端末50のNFCI/FがR/WモードのうちのReaderモードで動作する場合には、携帯端末50は、プリンタ10のICタグI/F22からの情報の読み出し、即ち、プリンタ10からの情報の受信を実行することができる。また、例えば、携帯端末50のNFCI/FがR/WモードのうちのWriterモードで動作する場合には、携帯端末50は、プリンタ10のICタグI/F22への情報の書き込み、即ち、プリンタ10への情報の送信を実行することができる。   The NFC forum tag (that is, the IC tag I / F 22) is not an I / F that can selectively operate in any one of the above three modes, but an I / F that functions only as an IC tag. For example, when the NFC I / F of the mobile terminal 50 operates in the Reader mode of the R / W mode, the mobile terminal 50 reads information from the IC tag I / F 22 of the printer 10, that is, from the printer 10. Can be received. For example, when the NFC I / F of the mobile terminal 50 operates in the Writer mode of the R / W mode, the mobile terminal 50 writes information to the IC tag I / F 22 of the printer 10, that is, the printer The transmission of information to 10 can be executed.

NFCフォーラムタグ(即ちICタグI/F22)は、上記の3つのモードのうちのいずれかのモードで選択的に動作可能なI/Fではないので、NFCフォーラムデバイスよりも簡易な構成を有する(即ちICチップの構成が単純である)。一般的に言うと、NFCフォーラムタグとして機能するICチップは、NFCフォーラムデバイスとして機能するICチップよりも安価である。   Since the NFC forum tag (that is, the IC tag I / F 22) is not an I / F that can selectively operate in any one of the three modes described above, the NFC forum tag has a simpler configuration than the NFC forum device ( That is, the configuration of the IC chip is simple). Generally speaking, an IC chip that functions as an NFC forum tag is less expensive than an IC chip that functions as an NFC forum device.

なお、ICタグI/F22への電力供給の方法は、いわゆるパッシブ型又はアクティブ型のどちらであってもよい。パッシブ型は、携帯端末50のNFCI/Fから電波を受けて電力を発生させて、ICタグI/F22内のICチップの回路を起動する構成である。パッシブ型のICタグI/Fは、アクティブ型のICタグI/Fと比べて単純な構造を有するので、比較的安価であり、かつ、I/F自身の小型化を実現することができる。ただし、パッシブ型のICタグI/Fは、アクティブ型のICタグI/Fと比べて、短い通信
距離を実現することができるという特徴を有する。一方において、アクティブ型は、ICタグI/F内の電源又はプリンタ10内の電源から電力の供給を受けて、ICタグI/F22内のICチップの回路を起動する構成である。アクティブ型のICタグI/Fは、パッシブ型のICタグI/Fと比べて、高価であり、かつ、長い通信距離を実現することができるという特徴を有する。
Note that the method of supplying power to the IC tag I / F 22 may be a so-called passive type or active type. The passive type is configured to activate a circuit of the IC chip in the IC tag I / F 22 by receiving electric waves from the NFC I / F of the portable terminal 50 and generating electric power. Since the passive IC tag I / F has a simple structure as compared with the active IC tag I / F, the passive IC tag I / F is relatively inexpensive and can realize downsizing of the I / F itself. However, the passive IC tag I / F has a feature that a short communication distance can be realized as compared with the active IC tag I / F. On the other hand, the active type is configured to activate the circuit of the IC chip in the IC tag I / F 22 upon receiving power supply from the power source in the IC tag I / F or the power source in the printer 10. The active IC tag I / F is more expensive than the passive IC tag I / F and has a feature that a long communication distance can be realized.

本実施例では、ICタグI/F22は、制御部30から供給される情報を外部機器(例えば携帯端末50)に送信するために、当該情報を一時的に格納するためのバッファメモリ(図示省略)を備える。ただし、ICタグI/F22は、制御部30から供給される情報を長期間(例えば、制御部30から他の情報が供給されるまでの期間)に亘って格納するためのRAMを備えない。なお、後述の第2実施例では、ICタグI/F22は、RAM24を備える(図5参照)。   In the present embodiment, since the IC tag I / F 22 transmits information supplied from the control unit 30 to an external device (for example, the portable terminal 50), a buffer memory (not shown) for temporarily storing the information. ). However, the IC tag I / F 22 does not include a RAM for storing information supplied from the control unit 30 for a long period of time (for example, a period until other information is supplied from the control unit 30). In the second embodiment described later, the IC tag I / F 22 includes a RAM 24 (see FIG. 5).

ICタグI/F22の動作モードとして、ReadOnlyモード及びWritableモードが存在する。ReadOnlyモードは、ICタグI/F22が外部機器(例えば携帯端末50)からNFC規格の読み出しコマンドを受信する場合に、読み出しコマンドに応じて、外部機器に情報を送信する動作(以下では「読み出し応答動作」と呼ぶ)を実行するモードである。ただし、ReadOnlyモードは、ICタグI/F22が外部機器からNFC規格の書き込みコマンドを受信しても、書き込みコマンドに応じた動作(以下では「書き込み応答動作」と呼ぶ)を実行しないモードである。一方において、Writableモードは、読み出し応答動作及び書き込み応答動作の両方を実行するモードである。   As the operation mode of the IC tag I / F 22, there are a ReadOnly mode and a Writeable mode. In the ReadOnly mode, when the IC tag I / F 22 receives an NFC standard read command from an external device (for example, the portable terminal 50), an operation for transmitting information to the external device in response to the read command (hereinafter referred to as “read response”). This mode is called “operation”. However, the ReadOnly mode is a mode in which even if the IC tag I / F 22 receives an NFC standard write command from an external device, an operation corresponding to the write command (hereinafter referred to as a “write response operation”) is not executed. On the other hand, the writeable mode is a mode in which both a read response operation and a write response operation are executed.

上記の書き込み応答動作は、例えば、外部機器から書き込みコマンドと共に情報が受信される場合に、当該情報を制御部30に供給する動作である。ReadOnlyモードでは、書き込み応答動作が実行されないので、外部機器から受信される情報が制御部30に供給されることがなく、この結果、制御部30のICタグ用メモリ36内の情報が、外部機器から受信される情報によって上書きされるのを抑制することができる。また、後述の第2実施例では、ICタグI/F22のRAM24内の情報が、外部機器から受信される情報によって上書きされるのを抑制することができる。   The write response operation is an operation of supplying the information to the control unit 30 when information is received together with a write command from an external device, for example. In the ReadOnly mode, since the write response operation is not executed, the information received from the external device is not supplied to the control unit 30. As a result, the information in the IC tag memory 36 of the control unit 30 is stored in the external device. It is possible to suppress overwriting by information received from the network. Further, in the second embodiment to be described later, it is possible to prevent information in the RAM 24 of the IC tag I / F 22 from being overwritten by information received from an external device.

ここでは、無線LANI/F20とICタグI/F22との相違点を説明しておく。無線LANI/F20を介した無線通信の通信速度(例えば、最大の通信速度が11〜600Mbps)は、ICタグI/F22を介した無線通信の通信速度(例えば、最大の通信速度が100〜424Kbps)よりも速い。また、無線LANI/F20を介した無線通信における搬送波の周波数(例えば、2.4GHz帯、5.0GHz帯)は、ICタグI/F22を介した無線通信における搬送波の周波数(例えば、13.56MHz帯)とは異なる。また、例えば、プリンタ10と携帯端末50との距離が約10cm以下である場合に、制御部30は、ICタグI/F22を介して、携帯端末50とNFC通信を実行可能である。一方において、プリンタ10と携帯端末50との距離が、10cm以下である場合でも、10cm以上である場合(例えば最大で約100m)でも、制御部30は、無線LANI/F20を介して、携帯端末50とWFD通信を実行可能である。即ち、プリンタ10が無線LANI/F20を介して通信先の機器(例えば携帯端末50)と無線通信を実行可能な最大の距離は、プリンタ10がICタグI/F22を介して通信先の機器と無線通信を実行可能な最大の距離よりも大きい。   Here, differences between the wireless LAN I / F 20 and the IC tag I / F 22 will be described. The communication speed of wireless communication via the wireless LAN I / F 20 (for example, the maximum communication speed is 11 to 600 Mbps) is the communication speed of wireless communication via the IC tag I / F 22 (for example, the maximum communication speed is 100 to 424 Kbps). Faster than). In addition, the frequency of the carrier wave in the wireless communication via the wireless LAN I / F 20 (for example, 2.4 GHz band and 5.0 GHz band) is the frequency of the carrier wave in the wireless communication via the IC tag I / F 22 (for example, 13.56 MHz). Different from obi). For example, when the distance between the printer 10 and the portable terminal 50 is about 10 cm or less, the control unit 30 can execute NFC communication with the portable terminal 50 via the IC tag I / F 22. On the other hand, regardless of whether the distance between the printer 10 and the mobile terminal 50 is 10 cm or less or 10 cm or more (for example, about 100 m at the maximum), the control unit 30 can connect the mobile terminal via the wireless LAN I / F 20. 50 and WFD communication can be executed. That is, the maximum distance that the printer 10 can perform wireless communication with a communication destination device (for example, the portable terminal 50) via the wireless LAN I / F 20 is the maximum distance that the printer 10 can communicate with the communication destination device via the IC tag I / F 22. It is larger than the maximum distance at which wireless communication can be performed.

制御部30は、CPU32と、メインメモリ34と、ICタグ用メモリ36と、を備える。CPU32は、メインメモリ34に格納されているプログラムに従って、様々な処理を実行する。メインメモリ34は、RAM、ROM等によって構成される。メインメモリ34は、上記のプログラムのみならず、プリンタ10が様々な処理を実行する過程で生成
又は取得される様々なデータを格納する。ICタグ用メモリ36は、ICタグI/F22に供給されるべきデータを格納するためのメモリである。
The control unit 30 includes a CPU 32, a main memory 34, and an IC tag memory 36. The CPU 32 executes various processes according to programs stored in the main memory 34. The main memory 34 is composed of RAM, ROM, and the like. The main memory 34 stores not only the above program but also various data generated or obtained in the course of the printer 10 executing various processes. The IC tag memory 36 is a memory for storing data to be supplied to the IC tag I / F 22.

(携帯端末50の構成)
携帯端末50は、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末装置である。携帯端末50は、図示省略の無線LANI/F及びNFCI/Fを備える。
(Configuration of mobile terminal 50)
The portable terminal 50 is a portable terminal device such as a cellular phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music player, a portable video player, and the like. The portable terminal 50 includes a wireless LAN I / F and an NFC I / F (not shown).

携帯端末50は、WFD対応機器であり、G/O状態、CL状態、及び、デバイス状態の3つの状態のうちのいずれかの状態で選択的に動作可能である。従って、携帯端末50は、携帯端末50の無線LANI/Fを介して、WFD通信を実行可能である。   The portable terminal 50 is a WFD-compatible device, and can selectively operate in any one of the three states of the G / O state, the CL state, and the device state. Therefore, the mobile terminal 50 can execute WFD communication via the wireless LAN I / F of the mobile terminal 50.

なお、変形例では、携帯端末50は、WFD対応機器ではなく、レガシー機器であってもよい。この構成でも、携帯端末50は、G/O機器(例えばプリンタ10)と接続を確立して、WFDネットワークに参加することができる。   In the modification, the portable terminal 50 may be a legacy device instead of a WFD compatible device. Even in this configuration, the portable terminal 50 can establish a connection with the G / O device (for example, the printer 10) and participate in the WFD network.

また、携帯端末50は、携帯端末50のNFCI/Fを介して、NFC通信を実行可能である。なお、携帯端末50のNFCI/Fは、上記のNFCフォーラムデバイスであり、少なくともR/Wモードに従って動作可能である。   Further, the mobile terminal 50 can execute NFC communication via the NFC I / F of the mobile terminal 50. Note that the NFC I / F of the portable terminal 50 is the NFC forum device described above, and can operate at least according to the R / W mode.

(プリンタ10のCPU32が実行する処理;図2、図3)
続いて、図2及び図3を参照して、本実施例のプリンタ10のCPU32が実行する処理について説明する。図2は、CPU32が実行する処理のフローチャートを示し、図3は、図2のフローチャートによって実現される具体例を示す。
(Processing executed by CPU 32 of printer 10; FIGS. 2 and 3)
Next, processing executed by the CPU 32 of the printer 10 of this embodiment will be described with reference to FIGS. 2 and 3. FIG. 2 shows a flowchart of processing executed by the CPU 32, and FIG. 3 shows a specific example realized by the flowchart of FIG.

プリンタ10の電源ON時(即ちプリンタ10の起動時)には、プリンタ10は、いずれの無線ネットワークにも接続されておらず、WFD規格のデバイス状態である。CPU32は、プリンタ10の電源ON時に、プリンタ10の状態を示す値(以下では「WFD状態値」と呼ぶ)として、デバイス状態を示す値をメインメモリ34内に格納する。   When the printer 10 is turned on (that is, when the printer 10 is activated), the printer 10 is not connected to any wireless network and is in a device state of the WFD standard. When the printer 10 is powered on, the CPU 32 stores a value indicating the device status in the main memory 34 as a value indicating the status of the printer 10 (hereinafter referred to as “WFD status value”).

図3に示されるように、プリンタ10のCPU32(即ち制御部30)は、プリンタ10の電源ON時に、モード設定指示をICタグI/F22に供給して、ICタグI/F22の動作モードをReadOnlyモードに設定する。これにより、制御部30のICタグ用メモリ36内の情報が、外部機器(例えば携帯端末50)から受信される情報によって上書きされるのを抑制することができる。この結果、詳しくは後述するが、プリンタ10は、ICタグ用メモリ36内の情報(後述のWFDWSI)を携帯端末50に適切に供給することができる。   As shown in FIG. 3, when the printer 10 is turned on, the CPU 32 of the printer 10 supplies a mode setting instruction to the IC tag I / F 22 to change the operation mode of the IC tag I / F 22. Set to ReadOnly mode. Thereby, it can suppress that the information in the memory 36 for IC tags of the control part 30 is overwritten by the information received from an external apparatus (for example, portable terminal 50). As a result, as will be described in detail later, the printer 10 can appropriately supply information (a WFD WSI described later) in the IC tag memory 36 to the portable terminal 50.

ICタグI/F22は、NFC通信を実行可能な機器(例えば携帯端末50)を検出するための検出電波を発信している。携帯端末50のNFCI/Fも、NFC通信を実行可能な機器(例えばプリンタ10)を検出するための検出電波を発信している。ユーザが携帯端末50のNFCI/Fをプリンタ10のICタグI/F22に近づけると、携帯端末50のNFCI/Fとプリンタ10のICタグI/F22との間の距離が、互いに電波が届く距離(例えば10cm)より小さくなる。この場合、プリンタ10のICタグI/F22及び携帯端末50のNFCI/Fの一方は、他方から検出電波を受信して、応答電波を送信する。   The IC tag I / F 22 transmits a detection radio wave for detecting a device capable of performing NFC communication (for example, the portable terminal 50). The NFC I / F of the portable terminal 50 also transmits a detection radio wave for detecting a device (for example, the printer 10) that can perform NFC communication. When the user brings the NFC I / F of the portable terminal 50 close to the IC tag I / F 22 of the printer 10, the distance between the NFC I / F of the portable terminal 50 and the IC tag I / F 22 of the printer 10 is the distance that radio waves reach each other. (For example, 10 cm). In this case, one of the IC tag I / F 22 of the printer 10 and the NFC I / F of the portable terminal 50 receives the detected radio wave from the other and transmits a response radio wave.

次いで、プリンタ10のICタグI/F22と携帯端末50のNFCI/Fとの間で、NFC接続(即ちNFC方式の無線接続)を確立するための無線通信が実行される。当該無線通信の過程において、プリンタ10のICタグI/F22は、ICタグI/F22自
身がNFC規格のICタグとして機能すること(即ちNFCフォーラムタグのI/Fであること)を示すタイプ情報を、携帯端末50のNFCI/Fに送信する。この結果、携帯端末50は、通信相手(即ちプリンタ10)がNFCフォーラムタグであることを知ることができる。
Next, wireless communication is established between the IC tag I / F 22 of the printer 10 and the NFC I / F of the portable terminal 50 to establish an NFC connection (that is, an NFC wireless connection). In the wireless communication process, the IC tag I / F 22 of the printer 10 indicates that the IC tag I / F 22 itself functions as an NFC standard IC tag (that is, an NFC forum tag I / F). Is transmitted to the NFC I / F of the portable terminal 50. As a result, the portable terminal 50 can know that the communication partner (that is, the printer 10) is an NFC forum tag.

プリンタ10のICタグI/F22と携帯端末50のNFCI/Fとの間にNFC接続が確立される場合に、携帯端末50は、R/Wモードのうちのどちらのモードで動作すべきかを決定する。携帯端末50がR/Wモードのうちのどちらのモードで動作すべきかについては、携帯端末50に搭載されているプログラム(例えばアプリケーション)によって予め決められている。例えば、プリンタ10に印刷機能を実行させるための印刷アプリケーションが携帯端末50にインストール済みである場合には、携帯端末50は、印刷アプリケーションに従って、R/WモードのうちのReaderモードで動作することを決定する。一方において、印刷アプリケーションが携帯端末50にインストール済みでない場合には、携帯端末50は、印刷アプリケーションとは異なるアプリケーション、又は、携帯端末50のオペレーションシステム(即ちOS)に従って、R/WモードのうちのReaderモードで動作することを決定するかもしれないし、R/WモードのうちのWriterモードで動作することを決定するかもしれない。   When an NFC connection is established between the IC tag I / F 22 of the printer 10 and the NFC I / F of the mobile terminal 50, the mobile terminal 50 determines which mode of the R / W mode to operate. To do. Whether the portable terminal 50 should operate in the R / W mode is determined in advance by a program (for example, an application) installed in the portable terminal 50. For example, when a print application for causing the printer 10 to execute a print function has already been installed in the portable terminal 50, the portable terminal 50 operates in the Reader mode of the R / W mode according to the print application. decide. On the other hand, when the print application has not been installed in the mobile terminal 50, the mobile terminal 50 can select one of the R / W modes according to an application different from the print application or the operation system (ie, OS) of the mobile terminal 50. It may be determined to operate in the Reader mode, or may be determined to operate in the Writer mode of the R / W mode.

携帯端末50は、R/WモードのうちのReaderモードで動作することを決定する場合には、読み出しコマンドをプリンタ10のICタグI/F22に送信する。また、携帯端末50は、R/WモードのうちのWriterモードで動作することを決定する場合には、書き込みコマンドをプリンタ10のICタグI/F22に送信する。   When the portable terminal 50 determines to operate in the Reader mode of the R / W mode, the portable terminal 50 transmits a read command to the IC tag I / F 22 of the printer 10. In addition, when the portable terminal 50 determines to operate in the writer mode of the R / W mode, the portable terminal 50 transmits a write command to the IC tag I / F 22 of the printer 10.

プリンタ10のICタグI/F22は、携帯端末50から書き込みコマンドを受信しても、書き込み応答動作を実行しない。ICタグI/F22の動作モードがReadOnlyモードに設定されているからである。一方において、プリンタ10のICタグI/F22は、携帯端末50から読み出しコマンドを受信する場合には、読み出し応答動作を実行する。具体的に言うと、ICタグI/F22は、まず、プリンタ10と携帯端末50との間にNFC接続が確立されたことを知らせるための特定の通知を、制御部30に供給する。   Even when the IC tag I / F 22 of the printer 10 receives a write command from the portable terminal 50, the IC tag I / F 22 does not execute a write response operation. This is because the operation mode of the IC tag I / F 22 is set to the ReadOnly mode. On the other hand, the IC tag I / F 22 of the printer 10 executes a read response operation when receiving a read command from the portable terminal 50. Specifically, the IC tag I / F 22 first supplies the control unit 30 with a specific notification for notifying that the NFC connection has been established between the printer 10 and the portable terminal 50.

図2のS10に示されるように、CPU32は、ICタグI/F22から特定の通知を取得することを監視している。CPU32は、ICタグI/F22から特定の通知を取得する場合(S10でYESの場合)には、S12に進む。   As shown in S <b> 10 of FIG. 2, the CPU 32 monitors the acquisition of a specific notification from the IC tag I / F 22. When acquiring a specific notification from the IC tag I / F 22 (YES in S10), the CPU 32 proceeds to S12.

S12では、CPU32は、プリンタ10及び携帯端末50の両方が所属すべきWFDネットワークで利用される無線設定情報を生成する。なお、以下では、WFDネットワークで利用される無線設定情報のことを「WFDWSI」と呼ぶ。WFDWSIは、SSID(Service Set Identifierの略)、BSSID(Basic Service Set Identifierの略)、認証方式、暗号化方式、及び、パスワードを含む。SSID及びBSSIDは、WFDネットワークを識別するための識別情報である。より具体的に言うと、SSIDは、WFDネットワークのネットワーク識別子であり、BSSIDは、プリンタ10のMACアドレスである。認証方式、暗号化方式、及び、パスワードは、WFDネットワークにおいて、機器の認証、データの暗号化等を実行するための情報である。図3では、SSIDの具体的な値として、「X1」が示されている。   In S12, the CPU 32 generates wireless setting information used in the WFD network to which both the printer 10 and the portable terminal 50 should belong. Hereinafter, the wireless setting information used in the WFD network is referred to as “WFDWSI”. The WFD WSI includes an SSID (abbreviation of service set identifier), BSSID (abbreviation of basic service set identifier), an authentication method, an encryption method, and a password. The SSID and BSSID are identification information for identifying the WFD network. More specifically, SSID is a network identifier of the WFD network, and BSSID is a MAC address of the printer 10. The authentication method, encryption method, and password are information for executing device authentication, data encryption, and the like in the WFD network. In FIG. 3, “X1” is shown as a specific value of the SSID.

CPU32は、ランダムに文字列を生成することによって、SSID及びパスワードを新たに生成する。ただし、BSSID、認証方式、及び、暗号化方式は、予め決められている情報であり、CPU32によって新たに生成される情報ではない。CPU32は、生成済みのWFDWSIをICタグ用メモリ36内に書き込む。   The CPU 32 newly generates a SSID and a password by randomly generating a character string. However, the BSSID, the authentication method, and the encryption method are predetermined information, and are not information newly generated by the CPU 32. The CPU 32 writes the generated WFD WSI in the IC tag memory 36.

次いで、S14において、CPU32は、ICタグ用メモリ36内のWFDWSIをICタグI/F22に供給する。この結果、ICタグI/F22は、NFC接続(即ち読み出しコマンドの通信に利用されたNFC接続)を利用して、WFDWSIを携帯端末50送信する。ICタグI/F22からWFDWSIが送信されると、NFC接続が切断される。   Next, in S <b> 14, the CPU 32 supplies WFDWSI in the IC tag memory 36 to the IC tag I / F 22. As a result, the IC tag I / F 22 transmits the WFD WSI to the portable terminal 50 using the NFC connection (that is, the NFC connection used for communication of the read command). When WFDWSI is transmitted from the IC tag I / F 22, the NFC connection is disconnected.

上述したように、ICタグI/F22がReadOnlyモードに設定されているために、仮に、ICタグ用メモリ36内にWFDWSIが格納された後に、携帯端末50から書き込みコマンドが受信されたとしても(例えば、携帯端末50の印刷アプリケーション以外のアプリケーションによって送信される書き込みコマンドが受信されたとしても)、ICタグ用メモリ36内のWFDWSIが、他の情報によって上書きされるのを抑制することができる。このために、プリンタ10は、WFDWSIを携帯端末50に適切に送信することができる。   As described above, since the IC tag I / F 22 is set to the ReadOnly mode, even if a write command is received from the portable terminal 50 after the WFDWSI is stored in the IC tag memory 36 ( For example, even if a write command transmitted by an application other than the printing application of the portable terminal 50 is received), it is possible to prevent the WFD WSI in the IC tag memory 36 from being overwritten by other information. For this reason, the printer 10 can appropriately transmit the WFD WSI to the portable terminal 50.

続いて、S16において、CPU32は、プリンタ10の状態をデバイス状態からG/O状態に変更する。S16では、CPU32は、G/Oネゴシエーションを実行せずに自発的に、プリンタ10の状態をG/O状態に移行させる。具体的に言うと、CPU32は、まず、メインメモリ34内のWFD状態値を、デバイス状態を示す値から、G/O状態を示す値に変更する。次いで、CPU32は、CL機器のMACアドレスが記述されるべき管理リストをメインメモリ34内に生成する。S16の段階では、管理リストにはいずれのMACアドレスも記述されていない。即ち、S16の段階では、CPU32は、G/O機器であるプリンタ10のみが所属しているWFDネットワークを形成する。   Subsequently, in S16, the CPU 32 changes the state of the printer 10 from the device state to the G / O state. In S16, the CPU 32 voluntarily shifts the state of the printer 10 to the G / O state without executing the G / O negotiation. Specifically, the CPU 32 first changes the WFD state value in the main memory 34 from a value indicating the device state to a value indicating the G / O state. Next, the CPU 32 generates a management list in the main memory 34 in which the MAC address of the CL device is to be described. At the stage of S16, no MAC address is described in the management list. That is, at the stage of S16, the CPU 32 forms a WFD network to which only the printer 10, which is a G / O device, belongs.

図3のケースAに示されるように、印刷アプリケーションが携帯端末50にインストール済みである場合には、携帯端末50は、プリンタ10からWFDWSIを受信すると、WFDWSIを利用して、G/O機器であるプリンタ10とWFD方式の無線接続(以下では「WFD接続」と呼ぶ)を確立するための処理を実行する。具体的に言うと、携帯端末50は、携帯端末50の無線LANI/Fを介して、WFDWSIに含まれるSSIDを含むProbe Request信号を送信する。一方において、図3のケースBに示されるように
、印刷アプリケーションが携帯端末50にインストール済みでない場合には、携帯端末50は、Readerモードで動作してプリンタ10からWFDWSIを受信することができるが、Probe Request信号を送信しない。WFDWSIを解釈してProbe Request信号を送信するための印刷アプリケーションがインストールされていないからである。
As shown in case A in FIG. 3, when the print application has been installed in the mobile terminal 50, when the mobile terminal 50 receives WFDWSI from the printer 10, the mobile application 50 uses the WFDWSI to A process for establishing a WFD wireless connection (hereinafter referred to as “WFD connection”) with a certain printer 10 is executed. Specifically, the mobile terminal 50 transmits a Probe Request signal including the SSID included in WFDWSI via the wireless LAN I / F of the mobile terminal 50. On the other hand, as shown in case B of FIG. 3, when the print application has not been installed in the mobile terminal 50, the mobile terminal 50 can operate in the Reader mode and receive WFD WSI from the printer 10. The Probe Request signal is not transmitted. This is because a print application for interpreting WFDWSI and transmitting a Probe Request signal is not installed.

図2のS18では、CPU32は、無線LANI/F20を介して、SSID「X1」を含むProbe Request信号を受信することを監視する。CPU32は、SSID「X1」
を含むProbe Request信号を受信する場合(即ち図3のケースAの場合)に、S18でY
ESと判断して、S20に進む。一方において、CPU32は、S16でプリンタ10がG/O状態に移行してから、SSID「X1」を含むProbe Request信号を受信しない状
態で、所定期間が経過する場合(即ち図3のケースBの場合)に、S18でNOと判断して、S20〜S24をスキップして(即ち、印刷データの受信処理及び印刷処理を実行せずに)、S26に進む。
In S <b> 18 of FIG. 2, the CPU 32 monitors whether a Probe Request signal including the SSID “X1” is received via the wireless LAN I / F 20. The CPU 32 uses the SSID “X1”.
In the case of receiving a Probe Request signal including the signal (that is, in the case A of FIG. 3), Y in S18
Determine ES and proceed to S20. On the other hand, the CPU 32 does not receive a probe request signal including the SSID “X1” after the printer 10 shifts to the G / O state in S16 (that is, the case B in FIG. 3). In step S18, NO is determined in S18, S20 to S24 are skipped (that is, the print data reception process and the print process are not executed), and the process proceeds to S26.

S20では、CPU32は、携帯端末50とWFD接続を確立するための処理(即ち、プリンタ10がG/O機器であるWFDネットワークに携帯端末50を参加させるための処理)を実行する。具体的に言うと、CPU32は、無線LANI/F20を介して、Probe Response信号、Authentication Request信号、Authentication Response信号等の接
続用データの通信を携帯端末50と実行する。
In S20, the CPU 32 executes a process for establishing a WFD connection with the portable terminal 50 (that is, a process for allowing the portable terminal 50 to participate in the WFD network in which the printer 10 is a G / O device). Specifically, the CPU 32 performs communication of connection data such as a probe response signal, an authentication request signal, and an authentication response signal with the portable terminal 50 via the wireless LAN I / F 20.

携帯端末50は、上記の接続用データの通信の過程において、WFDWSIに含まれる認証方式、暗号化方式、パスワード等をプリンタ10に送信する。そして、プリンタ10のCPU32は、携帯端末50の認証を実行する。WFDWSIはプリンタ10から携帯端末50に送信されたものであるので、通常、認証が成功する。この結果、プリンタ10の無線LANI/F20と携帯端末50の無線LANI/Fとの間に、WFD接続が確立される。   The portable terminal 50 transmits an authentication method, an encryption method, a password, and the like included in the WFD WSI to the printer 10 in the process of communication of the connection data. Then, the CPU 32 of the printer 10 performs authentication of the portable terminal 50. Since WFDWSI is transmitted from the printer 10 to the portable terminal 50, authentication is normally successful. As a result, a WFD connection is established between the wireless LAN I / F 20 of the printer 10 and the wireless LAN I / F of the portable terminal 50.

CPU32は、WFD接続が確立される場合に、携帯端末50のMACアドレスを管理リストに記述する。これにより、携帯端末50は、プリンタ10がG/O機器であるWFDネットワークに、CL機器として参加する。即ち、CPU32は、プリンタ10及び携帯端末50の両方が所属しているWFDネットワークを形成する。   When the WFD connection is established, the CPU 32 describes the MAC address of the portable terminal 50 in the management list. Thereby, the portable terminal 50 participates as a CL device in the WFD network in which the printer 10 is a G / O device. That is, the CPU 32 forms a WFD network to which both the printer 10 and the portable terminal 50 belong.

携帯端末50(即ち印刷アプリケーション)は、WFD接続が確立される場合に、WFDネットワークを利用して、携帯端末50の無線LANI/Fを介して、印刷データをプリンタ10に送信する。携帯端末50がCL機器であり、かつ、プリンタ10がG/O機器であるので、印刷データは、他機器を介さずに、携帯端末50からプリンタ10に直接的に送信される。印刷データは、携帯端末50のユーザによって印刷対象として指定されるデータであり、例えば、画像ファイル、文書ファイル等である。   When the WFD connection is established, the portable terminal 50 (that is, the printing application) transmits print data to the printer 10 via the wireless LAN I / F of the portable terminal 50 using the WFD network. Since the portable terminal 50 is a CL device and the printer 10 is a G / O device, print data is directly transmitted from the portable terminal 50 to the printer 10 without passing through other devices. The print data is data designated as a print target by the user of the portable terminal 50, and is, for example, an image file, a document file, or the like.

S22では、CPU32は、WFDネットワークを利用して、携帯端末50から、無線LANI/F20を介して、印刷データを受信する。次いで、S24において、CPU32は、印刷データを印刷機構16に供給する。これにより、印刷機構16は、印刷データによって表わされる画像を印刷媒体に印刷する。   In S22, the CPU 32 receives print data from the portable terminal 50 via the wireless LAN I / F 20 using the WFD network. Next, in S <b> 24, the CPU 32 supplies print data to the printing mechanism 16. Thereby, the printing mechanism 16 prints the image represented by the print data on the print medium.

印刷データは、画像ファイル等であるので、比較的に大きいデータサイズを有する。そして、NFC通信の通信速度は、WFD通信の通信速度よりも遅い。従って、仮に、プリンタ10及び携帯端末50の間で、NFC通信を利用して、印刷データの無線通信が実行される構成を採用すると、印刷データの無線通信のために長時間を要する。これに対し、本実施例では、プリンタ10及び携帯端末50は、WFD通信を利用して、印刷データの無線通信を実行するので、印刷データの無線通信を迅速に実行することができる。   Since the print data is an image file or the like, it has a relatively large data size. The communication speed of NFC communication is slower than the communication speed of WFD communication. Therefore, if a configuration in which print data wireless communication is executed using NFC communication between the printer 10 and the portable terminal 50 is employed, a long time is required for the print data wireless communication. On the other hand, in the present embodiment, the printer 10 and the portable terminal 50 execute the print data wireless communication using the WFD communication, so that the print data wireless communication can be quickly executed.

S26では、CPU32は、プリンタ10の状態をG/O状態からデバイス状態に変更する。即ち、CPU32は、メインメモリ34内のWFD状態値を、G/O状態を示す値から、デバイス状態を示す値に変更する。次いで、CPU32は、管理リストをメインメモリ34から消去する。これにより、WFDネットワークが消滅する。CPU32は、S26を終えると、S10に戻る。   In S26, the CPU 32 changes the state of the printer 10 from the G / O state to the device state. That is, the CPU 32 changes the WFD state value in the main memory 34 from a value indicating the G / O state to a value indicating the device state. Next, the CPU 32 deletes the management list from the main memory 34. As a result, the WFD network disappears. After finishing S26, the CPU 32 returns to S10.

(第1実施例の効果)
本実施例のプリンタ10によると、NFC規格のICタグとして機能するICタグI/F22は、NFC接続を利用して(即ちNFC通信を実行して)、SSID「X1」を含むWFDWSIを携帯端末50に送信する。そして、プリンタ10は、G/O状態に移行して、プリンタ10のみが所属しているWFDネットワークを形成する。プリンタ10は、携帯端末50からSSID「X1」を含むProbe Request信号を受信する場合に、プリ
ンタ10及び携帯端末50の間のWFD接続を確立して、プリンタ10及び携帯端末50の両方が所属しているWFDネットワークを形成する。次いで、プリンタ10は、WFDネットワークを利用して(即ちWFD通信を実行して)、携帯端末50から印刷データを受信する。プリンタ10は、印刷データによって表わされる画像を印刷媒体に印刷する。これにより、印刷済みの印刷媒体を携帯端末50のユーザに提供することができる。
(Effects of the first embodiment)
According to the printer 10 of the present embodiment, the IC tag I / F 22 that functions as an NFC standard IC tag uses the NFC connection (that is, executes NFC communication) to transmit the WFD WSI including the SSID “X1” to the mobile terminal. 50. Then, the printer 10 shifts to the G / O state and forms a WFD network to which only the printer 10 belongs. When the printer 10 receives the probe request signal including the SSID “X1” from the portable terminal 50, the printer 10 establishes a WFD connection between the printer 10 and the portable terminal 50, and both the printer 10 and the portable terminal 50 belong to the printer 10. Forming a WFD network. Next, the printer 10 receives print data from the portable terminal 50 using the WFD network (that is, executing WFD communication). The printer 10 prints an image represented by print data on a print medium. Thereby, the printed print medium can be provided to the user of the portable terminal 50.

上述したように、NFCフォーラムタグ(即ちICタグI/F22)は、NFCフォー
ラムデバイスと比べて、簡易な構成を有する(即ちICチップの構成が単純である)。従って、NFC通信を実行するためのI/Fとして、NFCフォーラムデバイスを利用する場合と比較すると、簡易な構成によって本実施例のプリンタ10を実現可能である。この結果、例えば、比較的に安価にプリンタ10を製造し得る。
As described above, the NFC forum tag (that is, the IC tag I / F 22) has a simple configuration (that is, the configuration of the IC chip is simple) as compared with the NFC forum device. Therefore, as compared with the case where the NFC forum device is used as an I / F for executing NFC communication, the printer 10 of this embodiment can be realized with a simple configuration. As a result, for example, the printer 10 can be manufactured at a relatively low cost.

なお、後述の第2実施例のように、ICタグI/F22がRAMを備えている場合には、図2のS14において、CPU32が、ICタグI/F22内のRAMにWFDWSIを書き込む必要がある。これに対し、本実施例では、ICタグI/F22がRAMを備えていないので、図2のS14において、CPU32が、ICタグI/F22内のRAMにWFDWSIを書き込む必要がない。従って、S14の処理を迅速に実行することができ、この結果、プリンタ10から携帯端末50へのWFDWSIの供給を迅速に実行することができる。   When the IC tag I / F 22 includes a RAM as in the second embodiment described later, the CPU 32 needs to write WFDWSI to the RAM in the IC tag I / F 22 in S14 of FIG. is there. In contrast, in this embodiment, since the IC tag I / F 22 does not include a RAM, the CPU 32 does not need to write WFDWSI to the RAM in the IC tag I / F 22 in S14 of FIG. Therefore, the process of S14 can be executed quickly, and as a result, the supply of WFD WSI from the printer 10 to the portable terminal 50 can be executed quickly.

(対応関係)
プリンタ10、携帯端末50が、「第1の通信機器」、「第2の通信機器」の一例である。ICタグI/F22、無線LANI/F20が、それぞれ、「第1種のインターフェース」、「第2種のインターフェース」の一例である。SSID「X1」を含むWFDWSIを携帯端末50に送信する動作が「送信動作」の一例である。印刷データが「対象データ」の一例である。WFD規格が「特定の規格」の一例である。ReadOnlyモードが「第1のモード」の一例である。NFC接続、WFD接続が、それぞれ、「第1の無線接続」、「第2の無線接続」の一例である。G/O状態、デバイス状態が、それぞれ、「親局状態」、「無所属状態」の一例である。WFDネットワーク、SSID「X1」、Probe Request信号が、それぞれ、「第1の無線ネットワーク」、「ネットワーク識別情
報」、「特定の信号」の一例である。印刷アプリケーションが「アプリケーション」の一例である。図2のS12及びS14の処理が、「インターフェース制御部」によって実行される処理の一例である。S16の処理、S20の処理、S22の処理が、それぞれ、「状態移行部」、「形成部」、「データ通信部」によって実行される処理の一例である。
(Correspondence)
The printer 10 and the portable terminal 50 are examples of “first communication device” and “second communication device”. The IC tag I / F 22 and the wireless LAN I / F 20 are examples of “first type interface” and “second type interface”, respectively. The operation of transmitting the WFD WSI including the SSID “X1” to the portable terminal 50 is an example of the “transmission operation”. The print data is an example of “target data”. The WFD standard is an example of a “specific standard”. The ReadOnly mode is an example of the “first mode”. NFC connection and WFD connection are examples of “first wireless connection” and “second wireless connection”, respectively. The G / O state and the device state are examples of the “master station state” and the “unaffiliated state”, respectively. The WFD network, SSID “X1”, and Probe Request signal are examples of “first wireless network”, “network identification information”, and “specific signal”, respectively. The print application is an example of “application”. The processing of S12 and S14 in FIG. 2 is an example of processing executed by the “interface control unit”. The process of S16, the process of S20, and the process of S22 are examples of processes executed by the “state transition unit”, “formation unit”, and “data communication unit”, respectively.

(第2実施例)
第1実施例とは異なる点を説明する。本実施例では、ICタグI/F22は、制御部30から供給される情報を長期間に亘って格納するためのRAM24を備える。
(Second embodiment)
Differences from the first embodiment will be described. In this embodiment, the IC tag I / F 22 includes a RAM 24 for storing information supplied from the control unit 30 over a long period of time.

(プリンタ10のCPU32が実行する処理;図4〜図6)
図4〜図6を参照して、本実施例のプリンタ10のCPU32が実行する処理の内容について説明する。第1実施例とは異なり、プリンタ10のCPU32(即ち制御部30)は、プリンタ10の電源ON時に、WFDWSIを生成して、生成済みのWFDWSIをICタグI/F22に供給する。WFDWSIの生成手法は、図2のS12と同様である。図5では、プリンタ10の電源ON時に生成されるWFDWSIに含まれるSSIDの具体的な値として、「X1」が示されている。ICタグI/F22は、WFDWSIをRAM24に格納する。
(Processes executed by the CPU 32 of the printer 10; FIGS. 4 to 6)
The contents of processing executed by the CPU 32 of the printer 10 of this embodiment will be described with reference to FIGS. Unlike the first embodiment, the CPU 32 (that is, the control unit 30) of the printer 10 generates WFD WSI when the printer 10 is turned on and supplies the generated WFD WSI to the IC tag I / F 22. The WFD WSI generation method is the same as S12 in FIG. In FIG. 5, “X1” is shown as a specific value of the SSID included in the WFD WSI generated when the printer 10 is powered on. The IC tag I / F 22 stores WFDWSI in the RAM 24.

図4の各処理S10〜S26は、図2の各処理S10〜S26と同様であるが、各処理の順序が異なる。図5に示されるように、プリンタ10のICタグI/F22と携帯端末50のNFCI/Fとの間でNFC接続が確立され、その後、NFC接続を利用して読み出しコマンドが通信される様子は、第1実施例と同様である。   The processes S10 to S26 in FIG. 4 are the same as the processes S10 to S26 in FIG. 2, but the order of the processes is different. As shown in FIG. 5, the NFC connection is established between the IC tag I / F 22 of the printer 10 and the NFC I / F of the portable terminal 50, and then the read command is communicated using the NFC connection. The same as in the first embodiment.

プリンタ10のICタグI/F22は、携帯端末50から読み出しコマンドを受信する場合に、特定の通知を制御部30に供給する。これにより、CPU32は、図4のS10でYESと判断して、S16に進む。本実施例では、CPU32は、S10でYESの場合に、WFDWSIの生成(S12)、及び、WFDWSIのICタグI/F22への供
給(S14)、を実行しない。プリンタ10の電源ON時、又は、後述のS14の処理時に、WFDWSIがICタグI/F22に供給されており、WFDWSIがICタグI/F22のRAM24に既に格納されているからである。従って、プリンタ10のICタグI/F22は、携帯端末50から読み出しコマンドを受信する場合に、制御部30からWFDWSIを取得することなく、RAM24内のWFDWSI(即ちSSID「X1」)を携帯端末50に送信する。
The IC tag I / F 22 of the printer 10 supplies a specific notification to the control unit 30 when receiving a read command from the portable terminal 50. As a result, the CPU 32 determines YES in S10 of FIG. 4 and proceeds to S16. In the present embodiment, the CPU 32 does not execute generation of WFDWSI (S12) and supply of WFDWSI to the IC tag I / F 22 (S14) when YES in S10. This is because the WFDWSI is supplied to the IC tag I / F 22 when the printer 10 is turned on, or at the time of processing of S14 described later, and the WFDWSI is already stored in the RAM 24 of the IC tag I / F 22. Therefore, when the IC tag I / F 22 of the printer 10 receives a read command from the mobile terminal 50, the IC tag I / F 22 acquires the WFD WSI (that is, SSID “X1”) in the RAM 24 without acquiring the WFD WSI from the control unit 30. Send to.

図4のS16〜S26の各処理は、図2のS16〜S26の各処理と同様である。図4のS16〜S26の各処理が実行されると、図5に示されるように、プリンタ10のみが所属しているWFDネットワークの形成、プリンタ10及び携帯端末50の両方が所属しているWFDネットワークの形成、及び、印刷データの通信が実行され、その後、WFDネットワークが消滅する。   Each process of S16-S26 of FIG. 4 is the same as each process of S16-S26 of FIG. When the processes of S16 to S26 in FIG. 4 are executed, as shown in FIG. 5, the formation of a WFD network to which only the printer 10 belongs, and the WFD to which both the printer 10 and the portable terminal 50 belong. Network formation and print data communication are performed, and then the WFD network disappears.

図4に示されるように、CPU32は、S26を終えると(即ちWFDネットワークが消滅すると)、WFDWSIの生成(S12)、及び、WFDWSIのICタグI/F22への供給(S14)、を実行する。S12では、CPU32は、ランダムに文字列を生成することによって、SSID及びパスワードを生成する。従って、S12で生成されるSSID及びパスワードは、電源ON時(もしくは過去のS12の実行時)に生成されるSSID及びパスワードとは異なる。図6では、S12で生成されるSSIDの具体的な値として、「X2」が示されている。ICタグI/F22は、RAM24内のWFDWSI(即ち電源ON時に生成されたWFDWSI)を削除して、新たなWFDWSI(即ちS14で供給されたWFDWSI)をRAM24に格納する。   As shown in FIG. 4, when the CPU 32 finishes S26 (that is, when the WFD network disappears), the CPU 32 generates the WFD WSI (S12) and supplies the WFD WSI to the IC tag I / F 22 (S14). . In S12, the CPU 32 generates an SSID and a password by randomly generating a character string. Therefore, the SSID and password generated in S12 are different from the SSID and password generated when the power is turned on (or during the past execution of S12). In FIG. 6, “X2” is shown as a specific value of the SSID generated in S12. The IC tag I / F 22 deletes the WFD WSI in the RAM 24 (that is, the WFD WSI generated when the power is turned on), and stores a new WFD WSI (that is, the WFD WSI supplied in S14) in the RAM 24.

CPU32は、図5のS14を終えると、S10に戻る。図6に示されるように、プリンタ10及び携帯端末50の間にNFC接続が再び確立される場合には、ICタグI/F22は、RAM24内のWFDWSI(即ちSSID「X2」)を携帯端末50に送信する。その後の処理は、SSID「X1」の代わりにSSID「X2」が利用される点を除くと、図5と同様である。   CPU32 will return to S10, after complete | finishing S14 of FIG. As shown in FIG. 6, when the NFC connection is established again between the printer 10 and the portable terminal 50, the IC tag I / F 22 uses the WFD WSI (that is, SSID “X2”) in the RAM 24 to the portable terminal 50. Send to. The subsequent processing is the same as in FIG. 5 except that SSID “X2” is used instead of SSID “X1”.

(第2実施例の効果)
本実施例でも、第1実施例と同様の効果が得られる。また、本実施例では、ICタグI/F22は、RAM24を備えているので、NFC接続が確立される前に、WFDWSIをRAM24に予め格納しておくことができる。このために、ICタグI/F22は、NFC接続が確立される場合に、制御部30からWFDWSIを取得しなくても、RAM24内のWFDWSIを携帯端末50に迅速に送信することができる。
(Effect of the second embodiment)
In this embodiment, the same effect as in the first embodiment can be obtained. In this embodiment, since the IC tag I / F 22 includes the RAM 24, the WFD WSI can be stored in the RAM 24 in advance before the NFC connection is established. For this reason, the IC tag I / F 22 can quickly transmit the WFD WSI in the RAM 24 to the portable terminal 50 without acquiring the WFD WSI from the control unit 30 when the NFC connection is established.

(対応関係)
本実施例では、図5のWFDネットワーク、図6のWFDネットワークが、それぞれ、「第2の無線ネットワーク」、「第1の無線ネットワーク」の一例である。また、SSID「X2」が「ネットワーク識別情報」の一例である。
(Correspondence)
In the present embodiment, the WFD network in FIG. 5 and the WFD network in FIG. 6 are examples of the “second wireless network” and the “first wireless network”, respectively. The SSID “X2” is an example of “network identification information”.

(第3実施例)
第1実施例とは異なる点を説明する。本実施例では、ICタグI/F22は、第1実施例と同様に、RAMを備えていない。第1実施例では、プリンタ10は、G/O状態及びデバイス状態の2つの状態のうちのいずれかの状態で選択的に動作する。これに対し、本実施例では、プリンタ10は、G/O状態、CL状態、及び、デバイス状態の3つの状態のうちのいずれかの状態で選択的に動作する。例えば、プリンタ10は、プリンタ10とは異なる機器とG/Oネゴシエーションを実行して、プリンタ10がCL機器になることを決定し得る。
(Third embodiment)
Differences from the first embodiment will be described. In the present embodiment, the IC tag I / F 22 does not include a RAM as in the first embodiment. In the first embodiment, the printer 10 selectively operates in one of two states, a G / O state and a device state. On the other hand, in the present embodiment, the printer 10 selectively operates in any one of the three states of the G / O state, the CL state, and the device state. For example, the printer 10 may perform G / O negotiation with a device different from the printer 10 to determine that the printer 10 is a CL device.

(プリンタ10のCPU32が実行する処理;図7、図8)
図7及び図8を参照して、本実施例のプリンタ10のCPU32が実行する処理の内容について説明する。ユーザは、プリンタ10及びPC110が所属しているWFDネットワークが形成されることを望む場合に、プリンタ10の操作パネル12に所定の操作を実行し、PC110に所定の操作を実行する。これにより、プリンタ10のCPU32は、無線LANI/F20を介して、PC110とG/Oネゴシエーションを実行する。
(Processes executed by the CPU 32 of the printer 10; FIGS. 7 and 8)
The contents of processing executed by the CPU 32 of the printer 10 of this embodiment will be described with reference to FIGS. When the user desires to form a WFD network to which the printer 10 and the PC 110 belong, the user performs a predetermined operation on the operation panel 12 of the printer 10 and executes a predetermined operation on the PC 110. As a result, the CPU 32 of the printer 10 performs G / O negotiation with the PC 110 via the wireless LAN I / F 20.

G/Oネゴシエーションでは、CPU32は、プリンタ10のG/O優先度を示す情報(より具体的に言うとIntent値)をPC110に送信し、PC110のG/O優先度を示す情報をPC110から受信する。プリンタ10のG/O優先度は、プリンタ10がG/O状態になるべき程度を示す指標であり、プリンタ10において予め決められている。同様に、PC110のG/O優先度は、PC110がG/O状態になるべき程度を示す指標であり、PC110において予め決められている。   In the G / O negotiation, the CPU 32 transmits information indicating the G / O priority of the printer 10 (more specifically, an Intent value) to the PC 110 and receives information indicating the G / O priority of the PC 110 from the PC 110. To do. The G / O priority of the printer 10 is an index indicating the degree to which the printer 10 should be in the G / O state, and is determined in advance in the printer 10. Similarly, the G / O priority of the PC 110 is an index indicating the degree to which the PC 110 should be in the G / O state, and is determined in advance in the PC 110.

CPU32は、プリンタ10のG/O優先度とPC110のG/O優先度とを比較して、優先度が高い方の機器がG/O状態になることを決定し、優先度が低い方の機器がCL状態になることを決定する。図8のケースCでは、プリンタ10がG/O状態になることが決定され、PC110がCL状態になることが決定される。即ち、CPU32は、メインメモリ34内のWFD状態値を、デバイス状態を示す値から、G/O状態を示す値に変更する。さらに、CPU32は、PC110のMACアドレスを含む管理リストを、メインメモリ34内に生成する。また、ケースDでは、プリンタ10がCL状態になることが決定され、PC110がG/O状態になることが決定される。即ち、CPU32は、メインメモリ34内のWFD状態値を、デバイス状態を示す値から、CL状態を示す値に変更する。   The CPU 32 compares the G / O priority of the printer 10 with the G / O priority of the PC 110 and determines that the device with the higher priority will be in the G / O state. Determine that the device is in the CL state. In case C of FIG. 8, it is determined that the printer 10 is in the G / O state and the PC 110 is in the CL state. That is, the CPU 32 changes the WFD state value in the main memory 34 from a value indicating the device state to a value indicating the G / O state. Further, the CPU 32 generates a management list including the MAC address of the PC 110 in the main memory 34. In case D, it is determined that the printer 10 is in the CL state and the PC 110 is in the G / O state. That is, the CPU 32 changes the WFD state value in the main memory 34 from a value indicating the device state to a value indicating the CL state.

プリンタ10がG/O機器になる場合(即ちケースC)には、プリンタ10(即ちCPU32)がWFDWSIを生成する。そして、CPU32は、無線LANI/F20を介して、生成済みのWFDWSIをPC110に供給する。この結果、プリンタ10及びPC110の間にWFD接続が確立され、G/O機器であるプリンタ10及びCL機器であるPC110が所属しているWFDネットワークが形成される。   When the printer 10 is a G / O device (that is, case C), the printer 10 (that is, the CPU 32) generates WFDWSI. Then, the CPU 32 supplies the generated WFD WSI to the PC 110 via the wireless LAN I / F 20. As a result, a WFD connection is established between the printer 10 and the PC 110, and a WFD network to which the printer 10 as a G / O device and the PC 110 as a CL device belong is formed.

一方において、プリンタ10がCL機器になる場合(即ちケースD)には、PC110がWFDWSIを生成する。そして、CPU32は、PC110から、無線LANI/F20を介して、WFDWSIを受信する。この結果、プリンタ10及びPC110の間にWFD接続が確立され、CL機器であるプリンタ10及びG/O機器であるPC110が所属しているWFDネットワークが形成される。   On the other hand, when the printer 10 is a CL device (that is, case D), the PC 110 generates WFDWSI. Then, the CPU 32 receives WFD WSI from the PC 110 via the wireless LAN I / F 20. As a result, a WFD connection is established between the printer 10 and the PC 110, and a WFD network to which the printer 10 as a CL device and the PC 110 as a G / O device belong is formed.

上記のケースC又はDのように、プリンタ10及びPC110が所属しているWFDネットワークが形成されると、プリンタ10は、WFDネットワークを利用して、PC110から印刷データを受信して、印刷処理を実行することができる。   When the WFD network to which the printer 10 and the PC 110 belong is formed as in the case C or D above, the printer 10 receives print data from the PC 110 using the WFD network and performs print processing. Can be executed.

第1又は第2実施例では、プリンタ10の状態がデバイス状態である間に、プリンタ10及び携帯端末50の間にNFC接続が確立されるが、プリンタ10の状態がG/O状態又はCL状態である間に、NFC接続が確立されない。これに対し、本実施例では、プリンタ10及びPC110が所属しているWFDネットワークが形成され得るので、プリンタ10の状態がG/O状態又はCL状態である間にも、NFC接続が確立され得る。   In the first or second embodiment, the NFC connection is established between the printer 10 and the portable terminal 50 while the printer 10 is in the device state, but the printer 10 is in the G / O state or the CL state. While NFC connection is not established. On the other hand, in this embodiment, since the WFD network to which the printer 10 and the PC 110 belong can be formed, the NFC connection can be established even when the printer 10 is in the G / O state or the CL state. .

図8に示されるように、プリンタ10のICタグI/F22と携帯端末50のNFCI/Fとの間でNFC接続が確立され、その後、NFC接続を利用して読み出しコマンドが通信される様子は、第1実施例の図5と同様である。   As shown in FIG. 8, the NFC connection is established between the IC tag I / F 22 of the printer 10 and the NFC I / F of the portable terminal 50, and thereafter, the read command is communicated using the NFC connection. This is the same as FIG. 5 of the first embodiment.

プリンタ10のICタグI/F22は、携帯端末50から読み出しコマンドを受信する場合に、特定の通知を制御部30に供給する。これにより、CPU32は、図7のS10でYESと判断して、S50に進む。   The IC tag I / F 22 of the printer 10 supplies a specific notification to the control unit 30 when receiving a read command from the portable terminal 50. Accordingly, the CPU 32 determines YES in S10 of FIG. 7 and proceeds to S50.

S50では、CPU32は、プリンタ10の現在の状態がデバイス状態であるのか否かを判断する。具体的に言うと、CPU32は、メインメモリ34内のWFD状態値が、デバイス状態を示す値である場合には、S50でYESと判断して、S12に進む。S12〜S26の各処理は、図2のS12〜S26の各処理と同様である。   In S50, the CPU 32 determines whether or not the current state of the printer 10 is a device state. Specifically, if the WFD state value in the main memory 34 is a value indicating the device state, the CPU 32 determines YES in S50 and proceeds to S12. Each process of S12-S26 is the same as each process of S12-S26 of FIG.

一方において、CPU32は、メインメモリ34内のWFD状態値が、G/O状態又はCL状態を示す値である場合には、S50でNOと判断して、S52に進む。S52では、CPU32は、プリンタ10の現在の状態がCL状態であるのか否かを判断する。具体的に言うと、CPU32は、メインメモリ34内のWFD状態値が、CL状態を示す値である場合(即ち図8のケースD)には、S52でYESと判断して、S58に進む。一方において、CPU32は、メインメモリ34内のWFD状態値が、G/O状態を示す値である場合(即ち図8のケースC)には、S52でNOと判断して、S54に進む。   On the other hand, when the WFD state value in the main memory 34 is a value indicating the G / O state or the CL state, the CPU 32 determines NO in S50 and proceeds to S52. In S52, the CPU 32 determines whether or not the current state of the printer 10 is the CL state. Specifically, if the WFD state value in the main memory 34 is a value indicating the CL state (that is, case D in FIG. 8), the CPU 32 determines YES in S52 and proceeds to S58. On the other hand, if the WFD state value in the main memory 34 is a value indicating the G / O state (that is, case C in FIG. 8), the CPU 32 determines NO in S52 and proceeds to S54.

S54では、CPU32は、プリンタ10がG/O機器であるWFDネットワークに所属しているCL機器の数が、予め決められている上限値に一致するのか否かを判断する。具体的に言うと、CPU32は、まず、メインメモリ34内の管理リストに記述されているMACアドレスの数を読み出して、CL機器の数を特定する。そして、CPU32は、CL機器の数が上限値に一致する場合には、S54でYESと判断して、S58に進む。一方において、CPU32は、CL機器の数が上限値に一致しない場合、即ち、CL機器の数が上限値未満である場合には、S54でNOと判断して、S56に進む。   In S54, the CPU 32 determines whether or not the number of CL devices belonging to the WFD network in which the printer 10 is a G / O device matches a predetermined upper limit value. Specifically, the CPU 32 first reads the number of MAC addresses described in the management list in the main memory 34, and specifies the number of CL devices. If the number of CL devices matches the upper limit value, the CPU 32 determines YES in S54 and proceeds to S58. On the other hand, if the number of CL devices does not match the upper limit value, that is, if the number of CL devices is less than the upper limit value, the CPU 32 determines NO in S54 and proceeds to S56.

S56では、CPU32は、プリンタ10がG/O機器であるWFDネットワークで現在利用されているWFDWSI(即ち、上記のG/Oネゴシエーションの後に、プリンタ10によって生成されたWFDWSI)を、ICタグ用メモリ36に書き込む。そして、CPU32は、ICタグ用メモリ36内のWFDWSIをICタグI/F22に供給する。この結果、ICタグI/F22は、NFC接続を利用して、WFDWSIを携帯端末50に送信する。   In S56, the CPU 32 uses the WFD WSI currently used in the WFD network in which the printer 10 is a G / O device (that is, the WFD WSI generated by the printer 10 after the above G / O negotiation) as the IC tag memory. Write to 36. Then, the CPU 32 supplies the WFD WSI in the IC tag memory 36 to the IC tag I / F 22. As a result, the IC tag I / F 22 transmits the WFD WSI to the portable terminal 50 using the NFC connection.

CPU32は、S56を終えると、S18に進む。CPU32は、携帯端末50からProbe Request信号を受信する場合(S18でYES)に、プリンタ10及びPC110が
所属しているWFDネットワークに携帯端末50を参加させ(S20)、WFDネットワークを利用して携帯端末50から印刷データを受信し(S22)、印刷処理を実行する(S24)。なお、CPU32は、S24を終えても、G/O状態からデバイス状態に移行しない(即ちS26の処理を実行しない)。仮に、S26の処理が実行されると、プリンタ10及びPC110が所属しているWFDネットワークが消滅してしまい、プリンタ10がPC110から印刷データを受信することができなくなるからである。
After finishing S56, the CPU 32 proceeds to S18. When receiving a Probe Request signal from the portable terminal 50 (YES in S18), the CPU 32 causes the portable terminal 50 to participate in the WFD network to which the printer 10 and the PC 110 belong (S20), and is carried using the WFD network. Print data is received from the terminal 50 (S22), and print processing is executed (S24). Note that the CPU 32 does not shift from the G / O state to the device state even after finishing S24 (ie, does not execute the process of S26). If the processing of S26 is executed, the WFD network to which the printer 10 and the PC 110 belong will disappear, and the printer 10 will not be able to receive print data from the PC 110.

本実施例では、WFDネットワークにおいて、G/O機器は、当該WFDネットワークに他機器を参加させる権限を有するが、CL機器は、当該WFDネットワークに他機器を参加させる権限を有さない、というセキュリティポリシーを採用している。従って、S52でYESの場合、即ち、プリンタ10の状態がCL状態である間にNFC接続が確立される場合には、プリンタ10は、WFDネットワークに携帯端末50を参加させることができない。このために、S58において、CPU32は、プリンタ10がCL機器であるWFDネットワークで利用されているWFDWSIをICタグI/F22に供給せずに、WFD通信を実行不可能であることを示す情報(以下では「不可情報」と呼ぶ)をICタ
グI/F22に供給する。具体的に言うと、S58では、CPU32は、ICタグ用メモリ36に不可情報を書き込んで、ICタグ用メモリ36内の不可情報をICタグI/F22に供給する。これにより、ICタグI/F22は、NFC接続を利用して、不可情報を携帯端末50に送信する。
In this embodiment, in the WFD network, the G / O device has the authority to join other devices to the WFD network, but the CL device does not have the authority to join other devices to the WFD network. Adopt a policy. Therefore, if YES in S52, that is, if the NFC connection is established while the printer 10 is in the CL state, the printer 10 cannot join the portable terminal 50 to the WFD network. For this reason, in S58, the CPU 32 does not supply the WFD WSI used in the WFD network which is the CL device to the IC tag I / F 22, and indicates that the WFD communication cannot be executed ( (Hereinafter referred to as “impossible information”) is supplied to the IC tag I / F 22. Specifically, in S58, the CPU 32 writes the disabled information in the IC tag memory 36 and supplies the disabled information in the IC tag memory 36 to the IC tag I / F 22. Thereby, the IC tag I / F 22 transmits the disabled information to the portable terminal 50 using the NFC connection.

また、S54でYESの場合、即ち、プリンタ10の状態がG/O状態である間にNFC接続が確立されるが、CL機器の数が上限値に一致する場合には、CPU32は、管理対象のCL機器をこれ以上増やすことができないので、WFDネットワークに携帯端末50を参加させることができない。この場合も、S58において、CPU32は、不可情報をICタグI/F22に供給する。   If YES in S54, that is, the NFC connection is established while the printer 10 is in the G / O state, but the number of CL devices matches the upper limit value, the CPU 32 Since the number of CL devices cannot be increased any more, the portable terminal 50 cannot participate in the WFD network. Also in this case, in S58, the CPU 32 supplies the disabled information to the IC tag I / F 22.

次いで、S60において、CPU32は、モード変更指示をICタグI/F22に供給して、ICタグI/F22の動作モードを、ReadOnlyモードから、Writableモードに変更する。   Next, in S60, the CPU 32 supplies a mode change instruction to the IC tag I / F 22, and changes the operation mode of the IC tag I / F 22 from the ReadOnly mode to the Writeable mode.

携帯端末50(即ち印刷アプリケーション)は、プリンタ10から不可情報を受信する場合には、WFD通信ではなく、NFC通信を利用して、印刷データをプリンタ10に送信すべきことを決定する。そして、携帯端末50は、R/WモードのうちのWriterモードで動作することを決定し、NFC接続を利用して、NFC規格の書き込みコマンド及び印刷データをプリンタ10に送信する。   When receiving the impossibility information from the printer 10, the portable terminal 50 (that is, the printing application) determines that the print data should be transmitted to the printer 10 using NFC communication instead of WFD communication. Then, the mobile terminal 50 determines to operate in the writer mode of the R / W mode, and transmits an NFC standard write command and print data to the printer 10 using the NFC connection.

プリンタ10のICタグI/F22は、Writableモードで動作しているために(S60参照)、携帯端末50から書き込みコマンドを受信すると、書き込みコマンドに従って、書き込み応答動作を実行する。具体的に言うと、ICタグI/F22は、印刷データを制御部30に供給する。この結果、S62において、CPU32は、携帯端末50から、ICタグI/F22を介して、印刷データを受信する。   Since the IC tag I / F 22 of the printer 10 operates in the writeable mode (see S60), when the write command is received from the portable terminal 50, the write response operation is executed according to the write command. Specifically, the IC tag I / F 22 supplies print data to the control unit 30. As a result, in S <b> 62, the CPU 32 receives print data from the portable terminal 50 via the IC tag I / F 22.

次いで、S64において、CPU32は、印刷処理(S24と同様の処理)を実行する。続いて、S66において、CPU32は、モード変更指示をICタグI/F22に供給して、ICタグI/F22の動作モードを、Writableモードから、ReadOnlyモードに変更する。CPU32は、S66を終えると、S10に戻る。   Next, in S64, the CPU 32 executes a printing process (a process similar to S24). Subsequently, in S66, the CPU 32 supplies a mode change instruction to the IC tag I / F 22, and changes the operation mode of the IC tag I / F 22 from the writeable mode to the read only mode. After finishing S66, the CPU 32 returns to S10.

(第3実施例の効果)
本実施例では、プリンタ10がデバイス状態である間にNFC接続が確立される場合(図7のS50でYES)には、第1実施例と同様に、プリンタ10は、WFDWSIを携帯端末50に送信し(S14)、G/O機器であるプリンタ10のみが所属しているWFDネットワークを形成し(S16)、その後、プリンタ10及び携帯端末50の両方が所属しているWFDネットワークを形成する(S20)。このために、プリンタ10は、WFDネットワークを利用して携帯端末50から印刷データを受信し(S22)、印刷処理(S24)を適切に実行することができる。
(Effect of the third embodiment)
In this embodiment, when the NFC connection is established while the printer 10 is in the device state (YES in S50 of FIG. 7), the printer 10 sends WFD WSI to the portable terminal 50 as in the first embodiment. (S14), a WFD network to which only the printer 10 which is a G / O device belongs is formed (S16), and then a WFD network to which both the printer 10 and the portable terminal 50 belong is formed (S16). S20). For this reason, the printer 10 can receive the print data from the portable terminal 50 using the WFD network (S22) and appropriately execute the printing process (S24).

プリンタ10がG/O状態である間にNFC接続が確立される場合(図7のS52でNO)には、プリンタ10は、CL機器の数が上限値に一致するのか否かを判断する(S54)。プリンタ10は、CL機器の数が上限値に一致しないと判断される場合(S54でNO)には、WFDWSIを携帯端末50に送信し(S56)、プリンタ10及び携帯端末50の両方が所属しているWFDネットワークを形成する(S20)。このために、プリンタ10は、WFDネットワークを利用して携帯端末50から印刷データを受信し(S22)、印刷処理(S24)を適切に実行することができる。   When the NFC connection is established while the printer 10 is in the G / O state (NO in S52 of FIG. 7), the printer 10 determines whether or not the number of CL devices matches the upper limit value ( S54). If it is determined that the number of CL devices does not match the upper limit value (NO in S54), the printer 10 transmits WFDWSI to the portable terminal 50 (S56), and both the printer 10 and the portable terminal 50 belong. A WFD network is formed (S20). For this reason, the printer 10 can receive the print data from the portable terminal 50 using the WFD network (S22) and appropriately execute the printing process (S24).

一方において、プリンタ10は、CL機器の数が上限値に一致すると判断される場合(
S54でYES)には、不可情報を携帯端末50に送信し(S58)、NFC接続を利用して携帯端末50から印刷データを受信し(S62)、印刷処理(S64)を適切に実行することができる。
On the other hand, the printer 10 determines that the number of CL devices matches the upper limit value (
In S54, the inability information is transmitted to the portable terminal 50 (S58), print data is received from the portable terminal 50 using the NFC connection (S62), and the printing process (S64) is appropriately executed. Can do.

また、プリンタ10がCL状態である間にNFC接続が確立される場合(図7のS52でYES)には、プリンタ10は、不可情報を携帯端末50に送信し(S58)、NFC接続を利用して携帯端末50から印刷データを受信し(S62)、印刷処理(S64)を適切に実行することができる。   If the NFC connection is established while the printer 10 is in the CL state (YES in S52 in FIG. 7), the printer 10 transmits the disabled information to the portable terminal 50 (S58) and uses the NFC connection. Then, the print data is received from the portable terminal 50 (S62), and the print process (S64) can be appropriately executed.

上述したように、プリンタ10は、プリンタ10の状態に応じて適切な処理を実行して、印刷処理を適切に実行することができる。特に、プリンタ10は、NFC接続を利用して携帯端末50から印刷データを受信すべき場合(S52でYES又はS54でYES)には、ICタグI/F22の動作モードをWritableモードに変更するので(S60)、NFC接続を利用して携帯端末50から印刷データを適切に受信することができる(S62)。   As described above, the printer 10 can appropriately execute a printing process by executing an appropriate process according to the state of the printer 10. In particular, when the printer 10 should receive print data from the portable terminal 50 using NFC connection (YES in S52 or YES in S54), the operation mode of the IC tag I / F 22 is changed to the writeable mode. (S60) The print data can be appropriately received from the portable terminal 50 using the NFC connection (S62).

なお、NFC接続を利用して印刷データを受信する場合(S62)には、WFD接続を利用して印刷データを受信する場合(S22)と比べて、印刷データの通信に長時間を要する。ただし、例えば、A4サイズ等の印刷用紙のように比較的に大きな印刷媒体に印刷可能な通常のプリンタではなく、ラミネートフィルム等のラベルのように比較的に小さな印刷媒体に印刷可能ないわゆるラベルプリンタでは、印刷データのデータサイズが比較的に小さいので、NFC接続を利用して印刷データを受信する構成を採用しても、印刷データの通信時間が長いという不満をユーザに感じさせるのを抑制し得る。即ち、プリンタ10は、通常のプリンタであってもよいが、ラベルプリンタであることが好ましい。   When print data is received using an NFC connection (S62), it takes a longer time to communicate print data than when print data is received using a WFD connection (S22). However, for example, a so-called label printer capable of printing on a relatively small print medium such as a label such as a laminate film, not a normal printer capable of printing on a relatively large print medium such as A4 size printing paper. Then, since the data size of the print data is relatively small, even if a configuration for receiving the print data using the NFC connection is adopted, it is possible to prevent the user from feeling dissatisfied with the long communication time of the print data. obtain. That is, the printer 10 may be a normal printer, but is preferably a label printer.

(対応関係)
ReadOnlyモード、Writableモードが、それぞれ、「第1のモード」、「第2のモード」の一例である。S50でYESの場合、S52でNOの場合、S52でYESの場合が、それぞれ、「第1の場合」、「第2の場合」、「第3の場合」の一例である。CL状態が、「子局状態」の一例である。S14の処理のみならず、S56の処理も、「インターフェース制御部」によって実行される処理の一例である。また、S54の処理が「判断部」によって実行される処理の一例である。
(Correspondence)
The ReadOnly mode and the Writeable mode are examples of the “first mode” and the “second mode”, respectively. The case of YES in S50, the case of NO in S52, and the case of YES in S52 are examples of “first case”, “second case”, and “third case”, respectively. The CL state is an example of “slave station state”. Not only the process of S14 but also the process of S56 is an example of a process executed by the “interface control unit”. Further, the process of S54 is an example of a process executed by the “determination unit”.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。   Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. The modifications of the above embodiment are listed below.

(変形例1)「第1の通信機器」は、プリンタ10に限られず、スキャナ、コピー機、多機能機、携帯端末、PC、サーバ等であってもよい。例えば、スキャナが「第1の通信機器」の一例である変形例では、スキャナのCPUは、スキャナ及び携帯端末が所属しているWFDネットワークを利用して、無線LANI/Fを介して、スキャンデータを携帯端末に送信してもよい。この変形例では、スキャンデータが「対象データ」の一例である。また、例えば、PCが「第1の通信機器」の一例である実施例では、PCのCPUは、PC及び携帯端末が所属しているWFDネットワークを利用して、無線LANI/Fを介して、PC内のデータファイル(例えば文書ファイル等)を携帯端末に送信してもよい。この変形例では、データファイルが「対象データ」の一例である。また、「第2の通信機器」は、携帯端末50に限られず、プリンタ、スキャナ、コピー機、多機能機、PC、サーバ等であってもよい。 (Modification 1) The “first communication device” is not limited to the printer 10 and may be a scanner, a copier, a multi-function device, a portable terminal, a PC, a server, or the like. For example, in a modification in which the scanner is an example of “first communication device”, the CPU of the scanner uses the WFD network to which the scanner and the portable terminal belong to and scan data via the wireless LAN I / F. May be transmitted to the mobile terminal. In this modification, the scan data is an example of “target data”. Further, for example, in an embodiment in which the PC is an example of “first communication device”, the CPU of the PC uses the WFD network to which the PC and the mobile terminal belong, via the wireless LAN I / F. A data file (for example, a document file) in the PC may be transmitted to the mobile terminal. In this modification, the data file is an example of “target data”. The “second communication device” is not limited to the portable terminal 50, and may be a printer, a scanner, a copier, a multi-function device, a PC, a server, or the like.

(変形例2)「第2種のインターフェース」は、WFD通信を実行するための無線LAN
I/F20に限られず、例えば、アクセスポイント(以下では「AP」と呼ぶ)を介した無線通信を実行するための無線LANI/Fであってもよい。本変形例では、プリンタ10のCPU32は、APによって形成されている特定の無線ネットワークに所属している場合に、NFC接続を利用して、上記の特定の無線ネットワークのSSIDを携帯端末50に送信してもよい。この場合、携帯端末50は、当該SSIDを含むProbe Request信
号をAPに送信して、上記の特定の無線ネットワークに参加してもよい。この場合も、プリンタ10のCPU32は、プリンタ10及び携帯端末50の両方が所属している上記の特定の無線ネットワークを利用して(即ちAPを介して)、携帯端末50から印刷データを受信することができる。
(Modification 2) The “second type interface” is a wireless LAN for executing WFD communication.
The interface is not limited to the I / F 20, and may be a wireless LAN I / F for executing wireless communication via an access point (hereinafter referred to as “AP”), for example. In this modification, the CPU 32 of the printer 10 transmits the SSID of the specific wireless network to the portable terminal 50 using the NFC connection when belonging to the specific wireless network formed by the AP. May be. In this case, the mobile terminal 50 may participate in the specific wireless network by transmitting a Probe Request signal including the SSID to the AP. Also in this case, the CPU 32 of the printer 10 receives print data from the portable terminal 50 by using the specific wireless network to which both the printer 10 and the portable terminal 50 belong (that is, via the AP). be able to.

(変形例3)「第2種のインターフェース」は、無線LANI/F20に限られず、例えば、BlueTooth(登録商標)の無線通信を実行するためのBTI/Fであってもよい。本変形例では、BlueTooth(登録商標)の無線ネットワークで利用されるパスキー(即ちPIN)が、「ネットワーク識別情報」の一例である。なお、NFC通信の通信速度の高速化が図れられた場合には、BTI/Fを介した無線通信の通信速度は、NFCI/F22を介した無線通信の通信速度よりも遅くてもよい。一般的に言うと、第2種のインターフェースを介した無線通信の通信速度は、第1種のインターフェースを介した無線通信の通信速度よりも速くてもよいし遅くてもよい。 (Modification 3) The “second type interface” is not limited to the wireless LAN I / F 20, and may be, for example, a BTI / F for executing Bluetooth communication (registered trademark). In this modification, a passkey (that is, a PIN) used in a Bluetooth network of Bluetooth (registered trademark) is an example of “network identification information”. Note that when the NFC communication speed is increased, the wireless communication speed via the BTI / F may be slower than the wireless communication speed via the NFC I / F 22. Generally speaking, the communication speed of wireless communication via the second type interface may be faster or slower than the communication speed of wireless communication via the first type interface.

(変形例4)図2において、プリンタ10のCPU32は、S16の処理を実行し、その後、S14の処理を実行してもよい。一般的に言うと、CPU32は、上記の各実施例のように、S12の処理でSSIDを生成した後に、S14の処理でプリンタ10の状態をデバイス状態からG/O状態に移行させてもよいし、本変形例のように、S14の処理でプリンタ10の状態をデバイス状態からG/O状態に移行させた後に、S12の処理でSSIDを生成してもよい。 (Modification 4) In FIG. 2, the CPU 32 of the printer 10 may execute the process of S16 and then execute the process of S14. Generally speaking, the CPU 32 may shift the state of the printer 10 from the device state to the G / O state in the process of S14 after generating the SSID in the process of S12 as in the above embodiments. Then, as in this modification, after the state of the printer 10 is shifted from the device state to the G / O state in the process of S14, the SSID may be generated in the process of S12.

(変形例5)図2のS16では、プリンタ10のCPU32は、プリンタ10の状態をWFD規格のデバイス状態からG/O状態に移行させることによって、無線ネットワークを形成する。これに代えて、CPU32は、いわゆるSoftAPを起動させることによって、プリンタ10がAPとして動作する無線ネットワークを形成してもよい。本変形例では、CPU32は、S12において、当該無線ネットワークで利用される無線設定情報(SSID、BSSID等)を生成し、S14において、当該無線設定情報をICタグI/F22に供給する。本変形例でも、S18〜S24は同様に実行される。S26では、CPU32は、SoftAPを停止させる。本変形例では、SoftAPが起動された状態が、「親局状態」の一例である。 (Modification 5) In S16 of FIG. 2, the CPU 32 of the printer 10 forms a wireless network by shifting the state of the printer 10 from the device state of the WFD standard to the G / O state. Alternatively, the CPU 32 may form a wireless network in which the printer 10 operates as an AP by activating so-called Soft AP. In this modification, the CPU 32 generates wireless setting information (SSID, BSSID, etc.) used in the wireless network in S12, and supplies the wireless setting information to the IC tag I / F 22 in S14. Also in this modification, S18-S24 are performed similarly. In S26, the CPU 32 stops the Soft AP. In the present modification, the state where the Soft AP is activated is an example of the “master station state”.

(変形例6)上記の実施例では、プリンタ10のCPU32がメインメモリ34内のプログラム(即ちソフトウェア)を実行することによって、図2、図4、又は、図7の各処理が実現される。これに代えて、図2、図4、又は、図7の各処理のうちの少なくとも1つの処理は、論理回路等のハードウェアによって実現されてもよい。 (Modification 6) In the above-described embodiment, the CPU 32 of the printer 10 executes the program (that is, software) in the main memory 34, thereby realizing the processes in FIG. 2, FIG. 4, or FIG. Instead, at least one of the processes in FIG. 2, FIG. 4, or FIG. 7 may be realized by hardware such as a logic circuit.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。   The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.

2:通信システム、10:プリンタ、12:操作パネル、14:表示機構、16:印刷機構、20:無線LANI/F、22:ICタグI/F、30:制御部、34: メイン
メモリ、36:ICタグ用メモリ、50:携帯端末、110:PC
2: communication system, 10: printer, 12: operation panel, 14: display mechanism, 16: printing mechanism, 20: wireless LAN I / F, 22: IC tag I / F, 30: control unit, 34: main memory, 36 : IC tag memory, 50: mobile terminal, 110: PC

Claims (17)

第1の通信機器であって、
IC(Integrated Circuit)タグとして機能する第1種のインターフェースと、
第2種のインターフェースと、
制御部と、を備え、
前記制御部は、
前記第1の通信機器及び第2の通信機器の間に確立される第1の無線接続を利用した送信動作を、前記第1種のインターフェースに実行させるインターフェース制御部であって、前記送信動作は、前記第1種のインターフェースが、前記第1及び第2の通信機器の両方が所属すべき第1の無線ネットワークで利用されるネットワーク識別情報を、前記第2の通信機器に送信する動作を含む、前記インターフェース制御部と、
前記第1種のインターフェースが前記送信動作を実行した後に、前記第1及び第2の通信機器の両方が所属している前記第1の無線ネットワークを利用して、前記第2種のインターフェースを介して、通信対象の対象データの無線通信を前記第2の通信機器と実行するデータ通信部と、
を備える、第1の通信機器。
A first communication device,
A first type interface that functions as an IC (Integrated Circuit) tag;
A second type of interface;
A control unit,
The controller is
An interface control unit that causes the first type of interface to perform a transmission operation using a first wireless connection established between the first communication device and the second communication device, wherein the transmission operation includes: The first type interface includes an operation of transmitting network identification information used in the first wireless network to which both the first and second communication devices belong to the second communication device. The interface controller;
After the first type interface performs the transmission operation, the first type wireless network to which both the first and second communication devices belong is used to connect the first type interface via the second type interface. A data communication unit that executes wireless communication of target data to be communicated with the second communication device;
A first communication device comprising:
前記第1の通信機器は、さらに、
前記第2の通信機器から、前記第2種のインターフェースを介して、前記ネットワーク識別情報を含む特定の信号を受信する場合に、前記第2種のインターフェースを介して、前記第1及び第2の通信機器の間に第2の無線接続を確立して、前記第1及び第2の通信機器の両方が所属している前記第1の無線ネットワークを形成する形成部を備える、請求項1に記載の第1の通信機器。
The first communication device further includes:
When a specific signal including the network identification information is received from the second communication device via the second type interface, the first and second types are received via the second type interface. 2. The apparatus according to claim 1, further comprising: a forming unit that establishes a second wireless connection between communication devices to form the first wireless network to which both the first and second communication devices belong. The first communication device.
前記第1の通信機器は、無線ネットワークの親局として機能する親局状態と、前記無線ネットワークに所属していない状態である無所属状態と、を含む複数個の状態のうちのいずれかの状態で、選択的に動作し、
前記制御部は、さらに、
前記第1の通信機器の状態が前記無所属状態である間に前記第1の無線接続が確立される第1の場合に、前記第1の通信機器の状態を前記無所属状態から前記親局状態に移行させて、前記第1の通信機器のみが所属している前記第1の無線ネットワークを形成する状態移行部を備え、
前記形成部は、前記第1の通信機器のみが所属している前記第1の無線ネットワークが形成された後に、前記特定の信号を受信する場合に、前記第2の無線接続を確立して、前記第1及び第2の通信機器の両方が所属している前記第1の無線ネットワークを形成する、請求項2に記載の第1の通信機器。
The first communication device is in one of a plurality of states including a parent station state that functions as a parent station of a wireless network and an unaffiliated state that does not belong to the wireless network. Works selectively,
The control unit further includes:
In the first case where the first wireless connection is established while the state of the first communication device is the unaffiliated state, the state of the first communication device is changed from the unaffiliated state to the master station state. Including a state transition unit that forms the first wireless network to which only the first communication device belongs,
The forming unit establishes the second wireless connection when receiving the specific signal after the first wireless network to which only the first communication device belongs is formed, The first communication device according to claim 2, wherein the first communication device forms the first wireless network to which both the first and second communication devices belong.
前記第1種のインターフェースは、前記第1の無線接続が確立される場合に、特定の通知を前記制御部に供給し、
前記インターフェース制御部は、前記第1の場合において、前記第1種のインターフェースから前記特定の通知が取得される場合に、前記ネットワーク識別情報を生成して、前記ネットワーク識別情報を前記第1種のインターフェースに供給する、請求項3に記載の第1の通信機器。
The first type interface supplies a specific notification to the control unit when the first wireless connection is established;
In the first case, when the specific notification is acquired from the first type interface, the interface control unit generates the network identification information and converts the network identification information into the first type. The first communication device according to claim 3, wherein the first communication device supplies the interface.
前記状態移行部は、前記第1の場合に、前記ネットワーク識別情報が生成された後に、前記第1の通信機器の状態を前記無所属状態から前記親局状態に移行させる、請求項4に記載の第1の通信機器。   5. The state transition unit according to claim 4, wherein in the first case, after the network identification information is generated, the state transition unit shifts the state of the first communication device from the unaffiliated state to the parent station state. First communication device. 前記インターフェース制御部は、前記第1の通信機器が前記親局として機能する第2の
無線ネットワークが消滅する際に、前記第2の無線ネットワークの後に形成されるべき前記第1の無線ネットワークで利用される前記ネットワーク識別情報を生成して、前記ネットワーク識別情報を前記第1種のインターフェースに供給する、請求項3に記載の第1の通信機器。
The interface control unit is used in the first wireless network to be formed after the second wireless network when the second wireless network in which the first communication device functions as the master station disappears. The first communication device according to claim 3, wherein the network identification information is generated and the network identification information is supplied to the first type interface.
前記第1種のインターフェースは、前記第1の無線接続が確立される場合に、特定の通知を前記制御部に供給し、
前記状態移行部は、前記第1の場合において、前記第1種のインターフェースから前記特定の通知が取得される場合に、前記第1の通信機器の状態を前記無所属状態から前記親局状態に移行させる、請求項6に記載の第1の通信機器。
The first type interface supplies a specific notification to the control unit when the first wireless connection is established;
In the first case, the state transition unit transitions the state of the first communication device from the unaffiliated state to the master station state when the specific notification is acquired from the first type interface. The first communication device according to claim 6, wherein
前記第1種のインターフェースは、前記第1の無線接続が確立される場合に、特定の通知を前記制御部に供給し、
前記インターフェース制御部は、前記第1種のインターフェースから前記特定の通知が取得される場合に、前記ネットワーク識別情報を前記第1種のインターフェースに供給する、請求項1から5のいずれか一項に記載の第1の通信機器。
The first type interface supplies a specific notification to the control unit when the first wireless connection is established;
6. The interface control unit according to claim 1, wherein the interface control unit supplies the network identification information to the first type interface when the specific notification is acquired from the first type interface. 7. 1st communication apparatus of description.
前記インターフェース制御部は、さらに、前記第1種のインターフェースの動作モードが第1のモードである状態で、前記第1の無線接続が確立されるように、前記第1種のインターフェースの前記動作モードを制御し、
前記第1のモードは、
前記第1種のインターフェースが、前記第1の通信機器の外部から読み出しコマンドを受信する場合に、前記読み出しコマンドに応じて、前記第1の通信機器の外部に情報を送信する動作を実行するモードであり、かつ、
前記第1種のインターフェースが、前記第1の通信機器の外部から書き込みコマンドを受信しても、前記書き込みコマンドに応じた動作を実行しないモードである、請求項1から8のいずれか一項に記載の第1の通信機器。
The interface control unit further includes the operation mode of the first type interface so that the first wireless connection is established in a state where the operation mode of the first type interface is the first mode. Control
The first mode is:
A mode in which, when the first type interface receives a read command from the outside of the first communication device, an operation of transmitting information to the outside of the first communication device according to the read command And
9. The mode according to claim 1, wherein the first type interface is in a mode in which an operation corresponding to the write command is not executed even when a write command is received from outside the first communication device. 10. 1st communication apparatus of description.
前記第1種のインターフェースは、NFC(Near Field Communication)規格の前記ICタグとして機能し、
前記インターフェース制御部は、前記NFC規格の前記第1の無線接続を利用した前記送信動作を、前記第1種のインターフェースに実行させる、請求項1から9のいずれか一項に記載の第1の通信機器。
The first type interface functions as the IC tag of NFC (Near Field Communication) standard,
10. The first interface according to claim 1, wherein the interface control unit causes the first type interface to execute the transmission operation using the first wireless connection of the NFC standard. 11. Communication equipment.
前記第2種のインターフェースは、前記NFC規格とは異なる特定の規格に従って、無線通信を実行するためのインターフェースであり、
前記インターフェース制御部は、前記第2の通信機器が、前記特定の規格に従って前記対象データの無線通信を実行するためのアプリケーションを備える場合でも、前記アプリケーションを備えない場合でも、前記第1の無線接続が確立される場合に、前記第1種のインターフェースに前記送信動作を実行させ、
前記データ通信部は、
前記第2の通信機器が前記アプリケーションを備える場合に、前記対象データの無線通信を前記第2の通信機器と実行し、
前記第2の通信機器が前記アプリケーションを備えない場合に、前記対象データの無線通信を前記第2の通信機器と実行しない、請求項10に記載の第1の通信機器。
The second type interface is an interface for performing wireless communication according to a specific standard different from the NFC standard,
The interface control unit includes the first wireless connection regardless of whether the second communication device includes an application for performing wireless communication of the target data according to the specific standard or not. Is established, causing the first type interface to perform the transmission operation,
The data communication unit is
When the second communication device includes the application, wireless communication of the target data is executed with the second communication device,
11. The first communication device according to claim 10, wherein when the second communication device does not include the application, wireless communication of the target data is not performed with the second communication device.
前記制御部は、さらに、
前記第1の通信機器の状態が前記親局状態である間に前記第1の無線接続が確立される第2の場合であって、前記第1の通信機器が親局として機能する前記第1の無線ネットワークが存在する前記第2の場合に、前記第1の無線ネットワークに所属している子局状態
の機器である子局機器の数が、予め決められている上限値に一致するのか否かを判断する判断部を備え、
前記第2の場合において、前記子局機器の数が前記上限値に一致しないと判断される場合に、
前記インターフェース制御部は、前記第1種のインターフェースに前記送信動作を実行させ、
前記データ通信部は、前記第1の無線ネットワークを利用して、前記第2種のインターフェースを介して、前記対象データの無線通信を前記第2の通信機器と実行し、
前記第2の場合において、前記子局機器の数が前記上限値に一致すると判断される場合に、
前記インターフェース制御部は、前記第1種のインターフェースに前記送信動作を実行させず、
前記データ通信部は、前記第1の無線接続を利用して、前記第1種のインターフェースを介して、前記対象データの無線通信を前記第2の通信機器と実行する、請求項3から5のいずれか一項に記載の第1の通信機器。
The control unit further includes:
In the second case where the first wireless connection is established while the state of the first communication device is the parent station state, the first communication device functions as a parent station. Whether the number of slave station devices that are slave station devices belonging to the first wireless network matches a predetermined upper limit value in the second case where there is a wireless network of A determination unit for determining whether
In the second case, when it is determined that the number of slave station devices does not match the upper limit value,
The interface control unit causes the first type interface to perform the transmission operation;
The data communication unit performs wireless communication of the target data with the second communication device via the second type interface using the first wireless network,
In the second case, when it is determined that the number of the slave station devices matches the upper limit value,
The interface control unit does not cause the first type interface to perform the transmission operation;
6. The data communication unit according to claim 3, wherein the data communication unit executes wireless communication of the target data with the second communication device via the first type interface using the first wireless connection. The 1st communication apparatus as described in any one.
前記複数個の状態は、さらに、前記第1の通信機器が前記無線ネットワークの子局として機能する子局状態を含み、
前記第1の通信機器の状態が前記子局状態である間に前記第1の無線接続が確立される第3の場合に、
前記インターフェース制御部は、前記第1種のインターフェースに前記送信動作を実行させず、
前記データ通信部は、前記第1の無線接続を利用して、前記第1種のインターフェースを介して、前記対象データの無線通信を前記第2の通信機器と実行する、請求項3から5及び12のいずれか一項に記載の第1の通信機器。
The plurality of states further include a slave station state in which the first communication device functions as a slave station of the wireless network,
In the third case where the first wireless connection is established while the state of the first communication device is the slave station state,
The interface control unit does not cause the first type interface to perform the transmission operation;
The data communication unit performs wireless communication of the target data with the second communication device via the first type interface using the first wireless connection. The first communication device according to any one of 12.
前記インターフェース制御部は、さらに、前記第1種のインターフェースの動作モードが第1のモードである状態で、前記第1の無線接続が確立されるように、前記第1種のインターフェースの前記動作モードを制御し、
前記第1のモードは、
前記第1種のインターフェースが、前記第1の通信機器の外部から読み出しコマンドを受信する場合に、前記読み出しコマンドに応じて、前記第1の通信機器の外部に情報を送信する動作を実行するモードであり、かつ、
前記第1種のインターフェースが、前記第1の通信機器の外部から書き込みコマンドを受信しても、前記書き込みコマンドに応じた動作を実行しないモードであり、
前記インターフェース制御部は、さらに、前記第1種のインターフェースに前記送信動作を実行させない場合に、前記第1種のインターフェースの前記動作モードを前記第1のモードから第2のモードに変更し、
前記第2のモードは、前記第1の通信機器の外部から前記書き込みコマンドを受信する場合に、前記書き込みコマンドに応じて、前記第1の通信機器の外部から情報を受信して、前記情報を前記制御部に供給するモードであり、
前記データ通信部は、前記第1種のインターフェースの前記動作モードが前記第2のモードである状態で、前記第1の無線接続を利用して、前記第1種のインターフェースを介して、前記第2の通信機器から前記対象データを受信する、請求項12又は13に記載の第1の通信機器。
The interface control unit further includes the operation mode of the first type interface so that the first wireless connection is established in a state where the operation mode of the first type interface is the first mode. Control
The first mode is:
A mode in which, when the first type interface receives a read command from the outside of the first communication device, an operation of transmitting information to the outside of the first communication device according to the read command And
The first type interface is a mode that does not execute an operation according to the write command even if the write command is received from outside the first communication device.
The interface control unit further changes the operation mode of the first type interface from the first mode to the second mode when not causing the first type interface to perform the transmission operation.
In the second mode, when the write command is received from the outside of the first communication device, information is received from the outside of the first communication device according to the write command, and the information is A mode for supplying to the control unit;
The data communication unit uses the first wireless connection and the first type interface in a state where the operation mode of the first type interface is the second mode. The first communication device according to claim 12, wherein the target data is received from two communication devices.
前記第2種のインターフェースを介した無線通信の通信速度は、前記第1種のインターフェースを介した無線通信の通信速度よりも速い、請求項1から14のいずれか一項に記載の第1の通信機器。   The communication speed of wireless communication via the second type interface is faster than the communication speed of wireless communication via the first type interface. Communication equipment. 前記データ通信部は、前記第1の無線ネットワークを利用して、前記第2種のインターフェースを介して、前記第2の通信機器から前記対象データを受信し、
前記第1の通信機器は、さらに、
受信済みの前記対象データによって表わされる画像の印刷を実行する印刷機構を備える、請求項1から15のいずれか一項に記載の第1の通信機器。
The data communication unit receives the target data from the second communication device via the second type interface using the first wireless network,
The first communication device further includes:
The first communication device according to claim 1, further comprising a printing mechanism that executes printing of an image represented by the received target data.
第1の通信機器のためのコンピュータプログラムであって、
前記第1の通信機器は、
ICタグとして機能する第1種のインターフェースと、
第2種のインターフェースと、を備え、
前記コンピュータプログラムは、前記第1の通信機器に搭載されるコンピュータに、以下の各処理、即ち、
前記第1の通信機器及び第2の通信機器の間に確立される第1の無線接続を利用した送信動作を、前記第1種のインターフェースに実行させるインターフェース制御処理であって、前記送信動作は、前記第1種のインターフェースが、前記第1及び第2の通信機器の両方が所属すべき第1の無線ネットワークで利用されるネットワーク識別情報を、前記第2の通信機器に送信する動作を含む、前記インターフェース制御処理と、
前記第1種のインターフェースが前記送信動作を実行した後に、前記第1及び第2の通信機器の両方が所属している前記第1の無線ネットワークを利用して、前記第2種のインターフェースを介して、通信対象の対象データの無線通信を前記第2の通信機器と実行するデータ通信処理と、
を実行させるコンピュータプログラム。
A computer program for a first communication device, comprising:
The first communication device is:
A first type interface that functions as an IC tag;
A second type interface,
The computer program stores the following processes in a computer mounted on the first communication device, that is,
An interface control process for causing the first type of interface to perform a transmission operation using a first wireless connection established between the first communication device and the second communication device, wherein the transmission operation includes: The first type interface includes an operation of transmitting network identification information used in the first wireless network to which both the first and second communication devices belong to the second communication device. The interface control process;
After the first type interface performs the transmission operation, the first type wireless network to which both the first and second communication devices belong is used to connect the first type interface via the second type interface. Data communication processing for executing wireless communication of target data to be communicated with the second communication device;
A computer program that executes
JP2016112452A 2016-06-06 2016-06-06 Communication equipment Active JP6319364B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016112452A JP6319364B2 (en) 2016-06-06 2016-06-06 Communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016112452A JP6319364B2 (en) 2016-06-06 2016-06-06 Communication equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013040088A Division JP5945965B2 (en) 2013-02-28 2013-02-28 Communication equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2018072879A Division JP6547870B2 (en) 2018-04-05 2018-04-05 Communication equipment

Publications (2)

Publication Number Publication Date
JP2016178686A true JP2016178686A (en) 2016-10-06
JP6319364B2 JP6319364B2 (en) 2018-05-09

Family

ID=57070422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016112452A Active JP6319364B2 (en) 2016-06-06 2016-06-06 Communication equipment

Country Status (1)

Country Link
JP (1) JP6319364B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018137582A (en) * 2017-02-21 2018-08-30 ブラザー工業株式会社 Communication device and computer program for terminal device
JP2019075722A (en) * 2017-10-17 2019-05-16 キヤノン株式会社 Information processing apparatus, control method for information processing apparatus, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009207069A (en) * 2008-02-29 2009-09-10 Sony Corp Information processing equipment, its method, and program
US20120265913A1 (en) * 2011-04-18 2012-10-18 Nokia Corporation Method, apparatus and computer program product for creating a wireless docking group
WO2013153925A1 (en) * 2012-04-10 2013-10-17 ソニー株式会社 Communication apparatus, communication control method and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009207069A (en) * 2008-02-29 2009-09-10 Sony Corp Information processing equipment, its method, and program
US20120265913A1 (en) * 2011-04-18 2012-10-18 Nokia Corporation Method, apparatus and computer program product for creating a wireless docking group
WO2013153925A1 (en) * 2012-04-10 2013-10-17 ソニー株式会社 Communication apparatus, communication control method and program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018137582A (en) * 2017-02-21 2018-08-30 ブラザー工業株式会社 Communication device and computer program for terminal device
JP6992258B2 (en) 2017-02-21 2022-01-13 ブラザー工業株式会社 Computer programs for communication and terminal equipment
US11252549B2 (en) 2017-02-21 2022-02-15 Brother Kogyo Kabushiki Kaisha Communication device configured to switch wireless networks based on information received from a terminal device and to establish a wireless connection with the terminal device and non-transitory computer-readable medium for a terminal device establishing a wireless connection with a communication device
JP2019075722A (en) * 2017-10-17 2019-05-16 キヤノン株式会社 Information processing apparatus, control method for information processing apparatus, and program
JP7073072B2 (en) 2017-10-17 2022-05-23 キヤノン株式会社 Information processing equipment, control methods and programs for information processing equipment
JP2022097668A (en) * 2017-10-17 2022-06-30 キヤノン株式会社 Information processing apparatus, control method for information processing apparatus, and program

Also Published As

Publication number Publication date
JP6319364B2 (en) 2018-05-09

Similar Documents

Publication Publication Date Title
JP5945965B2 (en) Communication equipment
US11575802B2 (en) Communication apparatus and printer for performing wireless communication of image data representing image of print target
US11902869B2 (en) Communication device
US11012149B2 (en) Communication device and terminal device
US9042940B2 (en) Technique for executing communication of object data with mobile device
JP6503968B2 (en) Communication device and computer program for communication device
EP2713672B1 (en) Wireless slave devices configuration and communication therewith
JP2023155375A (en) Communication apparatus
JP6319364B2 (en) Communication equipment
JP6547870B2 (en) Communication equipment
JP6795059B2 (en) Communication equipment
JP6844641B2 (en) Communication equipment and computer programs for communication equipment
US20240137743A1 (en) Communication Device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160706

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160706

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20160810

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20160810

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170801

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170920

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180306

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180319

R150 Certificate of patent or registration of utility model

Ref document number: 6319364

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150