JP6701415B2 - Communication device, control method, and program - Google Patents

Communication device, control method, and program Download PDF

Info

Publication number
JP6701415B2
JP6701415B2 JP2019108082A JP2019108082A JP6701415B2 JP 6701415 B2 JP6701415 B2 JP 6701415B2 JP 2019108082 A JP2019108082 A JP 2019108082A JP 2019108082 A JP2019108082 A JP 2019108082A JP 6701415 B2 JP6701415 B2 JP 6701415B2
Authority
JP
Japan
Prior art keywords
communication
wireless communication
target device
predetermined
wireless
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.)
Active
Application number
JP2019108082A
Other languages
Japanese (ja)
Other versions
JP2019193282A (en
Inventor
松下 剛
剛 松下
充 紺地
充 紺地
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Publication of JP2019193282A publication Critical patent/JP2019193282A/en
Application granted granted Critical
Publication of JP6701415B2 publication Critical patent/JP6701415B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Description

本発明は、通信装置に関し、特に、近距離無線通信が可能な通信技術に関するものである。   The present invention relates to a communication device, and more particularly to a communication technology capable of short-range wireless communication.

近年、デジタルカメラや携帯電話等の外部装置から、NFCをはじめとする近距離無線通信によって通信相手を特定する。そして、近距離無線通信とは別の無線通信によってデジタルカメラや携帯電話に保持される画像ファイルを画像出力装置で出力するシステムが知られている。   In recent years, an external device such as a digital camera or a mobile phone is used to identify a communication partner by short-range wireless communication such as NFC. There is known a system in which an image output device outputs an image file held in a digital camera or a mobile phone by wireless communication other than short-range wireless communication.

また、ネットワーク機能の一環として、アクセスポイント経由でインターネットに接続することにより、インターネット経由でのリモート印刷機能やファームウエアのアップデート機能を有するものがある。さらに、アクセスポイントがない状態でも、ホスト端末は、画像出力装置が備えるアクセスポイント機能を使って、両者間でピアツーピア(P2P)接続を行い印刷およびスキャンを実行することも可能である。なお、ホスト端末が、画像出力装置が備えるアクセスポイントを使ってP2Pで無線通信を行うモードをAPモードと呼ぶ。   Further, as a part of the network function, there is one that has a remote printing function via the Internet and a firmware update function by connecting to the Internet via an access point. Further, even when there is no access point, the host terminal can use the access point function of the image output device to perform peer-to-peer (P2P) connection between them and execute printing and scanning. The mode in which the host terminal performs wireless communication in P2P using the access point included in the image output device is called an AP mode.

しかし、画像出力装置がAPモードになってしまうとホスト端末とP2P接続となり、アクセスポイントへの接続が切断され、インターネット接続ができなくなる。その結果、画像出力装置は、前述したインターネット接続を必要とする様々な機能が使えなくなってしまうことがある。   However, when the image output device is in the AP mode, it becomes a P2P connection with the host terminal, the connection to the access point is cut off, and it becomes impossible to connect to the Internet. As a result, the image output device may not be able to use the various functions that require the Internet connection described above.

さらに、APモードで動作中のホスト端末も、P2P接続の接続先がインターネット接続できない場合は、ホスト端末自体もインターネット接続ができなくなるおそれがある。このような状況では、ホスト端末内のアプリケーションからもインターネットへのアクセセスができなくなり、例えば、ブラウザではインターネット上のサイトを閲覧することができなくなってしまう。   Further, even if the host terminal operating in the AP mode cannot connect to the Internet at the P2P connection destination, the host terminal itself may not be able to connect to the Internet. In such a situation, the application in the host terminal cannot access the Internet, and for example, the browser cannot browse the site on the Internet.

特許文献1においては、第1無線通信装置に第2無線通信装置が近づけられた場合に、アクセスポイント経由で第1無線通信装置がデータ通信中であれば、第1無線通信装置は第2無線通信装置とのP2P接続への移行を行わないようにすることが開示されている。   In Patent Document 1, when the first wireless communication device is in data communication via the access point when the second wireless communication device is brought close to the first wireless communication device, the first wireless communication device is the second wireless communication device. It is disclosed that the transition to the P2P connection with the communication device is not performed.

特開2011−182449号公報JP, 2011-182449, A

しかしながら、特許文献1の技術では、第1無線通信装置がアクセスポイント経由でインターネットとデータ通信を行っていない場合、第1無線通信装置の通信設定がP2P接続に変更されてしまう。例えば、第1無線通信装置がアクセスポイント経由でインターネットとデータ通信を行っていない状況で第2無線通信装置から接続要求を受けた場合、第1無線通信装置は、P2P接続へ移行する。その後、ユーザーが第1および第2無線通信装置間でP2P接続中に第1無線通信装置を使ってインターネットに接続したいと考えても、ユーザーの意図した操作を行うためにはP2P接続が終了するまで待機する必要がある。よって、ユーザーの利便性が低下するおそれがあった。   However, in the technique of Patent Document 1, when the first wireless communication device is not performing data communication with the Internet via an access point, the communication setting of the first wireless communication device is changed to P2P connection. For example, when the first wireless communication device receives a connection request from the second wireless communication device in a situation where the first wireless communication device is not performing data communication with the Internet via the access point, the first wireless communication device shifts to P2P connection. After that, even if the user wants to connect to the Internet using the first wireless communication device during the P2P connection between the first and second wireless communication devices, the P2P connection ends in order to perform the operation intended by the user. Need to wait until. Therefore, the convenience of the user may be reduced.

本発明は、上記の課題を解決するためになされたものであり、通信装置であって、
対象装置と、第1無線通信を実行する第1実行手段と、
前記通信装置が参加している所定のネットワークに、所定の命令をブロードキャストするブロードキャスト手段と、
前記所定の命令がブロードキャストされた場合、前記所定のネットワークに参加している装置から前記所定の命令のブロードキャストの実行に基づいて受信された応答であり、且つ前記対象装置の識別情報に対応する応答である所定の応答を検出したか否かを判定するための判定処理を実行する判定手段と、
前記判定処理の判定結果が、前記所定の応答が検出されなかったことを示す場合、前記第1無線通信によって取得された通信情報に基づいて確立される、前記通信装置の外部且つ前記対象装置の外部の装置である外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続を用いて、所定の情報を前記対象装置に対して送信する第2無線通信を実行し、
前記判定処理の判定結果が、前記所定の応答が検出されたことを示す場合、前記外部装置を介した前記通信装置と前記対象装置との間の無線接続を用いて、前記所定の情報を前記対象装置に対して送信する第3無線通信を実行する第2実行手段と、を有し、
前記第1無線通信は、前記第2無線通信に用いられる通信方式及び、前記第3無線通信に用いられる通信方式と異なる近距離無線通信方式によって実行されることを特徴とする。
The present invention has been made to solve the above problems, and is a communication device,
A target device and a first execution means for executing a first wireless communication;
Broadcast means for broadcasting a predetermined command to a predetermined network in which the communication device is participating,
When the predetermined command is broadcast, it is a response received from the device participating in the predetermined network based on the execution of the broadcast of the predetermined command, and a response corresponding to the identification information of the target device. Determination means for performing a determination process for determining whether or not a predetermined response that is,
When the determination result of the determination process indicates that the predetermined response has not been detected, it is established based on the communication information acquired by the first wireless communication, outside the communication device and in the target device. Using a direct wireless connection between the communication device and the target device that is not an external device, which is an external device, executes second wireless communication for transmitting predetermined information to the target device,
When the determination result of the determination process indicates that the predetermined response is detected, the predetermined information is transferred to the predetermined information by using a wireless connection between the communication device and the target device via the external device. Second executing means for executing a third wireless communication to be transmitted to the target device,
The first wireless communication is performed by a short-range wireless communication method different from the communication method used for the second wireless communication and the communication method used for the third wireless communication.

本発明によれば、通信相手装置の接続形態を考慮して無線通信を行うことでユーザーの利便性の向上を図ることが可能となる。   According to the present invention, it is possible to improve user convenience by performing wireless communication in consideration of the connection form of the communication partner device.

実施形態における印刷システムの構成を示す図。FIG. 1 illustrates a configuration of a printing system according to an exemplary embodiment. 端末装置200の外観を表す図。The figure showing the external appearance of terminal unit 200. 印刷装置300の外観を表す図。FIG. 端末装置200の構成を示すブロック図。The block diagram which shows the structure of the terminal device 200. 印刷装置300の構成を示すブロック図。FIG. 3 is a block diagram showing the configuration of the printing apparatus 300. NFCユニットの構成を表したブロック図。The block diagram showing the structure of the NFC unit. 実施形態1の処理の内容を表すフローチャート。3 is a flowchart showing the contents of processing of the first embodiment. 実施形態2の処理の内容を表すフローチャート。9 is a flowchart showing the contents of processing of the second embodiment. 端末装置のUIの例を示す図。The figure which shows the example of UI of a terminal device. 実施形態3の処理の内容を表すフローチャート。9 is a flowchart showing the contents of processing of the third embodiment.

以下に、図面を参照しながら、この発明の好適な実施の形態を例示的に詳しく説明する。但し、本実施形態に記載されている構成要素の相対配置、表示画面等は、特に特定的な記載がない限りは、この発明の範囲をそれらのみに限定する趣旨のものではない。   Hereinafter, preferred embodiments of the present invention will be illustratively described in detail with reference to the drawings. However, the relative arrangement of the constituent elements, the display screen, and the like described in the present embodiment are not intended to limit the scope of the present invention to them unless otherwise specified.

[実施形態1]
図1は印刷処理システムの構成を示す図である。このシステムは、アクセスポイント100を中心に、そのアクセスポイント100に接続可能な携帯型の端末装置200及び印刷装置300で構成される。通信装置としても機能する端末装置200は、通信速度が異なる少なくとも2種類以上の無線通信部を有する。端末装置200は、PDA(Personal Digital Assistant)等の個人情報端末、携帯電話、デジタルカメラ等、印刷対象となるファイルを扱える装置であればその種類は問わない。
[Embodiment 1]
FIG. 1 is a diagram showing the configuration of a print processing system. This system mainly includes an access point 100 and a portable terminal device 200 and a printing device 300 that can be connected to the access point 100. The terminal device 200 that also functions as a communication device includes at least two types of wireless communication units having different communication speeds. The terminal device 200 may be of any type as long as it is a device capable of handling a file to be printed, such as a personal information terminal such as a PDA (Personal Digital Assistant), a mobile phone, or a digital camera.

通信装置としても機能する印刷装置300は、原稿台に原稿を載せて原稿を読み取る読取機能と、インクジェット等の印刷エンジンを用いて印刷を行う印刷機能を有しており、その他、FAX機能や電話機能を有していても良い。   The printing device 300, which also functions as a communication device, has a reading function of placing a document on a platen and reading the document, and a printing function of performing printing using a print engine such as an inkjet printer. You may have the ability.

印刷装置300は、インフラストラクチャーモードで無線LAN接続が可能である。つまり、インフラストラクチャーモードで動作する印刷装置300は、外部のアクセスポイント100を介して、端末装置200と無線通信が可能である。また、印刷装置300は、APモードを有しており、APモードにおいて、端末装置200と印刷装置300は共に無線LANによってP2Pの通信も可能である。なお、APモードとは上述した通り、印刷装置が備えるアクセスポイントを有効化し、端末装置200は印刷装置のアクセスポイントを使って印刷装置とピアツーピアで無線通信する。   The printing apparatus 300 is capable of wireless LAN connection in the infrastructure mode. That is, the printing apparatus 300 that operates in the infrastructure mode can wirelessly communicate with the terminal apparatus 200 via the external access point 100. Further, the printing apparatus 300 has an AP mode, and in the AP mode, both the terminal apparatus 200 and the printing apparatus 300 can also perform P2P communication via a wireless LAN. In the AP mode, as described above, the access point included in the printing device is validated, and the terminal device 200 wirelessly communicates with the printing device by peer-to-peer using the access point of the printing device.

図2は端末装置200の外観を示す図である。本実施形態では、スマートフォンを例にしている。スマートフォンとは、携帯電話の機能の他に、カメラや、ネットブラウザ、メール機能等を搭載した多機能型の携帯電話のことである。NFC(Near FieldCommunication)ユニット201は、近距離無線通信を行うユニットである。ユーザーが、NFCユニット201を相手先のNFCユニット(実施形態では、印刷装置300のNFCユニット)に所定距離(10cm程度)以内に近づけることで通信を行うことができる。つまり、端末装置200は、近距離無線通信を実行可能である。   FIG. 2 is a view showing the outer appearance of the terminal device 200. In this embodiment, a smartphone is taken as an example. A smartphone is a multifunctional mobile phone equipped with a camera, an internet browser, an email function, etc. in addition to the functions of the mobile phone. The NFC (Near Field Communication) unit 201 is a unit that performs near field communication. The user can perform communication by bringing the NFC unit 201 closer to the partner NFC unit (the NFC unit of the printing apparatus 300 in the embodiment) within a predetermined distance (about 10 cm). That is, the terminal device 200 can execute near field communication.

無線LANユニット202は、無線LANで通信を行うためのユニットであり、端末装置200内に配置されている。表示部203は、例えば、LCD方式の表示機構を備えるディスプレイである。操作部204は、タッチパネル方式の操作機構を備えており、ユーザーの押下情報を検知する。代表的な操作方法には、表示部203がボタンアイコンやソフトウェアキーボードの表示を行い、ユーザーが操作部204を押下することによってボタンが押下されたイベントを発行することである。電源キー205は、電源のオン及びオフをする際に用いる。   The wireless LAN unit 202 is a unit for performing communication by wireless LAN and is arranged in the terminal device 200. The display unit 203 is, for example, a display including an LCD type display mechanism. The operation unit 204 includes a touch panel type operation mechanism and detects pressing information of the user. A typical operation method is that the display unit 203 displays a button icon or a software keyboard, and the user presses the operation unit 204 to issue an event in which the button is pressed. The power key 205 is used when turning the power on and off.

図3は印刷装置の外観を示す図である。本実施形態では、読取機能(スキャナ)を有するMulti Function Printer(MFP)を例にしている。図3(a)において、原稿台301はガラス状の透明な台であり、原稿を載せてスキャナで読み取る時に使用する。原稿蓋302は、スキャナで読取を行う際に読取光が外部に漏れないようにするための蓋である。印刷用紙挿入口303は、様々なサイズの用紙をセットする挿入口である。印刷用紙挿入口303にセットされた用紙は一枚ずつ印刷部に搬送され、印刷を行って印刷用紙排出口304から排出される。   FIG. 3 is a view showing the outer appearance of the printing apparatus. In the present embodiment, a Multi Function Printer (MFP) having a reading function (scanner) is taken as an example. In FIG. 3A, a document table 301 is a glass-like transparent table and is used when a document is placed and read by a scanner. The document cover 302 is a cover for preventing the reading light from leaking to the outside when reading with a scanner. The printing paper insertion opening 303 is an insertion opening for setting paper of various sizes. The sheets set in the printing sheet insertion port 303 are conveyed to the printing unit one by one, printed, and ejected from the printing sheet ejection port 304.

図3(b)において、原稿蓋302の上部には操作表示部305及びNFCユニット306が配置されている。NFCユニット306は、近距離無線通信を行うためのユニットであり、ユーザーが端末装置200を印刷装置300に近接させる場所である。NFCユニット306から所定距離(約10cm)が接触の有効距離である。無線LANアンテナ307は、無線LANで通信するためのアンテナが埋め込まれている。   In FIG. 3B, an operation display unit 305 and an NFC unit 306 are arranged above the document cover 302. The NFC unit 306 is a unit for performing near field communication and is a place where the user brings the terminal device 200 close to the printing device 300. A predetermined distance (about 10 cm) from the NFC unit 306 is the effective contact distance. The wireless LAN antenna 307 is embedded with an antenna for communicating by wireless LAN.

尚、近距離無線通信とは、NFCに代表される、通信範囲が、比較的小さい所定範囲(例えば、1メートル〜数センチ)となる無線通信を意味する。   It should be noted that the short-range wireless communication means wireless communication represented by NFC in which a communication range is a relatively small predetermined range (for example, 1 meter to several centimeters).

図4は端末装置の構成を示すブロック図である。端末装置200は、装置全体の制御を行うメインボード210、無線LANユニット202、NFCユニット201、回線接続ユニット206、操作部204及び表示部203からなる。ここで、無線LANユニット202、NFCユニット201、及び回線接続ユニット206はいずれも、端末装置200の通信部として機能する。   FIG. 4 is a block diagram showing the configuration of the terminal device. The terminal device 200 includes a main board 210 that controls the entire device, a wireless LAN unit 202, an NFC unit 201, a line connection unit 206, an operation unit 204, and a display unit 203. Here, the wireless LAN unit 202, the NFC unit 201, and the line connection unit 206 all function as a communication unit of the terminal device 200.

メインボード210に配置されるマイクロプロセッサ形態のCPU211は、内部バス212を介して接続されているROM形態のプログラムメモリー213に格納されている制御プログラムと、RAM形態のデータメモリー214の内容とに従って動作する。   The microprocessor type CPU 211 arranged on the main board 210 operates according to the control program stored in the ROM type program memory 213 connected through the internal bus 212 and the contents of the RAM type data memory 214. To do.

CPU211は、無線LAN制御回路215を介して無線LANユニット202を制御することで、他の通信端末装置と無線LAN102による通信を行う。CPU211は、NFC制御回路216を介してNFCユニット201を制御することによって、他のNFC端末とのNFC101による接続を検知したり、他のNFC端末との間でデータの送受信を行うことができる。CPU211は、回線制御回路217を介して回線接続ユニット206を制御することで、携帯電話回線網105に接続し、通話やデータ送受信を行うことができる。   The CPU 211 controls the wireless LAN unit 202 via the wireless LAN control circuit 215 to communicate with another communication terminal device via the wireless LAN 102. By controlling the NFC unit 201 via the NFC control circuit 216, the CPU 211 can detect a connection by the NFC 101 to another NFC terminal, and can transmit/receive data to/from another NFC terminal. By controlling the line connection unit 206 via the line control circuit 217, the CPU 211 can connect to the mobile phone line network 105 and perform a call or data transmission/reception.

CPU211は、操作部制御回路218を制御することによって操作部204に表示を行ったり、ユーザーからの操作を受け付けることが可能である。CPU211は、カメラ部219を制御して画像を撮影することができ、撮影した画像をデータメモリー214中の画像メモリー220に格納する。また、撮影した画像以外にも、携帯電話回線網105、無線LAN102を通じて外部から取得した画像を画像メモリー220に格納したり、逆に外部に送信することも可能である。   The CPU 211 can display on the operation unit 204 by controlling the operation unit control circuit 218 and receive an operation from the user. The CPU 211 can control the camera unit 219 to capture an image, and stores the captured image in the image memory 220 in the data memory 214. In addition to the captured image, it is also possible to store an image acquired from the outside through the mobile phone network 105 and the wireless LAN 102 in the image memory 220, or conversely, send it to the outside.

不揮発性メモリー221は、フラッシュメモリー等のメモリーで構成され、電源をオフされた後でも保存しておきたいデータを格納する。例えば、電話帳データや、各種通信接続情報や過去に接続したデバイス情報等の他、保存しておきたい画像データ、あるいは端末装置200に各種機能を実現するアプリケーションソフトウェア等のプログラムが格納される。   The non-volatile memory 221 is composed of a memory such as a flash memory, and stores data to be retained even after the power is turned off. For example, in addition to the telephone directory data, various communication connection information, device information connected in the past, image data to be saved, or programs such as application software for realizing various functions in the terminal device 200 are stored.

図5は印刷装置の構成を示すブロック図である。印刷装置300は、装置全体の制御を行うメインボード310、回線接続ユニット322、無線LANユニット308、NFCユニット306、及び操作表示部305からなる。ここで、回線接続ユニット322、無線LANユニット308及びNFCユニット306は、印刷装置300の通信部として機能する。   FIG. 5 is a block diagram showing the configuration of the printing apparatus. The printing apparatus 300 includes a main board 310 that controls the entire apparatus, a line connection unit 322, a wireless LAN unit 308, an NFC unit 306, and an operation display unit 305. Here, the line connection unit 322, the wireless LAN unit 308, and the NFC unit 306 function as a communication unit of the printing apparatus 300.

メインボード310に配置されるマイクロプロセッサ形態のCPU311は、内部バス312を介して接続されているROM形態のプログラムメモリー313に格納されている制御プログラムと、RAM形態のデータメモリー314の内容とに従って動作する。   The microprocessor type CPU 311 arranged on the main board 310 operates according to the control program stored in the ROM type program memory 313 connected via the internal bus 312 and the contents of the RAM type data memory 314. To do.

CPU311は、スキャナ部315を制御して原稿を読み取り、データメモリー314中の画像メモリー316に格納する。また、CPU311は、印刷部317を制御してデータメモリー314中の画像メモリー316の画像を記録媒体に印刷することができる。   The CPU 311 controls the scanner unit 315 to read a document and stores it in the image memory 316 in the data memory 314. Further, the CPU 311 can control the printing unit 317 to print the image of the image memory 316 in the data memory 314 on the recording medium.

CPU311は、無線LAN制御回路318を通じて無線LANユニット308を制御することで、他の通信端末装置と無線LAN102による通信を行う。また、CPU311は、NFC制御回路319を介してNFCユニット306を制御することによって、他のNFC端末とのNFC101による接続を検知したり、他のNFC端末との間でデータの送受信を行うことができる。CPU311は、回線制御回路321を介して回線接続ユニット322を制御することで、電話回線網323に接続し、FAX送受信やデータ送受信を行うことができる。   The CPU 311 controls the wireless LAN unit 308 through the wireless LAN control circuit 318 to communicate with another communication terminal device by the wireless LAN 102. Further, the CPU 311 controls the NFC unit 306 via the NFC control circuit 319 to detect the connection of the NFC 101 to another NFC terminal, and to transmit/receive data to/from another NFC terminal. it can. The CPU 311 can control the line connection unit 322 via the line control circuit 321 to connect to the telephone line network 323 to perform FAX transmission/reception and data transmission/reception.

CPU311は、操作表示部制御回路320を制御することによって操作表示部305に印刷装置300の状態の表示や機能選択メニューの表示を行ったり、ユーザーからの操作を受け付けることが可能である。   By controlling the operation display unit control circuit 320, the CPU 311 can display the state of the printing apparatus 300 and the function selection menu on the operation display unit 305, and can accept an operation from the user.

図6はNFCユニット201あるいはNFCユニット306で使用されているNFCユニット600の詳細を示すブロック図である。   FIG. 6 is a block diagram showing details of the NFC unit 600 used in the NFC unit 201 or the NFC unit 306.

NFC通信では、NFCユニット600による近距離無線通信を行う場合、初めに、RF(Radio Frequency)フィールドを出力して通信を開始する装置をイニシエータと呼ぶ。また、イニシエータの発する命令に応答し、イニシエータとの通信を行う装置をターゲットと呼ぶ。   In NFC communication, when short-range wireless communication is performed by the NFC unit 600, a device that first outputs an RF (Radio Frequency) field and starts communication is called an initiator. A device that responds to a command issued by the initiator and communicates with the initiator is called a target.

NFCユニット600は、NFCコントローラ部601、アンテナ部602、RF部603、送受信制御部604、NFCメモリー605、電源606、及びデバイス接続部607を有する。アンテナ部602は、他のNFCデバイスから電波を受信したり、他のNFCデバイスに電波を送信したりする。RF部603は、アナログ信号をデジタル信号に変復調する機能を備えている。RF部603は、シンセサイザを備えていて、バンド、チャネルの周波数を識別し、周波数割り当てデータによるバンド、チャネルの制御をしている。   The NFC unit 600 has an NFC controller unit 601, an antenna unit 602, an RF unit 603, a transmission/reception control unit 604, an NFC memory 605, a power supply 606, and a device connection unit 607. The antenna unit 602 receives a radio wave from another NFC device or transmits a radio wave to another NFC device. The RF unit 603 has a function of modulating/demodulating an analog signal into a digital signal. The RF unit 603 includes a synthesizer, identifies the frequencies of the band and the channel, and controls the band and the channel by the frequency allocation data.

尚、NFCメモリー605は、例えば、不揮発性メモリーで構成され、電源からの電力が供給されていない状態でも、そのNFCメモリー605に記憶されているデータを読み書きすることができる。このNFCメモリー605へのデータの読み書きを含むデータの記憶制御は、NFCコントローラ部601によって実現される。   The NFC memory 605 is composed of, for example, a non-volatile memory and can read and write the data stored in the NFC memory 605 even when the power from the power supply is not supplied. Storage control of data including reading/writing of data from/to the NFC memory 605 is realized by the NFC controller unit 601.

送受信制御部604は、送受信フレームの組み立て及び分解、プリアンブル付加及び検出、フレーム識別等、送受信に関する制御を行う。送受信制御部604は、NFCメモリー605の制御も行い、各種データやプログラムを読み書きする。デバイスと双方向通信を可能にするアクティブモードとして動作する場合、電源606を介して電力の供給を受ける。さらに、デバイス接続部607を通じて他のNFCデバイスと通信を行ったり、アンテナ部602を介して送受信される電波により、通信可能な範囲にある他のNFCデバイスと通信する。   The transmission/reception control unit 604 controls transmission/reception such as assembling and disassembling a transmission/reception frame, adding and detecting a preamble, and identifying a frame. The transmission/reception control unit 604 also controls the NFC memory 605 to read/write various data and programs. When operating in an active mode that allows bi-directional communication with the device, it receives power from a power source 606. Furthermore, communication is performed with other NFC devices through the device connection unit 607, and communication is performed with other NFC devices within the communicable range by radio waves transmitted and received via the antenna unit 602.

本実施形態では、端末装置200と印刷装置がNFCを介して双方向通信を行う必要があるため、NFCは常にアクティブモードとして動作する。   In the present embodiment, since the terminal device 200 and the printing device need to perform bidirectional communication via NFC, NFC always operates in the active mode.

以下では、端末装置200のNFCユニット201と印刷装置300のNFCユニット306を近づける操作のことを、「NFCタッチ操作」と記す。   Hereinafter, an operation of bringing the NFC unit 201 of the terminal device 200 and the NFC unit 306 of the printing apparatus 300 close to each other is referred to as an “NFC touch operation”.

本実施形態では、ユーザーが端末装置200を操作して印刷対象の画像を選択した後、印刷を行う印刷装置300に対してNFCタッチ操作を行うことで、選択した画像を印刷装置300で印刷するというユースケースについて説明する。   In the present embodiment, the user operates the terminal device 200 to select an image to be printed, and then performs an NFC touch operation on the printing device 300 that performs printing, so that the selected image is printed by the printing device 300. I will explain the use case.

そして、印刷装置300が端末と同一ネットワーク上に存在する場合は、その接続状態を維持して印刷を行い、そうでない場合は、印刷装置300とP2P接続を行って印刷を行うものである。   If the printing apparatus 300 is on the same network as the terminal, printing is performed while maintaining the connection state, and if not, P2P connection is performed with the printing apparatus 300 to perform printing.

図7のフローチャートを用いて、本実施形態の説明を行う。図7は、端末装置200で指定した画像を印刷装置300で印刷を行う際の処理である。なお、本願における端末装置200に関係するフローチャートの各ステップは、CPU211がフローチャートに関連するプログラムを読み出して実行することで実現される。   This embodiment will be described with reference to the flowchart of FIG. 7. FIG. 7 shows a process when the image designated by the terminal device 200 is printed by the printing device 300. Each step of the flowchart related to the terminal device 200 in the present application is realized by the CPU 211 reading and executing a program related to the flowchart.

ユーザーは、端末装置200を操作し、画像データを選択し、印刷装置300に対してNFCタッチ操作を行う。図9は、端末装置のUI例である。例えば、ユーザーは、端末装置にインストールされている印刷アプリケーションを起動することで図9の選択画面(選択UI)が表示される。図9のUIには、端末装置200内の画像データのサムネイル画像が表示され、ユーザーがタッチ操作により、印刷したい画像のサムネイルをタップすると、選択を示すチェックマークがサムネイル上に表示される。画像を選択した状態で、印刷装置300に対してNFCタッチ操作を行うと、印刷処理が開始される。   The user operates the terminal device 200, selects image data, and performs an NFC touch operation on the printing device 300. FIG. 9 is an example of the UI of the terminal device. For example, the user activates the print application installed in the terminal device to display the selection screen (selection UI) of FIG. 9. A thumbnail image of the image data in the terminal device 200 is displayed on the UI of FIG. 9, and when the user taps the thumbnail of the image to be printed by a touch operation, a check mark indicating selection is displayed on the thumbnail. When an NFC touch operation is performed on the printing apparatus 300 with an image selected, printing processing is started.

まず、ステップS1101で、端末装置200は、印刷装置300のNFCタグからタグ情報を取得する。タグ情報には、印刷装置300のネットワーク設定に関する少なくとも3種類の情報が含まれている。具体的には、(1)印刷装置300のMACアドレス、(2)印刷装置300のAPモード時のSSIDとパスワード、(3)印刷装置300の現在の無線モード、の3種類の情報である。なお、(3)は、APモードまたはインフラストラクチャーモードのどちらかのモードとなる。なお、本願におけるタグ情報は、通信に関する情報であるため単に通信情報と呼ばれることもある。   First, in step S1101, the terminal device 200 acquires tag information from the NFC tag of the printing device 300. The tag information includes at least three types of information regarding the network settings of the printing apparatus 300. Specifically, three types of information are (1) the MAC address of the printing apparatus 300, (2) the SSID and password of the printing apparatus 300 in the AP mode, and (3) the current wireless mode of the printing apparatus 300. Note that (3) is either the AP mode or the infrastructure mode. Note that the tag information in the present application is sometimes simply referred to as communication information because it is information related to communication.

S1102において端末装置200は、WiFi設定が有効か否かを確認する。WiFi設定が有効である場合、端末装置200においてWiFi通信が可能な状態であることを意味する。WiFi設定が有効の場合は、S1103へ進み、無効の場合は、S1110へ進む。   In S1102, the terminal device 200 confirms whether the WiFi setting is valid. When the WiFi setting is valid, it means that the terminal device 200 is in a state where WiFi communication is possible. If the WiFi setting is valid, the process proceeds to S1103, and if the WiFi setting is invalid, the process proceeds to S1110.

S1103にて端末装置は、S1101で取得した(3)印刷装置300の現在の無線モードを確認し、APモードであればS1112へ進み、インフラストラクチャーモードであればS1104へ進む。つまり、端末装置200は、印刷装置300がピアツーピア通信方式にて動作中であると判定した場合、S1112へと処理を進める。   In S1103, the terminal device confirms (3) the current wireless mode of the printing device 300 acquired in S1101, and proceeds to S1112 if the AP mode and proceeds to S1104 if the infrastructure mode. That is, when the terminal device 200 determines that the printing device 300 is operating in the peer-to-peer communication method, the process proceeds to step S1112.

S1104にて端末装置200は、S1101で取得した(1)印刷装置300のMACアドレスと一致する印刷装置300を検出する。具体的には、端末装置が、自分が参加しているネットワークにブロードキャストにてデバイス探索命令を送信し、上記ネットワークに参加している各装置からの応答を受信する。そして端末装置は、S1101で取得したMACアドレスと一致するMACアドレスを含む応答を検出することでS1104の処理を実行する。   In step S1104, the terminal device 200 detects the printing device 300 that matches the (1) MAC address of the printing device 300 acquired in step S1101. Specifically, the terminal device broadcasts a device search command to the network in which it participates, and receives a response from each device participating in the network. Then, the terminal device executes the process of S1104 by detecting the response including the MAC address that matches the MAC address acquired in S1101.

S1104で印刷装置300が検出できた場合、端末装置200は、S1106においてS1104で検出した印刷装置300と無線LANユニット202を用いて無線LANにて接続する。具体的には、端末装置200が接続しているアクセスポイント100を接続先として決定する(維持する)。そして、端末装置200は、S1109でアクセスポイント100を介した無線LANにて印刷ジョブを印刷装置300へ送信する。具体的には、端末装置200は、印刷装置300に対して特定のコマンドを発行することで印刷装置300とセッションを張る。そして、端末装置200は、図9の選択画面で選択された画像データに基づいて印刷ジョブを生成し、その印刷ジョブをS1109にて送信する。なお、印刷ジョブを生成するタイミングは、図7のフローチャートが実行される前でも良いし、S1106で接続が確立してからでも良い。   When the printing apparatus 300 can be detected in S1104, the terminal device 200 connects to the printing apparatus 300 detected in S1104 in S1106 by wireless LAN using the wireless LAN unit 202. Specifically, the access point 100 to which the terminal device 200 is connected is determined (maintained) as the connection destination. Then, the terminal device 200 transmits the print job to the printing device 300 via the wireless LAN via the access point 100 in step S1109. Specifically, the terminal device 200 establishes a session with the printing device 300 by issuing a specific command to the printing device 300. Then, the terminal device 200 generates a print job based on the image data selected on the selection screen of FIG. 9, and transmits the print job in S1109. The timing of generating the print job may be before the execution of the flowchart of FIG. 7 or after the connection is established in S1106.

印刷ジョブを受けた印刷装置300は、印刷ジョブに基づいて紙に画像を印刷し、終了する。   Upon receiving the print job, the printing apparatus 300 prints an image on paper based on the print job and ends the processing.

一方、S1104で印刷装置300が検出でなかった場合、携帯端末200の処理は、S1105からS1107に進む。   On the other hand, if the printing apparatus 300 is not detected in S1104, the process of the mobile terminal 200 proceeds from S1105 to S1107.

S1107において端末装置200は、印刷装置300のNFCタグにAPモードへの移行指示を書き込む。なお、移行指示として書き込まれる情報は、APモードへの移行命令でも良いし、MACアドレスに対応する印刷装置が見つからなかった旨を示す情報でも良い。そして、印刷装置300は、NFCのタグにAPモードへの移行指示が書き込まれたことを検知すると、APモードへの移行処理を実施する。   In step S1107, the terminal device 200 writes an instruction to shift to the AP mode in the NFC tag of the printing device 300. The information written as the transition instruction may be an AP mode transition instruction or information indicating that the printing device corresponding to the MAC address has not been found. Then, when the printing apparatus 300 detects that the instruction to switch to the AP mode is written in the NFC tag, the printing apparatus 300 executes the processing to transfer to the AP mode.

S1108において端末装置200は、S1101で取得した、(2)印刷装置300のアクセスポイントのSSIDとパスワードを利用して、S1107においてAPモードに移行された印刷装置300との無線LANでの接続を確立する。具体的には、端末装置200は、アクセスポイントの接続先をアクセスポイント100から印刷装置300のアクセスポイントへ変更する。つまり、S1108において、印刷装置300のアクセスポイントが接続先のアクセスポイントとして決定される。この処理により端末装置200と印刷装置300の間でP2P接続が確立され、端末装置200は、S1109で印刷ジョブを印刷装置300へ送信する。印刷ジョブを受けた印刷装置の処理は上記処理と同じである。NFCタッチ操作時に、すでに印刷装置300がAPモードとなっている場合は、S1102を経由して、S1109へ進む。なお、印刷装置の通信モードは、S1101の処理により取得される。   In step S1108, the terminal device 200 establishes a wireless LAN connection with the printing device 300 that has transitioned to the AP mode in step S1107, using (2) the SSID and password of the access point of the printing device 300 acquired in step S1101. To do. Specifically, the terminal device 200 changes the connection destination of the access point from the access point 100 to the access point of the printing device 300. That is, in S1108, the access point of the printing apparatus 300 is determined as the access point of the connection destination. By this processing, the P2P connection is established between the terminal device 200 and the printing device 300, and the terminal device 200 transmits the print job to the printing device 300 in S1109. The process of the printing apparatus that has received the print job is the same as the above process. If the printing apparatus 300 is already in the AP mode during the NFC touch operation, the process proceeds to S1109 via S1102. The communication mode of the printing apparatus is acquired by the process of S1101.

また、S1102でS1110へ進んだ場合、端末装置200は、S1110で端末装置200のWiFi設定を有効に変更する。そして、S1111で、端末装置200は、印刷装置300のNFCタグにAPモードへの移行指示を書き込む。そして、印刷装置300は、NFCのタグにAPモードへの移行指示が書き込まれたことを検知すると、APモードへの移行処理を実施する。   If the process proceeds to S1110 in S1102, the terminal device 200 changes the WiFi setting of the terminal device 200 to valid in S1110. Then, in step S1111, the terminal device 200 writes the AP mode transition instruction in the NFC tag of the printing device 300. Then, when the printing apparatus 300 detects that the instruction to switch to the AP mode is written in the NFC tag, the printing apparatus 300 executes the processing to transfer to the AP mode.

なお、S1112の処理はS1106と同じであるため省略する。   Note that the processing of S1112 is the same as that of S1106, and will be omitted.

また、S1103でS1112へ進んだ場合は、既に、印刷装置300が、APモードの状態になっている。そのため、端末装置200は、S1101で取得した、(2)印刷装置300のAPモード時のSSIDとパスワードを利用して、印刷装置300との接続を確立し、S1109で印刷ジョブを印刷装置300へ送信する。印刷ジョブを受けた印刷装置300は、印刷処理を実行し、終了する。   If the process proceeds to S1112 in S1103, the printing apparatus 300 is already in the AP mode. Therefore, the terminal device 200 establishes a connection with the printing device 300 by using (2) the SSID and password of the printing device 300 in the AP mode acquired in step S1101, and sends the print job to the printing device 300 in step S1109. Send. The printing apparatus 300 that has received the print job executes the print processing and ends the processing.

なお、図7のフローチャートの各ステップは、図9の画面を提供している印刷アプリケーションにより実行されても良い。   Note that each step of the flowchart of FIG. 7 may be executed by the print application that provides the screen of FIG.

以上のフローチャートで示した一連の処理により、印刷装置300と端末装置との接続がインフラストラクチャーモードで確立されている場合は、その接続状態を維持して印刷を行う。一方、印刷装置300と端末装置との接続がインフラストラクチャーモードでない場合、携帯端末200は、印刷装置300に対してAPモードへの移行を指示し、印刷を行う。   When the connection between the printing apparatus 300 and the terminal device is established in the infrastructure mode by the series of processes shown in the above flowchart, the connection state is maintained and printing is performed. On the other hand, when the connection between the printing apparatus 300 and the terminal device is not in the infrastructure mode, the mobile terminal 200 instructs the printing apparatus 300 to shift to the AP mode and performs printing.

その結果、インフラストラクチャーモードでの接続を極力維持するため、印刷装置300および端末装置200のインターネットへの接続も極力維持することができる。   As a result, since the connection in the infrastructure mode is maintained as much as possible, the connection of the printing device 300 and the terminal device 200 to the Internet can be maintained as much as possible.

また、端末装置200のWiFi設定は、端末装置200内のシステム設定メニュー内のWiFi設定の項目で、簡単にユーザーが任意に有効、無効の設定が可能である。ここで、アクセスポイント100を所有していないユーザーにおいては、アクセスポイント100と端末装置200とをWiFi接続する必要が無い。そのため、不要な機能による端末のバッテリーの消費を抑えるために、端末装置200のWiFi設定を無効にしている可能性が高い。このような場合でも、S1102において、端末装置200は、WiFi設定を確認し、WiFi設定が無効の場合は、WiFi設定を有効化すると共に印刷装置300とAPモードによる無線接続を確立することで、APモードでの印刷を実施できる。   The WiFi setting of the terminal device 200 is a WiFi setting item in the system setting menu of the terminal device 200, and the user can easily enable/disable the setting. Here, a user who does not own the access point 100 does not need to establish a WiFi connection between the access point 100 and the terminal device 200. Therefore, it is highly possible that the WiFi setting of the terminal device 200 is disabled in order to suppress battery consumption of the terminal due to unnecessary functions. Even in such a case, in S1102, the terminal device 200 confirms the WiFi setting, and if the WiFi setting is invalid, the WiFi setting is validated and the wireless connection in the AP mode with the printing apparatus 300 is established. Printing in AP mode can be performed.

さらに、S1103において、携帯端末200が印刷装置300の無線モードを確認することで、既に印刷装置300がAPモードで動作していると判定された場合、携帯端末200は印刷装置300の検出が見込まれない検出処理を実施しない。以上の処理により、効率的に印刷装置300と端末装置200との接続を確立することが可能である。   Further, in step S1103, when the mobile terminal 200 confirms the wireless mode of the printing apparatus 300 and it is determined that the printing apparatus 300 is already operating in the AP mode, the mobile terminal 200 is expected to detect the printing apparatus 300. No detection processing is performed. Through the above processing, the connection between the printing device 300 and the terminal device 200 can be efficiently established.

なお、前述したとおり、S1102での端末装置200のWiFi設定の有効確認処理および、S1103の印刷装置300の無線モードの確認処理は、本発明の必須の処理ではなく、処理の高速化など、ユーザーの利便性を高めるための処理である。したがって、S1102、S1103の両方または片方のステップが存在しなくても、本発明の目的である、インフラストラクチャーモードでの接続を極力維持することについては達成することが可能である。   As described above, the WiFi setting validity confirmation process of the terminal device 200 in S1102 and the wireless mode confirmation process of the printing device 300 in S1103 are not indispensable processes of the present invention, and are not required by the user, such as speedup of the process. This is a process for improving the convenience of the. Therefore, even if S1102, S1103, or both steps are not present, it is possible to achieve the object of the present invention to maintain the connection in the infrastructure mode as much as possible.

ここで、携帯端末200において表示される画面を使って本実施例の処理の流れを説明する。   Here, the flow of processing of the present embodiment will be described using the screen displayed on the mobile terminal 200.

端末装置200において印刷アプリケーションが起動されることで図9(a)の画面が表示される。ここで、ユーザーが写真印刷を選択した場合、印刷アプリケーションは、端末装置200に保持される画像の一覧を図9(b)のように表示する。一方、文書印刷を選択した場合、端末装置200に保持される文書の一覧が表示される。   The screen of FIG. 9A is displayed when the print application is activated in the terminal device 200. Here, when the user selects photo printing, the printing application displays a list of images held in the terminal device 200 as shown in FIG. 9B. On the other hand, when the document print is selected, a list of documents stored in the terminal device 200 is displayed.

図9(b)においてユーザーが印刷対象の画像を選択した状態で端末装置200を印刷装置300に対してNFCタッチ操作を行うと、印刷アプリケーションは図9(c)の画面を表示する。なお、NFCタッチ操作を行うことで上述した本願の図7の処理が実行される。   When the user performs the NFC touch operation on the printing apparatus 300 with the terminal device 200 in the state where the user selects the image to be printed in FIG. 9B, the print application displays the screen of FIG. 9C. Note that the processing of FIG. 7 of the present application described above is executed by performing the NFC touch operation.

また、図9(b)においてユーザーが印刷対象の画像を選択した状態でプリントボタンを押下した場合、図9(d)が表示される。図9(d)が表示された状態で、ユーザーが端末装置200を印刷装置300に対してNFCタッチ操作を行うと、図9(d)に表示された印刷設定情報にて印刷が実行される。   Further, when the user presses the print button in the state in which the image to be printed is selected in FIG. 9B, FIG. 9D is displayed. When the user performs the NFC touch operation of the terminal device 200 on the printing device 300 in the state where FIG. 9D is displayed, printing is executed with the print setting information displayed in FIG. 9D. ..

なお、ユーザーは、印刷アプリケーションに対して印刷装置を登録することができる。そして、ユーザーが、図9(d)の画面が表示された状態で登録された印刷装置と異なる印刷装置300に対してNFCタッチ操作を行った場合、図9(e)が表示される。この際、図7の処理により端末装置200と印刷装置300が無線接続にて接続される。そして、端末装置200は、無線接続を介して印刷装置300の機能情報(例えば、印刷装置300が取扱い可能な用紙のサイズや用紙タイプなど)を取得し、取得結果を図9(e)の画面に反映する。つまり、ユーザーが用紙サイズ、用紙の種類を押下することで表示される選択肢は、無線接続を介して取得された印刷装置300の機能情報に基づいて決定される。図9(e)の画面においてユーザーが印刷設定情報を設定した後、プリントボタンを押下することで、ユーザーがNFCタッチ操作をした印刷装置300に対して無線接続を介して印刷ジョブが送信される。   The user can register the printing device in the printing application. Then, when the user performs the NFC touch operation on the printing apparatus 300 different from the registered printing apparatus while the screen of FIG. 9D is displayed, FIG. 9E is displayed. At this time, the terminal device 200 and the printing device 300 are wirelessly connected by the process of FIG. 7. Then, the terminal device 200 acquires the function information of the printing device 300 (for example, the size of the paper and the paper type that can be handled by the printing device 300) via the wireless connection, and the acquired result is displayed on the screen of FIG. Reflect on. That is, the options displayed by the user pressing the paper size and the paper type are determined based on the function information of the printing apparatus 300 acquired through the wireless connection. When the user sets the print setting information on the screen of FIG. 9E and then presses the print button, the print job is transmitted via a wireless connection to the printing apparatus 300 on which the user has performed the NFC touch operation. .

[実施形態2]
実施形態1では、同一ネットワーク上に端末装置200と印刷装置300とが存在しない場合、携帯端末200は、印刷装置300に対してAPモードへの移行を指示した。しかしながら、印刷装置300が、端末装置200と同じアクセスポイントに接続し直すことが可能である場合は、接続し直してもよい。
[Embodiment 2]
In the first embodiment, when the terminal device 200 and the printing device 300 do not exist on the same network, the mobile terminal 200 instructs the printing device 300 to shift to the AP mode. However, if the printing apparatus 300 can reconnect to the same access point as the terminal apparatus 200, the printing apparatus 300 may reconnect.

尚、本実施形態における各装置の構成について、特に説明のない限り、実施形態1と同等であるものとして説明を省略する。以下、図8を用いて説明する。   Unless otherwise specified, the configuration of each device in the present embodiment is the same as that in the first embodiment, and a description thereof will be omitted. This will be described below with reference to FIG.

ステップS1201で、端末装置200は、印刷装置300のNFCタグからタグ情報を取得する。タグ情報には、印刷装置300のネットワーク設定に関する4種類の情報が含まれている。具体的には、上述した(1)から(3)に加えて(4)印刷装置300のアクセスポイントに対応したSSIDの接続履歴が含まれる。また、(4)の接続履歴については、そのSSIDに対応したパスワードも、別途、タグ内ではなく、印刷装置300の中に保持されている。   In step S1201, the terminal device 200 acquires the tag information from the NFC tag of the printing device 300. The tag information includes four types of information regarding the network settings of the printing apparatus 300. Specifically, in addition to (1) to (3) described above, (4) the connection history of the SSID corresponding to the access point of the printing apparatus 300 is included. Regarding the connection history of (4), the password corresponding to the SSID is also separately stored in the printing apparatus 300, not in the tag.

S1202はS1104と同じであり、S1203はS1105と同じであるため詳細な説明は省略する。S1203で印刷装置300が検出でなかった場合は、S1203からS1206に進む。   Since S1202 is the same as S1104 and S1203 is the same as S1105, detailed description will be omitted. If the printing apparatus 300 is not detected in S1203, the process proceeds from S1203 to S1206.

S1206で、端末装置200が現在接続しているアクセスポイントのSSIDとS1201で取得した(4)アクセスポイントのSSIDの接続履歴とを比較し、一致しているものがないか確認する。ここで、一致するものが無ければ、S1207へ進み、一致したものがあれば、S1209へ進む。   In step S1206, the SSID of the access point to which the terminal device 200 is currently connected is compared with the connection history of the SSID of the access point (4) acquired in step S1201 to confirm whether there is a match. If there is no match, the process proceeds to S1207, and if there is a match, the process proceeds to S1209.

なお、S1207からS1208、S1205の処理はS1107からS1108、S1109の処理と同じであるため詳細な説明は省略する。S1206においてYesと判定された場合、S1209において端末装置200は、印刷装置300のNFCタグにS1206で一致したSSIDとアクセスポイントへの接続指示を書き込む。そして、印刷装置300は、NFCタグにアクセスポイントへの接続指示が書き込まれたことを検知すると、端末装置200から指定されたSSIDと、アクセスポイント履歴と一緒に保存されている該当パスワードを利用して、アクセスポイントへ接続し直す。これにより、端末装置200と印刷装置300が同一のアクセスポイントに接続され、同一ネットワーク上に接続されたことになる。   Since the processes of S1207 to S1208 and S1205 are the same as the processes of S1107 to S1108 and S1109, detailed description thereof will be omitted. If YES is determined in S1206, the terminal device 200 writes the SSID matched in S1206 and the connection instruction to the access point in the NFC tag of the printing device 300 in S1209. When the printing apparatus 300 detects that the connection instruction to the access point has been written in the NFC tag, the printing apparatus 300 uses the SSID designated by the terminal apparatus 200 and the corresponding password stored together with the access point history. And reconnect to the access point. As a result, the terminal device 200 and the printing device 300 are connected to the same access point and are connected to the same network.

S1210において端末装置200は、ネットワーク内にブロードキャストし、S1201で取得した(1)印刷装置300のMACアドレスと一致する印刷装置300を検出し、検出した印刷装置300と無線接続を確立する。なお、S1210の具体的な処理は、S1106と同じである。そして、端末装置200は、S1205で印刷ジョブを確立された無線接続を介して印刷装置300へ送信する。印刷ジョブを受けた印刷装置300は、印刷処理を実行し、終了する。   In S1210, the terminal device 200 broadcasts in the network, detects (1) the printing device 300 that matches the MAC address of the printing device 300 acquired in S1201, and establishes a wireless connection with the detected printing device 300. The specific process of S1210 is the same as S1106. Then, the terminal device 200 transmits the print job to the printing device 300 via the wireless connection established in S1205. The printing apparatus 300 that has received the print job executes the print processing and ends the processing.

以上説明したように、実施形態2によれば、端末装置200は、印刷装置300が保持するアクセスポイントの接続履歴を利用して、アクセスポイント経由で印刷装置300と接続することが可能になる。結果として、端末装置200と印刷装置300ともにインターネットに接続可能な状態をより高い確率で維持することが可能となる。   As described above, according to the second embodiment, the terminal device 200 can use the access point connection history held by the printing device 300 to connect to the printing device 300 via the access point. As a result, both the terminal device 200 and the printing device 300 can maintain the state of being connectable to the Internet with a higher probability.

なお、本実施例の説明では、印刷装置300のアクセスポイントの接続履歴を保持した例を示したが、反対に、端末装置200が、自身のアクセスポイントへの接続履歴(SSID)を保持してもよい。この場合は、S1201において端末装置200は、(4)印刷装置300のアクセスポイントに対応したSSIDの接続履歴ではなく、現在、印刷装置300が接続しているアクセスポイントのSSIDを取得する。そして、S1206において端末装置200は、端末装置200の接続履歴のSSIDとS1201で取得した印刷装置300が接続中のアクセスポイントのSSIDとを比較する。そして、一致したSSIDが接続履歴に含まれる場合、端末装置200は、そのSSIDのアクセスポイントへ、接続先を設定し直してもよい。   In the description of the present exemplary embodiment, the example in which the connection history of the access points of the printing apparatus 300 is held is shown. On the contrary, the terminal apparatus 200 holds the connection history (SSID) of its own access point. Good. In this case, in step S1201, the terminal device 200 acquires (4) the SSID of the access point to which the printing device 300 is currently connected, rather than the connection history of the SSID corresponding to the access point of the printing device 300. Then, in step S1206, the terminal device 200 compares the SSID of the connection history of the terminal device 200 with the SSID of the access point to which the printing device 300 acquired in step S1201 is connected. Then, when the matching SSID is included in the connection history, the terminal device 200 may reset the connection destination to the access point of the SSID.

また、本発明の実施例では、印刷装置300への適用例を示したが、本発明は印刷装置と同様に、WiFi接続およびP2P接続機能を有するデジタルカメラへの適用も可能である。具体的には、端末装置を、デジタルカメラのリモコンとして機能させたい場合に、端末装置およびデジタルカメラのインターネット接続を極力維持したまま、端末装置から接続したデジタルカメラのシャッターを切るなどの操作も可能となる。   Further, in the embodiment of the present invention, an example of application to the printing apparatus 300 is shown, but the present invention can also be applied to a digital camera having a WiFi connection and a P2P connection function, like the printing apparatus. Specifically, if you want the terminal device to function as a remote control for a digital camera, you can also perform operations such as releasing the shutter of the digital camera connected from the terminal device while maintaining the Internet connection between the terminal device and the digital camera as much as possible. Becomes

また、ネットワークオーディオプレヤーやビデオレコーダーなどの機器に対して端末装置をリモコンとして機能させる場合も、それぞれの機器のインターネット接続を極力維持しつつリモコン機能を実現することが可能となる。   Also, when the terminal device is made to function as a remote controller for a device such as a network audio player or a video recorder, the remote control function can be realized while maintaining the Internet connection of each device as much as possible.

したがって、本発明の適用範囲は、印刷装置に限定されるものではない。   Therefore, the application range of the present invention is not limited to the printing apparatus.

さらに、実施例では端末装置と装置間のP2P接続の例としてAPモードの例を提示した。しかし、Bluetooth(登録商標)接続やWi−FiDirect接続など、他のP2P接続方法においても、その接続方法が、端末または装置の両方もしくは片方のインターネットへの接続を阻害する状況にある場合は、本発明を適用しても良い。その結果、各装置のインターネット接続を極力維持する効果を得ることが可能である。   Further, in the embodiment, the example of the AP mode is presented as an example of the P2P connection between the terminal devices. However, even in other P2P connection methods such as Bluetooth (registered trademark) connection and Wi-FiDirect connection, if the connection method is in a situation in which the connection to the Internet of one or both of the terminal or the device is obstructed, The invention may be applied. As a result, it is possible to obtain the effect of maintaining the Internet connection of each device as much as possible.

また、端末装置と装置間のP2P接続の例としてAPモードの例を提示したが、P2P接続時には、印刷装置300がAPとして機能する必要はない。具体的は、Wi−FiDirectでのP2P接続では、一方がホストで他方がAPとして動作するが規格上、どちらがAPになるかは状況によって変化する。本発明では、P2P接続が可能ならば、端末、印刷装置のどちらがAPとなっても本発明の目的は達成できるため、印刷装置をAPとして機能することに限定する必要はない。なお、本願の処理を経てWi−FiDirectにてP2P接続を実行する場合には、端末装置と印刷装置との間でネゴシエーションが実行され、どちらがAPとして動作するかが決定される。   Further, although the example of the AP mode is presented as an example of the P2P connection between the terminal device and the device, the printing device 300 does not need to function as the AP during the P2P connection. Specifically, in a P2P connection by Wi-FiDirect, one operates as a host and the other operates as an AP, but according to the standard, which becomes the AP changes depending on the situation. In the present invention, as long as P2P connection is possible, the object of the present invention can be achieved regardless of which of the terminal and the printing device is the AP. Therefore, the printing device need not be limited to function as the AP. When the P2P connection is executed by Wi-FiDirect after the processing of the present application, the negotiation is executed between the terminal device and the printing device, and which one operates as the AP is determined.

また、近距離無線通信の一例としてNFCを用いて説明したが、NFCの代わりにブルートゥース(登録商標)を用いても構わない。   Further, although NFC is used as an example of the short-range wireless communication, Bluetooth (registered trademark) may be used instead of NFC.

なお、本願では、端末装置200が印刷装置300から取得したMACアドレスを使って印刷装置300を探索する処理について記載した。しかし、別の方法として端末装置200が、NFCを用いてIPアドレスとMACアドレスを取得して、IPアドレスを使って印刷装置300を探索する。そして、端末装置200が、IPアドレスを使って印刷装置300を探索できない場合にMACアドレスを用いて再度探索しても良い。この処理により、効率的に探索処理を行うことが可能となる。   In the present application, the process in which the terminal device 200 searches for the printing device 300 using the MAC address acquired from the printing device 300 has been described. However, as another method, the terminal device 200 acquires the IP address and the MAC address using NFC and searches for the printing device 300 using the IP address. If the terminal device 200 cannot search for the printing device 300 using the IP address, the terminal device 200 may search again using the MAC address. This processing enables efficient search processing.

また、印刷装置300のモデル名やタイプなどのデバイス情報がNFCにて端末装置200に通知されても良い。端末装置200の印刷アプリケーションが使用可能な印刷装置のデバイス情報とNFCタッチ操作によって取得したデバイス情報が一致しない場合(例えば、モデル名が一致しない場合)、印刷アプリケーションがエラー画面を表示する。そして、印刷処理を続行できないことを示すメッセージがエラー画面に表示される。なお、エラー画面には、印刷アプリケーションが使用可能な印刷装置を示すメッセージ、他の印刷アプリケーションの使用を薦めるメッセージ等が表示されても良い。   Further, device information such as the model name and type of the printing apparatus 300 may be notified to the terminal apparatus 200 by NFC. When the device information of the printing device that can be used by the printing application of the terminal device 200 does not match the device information acquired by the NFC touch operation (for example, when the model names do not match), the printing application displays an error screen. Then, a message indicating that the printing process cannot be continued is displayed on the error screen. The error screen may display a message indicating a printing device that can be used by the print application, a message recommending the use of another print application, or the like.

その他、印刷装置300の機能情報がNFCにて端末装置200に通知されても良い。端末装置200の印刷アプリケーションにより提供される図9(a)の画面において選択された機能が、NFCタッチ操作によって取得した機能情報に含まれない場合、印刷アプリケーションがエラー画面を表示する。そして、エラー画面には、処理を続行できないことを示すメッセージが表示されても良い。具体的には、図9(a)においてFAXが選択され、かつ、NFCタッチ操作にて印刷装置300から取得した機能情報にスキャン機能が含まれない場合、印刷アプリケーションは、FAX処理を停止してエラー画面を表示する。   Besides, the function information of the printing apparatus 300 may be notified to the terminal apparatus 200 by NFC. When the function selected on the screen of FIG. 9A provided by the print application of the terminal device 200 is not included in the function information acquired by the NFC touch operation, the print application displays an error screen. Then, a message indicating that the process cannot be continued may be displayed on the error screen. Specifically, when the FAX is selected in FIG. 9A and the scan function is not included in the function information acquired from the printing apparatus 300 by the NFC touch operation, the print application stops the FAX process. Display the error screen.

[実施形態3]
実施形態1においては、端末装置200のWiFi設定が有効で、かつ、印刷装置300がWiFi接続されていない場合、S1101からS1105を経由してS1107へと処理が進む。このとき、S1107において、端末装置200が印刷装置300のNFCタグにAPモードへの移行指示を書き込むことで印刷装置300をAPモードへ移行させる。そのため、S1101からS1107の処理が終了するまでの間は、ユーザーは、端末を印刷装置から遠ざけてはいけない。具体的には、端末装置と印刷装置の間の距離が、NFC通信ができなくなる距離となってはいけない。
[Third Embodiment]
In the first embodiment, when the WiFi setting of the terminal device 200 is valid and the printing device 300 is not WiFi-connected, the process proceeds from step S1101 to step S1105 to step S1107. At this time, in step S1107, the terminal device 200 writes the instruction to shift to the AP mode in the NFC tag of the printing device 300 to shift the printing device 300 to the AP mode. Therefore, the user must keep the terminal away from the printing apparatus until the processing of S1101 to S1107 is completed. Specifically, the distance between the terminal device and the printing device should not be the distance at which NFC communication cannot be performed.

しかし、端末装置200の処理がS1107の処理を完了する前に、ユーザーがタッチしている端末装置をずらしてしまったり、印刷装置から離してしまう可能性がある。その結果、S1107でNFC通信が行えずAPモードへの移行指示が失敗し、端末装置と印刷装置の通信が接続エラーとなってしまう可能性がある。S1107で接続エラーが発生すると、ユーザーは、再度タッチ操作を行い、S1101からS1107のフローが再び実行される。このとき、単純に同一処理を繰り返すだけでは、再び、ユーザーが端末装置をプリンタから離したり、ずらしたりしてしまい、再び接続エラーが発生してしまう懸念がある。   However, before the process of the terminal device 200 completes the process of S1107, the terminal device touched by the user may be displaced or may be separated from the printing device. As a result, there is a possibility that NFC communication cannot be performed in S1107 and the instruction to shift to the AP mode fails, resulting in a connection error in the communication between the terminal device and the printing device. When a connection error occurs in S1107, the user performs a touch operation again, and the flow from S1101 to S1107 is executed again. At this time, if the same processing is simply repeated, the user may move the terminal device away from the printer or shift the terminal device again, which may cause a connection error again.

そこで、S1107での接続エラー発生時に、接続エラーが発生する可能性を低減するための処理が実行されても良い。   Therefore, when a connection error occurs in S1107, a process for reducing the possibility of a connection error occurring may be executed.

尚、本実施形態における各装置の構成について、特に説明のない限り、実施形態1と同等であるものとして説明を省略する。以下、図10を用いて説明する。   Unless otherwise specified, the configuration of each device in the present embodiment is the same as that in the first embodiment, and a description thereof will be omitted. This will be described below with reference to FIG.

まず図10の処理を説明する前に、ユーザーが端末装置200を印刷装置300に対してNFCタッチ操作を実行し接続を試みた結果、S1107の処理が完了する前に端末装置200を印刷装置300から離してしまった場面を想定する。この場面において、印刷装置300はAPモードへの移行指示を適切に受けていないため、印刷装置300はAPモードへ移行していない状況となる。その結果、端末装置200は、印刷装置300と接続することができない。この際、端末装置200は、端末装置200内の不揮発性メモリー221に、接続エラー情報を保持する。この接続エラー情報は、後述するS1307の処理の最後に更新され、S1307の処理で印刷装置300に対する接続エラーが発生した場合は、接続エラーが発生したことを示す設定値とともに、接続しようとした印刷装置300のMACアドレスが保存される。一方、S1307で接続エラーが発生しなかった場合は、接続エラーが無かったことを示す設定値が保存される。また、一度もS1307の処理が行われていない場合、初期値として接続エラーが発生しなかった場合の設定値が保存されている。   First, before explaining the processing of FIG. 10, as a result of the user performing an NFC touch operation on the printing apparatus 300 and attempting to connect to the printing apparatus 300, the user sets the printing apparatus 300 to the printing apparatus 300 before the processing of S1107 is completed. Imagine a scene that has been separated from. In this scene, the printing apparatus 300 has not properly received the instruction to shift to the AP mode, and thus the printing apparatus 300 is in a state where it has not shifted to the AP mode. As a result, the terminal device 200 cannot connect to the printing device 300. At this time, the terminal device 200 holds the connection error information in the non-volatile memory 221 in the terminal device 200. This connection error information is updated at the end of the process of S1307, which will be described later, and if a connection error with respect to the printing apparatus 300 occurs in the process of S1307, the connection value is printed together with the setting value indicating that the connection error has occurred. The MAC address of the device 300 is stored. On the other hand, if the connection error does not occur in S1307, the setting value indicating that there is no connection error is stored. Further, if the process of S1307 has not been performed even once, the setting value when the connection error does not occur is stored as the initial value.

次に、このエラー情報を利用した処理の流れを説明する。   Next, the flow of processing using this error information will be described.

ステップS1301で、端末装置200は、印刷装置300のNFCタグからタグ情報を取得する。タグ情報には、実施形態1と同様の、印刷装置300のネットワーク設定に関する3種類の情報が含まれている。   In step S1301, the terminal device 200 acquires the tag information from the NFC tag of the printing device 300. The tag information includes the same three types of information regarding the network settings of the printing apparatus 300 as in the first embodiment.

S1302、S1309は、S1103、S1112と同じであるため詳細な説明は省略する。   Since S1302 and S1309 are the same as S1103 and S1112, detailed description thereof will be omitted.

S1302で、印刷装置300が、APモードでないと判断された場合は、S1303へ進む。   When it is determined in S1302 that the printing apparatus 300 is not in the AP mode, the process proceeds to S1303.

S1303で、端末装置200は、端末装置200内に保存されている接続エラー情報を獲得する。そして、接続エラー情報が、エラーが発生したことを示す設定値であり、かつ、S1301で獲得した印刷装置300のMACアドレスとエラー情報に含まれる印刷装置300のMACアドレスとが一致するかを判定する。S1303においてYesと判定された場合、端末装置200は、S1304−S1305をスキップしてS1307へと処理を進める。   In step S1303, the terminal device 200 acquires the connection error information stored in the terminal device 200. Then, it is determined whether the connection error information is a set value indicating that an error has occurred, and the MAC address of the printing apparatus 300 acquired in S1301 matches the MAC address of the printing apparatus 300 included in the error information. To do. When it is determined Yes in S1303, the terminal device 200 skips S1304 to S1305 and proceeds to S1307.

一方、S1303においてNoと判定された場合は、S1304へ進む。S1304−S1306は、S1104−S1106と同じ処理のため詳細な説明は省略する。   On the other hand, if No in S1303, the process proceeds to S1304. Since S1304 to S1306 are the same as S1104 to S1106, detailed description will be omitted.

S1307では、S1107と同等の処理を行うと共に、最後に接続エラー情報の更新を行う。   In S1307, the same processing as in S1107 is performed, and finally the connection error information is updated.

S1310は、S1109と同じ処理のため詳細な説明は省略する。   Since S1310 is the same process as S1109, detailed description will be omitted.

以上により、本実施形態では、NFCタッチに起因した接続エラーが前回発生した場合、比較的処理時間のかかる印刷装置の特定処理(S1305の処理。判定処理ともいう)をスキップすることが可能となる。その結果、再度タッチした場合のAPモードへの移行指示の時間を短縮することが可能となる。これにより、ユーザーがタッチ動作をした後にすぐに印刷装置300から端末装置200を離してしまう場合であっても、再度の接続エラー発生の可能性を低減することが可能となる。   As described above, according to the present exemplary embodiment, when the connection error caused by the NFC touch has occurred last time, it is possible to skip the printing device specifying process (the process of S1305, which is also referred to as a determination process) that takes a relatively long processing time. .. As a result, it becomes possible to shorten the time for instructing the transition to the AP mode when touching again. As a result, even if the user leaves the terminal device 200 from the printing device 300 immediately after performing a touch operation, it is possible to reduce the possibility of a connection error occurring again.

また、接続エラー発生時には、ユーザーは、すぐに再タッチ動作をする可能性が高いため、接続エラー情報としてエラー発生時の発生時刻を含めてもよい。具体的には、S1303の判断において、現在時刻と接続エラー情報に含まれるエラー発生時刻の差異とが比較される。そして、前回のエラー発生時刻から現在時刻の差異が所定時間内(例えば、10秒以内など)でかつMACアドレスが一致した場合には、S1307へ進むようにしてもよい。   Further, when a connection error occurs, the user is likely to immediately perform a retouching operation, and thus the connection error information may include the occurrence time at the time of the error occurrence. Specifically, in the determination of S1303, the current time is compared with the difference between the error occurrence times included in the connection error information. Then, if the difference between the previous error occurrence time and the current time is within a predetermined time (for example, within 10 seconds) and the MAC addresses match, the process may proceed to S1307.

また、印刷装置300の現在の接続状態を判断条件に使用してもよい。具体的には、S1301で獲得するタグ情報に印刷装置300がインフラストラクチャーモードで接続しているか否かの情報を含め、この情報を、接続エラー情報としてエラー発生時に保存しておく。そして、S1303の判断において、前回S1307で接続エラーが発生し、かつ、S1301で獲得した印刷装置300のインフラ接続モードの状態が、接続エラー情報に含まれるインフラ接続モードの状態と一致した場合は、S1307へ進むようにしてもよい。   Further, the current connection state of the printing device 300 may be used as the determination condition. Specifically, the tag information acquired in S1301 includes information on whether or not the printing apparatus 300 is connected in the infrastructure mode, and this information is stored as connection error information when an error occurs. Then, in the determination of S1303, when the connection error occurred last time in S1307 and the state of the infrastructure connection mode of the printing apparatus 300 acquired in S1301 matches the state of the infrastructure connection mode included in the connection error information, You may make it advance to S1307.

また、S1303において、印刷装置を特定する処理をスキップしてS1307へ進むか否かの判断条件は、MACアドレス、経過時間、印刷装置の接続状態の変化など、単体もしくは、それら複数の組み合わせでもかまわない。また、判断条件自体についても、印刷装置300のIPアドレスやAPモードにおけるSSIDの変化など、印刷装置300の状態が変化している可能性があると判断できるものであれば、かまわない。   Further, in S1303, the condition for determining whether to skip the process of identifying the printing device and proceed to S1307 may be a single unit such as a MAC address, an elapsed time, a change in the connection state of the printing device, or a combination thereof. Absent. Also, the determination condition itself may be any as long as it can be determined that the state of the printing apparatus 300 may be changed, such as the change of the IP address of the printing apparatus 300 or the SSID in the AP mode.

[その他の実施形態]
本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステムまたは装置に供給し、そのシステムまたは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。また、プログラムを実行するコンピュータは、1つであってもよいし、複数のコンピュータが協働してプログラムを実行するものであってもよい。さらに、プログラムの一部を実行する回路等のハードウェアを設け、そのハードウェアと、ソフトウェアを実行するコンピュータが協働して、本実施形態で説明した処理を実行する場合であってもよい。
[Other Embodiments]
The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads the program. This is the process to be executed. Moreover, the computer that executes the program may be one, or a plurality of computers may cooperate to execute the program. Further, hardware such as a circuit that executes a part of the program may be provided, and the hardware and a computer that executes software may cooperate to execute the processing described in the present embodiment.

100 ネットワーク
200 端末装置
201 NFCユニット
202 無線LANユニット
100 network 200 terminal device 201 NFC unit 202 wireless LAN unit

Claims (48)

通信装置であって、
対象装置と、第1無線通信を実行する第1実行手段と、
前記通信装置が参加している所定のネットワークに、所定の命令をブロードキャストするブロードキャスト手段と、
前記所定の命令がブロードキャストされた場合、前記所定のネットワークに参加している装置から前記所定の命令のブロードキャストの実行に基づいて受信された応答であり、且つ前記対象装置の識別情報に対応する応答である所定の応答を検出したか否かを判定するための判定処理を実行する判定手段と、
前記判定処理の判定結果が、前記所定の応答が検出されなかったことを示す場合、前記第1無線通信によって取得された通信情報に基づいて確立される、前記通信装置の外部且つ前記対象装置の外部の装置である外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続を用いて、所定の情報を前記対象装置に対して送信する第2無線通信を実行し、
前記判定処理の判定結果が、前記所定の応答が検出されたことを示す場合、前記外部装置を介した前記通信装置と前記対象装置との間の無線接続を用いて、前記所定の情報を前記対象装置に対して送信する第3無線通信を実行する第2実行手段と、を有し、
前記第1無線通信は、前記第2無線通信に用いられる通信方式及び、前記第3無線通信に用いられる通信方式と異なる近距離無線通信方式によって実行されることを特徴とする通信装置。
A communication device,
A target device and a first execution means for executing a first wireless communication;
Broadcast means for broadcasting a predetermined command to a predetermined network in which the communication device is participating,
When the predetermined command is broadcast, it is a response received from the device participating in the predetermined network based on the execution of the broadcast of the predetermined command, and a response corresponding to the identification information of the target device. Determination means for performing a determination process for determining whether or not a predetermined response that is,
When the determination result of the determination process indicates that the predetermined response has not been detected, it is established based on the communication information acquired by the first wireless communication, outside the communication device and in the target device. Using a direct wireless connection between the communication device and the target device that is not an external device, which is an external device, executes second wireless communication for transmitting predetermined information to the target device,
When the determination result of the determination process indicates that the predetermined response is detected, the predetermined information is transferred to the predetermined information by using a wireless connection between the communication device and the target device via the external device. Second executing means for executing a third wireless communication to be transmitted to the target device,
A communication device, wherein the first wireless communication is executed by a short-range wireless communication method different from a communication method used for the second wireless communication and a communication method used for the third wireless communication.
前記外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続は、前記対象装置のアクセスポイントを用いた前記通信装置と前記対象装置との間の直接的な無線接続であることを特徴とする請求項1に記載の通信装置。   The direct wireless connection between the communication device and the target device not via the external device is a direct wireless connection between the communication device and the target device using an access point of the target device. The communication device according to claim 1, wherein the communication device is provided. 前記第1無線通信に用いられる前記近距離無線通信方式は、Near Field Communication(NFC)であることを特徴とする請求項1又は2に記載の通信装置。   The communication device according to claim 1, wherein the short-range wireless communication system used for the first wireless communication is Near Field Communication (NFC). 前記第1無線通信に用いられる前記近距離無線通信方式は、Bluetoothであることを特徴とする請求項1又は2に記載の通信装置。   The communication device according to claim 1 or 2, wherein the short-range wireless communication method used for the first wireless communication is Bluetooth. 前記第2無線通信に用いられる通信方式及び、前記第3無線通信に用いられる通信方式は、無線LANであることを特徴とする請求項1乃至4のいずれか1項に記載の通信装置。   The communication system according to claim 1, wherein the communication system used for the second wireless communication and the communication system used for the third wireless communication are wireless LANs. 前記第2無線通信に用いられる通信方式は、Wi−Fi Directであることを特徴とする請求項5に記載の通信装置。   The communication device according to claim 5, wherein the communication method used for the second wireless communication is Wi-Fi Direct. 前記第1無線通信に用いられる前記近距離無線通信方式は、前記第2無線通信に用いられる通信方式及び前記第3無線通信に用いられる通信方式と、通信速度が異なることを特徴とする請求項1乃至6のいずれか1項に記載の通信装置。   The short-distance wireless communication method used for the first wireless communication has a communication speed different from that of the communication method used for the second wireless communication and the communication method used for the third wireless communication. The communication device according to any one of 1 to 6. 前記対象装置の識別情報は、前記近距離無線通信方式によって、前記対象装置から受信されることを特徴とする請求項1乃至7のいずれか1項に記載の通信装置。   The communication device according to any one of claims 1 to 7, wherein the identification information of the target device is received from the target device by the short-range wireless communication method. 前記対象装置の識別情報は、MACアドレスを含むことを特徴とする請求項1乃至8のいずれか1項に記載の通信装置。   The communication device according to claim 1, wherein the identification information of the target device includes a MAC address. 前記通信情報は、SSID、パスワードのうち少なくとも1つを含むことを特徴とする請求項1乃至9のいずれか1項に記載の通信装置。   The communication device according to any one of claims 1 to 9, wherein the communication information includes at least one of an SSID and a password. 前記第2無線通信及び前記第3無線通信に用いられる通信方式の設定が有効か否かを確認する確認手段と、
前記設定が有効でないことが確認された場合、前記設定を有効にするための処理を実行する処理手段と、をさらに有することを特徴とする請求項1乃至10のいずれか1項に記載の通信装置。
Confirmation means for confirming whether or not the setting of the communication method used for the second wireless communication and the third wireless communication is valid;
The communication according to any one of claims 1 to 10, further comprising: a processing unit that executes a process for validating the setting when it is confirmed that the setting is not valid. apparatus.
前記通信装置と前記対象装置との間の前記近距離無線通信方式による通信に基づいて、前記対象装置が、前記外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続を実行するための所定のモードとしての動作を新たに開始し、
前記第2無線通信は、前記所定のモードとして動作している前記対象装置と前記通信装置との間の接続を用いた通信であることを特徴とする請求項1乃至11のいずれか1項に記載の通信装置。
A direct wireless connection between the communication device and the target device, in which the target device does not go through the external device, based on communication by the short-range wireless communication method between the communication device and the target device. To newly start the operation as a predetermined mode for executing
12. The second wireless communication is communication using a connection between the target device operating in the predetermined mode and the communication device, according to any one of claims 1 to 11. The communication device described.
前記所定のモードは、前記対象装置がアクセスポイントとして動作するモードであることを特徴とする請求項12に記載の通信装置。   The communication device according to claim 12, wherein the predetermined mode is a mode in which the target device operates as an access point. 前記第1無線通信において、前記対象装置を前記所定のモードとして動作させるための情報が、前記対象装置に送信されることを特徴とする請求項13に記載の通信装置。   The communication device according to claim 13, wherein in the first wireless communication, information for operating the target device in the predetermined mode is transmitted to the target device. 前記所定のネットワークに参加している装置から前記所定の命令のブロードキャストの実行に基づいて受信された応答から、前記第1無線通信によって取得された前記対象装置の識別情報と一致する情報を含む応答が検出されることで、前記所定の応答が検出されることを特徴とする請求項1乃至14のいずれか1項に記載の通信装置。   A response including information matching the identification information of the target device acquired by the first wireless communication from the response received from the device participating in the predetermined network based on the execution of the broadcast of the predetermined command. The communication device according to any one of claims 1 to 14, wherein the predetermined response is detected when is detected. 前記対象装置は、印刷を実行する印刷装置であり、
前記所定の情報は、前記対象装置に印刷を実行させるための印刷ジョブであることを特徴とする請求項1乃至15のいずれか1項に記載の通信装置。
The target device is a printing device that executes printing,
The communication device according to claim 1, wherein the predetermined information is a print job for causing the target device to execute printing.
通信装置の制御方法であって、
対象装置と、第1無線通信を実行する第1実行ステップと、
前記通信装置が参加している所定のネットワークに、所定の命令をブロードキャストするブロードキャストステップと、
前記所定の命令がブロードキャストされた場合、前記所定のネットワークに参加している装置から前記所定の命令のブロードキャストの実行に基づいて受信された応答であり、且つ前記対象装置の識別情報に対応する応答である所定の応答を検出したか否かを判定するための判定処理を実行する判定ステップと、
前記判定処理の判定結果が、前記所定の応答が検出されなかったことを示す場合、前記第1無線通信によって取得された通信情報に基づいて確立される、前記通信装置の外部且つ前記対象装置の外部の装置である外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続を用いて、所定の情報を前記対象装置に対して送信する第2無線通信を実行し、
前記判定処理の判定結果が、前記所定の応答が検出されたことを示す場合、前記外部装置を介した前記通信装置と前記対象装置との間の無線接続を用いて、前記所定の情報を前記対象装置に対して送信する第3無線通信を実行する第2実行ステップと、を有し、
前記第1無線通信は、前記第2無線通信に用いられる通信方式及び、前記第3無線通信に用いられる通信方式と異なる近距離無線通信方式によって実行されることを特徴とする制御方法。
A method for controlling a communication device, comprising:
A first execution step of executing first wireless communication with the target device;
A broadcast step of broadcasting a predetermined command to a predetermined network in which the communication device is participating,
When the predetermined command is broadcast, it is a response received from the device participating in the predetermined network based on the execution of the broadcast of the predetermined command, and a response corresponding to the identification information of the target device. A determination step for performing a determination process for determining whether or not a predetermined response that is
When the determination result of the determination process indicates that the predetermined response has not been detected, it is established based on the communication information acquired by the first wireless communication, outside the communication device and in the target device. Using a direct wireless connection between the communication device and the target device that is not an external device, which is an external device, executes second wireless communication for transmitting predetermined information to the target device,
When the determination result of the determination process indicates that the predetermined response is detected, the predetermined information is transferred to the predetermined information by using a wireless connection between the communication device and the target device via the external device. A second execution step of executing a third wireless communication to be transmitted to the target device,
The control method, wherein the first wireless communication is executed by a short-range wireless communication method different from a communication method used for the second wireless communication and a communication method used for the third wireless communication.
前記外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続は、前記対象装置のアクセスポイントを用いた前記通信装置と前記対象装置との間の直接的な無線接続であることを特徴とする請求項17に記載の制御方法。   The direct wireless connection between the communication device and the target device not via the external device is a direct wireless connection between the communication device and the target device using an access point of the target device. The control method according to claim 17, wherein the control method is provided. 前記第1無線通信に用いられる前記近距離無線通信方式は、Near Field Communication(NFC)であることを特徴とする請求項17又は18に記載の制御方法。   The control method according to claim 17 or 18, wherein the short-range wireless communication method used for the first wireless communication is Near Field Communication (NFC). 前記第1無線通信に用いられる前記近距離無線通信方式は、Bluetoothであることを特徴とする請求項17又は18に記載の制御方法。   The control method according to claim 17 or 18, wherein the short-range wireless communication method used for the first wireless communication is Bluetooth. 前記第2無線通信に用いられる通信方式及び、前記第3無線通信に用いられる通信方式は、無線LANであることを特徴とする請求項17乃至20のいずれか1項に記載の制御方法。   21. The control method according to claim 17, wherein the communication system used for the second wireless communication and the communication system used for the third wireless communication are wireless LANs. 前記第2無線通信に用いられる通信方式は、Wi−Fi Directであることを特徴とする請求項21に記載の制御方法。   22. The control method according to claim 21, wherein the communication method used for the second wireless communication is Wi-Fi Direct. 前記第1無線通信に用いられる前記近距離無線通信方式は、前記第2無線通信に用いられる通信方式及び前記第3無線通信に用いられる通信方式と、通信速度が異なることを特徴とする請求項17乃至22のいずれか1項に記載の制御方法。   The short-distance wireless communication method used for the first wireless communication has a communication speed different from that of the communication method used for the second wireless communication and the communication method used for the third wireless communication. 23. The control method according to any one of 17 to 22. 前記対象装置の識別情報は、前記近距離無線通信方式によって、前記対象装置から受信されることを特徴とする請求項17乃至23のいずれか1項に記載の制御方法。   The control method according to any one of claims 17 to 23, wherein the identification information of the target device is received from the target device by the short-range wireless communication method. 前記対象装置の識別情報は、MACアドレスを含むことを特徴とする請求項17乃至24のいずれか1項に記載の制御方法。   The control method according to any one of claims 17 to 24, wherein the identification information of the target device includes a MAC address. 前記通信情報は、SSID、パスワードのうち少なくとも1つを含むことを特徴とする請求項17乃至25のいずれか1項に記載の制御方法。   The control method according to claim 17, wherein the communication information includes at least one of an SSID and a password. 前記第2無線通信及び前記第3無線通信に用いられる通信方式の設定が有効か否かを確認する確認ステップと、
前記設定が有効でないことが確認された場合、前記設定を有効にするための処理を実行する処理ステップと、をさらに有することを特徴とする請求項17乃至26のいずれか1項に記載の制御方法。
A confirmation step of confirming whether or not the setting of the communication method used for the second wireless communication and the third wireless communication is valid;
27. The control according to any one of claims 17 to 26, further comprising a processing step of executing a process for validating the setting when it is confirmed that the setting is not valid. Method.
前記通信装置と前記対象装置との間の前記近距離無線通信方式による通信に基づいて、前記対象装置が、前記外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続を実行するための所定のモードとしての動作を新たに開始し、
前記第2無線通信は、前記所定のモードとして動作している前記対象装置と前記通信装置との間の接続を用いた通信であることを特徴とする請求項17乃至27のいずれか1項に記載の制御方法。
A direct wireless connection between the communication device and the target device, in which the target device does not go through the external device, based on communication by the short-range wireless communication method between the communication device and the target device. To newly start the operation as a predetermined mode for executing
The second wireless communication is a communication using a connection between the target device operating in the predetermined mode and the communication device. The described control method.
前記所定のモードは、前記対象装置がアクセスポイントとして動作するモードであることを特徴とする請求項28に記載の制御方法。   29. The control method according to claim 28, wherein the predetermined mode is a mode in which the target device operates as an access point. 前記第1無線通信において、前記対象装置を前記所定のモードとして動作させるための情報が、前記対象装置に送信されることを特徴とする請求項29に記載の制御方法。   30. The control method according to claim 29, wherein in the first wireless communication, information for operating the target device in the predetermined mode is transmitted to the target device. 前記所定のネットワークに参加している装置から前記所定の命令のブロードキャストの実行に基づいて受信された応答から、前記第1無線通信によって取得された前記対象装置の識別情報と一致する情報を含む応答が検出されることで、前記所定の応答が検出されることを特徴とする請求項17乃至30のいずれか1項に記載の制御方法。   A response including information matching the identification information of the target device acquired by the first wireless communication from the response received from the device participating in the predetermined network based on the execution of the broadcast of the predetermined command. 31. The control method according to claim 17, wherein the predetermined response is detected when is detected. 前記対象装置は、印刷を実行する印刷装置であり、
前記所定の情報は、前記対象装置に印刷を実行させるための印刷ジョブであることを特徴とする請求項17乃至31のいずれか1項に記載の制御方法。
The target device is a printing device that executes printing,
The control method according to any one of claims 17 to 31, wherein the predetermined information is a print job for causing the target device to execute printing.
通信装置のコンピュータに、
対象装置と、第1無線通信を実行する第1実行ステップと、
前記通信装置が参加している所定のネットワークに、所定の命令をブロードキャストするブロードキャストステップと、
前記所定の命令がブロードキャストされた場合、前記所定のネットワークに参加している装置から前記所定の命令のブロードキャストの実行に基づいて受信された応答であり、且つ前記対象装置の識別情報に対応する応答である所定の応答を検出したか否かを判定するための判定処理を実行する判定ステップと、
前記判定処理の判定結果が、前記所定の応答が検出されなかったことを示す場合、前記第1無線通信によって取得された通信情報に基づいて確立される、前記通信装置の外部且つ前記対象装置の外部の装置である外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続を用いて、所定の情報を前記対象装置に対して送信する第2無線通信を実行し、
前記判定処理の判定結果が、前記所定の応答が検出されたことを示す場合、前記外部装置を介した前記通信装置と前記対象装置との間の無線接続を用いて、前記所定の情報を前記対象装置に対して送信する第3無線通信を実行する第2実行ステップと、を実行させ、
前記第1無線通信は、前記第2無線通信に用いられる通信方式及び、前記第3無線通信に用いられる通信方式と異なる近距離無線通信方式によって実行されることを特徴とするプログラム。
In the computer of the communication device,
A first execution step of executing first wireless communication with the target device;
A broadcast step of broadcasting a predetermined command to a predetermined network in which the communication device is participating,
When the predetermined command is broadcast, it is a response received from the device participating in the predetermined network based on the execution of the broadcast of the predetermined command, and a response corresponding to the identification information of the target device. A determination step for performing a determination process for determining whether or not a predetermined response that is
When the determination result of the determination process indicates that the predetermined response has not been detected, it is established based on the communication information acquired by the first wireless communication, outside the communication device and in the target device. Using a direct wireless connection between the communication device and the target device that is not an external device, which is an external device, executes second wireless communication for transmitting predetermined information to the target device,
When the determination result of the determination process indicates that the predetermined response is detected, the predetermined information is transferred to the predetermined information by using a wireless connection between the communication device and the target device via the external device. A second execution step of executing a third wireless communication to be transmitted to the target device,
A program characterized in that the first wireless communication is executed by a short-range wireless communication method different from the communication method used for the second wireless communication and the communication method used for the third wireless communication.
前記外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続は、前記対象装置のアクセスポイントを用いた前記通信装置と前記対象装置との間の直接的な無線接続であることを特徴とする請求項33に記載のプログラム。   The direct wireless connection between the communication device and the target device not via the external device is a direct wireless connection between the communication device and the target device using an access point of the target device. 34. The program according to claim 33, wherein the program is present. 前記第1無線通信に用いられる前記近距離無線通信方式は、Near Field Communication(NFC)であることを特徴とする請求項33又は34に記載のプログラム。   The program according to claim 33 or 34, wherein the short-range wireless communication method used for the first wireless communication is Near Field Communication (NFC). 前記第1無線通信に用いられる前記近距離無線通信方式は、Bluetoothであることを特徴とする請求項33又は34に記載のプログラム。   The program according to claim 33 or 34, wherein the short-range wireless communication method used for the first wireless communication is Bluetooth. 前記第2無線通信に用いられる通信方式及び、前記第3無線通信に用いられる通信方式は、無線LANであることを特徴とする請求項33乃至36のいずれか1項に記載のプログラム。   37. The program according to claim 33, wherein the communication method used for the second wireless communication and the communication method used for the third wireless communication are wireless LANs. 前記第2無線通信に用いられる通信方式は、Wi−Fi Directであることを特徴とする請求項37に記載のプログラム。   38. The program according to claim 37, wherein the communication method used for the second wireless communication is Wi-Fi Direct. 前記第1無線通信に用いられる前記近距離無線通信方式は、前記第2無線通信に用いられる通信方式及び前記第3無線通信に用いられる通信方式と、通信速度が異なることを特徴とする請求項33乃至38のいずれか1項に記載のプログラム。   The short-distance wireless communication method used for the first wireless communication has a communication speed different from that of the communication method used for the second wireless communication and the communication method used for the third wireless communication. The program according to any one of 33 to 38. 前記対象装置の識別情報は、前記近距離無線通信方式によって、前記対象装置から受信されることを特徴とする請求項33乃至39のいずれか1項に記載のプログラム。   The program according to any one of claims 33 to 39, wherein the identification information of the target device is received from the target device by the short-range wireless communication system. 前記対象装置の識別情報は、MACアドレスを含むことを特徴とする請求項33乃至40のいずれか1項に記載のプログラム。   41. The program according to claim 33, wherein the identification information of the target device includes a MAC address. 前記通信情報は、SSID、パスワードのうち少なくとも1つを含むことを特徴とする請求項33乃至41のいずれか1項に記載のプログラム。   The program according to any one of claims 33 to 41, wherein the communication information includes at least one of an SSID and a password. 前記第2無線通信及び前記第3無線通信に用いられる通信方式の設定が有効か否かを確認する確認ステップと、
前記設定が有効でないことが確認された場合、前記設定を有効にするための処理を実行する処理ステップと、をさらに実行させることを特徴とする請求項33乃至42のいずれか1項に記載のプログラム。
A confirmation step of confirming whether or not the setting of the communication method used for the second wireless communication and the third wireless communication is valid;
The processing step of executing processing for validating the setting when it is confirmed that the setting is not valid, further performing the processing step. program.
前記通信装置と前記対象装置との間の前記近距離無線通信方式による通信に基づいて、前記対象装置が、前記外部装置を介さない前記通信装置と前記対象装置との間の直接的な無線接続を実行するための所定のモードとしての動作を新たに開始し、
前記第2無線通信は、前記所定のモードとして動作している前記対象装置と前記通信装置との間の接続を用いた通信であることを特徴とする請求項33乃至43のいずれか1項に記載のプログラム。
A direct wireless connection between the communication device and the target device, in which the target device does not go through the external device, based on communication by the short-range wireless communication method between the communication device and the target device. To newly start the operation as a predetermined mode for executing
44. The any one of claims 33 to 43, wherein the second wireless communication is communication using a connection between the target device operating in the predetermined mode and the communication device. The listed program.
前記所定のモードは、前記対象装置がアクセスポイントとして動作するモードであることを特徴とする請求項44に記載のプログラム。   The program according to claim 44, wherein the predetermined mode is a mode in which the target device operates as an access point. 前記第1無線通信において、前記対象装置を前記所定のモードとして動作させるための情報が、前記対象装置に送信されることを特徴とする請求項45に記載のプログラム。   The program according to claim 45, wherein in the first wireless communication, information for operating the target device in the predetermined mode is transmitted to the target device. 前記所定のネットワークに参加している装置から前記所定の命令のブロードキャストの実行に基づいて受信された応答から、前記第1無線通信によって取得された前記対象装置の識別情報と一致する情報を含む応答が検出されることで、前記所定の応答が検出されることを特徴とする請求項33乃至46のいずれか1項に記載のプログラム。   A response including information matching the identification information of the target device acquired by the first wireless communication from the response received from the device participating in the predetermined network based on the execution of the broadcast of the predetermined command. 47. The program according to claim 33, wherein the predetermined response is detected when is detected. 前記対象装置は、印刷を実行する印刷装置であり、
前記所定の情報は、前記対象装置に印刷を実行させるための印刷ジョブであることを特徴とする請求項33乃至47のいずれか1項に記載のプログラム。
The target device is a printing device that executes printing,
The program according to any one of claims 33 to 47, wherein the predetermined information is a print job for causing the target device to execute printing.
JP2019108082A 2014-06-06 2019-06-10 Communication device, control method, and program Active JP6701415B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2014117848 2014-06-06
JP2014117848 2014-06-06

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015012709A Division JP2016012910A (en) 2014-06-06 2015-01-26 Communication equipment, control method, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020068601A Division JP7027477B2 (en) 2014-06-06 2020-04-06 Communication equipment and control methods and programs

Publications (2)

Publication Number Publication Date
JP2019193282A JP2019193282A (en) 2019-10-31
JP6701415B2 true JP6701415B2 (en) 2020-05-27

Family

ID=68390881

Family Applications (4)

Application Number Title Priority Date Filing Date
JP2019108082A Active JP6701415B2 (en) 2014-06-06 2019-06-10 Communication device, control method, and program
JP2020068601A Active JP7027477B2 (en) 2014-06-06 2020-04-06 Communication equipment and control methods and programs
JP2022021413A Active JP7302050B2 (en) 2014-06-06 2022-02-15 Communication device, control method and program
JP2023099827A Pending JP2023112032A (en) 2014-06-06 2023-06-19 Communication device, control method, and program

Family Applications After (3)

Application Number Title Priority Date Filing Date
JP2020068601A Active JP7027477B2 (en) 2014-06-06 2020-04-06 Communication equipment and control methods and programs
JP2022021413A Active JP7302050B2 (en) 2014-06-06 2022-02-15 Communication device, control method and program
JP2023099827A Pending JP2023112032A (en) 2014-06-06 2023-06-19 Communication device, control method, and program

Country Status (1)

Country Link
JP (4) JP6701415B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6701415B2 (en) * 2014-06-06 2020-05-27 キヤノン株式会社 Communication device, control method, and program
JP2016012910A (en) 2014-06-06 2016-01-21 キヤノン株式会社 Communication equipment, control method, and program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102948179B (en) * 2010-06-23 2015-11-25 高通股份有限公司 The peer-to-peer that event triggers finds
JP5941300B2 (en) * 2012-03-05 2016-06-29 キヤノン株式会社 Information processing apparatus, information processing apparatus control method, and program
JP5884633B2 (en) * 2012-05-15 2016-03-15 ブラザー工業株式会社 Communication device
JP5954024B2 (en) * 2012-07-27 2016-07-20 ブラザー工業株式会社 Communication device
JP6035969B2 (en) 2012-08-03 2016-11-30 ブラザー工業株式会社 Communication device
JP6701415B2 (en) * 2014-06-06 2020-05-27 キヤノン株式会社 Communication device, control method, and program

Also Published As

Publication number Publication date
JP2020115670A (en) 2020-07-30
JP2019193282A (en) 2019-10-31
JP2022059004A (en) 2022-04-12
JP7302050B2 (en) 2023-07-03
JP2023112032A (en) 2023-08-10
JP7027477B2 (en) 2022-03-01

Similar Documents

Publication Publication Date Title
KR101865048B1 (en) Communication apparatus, control method, and storage medium
JP6071949B2 (en) Information processing apparatus, control method thereof, and program
JP6351241B2 (en) System, image processing apparatus, and control method
JP6401523B2 (en) COMMUNICATION DEVICE, TERMINAL DEVICE, ITS CONTROL METHOD AND PROGRAM, AND NETWORK PROCESSING SYSTEM
US20180124847A1 (en) Wireless communication device, and a control method and control program therefor
KR101948015B1 (en) Communication apparatus, control method, and storage medium
JP7302050B2 (en) Communication device, control method and program
JP6371825B2 (en) Information processing apparatus, control method thereof, and program
JP6270354B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6265192B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND APPLICATION PROGRAM
JP6394249B2 (en) Image processing device
US10277766B2 (en) Image forming apparatus, terminal device, data providing method, and computer program
JP2015100064A (en) Image forming system, portable terminal, image forming apparatus and control method of the same, and program
JP7546633B2 (en) Printing device, program, and control method
JP2019049971A (en) Printing apparatus, and method of controlling the same and program thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190610

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: 20200317

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200501

R151 Written notification of patent or utility model registration

Ref document number: 6701415

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151