JP6298514B1 - Bluetooth communication system - Google Patents

Bluetooth communication system Download PDF

Info

Publication number
JP6298514B1
JP6298514B1 JP2016214052A JP2016214052A JP6298514B1 JP 6298514 B1 JP6298514 B1 JP 6298514B1 JP 2016214052 A JP2016214052 A JP 2016214052A JP 2016214052 A JP2016214052 A JP 2016214052A JP 6298514 B1 JP6298514 B1 JP 6298514B1
Authority
JP
Japan
Prior art keywords
slave
master
mode
authentication information
authentication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016214052A
Other languages
Japanese (ja)
Other versions
JP2018074457A (en
Inventor
周平 近馬
周平 近馬
Original Assignee
ジーエルソリューションズ株式会社
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 ジーエルソリューションズ株式会社 filed Critical ジーエルソリューションズ株式会社
Priority to JP2016214052A priority Critical patent/JP6298514B1/en
Application granted granted Critical
Publication of JP6298514B1 publication Critical patent/JP6298514B1/en
Publication of JP2018074457A publication Critical patent/JP2018074457A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

【課題】ペアリングなしでも、不正な認証行為を排除した通信を確立すること、又、予め通信を確立することが認められた機器間のみで通信を確立して認証出来るブルートゥース通信システムを提供する。【解決手段】マスターモードでスレーブモードのスレーブ機器からの認証のための第一認証情報を受信したマスター機器が、マスターモードをスレーブモードに切り替えてスレーブ機器となり、マスターモードに切り替えたマスター機器に認証のための第二認証情報を送信する。スレーブ機器は第二認証情報送信後に、スレーブモードをマスターモードに切り替えてマスター機器になり、マスターモードでスレーブモードのスレーブ機器からの認証のための第二認証情報を受信したマスター機器が、マスターモードをスレーブモードに切り替えてスレーブ機器となり、スレーブモードをマスターモードに切り替えたマスター機器に認証のための第三認証情報を送信する構成とした。【選択図】図4To provide a Bluetooth communication system capable of establishing communication that eliminates an illegal authentication act without pairing, and establishing and authenticating communication only between devices that are permitted to establish communication in advance. . A master device that has received first authentication information for authentication from a slave device in the slave mode in the master mode changes to the slave mode by switching the master mode to the slave mode, and authenticates to the master device switched to the master mode. Send second authentication information for. After sending the second authentication information, the slave device switches the slave mode to the master mode to become the master device, and the master device that has received the second authentication information for authentication from the slave device in the slave mode in the master mode Is switched to the slave mode to become a slave device, and the third authentication information for authentication is transmitted to the master device that has switched the slave mode to the master mode. [Selection] Figure 4

Description

本発明は、ブルートゥース(Bluetooth(登録商標))通信システム及びブルートゥース通信方法に関し、詳しくはブルートゥース通信におけるマスター装置とスレーブ装置間における不正認証動作を排除するための通信システム及び通信方法に関する。   The present invention relates to a Bluetooth (registered trademark) communication system and a Bluetooth communication method, and more particularly, to a communication system and a communication method for eliminating an unauthorized authentication operation between a master device and a slave device in Bluetooth communication.

ブルートゥース(Bluetooth(登録商標))通信では、他の通信機器に接続を試みるスレーブ機器とスレーブ機器から接続を試みられたマスター機器間で行う通信であり、マスター機器として作用するためのマスターモードとスレーブ機器として作用するためのスレーブモードでは通信時の動作形態の一部が異なっている。尚、この動作の異なりは、夫々の機器の記憶装置に記憶されたソフトウェア及びハードウェアの違いにより生じるものである。   In Bluetooth (Bluetooth (registered trademark)) communication, communication is performed between a slave device trying to connect to another communication device and a master device trying to connect from the slave device, and a master mode and slave for acting as a master device. In the slave mode for acting as a device, part of the operation mode during communication is different. This difference in operation is caused by a difference in software and hardware stored in the storage device of each device.

このようなブルートゥース通信において、様々なデータの送受信を行うに先立って、予め通信が認められた機器間のみで通信を確立出来るように、マスター機器とスレーブ機器間において、アドバタイズ動作にて互いを認証し合い、通信の許可を行った後に認証データ以外のデータの送受信を行う方法が採用されている(特許文献1及び特許文献2)。   In such Bluetooth communication, prior to sending and receiving various data, the master device and the slave device authenticate each other by an advertising operation so that communication can be established only between devices that are allowed to communicate in advance. In other words, a method of transmitting / receiving data other than authentication data after permitting communication is employed (Patent Document 1 and Patent Document 2).

そして、スレーブ機器から送信された情報に基づいてマスター機器が当該情報を判断して認証が行われ、通信が確立されている。即ち、スレーブ機器は情報の送信のみを行い、マスター機器は当該情報の受信と当該情報の確認を行うという一方向の認証作業が行われている。   Then, the master device determines the information based on the information transmitted from the slave device, performs authentication, and communication is established. That is, a one-way authentication operation is performed in which the slave device only transmits information, and the master device receives the information and confirms the information.

しかし、ブルートゥース通信において、マスター機器とスレーブ機器間において、アドバタイズ動作にて互いの認証データを認証し合う場合に、従来の認証方法では、本来は認証が許可されない状態であるのに、認証データが認証されてしまうことがあり、又、悪意による認証データ構築による等して不正な認証行為がなされる恐れがあった。   However, in Bluetooth communication, when authenticating each other's authentication data between the master device and the slave device by an advertising operation, the authentication data is not normally permitted in the conventional authentication method, There is a possibility that the user is authenticated, and there is a risk that an illegal authentication act may be performed by, for example, malicious authentication data construction.

そこで、データの送受信を行うに先立って、マスター機器とスレーブ機器間においてペアリングを行い、通信の許可を行った後にデータの送受信を行う方法が採用されている(特許文献2)。   Therefore, a method is adopted in which pairing is performed between a master device and a slave device prior to data transmission / reception, and data is transmitted / received after communication is permitted (Patent Document 2).

特開2002−367280号公報JP 2002-367280 A 特開2013−126092号公報JP 2013-126092 A

しかし、ペアリングは消費電力が大きく、出来るだけ電力を長持ちさせたいブルートゥース通信に用いられるマスター機器とスレーブ機器にとっては好ましくなかった。   However, pairing consumes a large amount of power, and is not preferable for master devices and slave devices used for Bluetooth communication that want to last as long as possible.

そこで、本発明は、ブルートゥース通信において、ペアリングなしでも、不正な認証行為を排除した通信を確立することを目的とする。又、より確実に不正な認証行為を排除した通信を確立することを目的とする。又、予め通信を確立することが認められた機器間のみで通信を確立して認証出来るようにすることを目的とする。   Accordingly, an object of the present invention is to establish communication in which an unauthorized authentication act is eliminated even without pairing in Bluetooth communication. Moreover, it aims at establishing the communication which excluded the unauthorized authentication act more reliably. It is another object of the present invention to establish and authenticate communication only between devices that are permitted to establish communication in advance.

以上のような課題を解決するための手段としての本発明は、ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第一機器であって、初期状態ではスレーブ機器であり、通信部が、初期状態ではマスター機器である第二機器に認証のための第二認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、マスターモードからスレーブモードに切り替えた前記第二機器からの認証のための第三認証情報を受信した場合に、受信データ判定部が前記第二機器を認証することを特徴とする機器である。   The present invention as a means for solving the above problems is a first device provided with a Bluetooth communication module used for Bluetooth communication, and is a slave device in an initial state, and a communication unit is in an initial state. When the second authentication information for authentication is transmitted to the second device that is the master device, the master-slave switching unit switches the slave mode to the master mode and operates as the master device, and the communication unit starts from the master mode. When the third authentication information for authentication from the second device switched to the slave mode is received, the received data determination unit authenticates the second device.

又、上記機器において、ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第一機器であって、初期状態ではマスター機器であり、マスターモードで通信部がスレーブモードの第二機器からの認証のための第一認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、初期状態ではスレーブ機器でありスレーブモードをマスターモードに切り替えた前記第二機器に認証のための第二認証情報を送信した場合に、前記マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、マスターモードで前記通信部がスレーブモードの前記第二機器からの認証のための第三認証情報を受信した場合に、前記受信データ判定部が前記第二機器を認証することを特徴とする機器である。 Further, in the above device, the first device is provided with a Bluetooth communication module used for Bluetooth communication, and is a master device in an initial state, and the communication unit in the master mode is used for authentication from the second device in the slave mode. When the first authentication information is received, the master / slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit is a slave device in the initial state and switches the slave mode to the master mode. When the second authentication information for authentication is transmitted to the second device, the master-slave switching unit switches the slave mode to the master mode and operates as a master device. In the master mode, the communication unit is in the slave mode. When receiving third authentication information for authentication from the second device In, the reception data determination unit is a device which is characterized by authenticating the second device.

又、ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第二機器であって、初期状態ではマスター機器であり、通信部が、初期状態ではスレーブ機器である第一機器から認証のための第二認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、スレーブモードからマスターモードに切り替えた前記第一機器に認証のための第三認証情報を送信することを特徴とする機器である。 Also, a second device having a Bluetooth communication module used for Bluetooth communication, which is a master device in the initial state, and the communication unit is a second device for authentication from the first device which is a slave device in the initial state. When the information is received, the master-slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit performs authentication for the first device that has switched from the slave mode to the master mode. A device characterized by transmitting three authentication information.

又、上記機器において、ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第二機器であって、初期状態ではスレーブ機器であり、スレーブモードで通信部がマスターモードの第一機器に認証のための第一認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、初期状態ではマスター機器でありマスターモードをスレーブモードに切り替えた前記第一機器から認証のための第二認証情報を受信した場合に、前記マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、スレーブモードで前記通信部がマスターモードの前記第一機器に認証のための第三認証情報を送信することを特徴とする機器である。 Further, in the above device, the second device having a Bluetooth communication module used for Bluetooth communication, which is a slave device in the initial state, and the communication unit in the slave mode is the first device for authentication to the first device in the master mode. When one authentication information is transmitted, the master-slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit is a master device in the initial state and the master mode is switched to the slave mode. When the second authentication information for authentication is received from the first device, the master-slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit is in the master mode in the slave mode. Sending third authentication information for authentication to the first device It is a device to.

又、マスター機器とスレーブ機器を備えたブルートゥース通信システムであって、初期状態ではスレーブ機器であり、通信部が、初期状態ではマスター機器である第二機器に認証のための第二認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、マスターモードからスレーブモードに切り替えた前記第二機器からの認証のための第三認証情報を受信した場合に、受信データ判定部が前記第二機器を認証する第一機器と、初期状態ではマスター機器であり、通信部が、初期状態ではスレーブ機器である第一機器から認証のための第二認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、スレーブモードからマスターモードに切り替えた前記第一機器に認証のための第三認証情報を送信する第二機器を備えることを特徴とするブルートゥース通信システムである。 Also, a Bluetooth communication system including a master device and a slave device, which is a slave device in the initial state, and the communication unit transmits second authentication information for authentication to the second device which is the master device in the initial state. In this case, the master-slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit performs the third authentication for authentication from the second device switched from the master mode to the slave mode. When the information is received, the received data determination unit authenticates the second device and the master device in the initial state, and the communication unit authenticates from the first device that is the slave device in the initial state. When the second authentication information is received, the master / slave switching unit switches the master mode to the slave mode, Operates as a, the communication unit is a Bluetooth communication system, characterized in that it comprises a second device that transmits third authentication information for authentication to said first device is switched from the slave mode to the master mode.

又、上記ブルートゥース通信システムにおいて、マスター機器とスレーブ機器を備えたブルートゥース通信システムであって、初期状態ではマスター機器であり、マスターモードで通信部がスレーブモードの第二機器からの認証のための第一認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、初期状態ではスレーブ機器でありスレーブモードをマスターモードに切り替えた前記第二機器に認証のための第二認証情報を送信した場合に、前記マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、マスターモードからスレーブモードに切り替えた前記第二機器からの認証のための第三認証情報を受信した場合に、受信データ判定部が前記第二機器を認証する第一機器と、初期状態ではスレーブ機器であり、スレーブモードで通信部がマスターモードの第一機器に認証のための第一認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、初期状態ではマスター機器でありマスターモードをスレーブモードに切り替えた前記第一機器から認証のための第二認証情報を受信した場合に、前記マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、スレーブモードからマスターモードに切り替えた前記第一機器に認証のための第三認証情報を送信する第二機器を備えることを特徴とするブルートゥース通信システムである。   In the Bluetooth communication system, the Bluetooth communication system includes a master device and a slave device. The Bluetooth communication system is a master device in an initial state, and the communication unit in the master mode is used for authentication from the second device in the slave mode. When one authentication information is received, the master-slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit is a slave device in the initial state and the slave mode is switched to the master mode. When the second authentication information for authentication is transmitted to the second device, the master-slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit switches from the master mode to the slave mode. For authentication from the switched second device When the authentication information is received, the received data determination unit authenticates the second device and the slave device in the initial state, and the communication unit in the slave mode authenticates the first device in the master mode. When the first authentication information is transmitted, the master / slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit is the master device in the initial state and switches the master mode to the slave mode. When the second authentication information for authentication is received from the first device, the master-slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit changes from the slave mode to the master mode. A second device that transmits third authentication information for authentication to the first device switched to A Bluetooth communication system characterized.

又、上記ブルートゥース通信システムにおいて、前記第一機器が前記第二機器からの認証のための第三認証情報を受信した場合であって、前記第一機器の受信データ判定部が前記第二機器を認証した場合に、前記第一機器と前記第二機器間でペアリングを行うことを特徴するブルートゥース通信システムである。   In the Bluetooth communication system, the first device receives third authentication information for authentication from the second device, and the received data determination unit of the first device The Bluetooth communication system is characterized in that, when authenticated, pairing is performed between the first device and the second device.

又、ブルートゥース通信方法であって、スレーブモードでマスターモードのマスター機器に認証のための第二認証情報を送信した後に、スレーブモードをマスターモードに切り替えてマスター機器になり、前記第二認証情報を受信した後にマスターモードをスレーブモードに切り替えたスレーブ機器からの認証のための第三認証情報を受信し、前記第三認証情報を送信した前記スレーブ機器を認証することを特徴とするブルートゥース通信方法である。 Further, in the Bluetooth communication method, after transmitting the second authentication information for authentication to the master device in the master mode in the slave mode, the slave mode is switched to the master mode to become the master device, and the second authentication information is A Bluetooth communication method characterized by receiving third authentication information for authentication from a slave device whose master mode has been switched to slave mode after receiving and authenticating the slave device that has transmitted the third authentication information. is there.

又、上記ブルートゥース通信方法において、マスターモードでスレーブモードのスレーブ機器からの認証のための第一認証情報を受信したマスター機器が、マスターモードをスレーブモードに切り替えてスレーブ機器となり、スレーブモードをマスターモードに切り替えたマスター機器に認証のための第二認証情報を送信した後に、スレーブモードをマスターモードに切り替えてマスター機器になり、前記第二認証情報を受信した後にマスターモードをスレーブモードに切り替えたスレーブ機器からの認証のための第三認証情報を受信し、前記第三認証情報を送信した前記スレーブ機器を認証することを特徴とするブルートゥース通信方法である。 In the above Bluetooth communication method, the master device that has received the first authentication information for authentication from the slave device in the slave mode in the master mode switches the master mode to the slave mode and becomes the slave device, and the slave mode becomes the master mode. After sending the second authentication information for authentication to the master device switched to, the slave mode is switched to the master mode to become the master device, and the master mode is switched to the slave mode after receiving the second authentication information A Bluetooth communication method characterized by receiving third authentication information for authentication from a device and authenticating the slave device that has transmitted the third authentication information.

又、ブルートゥース通信方法であって、マスター機器が、スレーブ機器からの認証のための第二認証情報を受信した後に、マスターモードをスレーブモードに切り替えてスレーブ機器となり、前記スレーブ機器が、前記第二認証情報を送信した後にスレーブモードをマスターモードに切り替えたマスター機器に、認証のための第三認証情報を送信することを特徴とするブルートゥース通信方法である。   Further, in the Bluetooth communication method, after the master device receives the second authentication information for authentication from the slave device, the master mode is switched to the slave mode to become the slave device, and the slave device becomes the second device. A Bluetooth communication method characterized by transmitting third authentication information for authentication to a master device that has switched the slave mode to the master mode after transmitting the authentication information.

又、上記ブルートゥース通信方法において、ブルートゥース通信方法であって、スレーブモードでマスターモードのマスター機器に認証のための第一認証情報を送信したスレーブ機器が、スレーブモードをマスターモードに切り替えてマスター機器となり、マスターモードをスレーブモードに切り替えたスレーブ機器からの認証のための第二認証情報を受信した後に、マスターモードをスレーブモードに切り替えてスレーブ機器となり、前記スレーブ機器が、前記第二認証情報を送信した後にスレーブモードをマスターモードに切り替えたマスター機器に認証のための第三認証情報を送信することを特徴とするブルートゥース通信方法である。 In the Bluetooth communication method, the slave communication device that transmits the first authentication information for authentication to the master device in the master mode in the slave mode switches the slave mode to the master mode and becomes the master device. After receiving the second authentication information for authentication from the slave device whose master mode is switched to the slave mode, the master mode is switched to the slave mode to become the slave device, and the slave device transmits the second authentication information After that, the Bluetooth communication method is characterized in that the third authentication information for authentication is transmitted to the master device whose slave mode is switched to the master mode.

又、マスターとスレーブを用いたブルートゥース通信方法であって、スレーブ機器がマスター機器に認証のための第一認証情報を送信するステップと、マスター機器がスレーブ機器からの前記第一認証情報を受信するステップと、スレーブ機器がマスター機器に前記第一認証情報を送信した後に、マスター機器に切り替わるステップと、マスター機器がスレーブ機器からの前記第一認証情報を受信した後に、スレーブ機器に切り替わるステップと、スレーブ機器がマスター機器に認証のための第二認証情報を送信するステップと、マスター機器がスレーブ機器からの前記第二認証情報を受信するステップと、前記第二認証情報を受信したマスター機器がスレーブ機器に切り替わるステップと、前記第二認証情報を送信したスレーブ機器がマスター機器に切り替わるステップと、前記第二認証情報を受信したマスター機器が切り替わったスレーブ機器が、前記第二認証情報を送信したスレーブ機器が切り替わったマスター機器に認証のための第三認証情報を送信するステップと、前記第二認証情報を送信したスレーブ機器が切り替わったマスター機器が前記第三認証情報を受信するステップと、前記第三認証情報を受信したマスター機器が、前記第三認証情報を送信したスレーブ機器を認証するステップと、を備えることを特徴とするブルートゥース通信方法である。 Further, in the Bluetooth communication method using a master and a slave, the slave device transmits first authentication information for authentication to the master device, and the master device receives the first authentication information from the slave device. A step of switching to the master device after the slave device has transmitted the first authentication information to the master device; a step of switching to the slave device after the master device has received the first authentication information from the slave device; The slave device transmits second authentication information for authentication to the master device, the master device receives the second authentication information from the slave device, and the master device that has received the second authentication information is the slave A step of switching to a device and a slave device that has transmitted the second authentication information -The step of switching to the device, and the slave device to which the master device that has received the second authentication information is switched transmits the third authentication information for authentication to the master device to which the slave device that has transmitted the second authentication information is switched. A master device in which the slave device that transmitted the second authentication information is switched receives the third authentication information, and a master device that receives the third authentication information transmits the third authentication information. And a step of authenticating the slave device. A Bluetooth communication method comprising:

又、上記ブルートゥース通信方法において、前記第三認証情報を受信したマスター機器と前記第三認証情報を送信したスレーブ機器がペアリングを行うステップと、を備えることを特徴とするブルートゥース通信方法である。 The Bluetooth communication method may further include a step of performing pairing between the master device that has received the third authentication information and the slave device that has transmitted the third authentication information.

又、ブルートゥース通信方法を用いた施解錠方法であって、キー装置がスレーブモードでマスターモードの施解錠制御装置に認証のための第一認証情報を送信するステップと、前記施解錠制御装置がマスターモードでスレーブモードの前記キー装置からの前記第一認証情報を受信するステップと、前記キー装置が前記施解錠制御装置に前記第一認証情報を送信した後に、スレーブモードをマスターモードに切り替えるステップと、前記施解錠制御装置が前記キー装置からの前記第一認証情報を受信した後に、マスターモードをスレーブモードに切り替えるステップと、前記施解錠制御装置がスレーブモードをマスターモードに切り替えた前記キー装置に認証のための第二認証情報を送信するステップと、前記キー装置がマスターモードをスレーブモードに切り替えた前記施解錠制御装置からの前記第二認証情報を受信するステップと、前記キー装置が前記施解錠制御装置からの前記第二認証情報を受信した後に、マスターモードをスレーブモードに切り替えるステップと、前記施解錠制御装置が前記キー装置に前記第二認証情報を送信した後に、スレーブモードをマスターモードに切り替えるステップと、前記キー装置がスレーブモードでマスターモードの前記施解錠制御装置に、施解錠の要求を含む、認証のための第三認証情報を送信するステップと、前記施解錠制御装置がマスターモードでスレーブモードの前記キー装置からの前記第三認証情報を受信するステップと、施解錠の要求を含む前記第三認証情報を受信した前記施解錠制御装置が扉装置に解錠又は施錠を指示するステップと、を備えることを特徴とする施解錠方法である。 A locking / unlocking method using a Bluetooth communication method, wherein the key device transmits first authentication information for authentication to the locking / unlocking control device in the master mode in the slave mode; Receiving the first authentication information from the key device in slave mode in mode, and switching the slave mode to master mode after the key device has transmitted the first authentication information to the locking and unlocking control device; A step of switching the master mode to the slave mode after the locking / unlocking control device has received the first authentication information from the key device; and the keying device for which the locking / unlocking control device has switched the slave mode to the master mode. Transmitting the second authentication information for authentication, and the key device switches to the master mode. Receiving the second authentication information from the locking / unlocking control device that has been switched to the mode, and switching the master mode to the slave mode after the key device has received the second authentication information from the locking / unlocking control device. A step of switching the slave mode to the master mode after the locking and unlocking control device transmits the second authentication information to the key device; and the key device to the locking and unlocking control device of the master mode in the slave mode, Transmitting the third authentication information for authentication including a request for locking and unlocking; receiving the third authentication information from the key device in the slave mode in the master mode by the locking and unlocking control device; The locking / unlocking control device that has received the third authentication information including the lock request instructs the door device to unlock or lock. Tsu and up, a locking and unlocking method characterized in that it comprises a.

又、上記施解錠方法において、前記施解錠制御装置が前記第三認証情報を受信した後に、前記施解錠制御装置と前記キー装置がペアリングを行うステップと、を備えることを特徴とする施解錠方法である。   In the above locking / unlocking method, the locking / unlocking device includes the step of pairing the locking / unlocking control device and the key device after the locking / unlocking control device receives the third authentication information. Is the method.

以上のような本発明によれば、ブルートゥース通信において、ペアリングなしでも、不正な認証行為を排除した通信を確立することが可能となった。又、より確実に不正な認証行為を排除した通信を確立することが可能となった。又、予め通信を確立することが認められた機器間のみで通信を確立して認証することが可能となった。   According to the present invention as described above, in Bluetooth communication, it is possible to establish communication that eliminates unauthorized authentication acts without pairing. In addition, it has become possible to establish communication that eliminates unauthorized authentication more reliably. Further, it is possible to establish and authenticate communication only between devices that are permitted to establish communication in advance.

本発明実施例の概略構成ブロック図Schematic configuration block diagram of an embodiment of the present invention ブルートゥース通信モジュールの概略構成ブロック図Schematic configuration block diagram of Bluetooth communication module ブルートゥース通信モジュールの概略構成ブロック図Schematic configuration block diagram of Bluetooth communication module キー装置の動作を示すフロー図Flow chart showing operation of key device キー装置の動作を示すフロー図Flow chart showing operation of key device キー装置の動作を示すフロー図Flow chart showing operation of key device 施解錠制御装置の動作を示すフロー図Flow chart showing operation of locking / unlocking control device 施解錠制御装置の動作を示すフロー図Flow chart showing operation of locking / unlocking control device

以下、本発明の実施の形態を図を参照して説明する。図1は本発明のブルートゥース通信システム1の概略構成を示すブロック図である。本発明において、ブルートゥースの規格としてはブルートゥースローエナジー(Bluetooth(登録商標)LE)が用いられる。ブルートゥース通信システム1はマスターとしての施解錠制御装置2とスレーブとしてのキー装置3を備えて構成される通信網であり、図1に示す実施の形態においてはキー装置3は1個で構成されているが、1個の施解錠制御装置2に対して1個又は複数のキー装置3で構成することが出来る。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a Bluetooth communication system 1 of the present invention. In the present invention, Bluetooth (registered trademark) LE is used as the Bluetooth standard. The Bluetooth communication system 1 is a communication network comprising a locking / unlocking control device 2 as a master and a key device 3 as a slave. In the embodiment shown in FIG. 1, the key device 3 is composed of one. However, one or a plurality of key devices 3 can be configured for one locking / unlocking control device 2.

マスターとしての施解錠制御装置2は、施解錠制御装置2を制御するCPU21、CPU21とバス20で接続された、スレーブとしてのキー装置3との通信をブルートゥースの通信規格に準拠した通信に係る通信処理で実行するブルートゥース通信モジュール22、記憶装置としてのROM26、図示しない扉装置との通信を行うためのI/F回路28を備えて構成されている。ROM26にはブルートゥース通信で用いられるマスター用プログラム等を記憶させることも可能である。又、施解錠制御装置2は、扉装置における鍵の位置を把握する錠位置センサ23、錠駆動回路24、施解錠制御装置2周囲の人を感知する人感センサ25、電源としての電池27、外部電源271、RF回路200、スイッチ29等を備えることとしてもよい。   The locking / unlocking control device 2 as a master is a communication related to the communication conforming to the Bluetooth communication standard for communication between the CPU 21 that controls the locking / unlocking control device 2 and the key device 3 as a slave connected to the bus 20. A Bluetooth communication module 22 executed in the process, a ROM 26 as a storage device, and an I / F circuit 28 for performing communication with a door device (not shown) are provided. The ROM 26 can also store a master program used in Bluetooth communication. The locking / unlocking control device 2 includes a lock position sensor 23 for grasping the position of the key in the door device, a lock driving circuit 24, a human sensor 25 for sensing people around the locking / unlocking control device 2, a battery 27 as a power source, An external power supply 271, an RF circuit 200, a switch 29, and the like may be provided.

施解錠制御装置2は、常に起動した状態でもよいが、省電力化の為、スイッチ29の操作により、又は人感センサ25が施解錠制御装置2周囲の人を感知することにより起動する構成とすることが好ましい。又、電池27と外部電源271は両方備えてもよいがいずれかのみを備える構成としてもよい。 The locking / unlocking control device 2 may be always activated. However, for power saving, the locking / unlocking control device 2 is activated by operating the switch 29 or when the human sensor 25 senses a person around the locking / unlocking control device 2. It is preferable to do. Further, both the battery 27 and the external power source 271 may be provided, but a configuration including only one of them may be employed.

ブルートゥース通信モジュール22は、アンテナ221を含み、その他図2に示すように、ブルートゥース通信モジュール22を制御するCPUコア71、ブルートゥース通信のプログラムを格納するプログラム領域のメモリ72、ブルートゥースローエナジー(BLE)関連動作を行うBLEコア73、ブルートゥース通信ハード部であるRadioトランシーバ74、外部とのインターフェイスであるI/O75、その他図示しない電源、発振子等を備えて構成されている。又、図3に示すように、ブルートゥース通信を行う通信部222、機器のマスターとスレーブを切り替えさせるマスタースレーブ切替部223、スレーブ機器から受信したデータが正しいかを判定する受信データ判定部224、暗号化鍵生成部225を備え、これらはメモリ72に格納されたプログラムが制御部226であるCPUコア71の制御のもとに実行されることにより構成される。又、公開鍵、固定の秘密鍵、可変の秘密鍵等のデータはメモリ72に格納されている。 The Bluetooth communication module 22 includes an antenna 221, and as shown in FIG. 2, a CPU core 71 for controlling the Bluetooth communication module 22, a memory 72 for a program area for storing a Bluetooth communication program, and Bluetooth slow energy (BLE) related It comprises a BLE core 73 that operates, a Radio transceiver 74 that is a Bluetooth communication hardware unit, an I / O 75 that is an interface with the outside, a power source (not shown), an oscillator, and the like. Also, as shown in FIG. 3, a communication unit 222 that performs Bluetooth communication, a master / slave switching unit 223 that switches between a master and a slave of a device, a received data determination unit 224 that determines whether data received from a slave device is correct, an encryption An encryption key generation unit 225 is provided, which is configured by executing a program stored in the memory 72 under the control of the CPU core 71 which is the control unit 226. Data such as a public key, a fixed secret key, and a variable secret key is stored in the memory 72.

施解錠制御装置2は、ブルートゥース通信モジュール22により後述するキー装置3のブルートゥース通信モジュール32間での通信の確立により、CPU21の制御によりI/F回路28を介して図示しない扉装置に解錠又は施錠の指示及び扉錠等の状態情報や外部情報の入力や出力を行い、図示しない扉の錠を施解錠させ、更に、錠駆動回路24を介して図示しない扉装置に解錠又は施錠の指示を行い、図示しない扉の錠を施解錠するための装置である。 The locking / unlocking control device 2 unlocks or opens a door device (not shown) via the I / F circuit 28 under the control of the CPU 21 by establishing communication between the Bluetooth communication modules 32 of the key device 3 described later by the Bluetooth communication module 22. Inputs and outputs state information and external information such as a lock instruction and door lock, locks and unlocks a door (not shown), and further unlocks or locks a door device (not shown) via a lock drive circuit 24. This is a device for locking and unlocking a door (not shown).

スレーブとしてのキー装置3は、マスターとしての施解錠制御装置2との通信をブルートゥースの通信規格に準拠した通信に係る通信処理で実行するブルートゥース通信モジュール32、記憶装置としてのROM36、電源としての電池37を備えて構成されている。ROM36にはブルートゥース通信で用いられるスレーブ用プログラムやスレーブ機器ID等を記憶させることも可能である。又、キー装置3はNFCダイナミックタグとアンテナを備えたNFCモジュール等の通信モジュール33、スイッチ38、振動センサ39を備えることとしてもよい。通信モジュール33を設けることによりキー装置3をICタグ等として使用することが出来る。尚、スレーブ機器IDはNFCダイナミックタグに記憶させることが出来、このような構成により、キー装置3をICタグ等として使用する場合にブルートゥース通信で使用したスレーブ機器IDと同じIDとして扱うことが出来る。   The key device 3 as a slave includes a Bluetooth communication module 32 that executes communication with the locking / unlocking control device 2 as a master by communication processing according to communication conforming to the Bluetooth communication standard, a ROM 36 as a storage device, and a battery as a power source. 37. The ROM 36 can also store a slave program used in Bluetooth communication, a slave device ID, and the like. The key device 3 may include a communication module 33 such as an NFC module including an NFC dynamic tag and an antenna, a switch 38, and a vibration sensor 39. By providing the communication module 33, the key device 3 can be used as an IC tag or the like. The slave device ID can be stored in the NFC dynamic tag. With such a configuration, when the key device 3 is used as an IC tag or the like, it can be handled as the same ID as the slave device ID used in Bluetooth communication. .

又、キー装置3は、常に起動した状態でもよいが、省電力化の為、スイッチ38の操作により電源の入切を手入力で行い、又は、振動センサ39がキー装置3の振動を感知することにより振動がないときには電源を切り、振動がある時には電源を入れることとしてもよい。又、キー装置3は、図示しない解錠ボタン及び施錠ボタンを設け、ブルートゥース通信モジュール32が押下されたボタンが解錠又は施錠するかのボタンの状態を判定して、錠を解錠するか施錠するかの要求を施解錠制御装置2に送る。 The key device 3 may be always activated, but for power saving, the power is turned on and off manually by operating the switch 38, or the vibration sensor 39 detects the vibration of the key device 3. Therefore, the power may be turned off when there is no vibration and turned on when there is vibration. The key device 3 is provided with an unlock button and a lock button (not shown), and determines whether the button pressed by the Bluetooth communication module 32 is unlocked or locked, and unlocks or locks the lock. A request for whether to do so is sent to the locking / unlocking control device 2.

尚、キー装置3には解錠ボタン及び施錠ボタンを設けず、施解錠制御装置2に送られる要求は、解錠する要求のみとしてもよい。この場合、施解錠制御装置2は図示しない扉装置に解錠の指示を行い、更に所定時間経過後に施解錠制御装置2は扉装置に施錠の指示を行う構成とすることが出来る。又、キー装置3には解錠ボタン及び施錠ボタンを設けず、施解錠制御装置2に送られる要求は、錠の現在の解錠状態又は施錠状態と逆の状態とする要求とすることとしてもよい。 The key device 3 is not provided with an unlock button and a lock button, and the request sent to the unlock control device 2 may be only the unlock request. In this case, the locking / unlocking control device 2 can be configured to instruct the door device (not shown) to unlock, and the locking / unlocking control device 2 can also be configured to instruct the door device to lock. Further, the key device 3 is not provided with an unlock button and a lock button, and the request sent to the unlock control device 2 may be a request to set the lock to the current unlocked state or the reverse of the locked state. Good.

ブルートゥース通信モジュール32は、アンテナ321を含み、その他図2に示すように、ブルートゥース通信モジュール22を制御するCPUコア71、ブルートゥース通信のプログラムを格納するプログラム領域のメモリ72、ブルートゥースローエナジー(BLE)関連動作を行うBLEコア73、ブルートゥース通信ハード部であるRadioトランシーバ74、外部とのインターフェイスであるI/O75、その他図示しない電源、発振子等を備えている。又、図3に示すように、ブルートゥース通信を行う通信部322、マスタースレーブ切替部323、ID生成部324、暗号化制御データ生成部325を備え、これらはメモリに格納されたプログラムが制御部326であるCPUコアの制御のもとに実行されることにより構成される。又、公開鍵、固定の秘密鍵、可変の秘密鍵等のデータはメモリ72に格納されている。 The Bluetooth communication module 32 includes an antenna 321, and as shown in FIG. 2, a CPU core 71 for controlling the Bluetooth communication module 22, a memory 72 for a program area for storing a Bluetooth communication program, and Bluetooth slow energy (BLE) related It includes a BLE core 73 that operates, a radio transceiver 74 that is a Bluetooth communication hardware unit, an I / O 75 that is an interface with the outside, a power source (not shown), an oscillator, and the like. Further, as shown in FIG. 3, a communication unit 322 that performs Bluetooth communication, a master / slave switching unit 323, an ID generation unit 324, and an encryption control data generation unit 325 are provided, and a program stored in a memory includes a control unit 326. It is configured by being executed under the control of the CPU core. Data such as a public key, a fixed secret key, and a variable secret key is stored in the memory 72.

キー装置3は、ブルートゥース通信モジュール32により施解錠制御装置2のブルートゥース通信モジュール22間での通信の確立により、施解錠制御装置2の錠の解錠又は施錠或いは更に扉を開け閉めさせるための装置である。   The key device 3 is a device for unlocking or locking the lock of the locking / unlocking control device 2 or further opening and closing the door by establishing communication between the Bluetooth communication modules 22 of the locking / unlocking control device 2 by the Bluetooth communication module 32. It is.

ブルートゥース通信モジュール22とブルートゥース通信モジュール32を同一の構成とすることで、施解錠制御装置2をマスター機器としてもスレーブ機器としても作用させることが出来、キー装置3をスレーブ機器としてもマスター機器としても作用させることが出来る。そして、施解錠制御装置2とキー装置3は、ブルートゥース通信モジュール22、32においてマスタースレーブ切替部223、323からの切替指令に従って、即ち、メモリ72に格納されたプログラムに従って、マスター機器として作用するマスターモードからスレーブ機器として作用するスレーブモードへ、或いはスレーブ機器として作用するスレーブモードからマスター機器として作用するマスターモードへの切替を行う。 By making the Bluetooth communication module 22 and the Bluetooth communication module 32 have the same configuration, the locking / unlocking control device 2 can be operated as a master device and a slave device, and the key device 3 can be used as a slave device and a master device. It can act. Then, the locking / unlocking control device 2 and the key device 3 are master devices that function as master devices in accordance with switching commands from the master / slave switching units 223 and 323 in the Bluetooth communication modules 22 and 32, that is, in accordance with programs stored in the memory 72. The mode is switched to the slave mode that acts as a slave device, or from the slave mode that acts as a slave device to the master mode that acts as a master device.

上記の構成の施解錠制御装置2及びキー装置3の動作について図4〜図8を参照して説明する。図4は初期状態としてスレーブとしてのキー装置3の処理手順を示すフロー図であり、図5は図4のS202のダミーIDの作成の詳細な処理手順を示すフロー図であり、図6は図4のS207の暗号化制御データの生成の詳細な処理手順を示すフロー図であり、図7は初期状態としてマスターとしての施解錠制御装置2の処理手順を示すフロー図であり、図8は図7のS405の暗号化制御データの生成の詳細な処理手順を示すフロー図である。尚、施解錠制御装置2及びキー装置3とでの通信が開始される前の初期状態では、施解錠制御装置2がマスター機器として作用しており、キー装置3がスレーブ機器として作用している。   Operations of the locking / unlocking control device 2 and the key device 3 having the above-described configuration will be described with reference to FIGS. 4 is a flowchart showing a processing procedure of the key device 3 as a slave as an initial state, FIG. 5 is a flowchart showing a detailed processing procedure for creating a dummy ID in S202 of FIG. 4, and FIG. 4 is a flowchart showing a detailed processing procedure for generating the encryption control data in S207 of FIG. 4, FIG. 7 is a flowchart showing a processing procedure of the locking / unlocking control apparatus 2 as a master as an initial state, and FIG. 7 is a flowchart showing a detailed processing procedure for generating encryption control data in S405 of FIG. In an initial state before communication between the locking / unlocking control device 2 and the key device 3 is started, the locking / unlocking control device 2 functions as a master device, and the key device 3 functions as a slave device. .

施解錠制御装置2は、スイッチ29の操作により、又は人感センサ25が施解錠制御装置2の周囲に人を感知することにより起動する。尚、常時起動している構成としてもよい。キー装置3は、スイッチ38の操作により、又は、振動センサ39がキー装置3の振動を感知することにより起動する。尚、常時起動している構成としてもよい。 The locking / unlocking control device 2 is activated by operating the switch 29 or when the human sensor 25 senses a person around the locking / unlocking control device 2. In addition, it is good also as a structure always started. The key device 3 is activated by operating the switch 38 or when the vibration sensor 39 senses the vibration of the key device 3. In addition, it is good also as a structure always started.

図4に示すように、キー装置3において、ブルートゥース通信モジュール32はスレーブモードであり、キー装置3はスレーブ機器として動作を開始するS201。そして先ず、認証のための第一認証情報としてのダミーIDの作成を行うS202。 As shown in FIG. 4, in the key device 3, the Bluetooth communication module 32 is in the slave mode, and the key device 3 starts to operate as a slave device (S201). First, a dummy ID is created as first authentication information for authentication S202.

S202のダミーIDの作成について詳細に説明すると、図5に示すように、ブルートゥース通信モジュール32、詳しくはID生成部324は、NFCダイナミックタグ等で構成することが出来る通信モジュール33内の送受信用ICの特有のIDを取得するS211。そして、メモリ72内に格納された鍵1のデータを用いて上記特有のIDを暗号化しS212、ダミーIDを完成させるS213。そして、図4に示すように、スレーブ機器としてダミーIDをマスターとしての施解錠制御装置2に通信部322が送信するS203。尚、鍵1はCPUコア又はBLEコアの記憶領域に格納する構成としてもよい。 The creation of the dummy ID in S202 will be described in detail. As shown in FIG. 5, the Bluetooth communication module 32, specifically, the ID generation unit 324, is a transmission / reception IC in the communication module 33 that can be configured with an NFC dynamic tag or the like. To obtain a unique ID of S211. Then, the unique ID is encrypted using the data of the key 1 stored in the memory 72, S212, and the dummy ID is completed S213. And as shown in FIG. 4, the communication part 322 transmits dummy ID as a slave apparatus to the locking / unlocking control apparatus 2 as a master S203. The key 1 may be stored in the storage area of the CPU core or BLE core.

このようにキー装置3が施解錠制御装置2に送信するID、即ち認証のための第一認証情報としてダミーIDを用いることで、よりセキュリティーを高めることが出来る。尚、ここでキー装置3が施解錠制御装置2に送信するIDはダミーIDではなく、予めブルートゥース通信モジュール32内のメモリに記憶されたIDを用いてもよい。この場合にはキー装置3は通信モジュール33を備えなくてもよい。 Thus, the security can be further enhanced by using the dummy ID as the ID transmitted from the key device 3 to the locking / unlocking control device 2, that is, the first authentication information for authentication. Here, the ID transmitted from the key device 3 to the locking / unlocking control device 2 is not a dummy ID, and an ID stored in advance in a memory in the Bluetooth communication module 32 may be used. In this case, the key device 3 may not include the communication module 33.

キー装置3は、図4に示すように、ダミーIDを施解錠制御装置2に送信した後、マスタースレーブ切替部323が、言い換えればメモリ72に格納されたプログラムがCPUコア71の制御のもとに実行されて、ブルートゥース通信モジュール32をマスターモードに切替えて、キー装置3をマスター機器に切り替えて待ち受け動作となるS204。 As shown in FIG. 4, the key device 3 transmits the dummy ID to the locking / unlocking control device 2, and then the master-slave switching unit 323, in other words, the program stored in the memory 72 is controlled by the CPU core 71. Is executed, the Bluetooth communication module 32 is switched to the master mode, the key device 3 is switched to the master device, and a standby operation is performed (S204).

図7に示すように、施解錠制御装置2においてブルートゥース通信モジュール22はマスターモードであり、施解錠制御装置2はマスター機器として動作を開始するS401。そして、スレーブ機器としてのキー装置3からの信号を待ち受ける動作を行うS402。そして、受信データ判定部224がスレーブ機器としてのキー装置3からの返信の有無を確認するS403。キー装置3からの返信がある場合(Yes)には、メモリ72に格納された照合用のデータを参照して、キー装置3からのデータ、第一認証情報としてのダミーIDが正しいか否かを判定するS404。キー装置3からの返信がない場合(No)には、S401へ戻る。   As shown in FIG. 7, in the locking / unlocking control apparatus 2, the Bluetooth communication module 22 is in the master mode, and the locking / unlocking control apparatus 2 starts operating as a master device (S401). Then, an operation of waiting for a signal from the key device 3 as a slave device is performed (S402). Then, the received data determination unit 224 confirms whether or not there is a reply from the key device 3 as a slave device (S403). When there is a reply from the key device 3 (Yes), referring to the data for verification stored in the memory 72, whether the data from the key device 3 and the dummy ID as the first authentication information are correct or not. S404 is determined. If there is no reply from the key device 3 (No), the process returns to S401.

S404でデータ、ダミーIDが正しいと判断した場合(Yes)には、暗号化鍵生成部225は認証のための第二認証情報としての暗号化鍵データの生成を行うS405。S405の暗号化鍵データの生成は、図8に示すように、ブルートゥース通信モジュール22の暗号化鍵生成部225が、乱数を発生させS421、メモリ72内のプログラムに格納された鍵1のデータを用いて乱数データを「鍵1」で暗号化しS422、暗号化鍵データ(鍵2データ)の生成を行う。そして、図7に示すように、マスタースレーブ切替部223が、施解錠制御装置2をスレーブ機器に切り替えてS406、S405で生成した暗号化鍵データ(鍵2データ)を、通信部222がマスター機器としてのキー装置3に送信するS407。そして、マスタースレーブ切替部223が、施解錠制御装置2をマスター機器に切り替えて、キー装置3からの信号を待ち受ける動作を行うS408。尚、S421及びS422において、乱数を発生させて用いるのではなく、暗号化鍵生成部225が、乱数データ以外の変数を発生させ又は固定値を取得し、それらを「鍵1」で暗号化して用いることとしてもよい。 If it is determined in S404 that the data and dummy ID are correct (Yes), the encryption key generation unit 225 generates encryption key data as second authentication information for authentication (S405). As shown in FIG. 8, the encryption key generation unit 225 of the Bluetooth communication module 22 generates a random number and generates the random number data in S421 and the key 1 data stored in the program in the memory 72, as shown in FIG. The random number data is encrypted with “key 1” using S422, and encryption key data (key 2 data) is generated. Then, as shown in FIG. 7, the master / slave switching unit 223 switches the locking / unlocking control device 2 to the slave device and the encryption key data (key 2 data) generated in S <b> 406 and S <b> 405, and the communication unit 222 is the master device. Is transmitted to the key device 3 as S407. Then, the master slave switching unit 223 performs an operation of switching the locking / unlocking control device 2 to the master device and waiting for a signal from the key device 3 (S408). In S421 and S422, instead of generating and using a random number, the encryption key generation unit 225 generates a variable other than random number data or obtains a fixed value and encrypts them with “key 1”. It may be used.

このように、スレーブ機器である一方の機器からマスター機器である他方の機器へのデータの通信による認証が終了後には、一方の機器はスレーブ機器からマスター機器に、他方の機器はマスター機器からスレーブ機器に切り替える。このような切り替えは、夫々の装置のブルートゥース通信モジュール内のプログラム領域に記憶させているソフトウェアで実現させている。 Thus, after authentication by data communication from one device that is a slave device to the other device that is the master device, one device is changed from the slave device to the master device, and the other device is transferred from the master device to the slave device. Switch to device. Such switching is realized by software stored in a program area in the Bluetooth communication module of each device.

一方、キー装置3は、図4に示すように、暗号化制御データ生成部325がスレーブ機器に切替わった施解錠制御装置2からの返信の有無を確認するS205。施解錠制御装置2からの返信がある場合(Yes)、即ち図7のS407で施解錠制御装置2が第二認証情報としての暗号化鍵データ(鍵2データ)を送信し、キー装置3がその暗号化鍵データ(鍵2データ)を受信した場合には、暗号化制御データ生成部325がその暗号化鍵データ(鍵2データ)が正しい相手から、即ちキー装置3がS203でダミーIDを送信した施解錠制御装置2から送信されてきたデータか否かを判定するS206。 On the other hand, as shown in FIG. 4, the key device 3 confirms whether or not there is a reply from the locking / unlocking control device 2 in which the encryption control data generation unit 325 has switched to the slave device (S205). When there is a reply from the locking / unlocking control device 2 (Yes), that is, the locking / unlocking control device 2 transmits the encryption key data (key 2 data) as the second authentication information in S407 of FIG. When the encryption key data (key 2 data) is received, the encryption control data generation unit 325 receives the dummy ID in S203 from the other party whose encryption key data (key 2 data) is correct. S206 which judges whether it is the data transmitted from the transmitted locking / unlocking control apparatus 2.

キー装置3、詳しくは暗号化制御データ生成部325は、S206で暗号化鍵データ(鍵2データ)が正しい相手から送信されてきたと判断した場合(Yes)には、暗号化制御データの生成を行うS207。正しい相手とは、予め対応付けられた施解錠制御装置2と施解錠制御装置2を解錠又は施錠可能に設定されたキー装置3である。S207の暗号化制御データの生成は、図6に示すように、先ず、ブルートゥース通信モジュール32の暗号化制御データ生成部325は、メモリ72内のプログラムに格納された鍵1のデータを用いて施解錠制御装置2からの暗号化鍵データを複合化しS221、そして、複合化したデータから「鍵2」を取り出しS222、NFCダイナミックタグ等で構成することが出来る通信モジュール33内の送受信用ICの特有のIDを取得しS223、キー装置3のボタン状態、即ち解錠ボタン又は施錠ボタンの何れかが押下されているかの情報を取得しS224、特有のIDを「鍵2」のデータで暗号化しS225、そしてボタン情報を暗号化データに付加しS226、認証のための第三認証情報としての暗号化制御データを完成させるS227。 If the key device 3, more specifically, the encryption control data generation unit 325, determines in S206 that the encryption key data (key 2 data) has been transmitted from the correct partner (Yes), it generates the encryption control data. Perform S207. The correct partner is the key device 3 set so that the unlocking / unlocking control device 2 and the locking / unlocking control device 2 associated in advance can be unlocked or locked. As shown in FIG. 6, the encryption control data generation unit 325 of the Bluetooth communication module 32 first performs decryption using the key 1 data stored in the program in the memory 72, as shown in FIG. The encryption key data from the lock control device 2 is decrypted, S221, and “key 2” is extracted from the decrypted data. S222, a characteristic of the transmission / reception IC in the communication module 33 that can be configured with an NFC dynamic tag or the like S223, the button state of the key device 3, that is, information on whether the unlock button or the lock button is pressed is obtained, S224, and the unique ID is encrypted with the data of “key 2” S225 The button information is added to the encrypted data S226, and the encryption control data as the third authentication information for authentication is completed S2. 7.

尚、S224において、ボタン情報は、解錠する要求の情報のみとしてもよい。この場合、施解錠制御装置2は図示しない扉装置に解錠の指示を行い、更に所定時間経過後に施解錠制御装置2は扉装置に施錠の指示を行う構成とすることが出来る。又、キー装置3には解錠ボタン及び施錠ボタンを設けていない場合には、S224を省略し、S226で錠の現在の解錠状態又は施錠状態と逆の状態とする要求の情報を暗号化データに付加する構成とすることが出来る。 In S224, the button information may be only information on a request for unlocking. In this case, the locking / unlocking control device 2 can be configured to instruct the door device (not shown) to unlock, and the locking / unlocking control device 2 can also be configured to instruct the door device to lock. If the key device 3 is not provided with the unlock button and the lock button, S224 is omitted, and the information of the request to set the lock to the current unlocked state or the reverse state is encrypted in S226. It can be configured to be added to data.

そして、図4に示すように、暗号化制御データの完成後、マスタースレーブ切替部323が、スレーブ機器に切り替えてS208、通信部322が第三認証情報としての暗号化制御データを施解錠制御装置2へ送信するS209。S206でデータが正しくない相手から送信されてきたと判断した場合(No)には、S201へ戻る。 Then, as shown in FIG. 4, after the encryption control data is completed, the master / slave switching unit 323 switches to the slave device, and the communication unit 322 sends the encryption control data as the third authentication information to the locking / unlocking control device. 2 to S209. If it is determined in S206 that the data has been transmitted from an incorrect partner (No), the process returns to S201.

一方、施解錠制御装置2は、図7に示すように、受信データ判定部224がスレーブ機器としてのキー装置3からの返信(暗号化制御データの送信)の有無を確認するS409。キー装置3からの返信がある場合(Yes)には、受信データ判定部224が、受信したデータ内に認証のための第三認証情報としての暗号化制御データは入っているか否かを判定するS410。キー装置3からの返信がない場合(No)には、S401へ戻る。S410で暗号化制御データが入っている場合(Yes)、即ちS209でキー装置3が暗号化制御データを施解錠制御装置2に送信した場合には、暗号化制御データ内のボタン状態の情報、即ち錠の解錠又は施錠の要求を取り出すS411。暗号化制御データが入っていない場合(No)には、S401へ戻る。そして、S411でボタン状態を取り出した後、制御部226が錠の解錠又は施錠の要求に従ってI/F回路28を介して図示しない扉装置に解錠又は施錠の指示を行うS412。図示しない扉装置は当該指示に従って扉の錠を解錠又は施錠する。尚、自動ドアの場合には、扉装置は当該指示に従って扉を開ける。又、解錠した状態の錠は、扉が開いた状態から閉まった状態となった信号を受信した場合や錠が解錠した状態となってから一定時間経過後に錠駆動回路24を介して施錠の指示を受けた扉装置により施錠する構成とすることが出来る。 On the other hand, in the locking / unlocking control apparatus 2, as shown in FIG. 7, the received data determination unit 224 confirms the presence / absence of a reply (transmission of encrypted control data) from the key apparatus 3 as a slave device (S409). When there is a reply from the key device 3 (Yes), the reception data determination unit 224 determines whether or not the encrypted data as the third authentication information for authentication is included in the received data. S410. If there is no reply from the key device 3 (No), the process returns to S401. If the encryption control data is contained in S410 (Yes), that is, if the key device 3 transmits the encryption control data to the locking / unlocking control device 2 in S209, the button state information in the encryption control data, That is, a request for unlocking or locking the lock is taken out S411. If there is no encryption control data (No), the process returns to S401. Then, after taking out the button state in S411, the control unit 226 gives an instruction to unlock or lock the door device (not shown) via the I / F circuit 28 in accordance with a request for unlocking or locking the lock (S412). A door device (not shown) unlocks or locks the door according to the instruction. In the case of an automatic door, the door device opens the door according to the instruction. The unlocked lock is locked via the lock drive circuit 24 when a signal is received from the door opened to the closed state or after a certain period of time has elapsed since the lock is unlocked. It can be set as the structure locked by the door apparatus which received the instruction | indication.

尚、施解錠制御装置2には錠位置センサ回路23を設け、施解錠制御装置2が錠の施解錠を扉装置に指示する際には錠位置センサ回路23により予め錠の解錠状態又は施錠状態を確認してから指示をする構成とすることが出来る。尚、錠位置センサ回路23により正常に施解錠することが出来たかの情報も取得することが出来る。   The lock / unlock control device 2 is provided with a lock position sensor circuit 23. When the lock / unlock control device 2 instructs the door device to lock / unlock the lock, the lock position sensor circuit 23 preliminarily unlocks or locks the lock. It can be configured to give an instruction after confirming the state. The lock position sensor circuit 23 can also acquire information indicating whether the lock has been normally unlocked.

このように、スレーブ機器である一方の機器からマスター機器である他方の機器へのデータの通信(アドバタイズ通信)による認証が終了後には、一方の機器はスレーブ機器からマスター機器に、他方の機器はマスター機器からスレーブ機器に切り替える。そして、スレーブ機器に切り替えられた他方の機器からマスター機器に切り替えられた一方の機器へのデータの通信(アドバタイズ通信)による認証が終了後には、一方の機器はマスター機器からスレーブ機器に、他方の機器はスレーブ機器からマスター機器に切り替えられて、初期の状態に戻る。そして、スレーブ機器である一方の機器からマスター機器である他方の機器へのデータの通信(アドバタイズ通信)により、マスター機器によるスレーブ機器の認証及びスレーブ機器からの施解錠の指示情報の受信を行う。尚、マスター機器とスレーブ機器間のこのような切り替えは、夫々の装置のブルートゥース通信モジュール内のプログラム領域に記憶させているソフトウェアで実現させている。 In this way, after authentication by data communication (advertisement communication) from one device that is a slave device to the other device that is a master device, one device is changed from the slave device to the master device, and the other device is Switch from the master device to the slave device. After the authentication by data communication (advertisement communication) from the other device switched to the slave device to one device switched to the master device, one device is changed from the master device to the slave device, and the other device is switched to the other device. The device is switched from the slave device to the master device, and returns to the initial state. Then, by communication (advertisement communication) of data from one device as the slave device to the other device as the master device, authentication of the slave device by the master device and reception of locking / unlocking instruction information from the slave device are performed. Note that such switching between the master device and the slave device is realized by software stored in the program area in the Bluetooth communication module of each device.

このように、本発明は、アドバタイズ通信を用いて双方向に認証を行うので、ペアリングのようにいくつかの決まったデータを送る必要があるために消費電力が大きくなる方法を用いずに認証を行えるので、マスター側の消費電力を非常に低く抑えることが出来、又、マスター機器とスレーブ機器を切り替えて使用するので、施解錠制御装置2及びキー装置3のような通信行う双方の機器がスレーブ機器となるので、双方の機器の消費電力を非常に低く抑えることが可能となっている。   As described above, since the present invention performs bidirectional authentication using advertised communication, authentication must be performed without using a method that increases power consumption because it is necessary to send some fixed data such as pairing. The power consumption on the master side can be kept very low, and since the master device and the slave device are switched and used, both the communicating devices such as the locking / unlocking control device 2 and the key device 3 can be used. Since it is a slave device, the power consumption of both devices can be kept very low.

又、本発明は、アドバタイズ通信を用いて相互にて認証を行うので、或いは更に認証時に毎回異なる鍵値での暗号化が可能であり、不正機が同様のデータを送っても、次の送信時には異なる鍵となっているために、通信が確立できず、不正な認証行為を排除した通信を確立することが可能となっている。又、予め通信を確立することが認められた機器間のみで通信を確立して認証することが可能となっている。   In the present invention, mutual authentication is performed using advertised communication, or encryption with a different key value is possible each time authentication is performed, and even if an unauthorized device sends similar data, the next transmission is possible. Since it is sometimes a different key, communication cannot be established, and it is possible to establish communication that eliminates unauthorized authentication. Further, it is possible to establish and authenticate communication only between devices that are permitted to establish communication in advance.

更に、このようにして双方からの認証の後、スレーブ機器からの施解錠の指示情報の受信前後に、更にマスター機器とスレーブ機器間においてペアリングを行うことが出来る。ペアリングを用いることにより、より確実に不正な認証行為を排除した通信を確立することが可能となっている。 Further, after authentication from both sides in this way, pairing can be further performed between the master device and the slave device before and after receiving the locking / unlocking instruction information from the slave device. By using pairing, it is possible to establish a communication that eliminates unauthorized authentication more reliably.

上記の実施形態では、初期状態として施解錠制御装置2をマスター機器とし、キー装置3をスレーブ機器とし、キー装置3から施解錠制御装置2へ認証のための第一認証情報を送信して施解錠制御装置2が受信した後、施解錠制御装置2がスレーブ機器となり、キー装置3がマスター機器となって、施解錠制御装置2からキー装置3へ認証のための第二認証情報を送信してキー装置3が受信した後、施解錠制御装置2がマスター機器となり、キー装置3がスレーブ機器となって、キー装置3から施解錠制御装置2へ認証のための第三認証情報を送信して、施解錠制御装置2が第三認証情報を受信して双方の認証を完了させている。即ち、3回のアドバタイズ通信を1ルーチンとして認証を完了させている。 In the above embodiment, the locking / unlocking control device 2 is set as a master device and the key device 3 is set as a slave device as an initial state, and the first authentication information for authentication is transmitted from the key device 3 to the locking / unlocking control device 2. After the lock control device 2 receives, the locking / unlocking control device 2 becomes a slave device, the key device 3 becomes a master device, and the second authentication information for authentication is transmitted from the locking / unlocking control device 2 to the key device 3. After receiving the key device 3, the locking / unlocking control device 2 becomes the master device, the key device 3 becomes the slave device, and the key device 3 transmits the third authentication information for authentication to the locking / unlocking control device 2. Thus, the locking / unlocking control device 2 receives the third authentication information and completes the authentication of both. That is, the authentication is completed with three advertisement communications as one routine.

更に、他の実施形態としては、初期状態としてキー装置3をマスター機器とし、施解錠制御装置2をスレーブ機器とし、施解錠制御装置2からキー装置3へ第二認証情報を送信してキー装置3が受信した後、キー装置3がスレーブ機器なり、施解錠制御装置2がマスター機器となって、キー装置3から施解錠制御装置2へ第三認証情報を送信して、施解錠制御装置2が第三認証情報を受信して双方の認証を完了させてもよい。即ち、スレーブ機器としてのキー装置3からマスター機器としての施解錠制御装置2への第一認証情報の送信を行わない構成としてもよい。即ち、2回のアドバタイズ通信を1ルーチンとして認証を完了させている。 Furthermore, as another embodiment, the key device 3 is set as a master device as an initial state, the locking / unlocking control device 2 is set as a slave device, and the second authentication information is transmitted from the locking / unlocking control device 2 to the key device 3 to generate the key device. 3, the key device 3 becomes the slave device, and the locking / unlocking control device 2 becomes the master device, and the third authentication information is transmitted from the key device 3 to the locking / unlocking control device 2. May receive the third authentication information and complete both authentications. That is, the first authentication information may not be transmitted from the key device 3 as the slave device to the locking / unlocking control device 2 as the master device. That is, the authentication is completed with two advertisement communications as one routine.

更に、キー装置3から施解錠制御装置2へ第三認証情報を送信した後に、マスタースレーブ切替部223が、施解錠制御装置2をスレーブ機器に切り替えて、施解錠制御装置2がスレーブ機器となり、マスタースレーブ切替部323が、キー装置3をマスター機器に切り替えて、キー装置3がマスター機器となって、施解錠制御装置2からキー装置3へ、施解錠の結果の情報を送信する構成を備えることとしてもよい。即ち、4回のアドバタイズ通信を1ルーチンとして、4回目のアドバタイズ通信において、施解錠の結果の情報を送信する構成を備えることとしてもよい。 Furthermore, after transmitting the third authentication information from the key device 3 to the locking / unlocking control device 2, the master-slave switching unit 223 switches the locking / unlocking control device 2 to a slave device, and the locking / unlocking control device 2 becomes a slave device, The master-slave switching unit 323 has a configuration in which the key device 3 is switched to the master device, and the key device 3 becomes the master device, and transmits information on the locking / unlocking result from the locking / unlocking control device 2 to the key device 3. It is good as well. That is, it is good also as a structure which transmits the information of the result of locking / unlocking in 4th advertisement communication by making 4 advertisement communications into 1 routine.

又、3回又は2回のアドバタイズ通信を1ルーチンとして認証を完了させている場合、2ルーチン目の施解錠制御装置2からキー装置3への情報の送信の際に、施解錠の結果の情報を送信する構成を備えることとしてもよい。   In addition, when authentication is completed with three or two advertisement communications as one routine, information on the result of the locking / unlocking is transmitted when information is transmitted from the locking / unlocking control device 2 to the key device 3 in the second routine. It is good also as providing the structure which transmits.

更に、施解錠制御装置2が第三認証情報を受信した後、施解錠制御装置2とキー装置3でペアリングを行う構成としてもよい。このように、ペアリングを行うことにより、よりセキュリティーを高めることが出来、より不正な認証動作の排除を確実に行える。勿論、このペアリングの動作は省略してもよい。 Furthermore, after the locking / unlocking control device 2 receives the third authentication information, the locking / unlocking control device 2 and the key device 3 may perform pairing. In this way, by performing pairing, security can be further enhanced, and unauthorized authentication operations can be reliably eliminated. Of course, this pairing operation may be omitted.

マスターとスレーブを扉装置の施解錠制御装置2とその施解錠のためのキー装置3として説明したが、マスターとスレーブはこの構成に限定されることなく、他の認証を行うマスター機器とスレーブ機器で構成することが出来る。 The master and slave have been described as the door device locking / unlocking control device 2 and the key device 3 for locking / unlocking the master device, but the master and slave are not limited to this configuration, and other master devices and slave devices that perform authentication Can be configured.

以上のような本発明によれば、ブルートゥース通信を用いた各種機器間において、不正な認証動作の排除を確実に行えるので、セキュリティーの向上により、扉の施解錠システムや個人の認証システム等に使用することが出来る。   According to the present invention as described above, since it is possible to reliably eliminate unauthorized authentication operations between various devices using Bluetooth communication, it can be used for door locking / unlocking systems, personal authentication systems, etc. due to improved security. I can do it.

1 ブルートゥース通信システム
2 施解錠制御装置2
22 ブルートゥース通信モジュール
3 キー装置
32 ブルートゥース通信モジュール
1 Bluetooth communication system 2 Locking / unlocking control device 2
22 Bluetooth communication module 3 Key device 32 Bluetooth communication module

Claims (15)

ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第一機器であって、初期状態ではスレーブ機器であり、通信部が、初期状態ではマスター機器である第二機器に認証のための第二認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、マスターモードからスレーブモードに切り替えた前記第二機器からの認証のための第三認証情報を受信した場合に、受信データ判定部が前記第二機器を認証することを特徴とする機器。 A first device equipped with a Bluetooth communication module used for Bluetooth communication, which is a slave device in the initial state, and the communication unit supplies second authentication information for authentication to the second device which is the master device in the initial state. When transmitted, the master-slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit performs the third authentication for authentication from the second device switched from the master mode to the slave mode. A device wherein the received data determination unit authenticates the second device when receiving the authentication information. ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第一機器であって、初期状態ではマスター機器であり、マスターモードで通信部がスレーブモードの第二機器からの認証のための第一認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、初期状態ではスレーブ機器でありスレーブモードをマスターモードに切り替えた前記第二機器に認証のための第二認証情報を送信した場合に、前記マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、マスターモードで前記通信部がスレーブモードの前記第二機器からの認証のための第三認証情報を受信した場合に、前記受信データ判定部が前記第二機器を認証することを特徴とする請求項1に記載の機器。 A first device with a Bluetooth communication module used for Bluetooth communication, which is a master device in the initial state, and the communication unit receives the first authentication information for authentication from the second device in the slave mode in the master mode. In this case, the master / slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit authenticates to the second device that is a slave device in the initial state and switches the slave mode to the master mode. The master-slave switching unit switches the slave mode to the master mode and operates as a master device, and in the master mode, the communication unit from the second device in the slave mode is transmitted. When the third authentication information for authentication is received, the received data interpretation The apparatus of claim 1, part, characterized in that the authenticating the second device. ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第二機器であって、初期状態ではマスター機器であり、通信部が、初期状態ではスレーブ機器である第一機器から認証のための第二認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、スレーブモードからマスターモードに切り替えた前記第一機器に認証のための第三認証情報を送信することを特徴とする機器。   A second device equipped with a Bluetooth communication module used for Bluetooth communication, which is a master device in the initial state, and the communication unit receives second authentication information for authentication from the first device which is a slave device in the initial state. When received, the master-slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit performs the third authentication for authentication to the first device that has switched from the slave mode to the master mode. A device characterized by transmitting information. ブルートゥース通信に用いられるブルートゥース通信モジュールを備えた第二機器であって、初期状態ではスレーブ機器であり、スレーブモードで通信部がマスターモードの第一機器に認証のための第一認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、初期状態ではマスター機器でありマスターモードをスレーブモードに切り替えた前記第一機器から認証のための第二認証情報を受信した場合に、前記マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、スレーブモードで前記通信部がマスターモードの前記第一機器に認証のための第三認証情報を送信することを特徴とする請求項3に記載の機器。   A second device equipped with a Bluetooth communication module used for Bluetooth communication, which is a slave device in the initial state, and the communication unit transmits first authentication information for authentication to the first device in the master mode in the slave mode. In this case, the master / slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit is the master device in the initial state, and authentication is performed from the first device that has switched the master mode to the slave mode. When the second authentication information is received, the master-slave switching unit switches the master mode to the slave mode and operates as a slave device, and in the slave mode, the communication unit authenticates to the first device in the master mode. The third authentication information for transmitting is transmitted. Equipment. マスター機器とスレーブ機器を備えたブルートゥース通信システムであって、初期状態ではスレーブ機器であり、通信部が、初期状態ではマスター機器である第二機器に認証のための第二認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、マスターモードからスレーブモードに切り替えた前記第二機器からの認証のための第三認証情報を受信した場合に、受信データ判定部が前記第二機器を認証する第一機器と、初期状態ではマスター機器であり、通信部が、初期状態ではスレーブ機器である第一機器から認証のための第二認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、スレーブモードからマスターモードに切り替えた前記第一機器に認証のための第三認証情報を送信する第二機器を備えることを特徴とするブルートゥース通信システム。   Bluetooth communication system with a master device and a slave device, which is a slave device in the initial state, and the communication unit sends second authentication information for authentication to the second device, which is the master device in the initial state In addition, the master-slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit receives third authentication information for authentication from the second device switched from the master mode to the slave mode. When received, the received data determination unit authenticates the second device and the first device for authentication from the first device that is the master device in the initial state and the communication unit is the slave device in the initial state. When the second authentication information is received, the master / slave switching unit switches the master mode to the slave mode and Work Te, the communication unit is a Bluetooth communication system, characterized in that it comprises a second device that transmits third authentication information for authentication to said first device is switched from the slave mode to the master mode. マスター機器とスレーブ機器を備えたブルートゥース通信システムであって、初期状態ではマスター機器であり、マスターモードで通信部がスレーブモードの第二機器からの認証のための第一認証情報を受信した場合に、マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、初期状態ではスレーブ機器でありスレーブモードをマスターモードに切り替えた前記第二機器に認証のための第二認証情報を送信した場合に、前記マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、マスターモードからスレーブモードに切り替えた前記第二機器からの認証のための第三認証情報を受信した場合に、受信データ判定部が前記第二機器を認証する第一機器と、初期状態ではスレーブ機器であり、スレーブモードで通信部がマスターモードの第一機器に認証のための第一認証情報を送信した場合に、マスタースレーブ切替部がスレーブモードをマスターモードに切り替えて、マスター機器として動作し、前記通信部が、初期状態ではマスター機器でありマスターモードをスレーブモードに切り替えた前記第一機器から認証のための第二認証情報を受信した場合に、前記マスタースレーブ切替部がマスターモードをスレーブモードに切り替えて、スレーブ機器として動作し、前記通信部が、スレーブモードからマスターモードに切り替えた前記第一機器に認証のための第三認証情報を送信する第二機器を備えることを特徴とする請求項5に記載のブルートゥース通信システム。   A Bluetooth communication system including a master device and a slave device, which is a master device in the initial state, and when the communication unit receives the first authentication information for authentication from the second device in the slave mode in the master mode. The master-slave switching unit switches the master mode to the slave mode and operates as a slave device, and the communication unit is a slave device in the initial state and authenticates the second device that has switched the slave mode to the master mode. When the second authentication information is transmitted, the master-slave switching unit switches the slave mode to the master mode and operates as a master device, and the communication unit from the second device that has switched from the master mode to the slave mode. Received data determination unit when receiving third authentication information for authentication When the first device authenticates the second device and the slave device in the initial state, and the communication unit transmits the first authentication information for authentication to the first device in the master mode in the slave mode, the master-slave switching is performed. The unit switches the slave mode to the master mode, operates as a master device, and the communication unit is the master device in the initial state, and the second authentication information for authentication from the first device that has switched the master mode to the slave mode When the master-slave switching unit switches the master mode to the slave mode, the master-slave switching unit operates as a slave device, and the communication unit switches the first device for authentication to the first device switched from the slave mode to the master mode. 6. The Bluetooth communication device according to claim 5, further comprising a second device for transmitting authentication information. System. 前記第一機器が前記第二機器からの認証のための第三認証情報を受信した場合であって、前記第一機器の受信データ判定部が前記第二機器を認証した場合に、前記第一機器と前記第二機器間でペアリングを行うことを特徴する請求項5又は6に記載のブルートゥース通信システム。 When the first device receives third authentication information for authentication from the second device, and the received data determination unit of the first device authenticates the second device, the first device The Bluetooth communication system according to claim 5 or 6, wherein pairing is performed between a device and the second device. ブルートゥース通信方法であって、スレーブモードでマスターモードのマスター機器に認証のための第二認証情報を送信した後に、スレーブモードをマスターモードに切り替えてマスター機器になり、前記第二認証情報を受信した後にマスターモードをスレーブモードに切り替えたスレーブ機器からの認証のための第三認証情報を受信し、前記第三認証情報を送信した前記スレーブ機器を認証することを特徴とするブルートゥース通信方法。   In Bluetooth communication method, after transmitting the second authentication information for authentication to the master device in the master mode in the slave mode, the slave mode is switched to the master mode to become the master device, and the second authentication information is received A Bluetooth communication method, comprising: receiving third authentication information for authentication from a slave device that later switched the master mode to a slave mode, and authenticating the slave device that transmitted the third authentication information. ブルートゥース通信方法であって、マスターモードでスレーブモードのスレーブ機器からの認証のための第一認証情報を受信したマスター機器が、マスターモードをスレーブモードに切り替えてスレーブ機器となり、スレーブモードをマスターモードに切り替えたマスター機器に認証のための第二認証情報を送信した後に、スレーブモードをマスターモードに切り替えてマスター機器になり、前記第二認証情報を受信した後にマスターモードをスレーブモードに切り替えたスレーブ機器からの認証のための第三認証情報を受信し、前記第三認証情報を送信した前記スレーブ機器を認証することを特徴とする請求項8に記載のブルートゥース通信方法。 In the Bluetooth communication method, the master device that has received the first authentication information for authentication from the slave device in the slave mode in the master mode switches the master mode to the slave mode and becomes the slave device, and the slave mode changes to the master mode. After transmitting the second authentication information for authentication to the switched master device, the slave mode is switched to the master mode to become the master device, and after receiving the second authentication information, the slave device that has switched the master mode to the slave mode. 9. The Bluetooth communication method according to claim 8, wherein the third authentication information for authentication from the mobile station is received and the slave device that transmitted the third authentication information is authenticated. ブルートゥース通信方法であって、マスター機器が、スレーブ機器からの認証のための第二認証情報を受信した後に、マスターモードをスレーブモードに切り替えてスレーブ機器となり、前記スレーブ機器が、前記第二認証情報を送信した後にスレーブモードをマスターモードに切り替えたマスター機器に、認証のための第三認証情報を送信することを特徴とするブルートゥース通信方法。   In the Bluetooth communication method, after the master device receives the second authentication information for authentication from the slave device, the master mode is switched to the slave mode to become the slave device, and the slave device becomes the second authentication information. A Bluetooth communication method comprising: transmitting third authentication information for authentication to a master device that has switched the slave mode to the master mode after transmitting. ブルートゥース通信方法であって、スレーブモードでマスターモードのマスター機器に認証のための第一認証情報を送信したスレーブ機器が、スレーブモードをマスターモードに切り替えてマスター機器となり、マスターモードをスレーブモードに切り替えたスレーブ機器からの認証のための第二認証情報を受信した後に、マスターモードをスレーブモードに切り替えてスレーブ機器となり、前記スレーブ機器が、前記第二認証情報を送信した後にスレーブモードをマスターモードに切り替えたマスター機器に認証のための第三認証情報を送信することを特徴とする請求項10に記載のブルートゥース通信方法。 The Bluetooth communication method, and the slave device that sent the first authentication information for authentication to the master device in the master mode in the slave mode switches the slave mode to the master mode and becomes the master device, and switches the master mode to the slave mode. After receiving the second authentication information for authentication from the slave device, the master mode is switched to the slave mode to become the slave device, and after the slave device transmits the second authentication information, the slave mode is set to the master mode. The Bluetooth communication method according to claim 10, wherein third authentication information for authentication is transmitted to the switched master device. マスターとスレーブを用いたブルートゥース通信方法であって、
スレーブ機器がマスター機器に認証のための第一認証情報を送信するステップと、
マスター機器がスレーブ機器からの前記第一認証情報を受信するステップと、
スレーブ機器がマスター機器に前記第一認証情報を送信した後に、マスター機器に切り替わるステップと、
マスター機器がスレーブ機器からの前記第一認証情報を受信した後に、スレーブ機器に切り替わるステップと、
スレーブ機器がマスター機器に認証のための第二認証情報を送信するステップと、
マスター機器がスレーブ機器からの前記第二認証情報を受信するステップと、
前記第二認証情報を受信したマスター機器がスレーブ機器に切り替わるステップと、
前記第二認証情報を送信したスレーブ機器がマスター機器に切り替わるステップと、
前記第二認証情報を受信したマスター機器が切り替わったスレーブ機器が、前記第二認証情報を送信したスレーブ機器が切り替わったマスター機器に認証のための第三認証情報を送信するステップと、
前記第二認証情報を送信したスレーブ機器が切り替わったマスター機器が前記第三認証情報を受信するステップと、
前記第三認証情報を受信したマスター機器が、前記第三認証情報を送信したスレーブ機器を認証するステップと、
を備えることを特徴とするブルートゥース通信方法。
A Bluetooth communication method using a master and a slave,
The slave device transmits first authentication information for authentication to the master device; and
A master device receiving the first authentication information from a slave device;
After the slave device transmits the first authentication information to the master device, the step of switching to the master device;
After the master device receives the first authentication information from the slave device, the step of switching to the slave device;
The slave device transmits second authentication information for authentication to the master device; and
A master device receiving the second authentication information from a slave device;
The master device that has received the second authentication information is switched to a slave device;
The slave device that transmitted the second authentication information is switched to the master device;
The slave device that has been switched to the master device that has received the second authentication information, the step of transmitting the third authentication information for authentication to the master device to which the slave device that has transmitted the second authentication information has been switched,
A master device to which the slave device that has transmitted the second authentication information is switched receives the third authentication information;
The master device that has received the third authentication information authenticates the slave device that has transmitted the third authentication information;
A Bluetooth communication method comprising:
前記第三認証情報を受信したマスター機器と前記第三認証情報を送信したスレーブ機器がペアリングを行うステップと、
を備えることを特徴とする請求項12に記載のブルートゥース通信方法。
The master device that has received the third authentication information and the slave device that has transmitted the third authentication information perform pairing;
The Bluetooth communication method according to claim 12, further comprising:
ブルートゥース通信方法を用いた施解錠方法であって、
キー装置がスレーブモードでマスターモードの施解錠制御装置に認証のための第一認証情報を送信するステップと、
前記施解錠制御装置がマスターモードでスレーブモードの前記キー装置からの前記第一認証情報を受信するステップと、
前記キー装置が前記施解錠制御装置に前記第一認証情報を送信した後に、スレーブモードをマスターモードに切り替えるステップと、
前記施解錠制御装置が前記キー装置からの前記第一認証情報を受信した後に、マスターモードをスレーブモードに切り替えるステップと、
前記施解錠制御装置がスレーブモードをマスターモードに切り替えた前記キー装置に認証のための第二認証情報を送信するステップと、
前記キー装置がマスターモードをスレーブモードに切り替えた前記施解錠制御装置からの前記第二認証情報を受信するステップと、
前記キー装置が前記施解錠制御装置からの前記第二認証情報を受信した後に、マスターモードをスレーブモードに切り替えるステップと、
前記施解錠制御装置が前記キー装置に前記第二認証情報を送信した後に、スレーブモードをマスターモードに切り替えるステップと、
前記キー装置がスレーブモードでマスターモードの前記施解錠制御装置に、施解錠の要求を含む、認証のための第三認証情報を送信するステップと、
前記施解錠制御装置がマスターモードでスレーブモードの前記キー装置からの前記第三認証情報を受信するステップと、
施解錠の要求を含む前記第三認証情報を受信した前記施解錠制御装置が扉装置に解錠又は施錠を指示するステップと、
を備えることを特徴とする施解錠方法。
A locking / unlocking method using Bluetooth communication method,
Transmitting the first authentication information for authentication to the locking / unlocking control device in the master mode in the slave mode in the key device;
The locking and unlocking control device receiving the first authentication information from the key device in the slave mode in the master mode; and
After the key device transmits the first authentication information to the locking and unlocking control device, switching the slave mode to the master mode;
After the locking and unlocking control device receives the first authentication information from the key device, switching the master mode to the slave mode;
Transmitting the second authentication information for authentication to the key device in which the locking / unlocking control device switches the slave mode to the master mode;
Receiving the second authentication information from the locking / unlocking control device in which the key device switches the master mode to the slave mode;
After the key device receives the second authentication information from the locking and unlocking control device, switching the master mode to the slave mode;
After the locking / unlocking control device transmits the second authentication information to the key device, switching the slave mode to the master mode;
Transmitting the third authentication information for authentication including a request for locking / unlocking to the locking / unlocking control apparatus in the master mode in the slave mode in the key device;
The locking and unlocking control device receiving the third authentication information from the key device in the slave mode in the master mode; and
The locking / unlocking control device that has received the third authentication information including the request for locking / unlocking instructs the door device to unlock or lock; and
A locking / unlocking method comprising:
前記施解錠制御装置が前記第三認証情報を受信した後に、前記施解錠制御装置と前記キー装置がペアリングを行うステップと、
を備えることを特徴とする請求項14に記載の施解錠方法。
After the locking / unlocking control device receives the third authentication information, the locking / unlocking control device and the key device perform pairing;
The locking / unlocking method according to claim 14, further comprising:
JP2016214052A 2016-11-01 2016-11-01 Bluetooth communication system Active JP6298514B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016214052A JP6298514B1 (en) 2016-11-01 2016-11-01 Bluetooth communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016214052A JP6298514B1 (en) 2016-11-01 2016-11-01 Bluetooth communication system

Publications (2)

Publication Number Publication Date
JP6298514B1 true JP6298514B1 (en) 2018-03-20
JP2018074457A JP2018074457A (en) 2018-05-10

Family

ID=61629232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016214052A Active JP6298514B1 (en) 2016-11-01 2016-11-01 Bluetooth communication system

Country Status (1)

Country Link
JP (1) JP6298514B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769406A (en) * 2019-10-31 2020-02-07 拉扎斯网络科技(上海)有限公司 Communication control method, communication control device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015052222A (en) * 2013-09-06 2015-03-19 株式会社東海理化電機製作所 Remote control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015052222A (en) * 2013-09-06 2015-03-19 株式会社東海理化電機製作所 Remote control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769406A (en) * 2019-10-31 2020-02-07 拉扎斯网络科技(上海)有限公司 Communication control method, communication control device, storage medium and electronic equipment

Also Published As

Publication number Publication date
JP2018074457A (en) 2018-05-10

Similar Documents

Publication Publication Date Title
JP6784198B2 (en) Locking / unlocking system, key unit
EP3657370B1 (en) Methods and devices for authenticating smart card
KR101875725B1 (en) Smart door lock system, smart door lock and terminal for controlling the smart door lock
CA2571848C (en) Security access device and method
JP6544372B2 (en) Key unit, vehicle
US10783731B2 (en) Wireless tag-based lock actuation systems and methods
EP2804153B1 (en) Electronic lock, locking system and method of operating an electronic lock
CN107685711B (en) The degree of approach for vehicle confirms passive access system
US20210168602A1 (en) Vehicle digital key sharing service method and system
CN100387798C (en) Electric key and electric lock device and realization method thereof
US9779568B2 (en) Locking control device, locking control system, and locking control method
JP6717793B2 (en) Car sharing system and car sharing device
JP2006262184A (en) Authority possession apparatus, authority borrowing apparatus, control unit, authority delegation system, authority possession program and authority possession method
KR20120090148A (en) Method and system for controlling a car using smart phone
JP2019070276A (en) Carsharing system
KR102301742B1 (en) Method for registering and using non keypad smart door-lock key and access control system thereof
JP2019070960A (en) Car sharing system
KR20160109887A (en) Portable nfc doorlock connecting with mobile and openning method thereof
JP6298514B1 (en) Bluetooth communication system
JP2006060392A (en) Unauthorized-use preventive system and identification method for information terminal device
CN109979053A (en) A kind of offline model Internet of Things lock device and cipher key transmission methods based on MULTIPLE DYNAMIC key
JP2003253940A (en) Keyless entry system
CN105827403A (en) Security method, security gate and server
KR101688633B1 (en) Door lock using certification number and method using the same
JP6633401B2 (en) Electronic lock system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180209

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180223

R150 Certificate of patent or registration of utility model

Ref document number: 6298514

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250