JP2009260821A - Communication device and communication method - Google Patents

Communication device and communication method Download PDF

Info

Publication number
JP2009260821A
JP2009260821A JP2008109313A JP2008109313A JP2009260821A JP 2009260821 A JP2009260821 A JP 2009260821A JP 2008109313 A JP2008109313 A JP 2008109313A JP 2008109313 A JP2008109313 A JP 2008109313A JP 2009260821 A JP2009260821 A JP 2009260821A
Authority
JP
Japan
Prior art keywords
communication
connection information
main
unit
deletion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008109313A
Other languages
Japanese (ja)
Other versions
JP5146075B2 (en
Inventor
Giichi Azuma
義一 東
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2008109313A priority Critical patent/JP5146075B2/en
Publication of JP2009260821A publication Critical patent/JP2009260821A/en
Application granted granted Critical
Publication of JP5146075B2 publication Critical patent/JP5146075B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication technique capable of deleting connection information that does not have to be stored, when a plurality of master-side communication devices are present with respect to a slave-side communication device for exchanging connection information through sub communication between two slave and master communication devices. <P>SOLUTION: A control unit 10 of a slave device D1 stores connection information exchanged with a master device P through sub communication in a RAM 11 and stores the connection information in a nonvolatile memory 13 in response to a connection information storage flag. Then, the control unit 10 of the slave device D1 deletes the connection information from the RAM 11 in accordance with a communication status in at least one of sub communication and main communication and a condition indicated in connection information deletion condition information stored in the nonvolatile memory 13. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、無線通信を行う通信装置及び通信方法に関する。   The present invention relates to a communication apparatus and a communication method for performing wireless communication.

近年、無線通信が急速に普及しており、無線通信を行う通信装置が各種開発されている(例えば特許文献1〜3参照)。無線通信同士は、無線通信装置間の無線リンクの確立により接続されて、通信可能になる。つまり、無線通信は、有線通信と異なり、通信装置同士を物理的に接続しなくても通信可能である。このため、第3者がデータを傍受することが可能である。このような傍受を防ぐため、通信装置間で、データを暗号化して通信する暗号化通信を行うものがある。そして、通信装置間で暗号化通信を初めて開始する前に、相互認証情報や暗号化通信に用いる暗号鍵を含む接続情報の交換や共有を行っている。これらの接続情報は、安全な手段を用いて交換され、不揮発メモリなどに保存されることが一般的である。保存された接続情報は、次の接続の際にそのまま用いられる。このことは従来無線通信の煩雑さと解釈され、この接続情報を簡単に交換する手段が考案されてきた。   In recent years, wireless communication has been rapidly spread, and various communication devices that perform wireless communication have been developed (see, for example, Patent Documents 1 to 3). The wireless communications are connected by establishing a wireless link between the wireless communication devices, and can communicate with each other. That is, unlike wired communication, wireless communication is possible without physically connecting communication devices. For this reason, a third party can intercept data. In order to prevent such eavesdropping, some communication devices perform encrypted communication in which data is encrypted and communicated. Before starting encrypted communication for the first time between communication devices, connection information including mutual authentication information and an encryption key used for encrypted communication is exchanged and shared. In general, these pieces of connection information are exchanged using secure means and stored in a nonvolatile memory or the like. The stored connection information is used as it is in the next connection. This is conventionally interpreted as the complexity of wireless communication, and means for easily exchanging this connection information has been devised.

接続情報の交換においては、目的とする無線通信そのものを使って交換するIn Band方式、別な経路を使って交換するOut Of Band方式に大別される。近年では後者のOut Of Band方式への応用として、主通信よりも低速かつ至近距離での無線通信を副通信として行う方法での交換手段が有望視され、実用化が進んできた。この副通信を行う方法としては、例えば、NFC(Near Field Communication)等がある。このような方法では、ほとんど接触する状態で接続情報の交換を行うために物理的なセキュリティを確保し、かつ直感的なオペレーションで簡単に接続情報が交換できる。このため、ユーザビリティに優れるのが特徴と言える。   The exchange of connection information is broadly classified into an In Band method for exchanging using a target wireless communication itself and an Out Of Band method for exchanging using another route. In recent years, as an application to the latter out-of-band method, an exchange means using a method of performing wireless communication at a lower speed and closer distance than the main communication as a sub-communication is considered promising, and its practical application has progressed. As a method of performing this sub-communication, for example, there is NFC (Near Field Communication). In such a method, since connection information is exchanged in a state of almost contact, physical security is ensured, and connection information can be easily exchanged by an intuitive operation. For this reason, it can be said that it is excellent in usability.

一方、無線通信の通信トポロジーとして、全体制御を担う主デバイス(主側の通信装置)が一つ存在し、それに接続される従属デバイス(従属側の通信装置)が一つ以上存在するものがある。例えば、UWB(Ultra Wide Band)等で実現されるWUSBという規格に則った無線通信においては、主デバイスとしてWUSBホストと、従属側デバイスとしてWUSBデバイスとが存在する。主デバイス及び従属側デバイスは、無線通信を始めて互いに初めて接続される前に、上述した情報の交換や共有として、アソシエーションを行うことにより、双方の接続情報をCC(コネクションコンテキスト)として互いに保持する。基本的に、主デバイスは接続する従属デバイスとの数だけ接続情報が必要であり、従属側デバイスは接続する主デバイスとの接続情報を1つだけ保持すれば良いことになる。   On the other hand, as a communication topology for wireless communication, there is one main device (main communication device) responsible for overall control and one or more subordinate devices (subordinate communication devices) connected thereto. . For example, in wireless communication based on the WUSB standard realized by UWB (Ultra Wide Band) or the like, a WUSB host as a main device and a WUSB device as a subordinate device exist. The main device and the subordinate device hold both connection information as CCs (connection contexts) by performing association as the above-described information exchange and sharing before connecting to each other for the first time after starting wireless communication. Basically, the main device needs connection information as many as the number of subordinate devices to be connected, and the subordinate device only needs to hold one piece of connection information with the main device to be connected.

特開2006−287860号公報JP 2006-287860 A 特開2006−197071号公報JP 2006-197071 A 特開2006−195627号公報JP 2006-195627 A

しかし、従属側デバイスにユーザが共有で利用するアプリケーションが搭載されている場合、複数の主デバイスを使うユーザで共有する必要性が生じる。例えば、有料提供される共有アプリケーションサービスの搭載される従属側デバイスを不特定多数のユーザがそれぞれ異なる主デバイス側から利用する場合を想定する。この場合、ユーザは決められた手段で接続情報の交換を行ってその接続情報を用いて無線通信を行い、サービス利用終了後に切断する、という作業を毎回行うことになると考えられる。このように、接続する主デバイスがある程度一意ではなく、大半が一時的なものである場合、従属側デバイスが前回の接続情報を保持し続ける、即ち、保存する必要もないとも考えられる。   However, when an application that is shared by the user is installed in the subordinate device, it is necessary to share it among users who use a plurality of main devices. For example, it is assumed that an unspecified number of users use a subordinate device on which a shared application service provided for a fee is installed from different main devices. In this case, it is considered that the user performs the work of exchanging connection information by a predetermined means, performing wireless communication using the connection information, and disconnecting after the use of the service is completed. As described above, when the main device to be connected is not unique to some extent and most of the devices are temporary, it is considered that the subordinate device does not need to keep the previous connection information, that is, does not need to store it.

例えば以下のような場合にその傾向が顕著となる。先に述べたNFCなどを搭載した携帯型の主デバイスが、据え置き型の従属デバイスを至近距離から簡単に利用するために、接続情報の交換を副通信で行い、アプリケーションサービスのためには高速な主通信を一時的に使う、というような場合である。接続情報を保存することは、接続する主デバイスが一意である際の2回目以降の接続を容易にすることがそもそもの目的である。このため、大半が一時的に主デバイスから接続されるような場合には、逆に保存することがデメリットとして課題となる。   For example, the tendency becomes remarkable in the following cases. The portable main device equipped with NFC or the like described above exchanges connection information by sub-communication in order to easily use a stationary subordinate device from a short distance, and is fast for application services. This is a case where the main communication is temporarily used. The purpose of storing the connection information is to facilitate the second and subsequent connections when the main device to be connected is unique. For this reason, when most of the devices are temporarily connected from the main device, storing them conversely becomes a problem.

第一のデメリットとして、接続情報を保存することで、近傍に存在する以前接続したことがある主デバイスに意図せず自動的につながってしまう可能性が出てしまうことである。このことはあるひとつの主デバイスが接続を占有し続ける可能性を意味する。このような意図しない接続を回避するために、従来技術として挙げられている主デバイスとの接続情報をいくつか保存して接続の優先順位などを制御するという手段などいろいろな考案がされている。しかし、そのために不揮発メモリにおける保存領域が増加することによりコストアップとなってしまう可能性があり、従属側デバイスがコスト要求の厳しい製品であった場合にそれはデメリットとなる。また、このようなアプローチは、管理のための複雑な実装や操作を強いられることになり、NFCを使った接続情報の直感的な交換による使用を想定する際には、従属デバイスを「容易に接続し、利用するため」という本来の目的を全く損なう恐れがある。   The first demerit is that the connection information is saved, so that there is a possibility that the main device that has been connected in the vicinity and that has been connected before is automatically connected unintentionally. This means that one main device may continue to occupy the connection. In order to avoid such an unintended connection, various devices have been devised, such as a means for storing several pieces of connection information with the main device listed as the prior art and controlling the connection priority order. However, there is a possibility that the cost increases due to an increase in the storage area in the non-volatile memory, and this is a disadvantage when the subordinate device is a product with strict cost requirements. In addition, such an approach requires complicated implementation and operation for management. When assuming that the connection information using NFC is intuitively exchanged, the subordinate device can be easily changed. There is a risk that the original purpose of “to connect and use” is completely lost.

第二のデメリットとして、保存する必要のない主デバイスとの接続情報を保存することはセキュリティの観点から問題がある。無線通信においては、接続情報には主デバイスのID情報や認証に用いられる暗号鍵などの情報などが含まれることが大半であるため、主デバイスがほとんど一意でない場合、それらを保存すべきではないし、ユーザもそれを望まないと考えられる。   As a second disadvantage, storing connection information with a main device that does not need to be stored is problematic from the viewpoint of security. In wireless communication, the connection information mostly includes information such as the ID information of the main device and the encryption key used for authentication. Therefore, if the main device is hardly unique, it should not be stored. , The user may not want it.

以上のようなデメリットがあることから、そもそも一意の主デバイスから接続されることを想定していない従属側デバイスで、NFCなどを使ったユーザーが簡単に主通信を使えるようにしている場合、前回の接続情報を保持し続けることは望ましくない場合がありえる、と言える。   Because of the above disadvantages, if the subordinate device that is not supposed to be connected from a unique main device in the first place allows users using NFC to easily use main communication, It can be said that it may not be desirable to keep the connection information.

本発明は、上記に鑑みてなされたものであって、主従関係がある2つの通信装置間で接続情報を副通信により交換する従属側の通信装置に対して複数の主側の通信装置が存在し得る場合、保持する必要のない接続情報を削除可能な通信装置及び通信方法を提供することを目的とする。   The present invention has been made in view of the above, and there are a plurality of communication devices on the master side with respect to a communication device on the slave side that exchanges connection information between two communication devices having a master-slave relationship by sub-communication. If possible, an object of the present invention is to provide a communication device and a communication method capable of deleting connection information that does not need to be held.

上述した課題を解決し、目的を達成するために、請求項1にかかる発明は、主従関係がある2つの通信装置間で互いを識別するための識別情報と通信データとを含む情報を暗号化して第1の無線通信を行う主通信手段を備える従属側の通信装置であって、複数存在し得る主側の通信装置のうち、当該従属側の通信装置に接続可能な主側の通信装置を検出する検出手段と、前記検出手段が検出した前記主側の通信装置と無線通信を行う際に用いる前記識別情報と前記情報の暗号化に用いる暗号鍵とを含む接続情報を、前記主側の通信装置と第2の無線通信を行うことにより交換する副通信手段と、前記副通信手段が交換した前記接続情報を一時的に記憶する一時記憶手段と、前記副通信手段及び前記主通信手段のうち少なくとも一方における通信状態に応じて、前記一時記憶手段に記憶された前記接続情報を削除する削除手段とを更に備えることを特徴とする。   In order to solve the above-described problems and achieve the object, the invention according to claim 1 encrypts information including identification information and communication data for identifying each other between two communication devices having a master-slave relationship. A subordinate communication device including main communication means for performing the first wireless communication, and a main communication device connectable to the subordinate communication device among the plurality of main communication devices. Connection information including detection means for detecting, the identification information used when performing wireless communication with the main communication apparatus detected by the detection means, and an encryption key used for encrypting the information, Sub-communication means for exchanging by performing second wireless communication with the communication device, temporary storage means for temporarily storing the connection information exchanged by the sub-communication means, the sub-communication means and the main communication means At least one of them Depending on the state, and further comprising a deleting means for deleting the connection information stored in the temporary storage means.

また、請求項2にかかる発明は、請求項1にかかる発明において、前記削除手段は、前記副通信手段における通信状態として、前記副通信手段における通信リンクが無効である場合に、前記接続情報を削除することを特徴とする。   Further, the invention according to claim 2 is the invention according to claim 1, wherein the deletion means, when the communication link in the sub communication means is invalid as the communication state in the sub communication means, It is characterized by deleting.

また、請求項3にかかる発明は、請求項1又は2にかかる発明において、前記削除手段は、前記副通信手段における通信リンクが無効である場合且つ前記通信リンクが無効である状態が第1制限時間以上継続した場合に、前記接続情報を削除することを特徴とする。   Further, the invention according to claim 3 is the invention according to claim 1 or 2, wherein the deletion means has a first restriction when the communication link in the sub-communication means is invalid and the communication link is invalid. The connection information is deleted when it continues for more than a time.

また、請求項4にかかる発明は、請求項3にかかる発明において、前記第1制限時間を予め設定する第1設定手段を更に備え、前記削除手段は、前記副通信手段における通信リンクが無効である場合且つ前記通信リンクが無効である状態が、前記第1設定手段により設定された前記第1制限時間以上継続した場合、前記接続情報を削除することを特徴とする。   The invention according to claim 4 is the invention according to claim 3, further comprising first setting means for setting the first time limit in advance, wherein the deletion means has an invalid communication link in the sub-communication means. In some cases and when the state where the communication link is invalid continues for the first time limit set by the first setting means, the connection information is deleted.

また、請求項5にかかる発明は、請求項1乃至4のいずれか一項にかかる発明において、前記削除手段は、前記副通信手段における通信状態として、前記副通信手段における通信リンクが有効である場合且つ前記通信リンクが有効である状態が第2制限時間以上継続した場合に、前記接続情報を削除することを特徴とする。   Further, the invention according to claim 5 is the invention according to any one of claims 1 to 4, wherein the deletion means has an effective communication link in the sub-communication means as a communication state in the sub-communication means. And the connection information is deleted when the communication link is valid for a second time limit or more.

また、請求項6にかかる発明は、請求項5にかかる発明において、前記第2制限時間を予め設定する第2設定手段を更に備え、前記削除手段は、前記副通信手段における通信リンクが有効である場合且つ前記通信リンクが有効である状態が、前記第2設定手段により設定された前記第2制限時間以上継続した場合、前記接続情報を削除することを特徴とする。   Further, the invention according to claim 6 is the invention according to claim 5, further comprising second setting means for presetting the second time limit, wherein the deletion means has an effective communication link in the sub-communication means. In some cases and when the communication link is valid for more than the second time limit set by the second setting means, the connection information is deleted.

また、請求項7にかかる発明は、請求項1乃至6のいずれか一項にかかる発明において、前記削除手段は、前記主通信手段における通信状態として、前記主通信手段における通信トラフィックに応じて、前記接続情報を削除することを特徴とする。   According to a seventh aspect of the present invention, in the invention according to any one of the first to sixth aspects, the deletion unit is configured to determine a communication state in the main communication unit according to communication traffic in the main communication unit. The connection information is deleted.

また、請求項8にかかる発明は、請求項7にかかる発明において、前記通信トラフィックに応じて前記接続情報を削除するか否かを予め設定する第3設定手段を更に備え、前記削除手段は、前記通信トラフィックに応じて前記接続情報を削除することが前記第3設定手段により設定されている場合、前記通信トラフィックに応じて、前記接続情報を削除することを特徴とする。   The invention according to claim 8 is the invention according to claim 7, further comprising third setting means for presetting whether or not to delete the connection information in accordance with the communication traffic, When the third setting unit is configured to delete the connection information according to the communication traffic, the connection information is deleted according to the communication traffic.

また、請求項9にかかる発明は、請求項1乃至8のいずれか一項にかかる発明において、前記削除手段は、前記主通信手段における通信状態として、前記主通信手段におけるエラーレートに応じて、前記接続情報を削除することを特徴とする。   According to a ninth aspect of the present invention, in the invention according to any one of the first to eighth aspects, the deletion unit is configured to determine a communication state in the main communication unit according to an error rate in the main communication unit. The connection information is deleted.

また、請求項10にかかる発明は、請求項9にかかる発明において、前記エラーレートに応じて前記接続情報を削除するか否かを予め設定する第4設定手段を更に備え、前記削除手段は、前記エラーレートに応じて前記接続情報を削除することが前記第3設定手段により設定されている場合、前記エラーレートに応じて、前記接続情報を削除することを特徴とする。   The invention according to claim 10 further comprises fourth setting means for presetting whether or not to delete the connection information in accordance with the error rate in the invention according to claim 9, wherein the deleting means comprises: When deleting the connection information according to the error rate is set by the third setting means, the connection information is deleted according to the error rate.

また、請求項11にかかる発明は、請求項1乃至10のいずれか一項にかかる発明において、前記削除手段は、前記主通信手段における通信状態として、前記主通信手段における通信速度に応じて、前記接続情報を削除することを特徴とする。   Further, the invention according to claim 11 is the invention according to any one of claims 1 to 10, wherein the deletion unit is configured to determine a communication state in the main communication unit according to a communication speed in the main communication unit. The connection information is deleted.

また、請求項12にかかる発明は、請求項11にかかる発明において、前記通信速度に応じて前記接続情報を削除するか否かを予め設定する第5設定手段を更に備え、前記削除手段は、前記通信速度に応じて前記接続情報を削除することが前記第5設定手段により設定されている場合、前記通信速度に応じて、前記接続情報を削除することを特徴とする。   The invention according to claim 12 is the invention according to claim 11, further comprising fifth setting means for presetting whether or not to delete the connection information in accordance with the communication speed, wherein the deleting means includes: When deleting the connection information according to the communication speed is set by the fifth setting means, the connection information is deleted according to the communication speed.

また、請求項13にかかる発明は、請求項1乃至12のいずれか一項にかかる発明において、前記削除手段は、前記主通信手段における通信状態として、前記主通信手段における回線が切断された場合に、前記接続情報を削除することを特徴とする。   Further, the invention according to claim 13 is the invention according to any one of claims 1 to 12, wherein the deletion means is a communication state in the main communication means, and the line in the main communication means is disconnected. In addition, the connection information is deleted.

また、請求項14にかかる発明は、請求項13にかかる発明において、前記回線が切断された場合に前記接続情報を削除するか否かを予め設定する第6設定手段を更に備え、前記削除手段は、前記回線が切断された場合に前記接続情報を削除することが前記第6設定手段により設定されている場合、前記主通信手段における回線が切断された場合に、前記接続情報を削除することを特徴とする。   The invention according to claim 14 is the invention according to claim 13, further comprising sixth setting means for presetting whether or not to delete the connection information when the line is disconnected, wherein the deleting means Deletes the connection information when the line in the main communication means is disconnected, when the sixth setting means sets the deletion of the connection information when the line is disconnected It is characterized by.

また、請求項15にかかる発明は、請求項7乃至14のいずれか一項にかかる発明において、前記削除手段は、前記主通信手段の通信状態として所定の状態が、一定時間以上継続した場合に、前記接続情報を削除することを特徴とする。   In addition, the invention according to claim 15 is the invention according to any one of claims 7 to 14, wherein the deletion unit is configured such that a predetermined state continues as a communication state of the main communication unit for a predetermined time or more. The connection information is deleted.

また、請求項16にかかる発明は、請求項15にかかる発明において、前記一定時間を予め設定する第7設定手段を更に備え、前記削除手段は、前記所定の状態が、前記第7設定手段により設定された前記一定時間以上継続した場合に、前記接続情報を削除することを特徴とする。   The invention according to a sixteenth aspect is the invention according to the fifteenth aspect, further comprising seventh setting means for presetting the predetermined time, wherein the deleting means is configured such that the predetermined state is determined by the seventh setting means. The connection information is deleted when the set time is continued for the predetermined time or longer.

また、請求項17にかかる発明は、請求項1乃至16のいずれか一項にかかる発明において、前記接続許容有効期間を予め設定する第8設定手段を更に備え、前記削除手段は、前記回線が接続されている状態が、前記第8設定手段により設定された前記接続許容有効期間以上継続した場合に、前記接続情報を削除することを特徴とする。   The invention according to claim 17 is the invention according to any one of claims 1 to 16, further comprising eighth setting means for presetting the connection allowable effective period, wherein the deletion means The connection information is deleted when the connected state continues for the connection allowable effective period set by the eighth setting means.

また、請求項18にかかる発明は、請求項1乃至17のいずれか一項にかかる発明において、前記接続情報を記憶可能な記憶手段と、前記接続情報を前記記憶手段に記憶させるか否かを予め設定する第9設定手段と、前記接続情報を前記記憶手段に記憶させることが前記第9設定手段に設定されている場合、前記接続情報を前記記憶手段に記憶させる記憶制御手段とを更に備えることを特徴とする。   The invention according to claim 18 is the invention according to any one of claims 1 to 17, wherein storage means capable of storing the connection information and whether the connection information is stored in the storage means. Ninth setting means for presetting, and storage control means for storing the connection information in the storage means when the storage means stores the connection information in the ninth setting means. It is characterized by that.

また、請求項19にかかる発明は、請求項1乃至18のいずれか一項にかかる発明において、前記主通信手段は、WUSB(Wireless Universal Serial Bus)の規格に従って第1の無線通信を行うことを特徴とする。   The invention according to claim 19 is the invention according to any one of claims 1 to 18, wherein the main communication means performs the first wireless communication in accordance with a WUSB (Wireless Universal Serial Bus) standard. Features.

また、請求項20にかかる発明は、請求項1乃至19のいずれか一項にかかる発明において、前記副通信手段は、NFC(Near Field Communication)により第2の無線通信を行うことを特徴とする。   The invention according to claim 20 is the invention according to any one of claims 1 to 19, wherein the sub-communication means performs second wireless communication by NFC (Near Field Communication). .

また、請求項21にかかる発明は、主従関係がある2つの通信装置間で互いを識別するための識別情報と通信データとを含む情報を暗号化して第1の無線通信を行う主通信手段を備える従属側の通信装置で実現される通信方法であって、前記従属側の通信装置は、検出手段と、副通信手段と、記憶制御手段と、削除手段とを備え、前記検出手段が、複数存在し得る主側の通信装置のうち、当該従属側の通信装置に接続可能な主側の通信装置を検出する検出ステップと、前記副通信手段が、前記検出ステップで検出した前記主側の通信装置と無線通信を行う際に用いる前記識別情報と前記情報の暗号化に用いる暗号鍵とを含む接続情報を、前記主側の通信装置と第2の無線通信を行うことにより交換する副通信ステップと、前記記憶制御手段が、前記副通信ステップで交換した前記接続情報を一時記憶手段に一時的に記憶する記憶制御ステップと、前記削除手段が、前記副通信手段及び前記主通信手段のうち少なくとも一方における通信状態に応じて、前記一時記憶手段に記憶された前記接続情報を削除する削除ステップとを含むことを特徴とする。   According to a twenty-first aspect of the present invention, there is provided main communication means for performing first wireless communication by encrypting information including identification information and communication data for identifying each other between two communication devices having a master-slave relationship. The slave communication device includes a detection unit, a sub-communication unit, a storage control unit, and a deletion unit, and the detection unit includes a plurality of detection units. A detection step of detecting a main communication device connectable to the slave communication device among the main communication devices that may exist, and the main communication detected by the sub-communication means in the detection step Sub-communication step for exchanging connection information including the identification information used when performing wireless communication with a device and an encryption key used for encrypting the information by performing second wireless communication with the main communication device And the storage control means The storage control step for temporarily storing the connection information exchanged in the sub-communication step in a temporary storage unit, and the deletion unit according to the communication state in at least one of the sub-communication unit and the main communication unit, And a deletion step of deleting the connection information stored in the temporary storage means.

本発明によれば、主従関係がある2つの通信装置間で接続情報を副通信により交換する従属側の通信装置に対して複数の主側の通信装置が存在し得る場合、保持する必要のない接続情報を削除可能になる。   According to the present invention, there is no need to hold a plurality of main communication devices for a subordinate communication device that exchanges connection information between two communication devices having a master-slave relationship by sub-communication. Connection information can be deleted.

以下に添付図面を参照して、この発明にかかる通信装置及び通信方法の最良な実施の形態を詳細に説明する。   Exemplary embodiments of a communication apparatus and a communication method according to the present invention will be explained below in detail with reference to the accompanying drawings.

(1)構成
<無線通信システムの構成>
図1は、本実施の形態にかかる無線通信システムの構成を例示する図である。本実施の形態にかかる無線通信システムは、各々主デバイスP1〜P3となる複数の無線通信装置と、従属デバイスD1となる無線通信装置とを有する。主デバイスP1〜P3は、パーソナルコンピュータであり、特に、主デバイスP2〜P3は携帯可能なパーソナルコンピュータ(携帯情報装置)である。従属デバイスD1は、ここでは、画像を出力するプリンタ機能、画像を読み取るスキャナ機能及び画像を記憶するストレージ機能を実現可能な複合機とする。従属デバイスD1は、主デバイスP1〜P3のうち1つと、例えば、上述したWUSBの規格に従って、互いを識別するための識別情報と通信データとを含む情報を暗号化して無線通信を行う。通信データとは、例えば主デバイスP1〜P3のうち1つから従属デバイスD1へ画像の出力を指示するデータなどである。また、従属デバイスD1及び主デバイスP1〜P3は、上述したNFCにより通信を行う機能を有し、このNFCによる通信によって、接続情報の交換を行う。接続情報は、無線通信の際に互いを識別するための識別情報として主デバイスP1〜P3を識別する主ID及び従属デバイスD1を識別する従属IDと、これらのID及び通信データを含む情報を暗号化して無線通信を行う際の暗号化に用いる暗号鍵とを含む。尚、ここでは、WUSBの規格に従った通信を主通信といい、NFCによる通信を副通信という。また、以降、主デバイスP1〜P3を区別する必要がない場合には、単に、主デバイスPと記載する。
(1) Configuration <Configuration of wireless communication system>
FIG. 1 is a diagram illustrating a configuration of a wireless communication system according to the present embodiment. The wireless communication system according to the present embodiment includes a plurality of wireless communication apparatuses that are the main devices P1 to P3 and a wireless communication apparatus that is the subordinate device D1. The main devices P1 to P3 are personal computers. In particular, the main devices P2 to P3 are portable personal computers (portable information devices). Here, the subordinate device D1 is a multifunction device capable of realizing a printer function for outputting an image, a scanner function for reading an image, and a storage function for storing an image. The subordinate device D1 performs wireless communication with one of the main devices P1 to P3 by encrypting information including identification information for identifying each other and communication data in accordance with, for example, the WUSB standard described above. The communication data is, for example, data instructing image output from one of the main devices P1 to P3 to the subordinate device D1. Further, the subordinate device D1 and the main devices P1 to P3 have a function of performing communication by NFC as described above, and exchange connection information by the communication by NFC. The connection information encrypts information including the main ID for identifying the main devices P1 to P3 and the subordinate ID for identifying the subordinate device D1 as identification information for identifying each other during wireless communication, and information including these IDs and communication data. And an encryption key used for encryption when wireless communication is performed. Here, communication in accordance with the WUSB standard is called main communication, and NFC communication is called sub-communication. Hereinafter, when it is not necessary to distinguish the main devices P1 to P3, they are simply referred to as the main device P.

<従属デバイスの構成>
図2は、従属デバイスD1の構成を示すブロック図である。従属デバイスD1は、制御部10と、RAM11と、ROM12と、不揮発性メモリ13と、無線通信デバイス14とを有する。制御部10は、CPUにより構成され、ROM12に記憶された各種プログラムを実行することにより、従属デバイスD1の全体を制御して、各種機能を実現させる。
<Configuration of subordinate device>
FIG. 2 is a block diagram showing the configuration of the subordinate device D1. The slave device D1 includes a control unit 10, a RAM 11, a ROM 12, a nonvolatile memory 13, and a wireless communication device 14. The control unit 10 is constituted by a CPU, and executes various programs stored in the ROM 12, thereby controlling the entire slave device D1 and realizing various functions.

RAM11は、制御部10が各種プログラムを実行する際に作業領域として使用される。ROM12は、制御部10が実行する各種のプログラムや各種データを記憶する。不揮発性メモリ13は、後述する接続履歴情報、接続情報保存フラグ及び接続情報削除条件情報とを記憶する。また、不揮発性メモリ13は、接続情報保存フラグに応じて、主デバイスPとの間で互いに共有する接続情報を記憶する。また、不揮発性メモリ13は、上述のストレージ機能の実現により、画像を記憶する。無線通信デバイス14は、外部の無線通信装置との間で、WUSBの規格に従った通信及びNFCによる通信を行う。   The RAM 11 is used as a work area when the control unit 10 executes various programs. The ROM 12 stores various programs executed by the control unit 10 and various data. The nonvolatile memory 13 stores connection history information, a connection information storage flag, and connection information deletion condition information, which will be described later. The nonvolatile memory 13 stores connection information shared with the main device P according to the connection information storage flag. Further, the nonvolatile memory 13 stores an image by realizing the storage function described above. The wireless communication device 14 performs communication according to the WUSB standard and NFC communication with an external wireless communication apparatus.

その他、従属デバイスD1は、プリンタ機能を実現するためのエンジン部及びスキャナ機能を実現するためのエンジン部と、プリンタ機能及びスキャナ機能を実現する際の画像処理を行うためのASICと、オペレーションパネル(いずれも図示せず)とを有する。オペレーションパネルとは、ユーザが指示入力を行う操作装置と情報の表示を行う表示装置とが一体的に形成されたものである。   In addition, the subordinate device D1 includes an engine unit for realizing the printer function and an engine unit for realizing the scanner function, an ASIC for performing image processing when realizing the printer function and the scanner function, and an operation panel ( None of them are shown. The operation panel is formed by integrally forming an operation device for a user to input instructions and a display device for displaying information.

次に、制御部10によって実現される各種機能について説明する。ここで実現される各種機能には、図2に示されるように、OS部27と、アプリケーション部20と、セキュリティ制御部21と、ネットワーク制御部22と、オペポート制御部23と、ファイル制御部24と、メモリ制御部25と、システム制御部26とが含まれる。OS部27は、セキュリティ情報30と、ネットワークプロトコル28と、無線通信デバイスドライバ29とを有し、オペレーティングシステムとしての機能を果たす。ネットワークプロトコル28は、無線通信として暗号化通信を行うためのプロトコルスタックである。無線通信デバイスドライバ29は、接続相手の主デバイスPとの間で無線通信を行う無線通信デバイス14を制御するデバイスドライバである。アプリケーション部20は、暗号化通信を行うためのアプリケーションを含み、接続相手の主デバイスPと接続情報の交換を行うアソシエーションアプリケーションを含む。また、アプリケーション部20は、プリンタ機能、スキャナ機能及びストレージ機能を各々実現させるためのアプリケーションを含み、これらのアプリケーションが主デバイスP1〜P3により共用される。また、このアプリケーション部20とネットワーク制御部22とネットワークプロトコル28と無線通信デバイスドライバ29とセキュリティ制御部21とがUWB技術による無線通信を行う機能を実現させる。セキュリティ制御部21は、接続情報保存フラグに応じて、接続情報を含むセキュリティ情報を不揮発性メモリ13に記憶させる。オペポート制御部23は、オペレーションパネルを介したユーザからの指示入力やオペレーションパネルへの情報の表示を制御する。ファイル制御部24は、ファイルの読み書きを制御する。メモリ制御部25は、RAM11,ROM12,不揮発性メモリ13などのメモリへの読み書きを制御する。システム制御部26は、各部20〜30を制御する。   Next, various functions realized by the control unit 10 will be described. As shown in FIG. 2, the various functions realized here include an OS unit 27, an application unit 20, a security control unit 21, a network control unit 22, an operation port control unit 23, and a file control unit 24. A memory control unit 25, and a system control unit 26. The OS unit 27 includes security information 30, a network protocol 28, and a wireless communication device driver 29, and functions as an operating system. The network protocol 28 is a protocol stack for performing encrypted communication as wireless communication. The wireless communication device driver 29 is a device driver that controls the wireless communication device 14 that performs wireless communication with the main device P that is a connection partner. The application unit 20 includes an application for performing encrypted communication, and includes an association application for exchanging connection information with the main device P of the connection partner. The application unit 20 includes applications for realizing a printer function, a scanner function, and a storage function, and these applications are shared by the main devices P1 to P3. In addition, the application unit 20, the network control unit 22, the network protocol 28, the wireless communication device driver 29, and the security control unit 21 realize a function of performing wireless communication using the UWB technology. The security control unit 21 stores security information including connection information in the nonvolatile memory 13 in accordance with the connection information storage flag. The operation port control unit 23 controls instruction input from the user via the operation panel and display of information on the operation panel. The file control unit 24 controls reading and writing of files. The memory control unit 25 controls reading and writing to a memory such as the RAM 11, the ROM 12, and the nonvolatile memory 13. The system control unit 26 controls the units 20 to 30.

次に、接続情報のデータ構成について図3を参照しながら説明する。同図に示すように、接続情報は、上述したように、無線通信を行う際に互いを識別するための識別情報として主デバイスPを識別する主ID及び従属デバイスを識別する従属IDと、当該識別情報と通信データとを含む情報の暗号化に用いる暗号鍵とを含む。本実施の形態においては、従属デバイスD1は、無線通信を行っている接続相手の主デバイスとの間で交換したこのような接続情報をRAM11に一時的に記憶する。更に、従属デバイスD1は、後述するユーザの設定に応じて、接続情報を不揮発性メモリ13に記憶することによりこれを保存する。   Next, the data structure of the connection information will be described with reference to FIG. As shown in the figure, as described above, the connection information includes a main ID for identifying the main device P and identification ID for identifying the subordinate device as identification information for identifying each other when performing wireless communication, An encryption key used for encryption of information including identification information and communication data is included. In the present embodiment, the subordinate device D1 temporarily stores in the RAM 11 such connection information exchanged with the connection partner main device that is performing wireless communication. Further, the subordinate device D1 stores the connection information in the nonvolatile memory 13 in accordance with a user setting described later.

次に、不揮発性メモリ13に記憶される接続履歴情報のデータ構成について図4を参照しながら説明する。接続履歴情報は、各主デバイスPとの接続の履歴を示し、上述した接続情報と対応付けられる。対応付けは例えば割当番号により行う。例えば、図3に示した接続情報との対応関係において、主デバイスP1に対する接続履歴情報を示している。同図に示すように、接続履歴情報は、各履歴情報として、交換日時と、最終接続日時と、通信量と、エラーレートと、通信速度と、主デバイスPとの距離と、アプリケーション履歴とを含む。交換日時は、主デバイスPと初めて接続情報の交換を行ったときの日時を示す。最終接続日時は、主デバイスPと最後に接続された日時を示す。通信量は、主デバイスPと無線通信を行うことにより送受信されたデータの量を示す。エラーレートは、主デバイスPと無線通信を行った際に発生したエラーのレートを示す。通信速度は、主デバイスPと無線通信を行った際の通信速度を示す。これらの通信量、エラーレート及び通信速度は、通信阻害要因が発生したか否かの判断に用いられる。アプリケーション履歴は、主デバイスPと無線通信を行うことにより従属デバイスD1において上述のプリンタ機能、スキャナ機能及びストレージ機能を各々実現するためのアプリケーションのうちいずれが使用されたのかを示す。   Next, the data structure of the connection history information stored in the nonvolatile memory 13 will be described with reference to FIG. The connection history information indicates a history of connection with each main device P and is associated with the connection information described above. The association is performed using, for example, an assignment number. For example, in the correspondence relationship with the connection information shown in FIG. 3, connection history information for the main device P1 is shown. As shown in the figure, the connection history information includes, as each history information, an exchange date and time, a last connection date and time, a communication amount, an error rate, a communication speed, a distance from the main device P, and an application history. Including. The exchange date and time indicates the date and time when connection information is exchanged with the main device P for the first time. The last connection date and time indicates the date and time when the main device P was last connected. The communication amount indicates the amount of data transmitted / received by performing wireless communication with the main device P. The error rate indicates a rate of an error that occurs when performing wireless communication with the main device P. The communication speed indicates a communication speed when wireless communication is performed with the main device P. These communication amount, error rate, and communication speed are used to determine whether or not a communication obstruction factor has occurred. The application history indicates which of the applications for realizing the printer function, the scanner function, and the storage function described above is used in the subordinate device D1 by performing wireless communication with the main device P.

尚、従属デバイスD1は、主デバイスPと初めて接続情報の交換を行ったときに、接続履歴情報の交換日時を記憶し、その後、主デバイスと接続する度に、そのときを最終接続日時として記憶する。また、従属デバイスD1は、主通信における通信状態を適宜検出して、その通信量、エラーレート及び通信速度を算出して記憶し、使用されたアプリケーションの種類を記憶する。使用されたアプリケーションの種類は、例えば、主デバイスPから送信された情報に含まれる通信データによって判断することができる。通信データが、画像の出力を指示するものである場合、従属デバイスD1は、アプリケーションの種類はプリンタ機能であると判断する。通信データが、画像の読み取りを指示するものである場合、従属デバイスD1は、アプリケーションの種類はスキャナ機能であると判断する。通信データが、画像の保存を指示するものである場合、従属デバイスD1は、アプリケーションの種類はストレージ機能であると判断する。また、通信量については、従属デバイスD1は、同一の主デバイスPとの接続の度に累計して記憶するようにしても良いし、主デバイスPに最後に接続されたときに送受信されたデータの量を記憶するようにしても良い。主デバイスPとの距離については、実際の距離に応じてその値が予め設定されている。   The subordinate device D1 stores the exchange date and time of the connection history information when the connection information is exchanged with the main device P for the first time, and then stores that time as the last connection date and time each time it connects to the main device. To do. The subordinate device D1 appropriately detects the communication state in the main communication, calculates and stores the communication amount, error rate, and communication speed, and stores the type of application used. The type of application used can be determined, for example, based on communication data included in information transmitted from the main device P. If the communication data is an instruction to output an image, the subordinate device D1 determines that the type of application is a printer function. When the communication data is an instruction to read an image, the slave device D1 determines that the type of application is a scanner function. When the communication data is an instruction to save an image, the subordinate device D1 determines that the type of application is a storage function. The communication device D1 may accumulate and store the amount of communication every time it connects to the same main device P, or data transmitted and received when it is last connected to the main device P. May be stored. The distance from the main device P is set in advance according to the actual distance.

次に、接続情報保存フラグ及び接続情報削除条件情報について説明する。接続情報保存フラグとは、接続情報を不揮発性メモリ13に保存するか否かを示すものであり、オペレーションパネルを介したユーザの指示入力によりそのいずれかが設定される。接続情報削除条件情報とは、副通信及び主通信のうち少なくとも一方の通信状態に応じて、接続情報を削除する条件を示すものであり、オペレーションパネルを介したユーザの指示入力により当該条件が設定される。   Next, the connection information storage flag and the connection information deletion condition information will be described. The connection information storage flag indicates whether or not the connection information is stored in the nonvolatile memory 13, and one of the connection information storage flags is set by a user instruction input via the operation panel. The connection information deletion condition information indicates a condition for deleting connection information according to the communication state of at least one of the sub-communication and the main communication. The condition is set by a user instruction input via the operation panel. Is done.

ここで、オペレーションパネルを介した設定について説明する。図5は、接続情報の保存に関する設定をユーザが行うための設定画面を例示する図である。ユーザは、同図に示される設定画面において、オペレーションパネルを介した指示入力により、接続情報を不揮発性メモリ13に保存するか否かの設定と、接続情報を削除する条件とを設定することができる。接続情報を不揮発性メモリ13に保存するか否かの設定により、上述の接続情報フラグが設定される。接続情報を削除する条件の設定により、上述の接続情報削除条件情報において当該条件が設定される。副通信における通信状態に応じて接続情報を削除する条件としては、例えば、副通信において通信リンクが無効であるときに接続情報を削除する否かを設定することができる。また、副通信において通信リンクが有効であるときも、「削除するまでの時間」を設定することにより、接続情報を削除することができる。主通信における通信状態に応じて接続情報を削除する条件としては、主通信において回線が切断されたときに接続情報を削除するか否かや、「切断から削除までの時間」を設定することができる。また、主通信における通信状態に応じて接続情報を削除する条件として、通信の異常時に接続情報を削除するか否かなどを設定することができる。この他、接続情報を削除する条件として、主通信における回線が切断されていない場合であっても接続を許容する有効期間(接続許容有効期間)として、「削除するまでの通信アイドル時間」を設定することができる。尚、当該設定画面における設定は、接続情報の挙動に関わるので、当該設定画面においてログインなどを要求して管理者のみ設定が変えられるようにしても良い。   Here, setting via the operation panel will be described. FIG. 5 is a diagram exemplifying a setting screen for a user to perform settings relating to storage of connection information. In the setting screen shown in the figure, the user can set whether or not to save the connection information in the nonvolatile memory 13 and a condition for deleting the connection information by inputting an instruction via the operation panel. it can. The connection information flag is set according to whether or not the connection information is stored in the nonvolatile memory 13. By setting a condition for deleting connection information, the condition is set in the above-described connection information deletion condition information. As a condition for deleting the connection information according to the communication state in the sub communication, for example, it can be set whether or not to delete the connection information when the communication link is invalid in the sub communication. Even when the communication link is valid in the sub-communication, the connection information can be deleted by setting the “time until deletion”. Conditions for deleting connection information according to the communication status in the main communication include whether to delete the connection information when the line is disconnected in the main communication and setting the "time from disconnection to deletion" it can. In addition, as a condition for deleting the connection information according to the communication state in the main communication, it is possible to set whether or not to delete the connection information when communication is abnormal. In addition, as a condition for deleting connection information, “communication idle time until deletion” is set as an effective period (connection allowable effective period) for allowing connection even when the line in the main communication is not disconnected. can do. Since the setting on the setting screen relates to the behavior of the connection information, only the administrator may change the setting by requesting login or the like on the setting screen.

以上のような構成において、従属デバイスD1の制御部10は、主デバイスPと初めて無線通信を開始する際、主デバイスPと相互認証を行い、その後、主デバイスPからの要求により接続情報を作成しこれを、無線通信デバイス14を介して接続相手の主デバイスPに送信する。一方、接続相手の主デバイスPはその接続情報を自装置の記憶部に記憶する。このようにして従属デバイスD1の制御部10は、主デバイスP1〜P3と各々接続情報を交換することにより共有し、当該接続情報を用いた認証/鍵交換などの処理を行って、無線通信を開始する。この結果、従属デバイスD1と主デバイスPとが接続され、従属デバイスD1と主デバイスPとの間の無線リンクが確立される。尚、接続情報を用いた認証/鍵交換などの処理については周知であるためその説明を省略する。また、従属デバイスD1の制御部10は、不揮発性メモリ13に記憶された接続情報保存フラグを参照して、接続情報を不揮発性メモリ13に保存することを当該接続情報保存フラグが示す場合、作成した接続情報を不揮発性メモリ13及びRAM11に記憶し、接続情報を不揮発性メモリ13に保存しないことを当該接続情報保存フラグが示す場合、作成した接続情報をRAM11に記憶する。更に、従属デバイスD1の制御部10は、このときの日時を交換日時として接続履歴情報に記憶する。その後、従属デバイスD1の制御部10は、副通信及び主通信のうち少なくとも一方における通信状態を適宜検出すると共に、不揮発性メモリ13に記憶された接続情報削除条件情報に示される条件に応じて、接続情報をRAM11から削除する。また、従属デバイスD1の制御部10は、主デバイスPと無線通信を行う度に、接続履歴情報を更新する。そして、以降の無線通信を開始する際には、従属デバイスD1の制御部10は、接続可能な主デバイスPを検出すべく、主デバイスPから周期的に発信されるビーコンを検出するためのスキャン処理を行う。従属デバイスD1の制御部10は、スキャン処理の結果ビーコンを検出すると、当該ビーコンを発信した主デバイスPを接続相手として当該主デバイスPと接続情報を交換して、以降、上述と同様の処理を行う。   In the configuration as described above, when the control unit 10 of the subordinate device D1 starts wireless communication with the main device P for the first time, it performs mutual authentication with the main device P, and then creates connection information according to a request from the main device P. This is transmitted to the connected main device P via the wireless communication device 14. On the other hand, the main device P of the connection partner stores the connection information in the storage unit of the own device. In this way, the control unit 10 of the subordinate device D1 shares connection information with the main devices P1 to P3 by exchanging connection information, performs processing such as authentication / key exchange using the connection information, and performs wireless communication. Start. As a result, the subordinate device D1 and the main device P are connected, and the radio link between the subordinate device D1 and the main device P is established. Since processing such as authentication / key exchange using the connection information is well known, the description thereof is omitted. In addition, the control unit 10 of the subordinate device D1 refers to the connection information storage flag stored in the nonvolatile memory 13 and creates it when the connection information storage flag indicates that the connection information is stored in the nonvolatile memory 13 The connection information is stored in the nonvolatile memory 13 and the RAM 11, and when the connection information storage flag indicates that the connection information is not stored in the nonvolatile memory 13, the created connection information is stored in the RAM 11. Furthermore, the control unit 10 of the subordinate device D1 stores the date and time at this time in the connection history information as the exchange date and time. Thereafter, the control unit 10 of the subordinate device D1 appropriately detects the communication state in at least one of the sub-communication and the main communication, and according to the condition indicated in the connection information deletion condition information stored in the nonvolatile memory 13, The connection information is deleted from the RAM 11. The control unit 10 of the subordinate device D1 updates the connection history information every time wireless communication is performed with the main device P. When starting the subsequent wireless communication, the control unit 10 of the subordinate device D1 scans for detecting a beacon periodically transmitted from the main device P in order to detect the connectable main device P. Process. When detecting the beacon as a result of the scanning process, the control unit 10 of the subordinate device D1 exchanges connection information with the main device P using the main device P that has transmitted the beacon as a connection partner, and thereafter performs the same process as described above. Do.

<主デバイスの構成>
主デバイスPは、CPUと、RAMやROMなどの記憶部と、無線通信を行う通信部と、これらを接続するバス(いずれも図示せず)とを有し、通常のコンピュータを利用したハードウェア構成となっている。そして、主デバイスPは、通信部を介して従属デバイスD1と、WUSBの規格に従った無線通信と、NFCによる無線通信とを行うことが可能である。
<Configuration of main device>
The main device P includes a CPU, a storage unit such as a RAM and a ROM, a communication unit that performs wireless communication, and a bus (none of which is shown) for connecting them, and hardware using a normal computer It has a configuration. Then, the main device P can perform wireless communication according to the WUSB standard and wireless communication by NFC via the communication unit.

(2)動作
次に、本実施の形態にかかる従属デバイスD1が無線通信を行う際に行う接続情報の保存及び削除に関する処理の手順について図6を参照しながら説明する。従属デバイスD1は、無線通信を開始する際、RAM11に記憶されている接続情報を削除し(ステップS1)、接続可能な主デバイスPを検出すべくスキャン処理を行う(ステップS2)。そして、従属デバイスD1の制御部10は、スキャン処理の結果接続相手として検出した主デバイスPと相互認証を行い、接続情報を作成する。そして、従属デバイスD1は、当該主デバイスPと接続情報を交換し、当該接続情報を用いた認証/鍵交換などの処理を行って、無線通信を開始する(ステップS3)。また、従属デバイスD1は、不揮発性メモリ13に記憶された接続情報保存フラグを参照して、接続情報を不揮発性メモリ13に保存することを当該接続情報保存フラグが示す場合(ステップS4:YES)、作成した接続情報を不揮発性メモリ13及びRAM11に記憶して(ステップS5)、ステップS7に進む。一方、接続情報を不揮発性メモリ13に保存しないことを接続情報保存フラグが示す場合(ステップS4:NO)、従属デバイスD1は、作成した接続情報をRAM11に記憶して(ステップS6)、ステップS7に進む。更に、従属デバイスD1は、このときの日時を交換日時として接続履歴情報に記憶する。また、従属デバイスD1は、主デバイスPとの主通信における通信状態を適宜検出して、最終接続日時と、通信量と、エラーレートと、通信速度と、アプリケーション履歴とを接続履歴情報に記憶する。
(2) Operation Next, a procedure of processing related to storage and deletion of connection information performed when the slave device D1 according to the present embodiment performs wireless communication will be described with reference to FIG. When the subordinate device D1 starts wireless communication, the subordinate device D1 deletes the connection information stored in the RAM 11 (step S1), and performs a scanning process to detect a connectable main device P (step S2). Then, the control unit 10 of the subordinate device D1 performs mutual authentication with the main device P detected as a connection partner as a result of the scanning process, and creates connection information. Then, the subordinate device D1 exchanges connection information with the main device P, performs processing such as authentication / key exchange using the connection information, and starts wireless communication (step S3). Further, when the subordinate device D1 refers to the connection information storage flag stored in the nonvolatile memory 13 and the connection information storage flag indicates that the connection information is stored in the nonvolatile memory 13 (step S4: YES). The created connection information is stored in the nonvolatile memory 13 and the RAM 11 (step S5), and the process proceeds to step S7. On the other hand, when the connection information storage flag indicates that the connection information is not stored in the nonvolatile memory 13 (step S4: NO), the subordinate device D1 stores the created connection information in the RAM 11 (step S6), and step S7. Proceed to Further, the subordinate device D1 stores the date and time at this time in the connection history information as the exchange date and time. Further, the subordinate device D1 appropriately detects the communication state in the main communication with the main device P, and stores the last connection date / time, the communication amount, the error rate, the communication speed, and the application history in the connection history information. .

ステップS7では、従属デバイスD1は、不揮発性メモリ13に記憶された接続情報削除条件情報を参照して、接続情報を削除する条件に合致する状態となったか否かを判断する。そして、従属デバイスD1は、接続情報を削除する条件に合致する状態となったと判断した場合、接続情報を削除すると判断し、接続情報を削除する条件に合致する状態となっていないと判断した場合、接続情報を削除しないと判断することになる。   In step S <b> 7, the subordinate device D <b> 1 refers to the connection information deletion condition information stored in the nonvolatile memory 13, and determines whether or not a state that matches the condition for deleting the connection information has been reached. When the subordinate device D1 determines that the connection information is to be deleted, the subordinate device D1 determines that the connection information is to be deleted, and the subordinate device D1 determines that the connection information is not in a state to be deleted. Therefore, it is determined not to delete the connection information.

ここで、副通信における通信状態に応じて接続情報を削除するか否かを判断する処理の手順について図7を用いて説明する。従属デバイスD1は、接続情報削除条件情報において、副通信において通信リンクが無効であるときに接続情報を削除することが設定されているか否かを判断し(ステップS20)、当該判断結果が否定的である場合、ステップS21に進み、接続情報の削除は不要であると判断する。一方、ステップS20の判断結果が肯定的である場合、従属デバイスD1は、副通信における通信状態を検出して、通信リンクが無効になったか否かを判断する(ステップS22)。当該判断結果が否定的である場合、従属デバイスD1は、ステップS22の処理を再度行う。ステップS22の判断結果が肯定的である場合、従属デバイスD1は、通信リンクが再度有効になるまでの時間が、第1制限時間を超えているか否かを判断する(ステップS23)。即ち、従属デバイスD1は、通信リンクが無効である状態が第1制限時間以上継続しているか否かを判断する。尚、第1制限時間の値は予め定められて例えば不揮発性メモリ13に記憶されているものとする。前者の時間が第1制限時間を超えた場合、従属デバイスD1は、接続情報を削除すると判断し(ステップS24)、前者の時間が第1制限時間を超えない場合、ステップS22に戻る。   Here, a processing procedure for determining whether or not to delete the connection information according to the communication state in the sub-communication will be described with reference to FIG. The subordinate device D1 determines in the connection information deletion condition information whether deletion of the connection information is set when the communication link is invalid in the secondary communication (step S20), and the determination result is negative. If YES, the process proceeds to step S21, and it is determined that it is not necessary to delete the connection information. On the other hand, when the determination result of step S20 is affirmative, the subordinate device D1 detects the communication state in the sub-communication and determines whether or not the communication link has become invalid (step S22). If the determination result is negative, the slave device D1 performs the process of step S22 again. If the determination result of step S22 is affirmative, the subordinate device D1 determines whether or not the time until the communication link becomes valid again exceeds the first time limit (step S23). That is, the subordinate device D1 determines whether or not the state where the communication link is invalid continues for the first time limit or more. It is assumed that the value of the first time limit is predetermined and stored in the nonvolatile memory 13, for example. If the former time exceeds the first time limit, the subordinate device D1 determines to delete the connection information (step S24), and if the former time does not exceed the first time limit, the process returns to step S22.

次に、主通信における通信状態に応じて接続情報を削除するか否かを判断する処理の手順について図8を用いて説明する。従属デバイスD1は、接続情報削除条件情報において、主通信において回線が切断されたときに接続情報を削除することが設定されているか否かを判断し(ステップS40)、当該判断結果が否定的である場合、ステップS45に進む。一方、ステップS40の判断結果が肯定的である場合、従属デバイスD1は、主通信における通信状態を検出して、回線が切断されか否かを判断する(ステップS41)。当該判断結果が肯定的である場合、従属デバイスD1は、回線が切断されてから再度接続されるまでの時間が、第2制限時間を超えているか否かを判断する(ステップS42)。即ち、従属デバイスD1は、回線が切断された状態が、第2制限時間以上継続しているか否かを判断する(ステップS42)。尚、第2制限時間の値は予め定められて例えば不揮発性メモリ13に記憶されているものとする。前者の時間が後者の第2制限時間を超えた場合、従属デバイスD1は、接続情報を削除すると判断し(ステップS43)、前者の時間が後者の第2制限時間を超えない場合、ステップS44に進む。ステップS41の判断結果が否定的である場合もステップS44に進む。   Next, a procedure of processing for determining whether or not to delete connection information according to the communication state in main communication will be described with reference to FIG. The subordinate device D1 determines whether or not the connection information deletion condition information is set to delete the connection information when the line is disconnected in the main communication (step S40), and the determination result is negative. If there is, the process proceeds to step S45. On the other hand, when the determination result of step S40 is affirmative, the subordinate device D1 detects the communication state in the main communication and determines whether or not the line is disconnected (step S41). If the determination result is affirmative, the subordinate device D1 determines whether or not the time from when the line is disconnected until it is reconnected exceeds the second time limit (step S42). That is, the subordinate device D1 determines whether or not the state where the line is disconnected continues for the second time limit or more (step S42). Note that the value of the second time limit is determined in advance and stored in, for example, the nonvolatile memory 13. If the former time exceeds the latter second time limit, the subordinate device D1 determines to delete the connection information (step S43). If the former time does not exceed the latter second time limit, the process goes to step S44. move on. Also when the determination result of step S41 is negative, the process proceeds to step S44.

ステップS44では、従属デバイスD1は、接続情報削除条件情報において、削除までの通信アイドル時間として設定されている接続許容有効期間が過ぎたか否かを判断する。当該判断結果が肯定的である場合、ステップS43に進み、当該判断結果が否定的である場合、ステップS45に進む。ステップS45では、従属デバイスD1は、接続情報削除条件情報において、通信の異常時、即ち、通信阻害要因が発生したときに接続情報を削除することが設定されているか否かを判断する。当該判断結果が否定的である場合、従属デバイスD1は、接続情報を削除しないと判断する(ステップS46)。   In step S44, the subordinate device D1 determines whether or not the connection allowable effective period set as the communication idle time until deletion in the connection information deletion condition information has passed. If the determination result is affirmative, the process proceeds to step S43, and if the determination result is negative, the process proceeds to step S45. In step S45, the subordinate device D1 determines whether or not the connection information deletion condition information is set to delete the connection information when communication is abnormal, that is, when a communication obstruction factor occurs. If the determination result is negative, the subordinate device D1 determines not to delete the connection information (step S46).

一方、ステップS45の判断結果が肯定的である場合、従属デバイスD1は、通信阻害要因が発生したか否かを判断する。具体的には、まず、従属デバイスD1は、主通信における通信トラフィックを検出して、通信が途絶えたか否かを判断し(ステップS47)、当該判断結果が肯定的である場合、ステップS48に進む。また、ステップS47の判断結果が否定的である場合、従属デバイスD1は、接続履歴情報を参照して、エラーレートが第1閾値以上か否かを判断する(ステップS49)。尚、第1閾値は予め定められて例えば不揮発性メモリ13に記憶されているものとする。当該判断結果が肯定的である場合、ステップS48に進み、当該判断結果が否定的である場合、ステップS50に進む。ステップS50では、従属デバイスD1は、接続履歴情報を参照して、通信速度が第2閾値以上か否かを判断する。尚、第2閾値は予め定められて例えば不揮発性メモリ13に記憶されているものとする。当該判断結果が肯定的である場合、ステップS48に進み、当該判断結果が否定的である場合、ステップS46に進む。   On the other hand, when the determination result of step S45 is affirmative, the subordinate device D1 determines whether or not a communication inhibition factor has occurred. Specifically, first, the subordinate device D1 detects communication traffic in the main communication and determines whether or not the communication is interrupted (step S47). If the determination result is affirmative, the process proceeds to step S48. . If the determination result in step S47 is negative, the subordinate device D1 determines whether or not the error rate is equal to or higher than the first threshold with reference to the connection history information (step S49). Note that the first threshold value is determined in advance and stored in, for example, the nonvolatile memory 13. If the determination result is affirmative, the process proceeds to step S48, and if the determination result is negative, the process proceeds to step S50. In step S50, the subordinate device D1 refers to the connection history information and determines whether or not the communication speed is equal to or higher than the second threshold value. Note that the second threshold value is determined in advance and stored in, for example, the nonvolatile memory 13. If the determination result is affirmative, the process proceeds to step S48, and if the determination result is negative, the process proceeds to step S46.

ステップS48では、従属デバイスD1は、主通信における通信状態として、所定の状態、即ち、通信阻害要因の発生が発生している状態が、一定時間以上継続しているか否かを判断する(ステップS48)。尚、一定時間の値は予め定められて例えば不揮発性メモリ13に記憶されているものとする。当該判断結果が肯定的である場合、ステップS43に進み、当該判断結果が否定的である場合、ステップS46に進む。   In step S48, the subordinate device D1 determines whether or not a predetermined state as a communication state in the main communication, that is, a state in which the occurrence of a communication hindrance factor has continued for a certain time or longer (step S48). ). Note that the value of the predetermined time is determined in advance and stored in, for example, the nonvolatile memory 13. If the determination result is positive, the process proceeds to step S43. If the determination result is negative, the process proceeds to step S46.

図6の説明に戻る。従属デバイスD1は、図7及び図8の処理の結果、接続情報を削除すると判断した場合(ステップS7:YES)、ステップS1に戻り、接続情報をRAM11から削除する。そして、従属デバイスD1は、ステップS2以降の処理を行う。一方、接続情報を削除しないと判断した場合(ステップS7:NO)、ステップS8に進む。ステップS8では、従属デバイスD1は、主デバイスPとの無線通信を継続し、接続を更新する状態になった場合には、ステップS2〜S3と同様にして、接続可能な主デバイスPを検出して、当該主デバイスPと相互認証を行って接続情報を交換し、当該接続情報を用いた認証/鍵交換などの処理を行って、無線通信を開始し、ステップS7に戻る。尚、ここで主デバイスPと交換する接続情報が不揮発性メモリ13に既に記憶されている場合、従属デバイスD1は、当該接続情報を新たに作成せずに、記憶された接続情報を用いることができる。   Returning to the description of FIG. If the subordinate device D1 determines that the connection information is to be deleted as a result of the processing of FIGS. 7 and 8 (step S7: YES), the subordinate device D1 returns to step S1 and deletes the connection information from the RAM 11. Then, the subordinate device D1 performs the processing after step S2. On the other hand, if it is determined not to delete the connection information (step S7: NO), the process proceeds to step S8. In step S8, the subordinate device D1 detects the connectable main device P in the same manner as in steps S2 to S3 when the wireless communication with the main device P is continued and the connection is updated. Then, mutual authentication is performed with the main device P to exchange connection information, processing such as authentication / key exchange using the connection information is performed, wireless communication is started, and the process returns to step S7. If the connection information to be exchanged with the main device P is already stored in the nonvolatile memory 13, the subordinate device D1 may use the stored connection information without newly creating the connection information. it can.

以上のような構成によって、主デバイスと接続情報を副通信により交換して無線通信を行う従属デバイスに対して、複数の主デバイスが存在し得る場合、交換した接続情報を一時的に記憶した後、これを削除することが可能である。これにより、従属デバイスが、近傍に存在する以前接続したことがある主デバイスに意図せず自動的につながってしまうことを回避することができる。また、セキュリティの低下を回避することができる。そして、主デバイスを従属デバイスに直感的で簡単に接続させて通信することが実現可能になる。このことは、コストアップの抑制や、実装や操作性の簡略化にもつながる。   With the above configuration, when there are multiple main devices for subordinate devices that perform wireless communication by exchanging connection information with the main device through sub-communication, after the exchanged connection information is temporarily stored It is possible to delete this. As a result, it is possible to avoid that the subordinate device is not automatically connected to the main device that has been connected before and exists in the vicinity. Further, it is possible to avoid a decrease in security. Then, it is possible to communicate by connecting the main device to the subordinate device intuitively and easily. This leads to suppression of cost increase and simplification of mounting and operability.

また、ユーザの設定により、接続情報を不揮発性メモリ13に保存することもできるため、次回の接続時に、保存された接続情報を使用することができる。このため、接続情報を保存するか否かという単純な実装の追加による容易な操作性は保持しつつ、接続の利便性を維持することが可能になる。このため、例えば、従属デバイスの管理者がメンテナンスのために従属デバイスを主デバイスに容易に再接続させる場合に備えて、主デバイス1つ分の接続情報を従属デバイスに保存させておく、などの柔軟な運用が可能である。   Further, since the connection information can be stored in the nonvolatile memory 13 according to the user setting, the stored connection information can be used at the next connection. For this reason, it is possible to maintain the convenience of connection while maintaining easy operability by adding a simple implementation of whether or not to save connection information. For this reason, for example, in case the administrator of the subordinate device easily reconnects the subordinate device to the main device for maintenance, the connection information for one main device is stored in the subordinate device. Flexible operation is possible.

また、接続情報を削除する条件をユーザが設定することができるため、従属デバイスの用途などに応じて接続情報を削除するようにすることができる。このため、管理者などが条件を状況や用途に応じてチューニングすることが可能であり、より柔軟な運用をすることが可能になる。   Further, since the user can set conditions for deleting the connection information, the connection information can be deleted according to the usage of the subordinate device. For this reason, it is possible for an administrator or the like to tune the conditions according to the situation or application, and it is possible to operate more flexibly.

また、接続情報を削除する条件としては、例えば、副通信における通信リンクが無効になった状態の発生を契機として設定することができる。また、ユーザが意図せず副通信における通信リンクを無効にしてしまった場合、主通信における通信も行えなくなってしまう可能性があり、逆にユーザビリティの低下を招く恐れがある。例えば、上述のようにNFCなどの至近距離無線通信により副通信を行う場合、主通信におけるアプリケーションによる通信中に主デバイスの落下などで副通信における通信リンクが無効になってしまうケースなどが想定できる。これを回避するために、副通信において通信リンクが無効になった状態であるときもその状態が第1制限時間以上継続した場合に接続情報を削除するようにする。このように接続情報を削除するまでの時間にある程度の余裕を持たせることで、ユーザビリティを向上させ、その時間を調整可能にすることでアプリケーションの運用上より有効である。   Further, the condition for deleting the connection information can be set, for example, triggered by the occurrence of a state in which the communication link in the sub-communication is invalid. Further, if the user unintentionally disables the communication link in the sub-communication, the communication in the main communication may not be performed, and conversely, the usability may be reduced. For example, in the case where sub-communication is performed by short-range wireless communication such as NFC as described above, it may be assumed that the communication link in sub-communication becomes invalid due to the fall of the main device during communication by the application in main communication. . In order to avoid this, the connection information is deleted when the communication link is disabled in the sub-communication when the state continues for the first time limit or longer. In this way, by giving a certain margin to the time until the connection information is deleted, usability is improved, and the time can be adjusted, which is more effective in application operation.

また、副通信における通信リンクが意図せずに有効になっている状態においても、接続情報を削除するまでの時間を設定可能であり、この設定に応じて、接続情報を削除することにより接続を強制的に切断することが可能になる。このような構成は、例えば、主デバイスが置き忘れられた場合や、主デバイスとの接続に対して課金がなされる場合などに有効である。   In addition, even when the communication link in the secondary communication is enabled unintentionally, it is possible to set the time until the connection information is deleted, and the connection can be established by deleting the connection information according to this setting. It becomes possible to forcibly disconnect. Such a configuration is effective, for example, when the main device is misplaced or when a charge is made for connection with the main device.

また、接続情報を削除する条件としては、例えば、主通信における通信状態として、例えば通信が途絶えて通信トラフィックがない状態や、電波障害などの通信阻害要因が発生してエラーレートが著しく高くなった状態や、何らかの通信阻害要因により通信速度が低下した状態や、主通信において回線切断された状態などの発生を契機として設定することができる。また、このような状態の少なくとも1つの状態が一定時間続いた場合に接続情報を削除するようにすることにより、柔軟な実装を実現可能である。また、このような構成によれば、副通信における通信リンクが有効である状態であっても、接続情報をより効果的に管理し運用することが可能になる。   In addition, as a condition for deleting the connection information, for example, as a communication state in the main communication, for example, a state where communication is interrupted and there is no communication traffic, or a communication obstruction factor such as a radio wave interference has occurred, the error rate has become extremely high It can be set as triggered by the occurrence of a state, a state in which the communication speed has decreased due to some communication obstruction factor, or a state in which the line is disconnected in the main communication. Further, flexible mounting can be realized by deleting the connection information when at least one of these states continues for a certain period of time. Further, according to such a configuration, it is possible to manage and operate the connection information more effectively even when the communication link in the sub communication is valid.

[変形例]
なお、本発明は前記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、前記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。また、以下に例示するような種々の変形が可能である。
[Modification]
Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Moreover, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined. Further, various modifications as exemplified below are possible.

<変形例1>
上述した実施の形態の無線通信システムにおいては、従属デバイスD1が複合機であるとしたが、これに限らず、プリンタ装置、スキャナ装置、ファックス装置、パーソナルコンピュータ又は携帯情報端末などの無線通信装置であっても良い。また、従属デバイスの数は1つとしたが、複数であっても良い。同様に、主デバイスPの数は3つとしたがこれに限らない。
<Modification 1>
In the wireless communication system of the above-described embodiment, the slave device D1 is a multi-function device. However, the wireless communication device is not limited to this, and is a wireless communication device such as a printer device, a scanner device, a fax device, a personal computer, or a portable information terminal. There may be. Further, although the number of subordinate devices is one, it may be plural. Similarly, the number of main devices P is three, but is not limited thereto.

<変形例2>
上述した実施の形態において、従属デバイスD1で実行される各種プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、当該プログラムを、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成しても良い。
<Modification 2>
In the embodiment described above, various programs executed by the subordinate device D1 may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Further, the program is recorded in a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, a DVD (Digital Versatile Disk), etc. in a file in an installable or executable format. May be configured to be provided.

<変形例3>
上述した実施の形態においては、従属デバイスD1は不揮発性メモリ13を備えるように構成したが、これを備えない構成であっても良く、この場合、接続履歴情報及び接続情報は、例えばRAM11のみに記憶されるようにしても良い。また、接続履歴情報及び接続情報を別々の記憶手段に記憶するようにしても良い。
<Modification 3>
In the embodiment described above, the slave device D1 is configured to include the non-volatile memory 13. However, the slave device D1 may be configured not to include this, and in this case, the connection history information and the connection information are stored only in the RAM 11, for example. It may be stored. Further, the connection history information and the connection information may be stored in separate storage means.

また、接続情報を一時的に記憶する一時記憶手段としてRAM11を用いたが、これに限らず、例えば、接続情報を一時的に記憶するための一時記憶領域を不揮発性メモリ13に設け、この一時記憶領域を一時記憶手段として用いても良い。   The RAM 11 is used as temporary storage means for temporarily storing connection information. However, the present invention is not limited to this. For example, a temporary storage area for temporarily storing connection information is provided in the nonvolatile memory 13, and this temporary memory is temporarily stored. The storage area may be used as temporary storage means.

<変形例4>
上述した実施の形態においては、接続情報を削除する条件は、上述のものに限らない。また、接続情報を削除する処理の手順は図6〜8に示したものに限らない。
<Modification 4>
In the embodiment described above, the conditions for deleting the connection information are not limited to those described above. Further, the processing procedure for deleting the connection information is not limited to that shown in FIGS.

また、NFCにより副通信を行うようにしたが、これに限らず、他の通信方式により副通信を行うようにしても良い。更に、WUSBの規格に従って主通信を行うようにしたが、主従関係のある2つの通信装置間で接続情報を交換する通信規格であれば、他の通信規格に従って主通信を行うようにしても良い。   Further, the sub-communication is performed by NFC, but the present invention is not limited to this, and the sub-communication may be performed by another communication method. Furthermore, the main communication is performed according to the WUSB standard, but the main communication may be performed according to another communication standard as long as it is a communication standard for exchanging connection information between two communication devices having a master-slave relationship. .

一実施の形態にかかる無線通信システムの構成を例示する図である。It is a figure which illustrates the structure of the radio | wireless communications system concerning one Embodiment. 同実施の形態にかかる従属デバイスD1の構成を示すブロック図である。It is a block diagram which shows the structure of the subordinate device D1 concerning the embodiment. 同実施の形態にかかる接続情報のデータ構成を例示する図である。It is a figure which illustrates the data structure of the connection information concerning the embodiment. 同実施の形態にかかる不揮発性メモリ13に記憶される接続履歴情報のデータ構成を例示する図である。It is a figure which illustrates the data structure of the connection history information memorize | stored in the non-volatile memory 13 concerning the embodiment. 同実施の形態にかかる接続情報の保存に関する設定をユーザが行うための設定画面を例示する図である。It is a figure which illustrates the setting screen for a user to perform the setting regarding the preservation | save of the connection information concerning the embodiment. 同実施の形態にかかる従属デバイスD1が無線通信を行う際に行う接続情報の保存及び削除に関する処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process regarding the preservation | save and deletion of the connection information performed when the subordinate device D1 concerning the embodiment performs wireless communication. 同実施の形態にかかる副通信における通信状態に応じて接続情報を削除するか否かを判断する処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process which judges whether connection information is deleted according to the communication state in the sub communication concerning the embodiment. 同実施の形態にかかる主通信における通信状態に応じて接続情報を削除するか否かを判断する処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process which judges whether connection information is deleted according to the communication state in the main communication concerning the embodiment.

符号の説明Explanation of symbols

10 制御部(検出手段、記憶制御手段)
11 RAM(一時記憶手段)
12 ROM
13 不揮発性メモリ(記憶手段)
14 無線通信デバイス(主通信手段、副通信手段)
20 アプリケーション部
21 セキュリティ制御部
22 ネットワーク制御部
23 オペポート制御部(第1設定手段〜第9設定手段)
24 ファイル制御部
25 メモリ制御部
26 システム制御部
27 OS部
28 ネットワークプロトコル
29 無線通信デバイスドライバ
30 セキュリティ情報
D1 従属デバイス(従属側の通信装置)
P,P1,P2,P3 主デバイス(主側の通信装置)
10 Control unit (detection means, storage control means)
11 RAM (temporary storage means)
12 ROM
13 Nonvolatile memory (storage means)
14 Wireless communication devices (main communication means, sub-communication means)
20 application section 21 security control section 22 network control section 23 operation port control section (first setting means to ninth setting means)
24 file control unit 25 memory control unit 26 system control unit 27 OS unit 28 network protocol 29 wireless communication device driver 30 security information D1 subordinate device (subordinate side communication device)
P, P1, P2, P3 Main device (main side communication device)

Claims (21)

主従関係がある2つの通信装置間で互いを識別するための識別情報と通信データとを含む情報を暗号化して第1の無線通信を行う主通信手段を備える従属側の通信装置であって、
複数存在し得る主側の通信装置のうち、当該従属側の通信装置に接続可能な主側の通信装置を検出する検出手段と、
前記検出手段が検出した前記主側の通信装置と無線通信を行う際に用いる前記識別情報と前記情報の暗号化に用いる暗号鍵とを含む接続情報を、前記主側の通信装置と第2の無線通信を行うことにより交換する副通信手段と、
前記副通信手段が交換した前記接続情報を一時的に記憶する一時記憶手段と、
前記副通信手段及び前記主通信手段のうち少なくとも一方における通信状態に応じて、前記一時記憶手段に記憶された前記接続情報を削除する削除手段とを更に備える
ことを特徴とする通信装置。
A slave-side communication device comprising main communication means for performing first wireless communication by encrypting information including identification information and communication data for identifying each other between two communication devices having a master-slave relationship,
Detecting means for detecting a main communication device connectable to the subordinate communication device among a plurality of main communication devices that may exist;
Connection information including the identification information used when performing wireless communication with the main communication device detected by the detection means and an encryption key used for encrypting the information is transmitted to the main communication device and the second communication device. Sub-communication means exchanged by performing wireless communication;
Temporary storage means for temporarily storing the connection information exchanged by the sub-communication means;
A communication apparatus, further comprising: a deletion unit that deletes the connection information stored in the temporary storage unit according to a communication state in at least one of the sub-communication unit and the main communication unit.
前記削除手段は、前記副通信手段における通信状態として、前記副通信手段における通信リンクが無効である場合に、前記接続情報を削除する
ことを特徴とする請求項1に記載の通信装置。
The communication device according to claim 1, wherein the deletion unit deletes the connection information when a communication link in the sub communication unit is invalid as a communication state in the sub communication unit.
前記削除手段は、前記副通信手段における通信リンクが無効である場合且つ前記通信リンクが無効である状態が第1制限時間以上継続した場合に、前記接続情報を削除する
ことを特徴とする請求項1又は2に記載の通信装置。
The deletion means deletes the connection information when a communication link in the sub-communication means is invalid and when the communication link is invalid for a first time limit or longer. The communication apparatus according to 1 or 2.
前記第1制限時間を予め設定する第1設定手段を更に備え、
前記削除手段は、前記副通信手段における通信リンクが無効である場合且つ前記通信リンクが無効である状態が、前記第1設定手段により設定された前記第1制限時間以上継続した場合、前記接続情報を削除する
ことを特徴とする請求項3に記載の通信装置。
A first setting means for presetting the first time limit;
When the communication link in the sub-communication means is invalid and the state in which the communication link is invalid continues for the first time limit set by the first setting means, the deleting means is the connection information The communication device according to claim 3, wherein the communication device is deleted.
前記削除手段は、前記副通信手段における通信状態として、前記副通信手段における通信リンクが有効である場合且つ前記通信リンクが有効である状態が第2制限時間以上継続した場合に、前記接続情報を削除する
ことを特徴とする請求項1乃至4のいずれか一項に記載の通信装置。
The deletion means, as a communication state in the sub-communication means, when the communication link in the sub-communication means is valid and when the communication link is valid continues for a second time limit or more, It deletes. The communication apparatus as described in any one of Claims 1 thru | or 4 characterized by the above-mentioned.
前記第2制限時間を予め設定する第2設定手段を更に備え、
前記削除手段は、前記副通信手段における通信リンクが有効である場合且つ前記通信リンクが有効である状態が、前記第2設定手段により設定された前記第2制限時間以上継続した場合、前記接続情報を削除する
ことを特徴とする請求項5に記載の通信装置。
A second setting means for presetting the second time limit;
When the communication link in the sub-communication unit is valid and the state in which the communication link is valid continues for the second time limit set by the second setting unit, the deletion unit is The communication device according to claim 5, wherein the communication device is deleted.
前記削除手段は、前記主通信手段における通信状態として、前記主通信手段における通信トラフィックに応じて、前記接続情報を削除する
ことを特徴とする請求項1乃至6のいずれか一項に記載の通信装置。
The communication according to any one of claims 1 to 6, wherein the deletion unit deletes the connection information as a communication state in the main communication unit according to communication traffic in the main communication unit. apparatus.
前記通信トラフィックに応じて前記接続情報を削除するか否かを予め設定する第3設定手段を更に備え、
前記削除手段は、前記通信トラフィックに応じて前記接続情報を削除することが前記第3設定手段により設定されている場合、前記通信トラフィックに応じて、前記接続情報を削除する
ことを特徴とする請求項7に記載の通信装置。
Further comprising third setting means for presetting whether to delete the connection information according to the communication traffic;
The deletion unit is configured to delete the connection information according to the communication traffic when the third setting unit sets deletion of the connection information according to the communication traffic. Item 8. The communication device according to Item 7.
前記削除手段は、前記主通信手段における通信状態として、前記主通信手段におけるエラーレートに応じて、前記接続情報を削除する
ことを特徴とする請求項1乃至8のいずれか一項に記載の通信装置。
The communication according to any one of claims 1 to 8, wherein the deletion unit deletes the connection information as a communication state in the main communication unit according to an error rate in the main communication unit. apparatus.
前記エラーレートに応じて前記接続情報を削除するか否かを予め設定する第4設定手段を更に備え、
前記削除手段は、前記エラーレートに応じて前記接続情報を削除することが前記第3設定手段により設定されている場合、前記エラーレートに応じて、前記接続情報を削除する
ことを特徴とする請求項9に記載の通信装置。
A fourth setting means for presetting whether to delete the connection information according to the error rate;
The deletion unit deletes the connection information according to the error rate when the third setting unit sets deletion of the connection information according to the error rate. Item 10. The communication device according to Item 9.
前記削除手段は、前記主通信手段における通信状態として、前記主通信手段における通信速度に応じて、前記接続情報を削除する
ことを特徴とする請求項1乃至10のいずれか一項に記載の通信装置。
The communication according to any one of claims 1 to 10, wherein the deletion unit deletes the connection information according to a communication speed in the main communication unit as a communication state in the main communication unit. apparatus.
前記通信速度に応じて前記接続情報を削除するか否かを予め設定する第5設定手段を更に備え、
前記削除手段は、前記通信速度に応じて前記接続情報を削除することが前記第5設定手段により設定されている場合、前記通信速度に応じて、前記接続情報を削除する
ことを特徴とする請求項11に記載の通信装置。
A fifth setting means for presetting whether to delete the connection information according to the communication speed;
The deletion means deletes the connection information according to the communication speed when the fifth setting means sets that the connection information is deleted according to the communication speed. Item 12. The communication device according to Item 11.
前記削除手段は、前記主通信手段における通信状態として、前記主通信手段における回線が切断された場合に、前記接続情報を削除する
ことを特徴とする請求項1乃至12のいずれか一項に記載の通信装置。
The said deletion means deletes the said connection information, when the line | wire in the said main communication means is cut | disconnected as the communication state in the said main communication means. Communication equipment.
前記回線が切断された場合に前記接続情報を削除するか否かを予め設定する第6設定手段を更に備え、
前記削除手段は、前記回線が切断された場合に前記接続情報を削除することが前記第6設定手段により設定されている場合、前記主通信手段における回線が切断された場合に、前記接続情報を削除する
ことを特徴とする請求項13に記載の通信装置。
A sixth setting means for setting in advance whether or not to delete the connection information when the line is disconnected;
The deletion means sets the connection information when the line in the main communication means is disconnected, when the sixth setting means sets the deletion of the connection information when the line is disconnected. The communication device according to claim 13, wherein the communication device is deleted.
前記削除手段は、前記主通信手段の通信状態として所定の状態が、一定時間以上継続した場合に、前記接続情報を削除する
ことを特徴とする請求項7乃至14のいずれか一項に記載の通信装置。
The said deletion means deletes the said connection information, when a predetermined state continues as a communication state of the said main communication means more than a fixed time, The connection information as described in any one of Claims 7 thru | or 14 characterized by the above-mentioned. Communication device.
前記一定時間を予め設定する第7設定手段を更に備え、
前記削除手段は、前記所定の状態が、前記第7設定手段により設定された前記一定時間以上継続した場合に、前記接続情報を削除する
ことを特徴とする請求項15に記載の通信装置。
A seventh setting means for presetting the predetermined time;
The communication apparatus according to claim 15, wherein the deletion unit deletes the connection information when the predetermined state continues for the predetermined time set by the seventh setting unit.
前記接続許容有効期間を予め設定する第8設定手段を更に備え、
前記削除手段は、前記回線が接続されている状態が、前記第8設定手段により設定された前記接続許容有効期間以上継続した場合に、前記接続情報を削除する
ことを特徴とする請求項1乃至16のいずれか一項に記載の通信装置。
And further comprising an eighth setting means for presetting the connection allowable effective period,
The deletion means deletes the connection information when the state in which the line is connected continues for the connection allowable effective period set by the eighth setting means. The communication device according to any one of 16.
前記接続情報を記憶可能な記憶手段と、
前記接続情報を前記記憶手段に記憶させるか否かを予め設定する第9設定手段と、
前記接続情報を前記記憶手段に記憶させることが前記第9設定手段に設定されている場合、前記接続情報を前記記憶手段に記憶させる記憶制御手段とを更に備える
ことを特徴とする請求項1乃至17のいずれか一項に記載の通信装置。
Storage means capable of storing the connection information;
Ninth setting means for presetting whether to store the connection information in the storage means;
The storage control means for storing the connection information in the storage means when the ninth setting means is set to store the connection information in the storage means. The communication device according to any one of 17.
前記主通信手段は、WUSB(Wireless Universal Serial Bus)の規格に従って第1の無線通信を行う
ことを特徴とする請求項1乃至18のいずれか一項に通信装置。
The communication device according to any one of claims 1 to 18, wherein the main communication unit performs first wireless communication in accordance with a WUSB (Wireless Universal Serial Bus) standard.
前記副通信手段は、NFC(Near Field Communication)により第2の無線通信を行う
ことを特徴とする請求項1乃至19のいずれか一項に通信装置。
The communication device according to any one of claims 1 to 19, wherein the sub-communication unit performs second wireless communication by NFC (Near Field Communication).
主従関係がある2つの通信装置間で互いを識別するための識別情報と通信データとを含む情報を暗号化して第1の無線通信を行う主通信手段を備える従属側の通信装置で実現される通信方法であって、
前記従属側の通信装置は、検出手段と、副通信手段と、記憶制御手段と、削除手段とを備え、
前記検出手段が、複数存在し得る主側の通信装置のうち、当該従属側の通信装置に接続可能な主側の通信装置を検出する検出ステップと、
前記副通信手段が、前記検出ステップで検出した前記主側の通信装置と無線通信を行う際に用いる前記識別情報と前記情報の暗号化に用いる暗号鍵とを含む接続情報を、前記主側の通信装置と第2の無線通信を行うことにより交換する副通信ステップと、
前記記憶制御手段が、前記副通信ステップで交換した前記接続情報を一時記憶手段に一時的に記憶する記憶制御ステップと、
前記削除手段が、前記副通信手段及び前記主通信手段のうち少なくとも一方における通信状態に応じて、前記一時記憶手段に記憶された前記接続情報を削除する削除ステップとを
を含むことを特徴とする通信方法。
This is realized by a slave communication device having a main communication means for performing first wireless communication by encrypting information including identification information for identifying each other and communication data between two communication devices having a master-slave relationship. A communication method,
The slave communication device includes a detection unit, a sub-communication unit, a storage control unit, and a deletion unit,
A detecting step of detecting a main communication device connectable to the subordinate communication device among the plurality of main communication devices that may be present;
The sub-communication means obtains connection information including the identification information used when performing wireless communication with the main-side communication device detected in the detection step and an encryption key used for encrypting the information. A sub-communication step for exchanging by performing second wireless communication with the communication device;
A storage control step in which the storage control means temporarily stores the connection information exchanged in the sub-communication step in a temporary storage means;
The deletion unit includes a deletion step of deleting the connection information stored in the temporary storage unit according to a communication state in at least one of the sub-communication unit and the main communication unit. Communication method.
JP2008109313A 2008-04-18 2008-04-18 Communication apparatus and communication method Active JP5146075B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008109313A JP5146075B2 (en) 2008-04-18 2008-04-18 Communication apparatus and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008109313A JP5146075B2 (en) 2008-04-18 2008-04-18 Communication apparatus and communication method

Publications (2)

Publication Number Publication Date
JP2009260821A true JP2009260821A (en) 2009-11-05
JP5146075B2 JP5146075B2 (en) 2013-02-20

Family

ID=41387641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008109313A Active JP5146075B2 (en) 2008-04-18 2008-04-18 Communication apparatus and communication method

Country Status (1)

Country Link
JP (1) JP5146075B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011061326A (en) * 2009-09-07 2011-03-24 Brother Industries Ltd Wireless communication device and computer program
JP2011217170A (en) * 2010-03-31 2011-10-27 Fujitsu Ltd Method, apparatus and system for wireless connection
US8739263B2 (en) 2010-03-16 2014-05-27 Ricoh Company, Ltd. Communication apparatus, wireless communication system, and method of setting association information
US9661550B2 (en) 2013-12-20 2017-05-23 Ricoh Company, Ltd. Communication apparatus, communication method, and communication system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001237875A (en) * 2000-02-21 2001-08-31 Nippon Telegr & Teleph Corp <Ntt> Relay path built-up method for radio packet
JP2003032261A (en) * 2001-07-19 2003-01-31 Sony Corp Radio system, radio method, communication terminal, communication method, extension device and program
JP2006127135A (en) * 2004-10-28 2006-05-18 Canon Inc Network system, control method thereof and program
JP2006222595A (en) * 2005-02-09 2006-08-24 Nissan Motor Co Ltd Radio communication apparatus and method
JP2006287860A (en) * 2005-04-05 2006-10-19 Canon Inc Composite function printer
JP2006345451A (en) * 2005-06-10 2006-12-21 Canon Inc Management system and control method
JP2007300532A (en) * 2006-05-02 2007-11-15 Sony Corp Wireless communication device, wireless communication method, wireless communication system, and computer program
JP2008017446A (en) * 2006-06-08 2008-01-24 Nec Electronics Corp Device and connection control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001237875A (en) * 2000-02-21 2001-08-31 Nippon Telegr & Teleph Corp <Ntt> Relay path built-up method for radio packet
JP2003032261A (en) * 2001-07-19 2003-01-31 Sony Corp Radio system, radio method, communication terminal, communication method, extension device and program
JP2006127135A (en) * 2004-10-28 2006-05-18 Canon Inc Network system, control method thereof and program
JP2006222595A (en) * 2005-02-09 2006-08-24 Nissan Motor Co Ltd Radio communication apparatus and method
JP2006287860A (en) * 2005-04-05 2006-10-19 Canon Inc Composite function printer
JP2006345451A (en) * 2005-06-10 2006-12-21 Canon Inc Management system and control method
JP2007300532A (en) * 2006-05-02 2007-11-15 Sony Corp Wireless communication device, wireless communication method, wireless communication system, and computer program
JP2008017446A (en) * 2006-06-08 2008-01-24 Nec Electronics Corp Device and connection control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011061326A (en) * 2009-09-07 2011-03-24 Brother Industries Ltd Wireless communication device and computer program
US8739263B2 (en) 2010-03-16 2014-05-27 Ricoh Company, Ltd. Communication apparatus, wireless communication system, and method of setting association information
JP2011217170A (en) * 2010-03-31 2011-10-27 Fujitsu Ltd Method, apparatus and system for wireless connection
US8744447B2 (en) 2010-03-31 2014-06-03 Fujitsu Limited Method, apparatus, and system for wireless connection
US9661550B2 (en) 2013-12-20 2017-05-23 Ricoh Company, Ltd. Communication apparatus, communication method, and communication system

Also Published As

Publication number Publication date
JP5146075B2 (en) 2013-02-20

Similar Documents

Publication Publication Date Title
JP5458796B2 (en) Communication apparatus and communication control method
JP5945910B2 (en) Wireless communication device
JP4929040B2 (en) Communication apparatus and communication method
US7903646B2 (en) Wireless communication system allowing group identification information to be publicly available and to be hidden, wireless access point device, and communication method and program for wireless access point device
JP2009071657A (en) Communication device and communication method
JP5560639B2 (en) Image processing apparatus, method executed by image processing apparatus, program, and recording medium
US11178607B2 (en) Method of deleting SSID of access point stored in information processing apparatus
EP1868314B1 (en) Communication apparatus and method thereof
JP5899971B2 (en) Wireless communication device
JP5418460B2 (en) Communication control device and communication system
JP4455076B2 (en) Wireless communication apparatus authentication method, wireless communication apparatus, computer program, and computer-readable recording medium
JP5146075B2 (en) Communication apparatus and communication method
JP2016181774A (en) Image formation apparatus
EP1530318A1 (en) Electronic apparatus for encryption key updating
JP5481800B2 (en) Communication apparatus and communication method
JP6620587B2 (en) Image processing apparatus, IP address notification method, IP address notification program, and communication system
JP6407598B2 (en) Relay device, relay method, and relay program
JP5945735B2 (en) Information processing device
JP2005303676A (en) Image forming device, paired key generating method, and computer program
JP5597285B2 (en) Communication apparatus and communication method
JP6365594B2 (en) Wireless communication device
JP2017028443A (en) Radio communication system, radio relay device, management device, and program
JP6737353B2 (en) Communication equipment
JP6376250B2 (en) Wireless communication device
JP5312515B2 (en) Communication apparatus and communication method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120802

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120807

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121002

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121030

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121112

R151 Written notification of patent or utility model registration

Ref document number: 5146075

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151207

Year of fee payment: 3