JP2016111485A - Communication device, control method of communication device, and program - Google Patents

Communication device, control method of communication device, and program Download PDF

Info

Publication number
JP2016111485A
JP2016111485A JP2014246351A JP2014246351A JP2016111485A JP 2016111485 A JP2016111485 A JP 2016111485A JP 2014246351 A JP2014246351 A JP 2014246351A JP 2014246351 A JP2014246351 A JP 2014246351A JP 2016111485 A JP2016111485 A JP 2016111485A
Authority
JP
Japan
Prior art keywords
communication
wireless communication
unit
writing
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.)
Pending
Application number
JP2014246351A
Other languages
Japanese (ja)
Inventor
朋樹 平松
Tomoki Hiramatsu
朋樹 平松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014246351A priority Critical patent/JP2016111485A/en
Publication of JP2016111485A publication Critical patent/JP2016111485A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To realize a plurality of processes by using a proximity wireless communication.SOLUTION: A communication device according to the present invention, writes to a memory first setting information for communicating in a wireless network connected by a second wireless communication system when determining that the device is connected to a wireless network by the second wireless communication system; writes application information for activating an application to the memory; writes the application information to the memory when determining that the device is not connected to the wireless network by the second wireless communication system; and writes second setting information for communicating in the wireless network newly connecting by the second wireless communication system corresponding to the transmission when the written information is transmitted to the communication mating device by a first wireless communication system as a proximity wireless communication.SELECTED DRAWING: Figure 7

Description

本発明は、通信技術に関する。   The present invention relates to communication technology.

従来、携帯端末において、NFC(Near Field Communication)、IrDA (Infrared Data Association)、TransferJet(登録商標)などの近接無線通信を利用可能なものが知られている。近接無線通信では装置同士を近づけるといった操作を行うだけで、装置間でデータの送受信を行うことができる(特許文献1)。また、このような近接無線通信から無線LAN(IEEE802.11シリーズ)やBluetooth(登録商標)等の異なる無線通信方式にハンドオーバする技術がある。ここで、ハンドオーバとは、第1の通信手段である第1の通信路による通信から、第2の通信手段による第2の通信路による通信への切り替え行為を示す。   2. Description of the Related Art Conventionally, portable terminals that can use near field communication such as NFC (Near Field Communication), IrDA (Infrared Data Association), and TransferJet (registered trademark) are known. In close proximity wireless communication, data can be transmitted and received between devices simply by performing operations such as bringing the devices closer together (Patent Document 1). In addition, there is a technique for performing handover from such close proximity wireless communication to a different wireless communication method such as a wireless LAN (IEEE 802.11 series) or Bluetooth (registered trademark). Here, handover refers to an act of switching from communication via the first communication path, which is the first communication means, to communication via the second communication path via the second communication means.

さらに、NFCでアプリケーションに関する情報を含むデータを受信すると、その情報が示すアプリケーションを自動的に起動する機能がある。   Furthermore, there is a function of automatically starting the application indicated by the information when data including the information related to the application is received by NFC.

特開2007−221355号公報JP 2007-221355 A

上述のように、NFCなどの近接無線通信をさまざまな処理に用いることが提案されている。しかしながら、同一の装置間で近接無線通信を用いて実現される処理は単一であり、同一の装置間で近接無線通信を用いて複数の処理を実現することについては考慮されていなかった。   As described above, it has been proposed to use proximity wireless communication such as NFC for various processes. However, there is a single process realized using close proximity wireless communication between the same apparatuses, and no consideration has been given to realizing a plurality of processes using close proximity wireless communication between the same apparatuses.

本発明は上記課題を鑑みてなされた発明であって、近接無線通信を用いて複数の処理を実現することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to realize a plurality of processes using close proximity wireless communication.

上記課題を解決するため、本発明に係る通信装置は、メモリに記憶された情報を、近接無線通信である第1無線通信方式により通信相手装置に送信する第1無線通信手段と、第1無線通信方式とは異なる第2無線通信方式により前記通信相手装置と通信する第2無線通信手段と、前記第2無線通信手段により無線ネットワークに接続しているか否かを判定する判定手段と、前記第2無線通信手段により無線ネットワークに接続していると判定された場合、前記第2無線通信手段により接続している無線ネットワークにおいて通信するための第1設定情報とアプリケーションを起動させるためのアプリケーション情報とを前記メモリに書き込む第1書き込み手段と、前記第2無線通信手段により無線ネットワークに接続していないと判定された場合、前記アプリケーション情報を前記メモリに書き込む第2書き込み手段と、前記第2書き込み手段により書き込まれた情報を前記第1無線通信手段により前記通信相手装置に送信する第1送信手段と、前記第1送信手段による送信が行われた場合、前記第1送信手段による送信に応じて新たに前記第2無線通信手段により接続する無線ネットワークにおいて通信するための第2設定情報を、前記メモリに書き込む第3書き込み手段と、を有することを特徴とする。   In order to solve the above-described problem, a communication device according to the present invention includes a first wireless communication unit that transmits information stored in a memory to a communication partner device using a first wireless communication method that is close proximity wireless communication; A second wireless communication means for communicating with the communication counterpart device by a second wireless communication method different from the communication method, a determination means for determining whether or not the second wireless communication means is connected to a wireless network, When it is determined that the wireless communication means is connected to the wireless network, the first setting information for communicating in the wireless network connected by the second wireless communication means and the application information for starting the application, Is determined not to be connected to the wireless network by the first writing means and the second wireless communication means. A second writing means for writing the application information to the memory; a first sending means for sending the information written by the second writing means to the communication counterpart device by the first wireless communication means; When transmission is performed by the transmission means, second setting information for newly communicating in the wireless network connected by the second wireless communication means is written to the memory in response to the transmission by the first transmission means. And writing means.

本発明によれば、近接無線通信を用いて複数の処理を実現することができる。   According to the present invention, a plurality of processes can be realized using close proximity wireless communication.

通信システム構成を例示する図である。It is a figure which illustrates a communication system structure. プリンタのハードウェア構成の一例を示す図である。2 is a diagram illustrating an example of a hardware configuration of a printer. FIG. スマートフォンのハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a smart phone. プリンタの機能ブロック構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a functional block configuration of a printer. スマートフォンの機能ブロック構成の一例を示す図である。It is a figure which shows an example of the functional block structure of a smart phone. プリンタの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a printer. スマートフォンの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a smart phone. プリンタとスマートフォン間の通信シーケンスチャートを示す図である。It is a figure which shows the communication sequence chart between a printer and a smart phone.

以下、本実施形態に係る通信装置、通信システムについて、図面を参照しながら詳細に説明する。図1は、以下に説明する本実施形態において想定するシステム100の機器構成の図である。101、102は本実施形態に係る通信装置で、本実施形態においてそれぞれ101はプリンタ、102はスマートフォンである。なお、本実施形態における通信システムにおける装置をプリンタとスマートフォンとして説明を行うが、例えばデジタルカメラ、PC、ビデオカメラ、スマートウォッチ、PDAなどの装置であってもよい。   Hereinafter, a communication device and a communication system according to the present embodiment will be described in detail with reference to the drawings. FIG. 1 is a diagram of a device configuration of a system 100 assumed in the present embodiment described below. Reference numerals 101 and 102 denote communication apparatuses according to this embodiment. In this embodiment, 101 is a printer, and 102 is a smartphone. In addition, although the apparatus in the communication system in this embodiment is described as a printer and a smartphone, for example, apparatuses such as a digital camera, a PC, a video camera, a smart watch, and a PDA may be used.

スマートフォン102は、プリンタ101との間で、近接無線通信であるNFC(Near Field Communication)通信103を用いて通信が可能である。なお、本実施形態では、スマートフォン102がNFC Formに規定されるリーダライタモードで通信し、プリンタ101がNFC Formに規定されるカードエミュレーションモードで通信する。なお、リーダライタモードは、カードエミュレーションモードで動作する装置が有するメモリに対して読み書きするモードである。また、カードエミュレーションモードは、リーダライタモードで動作する装置からのメモリに対して読み書きが行われるモードである。なお、スマートフォン102とプリンタ101との間のNFC通信103は、NFC Formに規定されるP2Pモードで双方向通信を行うようにしてよい。また、プリンタ101とスマートフォン102は無線LAN通信104を用いてお互いに通信が可能である。さらには、プリンタ101とスマートフォン102はアクセスポイント(AP)105を介した無線LAN通信104を用いてもお互いに通信が可能である。   The smartphone 102 can communicate with the printer 101 using NFC (Near Field Communication) communication 103 which is near field communication. In this embodiment, the smartphone 102 communicates in the reader / writer mode defined in the NFC form, and the printer 101 communicates in the card emulation mode defined in the NFC form. Note that the reader / writer mode is a mode for reading from and writing to a memory of a device operating in the card emulation mode. The card emulation mode is a mode in which reading and writing are performed on a memory from a device operating in the reader / writer mode. Note that the NFC communication 103 between the smartphone 102 and the printer 101 may perform bidirectional communication in the P2P mode defined in the NFC Form. Further, the printer 101 and the smartphone 102 can communicate with each other using the wireless LAN communication 104. Furthermore, the printer 101 and the smartphone 102 can communicate with each other even using the wireless LAN communication 104 via the access point (AP) 105.

続いて、図2はプリンタ101のハードウェア構成を示す図である。プリンタ101は、表示部201、操作部202、記憶部203、電源部204、制御部205、ROM206、RAM207、NFCタグ部208、無線LAN通信部209、印刷部210を備える。   Next, FIG. 2 is a diagram illustrating a hardware configuration of the printer 101. The printer 101 includes a display unit 201, an operation unit 202, a storage unit 203, a power supply unit 204, a control unit 205, a ROM 206, a RAM 207, an NFC tag unit 208, a wireless LAN communication unit 209, and a printing unit 210.

表示部201は、例えばLCDやLEDにより構成され、ユーザが視覚で認知可能な情報を出力する機能を有し、各種UIの表示を行う。操作部202は、ユーザが各種入力等を行い、通信装置を操作するための機能を有する。記憶部203は、例えば、例えば、HDD、フラッシュメモリまたは着脱可能なSDカードなどの記憶媒体により構成され、無線通信ネットワーク情報、データ送受信情報、画像データなど各種データを記憶し、管理する。電源部204は、例えばAC(Alternating Current)電源であり、装置全体を動作させるための電源をコンセントから取得し、各ハードウェアに電力を供給する。   The display unit 201 is configured by, for example, an LCD or an LED, and has a function of outputting information that can be visually recognized by the user, and displays various UIs. The operation unit 202 has a function for the user to perform various inputs and operate the communication apparatus. The storage unit 203 includes, for example, a storage medium such as an HDD, a flash memory, or a removable SD card, and stores and manages various data such as wireless communication network information, data transmission / reception information, and image data. The power supply unit 204 is, for example, an AC (Alternating Current) power supply, acquires a power supply for operating the entire apparatus from an outlet, and supplies power to each hardware.

制御部205は、例えばCPU(Central Processing Unit)であり、プリンタ101の各構成要素の動作を制御する。ROM206は、制御命令つまりプログラムを格納し、後述する各種動作は、ROM206に記憶された制御プログラムを制御部205が実行することにより実現される。RAM207は、プログラムを実行する際のワークメモリやデータの一時保存などに利用される。   The control unit 205 is a CPU (Central Processing Unit), for example, and controls the operation of each component of the printer 101. The ROM 206 stores control commands, that is, programs, and various operations described later are realized by the control unit 205 executing the control programs stored in the ROM 206. The RAM 207 is used for temporary storage of work memory and data when executing a program.

208は、NFC通信103を行うNFCタグ部である。NFCタグ部208は、内部に不揮発性メモリを有し、NFC通信103を介してリーダライタから該メモリに記憶されるデータを読み書きさせることが可能である。NFCタグ部208は、NFC Forumで規定された通信規則に準拠した無線通信を行う。なお、NFCタグ部208のメモリは、制御部205から内部的に、記憶する情報を書き換えることも、外部装置であるリーダライタからの書き込みにより、記憶する情報を書き換えることも可能である。また、NFCタグ部208は、通信範囲内に通信可能な装置を検出すると自動的にNFC通信103を確立し、通信相手装置からのリードコマンドに応じて自動的にメモリに記憶されている情報を送信する。なお、NFCタグ部208は、NFC規格に準拠した無線通信を行うものとしたが、例えば、赤外線通信(IrDA)やTransfer Jetなどの他の近接無線通信、またはその他の無線通信方式で通信するようにしても良い。また、NFCタグ部208は、Bluetooth(登録商標)4.0で規定されるBluetooth Low Energy(BLE)方式を用いてもよい。   Reference numeral 208 denotes an NFC tag unit that performs the NFC communication 103. The NFC tag unit 208 has a nonvolatile memory inside, and can read / write data stored in the memory from the reader / writer via the NFC communication 103. The NFC tag unit 208 performs wireless communication complying with the communication rules defined by the NFC Forum. Note that the memory of the NFC tag unit 208 can rewrite stored information internally from the control unit 205 or can rewrite stored information by writing from a reader / writer as an external device. In addition, the NFC tag unit 208 automatically establishes the NFC communication 103 when detecting a communicable device within the communication range, and automatically stores information stored in the memory in response to a read command from the communication partner device. Send. The NFC tag unit 208 performs wireless communication conforming to the NFC standard. However, for example, the NFC tag unit 208 performs communication using other close proximity wireless communication such as infrared communication (IrDA) and Transfer Jet, or other wireless communication methods. Anyway. Further, the NFC tag unit 208 may use a Bluetooth Low Energy (BLE) system defined by Bluetooth (registered trademark) 4.0.

無線LAN通信部209は、無線LAN通信104を行う。無線LAN通信部209は、IEEE(The Institute of Electrical and Electronics Engineers,Inc.)802.11シリーズに準拠した無線通信を行う。なお、本実施形態では、無線LAN通信部209は、IEEE802.11シリーズに準拠した無線通信を行うものとしたが、Bluetooth(登録商標)等の他の通信方式を用いてもよい。印刷部210は、印刷を行うためのハードウェア要素である。   A wireless LAN communication unit 209 performs wireless LAN communication 104. The wireless LAN communication unit 209 performs wireless communication conforming to the IEEE (The Institute of Electrical and Electronics Engineers, Inc.) 802.11 series. In the present embodiment, the wireless LAN communication unit 209 performs wireless communication conforming to the IEEE 802.11 series, but other communication methods such as Bluetooth (registered trademark) may be used. The printing unit 210 is a hardware element for performing printing.

続いて、図3を用いてスマートフォン102のハードウェア構成を説明する。スマートフォン102は、表示部301、操作部302、記憶部303、電源部304、制御部305、ROM306、RAM307、NFC通信部308、無線LAN通信部309を備える。表示部301は、例えばLCDやLEDにより構成され、ユーザが視覚で認知可能な情報を出力する機能を有し、各種UIの表示を行う。操作部302は、ユーザが各種入力等を行い、通信装置を操作するための機能を有する。なお、表示部301と操作部302とをタッチパネル等によって一体として構成してよい。   Next, the hardware configuration of the smartphone 102 will be described with reference to FIG. The smartphone 102 includes a display unit 301, an operation unit 302, a storage unit 303, a power supply unit 304, a control unit 305, a ROM 306, a RAM 307, an NFC communication unit 308, and a wireless LAN communication unit 309. The display unit 301 is configured by, for example, an LCD or LED, has a function of outputting information visually recognizable by the user, and displays various UIs. The operation unit 302 has a function for the user to perform various inputs and operate the communication apparatus. Note that the display unit 301 and the operation unit 302 may be integrally configured by a touch panel or the like.

記憶部303は、例えば、HDD、フラッシュメモリまたは着脱可能なSDカードなどの記憶媒体により構成され、無線通信ネットワーク情報、データ送受信情報、画像データ、アプリケーションなど各種データを記憶し、管理する。電源部304は、例えばバッテリであり、装置全体を動作させるための電源を保持し、各ハードウェアに電力を供給する。   The storage unit 303 includes a storage medium such as an HDD, a flash memory, or a removable SD card, and stores and manages various data such as wireless communication network information, data transmission / reception information, image data, and applications. The power supply unit 304 is, for example, a battery, holds a power supply for operating the entire apparatus, and supplies power to each hardware.

制御部305は、例えばCPUであり、スマートフォン102の装置全体の動作を制御する。ROM306は、制御命令つまりプログラムを格納する。後述する各種動作は、ROM306に記憶された制御プログラムを制御部305が実行することにより実現される。RAM307は、プログラムを実行する際のワークメモリやデータの一時保存などに利用される。   The control unit 305 is a CPU, for example, and controls the operation of the entire smartphone 102. The ROM 306 stores control instructions, that is, programs. Various operations to be described later are realized by the control unit 305 executing a control program stored in the ROM 306. The RAM 307 is used for temporary storage of work memory and data when executing a program.

NFC通信部308は、NFC規格に準拠したNFC通信103を行う。また、NFC通信部308は、通信範囲内に通信可能な装置を検出すると自動的にNFC通信103を確立する。本実施形態では、NFC通信部308はリーダライタとして動作し、NFCタグ208の内部メモリのデータを読み出すことができる。なお、NFC通信部308は、NFC規格に準拠した無線通信を行うものとしたが、例えば、赤外線通信(IrDA)やTransfer Jetなどの他の近接無線通信、またはその他の無線通信方式で通信するようにしても良い。また、NFC通信部308は、BLE方式を用いてもよい
309は、無線LAN通信104を行う無線LAN通信部である。無線LAN通信部209は、IEEE802.11シリーズに準拠した無線通信を行う。なお、本実施形態では、無線LAN通信部309は、IEEE802.11シリーズに準拠した無線通信を行うものとしたが、Bluetooth(登録商標)等の他の通信方式を用いてもよい。
The NFC communication unit 308 performs NFC communication 103 compliant with the NFC standard. Further, the NFC communication unit 308 automatically establishes the NFC communication 103 when a device capable of communication within the communication range is detected. In the present embodiment, the NFC communication unit 308 operates as a reader / writer and can read data in the internal memory of the NFC tag 208. The NFC communication unit 308 performs wireless communication in conformity with the NFC standard. For example, the NFC communication unit 308 may perform communication using other close proximity wireless communication such as infrared communication (IrDA) or Transfer Jet, or other wireless communication methods. Anyway. The NFC communication unit 308 may use the BLE method. 309 is a wireless LAN communication unit that performs the wireless LAN communication 104. The wireless LAN communication unit 209 performs wireless communication conforming to the IEEE 802.11 series. In the present embodiment, the wireless LAN communication unit 309 performs wireless communication conforming to the IEEE 802.11 series, but other communication methods such as Bluetooth (registered trademark) may be used.

公衆通信部310は、移動体通信事業者の公衆無線基地局と接続され、公衆通信網を経由して電話通信またはインターネットへのアクセスのための通信を行う。   The public communication unit 310 is connected to a public wireless base station of a mobile communication carrier, and performs communication for telephone communication or access to the Internet via a public communication network.

次に図4、図5を参照して、プリンタ101、スマートフォン102の機能ブロック図を説明する。本実施形態において、プリンタ101、スマートフォン102の機能ブロックは、それぞれROM206、306にプログラムとして記憶され、制御部205、305によって当該プログラムが実行されることによりその機能が実施される。制御部205、305は、制御プログラムにしたがって、各ハードウェアの制御、および、情報の演算や加工を行うことで各機能が実現される。なお、本機能ブロックに含まれる一部または全部がハードウェア化されていてもよい。この場合、各機能ブロックに含まれる一部または全部は、例えばASIC(Application Specific Integrated Circuit)により構成される。   Next, functional block diagrams of the printer 101 and the smartphone 102 will be described with reference to FIGS. 4 and 5. In the present embodiment, the functional blocks of the printer 101 and the smartphone 102 are stored as programs in the ROMs 206 and 306, respectively, and the functions are implemented by executing the programs by the control units 205 and 305. The control units 205 and 305 implement each function by performing control of each hardware and calculation and processing of information according to a control program. A part or all of the functional blocks may be implemented as hardware. In this case, a part or all of the functional blocks are configured by, for example, ASIC (Application Specific Integrated Circuit).

図4はプリンタ101の機能ブロック図(400)である。プリンタ101は、NFCタグ制御部410、無線LAN通信制御部420、印刷制御部430、表示制御部440を備える。NFCタグ制御部410は、NFCタグ部208の内部メモリのデータを読み書きする機能を備える。また、NFCタグ制御部410は、NFC通信103が確立/切断されたことを検知する機能も備える。NFCタグ制御部410は、NFC通信が切断してからの所定期間をタイマーで計測し、所定期間経過するまでにNFC通信が再接続したか否かを判定する。また、NFCタグ制御部410は、NFC通信103により外部のリーダライタから読み書きされたことを検知する機能も備える。   FIG. 4 is a functional block diagram (400) of the printer 101. The printer 101 includes an NFC tag control unit 410, a wireless LAN communication control unit 420, a print control unit 430, and a display control unit 440. The NFC tag control unit 410 has a function of reading and writing data in the internal memory of the NFC tag unit 208. The NFC tag control unit 410 also has a function of detecting that the NFC communication 103 has been established / disconnected. The NFC tag control unit 410 measures a predetermined period after the NFC communication is disconnected with a timer, and determines whether the NFC communication is reconnected before the predetermined period elapses. The NFC tag control unit 410 also has a function of detecting that reading / writing has been performed from an external reader / writer by the NFC communication 103.

無線LAN通信制御部420は、無線LAN通信部209を介した無線LAN通信を制御する処理部である。また、無線LAN通信制御部420は、無線LANのインフラストラクチャモードにおけるステーションとして動作するSTA機能と、アクセスポイントとして動作するAP機能を備える。印刷制御部430は、印刷部210を制御することで外部装置から入力された印刷要求を実行する処理部である。表示制御部440は、表示部201への出力および操作部202からの入力を処理する。   The wireless LAN communication control unit 420 is a processing unit that controls wireless LAN communication via the wireless LAN communication unit 209. The wireless LAN communication control unit 420 includes an STA function that operates as a station in an infrastructure mode of the wireless LAN and an AP function that operates as an access point. The print control unit 430 is a processing unit that executes a print request input from an external device by controlling the printing unit 210. The display control unit 440 processes output to the display unit 201 and input from the operation unit 202.

図5はスマートフォン102の機能ブロック図(500)である。スマートフォン102は、NFC通信制御部510、無線LAN通信制御部520、アプリケーション制御部530、表示制御部540を備える。NFC通信制御部510は、NFC通信部308を介したNFC通信103を制御する処理部である。NFC通信制御部510は、NFC通信103の圏内にNFCタグを検出した場合、ユーザ操作なしに該NFCタグの内部メモリの読み込みを行うものとする。無線LAN通信制御部520は、プリンタ101の無線LAN通信制御部420で説明した機能に加え、NFC通信103により、後述する無線LAN設定情報を読み取った場合、該無線LAN設定情報が示す無線LANネットワークに自動接続する機能も備える。アプリケーション制御部530は、スマートフォンの記憶部303にインストールされたアプリケーションをRAM307にリードし、実行する制御部である。NFC通信103により、後述するアプリケーション情報を読み取った場合、該アプリケーション情報に対応するアプリケーションをユーザの入力操作なしに起動する機能も備える。また、該アプリケーション情報に対応するアプリケーションがインストールされていない場合、該アプリケーションのダウンロードサイトを表示し、ユーザにインストールを誘導する機能も備える。その他の機能ブロックは、プリンタ101と同一であるため、ここでは記載を省略する。   FIG. 5 is a functional block diagram (500) of the smartphone. The smartphone 102 includes an NFC communication control unit 510, a wireless LAN communication control unit 520, an application control unit 530, and a display control unit 540. The NFC communication control unit 510 is a processing unit that controls the NFC communication 103 via the NFC communication unit 308. When the NFC communication control unit 510 detects an NFC tag within the range of the NFC communication 103, the NFC communication control unit 510 reads the internal memory of the NFC tag without any user operation. In addition to the functions described in the wireless LAN communication control unit 420 of the printer 101, the wireless LAN communication control unit 520, when reading wireless LAN setting information described later by the NFC communication 103, the wireless LAN network indicated by the wireless LAN setting information It also has a function to automatically connect to. The application control unit 530 is a control unit that reads an application installed in the storage unit 303 of the smartphone into the RAM 307 and executes the application. When the application information to be described later is read by the NFC communication 103, a function of starting an application corresponding to the application information without a user input operation is also provided. In addition, when an application corresponding to the application information is not installed, a function for displaying a download site of the application and guiding the installation to the user is also provided. Since other functional blocks are the same as those of the printer 101, description thereof is omitted here.

上述の構成を有する通信システムの動作について説明を行う。   The operation of the communication system having the above configuration will be described.

図6のフローチャートを参照して、第一の実施形態におけるプリンタ101の動作手順について説明する。なお、図6に示すフローチャートは、制御部205がROM206に記憶さている制御プログラムを実行し、情報の演算および加工、各ハードウェアの制御を実行することにより実現される。なお、図6に示すフローチャートに示すステップの一部または全部を例えばASIC等のハードウェアで実現する構成としても良い。   An operation procedure of the printer 101 in the first embodiment will be described with reference to the flowchart of FIG. Note that the flowchart shown in FIG. 6 is realized by the control unit 205 executing a control program stored in the ROM 206 to execute calculation and processing of information and control of each hardware. A part or all of the steps shown in the flowchart shown in FIG. 6 may be realized by hardware such as ASIC.

初期状態として、プリンタ101は、印刷ジョブを受け付け可能であり、かつプリンタ101とスマートフォン102はNFC通信103の圏外に位置しているものとする。   As an initial state, it is assumed that the printer 101 can accept a print job, and the printer 101 and the smartphone 102 are located outside the NFC communication 103 range.

まず、プリンタ101は、電源ONなどを契機に処理を開始するとアクセスポイント105が形成する無線ネットワークに、無線LAN通信部209による無線LAN通信104で接続されているかを判定する(S601)。なお、S601における判定は、外部装置であるアクセスポイント105との接続を判定するとしたが、無線LAN通信制御部420によりプリンタ101のAP機能により無線ネットワークを形成している状態であるか否かを判定する構成としてもよい。また、S601における判定は、無線LAN通信制御部420によりプリンタ101のAP機能により無線ネットワークを形成し、形成した無線ネットワークを介して他の装置と接続しているか否かを判定するようにしてもよい。   First, when the printer 101 starts processing when the power is turned on, the printer 101 determines whether it is connected to the wireless network formed by the access point 105 by the wireless LAN communication 104 by the wireless LAN communication unit 209 (S601). Note that the determination in S601 is that the connection with the access point 105, which is an external device, is determined. However, whether or not the wireless LAN communication control unit 420 forms a wireless network by the AP function of the printer 101 is determined. It is good also as a structure to determine. The determination in step S601 may be performed by determining whether or not the wireless LAN communication control unit 420 forms a wireless network by the AP function of the printer 101 and is connected to another device via the formed wireless network. Good.

S601において、無線LAN接続されていないと判定された場合、プリンタ101の制御部205は、NFCタグ部208の内部メモリにアプリケーション情報を書き込む(S602)。ここで、アプリケーション情報とは、スマートフォン102のアプリケーション制御部530で実行可能なアプリケーションの識別子を含む情報である。先に述べたように、スマートフォン102は、NFC通信103によりアプリケーション情報を読み取ると、当該識別子に対応するアプリケーションの起動、またはダウンロードサイトへの誘導を行う。即ち、プリンタ101は、アプリケーション情報をスマートフォン102に送信することで、スマートフォン102に当該アプリケーション情報が示すアプリケーションを起動させることができる。なお、NFCタグ部208のメモリに書き込まれているアプリケーション情報は、スマートフォン102において記憶されている画像データをプリンタ101に送信し、印刷させるための印刷アプリケーションを起動させるための情報である。なお、他のアプリケーション情報であってもよい。   If it is determined in step S601 that the wireless LAN is not connected, the control unit 205 of the printer 101 writes application information in the internal memory of the NFC tag unit 208 (S602). Here, the application information is information including an identifier of an application that can be executed by the application control unit 530 of the smartphone 102. As described above, when the smartphone 102 reads the application information through the NFC communication 103, the smartphone 102 activates an application corresponding to the identifier or leads to a download site. That is, the printer 101 can activate the application indicated by the application information on the smartphone 102 by transmitting the application information to the smartphone 102. Note that the application information written in the memory of the NFC tag unit 208 is information for transmitting image data stored in the smartphone 102 to the printer 101 and starting a printing application for printing. Other application information may be used.

一方、S601において、無線LAN接続されていると判定された場合、プリンタ101の制御部205は、NFCタグ部208の内部メモリにアプリケーション情報と接続中のネットワークに関する無線LAN設定情報を書き込む(S603)。無線LAN設定情報は、IEEE802.11規格に準拠して無線通信するための各種無線通信パラメータが含まれる。無線LAN設定情報は、ネットワーク識別子としてのSSID(Service Set Identifier)、暗号方式、暗号鍵、認証方式、認証鍵等の無線LAN通信を行うために必要な無線通信パラメータが含まれる。また、IP層での通信を行うためのIPアドレス等も含めてもよい。また、BSSID(Basic Service Set Identifier)、InfrastructureモードやAdhocモードといった無線ネットワーク種別を含めてもよい。また、アクセスポイントモードやクライアントモードといった無線ネットワーク上の役割を含めてもよい。   On the other hand, if it is determined in S601 that the wireless LAN connection is established, the control unit 205 of the printer 101 writes application information and wireless LAN setting information related to the connected network in the internal memory of the NFC tag unit 208 (S603). . The wireless LAN setting information includes various wireless communication parameters for performing wireless communication in accordance with the IEEE 802.11 standard. The wireless LAN setting information includes wireless communication parameters necessary for performing wireless LAN communication such as an SSID (Service Set Identifier) as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. Further, an IP address for performing communication in the IP layer may be included. In addition, a wireless network type such as BSSID (Basic Service Set Identifier), Infrastructure mode, or Adhoc mode may be included. Further, a role on the wireless network such as an access point mode or a client mode may be included.

そして、プリンタ101のNFCタグ部208は、NFC通信103が確立したかを判定する(S604)。ここで、ユーザがスマートフォン102をプリンタ101とのNFC通信103の圏内に近づけると、スマートフォン102はNFC通信103を開始する。そして、プリンタ101は、リーダライタであるスマートフォン102と近接したことに応じて、NFC通信103が確立されたことを検出する。なお、NFC通信103が確立しない場合は、上述のS601からS603の処理を繰り返しおこなう。   Then, the NFC tag unit 208 of the printer 101 determines whether the NFC communication 103 has been established (S604). Here, when the user brings the smartphone 102 close to the range of the NFC communication 103 with the printer 101, the smartphone 102 starts the NFC communication 103. Then, the printer 101 detects that the NFC communication 103 has been established in response to the proximity of the smartphone 102 that is a reader / writer. If the NFC communication 103 is not established, the above-described processing from S601 to S603 is repeated.

プリンタ101は、NFC通信103が確立するとスマートフォン102からのリードコマンドに応じて、NFCタグ部208に記憶されている情報をNFC通信103によりスマートフォン102に送信する(S605)。そして、プリンタ101のNFCタグ部208は、NFC通信103が切断したか否かを判定する(S606)。ユーザがスマートフォン102をプリンタ101とのNFC通信103の圏外に遠ざけると、プリンタ101は、NFC通信103の切断を検出する。   When the NFC communication 103 is established, the printer 101 transmits information stored in the NFC tag unit 208 to the smartphone 102 through the NFC communication 103 in response to a read command from the smartphone 102 (S605). Then, the NFC tag unit 208 of the printer 101 determines whether or not the NFC communication 103 has been disconnected (S606). When the user moves the smartphone 102 away from the NFC communication 103 with the printer 101, the printer 101 detects disconnection of the NFC communication 103.

プリンタ101は、NFC通信103の切断を検出すると、S605において無線LAN設定情報を送信したか否かで処理を切り替える。S605において無線LAN設定情報を送信した場合(S607のYES)、送信した無線LAN設定情報の無線ネットワークにおいて、S604におけるNFC通信の通信相手(スマートフォン102)と接続したか否かを判定する(S608)。   When the printer 101 detects disconnection of the NFC communication 103, the printer 101 switches processing depending on whether the wireless LAN setting information is transmitted in S605. When the wireless LAN setting information is transmitted in S605 (YES in S607), it is determined whether or not the wireless network of the transmitted wireless LAN setting information is connected to the communication partner (smartphone 102) of NFC communication in S604 (S608). .

ここで、スマートフォン102との接続とは、無線LAN通信104を介してプリンタ101と印刷・スキャン・状態取得などの連携処理が実行可能なあることを意味する。具体的には、SSDP(Simple Service Discovery Protorol)などのディスカバリ処理によりスマートフォン102を発見している状態であるか否かで判定する。また、TCP(Transmission Control Protocol)でスマートフォン102と接続しているといった条件で判定する。即ち、プリンタ101は、無線LAN104およびIP層などでスマートフォン102と接続しているか否かを判定する。
なお、該判定は、スマートフォン102からのリードコマンドに含まれるスマートフォン102の識別情報に基づいて行われる。
Here, the connection with the smartphone 102 means that cooperation processing such as printing, scanning, and status acquisition can be executed with the printer 101 via the wireless LAN communication 104. Specifically, the determination is made based on whether or not the smartphone 102 is found by a discovery process such as SSDP (Simple Service Discovery Protocol). Further, the determination is made under the condition that the smartphone 102 is connected by TCP (Transmission Control Protocol). That is, the printer 101 determines whether it is connected to the smartphone 102 via the wireless LAN 104 and the IP layer.
The determination is made based on the identification information of the smartphone 102 included in the read command from the smartphone 102.

S608において、プリンタ101は、スマートフォン102との接続が検出された場合、後述するS616に処理を進める。S608において、プリンタ101は、スマートフォン102との接続が検出されなかった場合、後述するS618に処理を進める。   If the connection with the smartphone 102 is detected in step S608, the printer 101 advances the process to step S616 described later. If the connection with the smartphone 102 is not detected in step S <b> 608, the printer 101 advances the process to step S <b> 618 described later.

一方、S605において無線LAN設定情報を送信しない場合に、NFC通信103の切断を検出する(S607のNO)と、プリンタ101の無線LAN通信部209は、AP機能を起動し、無線LANネットワークの作成を行う(S609)。さらに、プリンタ101の制御部205は、NFCタグ部208の内部メモリにS609にて生成した無線LANネットワークに関する無線LAN設定情報を上書きする(S610)。なお、無線LAN設定情報を上書きした後に、プリンタ101またはスマートフォン102の表示部201、301において、再度スマートフォン102をプリンタ101に近づけてNFC通信の確立を促すための情報の表示を行ってもよい。また、S610の無線LAN設定情報の上書きは、S604におけるNFC通信の確立の検出後、一定時間経過すると自動で実施されてもよい。   On the other hand, when the wireless LAN setting information is not transmitted in S605, if the disconnection of the NFC communication 103 is detected (NO in S607), the wireless LAN communication unit 209 of the printer 101 activates the AP function and creates a wireless LAN network. (S609). Further, the control unit 205 of the printer 101 overwrites the wireless LAN setting information relating to the wireless LAN network generated in S609 in the internal memory of the NFC tag unit 208 (S610). In addition, after overwriting the wireless LAN setting information, the display unit 201 or 301 of the printer 101 or the smartphone 102 may display information for prompting the establishment of NFC communication by bringing the smartphone 102 closer to the printer 101 again. The overwriting of the wireless LAN setting information in S610 may be automatically performed when a certain time has elapsed after the detection of the establishment of NFC communication in S604.

S610の無線LAN設定情報の書き込み後、プリンタ101の制御部205は、タイマーによる所定期間の計測を開始する(S611)。プリンタ101の制御部205は、無線LAN設定情報の上書きを終えると、所定期間が経過するまでにNFC通信103が確立したか否かを判定する(S612、S613)。   After the wireless LAN setting information is written in S610, the control unit 205 of the printer 101 starts measuring a predetermined period using a timer (S611). When the control unit 205 of the printer 101 finishes overwriting the wireless LAN setting information, the control unit 205 determines whether the NFC communication 103 has been established before the predetermined period elapses (S612 and S613).

なお、S612の判定は、S604により確立したNFC通信103の通信相手装置との再接続を判定するようにしてよい。この場合、スマートフォン102はNFC通信103が確立すると、NFCタグ部208に識別情報を書き込むようにする。そして、プリンタ101は、S604においてNFCタグ部208に書き込まれた識別情報と次のNFC通信103の確立時にNFCタグ部208に書き込まれた識別情報とを比較する。そして、プリンタ101は、これらの書き込まれた識別情報が一致する場合、S604により確立したNFC通信103の通信相手装置と再接続したと判定する。再接続したと判定された場合、後述するS614に処理を進める。また、S612において再接続を判定する場合、S604により確立したNFC通信103の通信相手装置と異なる装置とNFC通信103が確立した場合、エラーを表示し、後述するS618に処理を進めるようにしてよい。   Note that the determination in S612 may determine reconnection with the communication partner apparatus of the NFC communication 103 established in S604. In this case, when the NFC communication 103 is established, the smartphone 102 writes identification information in the NFC tag unit 208. In step S <b> 604, the printer 101 compares the identification information written in the NFC tag unit 208 with the identification information written in the NFC tag unit 208 when the next NFC communication 103 is established. If the written identification information matches, the printer 101 determines that reconnection has been established with the communication partner apparatus of the NFC communication 103 established in S604. If it is determined that the connection has been reconnected, the process proceeds to S614 described later. When determining reconnection in S612, if NFC communication 103 is established with a device different from the communication partner device of NFC communication 103 established in S604, an error may be displayed, and the process may proceed to S618 described later. .

このように、S612において再接続を判定することによって、意図しない別の装置に無線LAN設定情報を渡してしまうことを低減することができるため、セキュリティを向上することができる。   As described above, by determining reconnection in S612, it is possible to reduce passing of wireless LAN setting information to another unintended apparatus, and thus security can be improved.

プリンタ101のNFCタグ部208は、所定期間が経過するまでにNFC通信103が確立した場合、スマートフォン102からのリードコマンドに応じて、記憶されている無線LAN設定情報をNFC通信103により送信する(S614)。   The NFC tag unit 208 of the printer 101 transmits the stored wireless LAN setting information by the NFC communication 103 in response to the read command from the smartphone 102 when the NFC communication 103 is established before the predetermined period elapses ( S614).

そして、プリンタ101は、送信した無線LAN設定情報が示すネットワークにおいてスマートフォン102と無線LAN通信104による通信が確立したかを判定する(S615)。プリンタ101は、スマートフォン102からの無線LAN接続要求を無線LAN通信部209により受信した場合、無線LAN通信104の接続を行う。そして、上述したS608と同様のディスカバリ処理によりスマートフォン102との接続の確立の判定を行う。S615の処理を開始してから所定期間が経過するまでに無線LAN通信104の通信が確立したことを検出できなかった場合、S618に処理を進めるようにしてよい。   Then, the printer 101 determines whether communication by the smartphone 102 and the wireless LAN communication 104 has been established in the network indicated by the transmitted wireless LAN setting information (S615). When the wireless LAN communication unit 209 receives a wireless LAN connection request from the smartphone 102, the printer 101 connects to the wireless LAN communication 104. Then, the establishment of the connection with the smartphone 102 is determined by the discovery process similar to S608 described above. If it is not detected that the communication of the wireless LAN communication 104 has been established after the lapse of a predetermined period from the start of the process of S615, the process may be advanced to S618.

そして、プリンタ101の無線LAN通信部209は、スマートフォン102から印刷処理を要求されると、無線LAN通信104により印刷データの受信を実行する(S616)。そして、プリンタ101は、受信した印刷データを印刷部210により印刷する(S617)。なお、S617において、印刷が終了した場合、S601において接続が判定された無線接続を切断する、もしくは、S609で作成した無線LANネットワークを終了してもよい。なお、印刷処理が終了した場合、S609でAP機能において自装置が作成したネットワークは終了するが、S601の判断時に既に接続していたネットワークへの接続は維持するようにしてもよい。また、印刷処理が終了した場合、S609でAP機能において自装置が作成したネットワーク維持し、S601の判断時に既に接続していたネットワークへの接続を切断るようにしてもよい。また、更なる印刷要求に備えて、ユーザからの切断指示を受け付けるまで、無線LAN通信104を介したスマートフォン102との接続を維持してもよい。   When the wireless LAN communication unit 209 of the printer 101 receives a print process from the smartphone 102, the wireless LAN communication unit 209 receives print data through the wireless LAN communication 104 (S616). Then, the printer 101 prints the received print data by the printing unit 210 (S617). Note that when printing is completed in S617, the wireless connection determined to be connected in S601 may be disconnected, or the wireless LAN network created in S609 may be terminated. Note that when the printing process is completed, the network created by the self apparatus in the AP function in S609 is terminated, but the connection to the network already connected at the time of the determination in S601 may be maintained. Further, when the printing process is completed, the network created by the own apparatus in the AP function in S609 may be maintained, and the connection to the network that has already been connected at the time of the determination in S601 may be disconnected. Further, in preparation for a further print request, the connection with the smartphone 102 via the wireless LAN communication 104 may be maintained until a disconnection instruction is received from the user.

一方、S613において所定期間経過するまでにNFC通信103が確立しなかった場合もしくは、S608でスマートフォン102と接続できなかった場合、アクセスポイント105との無線LAN通信104により接続されているかを判定する(S618)。なお、S613において所定期間経過するまでにNFC通信103が確立しなかった場合もしくは、S608でスマートフォン102と接続できなかった場合、S601に処理を戻すようにしてよい。この場合、本処理はプリンタ101の電源OFFになると処理を終了する。   On the other hand, if the NFC communication 103 is not established before the predetermined period of time elapses in S613, or if the smartphone 102 cannot be connected in S608, it is determined whether the wireless LAN communication 104 with the access point 105 is connected ( S618). If the NFC communication 103 is not established before the predetermined period of time elapses in S613, or if the smartphone 102 cannot be connected in S608, the process may be returned to S601. In this case, the process ends when the printer 101 is turned off.

S618において、無線LAN接続されていないと判定された場合、プリンタ101の制御部205は、NFCタグ部208の内部メモリにアプリケーション情報を書き込み(S6192)、処理を終了する。一方、S618において、無線LAN接続されていると判定された場合、プリンタ101の制御部205は、NFCタグ部208の内部メモリにアプリケーション情報と接続中のネットワークに関する無線LAN設定情報を書き込み(S620)、処理を終了する。   If it is determined in step S618 that the wireless LAN connection is not established, the control unit 205 of the printer 101 writes application information in the internal memory of the NFC tag unit 208 (S6192), and the process ends. On the other hand, if it is determined in S618 that the wireless LAN connection is established, the control unit 205 of the printer 101 writes application information and wireless LAN setting information related to the connected network in the internal memory of the NFC tag unit 208 (S620). The process is terminated.

続いて、図7のフローチャートを参照して、本発明の実施形態におけるスマートフォン102の動作手順について説明する。なお、図7に示すフローチャートは、制御部305がROM306に記憶さている制御プログラムを実行し、情報の演算および加工、各ハードウェアの制御を実行することにより実現される。なお、図7に示すフローチャートに示すステップの一部または全部を例えばASIC等のハードウェアで実現する構成としても良い。   Subsequently, an operation procedure of the smartphone 102 in the embodiment of the present invention will be described with reference to a flowchart of FIG. Note that the flowchart shown in FIG. 7 is realized by the control unit 305 executing a control program stored in the ROM 306 to perform calculation and processing of information and control of each hardware. Note that part or all of the steps shown in the flowchart shown in FIG. 7 may be realized by hardware such as ASIC.

まずスマートフォン102のNFC通信部308は、NFC通信103が確立したかを判定する(S701)。ここで、ユーザがスマートフォン102をプリンタ101とのNFC通信103の圏内に近づけると、スマートフォン102はNFC通信103を開始する。
スマートフォン102のNFC通信部308は、プリンタ101のNFCタグ部208の内部メモリに書きこまれているデータを、リードコマンドの送信により読み込む(S702)。また、この際に、スマートフォン102は、NFCタグ部208に自装置の識別情報を書き込むようにしてもよい。
First, the NFC communication unit 308 of the smartphone 102 determines whether the NFC communication 103 has been established (S701). Here, when the user brings the smartphone 102 close to the range of the NFC communication 103 with the printer 101, the smartphone 102 starts the NFC communication 103.
The NFC communication unit 308 of the smartphone 102 reads the data written in the internal memory of the NFC tag unit 208 of the printer 101 by transmitting a read command (S702). At this time, the smartphone 102 may write identification information of the own device in the NFC tag unit 208.

そして、スマートフォン102のNFC通信部308は、NFC通信103が切断したか否かを判定する(S703)。ユーザがスマートフォン102をプリンタ101とのNFC通信103の圏外に遠ざけると、スマートフォン102は、NFC通信103の切断を検出する。   Then, the NFC communication unit 308 of the smartphone 102 determines whether or not the NFC communication 103 is disconnected (S703). When the user moves the smartphone 102 out of the NFC communication 103 with the printer 101, the smartphone 102 detects disconnection of the NFC communication 103.

次にスマートフォン102は、読み込んだデータにアプリケーション情報が含まれているかチェックする(S704)。先に述べたように、スマートフォン102は、NFC通信103によりアプリケーション情報を読み取ると、当該識別子に対応するアプリケーションの起動、またはダウンロードサイトへの誘導を行う。ここでは、スマートフォン102は、アプリケーション情報に対応するアプリケーションを事前にインストールしている状態での処理を説明する。   Next, the smartphone 102 checks whether application information is included in the read data (S704). As described above, when the smartphone 102 reads the application information through the NFC communication 103, the smartphone 102 activates an application corresponding to the identifier or leads to a download site. Here, the smart phone 102 demonstrates the process in the state which has previously installed the application corresponding to application information.

スマートフォン102は、S702において読み込んだデータにアプリケーション情報が含まれていない場合(S704でNO)、処理を終了する。なお、この場合、スマートフォン102はエラーを表示してもよい。   If the application information is not included in the data read in S702 (NO in S704), the smartphone 102 ends the process. In this case, the smartphone 102 may display an error.

読み込んだデータにアプリケーション情報が含まれている場合(S704でYES)、アプリケーション制御部530は該アプリケーション情報で識別されるアプリケーションを起動する(S705)。このようにスマートフォン102は、アプリケーション情報をプリンタ101から受信することで、当該アプリケーション情報が示すアプリケーションを自動で起動することができる。   If the read data includes application information (YES in S704), the application control unit 530 activates the application identified by the application information (S705). As described above, the smartphone 102 can automatically start the application indicated by the application information by receiving the application information from the printer 101.

なお、本実施形態で示す一例において、アプリケーション情報で識別されるアプリケーションは、印刷アプリケーションである。印刷アプリケーションは、スマートフォン102において記憶されている画像データを選択し、選択された画像データをプリンタ101に送信し、印刷させるための印刷アプリケーションである。   In the example shown in this embodiment, the application identified by the application information is a print application. The print application is a print application for selecting image data stored in the smartphone 102, transmitting the selected image data to the printer 101, and printing the selected image data.

なお、印刷アプリケーションがインストールされていない場合、アプリケーション制御部530はこのアプリケーションのダウンロードが行えるWebページを表示部301に表示する。スマートフォン102は、ユーザ操作に従って、アプリケーションをダウンロードしてインストールしてよい。   If the print application is not installed, the application control unit 530 displays a Web page on which the application can be downloaded on the display unit 301. The smartphone 102 may download and install an application according to a user operation.

続いて、スマートフォン102は、S702において読み込んだデータに無線LAN設定情報が含まれているか否かを判定する。S702において読み込んだデータに無線LAN設定情報が含まれている場合、処理を後述するS711に処理を進める。   Subsequently, the smartphone 102 determines whether the data read in S702 includes wireless LAN setting information. If wireless LAN setting information is included in the data read in S702, the process proceeds to S711, which will be described later.

S702において読み込んだデータに無線LAN設定情報が含まれていない場合、スマートフォン102は表示部301にNFC通信による再接続を促すメッセージを表示させる(S707)。そして、スマートフォン102のNFC通信部308は、NFC通信103が確立したかを判定する(S708)。所定期間内にスマートフォン102のNFC通信部308によりNFC通信103が確立しなかった場合、エラーを表示して処理を終了する
S708において所定期間内にNFC通信部308によりNFC通信103が確立した場合、NFC通信部308は、プリンタ101のNFCタグ部208の内部メモリに書きこまれているデータを、リードコマンドの送信により読み込む(S709)。
When the wireless LAN setting information is not included in the data read in S702, the smartphone 102 causes the display unit 301 to display a message for prompting reconnection by NFC communication (S707). Then, the NFC communication unit 308 of the smartphone 102 determines whether the NFC communication 103 has been established (S708). If the NFC communication 103 is not established by the NFC communication unit 308 of the smartphone 102 within the predetermined period, an error is displayed and the process is terminated. In S708, if the NFC communication 103 is established by the NFC communication unit 308 within the predetermined period, The NFC communication unit 308 reads the data written in the internal memory of the NFC tag unit 208 of the printer 101 by transmitting a read command (S709).

次にスマートフォン102は、読み込んだデータに無線LAN設定情報が含まれているかチェックする(S710)。スマートフォン102は、S709において読み込んだデータに無線LAN設定情報が含まれていない場合(S710でNO)、処理を終了する。なお、この場合、スマートフォン102はエラーを表示してもよい。   Next, the smartphone 102 checks whether the read data includes wireless LAN setting information (S710). If the wireless LAN setting information is not included in the data read in S709 (NO in S710), the smartphone 102 ends the process. In this case, the smartphone 102 may display an error.

S706またはS710において無線LAN設定情報を読み込んだと判定された場合、印刷アプリケーションは、読み込んだ無線LAN設定情報が示す無線LAN通信の確立を試みる(S711)。なお、スマートフォン102がすでに接続中のネットワークと読み込んだ無線LAN設定情報が示すネットワークとが同一の場合は、無線LAN通信を確立する処理は省略してよい。また、スマートフォン102がすでに接続中のネットワークと読み込んだ無線LAN設定情報が示すネットワークとが異なる場合は、スマートフォン102がすでに接続中のネットワークを切断し、無線LAN設定情報が示すネットワークに接続する。   If it is determined in step S706 or S710 that the wireless LAN setting information has been read, the print application attempts to establish wireless LAN communication indicated by the read wireless LAN setting information (S711). Note that if the network already connected to the smartphone 102 and the network indicated by the read wireless LAN setting information are the same, the process of establishing the wireless LAN communication may be omitted. When the network already connected to the smartphone 102 is different from the network indicated by the read wireless LAN setting information, the smartphone 102 disconnects the already connected network and connects to the network indicated by the wireless LAN setting information.

無線LANネットワークの接続に失敗した場合(S711でNO)、表示部301にエラーメッセージを表示して本処理を終了する。無線LAN通信によりプリンタ101との接続に成功した場合(S711でYES)、印刷アプリケーションはプリンタ101との印刷のための通信を実行する(S712)。印刷のための通信とは、例えば、スマートフォン102において選択された画像データを無線LAN通信104でプリンタ101に送信し、プリンタ101がスマートフォン102から受信した画像データを印刷する処理である。また、S712の他の例は、プリンタ101がスキャンしたデータを無線LAN通信104でスマートフォン102に送信し、スマートフォン102が受信したデータを表示または記憶する処理である。S712における処理が完了した場合、スマートフォン102は、プリンタ101との無線LAN通信104を介した接続を切断するようにしてよい。また、更なる印刷のための通信に備えて、ユーザから無線切断指示を受け付けるまで、無線LAN通信104を介したプリンタ101との接続を維持してもよい。この場合、スマートフォン102において、ユーザから画像の選択や送信指示を受け付けた場合、再びS712のための通信を開始する。   If connection to the wireless LAN network has failed (NO in step S711), an error message is displayed on the display unit 301, and the process ends. If the connection with the printer 101 is successful by wireless LAN communication (YES in S711), the print application executes communication for printing with the printer 101 (S712). The communication for printing is, for example, processing for transmitting image data selected by the smartphone 102 to the printer 101 via the wireless LAN communication 104 and printing the image data received by the printer 101 from the smartphone 102. Another example of S712 is a process of transmitting data scanned by the printer 101 to the smartphone 102 via the wireless LAN communication 104, and displaying or storing data received by the smartphone 102. When the process in S <b> 712 is completed, the smartphone 102 may disconnect the connection with the printer 101 via the wireless LAN communication 104. Further, in preparation for further printing communication, the connection with the printer 101 via the wireless LAN communication 104 may be maintained until a wireless disconnection instruction is received from the user. In this case, when the smartphone 102 receives an image selection or transmission instruction from the user, the communication for S712 is started again.

次に、本実施形態におけるプリンタ101とスマートフォン102の間の通信シーケンスの一例について、図7を参照して詳述する。この例では、プリンタ101は、アクセスポイント105と接続している状態で、NFC通信を開始する。そして、アクセスポイント105を介してスマートフォン102により送信した画像データをプリンタ101が印刷を行う。   Next, an example of a communication sequence between the printer 101 and the smartphone 102 in the present embodiment will be described in detail with reference to FIG. In this example, the printer 101 starts NFC communication while being connected to the access point 105. Then, the printer 101 prints image data transmitted from the smartphone 102 via the access point 105.

初期状態として、プリンタ101は、アクセスポイント105に接続しているため、NFCタグ部208の内部メモリにはアプリケーション情報とアクセスポイント105の無線ネットワークに接続するための無線LAN設定情報とが書き込まれている。ユーザによりプリンタ101とスマートフォン102がNFC通信103可能な圏内まで近づけられると、プリンタ101とスマートフォン102の間でNFC通信103が確立する(S801)。スマートフォン102はNFCタグ部208を検出すると、NFCタグ部208の内部メモリを読み取るためのリードコマンドをプリンタ101に送信する(S802)。プリンタ101のNFCタグ部208は、該アプリケーション情報を含むリードレスポンスをスマートフォン102に返信する(S803)。そして、スマートフォン102の制御部305は、受信した該アプリケーション情報に対応するアプリケーションの起動を行う。その後、ユーザがプリンタ101とスマートフォン102をNFC通信103圏外まで遠ざけると、NFC通信103は切断される(S804)。   Since the printer 101 is connected to the access point 105 as an initial state, application information and wireless LAN setting information for connecting to the wireless network of the access point 105 are written in the internal memory of the NFC tag unit 208. Yes. When the user brings the printer 101 and the smartphone 102 close to the range where the NFC communication 103 is possible, the NFC communication 103 is established between the printer 101 and the smartphone 102 (S801). When detecting the NFC tag unit 208, the smartphone 102 transmits a read command for reading the internal memory of the NFC tag unit 208 to the printer 101 (S802). The NFC tag unit 208 of the printer 101 returns a read response including the application information to the smartphone 102 (S803). Then, the control unit 305 of the smartphone 102 activates an application corresponding to the received application information. Thereafter, when the user moves the printer 101 and the smartphone 102 away from the NFC communication 103 area, the NFC communication 103 is disconnected (S804).

スマートフォン102は、読み込んだ無線LAN設定情報によりアクセスポイント105のネットワークに接続する。そして、アクセスポイント105のネットワークにおいて、プリンタ101とスマートフォン102とは、SSDPでの検索及びTCPでの接続を行うディスカバリ処理を行う(S805)。プリンタ101とスマートフォン102とが互いを発見し、TCPでの接続が確立した場合に、ユーザによる操作部302の操作により印刷が指示されると、無線LAN通信104により印刷要求をプリンタ101に送信する(S806)。尚、スマートフォン102は、事前にユーザ操作による印刷指示を受け付けている場合は、プリンタ101の発見を契機に自動的に印刷要求を送信しても良い
以上説明したように、本実施形態によれば、プリンタ101は、NFC通信の開始の際に既に無線LANに接続している場合、アプリケーション情報とともに接続中のネットワークの無線LAN設定情報をNFCタグ208に書き込む。したがって、プリンタ101とスマートフォン102とはNFC通信に応じて、印刷処理を実行するためのアプリケーション起動とアプリケーションが用いる無線通信のための設定とを行うことが可能となる。また、プリンタ101は、NFC通信の開始の際に無線LANに接続している場合は接続中のネットワークの無線LAN設定情報をNFCタグ208に書き込むので、スマートフォン10と通信するために新たなネットワークを形成する手間を省くことができる。
The smartphone 102 connects to the network of the access point 105 based on the read wireless LAN setting information. Then, in the network of the access point 105, the printer 101 and the smartphone 102 perform discovery processing for searching by SSDP and connecting by TCP (S805). When the printer 101 and the smartphone 102 discover each other and a TCP connection is established, when printing is instructed by the operation of the operation unit 302 by the user, a print request is transmitted to the printer 101 via the wireless LAN communication 104. (S806). The smartphone 102 may automatically transmit a print request when the printer 101 is detected in advance when a print instruction by a user operation is received. As described above, according to the present embodiment, If the printer 101 is already connected to the wireless LAN at the start of NFC communication, the printer 101 writes the wireless LAN setting information of the currently connected network in the NFC tag 208 together with the application information. Accordingly, the printer 101 and the smartphone 102 can perform application activation for executing print processing and settings for wireless communication used by the application in accordance with NFC communication. Further, if the printer 101 is connected to the wireless LAN at the start of NFC communication, the wireless LAN setting information of the currently connected network is written in the NFC tag 208, so that a new network is connected to communicate with the smartphone 10. The trouble of forming can be saved.

また、本実施形態によれば、NFC通信の開始の際にネットワークに接続していない場合でも、1回目のNFC通信によりアプリケーション起動処理を行い、2回目のNFC通信によりNFCから無線LANへのハンドオーバ処理を行うことができる。したがって、機器同士を複数回近づける操作を行うだけで、NFCにより実行される処理を切り替えて実行することが可能となるとともに、アプリケーション起動とアプリケーションが用いる無線通信のための設定とを行うことが可能となり、操作性が向上する。   Further, according to the present embodiment, even when the NFC communication is not started, the application activation process is performed by the first NFC communication, and the handover from the NFC to the wireless LAN is performed by the second NFC communication. Processing can be performed. Therefore, it is possible to switch and execute processing executed by NFC by performing an operation of bringing devices closer to each other multiple times, and it is possible to perform application startup and settings for wireless communication used by the application Thus, the operability is improved.

(その他の実施形態)
上述の実施形態において、プリンタ101は、アクセスポイント105と接続している場合は、自装置で無線ネットワークを形成しない構成を説明した。しかしながら、プリンタ101が無線LANのアクセスポイント機能とクライアント機能の同時動作が可能であれば、アクセスポイント105と接続している場合にもS609からの処理を行う構成としてもよい。
(Other embodiments)
In the above-described embodiment, the configuration has been described in which the printer 101 does not form a wireless network by itself when connected to the access point 105. However, as long as the printer 101 can simultaneously operate the access point function and the client function of the wireless LAN, the process from S609 may be performed even when the printer 101 is connected to the access point 105.

また、本実施形態において、プリンタ101は無線LANネットワークに接続済みであるか否かの判定により、NFCタグ208の内部メモリへの書き込み内容を変更するようにしたが、これに限るものではない。例えば、接続履歴に記憶されている無線LANネットワークが周囲に存在するか否かによって書き込み内容を変更するようしてもよい。この場合、周囲に接続履歴に記憶されているネットワークが存在する場合には、アプリケーション情報に加えて該無線LANネットワークの接続情報を書き込むようにしてもよい。   In the present embodiment, the printer 101 changes the content written in the internal memory of the NFC tag 208 by determining whether or not the printer 101 is already connected to the wireless LAN network. However, the present invention is not limited to this. For example, the writing content may be changed depending on whether or not a wireless LAN network stored in the connection history exists in the vicinity. In this case, if there is a network stored in the connection history in the vicinity, the connection information of the wireless LAN network may be written in addition to the application information.

また、本実施形態において、プリンタ101は無線LAN接続情報として1つの無線LANネットワークに関する接続情報を書き込むようにしたが、複数の無線LANネットワークを書き込むようにしてよい。   In the present embodiment, the printer 101 writes connection information related to one wireless LAN network as wireless LAN connection information. However, a plurality of wireless LAN networks may be written.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

101 プリンタ
102 スマートフォン
103 NFC通信
104 無線LAN通信
105 アクセスポイント105
101 Printer 102 Smartphone 103 NFC Communication 104 Wireless LAN Communication 105 Access Point 105

Claims (10)

メモリに記憶された情報を、近接無線通信である第1無線通信方式により通信相手装置に送信する第1無線通信手段と、
第1無線通信方式とは異なる第2無線通信方式により前記通信相手装置と通信する第2無線通信手段と、
前記第2無線通信手段により無線ネットワークに接続しているか否かを判定する判定手段と、
前記第2無線通信手段により無線ネットワークに接続していると判定された場合、前記第2無線通信手段により接続している無線ネットワークにおいて通信するための第1設定情報とアプリケーションを起動させるためのアプリケーション情報とを前記メモリに書き込む第1書き込み手段と、
前記第2無線通信手段により無線ネットワークに接続していないと判定された場合、前記アプリケーション情報を前記メモリに書き込む第2書き込み手段と、
前記第2書き込み手段により書き込まれた情報を前記第1無線通信手段により前記通信相手装置に送信する第1送信手段と、
前記第1送信手段による送信が行われた場合、前記第1送信手段による送信に応じて新たに前記第2無線通信手段により接続する無線ネットワークにおいて通信するための第2設定情報を、前記メモリに書き込む第3書き込み手段と、を有することを特徴とする通信装置。
First wireless communication means for transmitting information stored in the memory to a communication partner apparatus by a first wireless communication method that is proximity wireless communication;
Second wireless communication means for communicating with the communication partner device by a second wireless communication method different from the first wireless communication method;
Determining means for determining whether the second wireless communication means is connected to a wireless network;
When it is determined that the second wireless communication means is connected to a wireless network, the first setting information for communicating in the wireless network connected by the second wireless communication means and an application for starting the application First writing means for writing information to the memory;
A second writing means for writing the application information to the memory when it is determined by the second wireless communication means that it is not connected to a wireless network;
First transmission means for transmitting information written by the second writing means to the communication counterpart device by the first wireless communication means;
When transmission by the first transmission unit is performed, second setting information for newly communicating in the wireless network connected by the second wireless communication unit in response to transmission by the first transmission unit is stored in the memory. And a third writing means for writing.
前記通信装置は、前記アプリケーション情報および前記第1または第2設定情報が前記通信相手装置に送信された場合、前記第1または第2設定情報が示す無線ネットワークにおいて、前記アプリケーション情報に従ったアプリケーションを起動した前記通信相手装置と前記第2無線通信手段による通信を行うことを特徴とする請求項1に記載の通信装置。   When the application information and the first or second setting information are transmitted to the communication counterpart device, the communication device performs an application according to the application information in a wireless network indicated by the first or second setting information. The communication apparatus according to claim 1, wherein communication is performed by the second wireless communication unit with the activated communication partner apparatus. 前記第2書き込み手段により書き込まれた情報を前記第1無線通信手段により前記通信相手装置に送信する第2送信手段を有することを特徴とする請求項1または2に記載の通信装置。   3. The communication apparatus according to claim 1, further comprising: a second transmission unit configured to transmit the information written by the second writing unit to the communication partner apparatus using the first wireless communication unit. 前記第3書き込み手段による書き込みが行われてから所定期間が経過する前に前記第1無線通信手段による通信が開始した場合、前記第3書き込み手段により書き込まれた情報を
前記第1無線通信手段により前記通信相手装置に送信する第3送信手段と、を有し、
前記第3書き込み手段による書き込みが行われてから前記所定期間が経過する前に前記第1無線通信手段による通信が開始されなかった場合、前記判定手段による判定に応じて、前記第1または第2書き込み手段による書き込みを行うことを特徴とする請求項1乃至
3の何れか1項に記載の通信装置。
When communication by the first wireless communication unit is started before a predetermined period has elapsed since the writing by the third writing unit, information written by the third writing unit is transmitted by the first wireless communication unit. Third transmission means for transmitting to the communication counterpart device,
If communication by the first wireless communication unit is not started before the predetermined period has elapsed since writing by the third writing unit, the first or second is determined according to the determination by the determination unit. 4. The communication apparatus according to claim 1, wherein writing is performed by a writing unit.
前記第1無線通信方式は、NFC(Near Field Communication)であることを特徴とする請求項1乃至4の何れか1項に記載の通信装置。   5. The communication apparatus according to claim 1, wherein the first wireless communication method is NFC (Near Field Communication). 6. 前記第1無線通信手段は、NFCのカードエミュレーションモードで通信することを特徴とする請求項1乃至5の何れか1項に記載の通信装置。   6. The communication apparatus according to claim 1, wherein the first wireless communication unit performs communication in an NFC card emulation mode. 前記第2無線通信方式は、IEEE802.11シリーズ、Bluetoothの少なくともいずれかの通信方式であることを特徴とする請求項1乃至6の何れか1項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 6, wherein the second wireless communication system is at least one of IEEE 802.11 series and Bluetooth. 前記アプリケーション情報は、印刷処理を実行するためのアプリケーションを起動させるための情報であり、
前記通信装置は、前記第2無線通信手段による前記通信相手装置から前記アプリケーションにより送信されたデータを印刷することを特徴とする請求項1乃至7の何れか1項に記載の通信装置。
The application information is information for starting an application for executing print processing,
The communication apparatus according to claim 1, wherein the communication apparatus prints data transmitted by the application from the communication partner apparatus by the second wireless communication unit.
メモリに記憶された情報を、近接無線通信である第1無線通信方式により通信相手装置に送信する第1無線通信手段と、第1無線通信方式とは異なる第2無線通信方式により前記通信相手装置と通信する第2無線通信手段と、を有する通信装置の制御方法であって、
前記第2無線通信手段により無線ネットワークに接続しているか否かを判定する判定工程と、
前記第2無線通信手段により無線ネットワークに接続していると判定された場合、前記第2無線通信手段により接続している無線ネットワークにおいて通信するための第1設定情報とアプリケーションを起動させるためのアプリケーション情報とを前記メモリに書き込む第1書き込み工程と、
前記第2無線通信手段により無線ネットワークに接続していないと判定された場合、前記アプリケーション情報を前記メモリに書き込む第2書き込み工程と、
前記第2書き込み工程により書き込まれた情報を前記第1無線通信手段により前記通信相手装置に送信する第1送信工程と、
前記第1送信工程における送信が行われた場合、前記第1送信工程におけり送信に応じて新たに前記第2無線通信手段により接続する無線ネットワークにおいて通信するための第2設定情報を、前記メモリに書き込む第3書き込み手段と、を有することを特徴とする通信装置。
A first wireless communication means for transmitting information stored in the memory to a communication partner device by a first wireless communication method which is a proximity wireless communication; and a communication partner device by a second wireless communication method different from the first wireless communication method. A second wireless communication means for communicating with the communication device, comprising:
A determination step of determining whether or not the second wireless communication means is connected to a wireless network;
When it is determined that the second wireless communication means is connected to a wireless network, the first setting information for communicating in the wireless network connected by the second wireless communication means and an application for starting the application A first writing step of writing information into the memory;
A second writing step of writing the application information to the memory when the second wireless communication means determines that the wireless network is not connected to the wireless network;
A first transmission step of transmitting the information written in the second writing step to the communication counterpart device by the first wireless communication means;
When transmission in the first transmission step is performed, second setting information for communicating in a wireless network newly connected by the second wireless communication unit in response to transmission in the first transmission step, And a third writing means for writing to the memory.
請求項1乃至8の何れか1項に記載の通信装置としてコンピュータを動作させるためのプログラム。   A program for causing a computer to operate as the communication device according to claim 1.
JP2014246351A 2014-12-04 2014-12-04 Communication device, control method of communication device, and program Pending JP2016111485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014246351A JP2016111485A (en) 2014-12-04 2014-12-04 Communication device, control method of communication device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014246351A JP2016111485A (en) 2014-12-04 2014-12-04 Communication device, control method of communication device, and program

Publications (1)

Publication Number Publication Date
JP2016111485A true JP2016111485A (en) 2016-06-20

Family

ID=56122358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014246351A Pending JP2016111485A (en) 2014-12-04 2014-12-04 Communication device, control method of communication device, and program

Country Status (1)

Country Link
JP (1) JP2016111485A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018056958A (en) * 2016-09-30 2018-04-05 ブラザー工業株式会社 Communication device and terminal device
JP2019186724A (en) * 2018-04-09 2019-10-24 キヤノン株式会社 Communication device, communication system, control method for communication device, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018056958A (en) * 2016-09-30 2018-04-05 ブラザー工業株式会社 Communication device and terminal device
JP2019186724A (en) * 2018-04-09 2019-10-24 キヤノン株式会社 Communication device, communication system, control method for communication device, and program
JP7034812B2 (en) 2018-04-09 2022-03-14 キヤノン株式会社 Communication devices, communication systems, communication device control methods, and programs

Similar Documents

Publication Publication Date Title
JP5853981B2 (en) Function execution device
EP3193518B1 (en) Wireless communication terminal, wireless communication system, and wireless communication program
JP6335437B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP6537255B2 (en) Communication device, control method of communication device, and program
JP6335466B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6521618B2 (en) Communication device control method and program
JP6305023B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6530634B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
JP6480677B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, COMPUTER PROGRAM
JP2016170630A (en) Information processing apparatus, control method thereof, and program
CN107006066B (en) Communication device, control method of communication device, and program
JP2015073250A (en) Communication device, control method of communication device, and program
JP2015019340A (en) Control device, electronic equipment, control method, and program
KR20190101831A (en) Electronic device and method for connecting local communication
JP6512875B2 (en) Communication device, control method of communication device, and program
CN110221793B (en) Method of searching for image forming apparatus, mobile terminal, and computer-readable medium
CN104080193B (en) Information processing system, information processing equipment and information processing method
JP2016111485A (en) Communication device, control method of communication device, and program
JP2019016866A (en) Communication device, external device, control method of communication device, control method of external device, and program
JP6098492B2 (en) Function execution device and function execution program
JP6818532B2 (en) Image processing device, its control method, and program
JP6168867B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
WO2020195242A1 (en) Communication device and communication method
JP6484357B2 (en) Communication apparatus and program
JP2015220587A (en) Radio communication system, communication method of the same, and program