JP2012231429A - 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
JP2012231429A
JP2012231429A JP2011100129A JP2011100129A JP2012231429A JP 2012231429 A JP2012231429 A JP 2012231429A JP 2011100129 A JP2011100129 A JP 2011100129A JP 2011100129 A JP2011100129 A JP 2011100129A JP 2012231429 A JP2012231429 A JP 2012231429A
Authority
JP
Japan
Prior art keywords
processing
communication
communication device
counterpart
connection request
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.)
Withdrawn
Application number
JP2011100129A
Other languages
Japanese (ja)
Inventor
Ryosuke Amano
了輔 天野
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 JP2011100129A priority Critical patent/JP2012231429A/en
Publication of JP2012231429A publication Critical patent/JP2012231429A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the number of required processing steps when a collision occurs in processing requested by both or one device in a communication device which establishes a radio link by being close to an opposite device and performs data communication.SOLUTION: The communication device which establishes the radio link and communicates with the opposite device comprises: a detection unit for, when the radio link with the opposite device is established, detecting occurrence of a request collision caused by transmission of a connection request for establishing the radio link by the communication device to the opposite device and transmission of a connection request to the communication device by the opposite device; a determination unit for determining the processing order of the processing requested by the communication device and the processing requested by the opposite device on the basis of information included in the connection requests; and a communication unit for communicating with the opposite device and executing the processing in the processing order determined by the determination unit when the request collision is detected.

Description

本発明は、通信装置、通信装置の制御方法、およびプログラムに関し、特に相手装置との距離が所定の範囲内になるように近接されることにより1対1で無線リンクを確立してデータ通信を行う通信装置、通信装置の制御方法、およびプログラムに関する。   The present invention relates to a communication device, a communication device control method, and a program, and in particular, establishes a wireless link in a one-to-one manner by performing close communication so that the distance to the partner device is within a predetermined range. The present invention relates to a communication device to be performed, a communication device control method, and a program.

近年、NFC(Near Field Communication)やTransferJet(登録商標)などの非接触通信(近接無線通信)が知られている。これらの非接触通信は、通信距離が非常に短く、通信を行う機器同士を数cm以内(例えばNFCは10cm以内、TransferJet(登録商標)は3cm以内)に近づけると無線リンクが接続され、逆に遠ざけると無線リンクが切断されるように制御される。   In recent years, contactless communication (proximity wireless communication) such as NFC (Near Field Communication) and TransferJet (registered trademark) is known. In these non-contact communications, the communication distance is very short, and the wireless links are connected when the devices that communicate with each other are within a few centimeters (for example, NFC is within 10 cm, TransferJet (registered trademark) is within 3 cm). It is controlled so that the radio link is disconnected when it is moved away.

なお、TransferJet(登録商標)では機器同士が1対1でデータ通信を行うことを想定しており、現在ではユースケース等が記載されたホワイトペーパーが公開されている(非特許文献1参照)。非特許文献1には、TransferJet(登録商標)ではユーザが互いの機器を近接させることによりデータの送信が可能であることが開示されている。TransferJet(登録商標)でのデータ送信のための方法としては、ユーザが送信データの選択等の操作を行ってから相手機器に近づけることでデータ通信を行うという方法が考えられる。非接触通信では機器間の距離が少しでも通信範囲外に離れると無線リンクが切断してしまうため、無線リンクの接続を維持したまま送信データの選択等の操作を行うことは困難だからである。非特許文献1には、このようなデータの送信を行う際に、2機器間でデータ送信を実施することの合意を取るためのネゴシエーションを行うことも開示されている。   Note that TransferJet (registered trademark) assumes that devices perform data communication on a one-to-one basis, and currently, a white paper describing use cases and the like is disclosed (see Non-Patent Document 1). Non-Patent Document 1 discloses that TransferJet (registered trademark) allows users to transmit data by bringing their devices close to each other. As a method for data transmission by TransferJet (registered trademark), a method of performing data communication by allowing a user to perform an operation such as selection of transmission data and then approaching to a counterpart device can be considered. This is because, in non-contact communication, the radio link is disconnected if the distance between the devices is out of the communication range even a little, so that it is difficult to perform operations such as selection of transmission data while maintaining the connection of the radio link. Non-Patent Document 1 also discloses that when such data transmission is performed, negotiation for obtaining an agreement to perform data transmission between the two devices is performed.

また、このネゴシエーションを利用して、双方の機器が互いにデータを送信し合うための技術も開示されている(特許文献1参照)。具体的なデータ通信方法を以下に説明する。ユーザが両方の機器を操作して送信対象データを選択し、送信アプリケーションを起動する。その状態で、機器同士を無線接続した際に機器間で送信対象データの有無を示す情報を交換することにより、両方の機器が互いにデータを送信し合うことを認識し、連続して夫々のデータ送信を実施する。   In addition, a technique is disclosed in which both devices transmit data to each other using this negotiation (see Patent Document 1). A specific data communication method will be described below. The user operates both devices to select transmission target data and starts a transmission application. In this state, when the devices are wirelessly connected, by exchanging information indicating the presence / absence of data to be transmitted between the devices, it is recognized that both devices transmit data to each other, and each data is continuously received. Perform transmission.

特開2010−283751号公報JP 2010-283951 A

“Worlds are About to Touch”[online][平成23年4月13日検索]、インターネット<URL:http://www.transferjet.org/tj/transferjet_whitepaper.pdf>“Worlds are About to Touch” [online] [searched on April 13, 2011], Internet <URL: http: // www. transferjet. org / tj / transferjet_whitepaper. pdf>

特許文献1によるデータ通信方法の場合、接続要求の競合の有無に関わらず、送信対象データが無い場合においても、送信対象データが無いことを示す情報を相手装置に通知する。従って、機器同士を無線接続してから実際にデータ送信を行うまでの間、夫々の機器で送信対象データの有無を示す情報の送信/受信と、情報を解析するための処理とが必要となる。   In the case of the data communication method according to Patent Document 1, the information indicating that there is no transmission target data is notified to the partner apparatus even when there is no transmission target data regardless of the presence or absence of a connection request conflict. Therefore, transmission / reception of information indicating the presence / absence of transmission target data and processing for analyzing the information are required between each device and the actual transmission of data after the devices are wirelessly connected. .

しかしながら、TransferJet(登録商標)などの非接触通信では、CPU能力の乏しい携帯型の端末に搭載される場合が多いことから、処理ステップを極力少なくすることが要求される。   However, non-contact communication such as TransferJet (registered trademark) is often mounted on a portable terminal having a low CPU capability, and therefore, it is required to minimize the number of processing steps.

上記の課題に鑑み、本発明は、相手装置と近接させることによって無線リンクを確立してデータ通信を行う通信装置において、双方或いは片方の装置が要求する処理に衝突が生じた場合に、必要な処理ステップ数を低減する技術を提供することを目的とする。   In view of the above problems, the present invention is necessary in a communication device that establishes a wireless link by making it close to a partner device and performs data communication when a collision occurs in processing required by both or one of the devices. An object is to provide a technique for reducing the number of processing steps.

上記の目的を達成する本発明に係る通信装置は、
相手装置と無線リンクを確立して通信する通信装置であって、
前記通信装置が無線リンクを確立するための接続要求を前記相手装置へ送信し且つ前記相手装置が前記接続要求を前記通信装置へ送信したことによる要求衝突の発生を、前記相手装置との無線リンクが確立される際に検出する検出手段と、
前記通信装置が要求する処理と前記相手装置が要求する処理の処理順序を前記接続要求に含まれる情報に基づいて決定する決定手段と、
前記要求衝突が検出された場合、前記決定手段により決定された処理順序で前記相手装置と通信して処理を実施する通信手段と、
を備えることを特徴とする。
A communication device according to the present invention that achieves the above object is as follows.
A communication device that establishes a wireless link with a counterpart device and communicates,
The occurrence of a request collision caused by the communication device transmitting a connection request for establishing a wireless link to the partner device and the partner device transmitting the connection request to the communication device. Detecting means for detecting when is established;
Determining means for determining a processing order of processing requested by the communication device and processing requested by the counterpart device based on information included in the connection request;
When the request collision is detected, communication means for performing processing by communicating with the counterpart device in the processing order determined by the determining means;
It is characterized by providing.

本発明によれば、相手装置と近接させることによって無線リンクを確立してデータ通信を行う通信装置において、双方或いは片方の装置が要求する処理に衝突が生じた場合に、必要な処理ステップ数を低減することができる。   According to the present invention, in a communication device that establishes a wireless link by making it close to a partner device and performs data communication, when a collision occurs in the processing required by both or one of the devices, the required number of processing steps is set. Can be reduced.

第1実施形態に係る通信装置の機能ブロック図。The functional block diagram of the communication apparatus which concerns on 1st Embodiment. 第1および第2実施形態に係る通信装置を備えるシステム構成図。The system block diagram provided with the communication apparatus which concerns on 1st and 2nd embodiment. 第1および第2実施形態の処理手順を示すフローチャート。The flowchart which shows the process sequence of 1st and 2nd embodiment. 第1および第2実施形態の処理手順を示すフローチャート。The flowchart which shows the process sequence of 1st and 2nd embodiment. 第1実施形態の処理手順を示すフローチャート。The flowchart which shows the process sequence of 1st Embodiment. 第1および第2実施形態の処理手順を示すフローチャート。The flowchart which shows the process sequence of 1st and 2nd embodiment. 第1実施形態のシーケンス図。The sequence diagram of a 1st embodiment. 第1実施形態のシーケンス図。The sequence diagram of a 1st embodiment. 第2実施形態に係る通信装置の機能ブロック図。The functional block diagram of the communication apparatus which concerns on 2nd Embodiment. 第2実施形態の処理手順を示すフローチャート。The flowchart which shows the process sequence of 2nd Embodiment. 第2実施形態の処理手順を示すフローチャート。The flowchart which shows the process sequence of 2nd Embodiment. 第2実施形態の表示例を示す図。The figure which shows the example of a display of 2nd Embodiment.

(第1実施形態)
図1を参照して、近接無線通信(非接触通信)機能を有する第1実施形態に係る通信装置101の機能ブロック図の一例を説明する。通信装置101は、所定の距離範囲に存在する相手装置と無線リンクを確立してデータを通信する。通信装置101は、通信制御部102と、接続要求衝突制御部103と、制御メッセージ作成部104と、制御メッセージ確認部105と、ユーザインタフェース部106と、アプリケーション部107と、アプリケーションマネージャ部108と、記憶部109と、処理実施順序決定部110と、複数処理実施確認部111と、計時部112とを備える。
(First embodiment)
With reference to FIG. 1, an example of a functional block diagram of the communication apparatus 101 according to the first embodiment having a proximity wireless communication (non-contact communication) function will be described. The communication device 101 establishes a wireless link with a counterpart device existing within a predetermined distance range and communicates data. The communication apparatus 101 includes a communication control unit 102, a connection request collision control unit 103, a control message creation unit 104, a control message confirmation unit 105, a user interface unit 106, an application unit 107, an application manager unit 108, A storage unit 109, a process execution order determination unit 110, a multi-process execution confirmation unit 111, and a timing unit 112 are provided.

通信制御部102は、近接無線転送を用いて無線でデータを送受信する際の無線リンクの確立及び切断、並びにデータ伝送制御を行う。近接無線転送の方式としては、TransferJet(登録商標)、NFC等を適用することができる。本実施形態における近接無線通信では、接続要求及び接続応答の送受信が完了した時点で無線リンクの確立(接続)が完了し、データ通信が可能な状態になるものとする。なお、接続要求を送信した側の装置をマスタと呼び、接続応答を送信した側の装置をスレーブと呼ぶものとする。   The communication control unit 102 performs establishment and disconnection of a wireless link and data transmission control when transmitting and receiving data wirelessly using proximity wireless transfer. TransferJet (registered trademark), NFC, or the like can be applied as a proximity wireless transfer method. In the close proximity wireless communication according to the present embodiment, it is assumed that, when transmission / reception of a connection request and connection response is completed, establishment (connection) of a wireless link is completed and data communication is possible. Note that the device on the side that transmitted the connection request is referred to as a master, and the device on the side that transmitted the connection response is referred to as a slave.

接続要求衝突制御部103は、自装置と相手装置との両方が接続要求を送信したことを検出し、接続要求の衝突を検出した場合は、装置毎にユニークに割り振られた装置ID(装置識別情報)の大小を比較した結果に応じてどちらか一方の装置が接続応答を送信しスレーブとする。   The connection request collision control unit 103 detects that both the own device and the partner device have transmitted a connection request. When a connection request collision is detected, a device ID (device identification) uniquely assigned to each device is detected. Either device sends a connection response according to the result of comparing the size of (information), and makes it a slave.

制御メッセージ作成部104は、相手装置に制御を要求するための要求メッセージと、相手装置からの制御要求に応答する応答メッセージとを作成する。本実施形態では、マスタ側の装置が要求メッセージを送信でき、スレーブ側の装置が応答メッセージを送信できるものとする。また、要求メッセージとして、接続要求、切断要求、実施処理取得要求、および処理実施要求を定義し、また応答メッセージとして、接続応答および実施処理取得応答を定義する。接続要求は、相手装置に対して近接無線通信の接続を要求するメッセージである。切断要求は、相手装置に対して近接無線通信の切断を要求するメッセージである。実施処理取得要求は、スレーブに対して実施処理取得応答を要求するメッセージである。処理実施要求は、実施する処理を示す情報を含み、スレーブに対して処理の実施を要求するメッセージである。接続応答は、相手装置に対して近接無線通信のリンクが確立したことを通知するメッセージである。実施処理取得応答は、スレーブにおけるユーザ(操作者)からの指示に応じた処理を示すメッセージである。上記の処理実施要求や実施処理取得応答のメッセージには、「PUSH送信」や「PUSH受信」といったデータ転送の方向を示す情報が含まれる。その他に、「OBEX」や「SCSI」といったデータ転送プロトコルを示す情報、「画像ファイル」や「文章ファイル」といったデータの種類を示す情報、「画像再生」や「画像印刷」といったデータ転送以外の動作を示す情報などを含めてもよい。   The control message creation unit 104 creates a request message for requesting control of the counterpart device and a response message in response to a control request from the counterpart device. In this embodiment, it is assumed that the master device can transmit a request message and the slave device can transmit a response message. In addition, a connection request, a disconnection request, an execution process acquisition request, and a process execution request are defined as request messages, and a connection response and an execution process acquisition response are defined as response messages. The connection request is a message for requesting connection of near field communication to the counterpart device. The disconnection request is a message that requests the counterpart device to disconnect the proximity wireless communication. The execution process acquisition request is a message requesting an execution process acquisition response to the slave. The process execution request is a message that includes information indicating the process to be executed and requests the slave to execute the process. The connection response is a message that notifies the partner device that a link for close proximity wireless communication has been established. The execution process acquisition response is a message indicating a process according to an instruction from a user (operator) in the slave. The message indicating the process execution request and the execution process acquisition response includes information indicating the direction of data transfer such as “PUSH transmission” and “PUSH reception”. In addition, information indicating data transfer protocols such as “OBEX” and “SCSI”, information indicating data types such as “image file” and “text file”, and operations other than data transfer such as “image playback” and “image printing” May also be included.

制御メッセージ確認部105は、相手装置から受信した制御メッセージの内容を確認する。ユーザインタフェース部106は、画像、操作メニュー、データ送信状況、及びその他各種情報を表示すると共に、ユーザ(操作者)による各種操作を受付ける。アプリケーション部107は、ユーザインタフェース部106によるユーザ指示を受けて送信、又は受信等のアプリケーションを起動し、各アプリケーションの処理を行う。また、各アプリケーションはアプリケーションマネージャ部108に対してアプリケーションが終了したことを通知することもできる。アプリケーションマネージャ部108は、アプリケーション部107と通信制御部102との間におけるメッセージの仲介を行い、アプリケーション部107におけるアプリケーションの起動の制御や終了通知の受付を行う。   The control message confirmation unit 105 confirms the content of the control message received from the counterpart device. The user interface unit 106 displays an image, an operation menu, a data transmission status, and various other information, and accepts various operations by a user (operator). In response to a user instruction from the user interface unit 106, the application unit 107 activates an application such as transmission or reception, and processes each application. Each application can also notify the application manager unit 108 that the application has ended. The application manager unit 108 mediates messages between the application unit 107 and the communication control unit 102, and controls application activation in the application unit 107 and accepts an end notification.

記憶部109は、送信対象のデータ、相手装置から受信したデータ、及びその他各種情報を記憶する。例えば、記憶部109には、自装置がデータ送信のマスタ側、スレーブ側のいずれで動作するかを示す情報、接続要求の衝突を検出したことを示す情報、アプリケーションの起動順に関する情報、等が記憶される。   The storage unit 109 stores data to be transmitted, data received from the partner device, and various other information. For example, the storage unit 109 includes information indicating whether the device operates on the master side or the slave side of data transmission, information indicating that a connection request collision has been detected, information on the application startup order, and the like. Remembered.

処理実施順序決定部110は、自装置側でユーザから指示された処理と、相手装置側で指示された処理との実施順序を接続要求に含まれる情報に基づいて決定する。複数処理実施確認部111は、両方の装置の処理を実施する場合に、2つの処理を実施することを、ユーザインタフェース部106を用いてユーザに確認する。計時部112は、通信制御部102によるリンク確立の継続時間を計時するタイマなどに用いる。   The process execution order determination unit 110 determines the execution order of the process instructed by the user on the own apparatus side and the process instructed on the counterpart apparatus side based on information included in the connection request. The multi-processing execution confirmation unit 111 confirms with the user using the user interface unit 106 that the two processes are performed when the processing of both apparatuses is performed. The time measuring unit 112 is used as a timer for measuring the duration of link establishment by the communication control unit 102.

なお、全ての機能ブロックはソフトウェアもしくはハードウェア的に相互関係を有するものである。また、上述した機能ブロックの構成は一例であり、複数の機能ブロックが1つの機能ブロックを構成するようにしてもよいし、何れかの機能ブロックが更に複数の機能を行うブロックに分かれてもよい。   All the functional blocks have a mutual relationship in terms of software or hardware. Further, the configuration of the functional blocks described above is an example, and a plurality of functional blocks may constitute one functional block, or any functional block may be further divided into blocks that perform a plurality of functions. .

図2は、本実施形態における通信装置を備えるシステムの構成を示した図である。無線通信装置201と無線通信装置203とは、近接無線転送インタフェース202、近接無線転送インタフェース204により互いに通信可能である。無線通信装置201、および無線通信装置203は、共に図1の機能ブロック構成を有する。なお、近接無線転送インタフェースは、機器に内蔵されていてもケーブル等により外付けされていても構わない。   FIG. 2 is a diagram illustrating a configuration of a system including a communication device according to the present embodiment. The wireless communication device 201 and the wireless communication device 203 can communicate with each other via the proximity wireless transfer interface 202 and the proximity wireless transfer interface 204. Both the wireless communication device 201 and the wireless communication device 203 have the functional block configuration of FIG. The proximity wireless transfer interface may be built in the device or externally attached by a cable or the like.

図3乃至図6は本実施形態における動作の手順を示すフローチャートである。また、図7は無線通信装置201と無線通信装置203との両方においてデータ送信操作が行われた場合のシーケンスを示す。そして、図8は、無線通信装置201においてデータ送信操作が行われた場合のシーケンスを示す。以下では、図3乃至図6のフローチャートと、図7および図8のシーケンスについて説明する。   3 to 6 are flowcharts showing the procedure of the operation in this embodiment. FIG. 7 shows a sequence when a data transmission operation is performed in both the wireless communication apparatus 201 and the wireless communication apparatus 203. FIG. 8 shows a sequence when a data transmission operation is performed in the wireless communication apparatus 201. Hereinafter, the flowcharts of FIGS. 3 to 6 and the sequences of FIGS. 7 and 8 will be described.

なお、以下の説明では、無線通信装置201に着目し、無線通信装置201を自装置として、無線通信装置203を相手装置として定義して説明するが、どちらの装置が自装置か相手装置かは問わず動作が可能である。   In the following description, focusing on the wireless communication device 201, the wireless communication device 201 is defined as the own device and the wireless communication device 203 is defined as the partner device. However, which device is the own device or the partner device is described. Any operation is possible.

まず図3と、図4乃至6との関係を説明する。図3では初期状態として、自装置201と相手装置203とは、近接無線転送インタフェース202および近接無線転送インタフェース204による近距離無線通信ができない十分遠い距離に配置されているものとする。図3において、全体処理が開始すると、まずS301において、接続処理が行われる。この接続処理の詳細が図4に示される。接続処理が終了した後に、S302において、接続要求衝突制御部103は、接続要求の衝突が発生したか否かを判定する。接続要求の衝突が発生したと判定された場合(S302;YES)、S303へ進む。一方、接続要求の衝突が発生していないと判定された場合(S302;NO)、S304へ進む。S303において、複数処理が実施される。この複数処理実施の詳細が図5に示される。S304において、単一処理が実施される。この複数処理実施の詳細が図6に示される。S303またはS304の後に、全体処理が終了する。   First, the relationship between FIG. 3 and FIGS. 4 to 6 will be described. In FIG. 3, as an initial state, it is assumed that the own device 201 and the partner device 203 are arranged at a sufficiently long distance that short-range wireless communication by the close proximity wireless transfer interface 202 and the close proximity wireless transfer interface 204 is not possible. In FIG. 3, when the entire process starts, first, a connection process is performed in S301. Details of this connection processing are shown in FIG. After the connection process is completed, in S302, the connection request collision control unit 103 determines whether or not a connection request collision has occurred. When it is determined that a connection request collision has occurred (S302; YES), the process proceeds to S303. On the other hand, if it is determined that a connection request collision has not occurred (S302; NO), the process proceeds to S304. In S303, a plurality of processes are performed. Details of this multi-processing implementation are shown in FIG. In S304, a single process is performed. Details of this multi-processing implementation are shown in FIG. After S303 or S304, the entire process ends.

図4では、接続処理が開始すると、S401において、自装置201は、ユーザインタフェース106の操作により送信データの選択、及び送信指示等の処理に関する指示が行われたか否かを判定する。指示が行われたと判定された場合(S401;YES)、S402へ進む。一方、指示が行われていないと判定された場合(S401;NO)、S409へ進む。   In FIG. 4, when the connection process starts, in step S <b> 401, the own apparatus 201 determines whether or not an instruction related to processing such as selection of transmission data and a transmission instruction has been performed by operating the user interface 106. When it is determined that an instruction has been given (S401; YES), the process proceeds to S402. On the other hand, when it is determined that no instruction has been given (S401; NO), the process proceeds to S409.

S402において、自装置201の通信制御部102は、自装置201の装置ID情報を含んだ接続要求を相手装置203へ送信する。その状態でユーザが自装置201と相手装置203とが所定の距離範囲内になるように両装置を近づけると、S403において、自装置201の通信制御部102は、相手装置203からの接続要求を受信したか否かを判定する。接続要求を受信したと判定された場合(S403;YES)、S404へ進む。一方、接続要求を受信していないと判定された場合(S403;NO)、S407へ進む。   In step S <b> 402, the communication control unit 102 of the own device 201 transmits a connection request including the device ID information of the own device 201 to the partner device 203. In this state, when the user brings both devices close to each other so that the device 201 and the partner device 203 are within a predetermined distance range, the communication control unit 102 of the device 201 issues a connection request from the partner device 203 in S403. It is determined whether or not it has been received. If it is determined that a connection request has been received (S403; YES), the process proceeds to S404. On the other hand, when it is determined that a connection request has not been received (S403; NO), the process proceeds to S407.

S404において、自装置201の接続要求衝突制御部103は、接続要求が衝突したと判断し、自装置の装置IDが、相手装置203から受信した接続要求に含まれる装置IDよりも大きいか否かを判定する。自装置201の装置IDが相手装置203の装置IDよりも大きいと判定された場合(S404;YES)、S405へ進む。一方、自装置201の装置IDが相手装置203の装置IDよりも小さいと判定された場合(S404;NO)、S406へ進む。   In S <b> 404, the connection request collision control unit 103 of the own device 201 determines that the connection request has collided, and whether or not the device ID of the own device is larger than the device ID included in the connection request received from the partner device 203. Determine. When it is determined that the device ID of the own device 201 is larger than the device ID of the counterpart device 203 (S404; YES), the process proceeds to S405. On the other hand, when it is determined that the device ID of the own device 201 is smaller than the device ID of the counterpart device 203 (S404; NO), the process proceeds to S406.

S405において、自装置201の接続要求衝突制御部103は、接続要求が衝突したことを示す情報と自装置201がマスタであることを示す情報とを記憶部109に格納し、接続処理を終了する。S406において、自装置201の接続要求衝突制御部103は、接続要求が衝突したことを示す情報と自装置201がスレーブであることを示す情報とを記憶部109に格納し、接続処理を終了する。   In S405, the connection request collision control unit 103 of the own device 201 stores information indicating that the connection request has collided and information indicating that the own device 201 is the master in the storage unit 109, and ends the connection process. . In step S406, the connection request collision control unit 103 of the own device 201 stores information indicating that the connection request has collided and information indicating that the own device 201 is a slave in the storage unit 109, and ends the connection process. .

そしてS407において、自装置201の通信制御部102は、相手装置203からの接続応答を受信したか否かを判定する。接続応答を受信したと判定された場合(S407;YES)、S408へ進む。一方、接続応答を受信していないと判定された場合(S407;NO)、S403へ戻る。   In step S <b> 407, the communication control unit 102 of the own device 201 determines whether a connection response from the partner device 203 has been received. If it is determined that a connection response has been received (S407; YES), the process proceeds to S408. On the other hand, when it is determined that the connection response has not been received (S407; NO), the process returns to S403.

S408において、自装置201の通信制御部102は、自装置201がマスタであることを示す情報を記憶部109に格納し、接続処理を終了する。S409において、自装置201の通信制御部102は、相手装置203からの接続要求を受信したか否かを判定する。   In step S408, the communication control unit 102 of the own device 201 stores information indicating that the own device 201 is the master in the storage unit 109, and ends the connection process. In step S409, the communication control unit 102 of the own device 201 determines whether a connection request from the partner device 203 has been received.

接続要求を受信したと判定された場合(S409;YES)、S410へ進む。一方、接続要求を受信していないと判定された場合(S409;NO)、S401へ戻る。   When it is determined that the connection request has been received (S409; YES), the process proceeds to S410. On the other hand, when it is determined that the connection request has not been received (S409; NO), the process returns to S401.

S410において、自装置201の通信制御部102は、相手装置203に対して接続応答を送信する。その後、S411において、自装置201の通信制御部102は、自装置201がスレーブであることを示す情報を記憶部109に格納し、接続処理を終了する。   In step S <b> 410, the communication control unit 102 of the own device 201 transmits a connection response to the partner device 203. Thereafter, in S411, the communication control unit 102 of the own device 201 stores information indicating that the own device 201 is a slave in the storage unit 109, and ends the connection process.

図4に示される接続処理が終了すると、図3のS302において、接続要求衝突制御部103は記憶部109を参照し、接続要求の衝突の有無を判定する。接続要求の衝突が有った場合(S302;YES)、双方の装置でユーザによる処理の指示があったと考えられるため、S303へ進み、図5に示される複数の処理を実施するプロセスを開始する。   When the connection process shown in FIG. 4 is completed, in S302 of FIG. 3, the connection request collision control unit 103 refers to the storage unit 109 and determines whether there is a connection request collision. If there is a connection request conflict (S302; YES), it is considered that there has been an instruction for processing by the user in both apparatuses, so the process proceeds to S303, and a process of performing a plurality of processes shown in FIG. 5 is started. .

一方、接続要求の衝突が無かった場合(S302;NO)は、一方の装置でのみユーザによる処理の指示があったと考えられるため、S304へ進み、図6に示される単一の処理を実施するプロセスを開始する。   On the other hand, if there is no collision of connection requests (S302; NO), it is considered that the user has instructed processing only on one device, so the process proceeds to S304, and the single processing shown in FIG. 6 is performed. Start the process.

まず、図5のフローチャートを参照して、複数処理実施プロセスの動作手順を説明する。   First, the operation procedure of the multi-process execution process will be described with reference to the flowchart of FIG.

S501において、自装置201は、記憶部109を参照して自装置201がマスタであるか否かを判定する。自装置201がマスタであると判定された場合(S501;YES)、S502へ進む。一方、自装置がスレーブであると判定された場合(S501;NO)、S513へ進む。   In step S <b> 501, the own apparatus 201 refers to the storage unit 109 and determines whether the own apparatus 201 is a master. If it is determined that the device 201 is the master (S501; YES), the process proceeds to S502. On the other hand, when it is determined that the own device is a slave (S501; NO), the process proceeds to S513.

S502において、自装置201の通信制御部102は、制御メッセージ作成部104が作成した実施処理取得要求メッセージを相手装置203に対して送信する。   In step S <b> 502, the communication control unit 102 of the own device 201 transmits the execution process acquisition request message created by the control message creation unit 104 to the counterpart device 203.

S503において、自装置201の通信制御部102は、実施処理取得応答メッセージを受信したか否かを判定する。実施処理取得応答メッセージを受信したと判定された場合(S503;YES)、S504へ進む。一方、実施処理取得応答メッセージを受信していないと判定された場合(S503;NO)、受信するまで待機する。   In step S503, the communication control unit 102 of the own apparatus 201 determines whether or not an implementation process acquisition response message has been received. When it is determined that the execution process acquisition response message has been received (S503; YES), the process proceeds to S504. On the other hand, if it is determined that the implementation process acquisition response message has not been received (S503; NO), the process waits until it is received.

S504において、自装置201の制御メッセージ確認部105は、受信された実施処理取得応答メッセージから相手装置203で指示された処理を確認する。次に、S505において、自装置201の処理実施順序決定部110は、マスタ側(自装置201側)で指示された処理を先に実施し、スレーブ側(相手装置203側)で指示された処理を後で実施するように処理順序を決定する。   In step S <b> 504, the control message confirmation unit 105 of the own device 201 confirms the processing instructed by the counterpart device 203 from the received execution process acquisition response message. Next, in S505, the processing execution order determination unit 110 of the own device 201 first performs the processing instructed on the master side (the own device 201 side), and the processing instructed on the slave side (the counterpart device 203 side). The processing order is determined to be executed later.

なお、処理実施中にユーザによるユーザインタフェース部106の操作が必要ない処理を先に実施し、処理実施中のユーザ操作が必要な処理を後で実施するように処理順序を決定してもよい。その他に、両方の装置における送信対象のデータサイズの大小に応じて実施順を決定してもよい。例えば、データサイズが小さい方の処理を先に行うように処理順序を決定してもよい。これらの場合、接続要求に、ユーザによるユーザインタフェース部106の操作の必要の有無を示す操作情報や、データサイズを示すサイズ情報が含まれてもよい。   It should be noted that the processing order may be determined such that processing that does not require user operation of the user interface unit 106 during the processing is performed first, and processing that requires user operation during processing is performed later. In addition, the execution order may be determined according to the size of data to be transmitted in both apparatuses. For example, the processing order may be determined so that the processing with the smaller data size is performed first. In these cases, the connection request may include operation information indicating whether or not the user needs to operate the user interface unit 106 and size information indicating the data size.

S506において、自装置201の通信制御部102は、自装置201で指示された処理を示す情報を含む、制御メッセージ作成部104が作成した処理実施要求メッセージを相手装置203に対して送信する。   In step S <b> 506, the communication control unit 102 of the own device 201 transmits a processing execution request message created by the control message creating unit 104 including information indicating processing instructed by the own device 201 to the partner device 203.

S507において、さらに、自装置201のアプリケーションマネージャ部108は、アプリケーション部107に対して処理開始の通知をすることにより、アプリケーション部107は自装置201で指示された処理に対応するアプリケーションを起動し、処理が実施される。   In S507, the application manager unit 108 of the own device 201 further notifies the application unit 107 of the start of processing, whereby the application unit 107 activates an application corresponding to the processing instructed by the own device 201, and Processing is performed.

S508において、処理が終了すると、自装置201のアプリケーション部107からアプリケーションマネージャ部108へ処理終了の通知がなされる。   In step S <b> 508, when the process ends, the application unit 107 of the apparatus 201 notifies the application manager unit 108 of the end of the process.

S509において、自装置201の通信制御部102は、相手装置203で指示された処理を示す情報を含む処理実施要求メッセージを相手装置203に対して送信する。さらに、自装置201のアプリケーションマネージャ部108は、アプリケーション部107に対して処理開始の通知をする。   In step S <b> 509, the communication control unit 102 of the own apparatus 201 transmits a process execution request message including information indicating the process instructed by the partner apparatus 203 to the partner apparatus 203. Further, the application manager unit 108 of the own device 201 notifies the application unit 107 of the start of processing.

そして、S510において、自装置201のアプリケーション部107は、相手装置203で指示された処理に対応するアプリケーションを起動し、処理を実施する。S511において、自装置201のアプリケーション部107からアプリケーションマネージャ部108へ処理終了の通知がなされる。   In step S <b> 510, the application unit 107 of the own apparatus 201 activates an application corresponding to the process instructed by the counterpart apparatus 203 and performs the process. In step S511, the application unit 107 of the device 201 notifies the application manager unit 108 of the end of processing.

S512において、自装置201の通信制御部102は、相手装置203に対して切断要求を送信する。その後、複数処理実施プロセスを終了する。   In step S <b> 512, the communication control unit 102 of the own device 201 transmits a disconnection request to the partner device 203. Thereafter, the multi-process execution process is terminated.

S513において、自装置201の通信制御部102は、相手装置203から要求メッセージを受信したか否かを判定する。相手装置203から要求メッセージを受信したと判定された場合(S513;YES)、S514へ進む。一方、相手装置203から要求メッセージを受信していないと判定された場合(S513;NO)、受信するまで待機する。   In step S <b> 513, the communication control unit 102 of the own device 201 determines whether a request message has been received from the counterpart device 203. If it is determined that the request message has been received from the counterpart device 203 (S513; YES), the process proceeds to S514. On the other hand, if it is determined that a request message has not been received from the counterpart device 203 (S513; NO), the system waits until it is received.

S514において、自装置201の制御メッセージ確認部105は、要求メッセージの内容を確認する。要求メッセージの内容が実施処理取得要求であった場合、S515へ進む。要求メッセージの内容が処理実施要求であった場合、S516へ進む。要求メッセージの内容が切断要求であった場合、複数処理実施プロセスを終了する。   In step S514, the control message confirmation unit 105 of the own device 201 confirms the content of the request message. When the content of the request message is an execution process acquisition request, the process proceeds to S515. When the content of the request message is a processing execution request, the process proceeds to S516. If the content of the request message is a disconnection request, the multi-process execution process is terminated.

S515において、自装置201の通信制御部102は、自装置201で指示された処理を示す情報を含む、制御メッセージ作成部104が作成した実施処理取得応答メッセージを相手装置203に対して送信する。その後、S513へ戻る。   In step S <b> 515, the communication control unit 102 of the own device 201 transmits an execution process acquisition response message created by the control message creation unit 104 including information indicating the process instructed by the own device 201 to the partner device 203. Thereafter, the process returns to S513.

またS516において、自装置201のアプリケーションマネージャ部108は、アプリケーション部107に対して処理開始の通知をする。そして、アプリケーション部107は、処理実施要求に示された処理に対応するアプリケーションを起動する。   In step S <b> 516, the application manager unit 108 of the own apparatus 201 notifies the application unit 107 of processing start. Then, the application unit 107 activates an application corresponding to the process indicated in the process execution request.

S517において、処理が終了すると、アプリケーション部107からアプリケーションマネージャ部108へ処理終了の通知がなされる。その後、S513へ戻る。 さらに、図7を参照して、複数処理実施プロセスのシーケンスについて説明する。ここでは、一例として自装置201をマスタ側として、相手装置203をスレーブ側として説明する。また、自装置201で指示された処理は自装置201から相手装置203へのデータPUSHとし、相手装置203で指示された処理は相手装置203から自装置201へのデータPUSHとする。   In S517, when the process ends, the application unit 107 notifies the application manager unit 108 of the end of the process. Thereafter, the process returns to S513. Furthermore, with reference to FIG. 7, the sequence of the multiple processing execution process will be described. Here, as an example, the own device 201 will be described as the master side, and the counterpart device 203 will be described as the slave side. In addition, the process instructed by the own apparatus 201 is data PUSH from the own apparatus 201 to the partner apparatus 203, and the process instructed by the partner apparatus 203 is data PUSH from the partner apparatus 203 to the own apparatus 201.

まず、自装置201から相手装置203へ実施処理取得要求が送信されると(F701)、相手装置203は、相手装置203から自装置201へのデータPUSHの処理を示す実施処理取得応答を自装置201へ送信する(F702)。   First, when an execution process acquisition request is transmitted from the own apparatus 201 to the counterpart apparatus 203 (F701), the counterpart apparatus 203 sends an execution process acquisition response indicating the processing of data PUSH from the counterpart apparatus 203 to the own apparatus 201. It transmits to 201 (F702).

次に、自装置201は、処理実施順序決定部110により決定された処理の実施順序に従って、自装置201で指示された処理を示す処理実施要求を送信する(F703)。   Next, the own apparatus 201 transmits a process execution request indicating the process instructed by the own apparatus 201 in accordance with the process execution order determined by the process execution order determining unit 110 (F703).

その結果、双方の装置において、自装置201から相手装置203へのデータPUSHの処理を実施するための送信、受信アプリケーションが起動し、処理が実施される(F704)。   As a result, in both apparatuses, a transmission / reception application for executing processing of data PUSH from the own apparatus 201 to the partner apparatus 203 is activated, and the process is performed (F704).

自装置201で指示されたPUSHの処理が完了すると、自装置201から相手装置203に対してPUSH完了通知を送信する(F705)。さらに、自装置201は、相手装置203で指示された処理を示す処理実施要求を相手装置203へ送信し(F706)、双方の装置において、相手装置203から自装置201へのデータPUSHの処理を実施するための送信、受信アプリケーションが起動し、処理が実施される(F707)。   When the PUSH process instructed by the own device 201 is completed, a PUSH completion notification is transmitted from the own device 201 to the partner device 203 (F705). Further, the own device 201 transmits a processing execution request indicating the processing instructed by the partner device 203 to the partner device 203 (F706), and the processing of the data PUSH from the partner device 203 to the own device 201 is performed in both devices. The transmission / reception application for execution is activated and the processing is performed (F707).

相手装置203で指示されたPUSHの処理が完了すると、相手装置203は自装置201へPUSH完了通知を送信し(F708)、自装置201は相手装置(203)へ切断要求を送信する(F709)。以上で処理が終了する。 次に、図6を参照して、単一処理実施プロセスの動作手順について説明する。   When the PUSH process instructed by the partner apparatus 203 is completed, the partner apparatus 203 transmits a PUSH completion notification to the self apparatus 201 (F708), and the self apparatus 201 transmits a disconnection request to the partner apparatus (203) (F709). . The process ends here. Next, the operation procedure of the single process execution process will be described with reference to FIG.

S601において、自装置201は、記憶部109を参照して自装置201がマスタであるか否かを判定する。自装置201がマスタであると判定された場合(S601;YES)、S602へ進む。一方、自装置がスレーブであると判定された場合(S601;NO)、S606へ進む。   In step S <b> 601, the own apparatus 201 refers to the storage unit 109 and determines whether the own apparatus 201 is a master. When it is determined that the device 201 is the master (S601; YES), the process proceeds to S602. On the other hand, when it is determined that the own apparatus is a slave (S601; NO), the process proceeds to S606.

S602において、自装置201の通信制御部102は、自装置201で指示された処理を示す情報を含む、制御メッセージ作成部(104)が作成した処理実施要求メッセージを相手装置203に対して送信する。   In step S <b> 602, the communication control unit 102 of the own device 201 transmits the processing execution request message created by the control message creation unit (104) including information indicating the process instructed by the own device 201 to the partner device 203. .

S603において、さらに、自装置201のアプリケーションマネージャ部108がアプリケーション部107に対して処理開始の通知をすることにより、アプリケーション部107は、自装置201で指示された処理に対応するアプリケーションを起動し、処理を実施する。   In S603, the application manager unit 108 of the own device 201 further notifies the application unit 107 of processing start, whereby the application unit 107 activates an application corresponding to the processing instructed by the own device 201, and Perform the process.

S604において、処理が終了すると、アプリケーション部107からアプリケーションマネージャ部108へ処理終了の通知がなされる。S605において、自装置201の通信制御部102は、相手装置203に対して切断要求を送信する。その後、単一処理実施プロセスを終了する。   In step S604, when the process ends, the application unit 107 notifies the application manager unit 108 of the end of the process. In step S <b> 605, the communication control unit 102 of the own device 201 transmits a disconnection request to the partner device 203. Thereafter, the single processing execution process is terminated.

一方、自装置がスレーブであると判定された場合(S601;NO)、S606以降の処理を行うが、それらは、複数処理実施プロセスにおけるスレーブの動作と基本的に同じである。複数処理実施プロセスにおけるスレーブの動作と異なる点は、相手装置203からの実施処理取得要求メッセージの受信がないため、図5のS515のような実施処理取得応答に関する動作は必要ないことである。   On the other hand, when it is determined that the own device is a slave (S601; NO), the processing after S606 is performed, which is basically the same as the operation of the slave in the multi-processing execution process. The difference from the operation of the slave in the multi-processing execution process is that no operation processing acquisition request message from the counterpart device 203 is received, and therefore the operation related to the execution processing acquisition response as in S515 of FIG. 5 is not necessary.

S606において、自装置201の通信制御部102は、相手装置203から要求メッセージを受信したか否かを判定する。相手装置203から要求メッセージを受信したと判定された場合(S606;YES)、S514へ進む。一方、相手装置203から要求メッセージを受信していないと判定された場合(S606;NO)、受信するまで待機する。   In step S <b> 606, the communication control unit 102 of the own apparatus 201 determines whether a request message has been received from the partner apparatus 203. If it is determined that the request message has been received from the counterpart device 203 (S606; YES), the process proceeds to S514. On the other hand, if it is determined that a request message has not been received from the counterpart device 203 (S606; NO), the system waits until it is received.

S607において、自装置201の制御メッセージ確認部105は、要求メッセージの内容を確認する。要求メッセージの内容が処理実施要求であった場合、S608へ進む。要求メッセージの内容が切断要求であった場合、単一処理実施プロセスを終了する。S608において、自装置201のアプリケーションマネージャ部108は、アプリケーション部107に対して処理開始の通知をする。そして、アプリケーション部107は、処理実施要求に示された処理に対応するアプリケーションを起動する。   In step S607, the control message confirmation unit 105 of the own device 201 confirms the content of the request message. If the content of the request message is a processing execution request, the process proceeds to S608. If the content of the request message is a disconnection request, the single process execution process is terminated. In step S <b> 608, the application manager unit 108 of the own apparatus 201 notifies the application unit 107 of processing start. Then, the application unit 107 activates an application corresponding to the process indicated in the process execution request.

S609において、処理が終了すると、アプリケーション部107からアプリケーションマネージャ部108へ処理終了の通知がなされる。その後、S606へ戻る。 さらに、図8を参照して単一処理実施プロセスのシーケンスについて説明する。   In step S609, when the process ends, the application unit 107 notifies the application manager unit 108 of the end of the process. Thereafter, the process returns to S606. Further, the sequence of the single processing execution process will be described with reference to FIG.

ここでは、一例として自装置201をマスタ側とし、相手装置203をスレーブ側とし、自装置201で指示された処理は自装置201から相手装置203へのデータPUSHとする。   Here, as an example, the own device 201 is the master side, the counterpart device 203 is the slave side, and the processing instructed by the own device 201 is data PUSH from the own device 201 to the counterpart device 203.

まず、自装置201で指示された処理を示す処理実施要求を送信し(F801)、双方の装置において自装置201から相手装置203へのデータPUSHの処理を実施するための送信、受信アプリケーションが起動し、処理が実施される(F802)。自装置201で指示されたPUSHの処理が完了すると、自装置201から相手装置203へPUSH完了通知を送信し(F803)、切断要求を送信する(F804)。   First, a processing execution request indicating processing instructed by the own device 201 is transmitted (F801), and a transmission / reception application is started to execute processing of data PUSH from the own device 201 to the partner device 203 in both devices. Then, the process is performed (F802). When the PUSH process instructed by the own apparatus 201 is completed, a PUSH completion notice is transmitted from the own apparatus 201 to the partner apparatus 203 (F803), and a disconnection request is transmitted (F804).

以上説明したように、本実施形態によれば、接続要求の衝突の有無に応じて、実施する処理の数を判定することにより、ユーザから指示された全ての処理を最小限の処理ステップで実現する。   As described above, according to the present embodiment, all the processes instructed by the user are realized with the minimum number of processing steps by determining the number of processes to be performed according to the presence or absence of a collision of connection requests. To do.

なお、本実施形態では、接続要求の衝突の有無により実施する処理の数を判定するタイミングを複数処理実施プロセス及び単一処理実施プロセスを開始する前としているが、それ以外のタイミングで判定を行ってもよい。例えば、接続処理が完了した場合に(S301)、マスタは即座に単一処理実施プロセスを開始し(S304)、単一処理実施プロセス終了後に接続要求の衝突が有った場合は、連続してスレーブで指示された処理を実施する、などの方法が考えられる。   In this embodiment, the timing for determining the number of processes to be performed based on the presence or absence of a connection request conflict is set before starting the multi-process execution process and the single-process execution process, but the determination is performed at other timings. May be. For example, when the connection process is completed (S301), the master immediately starts the single process execution process (S304). If there is a connection request collision after the single process execution process ends, the master continuously A method such as executing processing instructed by the slave is conceivable.

また、本実施形態で定義した制御メッセージ以外のメッセージに、ユーザから指示された処理を示す情報を含めてもよい。例えば、実施可能な処理のリストを通知するメッセージを用いる場合に、そのメッセージにユーザから指示された処理を示す情報を含める、などの方法が考えられる。   Information indicating processing instructed by the user may be included in a message other than the control message defined in the present embodiment. For example, when using a message notifying a list of processes that can be performed, a method of including information indicating a process instructed by the user in the message is conceivable.

(第2実施形態)
図9を参照して、近接無線通信(非接触通信)機能を有する第2実施形態に係る通信装置901の機能ブロック図の一例を説明する。通信装置901は、通信制御部902と、接続要求衝突制御部903と、制御メッセージ作成部904と、制御メッセージ確認部905と、ユーザインタフェース部906と、アプリケーション部907と、アプリケーションマネージャ部908と、記憶部909と、処理実施順序決定部910と、複数処理実施確認部911と、計時部912とを備える。
(Second Embodiment)
With reference to FIG. 9, an example of a functional block diagram of a communication device 901 according to the second embodiment having a proximity wireless communication (non-contact communication) function will be described. The communication device 901 includes a communication control unit 902, a connection request collision control unit 903, a control message creation unit 904, a control message confirmation unit 905, a user interface unit 906, an application unit 907, an application manager unit 908, A storage unit 909, a processing execution order determination unit 910, a multiple processing execution confirmation unit 911, and a timing unit 912 are provided.

以下では、図1を参照して説明した第1実施形態の機能ブロックとの差異のみについて説明する。複数処理実施確認部911は、両方の装置の処理を実施する場合に、2つの処理を実施することを、ユーザインタフェース部906を用いてユーザに確認する。計時部912は、通信制御部902によるリンク確立状態の継続時間を計時するタイマなどに用いる。本実施形態におけるシステム構成は図2と同様である。   Hereinafter, only differences from the functional blocks of the first embodiment described with reference to FIG. 1 will be described. The multi-processing execution confirmation unit 911 confirms to the user using the user interface unit 906 that two processes are performed when performing the processing of both apparatuses. The time measuring unit 912 is used as a timer for measuring the duration of the link establishment state by the communication control unit 902. The system configuration in this embodiment is the same as that shown in FIG.

図3、図4、図6、図10、および図11のフローチャートを参照して、本実施形態における動作手順を説明する。   The operation procedure in the present embodiment will be described with reference to the flowcharts of FIGS. 3, 4, 6, 10, and 11.

以下では、第1実施形態の動作フローチャート(図3乃至図7)との差異点を主に説明する。初期状態として、自装置201と相手装置203とは、近接無線転送インタフェース202、近接無線転送インタフェース204による近距離無線通信ができない十分遠い距離に配置されており、図3のS301および図4に示される接続処理を開始した状態である。双方の装置でユーザインタフェース106の操作により送信データの選択、及び送信指示等の処理に関する指示が行われた状態で、ユーザは自装置201と相手装置203との距離が所定の通信範囲内になるように近づける。   Hereinafter, differences from the operation flowchart (FIGS. 3 to 7) of the first embodiment will be mainly described. As an initial state, the own device 201 and the partner device 203 are arranged at a sufficiently long distance where short-distance wireless communication by the close proximity wireless transfer interface 202 and the close proximity wireless transfer interface 204 is not possible, as shown in S301 of FIG. 3 and FIG. The connection process is started. In the state where instructions regarding processing such as transmission data selection and transmission instruction are performed by the operation of the user interface 106 in both apparatuses, the user has a distance between the own apparatus 201 and the partner apparatus 203 within a predetermined communication range. Move closer together.

S301において接続処理が行われ、接続要求の衝突があったと判定された場合(S302;Yes)、S303および図10に示される複数処理実施プロセスが開始する。   When the connection process is performed in S301 and it is determined that there is a connection request collision (S302; Yes), the multi-process execution process shown in S303 and FIG. 10 starts.

この本実施形態に係る複数処理実施プロセスについて、図10のフローチャートを参照して説明する。   The multi-process execution process according to this embodiment will be described with reference to the flowchart of FIG.

S1001において、自装置201は、記憶部109を参照して自装置201がマスタであるか否かを判定する。自装置201がマスタであると判定された場合(S1001;YES)、S1002へ進む。一方、自装置がスレーブであると判定された場合(S1001;NO)、S1015へ進む。   In step S <b> 1001, the own apparatus 201 refers to the storage unit 109 and determines whether the own apparatus 201 is a master. When it is determined that the device 201 is the master (S1001; YES), the process proceeds to S1002. On the other hand, when it is determined that the own apparatus is a slave (S1001; NO), the process proceeds to S1015.

S1002乃至S1005の各処理は、第1実施形態で説明したS502乃至S505の各処理と同様であるため、説明を省略する。   Since each process of S1002 to S1005 is the same as each process of S502 to S505 described in the first embodiment, a description thereof will be omitted.

S1006において、自装置201の複数処理実施確認部911は、双方の装置で指示された複数の処理を連続的に実施してもよいか否かをユーザに確認する。このユーザ確認処理の詳細について、図11のフローチャートを参照して説明する。   In step S1006, the multi-process execution confirmation unit 911 of the own apparatus 201 confirms with the user whether or not a plurality of processes instructed by both apparatuses may be performed continuously. Details of this user confirmation processing will be described with reference to the flowchart of FIG.

S1101において、自装置201の複数処理実施確認部911は、ユーザインタフェース部906に複数処理の実施を行うか否かを確認するための表示を行う。本実施形態では、図12に示されるように、実施する処理の内容と順序を表示し、「OK」か「Cancel」かのユーザによる選択を受け付ける。この選択受付処理は、表示画面上でタッチパネルにより受け付けてもよい。その他にも、送信対象のファイルに関する情報やファイル転送に要する時間などを表示してもよい。   In step S <b> 1101, the multi-process execution confirmation unit 911 of the own apparatus 201 displays a display for confirming whether or not to perform multi-process on the user interface unit 906. In the present embodiment, as shown in FIG. 12, the contents and order of the processing to be performed are displayed, and the user selects “OK” or “Cancel”. This selection reception process may be received by a touch panel on the display screen. In addition, information regarding a transmission target file, time required for file transfer, and the like may be displayed.

次に、S1102において、自装置201の計時部912は、リンク確立状態の継続時間の計時を開始する。   Next, in S1102, the time measuring unit 912 of the own apparatus 201 starts measuring the duration of the link establishment state.

S1103において、自装置201の複数処理実施確認部911は、計時開始から所定時間以上が経過しているか否かを判定する。   In step S <b> 1103, the multiple processing execution confirmation unit 911 of the own device 201 determines whether or not a predetermined time has elapsed since the start of time measurement.

所定時間が経過していると判定された場合(S1103;YES)、S1104へ進む。一方、所定時間が経過していないと判定された場合(S1103;NO)、S1105へ進む。   When it is determined that the predetermined time has elapsed (S1103; YES), the process proceeds to S1104. On the other hand, if it is determined that the predetermined time has not elapsed (S1103; NO), the process proceeds to S1105.

S1104において、自装置201の複数処理実施確認部911は、複数処理実施を行うことを示す情報(「OK」)を記憶部909に格納し、ユーザ確認処理を終了する。S1105において、自装置201の通信制御部902は、相手装置203とのリンクが切断しているか否かを判定する。リンクが切断していると判定された場合(S1105;YES)、S1106へ進む。一方、リンクが切断していないと判定された場合(S1105;NO)、S1107へ進む。   In step S1104, the multi-process execution confirmation unit 911 of the own apparatus 201 stores information (“OK”) indicating that the multi-process execution is performed in the storage unit 909, and ends the user confirmation process. In step S <b> 1105, the communication control unit 902 of the own apparatus 201 determines whether the link with the partner apparatus 203 is disconnected. When it is determined that the link is disconnected (S1105; YES), the process proceeds to S1106. On the other hand, if it is determined that the link is not disconnected (S1105; NO), the process proceeds to S1107.

S1106において、自装置201の複数処理実施確認部911は、複数処理実施を行わないことを示す情報(「Cancel」)を記憶部909に格納し、ユーザ確認処理を終了する。S1107において、自装置201の複数処理実施確認部911は、ユーザインタフェース部906の操作によってユーザが「OK」或いは「Cancel」の選択を行ったか否かを判定する。   In step S <b> 1106, the multiple processing execution confirmation unit 911 of the own apparatus 201 stores information (“Cancel”) indicating that the multiple processing execution is not performed in the storage unit 909, and ends the user confirmation processing. In step S <b> 1107, the multi-process execution confirmation unit 911 of the own apparatus 201 determines whether the user has selected “OK” or “Cancel” by operating the user interface unit 906.

ユーザが「OK」を選択した場合、S1108へ進む。ユーザが「Cancel」を選択した場合、S1109へ進む。そして、ユーザが選択をしていない場合、S1103へ戻る。   If the user selects “OK”, the process advances to step S1108. If the user selects “Cancel”, the process advances to step S1109. If the user has not made a selection, the process returns to S1103.

S1108において、自装置201の複数処理実施確認部911は、複数処理実施を行うことを示す情報(「OK」)を記憶部909に格納し、ユーザ確認処理を終了する。S1109において、自装置201の複数処理実施確認部911は、複数処理実施を行わないことを示す情報(「Cancel」)を記憶部909に格納し、ユーザ確認処理を終了する。   In step S <b> 1108, the multi-process execution confirmation unit 911 of the own apparatus 201 stores information (“OK”) indicating that multi-process execution is performed in the storage unit 909, and ends the user confirmation process. In step S <b> 1109, the multi-process execution confirmation unit 911 of the own apparatus 201 stores information (“Cancel”) indicating that multi-process execution is not performed in the storage unit 909, and ends the user confirmation process.

図11のフローチャートの処理が終了すると、S1007へ進む。S1007において、自装置201の複数処理実施確認部911は、複数処理実施を行うか否かを、記憶部909を参照して判定する。複数処理実施を行うと判定された場合(S1007;YES)、S1008へ進む。一方、複数処理実施を行わないと判定された場合(S1007;NO)、S1014へ進む。   When the process of the flowchart of FIG. 11 ends, the process proceeds to S1007. In step S <b> 1007, the multiple processing execution confirmation unit 911 of the own apparatus 201 determines whether to perform the multiple processing with reference to the storage unit 909. If it is determined that multiple processing is to be performed (S1007; YES), the process proceeds to S1008. On the other hand, if it is determined not to perform multiple processing (S1007; NO), the process proceeds to S1014.

S1008乃至S1014の各処理は、第1実施形態で説明したS506乃至S512の各処理と同様であるため、説明を省略する。 一方、自装置がスレーブである場合は、S1015乃至S1019の各処理を行うが、これらの処理は、第1実施形態で説明したS513乃至S517の各処理と同様であるため、説明を省略する。   Since the processes of S1008 to S1014 are the same as the processes of S506 to S512 described in the first embodiment, a description thereof will be omitted. On the other hand, when the own apparatus is a slave, the processes of S1015 to S1019 are performed. Since these processes are the same as the processes of S513 to S517 described in the first embodiment, description thereof is omitted.

以上説明したように、本実施形態によれば、両方の装置においてユーザによるデータ送信操作が行われた場合、無線リンク接続が完了しデータ送信が可能な状態になっても、即座にデータ送信を開始せず、複数処理を連続的に実施してよいかをユーザに確認する。   As described above, according to the present embodiment, when a data transmission operation is performed by a user in both apparatuses, even if a wireless link connection is completed and data transmission is possible, data transmission is immediately performed. Confirm with the user whether multiple processing can be performed continuously without starting.

(その他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments)
The present invention can also be 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 apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (9)

相手装置と無線リンクを確立して通信する通信装置であって、
前記通信装置が無線リンクを確立するための接続要求を前記相手装置へ送信し且つ前記相手装置が前記接続要求を前記通信装置へ送信したことによる要求衝突の発生を、前記相手装置との無線リンクが確立される際に検出する検出手段と、
前記通信装置が要求する処理と前記相手装置が要求する処理の処理順序を前記接続要求に含まれる情報に基づいて決定する決定手段と、
前記要求衝突が検出された場合、前記決定手段により決定された処理順序で前記相手装置と通信して処理を実施する通信手段と、
を備えることを特徴とする通信装置。
A communication device that establishes a wireless link with a counterpart device and communicates,
The occurrence of a request collision caused by the communication device transmitting a connection request for establishing a wireless link to the partner device and the partner device transmitting the connection request to the communication device. Detecting means for detecting when is established;
Determining means for determining a processing order of processing requested by the communication device and processing requested by the counterpart device based on information included in the connection request;
When the request collision is detected, communication means for performing processing by communicating with the counterpart device in the processing order determined by the determining means;
A communication apparatus comprising:
前記通信手段は、前記要求衝突が検出されず且つ前記通信装置により前記接続要求が送信された場合、前記相手装置と通信して前記通信装置が要求する処理を実施することを特徴とする請求項1に記載の通信装置。   The communication means, when the request collision is not detected and the connection request is transmitted by the communication device, performs a process requested by the communication device by communicating with the counterpart device. The communication apparatus according to 1. 前記要求衝突が検出された場合、前記決定手段により決定された処理順序で前記通信装置が要求する処理と前記相手装置が要求する処理とを実施するか否かを選択させるための操作を受け付ける受付手段をさらに備えることを特徴とする請求項1または2に記載の通信装置。   Acceptance of accepting an operation for selecting whether to execute the processing requested by the communication device and the processing requested by the counterpart device in the processing order determined by the determining means when the request collision is detected The communication apparatus according to claim 1, further comprising means. 前記通信装置と前記相手装置との前記無線リンクが確立している継続時間を計時する計時手段をさらに備え、
前記継続時間が所定時間よりも長い場合、前記通信手段は前記決定手段により決定された処理順序で前記相手装置と通信して処理を実施し、前記継続時間が前記所定時間より短く且つ前記通信装置により前記接続要求が送信された場合、前記通信手段は前記相手装置と通信して前記通信装置が要求する処理を実施することを特徴とする請求項1乃至3の何れか1項に記載の通信装置。
Further comprising time measuring means for measuring the duration of the establishment of the wireless link between the communication device and the counterpart device,
When the duration is longer than a predetermined time, the communication unit performs processing by communicating with the counterpart device in the processing order determined by the determination unit, the duration is shorter than the predetermined time, and the communication device 4. The communication according to claim 1, wherein, when the connection request is transmitted by the communication device, the communication unit communicates with the counterpart device to perform processing requested by the communication device. 5. apparatus.
前記接続要求には前記通信装置または前記相手装置の装置識別情報が含まれており、
前記決定手段は、前記装置識別情報に基づいて前記通信装置または前記相手装置のそれぞれをマスタまたはスレーブとし、前記通信装置が要求する処理と前記相手装置が要求する処理のうち、前記マスタとなる装置が要求する処理を先に実施するように前記処理順序を決定することを特徴とする請求項1乃至4の何れか1項に記載の通信装置。
The connection request includes device identification information of the communication device or the counterpart device,
The determining means sets each of the communication device or the counterpart device as a master or a slave based on the device identification information, and is a master device among a process requested by the communication device and a process requested by the counterpart device. The communication apparatus according to any one of claims 1 to 4, wherein the processing order is determined so that the processing requested by the device is executed first.
前記接続要求には、前記通信装置が要求する処理または前記相手装置が要求する処理を実施する際に、操作者による操作が行われるか否かを示す操作情報が含まれており、
前記決定手段は、前記操作情報に基づいて、前記通信装置が要求する処理と前記相手装置が要求する処理のうち、前記操作者による操作が行われない処理を先に実施するように処理順序を決定することを特徴とする請求項1乃至4の何れか1項に記載の通信装置。
The connection request includes operation information indicating whether or not an operation is performed by an operator when performing the processing requested by the communication device or the processing requested by the counterpart device,
Based on the operation information, the determination means sets a processing order so that a process in which an operation by the operator is not performed is performed first among a process requested by the communication apparatus and a process requested by the counterpart apparatus. The communication device according to claim 1, wherein the communication device is determined.
前記接続要求には前記通信装置が要求する処理または前記相手装置が要求する処理を実施する際に、当該処理のために送信するデータサイズを示すサイズ情報が含まれており、
前記決定手段は、前記サイズ情報に基づいて前記データサイズが小さい方の処理を先に実施するように処理順序を決定することを特徴とする請求項1乃至4の何れか1項に記載の通信装置。
The connection request includes size information indicating a data size to be transmitted for the processing when the processing requested by the communication device or the processing requested by the counterpart device is performed,
5. The communication according to claim 1, wherein the determination unit determines a processing order based on the size information so that the processing with the smaller data size is performed first. 6. apparatus.
相手装置と無線リンクを確立して通信する通信装置の制御方法であって、
前記通信装置が前記無線リンクを確立するための接続要求を前記相手装置へ送信し且つ前記相手装置が前記接続要求を前記通信装置へ送信したことによる要求衝突の発生を、無線リンクが確立される際に検出する検出工程と、
前記通信装置が要求する処理と前記相手装置が要求する処理の処理順序を前記接続要求に含まれる情報に基づいて決定する決定工程と、
前記要求衝突が検出された場合、前記決定工程において決定された処理順序で前記相手装置と通信して処理を実施する通信工程と、
を備えることを特徴とする通信装置の制御方法。
A method for controlling a communication device that establishes a wireless link with a counterpart device and communicates with the counterpart device,
A wireless link is established when a request collision occurs when the communication device transmits a connection request for establishing the wireless link to the partner device and the partner device transmits the connection request to the communication device. A detection step to detect when,
A determination step of determining a processing order of processing requested by the communication device and processing requested by the counterpart device based on information included in the connection request;
When the request collision is detected, a communication step for performing processing by communicating with the counterpart device in the processing order determined in the determination step;
A method for controlling a communication apparatus, comprising:
請求項8に記載の通信装置の制御方法の各工程をコンピュータに実行させるためのプログラム。   The program for making a computer perform each process of the control method of the communication apparatus of Claim 8.
JP2011100129A 2011-04-27 2011-04-27 Communication device, control method of communication device, and program Withdrawn JP2012231429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011100129A JP2012231429A (en) 2011-04-27 2011-04-27 Communication device, control method of communication device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011100129A JP2012231429A (en) 2011-04-27 2011-04-27 Communication device, control method of communication device, and program

Publications (1)

Publication Number Publication Date
JP2012231429A true JP2012231429A (en) 2012-11-22

Family

ID=47432579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011100129A Withdrawn JP2012231429A (en) 2011-04-27 2011-04-27 Communication device, control method of communication device, and program

Country Status (1)

Country Link
JP (1) JP2012231429A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015137523A1 (en) * 2014-03-13 2015-09-17 Kabushiki Kaisha Toshiba File transmission/reception device and control method of file transmission/reception device
JP2016071812A (en) * 2014-10-02 2016-05-09 シャープ株式会社 Moving body and monitoring server device
US10432675B2 (en) 2017-04-17 2019-10-01 Microsoft Technology Licensing, Llc Collision prevention in secure connection establishment
CN117479344A (en) * 2023-12-15 2024-01-30 荣耀终端有限公司 Bluetooth connection method, electronic equipment and readable storage medium

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI693804B (en) * 2014-03-13 2020-05-11 日商東芝記憶體股份有限公司 Sd card
TWI574521B (en) * 2014-03-13 2017-03-11 東芝股份有限公司 File transmission/reception device and control method of file transmission/reception device
US11881910B2 (en) 2014-03-13 2024-01-23 Kioxia Corporation File transmission/reception device and control method of file transmission/reception device
CN106068655A (en) * 2014-03-13 2016-11-02 株式会社 东芝 File transmission/reception device and control method thereof
US10454531B2 (en) 2014-03-13 2019-10-22 Toshiba Memory Corporation File transmission/reception device and control method of file transmission/reception device
US9859954B2 (en) 2014-03-13 2018-01-02 Toshiba Memory Corporation File transmission/reception device and control method of file transmission/reception device
KR101921396B1 (en) * 2014-03-13 2018-11-22 도시바 메모리 가부시키가이샤 File transmission/reception device and control method of file transmission/reception device
CN106068655B (en) * 2014-03-13 2020-04-10 东芝存储器株式会社 File transmitting/receiving device and control method thereof
US11309938B2 (en) 2014-03-13 2022-04-19 Kioxia Corporation File transmission/reception device and control method of file transmission/reception device
JP2015177267A (en) * 2014-03-13 2015-10-05 株式会社東芝 Device and method for file transmission and reception
US10187118B2 (en) 2014-03-13 2019-01-22 Toshiba Memory Corporation File transmission/reception device and control method of file transmission/reception device
US10623059B2 (en) 2014-03-13 2020-04-14 Toshiba Memory Corporation File transmission/reception device and control method of file transmission/reception device
WO2015137523A1 (en) * 2014-03-13 2015-09-17 Kabushiki Kaisha Toshiba File transmission/reception device and control method of file transmission/reception device
JP2016071812A (en) * 2014-10-02 2016-05-09 シャープ株式会社 Moving body and monitoring server device
US10432675B2 (en) 2017-04-17 2019-10-01 Microsoft Technology Licensing, Llc Collision prevention in secure connection establishment
CN117479344A (en) * 2023-12-15 2024-01-30 荣耀终端有限公司 Bluetooth connection method, electronic equipment and readable storage medium
CN117479344B (en) * 2023-12-15 2024-05-24 荣耀终端有限公司 Bluetooth connection method, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
EP2750364B1 (en) Mobile terminal device, and method and computer readable medium for the same
JP5853981B2 (en) Function execution device
JP6482279B2 (en) Information processing apparatus, control method, and program
JP4878260B2 (en) Wireless parameter setting method, base station, management apparatus, control method therefor, and computer program
JP5171436B2 (en) COMMUNICATION DEVICE, DATA COMMUNICATION SYSTEM, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP2016091274A (en) Communication system, communication apparatus and control method thereof, information processing apparatus and control method thereof, and program
JP6265192B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND APPLICATION PROGRAM
JP5939042B2 (en) Information processing system, portable terminal device, image processing device, and program
JP2012231429A (en) Communication device, control method of communication device, and program
JP2011188518A (en) Wireless communication device, and method and program for outputting identifier
JP6282364B2 (en) COMMUNICATION DEVICE, PROGRAM, AND COMMUNICATION SYSTEM
JP2010283751A (en) Communication apparatus, control method thereof, and computer program
JP2007086991A (en) Communication equipment
JP5488177B2 (en) WIRELESS COMMUNICATION SYSTEM, VEHICLE DEVICE, PORTABLE COMMUNICATION TERMINAL, AND VEHICLE WIRELESS COMMUNICATION METHOD
WO2006129474A1 (en) Data transfer method, transfer instructing communication terminal device, transfer controlling communication terminal device, transfer instructing program, and transfer controlling program
JP7279220B2 (en) Information processing device, its control method, and program
JP2016025577A (en) Communications device
JP2015104098A (en) Radio communication system and radio communication method
JP6818532B2 (en) Image processing device, its control method, and program
JP7027084B2 (en) Information processing equipment, its control method, and programs
JP2014127121A (en) Portable terminal, control method of portable terminal, and device control system
JP5546309B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP4433835B2 (en) User interface device, information processing system, and information setting method for information processing device
JP5822989B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP6614081B2 (en) Terminal device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140701