JP2011015368A - Mobile terminal, infrared communication method, and program for controlling mobile terminal - Google Patents

Mobile terminal, infrared communication method, and program for controlling mobile terminal Download PDF

Info

Publication number
JP2011015368A
JP2011015368A JP2009160194A JP2009160194A JP2011015368A JP 2011015368 A JP2011015368 A JP 2011015368A JP 2009160194 A JP2009160194 A JP 2009160194A JP 2009160194 A JP2009160194 A JP 2009160194A JP 2011015368 A JP2011015368 A JP 2011015368A
Authority
JP
Japan
Prior art keywords
mobile terminal
data
connection request
unit
transmitted
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
JP2009160194A
Other languages
Japanese (ja)
Inventor
Ryota Eguchi
良太 江口
Itai Tomioka
威泰 富岡
Yoshiyuki Imai
佳之 今井
Hideo Shindo
秀郎 進藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2009160194A priority Critical patent/JP2011015368A/en
Publication of JP2011015368A publication Critical patent/JP2011015368A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a mobile terminal which can transmit or receive data by infrared communication with an easy operation, an infrared communication method, and a program for controlling a mobile terminal.SOLUTION: In this mobile terminal, a connection request for transmitting/receiving data by infrared communication is transmitted to another mobile terminal; the state of the mobile terminal is changed over to a transmission/reception standby state being a state where transmission and reception of data are performed; and, when a response to the connection request is detected within a predetermined period, data of a transmission object are transmitted to the other mobile terminal, and data of a transmission object in the other mobile terminal are obtained from the other mobile terminal.

Description

本発明は、携帯端末、赤外線通信方法および携帯端末制御プログラムに関する。   The present invention relates to a mobile terminal, an infrared communication method, and a mobile terminal control program.

近年、携帯電話やPHS(Personal Handy-phone System)などの携帯端末は、赤外線通信を用いて、他の携帯端末との間でデータを交換する機能を有している。具体的には、携帯端末の利用者は、自身の携帯端末と他の携帯端末とを対向させた後に、自身の携帯端末に記憶されている電話帳データや画像データ、動画像データなどのデータを他の携帯端末へ送信する。   In recent years, mobile terminals such as mobile phones and PHS (Personal Handy-phone System) have a function of exchanging data with other mobile terminals using infrared communication. Specifically, the user of the mobile terminal makes data such as phone book data, image data, and moving image data stored in the mobile terminal after the mobile terminal faces another mobile terminal. To other mobile devices.

また、最近では、複数の携帯端末間で共通のグループを形成し、かかるグループを識別するためのグループIDを用いて、同一のグループに属する携帯端末間でデータを送受信する技術が提案されている。   Recently, a technique has been proposed in which a common group is formed between a plurality of portable terminals, and data is transmitted and received between portable terminals belonging to the same group using a group ID for identifying the group. .

特開2002−148050号公報JP 2002-148050 A

しかしながら、上述した従来技術には、複数の携帯端末間でデータを交換する場合に、利用者に煩わしい作業を行わせるという問題があった。例えば、従来の携帯端末900aと携帯端末900bとの間で赤外線通信により電話帳に登録されているデータを相互に交換する場合、携帯端末900aの利用者Aと、携帯端末900bの利用者Bとは、以下の作業を行うことになる。   However, the above-described conventional technique has a problem that it causes a user to perform troublesome work when exchanging data between a plurality of portable terminals. For example, when exchanging data registered in the telephone directory by infrared communication between the conventional portable terminal 900a and the portable terminal 900b, the user A of the portable terminal 900a and the user B of the portable terminal 900b Will do the following:

まず、利用者Aは、携帯端末900aを操作して、データを送信するモード(以下、「送信モード」と言う)を選択する。また、利用者Bは、携帯端末900bを操作して、データを受信するモード(以下、「受信モード」と言う)を選択する。そして、利用者Aは、送信対象のデータを選択した後に、携帯端末900aから携帯端末900bへ選択したデータを送信する。その後、利用者Bは、携帯端末900bを操作して送信モードを選択する。また、利用者Aは、携帯端末900aを操作して受信モードを選択する。そして、利用者Bは、携帯端末900bから携帯端末900aへ所望のデータを送信する。   First, the user A operates the portable terminal 900a to select a mode for transmitting data (hereinafter referred to as “transmission mode”). User B operates portable terminal 900b to select a mode for receiving data (hereinafter referred to as “reception mode”). And user A transmits the selected data from the portable terminal 900a to the portable terminal 900b, after selecting the transmission object data. Thereafter, the user B operates the portable terminal 900b to select a transmission mode. In addition, the user A selects the reception mode by operating the mobile terminal 900a. User B transmits desired data from the mobile terminal 900b to the mobile terminal 900a.

ここで、図9を用いて、上述した従来の携帯端末900aおよび900bの赤外線通信処理について説明する。図9は、従来の携帯端末900aおよび900bによるデータ送受信処理を示すシーケンス図である。なお、図9では、携帯端末900aから携帯端末900bへデータを送信する処理を示している。   Here, the infrared communication processing of the conventional portable terminals 900a and 900b described above will be described with reference to FIG. FIG. 9 is a sequence diagram showing data transmission / reception processing by the conventional portable terminals 900a and 900b. FIG. 9 shows a process of transmitting data from the mobile terminal 900a to the mobile terminal 900b.

図9に示すように、携帯端末900aは、まず、利用者Aから、携帯端末900bへ送信するデータを選択する操作を受け付ける(ステップS11)。例えば、利用者Aは、携帯端末900aの電話番号やメールアドレスを含む電話帳データを携帯端末900bへ送信する操作を行う。かかる場合に、携帯端末900aは、送信アプリを起動する(ステップS12)。ここで言う「送信アプリ」とは、赤外線通信を用いて、他の携帯端末へデータを送信する処理を実現するアプリケーションを示す。   As shown in FIG. 9, the mobile terminal 900a first accepts an operation for selecting data to be transmitted to the mobile terminal 900b from the user A (step S11). For example, the user A performs an operation of transmitting phone book data including the telephone number and mail address of the mobile terminal 900a to the mobile terminal 900b. In such a case, the mobile terminal 900a activates the transmission application (step S12). The “transmission application” here refers to an application that realizes a process of transmitting data to another mobile terminal using infrared communication.

また、携帯端末900bは、利用者Bから、データを受信する操作を受け付けた場合に、受信アプリを起動する(ステップS13)。ここで言う「受信アプリ」とは、赤外線通信を用いて、他の携帯端末からデータを受信する処理を実現するアプリケーションを示す。   Moreover, the portable terminal 900b starts a reception application, when the operation which receives data is received from the user B (step S13). The “reception application” here refers to an application that realizes a process of receiving data from another mobile terminal using infrared communication.

続いて、携帯端末900aは、携帯端末900bに対して、赤外線通信によって通信を行う旨の接続要求を送信する(ステップS14)。かかる接続要求を受け付けた携帯端末900bは、受信アプリを起動済みであるので、接続可能である旨の接続応答を携帯端末900aへ送信する(ステップS15)。   Subsequently, the mobile terminal 900a transmits a connection request for performing communication by infrared communication to the mobile terminal 900b (step S14). The mobile terminal 900b that has received the connection request transmits a connection response to the effect that connection is possible because the reception application has been activated (step S15).

そして、携帯端末900aは、ステップS11において選択された送信対象のデータを含むPUTコマンドを携帯端末900bへ送信する(ステップS16)。そして、携帯端末900bは、PUTコマンドを受信した旨の応答を携帯端末900aへ送信する(ステップS17)。   Then, the portable terminal 900a transmits a PUT command including the transmission target data selected in Step S11 to the portable terminal 900b (Step S16). And the portable terminal 900b transmits the response to the effect that the PUT command was received to the portable terminal 900a (step S17).

なお、携帯端末900aは、送信対象データのサイズが所定のサイズよりも大きい場合、送信対象データを、例えばパケット単位に分割して、分割した数ごとにPUTコマンドを携帯端末900bへ送信する。図9に示した例では、携帯端末900aは、送信対象データを2回に分けて携帯端末900bへ送信している(ステップS16およびS18)。そして、携帯端末900bは、携帯端末900aからPUTコマンドを受信するたびに、応答を携帯端末900aへ送信している(ステップS17およびS19)。データを受信した携帯端末900bは、受信データを保存する(ステップS20)。そして、データ送信が終了した携帯端末900aは、携帯端末900bへ切断要求を送信する(ステップS21)。そして、かかる切断要求を受信した携帯端末900bは、携帯端末900aへ切断要求に対する応答を送信する(ステップS22)。   When the size of the transmission target data is larger than the predetermined size, the portable terminal 900a divides the transmission target data into, for example, packet units, and transmits a PUT command to the portable terminal 900b for each divided number. In the example shown in FIG. 9, the mobile terminal 900a transmits the transmission target data to the mobile terminal 900b in two steps (steps S16 and S18). The mobile terminal 900b transmits a response to the mobile terminal 900a every time it receives a PUT command from the mobile terminal 900a (steps S17 and S19). The mobile terminal 900b that has received the data stores the received data (step S20). Then, the portable terminal 900a that has completed the data transmission transmits a disconnection request to the portable terminal 900b (step S21). Then, the mobile terminal 900b that has received the disconnect request transmits a response to the disconnect request to the mobile terminal 900a (step S22).

そして、携帯端末900bから携帯端末900aへデータを送信する場合、利用者Aは、受信モードを選択し、利用者Bは、送信モードを選択することになる。このように、従来の携帯端末間において、赤外線通信を用いてデータを交換する場合、双方の利用者は、送信モードを選択する操作や、受信モードを選択する操作や、データを送信する操作などを行うことになる。このため、従来の携帯端末を用いて他の携帯端末との間でデータを交換する場合、利用者は、煩わしい操作を行わざるをえなかった。   And when transmitting data from the portable terminal 900b to the portable terminal 900a, the user A selects the reception mode, and the user B selects the transmission mode. As described above, when data is exchanged between conventional portable terminals using infrared communication, both users select an operation for selecting a transmission mode, an operation for selecting a reception mode, an operation for transmitting data, and the like. Will do. For this reason, when exchanging data with other portable terminals using a conventional portable terminal, the user has to perform troublesome operations.

また、上述した複数の携帯端末間でグループを形成する技術を用いた場合、利用者は、予めグループを形成する作業を行うことになる。このことは、データ交換を行うたびに、グループを形成してグループIDを取得する作業を行うことになるので、利用者の作業負荷は軽減されなかった。   In addition, when the above-described technology for forming a group among a plurality of portable terminals is used, the user performs an operation for forming a group in advance. This means that every time data is exchanged, a group is formed and a group ID is acquired, so that the user's workload is not reduced.

開示の技術は、上記に鑑みてなされたものであって、簡易な操作で赤外線通信によりデータを送受することができる携帯端末、赤外線通信方法および携帯端末制御プログラムを提供することを目的とする。   The disclosed technology has been made in view of the above, and an object thereof is to provide a portable terminal, an infrared communication method, and a portable terminal control program capable of transmitting and receiving data by infrared communication with a simple operation.

本願の開示する携帯端末は、一つの態様において、他の携帯端末との間で赤外線通信を用いてデータを送受する携帯端末であって、前記他の携帯端末へ送信するデータを特定する特定部と、前記他の携帯端末に対して、赤外線通信によるデータの送受を行う旨の接続要求を送信する接続要求部と、当該の携帯端末の状態を、データの送信および受信を行う状態である送受信待機状態に切り替える状態切替部と、前記接続要求部によって送信された接続要求に対する応答を所定の時間内に検出した場合に、前記特定部によって特定されたデータを前記他の携帯端末へ送信するとともに、前記他の携帯端末の特定部によって特定されたデータを前記他の携帯端末から取得するデータ送受信部とを備える。   In one aspect, the mobile terminal disclosed in the present application is a mobile terminal that transmits / receives data to / from another mobile terminal using infrared communication, and specifies a data to be transmitted to the other mobile terminal A connection request unit that transmits a connection request for data transmission / reception by infrared communication to the other mobile terminal, and the state of the mobile terminal is a state of transmitting and receiving data. When a response to the connection request transmitted by the state switching unit that switches to the standby state and the connection request unit is detected within a predetermined time, the data specified by the specifying unit is transmitted to the other portable terminal. A data transmitting / receiving unit that acquires data specified by the specifying unit of the other mobile terminal from the other mobile terminal.

本願の開示する携帯端末の一つの態様によれば、簡易な操作で赤外線通信によりデータを送受することができるという効果を奏する。   According to one aspect of the mobile terminal disclosed in the present application, there is an effect that data can be transmitted and received by infrared communication with a simple operation.

図1は、実施例1に係る赤外線通信システムの構成例を示す図である。FIG. 1 is a diagram illustrating a configuration example of an infrared communication system according to the first embodiment. 図2は、実施例2に係る赤外線通信システムの構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of the infrared communication system according to the second embodiment. 図3は、実施例2における携帯端末の構成例を示す図である。FIG. 3 is a diagram illustrating a configuration example of the mobile terminal according to the second embodiment. 図4は、通信モード選択画面の一例を示す図である。FIG. 4 is a diagram illustrating an example of a communication mode selection screen. 図5−1は、実施例2に係る赤外線通信システムによるデータ送受信処理を示すシーケンス図である。FIG. 5A is a sequence diagram of the data transmission / reception process performed by the infrared communication system according to the second embodiment. 図5−2は、実施例2に係る赤外線通信システムによるデータ送受信処理を示すシーケンス図である。FIG. 5B is a sequence diagram of the data transmission / reception process performed by the infrared communication system according to the second embodiment. 図6は、実施例2における携帯端末によるデータ送受信処理手順を示すフローチャートである。FIG. 6 is a flowchart illustrating a data transmission / reception processing procedure performed by the mobile terminal according to the second embodiment. 図7は、実施例3に係る赤外線通信システムによるデータ送受信処理を示すシーケンス図である。FIG. 7 is a sequence diagram illustrating data transmission / reception processing by the infrared communication system according to the third embodiment. 図8は、携帯端末制御プログラムを実行するコンピュータを示す図である。FIG. 8 is a diagram illustrating a computer that executes a portable terminal control program. 図9は、従来の携帯端末によるデータ送受信処理を示すシーケンス図である。FIG. 9 is a sequence diagram showing data transmission / reception processing by a conventional portable terminal.

以下に、本願の開示する携帯端末、赤外線通信方法および携帯端末制御プログラムの実施例を図面に基づいて詳細に説明する。なお、この実施例により本願の開示する携帯端末、赤外線通信方法および携帯端末制御プログラムが限定されるものではない。   Hereinafter, embodiments of a mobile terminal, an infrared communication method, and a mobile terminal control program disclosed in the present application will be described in detail with reference to the drawings. Note that this embodiment does not limit the mobile terminal, the infrared communication method, and the mobile terminal control program disclosed in the present application.

[実施例1に係る赤外線通信システムの構成]
まず、図1を用いて、実施例1に係る赤外線通信システムの構成について説明する。図1は、実施例1に係る赤外線通信システムの構成例を示す図である。図1に示すように、実施例1に係る赤外線通信システム1は、携帯端末100aと、携帯端末100bとを有する。
[Configuration of Infrared Communication System According to Embodiment 1]
First, the configuration of the infrared communication system according to the first embodiment will be described with reference to FIG. FIG. 1 is a diagram illustrating a configuration example of an infrared communication system according to the first embodiment. As shown in FIG. 1, the infrared communication system 1 according to the first embodiment includes a mobile terminal 100a and a mobile terminal 100b.

図1に示した例において、携帯端末100aおよび携帯端末100bには、他の携帯端末との間で赤外線通信を行うモードとして、送信モードおよび受信モードの他に、データの送信および受信の双方を行う送受信モードを設定することができる。図1に示した例では、携帯端末100aおよび携帯端末100bは、利用者によって送受信モードが設定されるものとして説明する。   In the example illustrated in FIG. 1, the mobile terminal 100 a and the mobile terminal 100 b have both transmission and reception of data in addition to the transmission mode and the reception mode as modes for performing infrared communication with other mobile terminals. The transmission / reception mode to be performed can be set. In the example illustrated in FIG. 1, the portable terminal 100a and the portable terminal 100b will be described assuming that the transmission / reception mode is set by the user.

図1に示した例において、携帯端末100aは、特定部110aと、接続要求部120aと、状態切替部130aと、データ送受信部140aとを有する。また、携帯端末100bは、特定部110bと、接続要求部120bと、状態切替部130bと、データ送受信部140bとを有する。   In the example illustrated in FIG. 1, the mobile terminal 100a includes a specifying unit 110a, a connection request unit 120a, a state switching unit 130a, and a data transmitting / receiving unit 140a. In addition, the mobile terminal 100b includes a specifying unit 110b, a connection request unit 120b, a state switching unit 130b, and a data transmission / reception unit 140b.

携帯端末100aの特定部110aは、携帯端末100bへ送信するデータを特定する。また、携帯端末100bの特定部110bは、携帯端末100aへ送信するデータを特定する。例えば、携帯端末100aの特定部110aは、利用者によって画像データX1を携帯端末100bへ送信する旨の操作が行われた場合に、送信対象のデータとして、画像データX1を特定する。   The specifying unit 110a of the mobile terminal 100a specifies data to be transmitted to the mobile terminal 100b. In addition, the specifying unit 110b of the mobile terminal 100b specifies data to be transmitted to the mobile terminal 100a. For example, the specifying unit 110a of the mobile terminal 100a specifies the image data X1 as transmission target data when an operation to transmit the image data X1 to the mobile terminal 100b is performed by the user.

なお、利用者によって他の携帯端末へデータを送信する旨の操作が行われた場合、携帯端末100aおよび100bは、赤外線通信を用いてデータを送受するためのアプリケーションを起動する。   When the user performs an operation for transmitting data to another mobile terminal, the mobile terminals 100a and 100b start an application for transmitting and receiving data using infrared communication.

携帯端末100aの接続要求部120aは、携帯端末100bに対して、赤外線通信によるデータの送受を行う旨の接続要求を送信する。また、携帯端末100bの接続要求部120bは、携帯端末100aに対して、赤外線通信によるデータの送受を行う旨の接続要求を送信する。   The connection request unit 120a of the portable terminal 100a transmits a connection request for performing data transmission / reception by infrared communication to the portable terminal 100b. In addition, the connection request unit 120b of the mobile terminal 100b transmits a connection request for performing transmission / reception of data by infrared communication to the mobile terminal 100a.

携帯端末100aの状態切替部130aは、携帯端末100aの状態を、データの送信および受信を行う状態である送受信待機状態に切り替える。また、状態切替部130aは、接続要求部120aによって送信された接続要求に対する応答を所定の時間内に検出しなかった場合に、携帯端末100aの状態を、送受信待機状態から、他の携帯端末からデータを受信する状態である受信待機状態に切り替える。   The state switching unit 130a of the mobile terminal 100a switches the state of the mobile terminal 100a to a transmission / reception standby state in which data is transmitted and received. In addition, when the state switching unit 130a does not detect a response to the connection request transmitted by the connection request unit 120a within a predetermined time, the state switching unit 130a changes the state of the mobile terminal 100a from the transmission / reception standby state to another mobile terminal. Switch to the reception standby state where data is received.

同様に、携帯端末100bの状態切替部130bは、携帯端末100bの状態を、送受信待機状態に切り替え、接続要求部120bによって送信された接続要求に対する応答を所定の時間内に検出しなかった場合に、送受信待機状態から受信待機状態に切り替える。   Similarly, the state switching unit 130b of the mobile terminal 100b switches the state of the mobile terminal 100b to the transmission / reception standby state, and does not detect a response to the connection request transmitted by the connection request unit 120b within a predetermined time. And switch from the transmission / reception standby state to the reception standby state.

携帯端末100aのデータ送受信部140aは、接続要求部120aによって送信された接続要求に対する応答を所定の時間内に検出した場合に、特定部110aによって特定されたデータを他の携帯端末へ送信する。さらに、データ送受信部140aは、携帯端末100bの特定部110bによって特定されたデータを携帯端末100bから取得する。   When the data transmission / reception unit 140a of the mobile terminal 100a detects a response to the connection request transmitted by the connection request unit 120a within a predetermined time, the data transmission / reception unit 140a transmits the data specified by the specification unit 110a to another mobile terminal. Furthermore, the data transmission / reception unit 140a acquires the data specified by the specifying unit 110b of the mobile terminal 100b from the mobile terminal 100b.

同様に、携帯端末100bのデータ送受信部140bは、接続要求部120bによって送信された接続要求に対する応答を所定の時間内に検出した場合に、特定部110bによって特定されたデータを他の携帯端末へ送信する。さらに、データ送受信部140bは、携帯端末100aの特定部110aによって特定されたデータを携帯端末100aから取得する。   Similarly, when the data transmission / reception unit 140b of the mobile terminal 100b detects a response to the connection request transmitted by the connection request unit 120b within a predetermined time, the data specified by the specification unit 110b is transmitted to another mobile terminal. Send. Furthermore, the data transmission / reception unit 140b acquires the data specified by the specifying unit 110a of the mobile terminal 100a from the mobile terminal 100a.

ここで、図1に示した例において、まず、携帯端末100aの利用者Aは、携帯端末100bへデータを送信する旨の操作を行ったものとする。その後に、携帯端末100bの利用者Bは、携帯端末100aへデータを送信する旨の操作を行ったものとする。   Here, in the example illustrated in FIG. 1, first, it is assumed that the user A of the mobile terminal 100 a performs an operation to transmit data to the mobile terminal 100 b. After that, it is assumed that the user B of the mobile terminal 100b has performed an operation to transmit data to the mobile terminal 100a.

このような状況の場合、携帯端末100aによって赤外線通信を用いてデータを送受するためのアプリケーションが起動された後に、携帯端末100bによって赤外線通信を用いてデータを送受するためのアプリケーションが起動されることになる。すなわち、携帯端末100aの接続要求部120aが、携帯端末100bへ接続要求を送信した後に、携帯端末100bの接続要求部120bが、携帯端末100aへ接続要求を送信することになる。   In such a situation, an application for transmitting and receiving data using infrared communication is started by the mobile terminal 100b after an application for transmitting and receiving data using infrared communication is started by the mobile terminal 100a. become. That is, after the connection request unit 120a of the mobile terminal 100a transmits a connection request to the mobile terminal 100b, the connection request unit 120b of the mobile terminal 100b transmits a connection request to the mobile terminal 100a.

このとき、携帯端末100bは、赤外線通信を行うためのアプリケーションを起動する前に、接続要求を受け付けるので、携帯端末100aに対して接続応答を送信しない。したがって、携帯端末100aの状態切替部130aは、接続要求に対する応答を所定の時間内に検出しないので、携帯端末100aの状態を、送受信待機状態から受信待機状態に切り替える。この後に、携帯端末100bが携帯端末100aに対して接続要求を送信した場合、携帯端末100aは、受信待機状態であるので、携帯端末100bに対して接続応答を送信する。   At this time, since the mobile terminal 100b accepts a connection request before starting an application for performing infrared communication, the mobile terminal 100b does not transmit a connection response to the mobile terminal 100a. Therefore, since the state switching unit 130a of the mobile terminal 100a does not detect a response to the connection request within a predetermined time, the state of the mobile terminal 100a is switched from the transmission / reception standby state to the reception standby state. Thereafter, when the mobile terminal 100b transmits a connection request to the mobile terminal 100a, the mobile terminal 100a transmits a connection response to the mobile terminal 100b because it is in a reception standby state.

そして、携帯端末100bのデータ送受信部140bは、携帯端末100aとの接続が確立された後に、特定部110bによって特定されたデータを他の携帯端末へ送信する。さらに、データ送受信部140bは、携帯端末100aの特定部110aによって特定されたデータを携帯端末100aから取得する。   The data transmitting / receiving unit 140b of the mobile terminal 100b transmits the data specified by the specifying unit 110b to another mobile terminal after the connection with the mobile terminal 100a is established. Furthermore, the data transmission / reception unit 140b acquires the data specified by the specifying unit 110a of the mobile terminal 100a from the mobile terminal 100a.

[実施例1の効果]
上述してきたように、実施例1に係る赤外線通信システム1において、携帯端末は、データの送信および受信の双方を行う送受信モードを有する。そして、実施例1における携帯端末は、利用者によって送受信モードが選択された場合に、送受信待機状態に切り替え、他の携帯端末との接続が確立した後に、他の携帯端末へ送信対象のデータを送信するとともに、他の携帯端末からデータを取得する。
[Effect of Example 1]
As described above, in the infrared communication system 1 according to the first embodiment, the mobile terminal has a transmission / reception mode in which both transmission and reception of data are performed. And when the transmission / reception mode is selected by the user, the portable terminal in the first embodiment switches to the transmission / reception standby state, establishes the connection with the other portable terminal, and then transmits the data to be transmitted to the other portable terminal. While transmitting, data is acquired from another portable terminal.

これにより、実施例1における携帯端末を用いてデータを交換する場合、利用者は、送信対象のデータを選択するとともに、送受信モードを選択するだけでよい。以上のことから、実施例1に係る赤外線通信システム1は、簡易な操作を行うだけで赤外線通信によりデータを送受することができる。   Thereby, when exchanging data using the portable terminal in Example 1, the user only needs to select the transmission / reception mode as well as the data to be transmitted. From the above, the infrared communication system 1 according to the first embodiment can transmit and receive data by infrared communication only by performing a simple operation.

次に、上記実施例1において説明した赤外線通信システムについて具体例を用いて説明する。以下の実施例2では、まず、実施例2に係る赤外線通信システムの構成について説明し、次に、実施例2における携帯端末の構成について説明し、次に、データ送受信処理手順について説明し、最後に、実施例1の効果について説明する。   Next, the infrared communication system described in the first embodiment will be described using a specific example. In the following second embodiment, the configuration of the infrared communication system according to the second embodiment will be described first, then the configuration of the mobile terminal in the second embodiment will be described, then the data transmission / reception processing procedure will be described, and finally Next, effects of the first embodiment will be described.

[実施例2に係る赤外線通信システムの構成]
まず、図2を用いて、実施例2に係る赤外線通信システムの構成について説明する。図2は、実施例2に係る赤外線通信システムの構成例を示す図である。図2に示すように、実施例2に係る赤外線通信システム2は、携帯端末200aと携帯端末200bとを有する。
[Configuration of Infrared Communication System According to Second Embodiment]
First, the configuration of the infrared communication system according to the second embodiment will be described with reference to FIG. FIG. 2 is a diagram illustrating a configuration example of the infrared communication system according to the second embodiment. As shown in FIG. 2, the infrared communication system 2 according to the second embodiment includes a mobile terminal 200a and a mobile terminal 200b.

図2に示すように、携帯端末200aは、赤外線通信を行う場合に、利用者に対して、他の携帯端末へデータを送信する送信モード、他の携帯端末からデータを受信する受信モード、他の携帯端末との間でデータを送受信する送受信モードのいずれかを選択させる。同様に、携帯端末200bは、赤外線通信を行う場合に、利用者に対して、送信モード、受信モード、送受信モードのいずれかを選択させる。   As shown in FIG. 2, the mobile terminal 200a, when performing infrared communication, transmits to the user a transmission mode for transmitting data to another mobile terminal, a reception mode for receiving data from another mobile terminal, and the like. One of the transmission / reception modes for transmitting / receiving data to / from the portable terminal is selected. Similarly, the portable terminal 200b allows the user to select one of a transmission mode, a reception mode, and a transmission / reception mode when performing infrared communication.

さらに、携帯端末200aおよび200bは、他方の携帯端末へデータを送信する場合、送信対象のデータを選択させる。図2に示した例では、携帯端末200aの利用者Aは、例えば、(1)携帯端末200aの電話番号やメールアドレスを含む電話帳データや、(2)画像データ、(3)音声データなどを選択する。同様に、携帯端末200bの利用者Bは、電話帳データなどを選択する。   Furthermore, when transmitting data to the other mobile terminal, the mobile terminals 200a and 200b select data to be transmitted. In the example shown in FIG. 2, the user A of the portable terminal 200a, for example, (1) phone book data including the telephone number and mail address of the portable terminal 200a, (2) image data, (3) voice data, etc. Select. Similarly, the user B of the portable terminal 200b selects phone book data and the like.

ここで、携帯端末200aの利用者Aは、携帯端末200bに対して、携帯端末200aの電話帳データを送信する操作を行うとともに、送受信モードを選択したものとする。そして、その後に、携帯端末200bの利用者Bは、携帯端末200aに対して、携帯端末200bの電話帳データを送信する操作を行うとともに、送受信モードを選択したものとする。   Here, it is assumed that the user A of the mobile terminal 200a performs an operation of transmitting the phone book data of the mobile terminal 200a to the mobile terminal 200b and selects the transmission / reception mode. And after that, the user B of the portable terminal 200b performs operation which transmits the telephone directory data of the portable terminal 200b with respect to the portable terminal 200a, and shall select the transmission / reception mode.

かかる場合、携帯端末200aは、携帯端末200bに対して接続要求を送信するが、携帯端末200bから接続応答を受信しないので、受信待機状態になる。そして、携帯端末200bは、携帯端末200aに対して接続要求を送信して、携帯端末200aから接続応答を受信する。   In such a case, the mobile terminal 200a transmits a connection request to the mobile terminal 200b, but does not receive a connection response from the mobile terminal 200b, and thus enters a reception standby state. Then, the mobile terminal 200b transmits a connection request to the mobile terminal 200a and receives a connection response from the mobile terminal 200a.

続いて、携帯端末200bは、利用者Bによって選択された携帯端末200bの電話帳データを、携帯端末200aへ送信する。さらに、携帯端末200bは、利用者Aによって選択された携帯端末200aの電話帳データを、携帯端末200aから取得する。   Subsequently, the mobile terminal 200b transmits the phone book data of the mobile terminal 200b selected by the user B to the mobile terminal 200a. Furthermore, the mobile terminal 200b acquires the phone book data of the mobile terminal 200a selected by the user A from the mobile terminal 200a.

これにより、携帯端末200aは、利用者Bによって選択された電話帳データを携帯端末200bから受信することができる。また、携帯端末200bは、利用者Aによって選択された電話帳データを携帯携帯端末200aから受信することができる。すなわち、実施例2に係る赤外線通信システム2では、利用者AおよびBが送信対象のデータを選択するとともに、送受信モードを選択するだけで、携帯端末200aと携帯端末200bとの間で相互にデータを送受することができる。   Thereby, the portable terminal 200a can receive the telephone directory data selected by the user B from the portable terminal 200b. In addition, the mobile terminal 200b can receive the phone book data selected by the user A from the mobile mobile terminal 200a. In other words, in the infrared communication system 2 according to the second embodiment, the users A and B select data to be transmitted and only select the transmission / reception mode, so that data can be transmitted between the mobile terminal 200a and the mobile terminal 200b. Can be sent and received.

[実施例2における携帯端末の構成]
次に、図3を用いて、実施例2における携帯端末の構成について説明する。図3は、実施例2における携帯端末200の構成例を示す図である。なお、図3に示した携帯端末200は、図2に示した携帯端末200aおよび200bに対応する。図3に示すように、携帯端末200は、入力部210と、表示部220と、データ記憶部230と、無線部240と、制御部250とを有する。
[Configuration of Mobile Terminal in Embodiment 2]
Next, the configuration of the mobile terminal according to the second embodiment will be described with reference to FIG. FIG. 3 is a diagram illustrating a configuration example of the mobile terminal 200 according to the second embodiment. Note that the mobile terminal 200 shown in FIG. 3 corresponds to the mobile terminals 200a and 200b shown in FIG. As illustrated in FIG. 3, the mobile terminal 200 includes an input unit 210, a display unit 220, a data storage unit 230, a wireless unit 240, and a control unit 250.

入力部210は、各種情報や操作指示を入力するための入力デバイスであり、例えば、数字および文字等を入力するテンキーや、メニュー選択および表示スクロール等に用いられるカーソルキーなどである。表示部220は、各種情報を出力する出力デバイスであり、例えば、液晶ディスプレイやスピーカである。   The input unit 210 is an input device for inputting various types of information and operation instructions, and includes, for example, a numeric keypad for inputting numbers and characters, a cursor key used for menu selection, display scrolling, and the like. The display unit 220 is an output device that outputs various types of information, such as a liquid crystal display or a speaker.

データ記憶部230は、各種データを記憶する記憶デバイスである。例えば、データ記憶部230は、携帯端末200の電話帳データや、図示しないカメラによって撮影された画像データなどを記憶する。   The data storage unit 230 is a storage device that stores various data. For example, the data storage unit 230 stores telephone directory data of the mobile terminal 200, image data taken by a camera (not shown), and the like.

無線部240は、他の携帯端末との間で各種データを送受する処理を制御する。例えば、無線部240は、他の携帯端末に対して接続要求を送信したり、電話帳データや画像データなどを赤外線通信により送信したりする。また、例えば、無線部240は、他の携帯端末から、接続要求を受信したり、電話帳データや画像データなどを赤外線通信により受信したりする。   The wireless unit 240 controls processing for transmitting / receiving various data to / from other portable terminals. For example, the wireless unit 240 transmits a connection request to another mobile terminal, or transmits telephone book data, image data, or the like by infrared communication. Further, for example, the wireless unit 240 receives a connection request from another mobile terminal, or receives telephone book data, image data, or the like by infrared communication.

制御部250は、各種の算出処理手順などを規定したプログラムを記憶するための内部メモリを有し、種々の算出処理を実行する。実施例2における制御部250は、図3に示すように、特定部251と、接続要求部252と、状態切替部253と、データ送受信部254とを有する。   The control unit 250 has an internal memory for storing a program that defines various calculation processing procedures and the like, and executes various calculation processes. As illustrated in FIG. 3, the control unit 250 according to the second embodiment includes a specifying unit 251, a connection request unit 252, a state switching unit 253, and a data transmission / reception unit 254.

特定部251は、赤外線通信を用いて他の携帯端末へ送信するデータを特定する。例えば、特定部251は、利用者によって、携帯端末200の電話帳データを他の携帯端末へ送信する旨の操作が行われた場合に、送信対象のデータとして、かかる電話帳データを特定する。   The specifying unit 251 specifies data to be transmitted to another mobile terminal using infrared communication. For example, when the user performs an operation for transmitting the phone book data of the mobile terminal 200 to another mobile terminal, the specifying unit 251 specifies the phone book data as data to be transmitted.

なお、利用者によって他の携帯端末へデータを送信する旨の操作が行われた場合、制御部250は、赤外線通信を用いてデータを送受するためのアプリケーションを起動する。そして、制御部250は、赤外線通信を行うモードを利用者に選択させるための画面(以下、「通信モード選択画面」と言う)を表示部220に表示制御する。   Note that when an operation to transmit data to another mobile terminal is performed by the user, the control unit 250 activates an application for transmitting and receiving data using infrared communication. Then, the control unit 250 controls the display unit 220 to display a screen (hereinafter referred to as “communication mode selection screen”) for allowing the user to select a mode for performing infrared communication.

図4に、通信モード選択画面の一例を示す。図4に示すように、制御部250は、通信モード選択画面上に、通信モードとして、送信モードと受信モードと送受信モードとを表示制御する。なお、制御部250は、利用者によってデータを送信する旨の操作が行われた場合、受信モードを選択できないようにしてもよい。   FIG. 4 shows an example of the communication mode selection screen. As illustrated in FIG. 4, the control unit 250 controls display of a transmission mode, a reception mode, and a transmission / reception mode as communication modes on the communication mode selection screen. Note that the control unit 250 may be configured not to select the reception mode when an operation to transmit data is performed by the user.

接続要求部252は、他の携帯端末に対して、接続要求を送信する。具体的には、接続要求部252は、通信モード選択画面上で送受信モードが選択された場合、データ送信およびデータ受信の双方を行う旨の接続要求を送信する。また、接続要求部252は、通信モード選択画面上で送信モードが選択された場合、データ送信を行う旨の接続要求を送信し、通信モード選択画面上で受信モードが選択された場合、データ受信を行う旨の接続要求を送信する。   The connection request unit 252 transmits a connection request to another mobile terminal. Specifically, when the transmission / reception mode is selected on the communication mode selection screen, the connection request unit 252 transmits a connection request for performing both data transmission and data reception. The connection request unit 252 transmits a connection request for data transmission when the transmission mode is selected on the communication mode selection screen, and receives the data when the reception mode is selected on the communication mode selection screen. Send a connection request to perform.

状態切替部253は、携帯端末200の状態を、送信待機状態、受信待機状態、送受信待機状態のいずれかに切り替える。具体的には、状態切替部253は、通信モード選択画面上で送受信モードが選択された場合、携帯端末200の状態を送受信待機状態に切り替える。また、状態切替部253は、通信モード選択画面上で送信モードが選択された場合、携帯端末200の状態を送信待機状態に切り替え、通信モード選択画面上で受信モードが選択された場合、携帯端末200の状態を受信待機状態に切り替える。   The state switching unit 253 switches the state of the mobile terminal 200 to any one of a transmission standby state, a reception standby state, and a transmission / reception standby state. Specifically, when the transmission / reception mode is selected on the communication mode selection screen, the state switching unit 253 switches the state of the mobile terminal 200 to the transmission / reception standby state. In addition, when the transmission mode is selected on the communication mode selection screen, the state switching unit 253 switches the state of the portable terminal 200 to the transmission standby state, and when the reception mode is selected on the communication mode selection screen, the portable terminal The state of 200 is switched to the reception standby state.

また、状態切替部253は、送受信待機状態に切り替えた後に、接続要求部252によって送信された接続要求に対する応答を所定の時間内に検出しなかった場合、携帯端末200の状態を、送受信待機状態から受信待機状態に切り替える。   If the state switching unit 253 does not detect a response to the connection request transmitted by the connection request unit 252 within a predetermined time after switching to the transmission / reception standby state, the state switching unit 253 changes the state of the mobile terminal 200 to the transmission / reception standby state. To the reception standby state.

データ送受信部254は、接続要求部252によって送信された接続要求に対する応答を所定の時間内に検出した場合に、特定部251によって特定されたデータを他の携帯端末へ送信する。さらに、データ送受信部254は、他の携帯端末の特定部によって特定されたデータを他の携帯端末から取得する。   When the data transmission / reception unit 254 detects a response to the connection request transmitted by the connection request unit 252 within a predetermined time, the data transmission / reception unit 254 transmits the data specified by the specification unit 251 to another portable terminal. Furthermore, the data transmitting / receiving unit 254 acquires data specified by the specifying unit of another mobile terminal from the other mobile terminal.

[実施例2に係る赤外線通信システムによるデータ送受信処理]
次に、図5−1および図5−2を用いて、実施例2に係る赤外線通信システム2によるデータ送受信処理について説明する。図5−1および図5−2は、実施例2に係る赤外線通信システム2によるデータ送受信処理を示すシーケンス図である。
[Data Transmission / Reception Processing by Infrared Communication System According to Embodiment 2]
Next, data transmission / reception processing by the infrared communication system 2 according to the second embodiment will be described with reference to FIGS. FIG. 5A and FIG. 5B are sequence diagrams illustrating data transmission / reception processing by the infrared communication system 2 according to the second embodiment.

なお、図5−1および図5−2では、3台の携帯端末200a、200b、200cを例に挙げてデータ送受信処理について説明する。また、図5−1および図5−2に示した携帯端末200a、200b、200cの構成は、いずれも図3に示した携帯端末200の構成と同様であるものとする。   5A and 5B, the data transmission / reception process will be described by taking three mobile terminals 200a, 200b, and 200c as examples. In addition, the configurations of the mobile terminals 200a, 200b, and 200c illustrated in FIGS. 5-1 and 5-2 are all the same as the configuration of the mobile terminal 200 illustrated in FIG.

図5−1および図5−2に示した例において、携帯端末200aは、利用者から、携帯端末200bおよび200cへデータを送信する旨の操作を受け付けたものとする。かかる場合に、携帯端末200aの制御部250は、表示部220に通信モード選択画面を表示制御する。ここでは、利用者は、通信モード選択画面上で送受信モードを選択したものとする。   In the example illustrated in FIGS. 5A and 5B, it is assumed that the mobile terminal 200a receives an operation for transmitting data from the user to the mobile terminals 200b and 200c. In such a case, the control unit 250 of the mobile terminal 200a controls the display of the communication mode selection screen on the display unit 220. Here, it is assumed that the user has selected the transmission / reception mode on the communication mode selection screen.

かかる場合、携帯端末200aの制御部250は、送受信アプリを起動する(ステップS101)。ここで言う「送受信アプリ」とは、赤外線通信を用いて、他の携帯端末へデータを送信するとともに、他の携帯端末からデータを受信する処理を実現するアプリケーションを示す。   In such a case, the control unit 250 of the mobile terminal 200a activates the transmission / reception application (step S101). The “transmission / reception application” here refers to an application that transmits data to another mobile terminal and receives data from the other mobile terminal using infrared communication.

このとき、携帯端末200aの特定部251は、利用者によって選択されたデータを送信対象のデータとして特定する。また、携帯端末200aの状態切替部253は、携帯端末200aの状態を送受信待機状態に切り替える。   At this time, the specifying unit 251 of the mobile terminal 200a specifies data selected by the user as data to be transmitted. In addition, the state switching unit 253 of the mobile terminal 200a switches the state of the mobile terminal 200a to the transmission / reception standby state.

続いて、携帯端末200aの接続要求部252は、データ送信およびデータ受信の双方を行う旨の接続要求を、近傍に位置する携帯端末200bおよび200cへ送信する(ステップS102)。   Subsequently, the connection request unit 252 of the mobile terminal 200a transmits a connection request for performing both data transmission and data reception to the mobile terminals 200b and 200c located in the vicinity (step S102).

携帯端末200aから接続要求を受信した携帯端末200bは、接続要求を受信したことを示す情報を表示部220に表示制御する(ステップS103)。同様に、携帯端末200cは、接続要求を受信したことを示す情報を表示部220に表示制御する(ステップS104)。   The mobile terminal 200b that has received the connection request from the mobile terminal 200a controls display on the display unit 220 of information indicating that the connection request has been received (step S103). Similarly, the portable terminal 200c controls to display information indicating that the connection request has been received on the display unit 220 (step S104).

図5−1および図5−2に示した例では、携帯端末200bおよび200cは、赤外線通信を実現するためのアプリケーションを起動しておらず、受信待機状態でないため、接続応答を携帯端末200aへ送信しない。このため、携帯端末200aの状態切替部253は、携帯端末200aの状態を、送受信待機状態から受信待機状態に切り替える(ステップS105)。これにより、携帯端末200aは、他の携帯端末からデータを受信することができる状態となる。   In the example illustrated in FIG. 5A and FIG. 5B, the mobile terminals 200b and 200c have not started an application for realizing infrared communication and are not in a reception standby state, and therefore a connection response is sent to the mobile terminal 200a. Do not send. Therefore, the state switching unit 253 of the mobile terminal 200a switches the state of the mobile terminal 200a from the transmission / reception standby state to the reception standby state (step S105). Thereby, the mobile terminal 200a is in a state where it can receive data from other mobile terminals.

続いて、携帯端末200bは、利用者から、携帯端末200aへデータを送信する旨の操作を受け付けるとともに、通信モード選択画面上で送受信モードが選択されたものとする。かかる場合、携帯端末200bの制御部250は、送受信アプリを起動する(ステップS106)。続いて、携帯端末200bの接続要求部252は、携帯端末200aに対して、データ送信およびデータ受信の双方を行う旨の接続要求を送信する(ステップS107)。   Subsequently, it is assumed that the mobile terminal 200b receives an operation for transmitting data from the user to the mobile terminal 200a, and the transmission / reception mode is selected on the communication mode selection screen. In such a case, the control unit 250 of the mobile terminal 200b activates the transmission / reception application (step S106). Subsequently, the connection request unit 252 of the mobile terminal 200b transmits a connection request for performing both data transmission and data reception to the mobile terminal 200a (step S107).

携帯端末200bから接続要求を受信した携帯端末200aは、受信待機状態であるので、携帯端末200bに対して、接続応答を送信する(ステップS108)。これにより、携帯端末200aと携帯端末200bとの間には、赤外線通信を行うための接続が確立する。   Since the mobile terminal 200a that has received the connection request from the mobile terminal 200b is in a reception standby state, it transmits a connection response to the mobile terminal 200b (step S108). Thereby, the connection for performing infrared communication is established between the portable terminal 200a and the portable terminal 200b.

その後、携帯端末200cは、利用者から、データを携帯端末200aへ送信する旨の操作を受け付けるとともに、通信モード選択画面上で送受信モードが選択されたものとする。かかる場合、携帯端末200cの制御部250は、送受信アプリを起動する(ステップS109)。続いて、携帯端末200cの接続要求部252は、携帯端末200aに対して、データ送信およびデータ受信の双方を行う旨の接続要求を送信する(ステップS110)。   Thereafter, it is assumed that the mobile terminal 200c receives an operation for transmitting data from the user to the mobile terminal 200a and the transmission / reception mode is selected on the communication mode selection screen. In such a case, the control unit 250 of the mobile terminal 200c activates the transmission / reception application (step S109). Subsequently, the connection request unit 252 of the mobile terminal 200c transmits a connection request for performing both data transmission and data reception to the mobile terminal 200a (step S110).

携帯端末200cから接続要求を受信した携帯端末200aは、既に携帯端末200bとの間で接続が確立しているため、接続できない旨のエラー応答を携帯端末200cへ送信する(ステップS111)。エラー応答を受信した携帯端末200cは、スリープタイマに所定の値を設定する(ステップS112)。例えば、携帯端末200cは、スリープタイマに5[秒]といった値を設定し、5秒後に接続要求を携帯端末200aへ再度送信する処理を実現する。   The mobile terminal 200a that has received the connection request from the mobile terminal 200c transmits an error response to the effect that it cannot be connected to the mobile terminal 200c because the connection has already been established with the mobile terminal 200b (step S111). The mobile terminal 200c that has received the error response sets a predetermined value in the sleep timer (step S112). For example, the mobile terminal 200c implements a process of setting a value such as 5 [seconds] in the sleep timer and transmitting the connection request again to the mobile terminal 200a after 5 seconds.

このように、実施例1における携帯端末200は、既に他の携帯端末との間で赤外線通信による接続が確立している場合、新たに接続要求を受信してもエラー応答を送信する。このため、実施例1における携帯端末200は、複数の携帯端末から接続要求を受信しても混信することなくデータを送受することができる。   As described above, the portable terminal 200 according to the first embodiment transmits an error response even when a connection request is newly received when a connection by infrared communication is already established with another portable terminal. For this reason, even if the portable terminal 200 in Example 1 receives a connection request from a some portable terminal, it can transmit / receive data, without interference.

続いて、携帯端末200bのデータ送受信部254は、ステップS103において特定部251によって特定された送信対象のデータを所定のパケット単位に分割して、分割した数ごとに、分割したデータを含むPUTコマンドを携帯端末200aへ送信する(ステップS113およびS115)。そして、携帯端末200aは、携帯端末200bからPUTコマンドを受信するたびに、応答を携帯端末200bへ送信する(ステップS114およびS116)。   Subsequently, the data transmitting / receiving unit 254 of the mobile terminal 200b divides the transmission target data specified by the specifying unit 251 in step S103 into predetermined packet units, and includes a PUT command including the divided data for each divided number. Is transmitted to the portable terminal 200a (steps S113 and S115). And every time the portable terminal 200a receives the PUT command from the portable terminal 200b, it transmits a response to the portable terminal 200b (steps S114 and S116).

なお、図5−1および図5−2に示した例では、携帯端末200bのデータ送受信部254は、送信対象のデータを2回に分けて携帯端末200aへ送信している。しかし、データ送受信部254は、送信対象のデータのサイズによっては、データを分割せずに送信したり、3回以上に分けてデータを送信したりする。   In the example illustrated in FIGS. 5A and 5B, the data transmission / reception unit 254 of the mobile terminal 200b transmits the transmission target data to the mobile terminal 200a in two steps. However, depending on the size of the data to be transmitted, the data transmission / reception unit 254 transmits the data without dividing it or transmits the data in three or more times.

携帯端末200bからデータを受信した携帯端末200aは、受信したデータを保存する(ステップS117)。例えば、携帯端末200aは、受信したデータを、データ記憶部230に記憶させる。   The mobile terminal 200a that has received the data from the mobile terminal 200b stores the received data (step S117). For example, the mobile terminal 200a stores the received data in the data storage unit 230.

続いて、図5−1および図5−2に示した例では、携帯端末200cは、タイマが発動したので(ステップS118)、接続要求を携帯端末200aへ再度送信する(ステップS119)。ここでは、携帯端末200aは、携帯端末200bとの間で接続が確立しているため、エラー応答を携帯端末200cへ送信する(ステップS120)。エラー応答を受信した携帯端末200cは、スリープタイマに所定の値を設定する(ステップS121)。   Subsequently, in the example illustrated in FIGS. 5A and 5B, since the timer is activated (Step S118), the portable terminal 200c transmits the connection request to the portable terminal 200a again (Step S119). Here, since the connection is established with the mobile terminal 200b, the mobile terminal 200a transmits an error response to the mobile terminal 200c (step S120). The mobile terminal 200c that has received the error response sets a predetermined value in the sleep timer (step S121).

続いて、携帯端末200bのデータ送受信部254は、GETコマンドを携帯端末200aへ送信する(ステップS122)。GETコマンドを受信した携帯端末200aのデータ送受信部254は、ステップS101において特定部251によって特定された送信対象のデータを所定のパケット単位に分割して、分割した数ごとに、分割したデータを含む応答を携帯端末200bへ送信する(ステップS123およびS125)。そして、携帯端末200bは、携帯端末200aから全てのデータを受信するまで、GETコマンドを携帯端末200aへ送信する(ステップS122およびS124)。携帯端末200aからデータを受信した携帯端末200bは、受信したデータを保存する(ステップS126)。   Subsequently, the data transmission / reception unit 254 of the mobile terminal 200b transmits a GET command to the mobile terminal 200a (step S122). The data transmitting / receiving unit 254 of the mobile terminal 200a that has received the GET command divides the transmission target data specified by the specifying unit 251 in step S101 into predetermined packet units, and includes the divided data for each divided number. A response is transmitted to the portable terminal 200b (steps S123 and S125). Then, the mobile terminal 200b transmits a GET command to the mobile terminal 200a until all data is received from the mobile terminal 200a (steps S122 and S124). The mobile terminal 200b that has received the data from the mobile terminal 200a stores the received data (step S126).

続いて、携帯端末200bは、携帯端末200aとの間でデータの送受が終了した後に、接続を切断する旨の要求を携帯端末200aへ送信する(ステップS127)。切断要求を受信した携帯端末200aは、接続を切断する旨の応答を携帯端末200bへ送信する(ステップS128)。   Subsequently, after the data transmission / reception with the mobile terminal 200a is completed, the mobile terminal 200b transmits a request for disconnecting the connection to the mobile terminal 200a (step S127). The mobile terminal 200a that has received the disconnection request transmits a response to disconnect the connection to the mobile terminal 200b (step S128).

そして、携帯端末200aは、続けて通信を行うか否かを利用者に対して問い合わせる(ステップS129)。例えば、携帯端末200aは、「続いて赤外線通信を行いますか?」といった情報を表示部220に表示制御することにより、利用者に対して問い合わせる。なお、ここでは、利用者によって通信を継続して行うことが選択されたものとする。かかる場合に、携帯端末200aの接続要求部252は、データ送信およびデータ受信の双方を行う旨の接続要求を、近傍に位置する携帯端末200bおよび200cへ送信する(ステップS130)。   Then, the mobile terminal 200a inquires of the user whether or not to continue communication (step S129). For example, the mobile terminal 200a inquires of the user by controlling display of information such as “Do you want to perform infrared communication?” On the display unit 220. Here, it is assumed that the user has selected to continue communication. In such a case, the connection request unit 252 of the mobile terminal 200a transmits a connection request for performing both data transmission and data reception to the mobile terminals 200b and 200c located in the vicinity (step S130).

携帯端末200aから接続要求を受信した携帯端末200bは、データの受信処理が終了しているので、接続応答を携帯端末200aへ送信しない。一方、携帯端末200cは、接続要求を受信した契機に、スリープ状態を解除する(ステップS131)。ここでは、携帯端末200cは、受信待機状態でないので、接続応答を携帯端末200aへ送信しない。したがって、携帯端末200aの状態切替部253は、接続要求を送信してから所定の時間が経過した場合に、タイムアウトを検出して、携帯端末200aの状態を送受信待機状態から受信待機状態に切り替える(ステップS132)。   The mobile terminal 200b that has received the connection request from the mobile terminal 200a does not transmit a connection response to the mobile terminal 200a because the data reception process has been completed. On the other hand, the mobile terminal 200c releases the sleep state when receiving the connection request (step S131). Here, since the mobile terminal 200c is not in the reception standby state, the connection response is not transmitted to the mobile terminal 200a. Therefore, the state switching unit 253 of the mobile terminal 200a detects a timeout when a predetermined time has elapsed after transmitting the connection request, and switches the state of the mobile terminal 200a from the transmission / reception standby state to the reception standby state ( Step S132).

スリープ状態を解除した携帯端末200cの接続要求部252は、接続要求を携帯端末200aへ再度送信する(ステップS133)。ここでは、携帯端末200aは、携帯端末200bとの接続が切断しているため、接続応答を携帯端末200cへ送信する(ステップS134)。これにより、携帯端末200aと携帯端末200cとの間には、赤外線通信を行うための接続が確立する。   The connection request unit 252 of the mobile terminal 200c that has released the sleep state transmits the connection request to the mobile terminal 200a again (step S133). Here, since the connection with the mobile terminal 200b is disconnected, the mobile terminal 200a transmits a connection response to the mobile terminal 200c (step S134). Thereby, the connection for performing infrared communication is established between the portable terminal 200a and the portable terminal 200c.

続いて、携帯端末200cのデータ送受信部254は、ステップS104において特定部251によって特定された送信対象のデータを所定のパケット単位に分割して、分割した数ごとに、分割したデータを含むPUTコマンドを携帯端末200aへ送信する(ステップS135およびS137)。そして、携帯端末200aは、携帯端末200cからPUTコマンドを受信するたびに、応答を携帯端末200cへ送信する(ステップS136およびS138)。そして、携帯端末200aは、携帯端末200cから受信したデータを保存する(ステップS139)。   Subsequently, the data transmitting / receiving unit 254 of the mobile terminal 200c divides the transmission target data specified by the specifying unit 251 in step S104 into predetermined packet units, and includes a PUT command including the divided data for each divided number. Is transmitted to the portable terminal 200a (steps S135 and S137). And every time the portable terminal 200a receives the PUT command from the portable terminal 200c, the portable terminal 200a transmits a response to the portable terminal 200c (steps S136 and S138). And the portable terminal 200a preserve | saves the data received from the portable terminal 200c (step S139).

続いて、携帯端末200cのデータ送受信部254は、携帯端末200aから全てのデータを受信するまで、GETコマンドを携帯端末200aへ送信する(ステップS140およびS142)。GETコマンドを受信した携帯端末200aのデータ送受信部254は、ステップS101において特定部251によって特定された送信対象のデータを所定のパケット単位に分割して、分割した数ごとに、分割したデータを含む応答を携帯端末200cへ送信する(ステップS141およびS143)。そして、携帯端末200aからデータを受信した携帯端末200cは、受信したデータを保存する(ステップS144)。   Subsequently, the data transmission / reception unit 254 of the mobile terminal 200c transmits a GET command to the mobile terminal 200a until all data is received from the mobile terminal 200a (steps S140 and S142). The data transmitting / receiving unit 254 of the mobile terminal 200a that has received the GET command divides the transmission target data specified by the specifying unit 251 in step S101 into predetermined packet units, and includes the divided data for each divided number. A response is transmitted to the portable terminal 200c (steps S141 and S143). And the portable terminal 200c which received data from the portable terminal 200a preserve | saves the received data (step S144).

続いて、携帯端末200cは、携帯端末200aとの間でデータの送受が終了した後に、接続を切断する旨の要求を携帯端末200aへ送信する(ステップS145)。切断要求を受信した携帯端末200aは、接続を切断する旨の応答を携帯端末200cへ送信する(ステップS146)。   Subsequently, after the data transmission / reception with the mobile terminal 200a is completed, the mobile terminal 200c transmits a request to disconnect the connection to the mobile terminal 200a (step S145). The mobile terminal 200a that has received the disconnection request transmits a response to disconnect the connection to the mobile terminal 200c (step S146).

この後、携帯端末200aは、続けて通信を行うか否かを利用者に対して問い合わせる。そして、利用者によって通信を継続して行わないことが選択された場合、携帯端末200aは、処理を終了する。   Thereafter, the mobile terminal 200a inquires of the user whether or not to continue communication. When the user selects not to continue communication, the mobile terminal 200a ends the process.

[実施例2における携帯端末によるデータ送受信処理]
次に、図6を用いて、実施例2における携帯端末200によるデータ送受信処理について説明する。図6は、実施例2における携帯端末200によるデータ送受信処理手順を示すフローチャートである。なお、ここでは、2台の携帯端末200a、200bによるデータ送受信処理手順について説明する。
[Data Transmission / Reception Processing by Portable Terminal in Example 2]
Next, data transmission / reception processing by the mobile terminal 200 in the second embodiment will be described with reference to FIG. FIG. 6 is a flowchart illustrating a data transmission / reception processing procedure performed by the mobile terminal 200 according to the second embodiment. Here, a data transmission / reception processing procedure by the two portable terminals 200a and 200b will be described.

図6に示すように、携帯端末200aは、利用者によって赤外線通信を行う旨の操作が行われた場合(ステップS201肯定)、表示部220に通信モード選択画面を表示制御する(ステップS202)。ここでは、利用者は、通信モード選択画面上で、送受信モードを選択したものとする。かかる場合に、携帯端末200aは、送受信アプリを起動して、携帯端末200aの状態を送受信待機状態に切り替える(ステップS203)。   As illustrated in FIG. 6, when an operation for performing infrared communication is performed by the user (Yes in Step S201), the mobile terminal 200a controls to display a communication mode selection screen on the display unit 220 (Step S202). Here, it is assumed that the user has selected the transmission / reception mode on the communication mode selection screen. In such a case, the mobile terminal 200a activates the transmission / reception application and switches the state of the mobile terminal 200a to the transmission / reception standby state (step S203).

続いて、携帯端末200aは、利用者から、携帯端末200bへ送信するデータを選択する旨の操作を受け付ける(ステップS204)。このとき、携帯端末200aの特定部251は、利用者によって選択されたデータを送信対象のデータとして特定する。   Subsequently, the mobile terminal 200a accepts an operation for selecting data to be transmitted to the mobile terminal 200b from the user (step S204). At this time, the specifying unit 251 of the mobile terminal 200a specifies data selected by the user as data to be transmitted.

なお、図6では、通信モード選択画面において通信モードが選択された後に、送信対象のデータを選択する操作を受け付ける例を示した。しかし、携帯端末200aは、送信対象のデータを選択する操作を受け付けた後に、通信モード選択画面を表示制御して、利用者に通信モードを選択させてもよい。   FIG. 6 illustrates an example in which an operation for selecting data to be transmitted is received after the communication mode is selected on the communication mode selection screen. However, after receiving an operation for selecting data to be transmitted, the mobile terminal 200a may display the communication mode selection screen and cause the user to select a communication mode.

同様にして、携帯端末200bは、利用者によって赤外線通信を行う旨の操作が行われた場合(ステップS205肯定)、通信モード選択画面を表示制御する(ステップS206)。ここでは、利用者は、通信モード選択画面上で、送受信モードを選択したものとする。かかる場合に、携帯端末200bは、送受信アプリを起動して、携帯端末200bの状態を送受信待機状態に切り替える(ステップS207)。続いて、携帯端末200bは、利用者から、携帯端末200aへ送信するデータを選択する旨の操作を受け付ける(ステップS208)。このとき、携帯端末200bの特定部251は、利用者によって選択されたデータを送信対象のデータとして特定する。   Similarly, when an operation for performing infrared communication is performed by the user (Yes at Step S205), the mobile terminal 200b controls display of the communication mode selection screen (Step S206). Here, it is assumed that the user has selected the transmission / reception mode on the communication mode selection screen. In such a case, the mobile terminal 200b activates the transmission / reception application and switches the state of the mobile terminal 200b to the transmission / reception standby state (step S207). Subsequently, the mobile terminal 200b accepts an operation for selecting data to be transmitted to the mobile terminal 200a from the user (step S208). At this time, the specifying unit 251 of the mobile terminal 200b specifies data selected by the user as data to be transmitted.

そして、最初に送受信アプリを起動した携帯端末200aは、携帯端末200bへ接続要求を送信する(ステップS209)。そして、携帯端末200aは、かかる接続要求に対する接続応答を受信するまで待ち状態となる。ここでは、携帯端末200bは、受信待機状態でないため、携帯端末200aに対して接続応答を送信しない。したがって、携帯端末200aの状態切替部253は、接続要求を送信してから所定の時間が経過した場合に(ステップS210否定)、タイムアウトを検出して、携帯端末200aの状態を送受信待機状態から受信待機状態に切り替える(ステップS211)。   And the portable terminal 200a which started the transmission / reception application first transmits a connection request to the portable terminal 200b (step S209). And the portable terminal 200a will be in a waiting state until the connection response with respect to this connection request is received. Here, since the mobile terminal 200b is not in a reception standby state, the mobile terminal 200b does not transmit a connection response to the mobile terminal 200a. Accordingly, the state switching unit 253 of the mobile terminal 200a detects a timeout and receives the state of the mobile terminal 200a from the transmission / reception standby state when a predetermined time has elapsed since the connection request was transmitted (No in step S210). Switch to the standby state (step S211).

続いて、携帯端末200bは、携帯端末200aへ接続要求を送信する(ステップS212)。携帯端末200aは、受信待機状態であるので、携帯端末200bへ接続応答を送信する(ステップS213)。そして、携帯端末200aおよび200bは、図5−1および図5−2に示した例のように、PUTコマンドやGETコマンドを送受することにより、送信対象のデータを相互に送受する(ステップS214)。   Subsequently, the mobile terminal 200b transmits a connection request to the mobile terminal 200a (step S212). Since the mobile terminal 200a is in a reception standby state, the mobile terminal 200a transmits a connection response to the mobile terminal 200b (step S213). Then, as in the example shown in FIGS. 5A and 5B, the mobile terminals 200a and 200b send and receive data to be transmitted to each other by sending and receiving PUT commands and GET commands (step S214). .

続いて、携帯端末200bは、携帯端末200aとの間でデータの送受が終了した後に、接続を切断する旨の要求を携帯端末200aへ送信する(ステップS215)。切断要求を受信した携帯端末200aは、接続を切断する旨の応答を携帯端末200bへ送信する(ステップS216)。   Subsequently, after the data transmission / reception with the mobile terminal 200a is completed, the mobile terminal 200b transmits a request to disconnect the connection to the mobile terminal 200a (step S215). The mobile terminal 200a that has received the disconnection request transmits a response to disconnect the connection to the mobile terminal 200b (step S216).

[実施例2の効果]
上述してきたように、実施例2に係る赤外線通信システム2において、複数の携帯端末は、送受信モードが選択された場合に、相互に接続要求を送信する。そして、接続が確立した2台の携帯端末は、PUTコマンドおよびGETコマンドを用いて、送信対象のデータを相互に送受する。
[Effect of Example 2]
As described above, in the infrared communication system 2 according to the second embodiment, when a transmission / reception mode is selected, a plurality of portable terminals transmit a connection request to each other. Then, the two portable terminals that have established the connection send and receive data to be transmitted to each other using the PUT command and the GET command.

これにより、実施例2における携帯端末200を用いてデータを交換する場合、利用者は、送信対象のデータを選択するとともに、携帯端末を送受信モードに設定するだけでよい。以上のことから、実施例2に係る赤外線通信システム2は、利用者が簡易な操作を行うだけで赤外線通信によりデータを送受することができる。   Thereby, when exchanging data using the portable terminal 200 according to the second embodiment, the user only needs to select data to be transmitted and set the portable terminal to the transmission / reception mode. From the above, the infrared communication system 2 according to the second embodiment can transmit and receive data by infrared communication only by a user performing a simple operation.

ところで、本願の開示する赤外線通信システム等は、上述した実施例以外にも、種々の異なる形態にて実施されてよい。そこで、実施例3では、本願の開示する赤外線通信システム等の他の実施例について説明する。   By the way, the infrared communication system etc. which this application discloses may be implemented with a various different form other than the Example mentioned above. Accordingly, in the third embodiment, another embodiment such as an infrared communication system disclosed in the present application will be described.

[通信モード]
上記実施例1および2では、双方の携帯端末が送受信モードを選択された場合を例に挙げて説明した。例えば、図2では、携帯端末200aおよび200bは、利用者によって送受信モードが選択されたものとして説明した。しかし、一方の携帯端末が送受信モードを選択され、他方の携帯端末が受信モードまたは送信モードを選択されてもよい。以下に、図7を用いて、一方の携帯端末が送受信モードを選択され、他方の携帯端末が受信モードまたは送信モードを選択された例について説明する。
[Communication mode]
In the first and second embodiments, the case where both the mobile terminals have selected the transmission / reception mode has been described as an example. For example, in FIG. 2, the mobile terminals 200 a and 200 b have been described as having the transmission / reception mode selected by the user. However, one mobile terminal may be selected as the transmission / reception mode, and the other mobile terminal may be selected as the reception mode or the transmission mode. Hereinafter, an example in which one mobile terminal is selected as the transmission / reception mode and the other mobile terminal is selected as the reception mode or the transmission mode will be described with reference to FIG.

図7は、実施例3に係る赤外線通信システムによるデータ送受信処理を示すシーケンス図である。なお、図7では、3台の携帯端末200a、200b、200cを例に挙げてデータ送受信処理について説明する。また、図7に示した例において、携帯端末200aは送受信モードが選択され、携帯端末200bは受信モードが選択され、携帯端末200cは送信モードが選択されるものとする。   FIG. 7 is a sequence diagram illustrating data transmission / reception processing by the infrared communication system according to the third embodiment. In FIG. 7, the data transmission / reception process will be described by taking three mobile terminals 200a, 200b, and 200c as an example. In the example illustrated in FIG. 7, it is assumed that the mobile terminal 200a is selected as the transmission / reception mode, the mobile terminal 200b is selected as the reception mode, and the mobile terminal 200c is selected as the transmission mode.

図7に示した例において、携帯端末200aは、利用者から、携帯端末200bへデータを送信する旨の操作を受け付けるとともに、通信モード選択画面上で送受信モードが選択されたものとする。かかる場合、携帯端末200aの制御部250は、送受信アプリを起動する(ステップS301)。そして、携帯端末200aの状態切替部253は、携帯端末200aの状態を送受信待機状態に切り替える(ステップS302)。このとき、携帯端末200aの特定部251は、利用者によって選択されたデータを送信対象のデータとして特定する。   In the example illustrated in FIG. 7, it is assumed that the mobile terminal 200a receives an operation for transmitting data from the user to the mobile terminal 200b and the transmission / reception mode is selected on the communication mode selection screen. In such a case, the control unit 250 of the mobile terminal 200a activates the transmission / reception application (step S301). Then, the state switching unit 253 of the mobile terminal 200a switches the state of the mobile terminal 200a to the transmission / reception standby state (step S302). At this time, the specifying unit 251 of the mobile terminal 200a specifies data selected by the user as data to be transmitted.

また、携帯端末200bは、データを携帯端末200aへ送信する旨の操作を受け付けるとともに、通信モード選択画面上で受信モードが選択されたものとする。かかる場合、携帯端末200bの制御部250は、受信アプリを起動する(ステップS303)。そして、携帯端末200bの状態切替部253は、携帯端末200bの状態を、受信待機状態に切り替える(ステップS304)。このとき、携帯端末200bの特定部251は、利用者によって選択されたデータを送信対象のデータとして特定する。   In addition, it is assumed that the mobile terminal 200b receives an operation for transmitting data to the mobile terminal 200a and the reception mode is selected on the communication mode selection screen. In such a case, the control unit 250 of the mobile terminal 200b activates the reception application (step S303). Then, the state switching unit 253 of the mobile terminal 200b switches the state of the mobile terminal 200b to the reception standby state (step S304). At this time, the specifying unit 251 of the mobile terminal 200b specifies data selected by the user as data to be transmitted.

続いて、携帯端末200aの接続要求部252は、データ送信およびデータ受信の双方を行う旨の接続要求を、携帯端末200bおよび200cへ送信する(ステップS305)。携帯端末200aから接続要求を受信した携帯端末200bは、接続要求を受信したことを示す情報を表示部220に表示制御する(ステップS306)。同様に、携帯端末200cは、接続要求を受信したことを示す情報を表示部220に表示制御する(ステップS307)。   Subsequently, the connection request unit 252 of the mobile terminal 200a transmits a connection request for performing both data transmission and data reception to the mobile terminals 200b and 200c (step S305). The mobile terminal 200b that has received the connection request from the mobile terminal 200a controls display on the display unit 220 of information indicating that the connection request has been received (step S306). Similarly, the portable terminal 200c controls to display information indicating that the connection request has been received on the display unit 220 (step S307).

携帯端末200bは、受信待機状態であるので、接続応答を携帯端末200aへ送信する(ステップS308)。これにより、携帯端末200aと携帯端末200bとの間には、赤外線通信を行うための接続が確立する。このとき、携帯端末200cは、赤外線通信を実現するためのアプリケーションを起動しておらず、受信待機状態でないため、接続応答を携帯端末200aへ送信しない。   Since the mobile terminal 200b is in a reception standby state, the mobile terminal 200b transmits a connection response to the mobile terminal 200a (step S308). Thereby, the connection for performing infrared communication is established between the portable terminal 200a and the portable terminal 200b. At this time, since the mobile terminal 200c has not started an application for realizing infrared communication and is not in a reception standby state, the mobile terminal 200c does not transmit a connection response to the mobile terminal 200a.

その後、携帯端末200cは、利用者から、携帯端末200aへデータを送信する旨の操作を受け付けるとともに、通信モード選択画面上で送信モードが選択されたものとする。かかる場合、携帯端末200cの制御部250は、送信アプリを起動する(ステップS309)。続いて、携帯端末200cの接続要求部252は、携帯端末200aに対して、データ送信を行う旨の接続要求を送信する(ステップS310)。   Thereafter, it is assumed that the mobile terminal 200c receives an operation for transmitting data from the user to the mobile terminal 200a and the transmission mode is selected on the communication mode selection screen. In such a case, the control unit 250 of the mobile terminal 200c activates the transmission application (step S309). Subsequently, the connection request unit 252 of the mobile terminal 200c transmits a connection request for data transmission to the mobile terminal 200a (step S310).

携帯端末200cから接続要求を受信した携帯端末200aは、既に携帯端末200bとの間で接続が確立しているため、接続できない旨のエラー応答を携帯端末200cへ送信する(ステップS311)。エラー応答を受信した携帯端末200cは、携帯端末200aから接続要求を受信するまでスリープ状態となる(ステップS312)。   The mobile terminal 200a that has received the connection request from the mobile terminal 200c has already established a connection with the mobile terminal 200b, and therefore transmits an error response to the effect that connection cannot be made to the mobile terminal 200c (step S311). The mobile terminal 200c that has received the error response enters a sleep state until a connection request is received from the mobile terminal 200a (step S312).

続いて、携帯端末200aのデータ送受信部254は、ステップS301において特定部251によって特定された送信対象のデータを所定のパケット単位に分割して、分割した数ごとに、分割したデータを含むPUTコマンドを携帯端末200bへ送信する(ステップS313およびS315)。そして、携帯端末200bは、携帯端末200aからPUTコマンドを受信するたびに、応答を携帯端末200aへ送信する(ステップS314およびS316)。携帯端末200aからデータを受信した携帯端末200bは、受信したデータを保存する(ステップS317)。   Subsequently, the data transmitting / receiving unit 254 of the mobile terminal 200a divides the transmission target data specified by the specifying unit 251 in step S301 into predetermined packet units, and includes a PUT command including the divided data for each divided number. Is transmitted to the portable terminal 200b (steps S313 and S315). And whenever the portable terminal 200b receives a PUT command from the portable terminal 200a, it transmits a response to the portable terminal 200a (steps S314 and S316). The mobile terminal 200b that has received the data from the mobile terminal 200a stores the received data (step S317).

続いて、携帯端末200aは、携帯端末200bへのデータ送信が終了した後に、続けて通信を行うか否かを利用者に対して問い合わせる(ステップS318)。なお、ここでは、利用者によって通信を継続して行うことが選択されたものとする。かかる場合、携帯端末200aの接続要求部252は、データ送信およびデータ受信の双方を行う旨の接続要求を、携帯端末200bおよび200cへ送信する(ステップS319)。   Subsequently, after the data transmission to the portable terminal 200b is completed, the portable terminal 200a inquires of the user whether or not to continue communication (step S318). Here, it is assumed that the user has selected to continue communication. In such a case, the connection request unit 252 of the mobile terminal 200a transmits a connection request for performing both data transmission and data reception to the mobile terminals 200b and 200c (step S319).

携帯端末200aから接続要求を受信した携帯端末200bは、データの受信処理が終了しているので、接続応答を携帯端末200aへ送信しない。一方、携帯端末200cは、接続要求を受信した契機に、スリープ状態を解除する(ステップS320)。ここでは、携帯端末200cは、受信待機状態でないので、接続応答を携帯端末200aへ送信しない。したがって、携帯端末200aの状態切替部253は、接続要求を送信してから所定の時間が経過した場合に、タイムアウトを検出して、携帯端末200aの状態を送受信待機状態から受信待機状態に切り替える(ステップS321)。   The mobile terminal 200b that has received the connection request from the mobile terminal 200a does not transmit a connection response to the mobile terminal 200a because the data reception process has been completed. On the other hand, the mobile terminal 200c releases the sleep state when receiving the connection request (step S320). Here, since the mobile terminal 200c is not in the reception standby state, the connection response is not transmitted to the mobile terminal 200a. Therefore, the state switching unit 253 of the mobile terminal 200a detects a timeout when a predetermined time has elapsed after transmitting the connection request, and switches the state of the mobile terminal 200a from the transmission / reception standby state to the reception standby state ( Step S321).

スリープ状態を解除した携帯端末200cの接続要求部252は、接続要求を携帯端末200aへ送信する(ステップS322)。そして、受信待機状態である携帯端末200aは、接続応答を携帯端末200cへ送信する(ステップS323)。これにより、携帯端末200aと携帯端末200cとの間には、赤外線通信を行うための接続が確立する。   The connection request unit 252 of the mobile terminal 200c that has released the sleep state transmits a connection request to the mobile terminal 200a (step S322). Then, the portable terminal 200a in the reception standby state transmits a connection response to the portable terminal 200c (step S323). Thereby, the connection for performing infrared communication is established between the portable terminal 200a and the portable terminal 200c.

続いて、携帯端末200cのデータ送受信部254は、ステップS104において特定部251によって特定された送信対象のデータを所定のパケット単位に分割して、分割した数ごとに、分割したデータを含むPUTコマンドを携帯端末200aへ送信する(ステップS324およびS326)。そして、携帯端末200aは、携帯端末200cからPUTコマンドを受信するたびに、応答を携帯端末200cへ送信する(ステップS325およびS327)。そして、携帯端末200aは、携帯端末200bから受信したデータを保存する(ステップS328)。   Subsequently, the data transmitting / receiving unit 254 of the mobile terminal 200c divides the transmission target data specified by the specifying unit 251 in step S104 into predetermined packet units, and includes a PUT command including the divided data for each divided number. Is transmitted to the portable terminal 200a (steps S324 and S326). And every time the portable terminal 200a receives a PUT command from the portable terminal 200c, the portable terminal 200a transmits a response to the portable terminal 200c (steps S325 and S327). And the portable terminal 200a preserve | saves the data received from the portable terminal 200b (step S328).

続いて、携帯端末200cは、携帯端末200aとの間でデータの送受が終了した後に、接続を切断する旨の要求を携帯端末200aへ送信する(ステップS329)。切断要求を受信した携帯端末200aは、接続を切断する旨の応答を携帯端末200cへ送信する(ステップS330)。   Subsequently, after the data transmission / reception with the mobile terminal 200a is completed, the mobile terminal 200c transmits a request to disconnect the connection to the mobile terminal 200a (step S329). The mobile terminal 200a that has received the disconnection request transmits a response to disconnect the connection to the mobile terminal 200c (step S330).

このように、本願の開示する赤外線通信システムは、一方の携帯端末が送受信モードを選択され、他方の携帯端末が受信モードまたは送信モードを選択された場合であっても、データの送受を行うことができる。図7に示した例では、送受信モードが選択された携帯端末200aは、携帯端末200bへデータを送信することができるとともに、携帯端末200cからデータを受信することができる。また、受信モードが選択された携帯端末200bは、携帯端末200aからデータを受信することができる。また、送信モードが選択された携帯端末200cは、携帯端末200aへデータを送信することができる。   As described above, the infrared communication system disclosed in the present application transmits and receives data even when one mobile terminal is selected as a transmission / reception mode and the other mobile terminal is selected as a reception mode or a transmission mode. Can do. In the example illustrated in FIG. 7, the mobile terminal 200a in which the transmission / reception mode is selected can transmit data to the mobile terminal 200b and can receive data from the mobile terminal 200c. In addition, the mobile terminal 200b in which the reception mode is selected can receive data from the mobile terminal 200a. In addition, the mobile terminal 200c in which the transmission mode is selected can transmit data to the mobile terminal 200a.

[プログラム]
また、上記実施例で説明した各種の処理は、あらかじめ用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータで実行することによって実現することができる。そこで、以下では、図8を用いて、図3に示した携帯端末200と同様の機能を有する携帯端末制御プログラムを実行するコンピュータの一例を説明する。
[program]
The various processes described in the above embodiments can be realized by executing a program prepared in advance on a computer such as a personal computer or a workstation. In the following, an example of a computer that executes a mobile terminal control program having the same function as the mobile terminal 200 shown in FIG. 3 will be described with reference to FIG.

図8は、携帯端末制御プログラムを実行するコンピュータを示す図である。図8に示すように、コンピュータ1000は、RAM(Random Access Memory)1010と、キャッシュ1020と、HDD1030と、ROM(Read Only Memory)1040と、CPU(Central Processing Unit)1050とを有する。RAM1010、キャッシュ1020、HDD1030、ROM1040、CPU1050は、バス1060によって接続されている。   FIG. 8 is a diagram illustrating a computer that executes a portable terminal control program. As shown in FIG. 8, the computer 1000 includes a RAM (Random Access Memory) 1010, a cache 1020, an HDD 1030, a ROM (Read Only Memory) 1040, and a CPU (Central Processing Unit) 1050. The RAM 1010, cache 1020, HDD 1030, ROM 1040, and CPU 1050 are connected by a bus 1060.

ROM1040には、図3に示した携帯端末200と同様の機能を発揮する携帯端末制御プログラムが予め記憶されている。具体的には、ROM1040には、特定プログラム1041と、接続要求プログラム1042と、状態切替プログラム1043と、データ送受信プログラム1044とが記憶されている。   The ROM 1040 stores in advance a mobile terminal control program that exhibits the same functions as the mobile terminal 200 shown in FIG. Specifically, the ROM 1040 stores a specific program 1041, a connection request program 1042, a state switching program 1043, and a data transmission / reception program 1044.

そして、CPU1050は、これらの特定プログラム1041と、接続要求プログラム1042と、状態切替プログラム1043と、データ送受信プログラム1044とを読み出して実行する。これにより、図8に示すように、特定プログラム1041は、特定プロセス1051になり、接続要求プログラム1042は、接続要求プロセス1052になり、状態切替プログラム1043は、状態切替プロセス1053になり、データ送受信プログラム1044は、データ送受信プロセス1054になる。   The CPU 1050 reads and executes the specific program 1041, the connection request program 1042, the state switching program 1043, and the data transmission / reception program 1044. Accordingly, as shown in FIG. 8, the specific program 1041 becomes the specific process 1051, the connection request program 1042 becomes the connection request process 1052, the state switching program 1043 becomes the state switching process 1053, and the data transmission / reception program 1044 becomes the data transmission / reception process 1054.

なお、特定プロセス1051は、図3に示した特定部251に対応し、接続要求プロセス1052は、図3に示した接続要求部252に対応し、状態切替プロセス1053は、図3に示した状態切替部253に対応し、データ送受信プロセス1054は、図3に示したデータ送受信部254に対応する。   The identification process 1051 corresponds to the identification unit 251 illustrated in FIG. 3, the connection request process 1052 corresponds to the connection request unit 252 illustrated in FIG. 3, and the state switching process 1053 includes the state illustrated in FIG. Corresponding to the switching unit 253, the data transmission / reception process 1054 corresponds to the data transmission / reception unit 254 shown in FIG.

また、HDD1030には、図8に示すように、送受信データ1031が設けられる。送受信データ1031は、図3に示したデータ記憶部230に対応する。   The HDD 1030 is provided with transmission / reception data 1031 as shown in FIG. Transmission / reception data 1031 corresponds to the data storage unit 230 shown in FIG.

なお、上記した各プログラム1041〜1044については、必ずしもROM1040に記憶させなくてもよい。例えば、コンピュータ1000に挿入されるフレキシブルディスク(FD)、CD−ROM、MOディスク、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」にプログラム1041〜1044を記憶させてもよい。または、コンピュータ1000の内外に備えられるハードディスクドライブ(HDD)などの「固定用の物理媒体」にプログラム1041〜1044を記憶させてもよい。または、公衆回線、インターネット、LAN、WANなどを介してコンピュータ1000に接続される「他のコンピュータ(またはサーバ)」にプログラム1041〜1044を記憶させてもよい。そして、コンピュータ1000は、上述したフレキシブルディスク等から各プログラムを読み出して実行するようにしてもよい。   Note that the programs 1041 to 1044 described above are not necessarily stored in the ROM 1040. For example, the programs 1041 to 1044 may be stored in a “portable physical medium” such as a flexible disk (FD), a CD-ROM, an MO disk, a DVD disk, a magneto-optical disk, or an IC card inserted into the computer 1000. . Alternatively, the programs 1041 to 1044 may be stored in a “fixed physical medium” such as a hard disk drive (HDD) provided inside or outside the computer 1000. Alternatively, the programs 1041 to 1044 may be stored in “another computer (or server)” connected to the computer 1000 via a public line, the Internet, a LAN, a WAN, or the like. Then, the computer 1000 may read and execute each program from the above-described flexible disk or the like.

1、2 赤外線通信システム
100a、100b 携帯端末
110a、110b 特定部
120a、120b 接続要求部
130a、130b 状態切替部
140a、140b データ送受信部
200、200a、200b、200c 携帯端末
210 入力部
220 表示部
230 データ記憶部
240 無線部
250 制御部
251 特定部
252 接続要求部
253 状態切替部
254 データ送受信部
900a、900b 携帯端末
1000 コンピュータ
1010 RAM
1020 キャッシュ
1030 HDD
1031 送受信データ
1040 ROM
1041 特定プログラム
1042 接続要求プログラム
1043 状態切替プログラム
1044 データ送受信プログラム
1050 CPU
1051 特定プロセス
1052 接続要求プロセス
1053 状態切替プロセス
1054 データ送受信プロセス
1060 バス
1, 2 Infrared communication system 100a, 100b Mobile terminal 110a, 110b Identification unit 120a, 120b Connection request unit 130a, 130b Status switching unit 140a, 140b Data transmission / reception unit 200, 200a, 200b, 200c Mobile terminal 210 Input unit 220 Display unit 230 Data storage unit 240 Wireless unit 250 Control unit 251 Identification unit 252 Connection request unit 253 Status switching unit 254 Data transmission / reception unit 900a, 900b Mobile terminal 1000 Computer 1010 RAM
1020 Cache 1030 HDD
1031 Transmission / reception data 1040 ROM
1041 Specific program 1042 Connection request program 1043 Status switching program 1044 Data transmission / reception program 1050 CPU
1051 Specific process 1052 Connection request process 1053 Status switching process 1054 Data transmission / reception process 1060 Bus

Claims (6)

他の携帯端末との間で赤外線通信を用いてデータを送受する携帯端末であって、
前記他の携帯端末へ送信するデータを特定する特定部と、
前記他の携帯端末に対して、赤外線通信によるデータの送受を行う旨の接続要求を送信する接続要求部と、
当該の携帯端末の状態を、データの送信および受信を行う状態である送受信待機状態に切り替える状態切替部と、
前記接続要求部によって送信された接続要求に対する応答を所定の時間内に検出した場合に、前記特定部によって特定されたデータを前記他の携帯端末へ送信するとともに、前記他の携帯端末の特定部によって特定されたデータを前記他の携帯端末から取得するデータ送受信部と
を備えたことを特徴とする携帯端末。
A mobile terminal that transmits and receives data to and from other mobile terminals using infrared communication,
A specifying unit for specifying data to be transmitted to the other mobile terminal;
A connection request unit that transmits a connection request for transmitting and receiving data by infrared communication to the other portable terminal;
A state switching unit that switches the state of the mobile terminal to a transmission / reception standby state in which data is transmitted and received;
When a response to the connection request transmitted by the connection request unit is detected within a predetermined time, the data specified by the specifying unit is transmitted to the other portable terminal, and the specifying unit of the other portable terminal A mobile terminal comprising: a data transmitting / receiving unit that acquires data specified by the other mobile terminal.
前記状態切替部は、前記接続要求部によって送信された接続要求に対する応答を所定の時間内に検出しなかった場合に、当該の携帯端末の状態を受信待機状態に切り替え、
前記データ送受信部は、前記状態切替部によって受信待機状態に切り替えられた場合に、前記他の携帯端末から送信されるデータを保存するとともに、前記他の携帯端末からデータの取得要求を受け付けた場合に、前記特定部によって特定されたデータを前記他の携帯端末へ送信することを特徴とする請求項1に記載の携帯端末。
When the state switching unit does not detect a response to the connection request transmitted by the connection request unit within a predetermined time, the state switching unit switches the state of the mobile terminal to a reception standby state,
When the data transmission / reception unit stores data transmitted from the other portable terminal and receives a data acquisition request from the other portable terminal when the state switching unit switches to the reception standby state The mobile terminal according to claim 1, wherein the data specified by the specifying unit is transmitted to the other mobile terminal.
前記接続要求部は、前記他の携帯端末へ送信した接続要求に対するエラー応答を検出した場合に、所定の時間が経過した後に、前記他の携帯端末に対して接続要求を再度送信することを特徴とする請求項1または2に記載の携帯端末。   When the connection request unit detects an error response to the connection request transmitted to the other mobile terminal, the connection request unit transmits the connection request again to the other mobile terminal after a predetermined time has elapsed. The portable terminal according to claim 1 or 2. 前記接続要求部は、前記他の携帯端末へ送信した接続要求に対するエラー応答を検出した場合に、前記他の携帯端末から接続要求を受信した契機に、前記他の携帯端末に対して接続要求を再度送信することを特徴とする請求項1または2に記載の携帯端末。   When the connection request unit detects an error response to the connection request transmitted to the other mobile terminal, the connection request unit sends a connection request to the other mobile terminal when the connection request is received from the other mobile terminal. The mobile terminal according to claim 1, wherein the mobile terminal transmits again. 複数の携帯端末間で赤外線通信を用いてデータを送受する赤外線通信方法であって、
前記複数の携帯端末が、
他の携帯端末へ送信するデータを特定する特定ステップと、
前記他の携帯端末に対して、赤外線通信によるデータの送受を行う旨の接続要求を送信する接続要求ステップと、
当該の携帯端末の状態を、データの送信および受信を行う状態である送受信待機状態に切り替えるとともに、前記接続要求ステップによって送信された接続要求に対する応答を所定の時間内に検出しなかった場合に、当該の携帯端末の状態を、前記送受信待機状態から、他の携帯端末からデータを受信する状態である受信待機状態に切り替える状態切替ステップと、
前記接続要求ステップによって送信された接続要求に対する応答を所定の時間内に検出した場合に、前記特定ステップによって特定されたデータを前記他の携帯端末へ送信するとともに、前記他の携帯端末の特定ステップによって特定されたデータを前記他の携帯端末から取得するデータ送受信ステップと
を含んだことを特徴とする赤外線通信方法。
An infrared communication method for transmitting and receiving data between a plurality of mobile terminals using infrared communication,
The plurality of portable terminals are
A specific step of identifying data to be transmitted to other mobile devices;
A connection request step for transmitting a connection request for sending and receiving data by infrared communication to the other portable terminal,
When the state of the mobile terminal is switched to a transmission / reception standby state in which data is transmitted and received, and a response to the connection request transmitted by the connection request step is not detected within a predetermined time, A state switching step of switching the state of the mobile terminal from the transmission / reception standby state to a reception standby state in which data is received from another mobile terminal;
When a response to the connection request transmitted by the connection request step is detected within a predetermined time, the data specified by the specifying step is transmitted to the other portable terminal, and the other portable terminal specifying step And a data transmission / reception step of acquiring the data specified by the other mobile terminal from the other portable terminal.
他の携帯端末との間で赤外線通信を用いてデータを送受する携帯端末を制御する携帯端末制御プログラムであって、
前記他の携帯端末へ送信するデータを特定する特定手順と、
前記他の携帯端末に対して、赤外線通信によるデータの送受を行う旨の接続要求を送信する接続要求手順と、
当該の携帯端末の状態を、データの送信および受信を行う状態である送受信待機状態に切り替える状態切替手順と、
前記接続要求手順によって送信された接続要求に対する応答を所定の時間内に検出した場合に、前記特定手順によって特定されたデータを前記他の携帯端末へ送信するとともに、前記他の携帯端末の特定手順によって特定されたデータを前記他の携帯端末から取得するデータ送受信手順と
をコンピュータに実行させることを特徴とする携帯端末制御プログラム。
A mobile terminal control program for controlling a mobile terminal that transmits and receives data using infrared communication with another mobile terminal,
A specific procedure for specifying data to be transmitted to the other mobile terminal;
A connection request procedure for transmitting a connection request to send / receive data by infrared communication to the other mobile terminal;
A state switching procedure for switching the state of the mobile terminal to a transmission / reception standby state in which data is transmitted and received;
When a response to the connection request transmitted by the connection request procedure is detected within a predetermined time, the data specified by the specifying procedure is transmitted to the other portable terminal and the specifying procedure of the other portable terminal A mobile terminal control program that causes a computer to execute a data transmission / reception procedure for acquiring data specified by the other mobile terminal.
JP2009160194A 2009-07-06 2009-07-06 Mobile terminal, infrared communication method, and program for controlling mobile terminal Withdrawn JP2011015368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009160194A JP2011015368A (en) 2009-07-06 2009-07-06 Mobile terminal, infrared communication method, and program for controlling mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009160194A JP2011015368A (en) 2009-07-06 2009-07-06 Mobile terminal, infrared communication method, and program for controlling mobile terminal

Publications (1)

Publication Number Publication Date
JP2011015368A true JP2011015368A (en) 2011-01-20

Family

ID=43593757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009160194A Withdrawn JP2011015368A (en) 2009-07-06 2009-07-06 Mobile terminal, infrared communication method, and program for controlling mobile terminal

Country Status (1)

Country Link
JP (1) JP2011015368A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012029027A (en) * 2010-07-23 2012-02-09 Honda Motor Co Ltd In-vehicle terminal and method for pairing on terminal
WO2012102175A1 (en) 2011-01-27 2012-08-02 トヨタ自動車株式会社 Cellulosic biomass treatment method, method of producing sugar, alcohol or organic acid from cellulosic biomass
JP2012205294A (en) * 2011-03-28 2012-10-22 Fujitsu Ltd Electronic device and communication control program
JP2013005426A (en) * 2011-06-22 2013-01-07 Panasonic Corp Infrared communication device
JP2020137033A (en) * 2019-02-25 2020-08-31 国立大学法人信州大学 Visible light communication processing system and portable terminal for visible light communication

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012029027A (en) * 2010-07-23 2012-02-09 Honda Motor Co Ltd In-vehicle terminal and method for pairing on terminal
WO2012102175A1 (en) 2011-01-27 2012-08-02 トヨタ自動車株式会社 Cellulosic biomass treatment method, method of producing sugar, alcohol or organic acid from cellulosic biomass
JP2012205294A (en) * 2011-03-28 2012-10-22 Fujitsu Ltd Electronic device and communication control program
JP2013005426A (en) * 2011-06-22 2013-01-07 Panasonic Corp Infrared communication device
JP2020137033A (en) * 2019-02-25 2020-08-31 国立大学法人信州大学 Visible light communication processing system and portable terminal for visible light communication

Similar Documents

Publication Publication Date Title
KR101597177B1 (en) Context awareness proximity-based establishment of wireless communication connection
CN107889092B (en) Bluetooth device communication control method, device, terminal device and storage medium
JP2013542510A (en) Pairing wireless accessory devices between multiple host devices
CN111447602B (en) Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
KR102514692B1 (en) Electronic device suporting multiple wireless communication protocols and method therefor
JP2011061619A (en) Radio communication device and computer program
JP2011015368A (en) Mobile terminal, infrared communication method, and program for controlling mobile terminal
CN103379448A (en) Method of reducing a waiting time when cancelling a connection and an electronic device therefor
US20100291913A1 (en) Remote control method between mobile phones
US20140179232A1 (en) Communication system for establishing a wireless connection between two devices based on the permission status
EP3700169B1 (en) Electronic device for communicating with external electronic device
JP6451194B2 (en) Terminal device, remote operation system, control method, and control program
WO2017000495A1 (en) Method and device for adding contacts
WO2014183439A1 (en) Method, apparatus and system for switching function mode
JP6801300B2 (en) Control program
WO2017061081A1 (en) Communication apparatus and control method for the same
EP2949083A1 (en) Receiving a communication event
WO2006040970A1 (en) Mobile communication terminal
JP2007329768A (en) Input device, communication terminal, and input control method
CN104113582B (en) Communication equipment and its control method
WO2019154183A1 (en) Method for registration to network, and mobile terminal
CN105204836B (en) Information processing method and electronic equipment
CN111726848B (en) Equipment binding method, target starting device, fixed terminal and storage medium
CN106506318A (en) A kind of information method for subscribing of group
JP2017157933A (en) Computer program, and terminal device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20121002