CN106303913B - Bluetooth transceiver therein and its information transceiving method - Google Patents
Bluetooth transceiver therein and its information transceiving method Download PDFInfo
- Publication number
- CN106303913B CN106303913B CN201510293446.2A CN201510293446A CN106303913B CN 106303913 B CN106303913 B CN 106303913B CN 201510293446 A CN201510293446 A CN 201510293446A CN 106303913 B CN106303913 B CN 106303913B
- Authority
- CN
- China
- Prior art keywords
- information
- encrypted
- receiving
- sending
- bluetooth
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000001186 cumulative effect Effects 0.000 claims abstract description 19
- 230000005540 biological transmission Effects 0.000 claims description 36
- 238000004891 communication Methods 0.000 claims description 3
- 238000005265 energy consumption Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 9
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
技术领域technical field
本发明是有关于一种收发装置及其数据收发方法,且特别是有关于一种蓝牙收发装置及其信息收发方法。The present invention relates to a transceiver device and a data transceiver method thereof, and in particular to a Bluetooth transceiver device and an information transceiver method thereof.
背景技术Background technique
现今所使用的无线收发方式中,蓝牙协议为一种广泛采用的无线数据收发协议,而蓝牙服务具备有对通信或收发动作进行加密的功能,使得用户端在使用上得以受到保护。一般蓝牙收发装置中可以包括通用属性配置服务器(Generic attribute profileserver,GATT Server),而所述蓝牙服务可以挂载在其中。蓝牙服务中的特征信息是可以被加密保护的,也就是说,当使用者欲使用需加密特征信息时,需通过验证等方式才得以存取所述特征信息的内容。Among the wireless transmission and reception methods used today, the Bluetooth protocol is a widely used wireless data transmission and reception protocol, and the Bluetooth service has the function of encrypting communication or transmission and reception operations, so that the user can be protected in use. A general Bluetooth transceiver device may include a generic attribute profile server (Generic attribute profile server, GATT Server), and the Bluetooth service may be mounted in it. The feature information in the Bluetooth service can be encrypted and protected, that is, when the user wants to use the feature information that needs to be encrypted, the content of the feature information can only be accessed by means of authentication.
请参照图1,图1为一种现有的蓝牙收发方法中,蓝牙收发装置的信息收发能量与时间的对应关系图。其中,纵轴代表蓝牙收发装置收发特征信息的能量,横轴代表时间。时间区间TP是进行安全模式切换的时间区间,而在时间区间TP以前,蓝牙收发装置以较低收发能量来进行不需加密特征信息CH1、CH2的收发。在时间区间TP间,蓝牙收发装置侦测到接着要收发的特征信息CH3为需加密特征信息,并启动加密模式,而在时间区间TP后,蓝牙收发装置则改以高收发能量进行需加密特征信息CH3的收发。值得注意的是,在现有的蓝牙收发方法下,从时间区间TP中启动加密模式之后,蓝牙收发装置即使要进行不需加密的特征信息CH4、CH5的收发,也无法停止加密模式,而需要以较高的收发能量进行数据的收发,也就是说,即使在时间区间TP之后所收发的特征信息CH4、CH5都是不需加密的,蓝牙收发装置仍会以高收发能量进行信息收发,因而造成无谓的功率消耗。Please refer to FIG. 1 . FIG. 1 is a diagram illustrating a corresponding relationship between information sending and receiving energy and time of a bluetooth sending and receiving device in an existing bluetooth sending and receiving method. Among them, the vertical axis represents the energy of the Bluetooth transceiver device to send and receive characteristic information, and the horizontal axis represents time. The time interval TP is the time interval in which the security mode switching is performed, and before the time interval TP, the Bluetooth transceiver device performs the transmission and reception of the feature information CH1 and CH2 without encryption with a relatively low transmission and reception energy. During the time interval TP, the Bluetooth transceiver device detects that the feature information CH3 to be sent and received next is the feature information that needs to be encrypted, and starts the encryption mode, and after the time interval TP, the Bluetooth transceiver device uses high transceiving energy to perform the feature that needs to be encrypted. The transmission and reception of information CH3. It is worth noting that, under the existing Bluetooth transceiver method, after starting the encryption mode from the time interval TP, the Bluetooth transceiver device cannot stop the encryption mode even if it wants to send and receive the feature information CH4 and CH5 that do not require encryption. The data is sent and received with high sending and receiving energy, that is to say, even if the characteristic information CH4 and CH5 sent and received after the time interval TP do not need to be encrypted, the Bluetooth transceiver will still send and receive information with high sending and receiving energy, so cause unnecessary power consumption.
发明内容SUMMARY OF THE INVENTION
本发明提供一种蓝牙收发装置及其信息收发方法,可动态方式调整信息收发,从而降低蓝牙收发装置的功率消耗。The present invention provides a Bluetooth transceiver and a method for information transceiver, which can dynamically adjust information transceiver, thereby reducing the power consumption of the Bluetooth transceiver.
本发明的蓝牙收发装置的信息收发方法,其中蓝牙收发装置挂载有多个蓝牙服务,且各蓝牙服务具有多个特征信息,所述信息收发方法的步骤包括:与客户端建立收发连接并收发所述特征信息;被收发的特征信息为需加密信息时,启动加密收发模式;当加密收发模式被启动时,被收发的特征信息持续为不需加密信息的累计次数或累计时间大于临界值时切断收发连接;当收发连接被切断后关闭加密收发模式,并重新建立收发连接,且以非加密收发模式进行与客户端间的所述特征信息的收发动作。According to the information sending and receiving method of a bluetooth transceiver of the present invention, wherein the bluetooth transceiver is mounted with a plurality of bluetooth services, and each bluetooth service has a plurality of characteristic information, and the steps of the information sending and receiving method include: establishing a sending and receiving connection with a client and sending and receiving. The feature information; when the feature information to be sent and received is the information that needs to be encrypted, the encrypted sending and receiving mode is activated; when the encrypted sending and receiving mode is activated, the feature information to be sent and received continues to be the cumulative number of times that does not need to be encrypted information or the cumulative time is greater than the critical value. Cut off the sending and receiving connection; when the sending and receiving connection is cut off, the encrypted sending and receiving mode is closed, and the sending and receiving connection is re-established, and the sending and receiving of the feature information with the client is performed in the unencrypted sending and receiving mode.
在本发明的一实施例中,上述的在加密收发模式下收发各特征信息的收发能量大于在非加密收发模式下收发各特征信息的收发能量。In an embodiment of the present invention, the above-mentioned transceiving energy for transceiving each feature information in the encrypted transceiving mode is greater than the transceiving energy for transceiving each feature information in the non-encrypted transceiving mode.
在本发明的一实施例中,上述的当加密收发模式被启动时,被收发的特征信息持续为不需加密信息的累计次数或累计时间大于临界值时切断收发连接的步骤包括:当加密收发模式被启动时,侦测被收发的特征信息为需加密信息或不需加密信息;当侦测收发的特征信息为不需加密信息时使累计次数增加1;当侦测收发的特征信息为需加密信息时使累计次数为0。In an embodiment of the present invention, when the encrypted sending and receiving mode is activated, the above-mentioned step of cutting off the sending and receiving connection when the accumulated number of times or the accumulated time of the received and sent feature information continues to be no encrypted information is greater than a critical value includes: when encrypted sending and receiving When the mode is activated, it detects that the received and received feature information is encrypted information or does not need to be encrypted information; when the detected and received and received feature information is not required to be encrypted information, the cumulative number of times is increased by 1; When encrypting information, set the cumulative count to 0.
在本发明的一实施例中,上述的当加密收发模式被启动时,被收发的特征信息持续为不需加密信息的累计次数或累计时间大于该临界值时切断收发连接的步骤包括:当加密收发模式被启动时,启动计时动作以获得该累计时间,并侦测被收发的特征信息为需加密信息或不需加密信息;当侦测收发的特征信息为需加密信息时重置计时动作的累计时间。In an embodiment of the present invention, when the encrypted sending and receiving mode is activated, the above-mentioned step of cutting off the sending and receiving connection when the cumulative number of times the received and sent feature information continues to be no encrypted information or the cumulative time is greater than the threshold value includes: when encrypted When the sending and receiving mode is activated, start the timing action to obtain the accumulated time, and detect whether the sent and received feature information is encrypted information or not; when the detected feature information is encrypted information, reset the timing action cumulative time.
在本发明的一实施例中,上述的多个蓝牙服务挂载在蓝牙收发装置的通用属性配置服务器中。In an embodiment of the present invention, the above-mentioned multiple Bluetooth services are mounted in the general attribute configuration server of the Bluetooth transceiver device.
在本发明的一实施例中,上述的蓝牙收发装置的信息收发方法的步骤还包括针对蓝牙服务中的特征信息进行排列,使为需加密信息的特征信息排列在第一队列,并使为不需加密信息的特征信息排列在第二队列;针对第一队列中的特征信息进行信息收发动作,并在一时间区间后,针对第二队列中的特征信息进行信息收发动作。In an embodiment of the present invention, the steps of the above-mentioned method for transmitting and receiving information of a Bluetooth transceiver device further include arranging the feature information in the Bluetooth service, so that the feature information of the information to be encrypted is arranged in the first queue, and the feature information that is not the information to be encrypted is arranged in the first queue. The characteristic information of the information to be encrypted is arranged in the second queue; the information sending and receiving operation is performed for the characteristic information in the first queue, and after a time interval, the information sending and receiving operation is performed for the characteristic information in the second queue.
本发明的蓝牙收发装置包括主机、控制器以及蓝牙实体层;主机包括通用属性配置服务器,通用属性配置服务器中挂载多个蓝牙服务,各蓝牙服务包括多个特征信息,主机与客户端建立收发连接并收发特征信息;蓝牙实体层与控制器耦接主机,其中,主机在当被收发的特征信息为需加密信息时,启动加密收发模式,并在当加密收发模式被启动时,被收发的特征信息持续为不需加密信息的累计次数或累计时间大于临界值时切断收发连接,主机在收发连接被切断后关闭加密收发模式,并重新建立收发连接,且以一非加密收发模式进行与客户端间的特征信息的收发动作。The Bluetooth transceiver device of the present invention includes a host, a controller and a Bluetooth entity layer; the host includes a general attribute configuration server, and a plurality of Bluetooth services are mounted in the general attribute configuration server, each Bluetooth service includes a plurality of characteristic information, and the host and the client establish a transceiver Connect and send and receive feature information; the Bluetooth physical layer and the controller are coupled to the host, wherein the host starts the encrypted sending and receiving mode when the feature information to be sent and received is the information to be encrypted, and when the encrypted sending and receiving mode is started, the sent and received When the characteristic information continues to be the cumulative number of information that does not need to be encrypted or the cumulative time is greater than the critical value, the sending and receiving connection is cut off. The host closes the encrypted sending and receiving mode after the sending and receiving connection is cut off, and re-establishes the sending and receiving connection, and communicates with the customer in a non-encrypted sending and receiving mode. The transmission and reception of feature information between terminals.
基于上述,本发明的蓝牙收发装置以及信息收发方法采用被收发的特征信息持续为不需加密信息的累计次数或累计时间大于临界值时切断收发连接,当收发连接被切断后关闭加密收发模式,并重新建立收发连接,且以非加密收发模式进行与客户端间的所述特征信息的收发动作,藉此动态调整加密收发模式以及非加密收发模式下的能量,从而降低蓝牙收发的能量消耗。Based on the above, the Bluetooth transceiver and the method for transmitting and receiving information of the present invention use the accumulated number of times that the characteristic information to be transmitted and received continues to be information that does not require encryption or when the accumulated time is greater than a critical value, the transmission and reception connection is cut off, and the encrypted transmission and reception mode is turned off after the transmission and reception connection is cut off, And re-establish the sending and receiving connection, and perform the sending and receiving of the feature information with the client in the unencrypted sending and receiving mode, thereby dynamically adjusting the energy in the encrypted sending and receiving mode and the unencrypted sending and receiving mode, thereby reducing the energy consumption of Bluetooth sending and receiving.
为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and easy to understand, the following embodiments are given and described in detail with the accompanying drawings as follows.
附图说明Description of drawings
图1为一种现有的蓝牙收发方法中,蓝牙收发装置的信息收发能量与时间的对应关系图;Fig. 1 is a kind of existing bluetooth sending and receiving method, the correspondence relation diagram of the information sending and receiving energy and time of the bluetooth sending and receiving device;
图2为本发明一实施例的蓝牙收发装置的信息收发方法步骤流程图;2 is a flowchart of steps of a method for sending and receiving information of a Bluetooth transceiver according to an embodiment of the present invention;
图3A为本发明一实施例的蓝牙收发装置300的模块示意图;FIG. 3A is a schematic block diagram of a Bluetooth transceiver device 300 according to an embodiment of the present invention;
图3B为本发明图3A实施例的主机310的模块示意图;FIG. 3B is a schematic block diagram of the host 310 according to the embodiment of FIG. 3A of the present invention;
图4为本发明一实施例的蓝牙收发装置的信息收发能量与时间的对应关系图。FIG. 4 is a diagram showing a corresponding relationship between information sending and receiving energy and time of a Bluetooth transceiver device according to an embodiment of the present invention.
附图标记说明:Description of reference numbers:
S210、S220、S230、S240:步骤;S210, S220, S230, S240: steps;
TP1、TP、TP2、TP3、TP4、Tdis:时间区间;TP1, TP, TP2, TP3, TP4, Tdis: time interval;
300:蓝牙收发装置;300: Bluetooth transceiver;
310:主机;310: host;
320:通用属性配置服务器;320: common attribute configuration server;
330:蓝牙实体层;330: Bluetooth entity layer;
340:控制器;340: controller;
SV1、SV2、SV3:蓝牙服务;SV1, SV2, SV3: Bluetooth service;
CH1、CH2、CH3、CH4、CH5、CH1_0、CH1_1、CH1_2、CH1_3~CH1_M、CH2_0、CH2_1、CH2_2、CH2_3、CH2_4~CH2_N、CH3_0、CH3_1、CH3_2~CH3_I:特征信息。CH1, CH2, CH3, CH4, CH5, CH1_0, CH1_1, CH1_2, CH1_3~CH1_M, CH2_0, CH2_1, CH2_2, CH2_3, CH2_4~CH2_N, CH3_0, CH3_1, CH3_2~CH3_I: characteristic information.
具体实施方式Detailed ways
请同时参照图2以及图3A,图2为本发明一实施例的蓝牙收发装置的信息收发方法步骤流程图,图3A为本发明一实施例的蓝牙收发装置300的模块示意图,图3B为本发明一实施例的主机310的模块示意图。图2的信息收发方法至少可以应用于图3A的蓝牙收发装置300。图3A中,蓝牙收发装置300包括主机310、蓝牙实体层330以及控制器340。主机310中具有通用属性配置服务器320,且主机310与蓝牙实体层330及控制器340相互耦接。通用属性配置服务器320中可以挂载多个蓝牙服务,而各蓝牙服务中可以包括多个特征信息,且每一个特征信息可以是需加密的特征信息或也可以是不需加密的特征信息。控制器340可以调整蓝牙服务进行模式的切换。Please refer to FIG. 2 and FIG. 3A at the same time. FIG. 2 is a flowchart of a method for sending and receiving information of a Bluetooth transceiver according to an embodiment of the present invention. FIG. 3A is a block diagram of a Bluetooth transceiver 300 according to an embodiment of the present invention. A block diagram of the host 310 according to an embodiment of the invention. The information transceiving method in FIG. 2 can be applied to at least the Bluetooth transceiving apparatus 300 in FIG. 3A . In FIG. 3A , the Bluetooth transceiver 300 includes a host 310 , a Bluetooth physical layer 330 and a controller 340 . The host 310 has a general attribute configuration server 320, and the host 310 is coupled with the Bluetooth physical layer 330 and the controller 340. The general attribute configuration server 320 may mount multiple Bluetooth services, and each Bluetooth service may include multiple feature information, and each feature information may be feature information that needs to be encrypted or feature information that does not need to be encrypted. The controller 340 may adjust the Bluetooth service to perform mode switching.
关于本发明实施例的特征信息的收发动作的细节,首先,在步骤S210中,主机310会与客户端建立收发连接,并藉以开始特征信息的收发动作。主机310可以依据设定的顺序来依序传送通用属性配置服务器320中所挂载的各蓝牙服务中的各个特征信息。在步骤S220中,当主机310判读被收发的特征信息为需加密信息时,则进行安全模式的切换动作,并藉以启动加密收发模式(security mode),并以加密收发模式来传送为需加密信息的特征信息。在步骤S230中,在加密收发模式下,主机310一旦侦测到有不需加密信息的特征信息被收发时,主机310可以开始计算所收发的特征信息持续为不需加密信息的累计次数或累计时间。当主机310判断出所收发的特征信息持续为不需加密信息的累计次数大于临界值(临界次数)时,或所收发的特征信息持续为不需加密信息的累计时间大于另一临界值(临界时间)时,主机310可切断与客户端间建立的收发连接。Regarding the details of the transmission and reception of feature information in the embodiment of the present invention, first, in step S210, the host 310 establishes a connection for transmission and reception with the client, thereby starting the transmission and reception of the characteristic information. The host 310 may sequentially transmit each feature information of each Bluetooth service mounted in the general attribute configuration server 320 according to the set sequence. In step S220, when the host 310 interprets that the transmitted and received feature information is the information to be encrypted, the host 310 performs the switching action of the security mode, thereby enabling the encrypted transmission and reception mode (security mode), and transmits the encrypted information in the encrypted transmission and reception mode. characteristic information. In step S230, in the encrypted sending and receiving mode, once the host 310 detects that feature information that does not require encrypted information has been sent and received, the host 310 can start to calculate the cumulative number of times or the cumulative number of times that the sent and received feature information continues to be unencrypted information. time. When the host 310 determines that the cumulative number of times that the transmitted and received characteristic information continues to be information that does not require encryption is greater than a critical value (critical number of times), or the cumulative time that the transmitted and received characteristic information continues to be information that does not require encryption is greater than another threshold (critical time) ), the host 310 may cut off the transceiver connection established with the client.
接着,在蓝牙收发装置300收发连接被切断后一个预设时间后,蓝牙收发装置300与客户端间可重新建立收发连接,如此一来,蓝牙收发装置300就可以非加密收发模式进行与客户端的所述特征信息的收发动作(步骤S240)。Then, after a preset time after the transceiver connection of the Bluetooth transceiver 300 is cut off, the transceiver connection between the Bluetooth transceiver 300 and the client can be re-established. In this way, the Bluetooth transceiver 300 can perform communication with the client in a non-encrypted transceiver mode. The transmission and reception of the feature information (step S240).
具体而言,在加密收发模式下,本发明的主机310通过切断与客户端的连接之后一段时间再重新建立与客户端的连接,以使蓝牙收发装置300能以非加密收发模式进行不需加密信息的收发,以避免蓝牙收发装置300持续在加密收发模式下传送不需加密信息。并且,主机310在侦测累计时间或累计次数是否达到临界值的情况下,蓝牙收发装置300在运作的时候就能持续以动态的方式判断是否要调整加密收发模式,以达到降低蓝牙收发的能量消耗。Specifically, in the encrypted sending and receiving mode, the host 310 of the present invention re-establishes the connection with the client after a period of time after cutting off the connection with the client, so that the Bluetooth transceiver 300 can send and receive information without encryption in the unencrypted sending and receiving mode. Transceiver, so as to prevent the Bluetooth transceiver device 300 from continuously transmitting unencrypted information in the encrypted transceiver mode. In addition, when the host 310 detects whether the accumulated time or the accumulated number of times reaches a critical value, the Bluetooth transceiver device 300 can continue to dynamically determine whether to adjust the encryption transceiver mode during operation, so as to reduce the energy of Bluetooth transceivers. consume.
以下请参照图3B,图3B为本发明图3A实施例的主机310的模块示意图。本发明的通用属性配置服务器提供蓝牙收发装置的应用端来挂载蓝牙服务。其中,使用者可以通过应用程序在通用属性配置服务器中挂载对应的蓝牙服务。在本实施例中,通用属性配置服务器320中包括蓝牙服务SV1、SV2以及SV3,各蓝牙服务可以分别提供给不同的装置或是应用程序(Application)进行蓝牙收发。另外,蓝牙服务SV1、SV2以及SV3可分别包括多个特征信息CH1_0~CH1_M、CH2_0~CH2_N以及CH3_0~CH3_I。在本实施例中,蓝牙服务SV1所包括的特征信息CH1_0~CH1_M中仅有特征信息CH1_2属于需加密信息,其余的特征信息均为不需加密信息。蓝牙服务SV2所包括的特征信息CH2_0~CH2_N则均为不需加密信息,此外,蓝牙服务SV3所包括的特征信息CH3_0~CH3_I则均为需加密信息。值得注意的是,本发明并不限制蓝牙服务的数目或其包括的特征信息数目。Please refer to FIG. 3B below. FIG. 3B is a schematic block diagram of the host 310 according to the embodiment of FIG. 3A of the present invention. The general attribute configuration server of the present invention provides the application end of the Bluetooth transceiver device to mount the Bluetooth service. Among them, the user can mount the corresponding Bluetooth service in the general attribute configuration server through the application program. In this embodiment, the general attribute configuration server 320 includes Bluetooth services SV1, SV2, and SV3, and each Bluetooth service can be provided to different devices or applications (Application) for Bluetooth transmission and reception respectively. In addition, the Bluetooth services SV1 , SV2 and SV3 may include a plurality of pieces of feature information CH1_0 - CH1_M, CH2_0 - CH2_N and CH3_0 - CH3_I, respectively. In this embodiment, among the feature information CH1_0 to CH1_M included in the Bluetooth service SV1, only the feature information CH1_2 belongs to the information that needs to be encrypted, and the rest of the feature information is the information that does not need to be encrypted. The characteristic information CH2_0 to CH2_N included in the Bluetooth service SV2 are all information that does not need to be encrypted. In addition, the characteristic information CH3_0 to CH3_I included in the Bluetooth service SV3 are all information that needs to be encrypted. It is worth noting that the present invention does not limit the number of Bluetooth services or the number of feature information they include.
图4为本发明图3B实施例的蓝牙收发装置的信息收发能量与时间的对应关系图。纵轴代表蓝牙收发装置收发特征信息的能量,横轴代表时间。请同时参照图3B与图4,在时间区间TP1中,蓝牙收发装置300以非加密收发模式收发非加密的特征信息,例如为不需加密信息的特征信息CH1_0及CH2_0。基于接下来要进行收发的特征信息CH3_0为需加密信息,时间区间TP中则需进行启动蓝牙收发装置300的加密模式的动作。当在加密模式被启动的情况下,在时间区间TP2中则可以进行为需加密信息的特征信息的收发动作,例如特征信息CH3_0和CH3_1等。值得注意的是,在本实施例中,加密收发模式下传送各特征信息的收发能量会大于非加密收发模式下收发各特征信息的收发能量。举例来说,收发特征信息CH3_1(加密收发模式下)的收发能量就会大于收发特征信息CH1_0(非加密收发模式下)的收发能量。FIG. 4 is a diagram showing the correspondence between the information sending and receiving energy and time of the Bluetooth transceiver according to the embodiment of FIG. 3B of the present invention. The vertical axis represents the energy of the Bluetooth transceiver device sending and receiving characteristic information, and the horizontal axis represents time. 3B and FIG. 4 at the same time, in the time interval TP1, the Bluetooth transceiver 300 transmits and receives unencrypted feature information in an unencrypted transceiver mode, for example, the feature information CH1_0 and CH2_0 that do not require encrypted information. Based on the characteristic information CH3_0 to be transceived next is the information to be encrypted, the action of enabling the encryption mode of the Bluetooth transceiving device 300 needs to be performed in the time interval TP. When the encryption mode is activated, in the time interval TP2, the transmission and reception of characteristic information that is information to be encrypted, such as characteristic information CH3_0 and CH3_1, can be performed. It is worth noting that, in this embodiment, the transceiving energy for transmitting each feature information in the encrypted transceiving mode is greater than the transceiving energy for transmitting and receiving each feature information in the non-encrypted transceiving mode. For example, the transceiving energy for transceiving the characteristic information CH3_1 (in the encrypted transceiving mode) is greater than the transceiving energy for transceiving the characteristic information CH1_0 (in the non-encrypted transceiving mode).
在本实施例中,在加密模式下的时间区间TP3中也可以进行为不需加密信息的特征信息的收发动作,例如特征信息CH1_1、CH1_3、CH1_M。当蓝牙收发装置300侦测到在加密模式下的时间区间TP3中收发的特征信息为不需加密信息时,例如特征信息CH1_1,主机310则可启动计数动作使累计次数增加1,并且,在此状态下,蓝牙收发装置300每收发一笔不需加密信息的特征信息时,可对应使累计次数增加1。附带一提的,若蓝牙收发装置300在此时间区间中,有侦测收发的特征信息为需加密信息时,则可使累计次数重置为0。In this embodiment, in the time interval TP3 in the encryption mode, the transmission and reception of characteristic information that does not require encryption information, such as characteristic information CH1_1 , CH1_3 , and CH1_M, may also be performed. When the Bluetooth transceiver device 300 detects that the characteristic information sent and received in the time interval TP3 in the encryption mode is information that does not need to be encrypted, such as the characteristic information CH1_1, the host 310 can start the counting action to increase the accumulated number of times by 1, and here In the state, each time the Bluetooth transceiver 300 transmits and receives a piece of feature information that does not require encrypted information, the accumulated number of times can be increased by 1 correspondingly. Incidentally, if the Bluetooth transceiver 300 detects that the characteristic information sent and received is the information to be encrypted in this time interval, the accumulated number of times can be reset to 0.
在当所计数的累计次数到达临界值时,蓝牙收发装置300可在时间区间Tdis切断与客户端的收发连接。接着,在蓝牙收发装置300收发连接被切断后一个预设时间后,蓝牙收发装置300与客户端间可重新建立收发连接,并且在时间区间TP4中改以非加密收发模式的收发方式通过较低的能量来进行特征信息CH2_1、CH2_2、CH2_3以及CH2_4的收发动作。本实施例中的临界值可以是系统预设或是由设计者自行定义,在此并不加以限定。When the counted cumulative number reaches a critical value, the Bluetooth transceiver device 300 may cut off the transceiver connection with the client within the time interval Tdis. Next, after a preset time after the transceiver connection of the Bluetooth transceiver 300 is cut off, the transceiver connection between the Bluetooth transceiver 300 and the client can be re-established, and in the time interval TP4, the unencrypted transceiver mode is changed to pass lower The energy of the characteristic information CH2_1, CH2_2, CH2_3, and CH2_4 is transmitted and received. The threshold value in this embodiment may be preset by the system or defined by the designer, which is not limited herein.
在另一实施例中,当在加密收发模式下的时间区间TP3中侦测到有不需加密信息的特征信息被收发时,例如特征信息CH1_1,主机310启动计时动作以获得累计时间。在计时动作的期间,若主机310侦测到存在所收发的特征信息为需加密信息时,则可重置计时动作的累计时间。反之,蓝牙收发装置300则可持续进行计时动作的,例如在时间区间TP3中所收发的特征信息CH1_1、CH1_3和CH1_M均为不需加密信息,主机310就会启动计时动作并产生累计时间。若累计时间到达临界值时,蓝牙收发装置300可在时间区间Tdis切断与客户端的收发连接。接着,蓝牙收发装置300在收发连接被切断后一个预设时间后,蓝牙收发装置300与客户端间可重新建立收发连接,并且可在时间区间TP4中以非加密收发模式通过较低的能量来进行与客户端间的特征信息CH2_1、CH2_2、CH2_3以及CH2_4的收发动作。所述时间区间Tdis的时间长短同样可由设计者依据实际的状态加以设定,没有一定的限制。In another embodiment, when characteristic information that does not require encrypted information is detected to be transmitted and received in the time interval TP3 in the encrypted transmission and reception mode, such as characteristic information CH1_1, the host 310 starts a timing operation to obtain the accumulated time. During the timing action, if the host 310 detects that the transmitted and received feature information is information to be encrypted, the accumulated time of the timing action can be reset. On the other hand, if the Bluetooth transceiver 300 continues to perform timing operations, for example, the characteristic information CH1_1, CH1_3 and CH1_M sent and received in the time interval TP3 are not encrypted information, the host 310 will start the timing operation and generate accumulated time. If the accumulated time reaches the critical value, the Bluetooth transceiver device 300 may cut off the transceiver connection with the client within the time interval Tdis. Next, after a preset time after the Bluetooth transceiver device 300 is disconnected from the transceiver connection, the Bluetooth transceiver device 300 and the client can re-establish the transceiver connection, and can use the non-encrypted transceiver mode in the time interval TP4 to use a lower energy The characteristic information CH2_1, CH2_2, CH2_3, and CH2_4 are transmitted and received with the client. The time length of the time interval Tdis can also be set by the designer according to the actual state, and there is no certain limitation.
另外,在其他实施例中,蓝牙收发装置300的主机310可针对蓝牙服务的特征信息进行排列,使为需加密信息的特征信息排列在相同的第一队列,并使为不需加密信息的特征信息排列在另一相同的第二队列。并且,主机310可先针对第一队列中的特征信息进行信息收发动作,并在一时间区间后,针对第二队列中的特征信息进行信息收发动作。In addition, in other embodiments, the host 310 of the Bluetooth transceiver 300 may arrange the feature information of the Bluetooth service, so that the feature information that requires encrypted information is arranged in the same first queue, and the feature information that does not require encrypted information is arranged in the same first queue. The information is arranged in another identical second queue. In addition, the host 310 may first perform an information sending and receiving operation with respect to the feature information in the first queue, and after a time interval, perform an information sending and receiving operation with respect to the feature information in the second queue.
具体而言,主机310可以将需加密信息的特征信息,例如特征信息CH1_2、CH3_0以及CH3_1等排列在第一队列,并使为不需加密信息的特征信息,例如CH1_0、CH2_0以及CH2_1等排列在第二队列,并且,主机310先针对第一队列中的特征信息进行信息收发动作,并在一段时间区间后,针对第二队列中的特征信息进行信息收发动作。类似的,在进行完第一队列的收发动作后,在蓝牙收发装置300收发连接被切断后一个预设时间后,蓝牙收发装置300与客户端间可重新建立收发连接,并且以非加密收发模式通过较低的能量来进行第二队列的收发动作。Specifically, the host 310 can arrange the feature information that needs to be encrypted information, such as the feature information CH1_2, CH3_0, and CH3_1, in the first queue, and make the feature information that does not need encrypted information, such as CH1_0, CH2_0, and CH2_1, in the first queue. The second queue, and the host 310 first performs an information sending and receiving operation for the feature information in the first queue, and after a period of time, performs an information sending and receiving operation for the feature information in the second queue. Similarly, after the sending and receiving operations of the first queue are completed, after a preset time after the sending and receiving connection of the bluetooth sending and receiving device 300 is cut off, the sending and receiving connection between the bluetooth sending and receiving device 300 and the client can be re-established, and the sending and receiving mode can be performed in an unencrypted sending and receiving mode. The transmission and reception operations of the second queue are performed with lower energy.
通过上述的排队动作,蓝牙收发装置300与客户端重新连接的次数可以有效的被降低,并有效的提升信息传送的效能。Through the above-mentioned queuing action, the number of reconnections between the Bluetooth transceiver device 300 and the client can be effectively reduced, and the efficiency of information transmission can be effectively improved.
综上所述,本发明的蓝牙收发装置以及信息收发方法采用被收发的特征信息持续为不需加密信息的累计次数或累计时间大于临界值时切断收发连接,当收发连接被切断后关闭加密收发模式,并重新建立收发连接,且以非加密收发模式进行与客户端间的所述特征信息的收发动作,藉此动态调整加密收发模式以及非加密收发模式下的能量,从而降低蓝牙收发的能量消耗。To sum up, the Bluetooth transceiver device and the method for transmitting and receiving information of the present invention use the accumulated number of times that the characteristic information to be transmitted and received continues to be information that does not require encryption or when the accumulated time is greater than a critical value, the transmission and reception connection is cut off, and the encrypted transmission and reception is turned off when the transmission and reception connection is cut off. mode, and re-establish the sending and receiving connection, and perform the sending and receiving of the feature information with the client in the unencrypted sending and receiving mode, thereby dynamically adjusting the energy in the encrypted sending and receiving mode and the unencrypted sending and receiving mode, thereby reducing the energy of Bluetooth sending and receiving consume.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.
Claims (11)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510293446.2A CN106303913B (en) | 2015-06-01 | 2015-06-01 | Bluetooth transceiver therein and its information transceiving method |
| TW104119972A TWI548228B (en) | 2015-06-01 | 2015-06-22 | Bluetooth transceiving appartus and data transceiving method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510293446.2A CN106303913B (en) | 2015-06-01 | 2015-06-01 | Bluetooth transceiver therein and its information transceiving method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106303913A CN106303913A (en) | 2017-01-04 |
| CN106303913B true CN106303913B (en) | 2019-06-25 |
Family
ID=57444972
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510293446.2A Expired - Fee Related CN106303913B (en) | 2015-06-01 | 2015-06-01 | Bluetooth transceiver therein and its information transceiving method |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106303913B (en) |
| TW (1) | TWI548228B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108696347B (en) * | 2017-04-12 | 2021-02-19 | 展讯通信(上海)有限公司 | Bluetooth AES encryption starting method and system and Bluetooth master and slave devices |
| CN108846285B (en) * | 2018-06-19 | 2021-09-24 | 北京奥普维尔科技有限公司 | Model machine management method and model machine management system |
| CN113453221B (en) * | 2020-03-09 | 2022-04-12 | Oppo广东移动通信有限公司 | Encrypted communication method, device, electronic equipment and computer readable storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101169815A (en) * | 2007-11-27 | 2008-04-30 | 华为技术有限公司 | Computer system and data input method |
| CN102075321A (en) * | 2010-11-24 | 2011-05-25 | 东南大学 | Mobile communication end-to-end voice encryption Bluetooth handheld device and voice encryption method |
| CN103916725A (en) * | 2014-03-27 | 2014-07-09 | 上海华博信息服务有限公司 | Bluetooth headset |
| CN103986503A (en) * | 2014-05-16 | 2014-08-13 | 北京民芯科技有限公司 | Safety Bluetooth headset and voice communication method thereof |
| US8855310B2 (en) * | 2006-05-12 | 2014-10-07 | Blackberry Limited | System and method for exchanging encryption keys between a mobile device and a peripheral device |
| CN104469761A (en) * | 2014-12-25 | 2015-03-25 | 北京深思数盾科技有限公司 | Bluetooth communication method |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7174130B2 (en) * | 2001-09-12 | 2007-02-06 | Agere Systems Inc. | Security apparatus and method during BLUETOOTH pairing |
| JP3617981B2 (en) * | 2002-06-17 | 2005-02-09 | 株式会社東芝 | Information terminal control method and control information transmitter |
| SE0300252D0 (en) * | 2003-02-03 | 2003-02-03 | Hamid Delalat | Blue Guards |
| US8750797B2 (en) * | 2008-07-22 | 2014-06-10 | Nissaf Ketari | Proximity access and alarm apparatus |
| US9294545B2 (en) * | 2010-12-16 | 2016-03-22 | Microsoft Technology Licensing, Llc | Fast join of peer to peer group with power saving mode |
| US20130259230A1 (en) * | 2012-03-29 | 2013-10-03 | Broadcom Corporation | Bluetooth Low Energy Privacy |
| US8756669B2 (en) * | 2012-06-20 | 2014-06-17 | Futurewei Technologies, Inc. | Security mode for mobile communications devices |
| US9008917B2 (en) * | 2012-12-27 | 2015-04-14 | GM Global Technology Operations LLC | Method and system for detecting proximity of an end device to a vehicle based on signal strength information received over a bluetooth low energy (BLE) advertising channel |
-
2015
- 2015-06-01 CN CN201510293446.2A patent/CN106303913B/en not_active Expired - Fee Related
- 2015-06-22 TW TW104119972A patent/TWI548228B/en not_active IP Right Cessation
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8855310B2 (en) * | 2006-05-12 | 2014-10-07 | Blackberry Limited | System and method for exchanging encryption keys between a mobile device and a peripheral device |
| CN101169815A (en) * | 2007-11-27 | 2008-04-30 | 华为技术有限公司 | Computer system and data input method |
| CN102075321A (en) * | 2010-11-24 | 2011-05-25 | 东南大学 | Mobile communication end-to-end voice encryption Bluetooth handheld device and voice encryption method |
| CN103916725A (en) * | 2014-03-27 | 2014-07-09 | 上海华博信息服务有限公司 | Bluetooth headset |
| CN103986503A (en) * | 2014-05-16 | 2014-08-13 | 北京民芯科技有限公司 | Safety Bluetooth headset and voice communication method thereof |
| CN104469761A (en) * | 2014-12-25 | 2015-03-25 | 北京深思数盾科技有限公司 | Bluetooth communication method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106303913A (en) | 2017-01-04 |
| TWI548228B (en) | 2016-09-01 |
| TW201644210A (en) | 2016-12-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106357364B (en) | Data transmission method, device and system | |
| US10069894B2 (en) | Electronic device, storage medium and file transferring method | |
| US9967315B2 (en) | Electronic device, storage medium and file transferring method | |
| CN104301066A (en) | Data packet transmission method and device | |
| US11012724B2 (en) | Video transmission method, apparatus, and system, and computer readable storage medium | |
| WO2017185951A1 (en) | Video transmission method, base station, and system | |
| TW200603568A (en) | Dynamically provisioning computer system resources | |
| US9781595B2 (en) | Wireless communication device | |
| CN108574735B (en) | Data processing method, terminal and computer readable storage medium | |
| CN106303913B (en) | Bluetooth transceiver therein and its information transceiving method | |
| CN108200180B (en) | Method and device for limiting request frequency and computer equipment | |
| CN107343325A (en) | A data transmission method, device and terminal | |
| CN107888550A (en) | Performance indications collecting method and device, tactful sending method and device | |
| JP2019500765A5 (en) | ||
| CN111405635A (en) | Implementation method, apparatus, device, and computer-readable storage medium for capability openness | |
| CN103796179A (en) | Message sending method and apparatus | |
| WO2011127692A1 (en) | Apparatus and method for monitoring short messages | |
| CN106230742A (en) | Data packet dispatching method and device | |
| WO2015106524A1 (en) | Method, apparatus and server for notifying/sending usage of service package | |
| CN103685141B (en) | The implementation method of a kind of transmission service and equipment | |
| CN115604536A (en) | Timer control method, device and communication equipment | |
| WO2018119789A1 (en) | Method for connecting to access point, terminal, and management server | |
| CN104579994A (en) | Message authentication method and device | |
| CN102695284B (en) | Processing method, equipment and system of downlink block data | |
| CN107509192B (en) | An authentication method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190625 Termination date: 20210601 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |