CN104812094B - Method and apparatus for establishing connections between devices - Google Patents

Method and apparatus for establishing connections between devices Download PDF

Info

Publication number
CN104812094B
CN104812094B CN201510190956.7A CN201510190956A CN104812094B CN 104812094 B CN104812094 B CN 104812094B CN 201510190956 A CN201510190956 A CN 201510190956A CN 104812094 B CN104812094 B CN 104812094B
Authority
CN
China
Prior art keywords
target device
interval
time
time interval
current
Prior art date
Application number
CN201510190956.7A
Other languages
Chinese (zh)
Other versions
CN104812094A (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 CN201510190956.7A priority Critical patent/CN104812094B/en
Publication of CN104812094A publication Critical patent/CN104812094A/en
Application granted granted Critical
Publication of CN104812094B publication Critical patent/CN104812094B/en

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THIR OWN ENERGY USE
    • Y02D70/00Techniques for reducing energy consumption in wireless communication networks
    • Y02D70/10Techniques for reducing energy consumption in wireless communication networks according to the Radio Access Technology [RAT]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THIR OWN ENERGY USE
    • Y02D70/00Techniques for reducing energy consumption in wireless communication networks
    • Y02D70/10Techniques for reducing energy consumption in wireless communication networks according to the Radio Access Technology [RAT]
    • Y02D70/14Techniques for reducing energy consumption in wireless communication networks according to the Radio Access Technology [RAT] in Institute of Electrical and Electronics Engineers [IEEE] networks
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THIR OWN ENERGY USE
    • Y02D70/00Techniques for reducing energy consumption in wireless communication networks
    • Y02D70/40According to the transmission technology
    • Y02D70/42Near-field transmission systems, e.g. inductive or capacitive coupling

Abstract

本发明实施例提供一种设备间的连接建立方法和装置。 Embodiment of the present invention provides apparatus and method for establishing a connection between an apparatus. 该方法包括:在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包;在设定时间内未接收到所述目标设备发送的请求消息时,增大所述当前设定时间间隔,避免了源设备中的蓝牙模块长时间处于高频次的广播状态而导致耗电量增加,降低了源设备中蓝牙模块的功耗,并提高了蓝牙模块的使用时间;将增大后的时间间隔更新为当前设定时间间隔,并返回执行按照当前设定时间间隔发送广播包的操作,之后,如果在新的设定时间内接收到目标设备发送的请求消息时,通过减小发送广播包的时间间隔,仍可以加快源设备与可连接的目标设备之间的连接速度。 The method comprising: upon detecting a disconnect from the target device, transmitting a broadcast packet according to the current interval time is set; the target device does not receive the request message sent within the set time, increasing the current setting time interval, to avoid the source device Bluetooth module in a long time of high frequency broadcasting state lead to increased power consumption, reducing the power consumption of the Bluetooth module of the source device, and improves the Bluetooth module time; increases after updating the current interval set time interval, and returns the execution interval of the broadcast packet transmission operations in accordance with the current setting time, then, if the received request message sent by the target device in the new set time, by reducing the transmitting broadcast packet time interval, still faster connection between a source device and a target device can be connected.

Description

设备间的连接建立方法和装置 Method and apparatus for establishing connections between devices

技术领域 FIELD

[0001]本发明实施例涉及信息技术领域,尤其涉及一种设备间的连接建立方法和装置。 FIELD Example embodiments relate to information technology [0001] The present invention particularly relates to an apparatus for establishing a connection between the apparatus and method.

背景技术 Background technique

[0002] 在包含有蓝牙的源设备与包含有蓝牙的目标设备之间进行连接非常普遍,特别是当源设备为可穿戴设备时,往往需要随时与目标设备(例如移动终端)保持连接状态,所以在源设备与目标设备断开连接时,源设备会进行长时间广播,以便目标设备再次发现,然后重新建立连接。 [0002] In comprising a Bluetooth device comprising a source for the target device on the Bluetooth connection is very common, particularly when the source device is a wearable device, often need to always remain connected with the target device (e.g. a mobile terminal), so when the source device and the target device is disconnected, the source device will be broadcast for a long time, so that the target device discovery again, and then re-establish the connection.

[0003] 现有的设备间的连接建立技术,为了保证与目标设备断开连接后的任何时间或者很长一段时间内重新与目标设备建立连接,源设备中的蓝牙模块通常会在断开连接后以设定时间间隔开始广播,而且每次发送的广播包的时间间隔是固定的,为了提高连接速度,这个时间间隔一般都不会太大。 [0003] technology to establish the connection between a conventional apparatus, in order to ensure at any time after the target device is disconnected or the new connection is established, the Bluetooth module source device and the target device for a long period of time will usually be disconnected after the broadcast at a set interval begins, and the time of the broadcast packets transmitted per interval is fixed, in order to improve the connection speed, this interval is generally not too large.

[0004] 存在的缺陷在于:如果目标设备因为距离等其它原因长时间没有及时与源设备重新连接,则源设备中的蓝牙模块长时间处于广播状态而导致耗电量增加,影响蓝牙模块的使用时间。 [0004] The present drawback: If the target device for other reasons long distance did not reconnect with the source device, the source device is a broadcast time of the Bluetooth module state lead to increased power consumption, affect the Bluetooth module time.

发明内容 SUMMARY

[0005] 本发明实施例提供一种设备间的连接建立方法和装置,以优化蓝牙设备之间的连接建立方式。 Example embodiments provide an apparatus for establishing a connection between the apparatus and method [0005] of the present invention, in order to optimize the connection between the Bluetooth device mode.

[0006] 第一方面,本发明实施例提供了一种设备间的连接建立方法,包括: [0006] In a first aspect, embodiments of the present invention provides a method for establishing a connection between an apparatus, comprising:

[0007] 在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; [0007] Upon detecting the target device is disconnected, according to the current set time interval transmitting broadcast packet;

[0008] 在设定时间内未接收到所述目标设备发送的请求消息时,增大所述当前设定时间间隔,将增大后的时间间隔更新为当前设定时间间隔,并返回执行按照当前设定时间间隔发送广播包的操作,其中,所述请求消息在所述目标设备接收到所述广播包时生成。 [0008] When the target device does not receive the request message sent within the set time, increasing the current set time interval, the time interval will be increased after the set time interval to the current update, and returns accordance current setting operation of the broadcast packet transmission time interval, wherein the request message is generated when the target device receives the broadcast packet.

[0009] 第二方面,本发明实施例提供了一种设备间的连接建立装置,包括: [0009] In a second aspect, embodiments of the present invention provides an apparatus to establish connection between the apparatus comprising:

[0010] 发送模块,用于在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; [0010] sending module, configured to disconnect upon detection of the target device, according to the current set time interval transmitting broadcast packet;

[0011] 间隔增大模块,用于在设定时间内未接收到所述目标设备发送的请求消息时,增大所述当前设定时间间隔,将增大后的时间间隔更新为当前设定时间间隔,并返回执行按照当前设定时间间隔发送广播包的操作,其中,所述请求消息在所述目标设备接收到所述广播包时生成。 [0011] increase the interval module configured to, when the target device is not received request message sent within the set time, increasing the current set time interval, after the time set as the current update interval is increased time interval, and perform the operation returns broadcast packets transmitted according to the current set time interval, wherein the request message is generated when the target device receives the broadcast packet.

[0012] 本发明实施例提供的一种设备间的连接建立方法和装置,在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包,在设定时间内未接收到目标设备发送的请求消息时,可以确定在该设定时间内没有可连接的目标设备,此时,通过增大发送广播包的时间间隔,避免了源设备中的蓝牙模块长时间处于高频次的广播状态而导致耗电量增加, 降低了源设备中蓝牙模块的功耗,并提高了蓝牙模块的使用时间;在返回执行按照当前设定时间间隔发送广播包的操作之后,如果在新的设定时间内接收到目标设备友达的柏求泪息时,通过减小发送广播包的时间间隔,仍可以加快源设备与可连接的目标设备之间的连接速度。 [0012] A method and apparatus to establish connection between an apparatus according to an embodiment of the present invention, upon detection of the target device is disconnected, according to the current set time interval transmitting broadcast packet, the target is not received within a set time a target device transmits the request message may be determined within the set time no connection, in which case, by increasing the transmission interval of the broadcast packet, the source device to avoid a long time in the Bluetooth module of the high frequency broadcast cause increased power consumption state, reducing power consumption in the Bluetooth module of the source device, and improves the Bluetooth module time; after performing the operation returns broadcast packet transmission time interval in accordance with the current set, if provided in the new received within a given time the connection speed between the source device and the target device can be connected to the target device AUO when Bo tears information request, sending a broadcast packet by reducing the time interval, still can be accelerated.

[0013] 第三方面,本发明实施例提供了另一种设备间的连接建立方法,包括: [0013] In a third aspect, the present invention provides a connection between another method for establishing apparatus, comprising:

[0014] 在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; [0014] Upon detecting the target device is disconnected, according to the current set time interval transmitting broadcast packet;

[0015] 在设定时间内接收到所述目标设备发送的请求消息时,减小所述当前设定时间间隔,并根据所述请求消息,按调整后的时间间隔与所述目标设备交互,以与所述目标设备建立连接,其中,所述请求消息在所述目标设备接收到所述广播包时生成。 When the [0015] target device receiving the request message sent within the set time, decreasing the current set time interval, and according to the request message, according to the adjusted time interval of interaction with the target device, to establish a connection with the target device, wherein the message is generated when the target device receives the broadcast packet to the request.

[0016] 第四方面,本发明实施例提供了另一种设备间的连接建立装置,包括: [0016] a fourth aspect, the present invention provides a connection between the other device to establish a device, comprising:

[0017] 发送模块,用于在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; [0017] The transmitting module configured to disconnect upon detection of the target device, according to the current set time interval transmitting broadcast packet;

[0018] 间隔减小模块,用于在设定时间内接收到所述目标设备发送的请求消息时,减小所述当前设定时间间隔; [0018] The reduced spacing means for receiving the target device sends a request message, decreasing the current setting time within a set time interval;

[0019] 连接模块,用于在减小所述当前设定时间间隔的同时,根据所述请求消息,按调整后的时间间隔与所述目标设备交互,以与所述目标设备建立连接,其中,所述请求消息在所述目标设备接收到所述广播包时生成。 [0019] connecting means for simultaneously decreasing the currently set time interval, according to the request message, according to the adjusted time interval and the target device interaction, to establish a connection with the target device, wherein generating said request message to the broadcast packet received at the target device. _ _

[0020] 本发明实施例提供的另一种设备间的连接建立方法和装置,在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包,在设定时间内接收到目标设备发送的请求消息时,基本可以确定有可连接的目标设备,此时,通过减小发送广播包的时间间隔,由于源设备与可连接的目标设备在建立连接过程中的每一次交互时机与每一次发送广播包的时机一致,因此可以加快源设备与可连接的目标设备之间的连接速度。 [0020] Another connection between the device provided by establishing a method and apparatus according to the present invention, upon detection of the target device is disconnected, according to the current set time interval transmitting broadcast packet, the target is received within a set time message transmission request device, which can determine the target device can be connected, in which case, by reducing the transmission time interval of a broadcast packet, since the source device and the target device can be connected to every interaction time in the process of establishing a connection with the each broadcast packet transmission timing coincide, it is possible for a faster connection between a source device and a target device can be connected.

附图说明 BRIEF DESCRIPTION

[0021] 为了更清楚地说明本发明,下面将对本发明中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0021] In order to more clearly illustrate the present invention, the following figures will be used in the present invention required to do a simple introduction Apparently, the drawings in the following description are some embodiments of the present invention, those of ordinary skill in terms of personnel, without any creative effort, you can also obtain other drawings based on these drawings.

[0022] 图1为本发明实施例一提供的一种设备间的连接建立方法的流程示意图; [0022] FIG. 1 is a schematic process flow for establishing the connection between an apparatus according to a first embodiment of the present invention;

[0023] 图2为本发明实施例二提供的一种设备间的连接建立装置的结构示意图; [0023] FIG. 2 is connected between an apparatus according to a second embodiment of a schematic structure of the apparatus of the present invention is established;

[0024]图3为本发明实施例三提供的另一种设备间的连接建立装置的结构示意图。 [0024] FIG. 3 is connected between another apparatus according to a third embodiment of a schematic structure of the apparatus of the present invention is established.

具体实施方式 Detailed ways

[0025]为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施例中的技术方案作进一步详细描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0025] To make the objectives, technical solutions, and advantages of the present invention will become more apparent below in connection with the technical solutions in the further detailed description embodiments of the present invention, obviously, the described embodiments are part of the embodiments of the present invention, and not all embodiments. 可以理解的是,此处所描述的具体实施例仅用于解释本发明,而非对本发明的限定,基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 It will be appreciated that the specific embodiments described herein are merely for explaining the present invention, rather than limiting the present invention based on the embodiments of the present invention, those of ordinary skill in the art without creative effort shall all other embodiments are within the scope of protection of the present invention. 另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。 Also to be noted also that, for convenience of description, the accompanying drawings illustrate only the part related to the present invention, instead of the entire contents.

[0026] 实施例一 [0026] Example a

[0027]请参阅图1,为本发明实施例一提供的一种设备间的连接建立方法的流程示意图。 [0027] Referring to FIG 1, the connection between an apparatus according to a first embodiment of the present invention, the method for establishing a flow schematic. 本发明实施例的方法适用于在包含有蓝牙的源设备与包含有蓝牙的目标设备之间进行连接,本发明实施例的方法可以由配置以硬件和/或软件实现的设备间的连接建立装置来执行,该实现装置典型的是配置于所述源设备中。 The method of an embodiment of the present invention is applicable to apparatus comprising a source device comprising a Bluetooth connection between the target device have Bluetooth, embodiments of the method of the present invention may be established by a configuration to connect between hardware and / or software implemented device is performed, the device is achieved typically disposed in the source device.

[0028] 该方法包括:步骤110〜步骤140。 [0028] The method comprises: a step 110~ step 140.

[0029] 步骤110、在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包。 [0029] Step 110, upon detection of the target device is disconnected, according to the current set time interval transmitting broadcast packets. [0030] 步骤120、在设定时间内检测是否接收到所述目标设备发送的请求消息,其中,所述请求消息在所述目标设备接收到所述广播包时生成,若是,则执行步骤130,否则,执行步骤140〇 [0030] Step 120, the set time is detected whether to receive the request message sent by the target device, wherein the request message is generated when the target device receives the broadcast packet, if yes, step 130 is executed otherwise, proceed to step 140〇

[0031] 步骤130、减小所述当前设定时间间隔,并根据所述请求消息,按调整后的时间间隔与所述目标设备交互,以与所述目标设备建立连接。 [0031] Step 130, the set time interval to reduce the current, and according to the request message, according to the adjusted time interval of interaction with the target device, the target device to establish a connection.

[0032] 在设定时间内接收到目标设备发送的请求消息时,基本可以确定有可连接的目标设备,此时,通过减小发送广播包的时间间隔,由于源设备与可连接的目标设备在建立连接过程中的每一次交互时机与每一次发送广播包的时机一致,因此可以加快源设备与可连接的目标设备之间的连接速度。 [0032] received within a set time request message to the target device, which can determine the target device connectable transmission, in which case, by reducing the transmission time interval of a broadcast packet, since the source device and the target device connectable every interaction consistent time during connection establishment and transmission timing of each broadcast packet, it is possible for a faster connection between a source device and a target device can be connected.

[0033] 步骤140、增大所述当前设定时间间隔,将增大后的时间间隔更新为当前设定时间间隔,并返回执行按照当前设定时间间隔发送广播包的操作。 [0033] Step 140, increasing the current set time interval, the time interval will be increased after the set time interval is updated to the current, and the operation returns to performing broadcast packet transmission time interval in accordance with the current setting.

[0034] 在设定时间内未接收到目标设备发送的请求消息时,可以确定在该设定时间内没有可连接的目标设备,此时,通过增大发送广播包的时间间隔,避免了源设备中的蓝牙模块长时间处于高频次的广播状态而导致耗电量增加,降低了源设备中蓝牙模块的功耗,并提高了蓝牙模块的使用时间。 [0034] When the target device does not receive the request message sent within the set time, the target device may be determined within the set time no connection, at this time, sending a broadcast packet by increasing the time interval, to avoid the source Bluetooth module device long time in broadcasting high frequency results in increased power consumption state, reducing power consumption in the Bluetooth module of the source device, and increase of time of use of the Bluetooth module.

[0035] 在返回执行按照当前设定时间间隔发送广播包的操作之后,如果在新的设定时间内接收到目标设备发送的请求消息时,通过减小发送广播包的时间间隔,仍可以加快源设备与可连接的目标设备之间的连接速度。 [0035] After performing the operation returns broadcast packet transmission interval is set according to the current time, if the received request message sent by the target device in the new set time, by reducing the transmission time interval of the broadcast packet, may still be accelerated connection speed between the source device and the target device can be connected.

[0036] 在上述方案中,所述请求消息可包括:扫描请求或第一连接请求。 [0036] In the above embodiment, the request message may include: a first scan request or connection request.

[0037] 进一步地,根据所述请求消息,按调整后的时间间隔与所述目标设备交互,以与所述目标设备建立连接,可包括: [0037] Further, according to the request message, according to the adjusted time interval of interaction with the target device to establish a connection with the target device, may include:

[0038] 根据所述扫描请求,按调整后的时间间隔向所述目标设备发送对应的源设备的标识f目息; [0038] According to the scan request, the adjusted time interval of information transmission destination identifier f corresponding to the source device to the target device;

[0039] 接收所述目标设备发送的第二连接请求,并与所述目标设备建立连接,所述第二连接请求在所述目标设备接收到所述源设备的标识信息时根据所述标识信息生成。 [0039] Upon receiving the second connection request sent by the target device, and to establish a connection with the target device, receiving a second connection request to the source device identification information in the target device according to the identification information generate.

[0040] 需要说明的是,根据蓝牙设备的通用使用特征,一般情况下,可连接的目标设备在扫描到源设备发送的广播包时,会向源设备发送一个扫描请求用来获取源设备的标识信息,因此,在源设备接收到扫描请求的时候,基本可以确定有可连接的目标设备,此时,减小了发送广播包的时间间隔,由于源设备与可连接的目标设备在建立连接过程中的每一次交互时机与每一次发送广播包的时机一致,使得源设备能够及时发送与扫描请求对应的标识信息,相应的,加快了目标设备根据源设备的标识信息生成第二连接请求的数据,相应的, 加快了源设备接收到第二连接请求的速度,从而加快了源设备与可连接的目标设备之间的连接速度。 [0040] Incidentally, according to the general use of the Bluetooth device features, in general, the target devices can be connected to the source of the scanning device when transmitting a broadcast packet, it will send a scan request for acquisition source device to the source device identification information, and therefore, the source device receives the scan request time, which can determine the target devices can be connected, in which case, reducing the time interval transmitting broadcast packets, since the source device and the target device establishes a connection connectable every interaction with the same timing every time the broadcast packets transmitted in the process, so that the source device can transmit timely identification information corresponding to the scanning request, corresponding to speed up the connection request identifies the target device of the second information source apparatus according to generate data, corresponding to accelerate the speed of the source device receiving the second connection request, thereby speeding up the speed of the connection between the source device and the target device can be connected.

[0041] 其中,所述标识信息可包括:设备名称。 [0041] wherein, the identification information may include: the device name.

[0042] 还需要说明的是,目标设备在扫描到源设备发送的广播包时,除了可能生成扫描请求并发送之外,也可能直接生成第一连接请求并发送。 [0042] It is further noted that the target device when scanning the broadcast packets transmitted by the source device, in addition may be generated and transmitted outside the scanning request, it may directly generate and send a first connection request.

[0043] 在上述方案中,在减小所述当前设定时间间隔的同时,所述方法还可包括: [0043] In the above embodiment, while reducing the set time of the current interval, the method further comprising:

[0044] 启动定时器; [0044] to start the timer;

[0045] 在所述定时器超时前未接收到所述目标设备再次发送的请求消息时,将减小后的时间间隔恢复至减小操作前的时间间隔,控制所述定时器停止工作,并返回执行按照当前设定时间间隔发送广播包的操作。 When the [0045] request is not received the message sent by the target device again before the timer expires, the recovery time after the interval is reduced to reduce the operating time before the interval, the control timer is stopped, and Back broadcast packet transmission operation performed according to the current set time interval. _ _

[0046] 前已述及,根据蓝牙设备的通用使用特征,一般情况下,可连接的目标设备在扫描到源设备发送的广播包时,会向源设备发送一个扫描请求用来获取源设备的标识信息,因此,在源设备接收到扫描请求的时候,基本可以确定有可连接的目标设备,通过在减小所述当前设定时间间隔的同时,启动定时器,由于源设备以更高的频次发送广播包,在所述定时器超时前未接收到所述目标设备再次发送的请求消息时,可以确定当前不存在可连接的目标设备,此时,将减小后的时间间隔恢复至减小操作前的时间间隔,避免了源设备中的蓝牙模块长时间处于高频次的广播状态而导致耗电量增加,降低了源设备中蓝牙模块的功耗, 并提高了蓝牙模块的使用时间;在返回执行按照当前设定时间间隔发送广播包的操作之后,如果在新的设定时间内接收到目标设备 [0046] mentioned before, according to the general use of the Bluetooth device features, in general, the target devices can be connected to the source of the scanning device when transmitting a broadcast packet, it will send a scan request for acquisition source device to the source device identification information, and therefore, when the source device receives the scanning request, which can determine the target device can be connected, while by decreasing the currently set time interval, the timer is started, since the source device to a higher when the transmission frequency of the broadcast packet before the timer times out the request is not received message sent by the target device again, it can be determined that the current absence of the target devices can be connected, in which case, the time after the recovery to reduce the spacing Save small interval of time before the operation, to avoid the source device Bluetooth module in a long time of high frequency broadcasting state lead to increased power consumption, reducing the power consumption of the Bluetooth module of the source device, and improves the Bluetooth module time ; after returning follow the currently set transmission time interval of a broadcast packet, if received within a set time to the new target device 送的请求消息时,通过减小发送广播包的时间间隔,仍可以加快源设备与可连接的目标设备之间的连接速度。 Sending the request message, sending a broadcast packet by reducing the time interval, still faster connection between a source device and a target device can be connected.

[0047] 实施例二 [0047] Second Embodiment

[0048] 请参阅图2,为本发明实施例二提供的一种设备间的连接建立装置的结构示意图。 [0048] Referring to FIG. 2, the connection between an apparatus according to a second embodiment of a schematic structure of the apparatus of the present invention is established. 该装置包括:发送模块210和间隔增大模块220。 The apparatus comprising: a transmitting module 210 and the spacing module 220 increases.

[0049] 其中,发送模块210用于在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包;间隔增大模块220用于在设定时间内未接收到所述目标设备发送的请求消息时,增大所述当前设定时间间隔,将增大后的时间间隔更新为当前设定时间间隔,并返回执行按照当前设定时间间隔发送广播包的操作,其中,所述请求消息在所述目标设备接收到所述广播包时生成。 [0049] wherein the transmitting module 210 detects the disconnect when the target device, sending a broadcast packet interval is set according to the current time; increase the interval module 220 to the target device is not received within a set time request message, increasing the current setting time interval, the time interval will be increased after the set time is updated to the current interval, interval operation and returns to performing packet transmission in accordance with the currently set broadcast time, wherein said request message generated in the target device to said received broadcast packet.

[0050] 在上述方案中,所述装置还可包括:间隔减小模块和连接模块。 [0050] In the above embodiment, the apparatus further comprising: a spacing reduction module and the connection module.

[0051]其中,间隔减小模块用于在设定时间内接收到所述目标设备发送的请求消息时, 减小所述当前设定时间间隔;连接模块用于在减小所述当前设定时间间隔的同时,根据所述请求消息,按调整后的时间间隔与所述目标设备交互,以与所述目标设备建立连接。 [0051] wherein the spacer means for reducing the target device receiving the request message sent by decreasing the current setting time within a set time interval; connecting means for decreasing the current setting in at the same time interval, according to the request message, according to the adjusted time interval and the target device interaction, to establish a connection with the target device.

[0052] 在上述方案中,所述请求消息可包括:扫描请求或第一连接请求。 [0052] In the above embodiment, the request message may include: a first scan request or connection request.

[0053] 进一步地,所述连接模块具体可用于: [0053] Further, the connection module is operable to:

[0054]根据所述扫描请求,按调整后的时间间隔向所述目标设备发送对应的源设备的标识{目息; [0054] According to the scan request, the adjusted time interval corresponding to the transmission source apparatus identifier to the target device information {mesh;

[0055]接收所述目标设备发送的第二连接请求,并与所述目标设备建立连接,所述第二连接请求在所述目标设备接收到所述源设备的标识信息时根据所述标识信息生成。 [0055] Upon receiving the second connection request sent by the target device, and to establish a connection with the target device, receiving a second connection request to the source device identification information in the target device according to the identification information generate.

[0056]进一步地,所述装置还可包括:启动模块和间隔恢复模块。 [0056] Further, the apparatus further comprising: a starting module and a restoration module spacing.

[0057] 其中,启动模块用于在减小所述当前设定时间间隔的同时,启动定时器;间隔恢复模块用于在所述定时器超时前未接收到所述目标设备再次发送的请求消息时,将减小后的时间间隔恢复至减小操作前的时间间隔,控制所述定时器停止工作,并返回执行按照当前设定时间间隔发送广播包的操作。 [0057] wherein the start means for simultaneously decreasing the currently set time interval, starting a timer; spacer means for restoration request message is not received before the timer times out to the target device resending when the time after the recovery to reduce the spacing to reduce the operating time before the interval, the control timer is stopped, and the operation returns to performing broadcast packet transmission time interval in accordance with the current setting.

[0058] 本发明实施例提供的设备间的连接建立装置可执行本发明实施例所提供的设备间的连接建立方法,具备执行方法相应的功能模块和有益效果。 The connection between the device provided for establishing a connection between the devices may perform embodiments provide a method for establishing the embodiment of the present invention includes a method of performing the respective function module and advantageous effects of Embodiment [0058] present invention.

[0059] 实施例三 [0059] Example three

[0060] 本发明实施例还提供另一种设备间的连接建立装置,请参阅图3,该装置包括:发送模块310、间隔减小模块320和连接模块330。 [0060] Embodiments of the invention further provides another apparatus for establishing connection between the devices, see Figure 3, the apparatus comprising: a sending module 310, the spacer 320 and a reduction module 330 is connected modules.

[0061] 其中,发送模块310用于在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包;间隔减小模块320用于在设定时间内接收到所述目标设备发送的请求消息时, 减小所述当前设定时间间隔;连接模块330用于在减小所述当前设定时间间隔的同时,根据所述请求消息,按调整后的时间间隔与所述目标设备交互,以与所述目标设备建立连接,其中,所述请求消息在所述目标设备接收到所述广播包时生成。 [0061] The sending module 310 is used to disconnect upon detection of the target device, sending a broadcast packet interval is set according to the current time; interval decreasing module 320 for receiving the transmission target device within a set time the request message, decreasing the current set time intervals; while the connection module 330 for decreasing the currently set time interval, according to the request message, according to the adjusted time interval and the target device interaction, to establish a connection with the target device, wherein the request message is generated when the target device receives the broadcast packet.

[0062]与实施例二的区别在于:实施例二提供的设备间的连接建立装置包括:发送模块210和间隔增大模块220,在此基础上,可以进一步包括:间隔减小模块和连接模块;而本实施例提供的另一种设备间的连接建立装置包括:发送模块310、间隔减小模块320和连接模块330,其中,间隔减小模块320和连接模块330独立于间隔增大模块而存在。 [0062] Example II that the difference between: establishing means comprises a connection between the devices according to a second embodiment: sending module 210 and increase the interval module 220, based on this, further comprising: a spacing reduction module and the connection module ; the connection between another embodiment of the apparatus according to the present embodiment provided establishing means comprises: a sending module 310, the spacer 320 and the connection module reduction module 330, wherein spacing reduction module 320 and connection module 330 to increase the interval independent modules presence.

[0063]最后应说明的是:以上各实施例仅用于说明本发明的技术方案,而非对其进行限制;实施例中优选的实施方式,并非对其进行限制,对于本领域技术人员而言,本发明可以有各种改动和变化。 [0063] Finally, it should be noted that: the above embodiments are for illustration only aspect of the invention, but not intended to be limiting; embodiment examples of preferred embodiments is not to be limiting, and the skilled person words, the present invention may have various modifications and changes. 凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Any modifications within the spirit and principle of the invention, equivalent substitutions, improvements, etc., should be included within the scope of the present invention.

Claims (8)

1. 一种设备间的连接建立方法,其特征在于,包括: 在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; 在设定时间内未接收到所述目标设备发送的请求消息时,增大所述当前设定时间间隔,将增大后的时间间隔更新为当前设定时间间隔,并返回执行按照更新后的当前设定时间间隔发送广播包的操作;其中,所述请求消息在所述目标设备接收到所述广播包时生成; 在所述更新后的当前设定时间间隔内接收到所述目标设备发送的请求消息时,减小所述当前设定时间间隔; 将减小后的时间间隔更新为当前设定时间间隔,并根据所述请求消息,按调整后的时间间隔向所述目标设备发送对应的源设备的标识信息,若在所述更新后的当前设定时间间隔内接收到所述目标设备发送的第二连接请求,则与所述目标设备建立连接;若在所述更新后 1. A method of establishing connection between a device which is characterized in that, comprising: upon detecting a disconnect from the target device, transmitting a broadcast packet according to the current interval time is set; the target device is not received within a set time request message, increasing the current setting time interval, the time interval will be increased after the current update interval is set, and returns the execution interval of packet transmission operation according to the currently set broadcast time updated; wherein generating said request message to the broadcast packet received at the target device; upon receiving the request message sent by the target device within a set time after the current update interval, decreasing the current setting time interval; time after the current update interval is reduced at set time intervals, and according to the request message, the identification information to the target device corresponding to the transmission source apparatus according to the adjusted time interval, if the update if after the updating; receiving a second connection request sent by the target device, a connection is established with the target device after setting the current time interval 当前设定时间间隔内未接收到所述目标设备发送的所述第二连接请求,则将所述减小后的时间间隔恢复至所述减小操作前的时间间隔,并返回执行按照恢复后的当前设定时间间隔发送广播包的操作;其中,所述第二连接请求在所述目标设备接收到所述源设备的标识信息时根据所述标识信息生成。 The current setting is not received within the time interval to the target device transmits a second connection request, then after the time interval is reduced to the reduced recovery time interval before the operation, and after performing the recovery returned in the current setting operation of the broadcast packet transmission time interval; generating based on the identification information wherein said receiving the second connection request to the source device identification information in the target device.
2. 根据权利要求1所述的方法,其特征在于,所述请求消息包括:扫描请求或第一连接请求。 2. The method according to claim 1, wherein the request message comprises: a first scanning request or connection request.
3. 根据权利要求1所述的方法,其特征在于,在减小所述当前设定时间间隔的同时,所述方法还包括: 启动定时器; 在所述定时器超时前未接收到所述目标设备再次发送的请求消息时,将减小后的时间间隔恢复至减小操作前的时间间隔,控制所述定时器停止工作,并返回执行按照当前设定时间间隔发送广播包的操作。 3. The method according to claim 1, characterized in that, while reducing the set time of the current interval, the method further comprising: starting a timer; is not received before the timer expires, the when the target device sending the request message again, the recovery time after the interval is reduced to reduce the operating time before the interval, the control timer is stopped, and the operation returns to performing broadcast packet transmission time interval in accordance with the current setting.
4. 一种设备间的连接建立方法,其特征在于,包括: 在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; 在设定时间内接收到所述目标设备发送的请求消息时,减小所述当前设定时间间隔, 将减小后的时间间隔更新为当前设定时间间隔; 根据所述请求消息,按调整后的时间间隔向所述目标设备发送对应的源设备的标识信息,若在所述调整后的时间间隔内接收到所述目标设备发送的第二连接请求,则与所述目标设备建立连接;若在所述调整后的时间间隔内未接收到所述目标设备发送的所述第二连接请求,则将所述减小后的时间间隔恢复至所述减小操作前的时间间隔,并返回执行按照恢复后的当前设定时间间隔发送广播包的操作;其中,所述请求消息在所述目标设备接收到所述广播包时生成,所述第二连接请求在所述目标设备接收 4. A method for establishing a connection between a device which is characterized in that, comprising: upon detecting a disconnect from the target device, transmitting a broadcast packet according to the current interval time is set; the target device is received within a set time transmission the request message, decreasing the current set time interval, the time interval is updated to reduce the current set time interval; according to the request message, according to the adjusted time interval transmitted to the target device corresponding to source device identification information, if received within a time interval after the adjustment to the second connection request sent by the target device, a connection is established with the target device; if not received within the time interval after the adjustment the target device to the second connection request transmitted, then after the time interval is reduced to the reduced recovery time interval before the operation, and returns the execution interval of the broadcast transmission according to the current setting time after recovery wherein when generating the request message to the broadcast packet received at the target device, the second connection request received at the target device; packet operation 所述源设备的标识信息时根据所述标识信息生成。 Generating identification information based on the identification information of the source device.
5. —种设备间的连接建立装置,其特征在于,包括: 发送模块,用于在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; 间隔增大模块,用于在设定时间内未接收到所述目标设备发送的请求消息时,增大所述当前设定时间间隔,将增大后的时间间隔更新为当前设定时间间隔,并返回执行按照更新后的当前设定时间间隔发送广播包的操作;其中,所述请求消息在所述目标设备接收到所述广播包时生成; 间隔减小模块,用于在所述更新后的当前设定时间间隔内接收到所述目标设备发送的请求消息时,减小所述当前设定时间间隔; 连接模块,用于将减小后的时间间隔更新为当前设定时间间隔,并根据所述请求消息, 按调整后的时间间隔向所述目标设备发送对应的源设备的标识信息,若在所述更新后的当前设定时间间隔内接收到所述目 5. - establishing the connection between the kind of equipment apparatus comprising: transmitting means for upon detection of the target device is disconnected, sending a broadcast packet interval is set according to the current time; increase the interval module configured to is not received within a set time to the target device request message sent by the increased current set time interval, the time interval will be increased after the current update interval set, and in accordance with the updated execution returns currently set operation time interval transmitting broadcast packets; wherein the request message is generated when the target device receives the broadcast packet; reduced spacing means for setting the current time at the updated interval upon receiving the request message sent by the target device, decreasing the current set time interval; connection module, configured to reduce the time interval is updated to the current set time interval, and according to the request message, press transmitting the adjusted time interval corresponding to the identification information of the source device to the target device, if the current setting is received within the update interval of time after said mesh 设备发送的第二连接请求,则与所述目标设备建立连接;若在所述更新后的当前设定时间间隔内未接收到所述目标设备发送的所述第二连接请求,则将所述减小后的时间间隔恢复至所述减小操作前的时间间隔,并返回执行按照恢复后的当前设定时间间隔发送广播包的操作;其中,所述第二连接请求在所述目标设备接收到所述源设备的标识信息时根据所述标识信息生成。 Sent by the second connection request, a connection is established with the target device; if the target device does not receive the current transmitted within a set time interval after the second update connection request, then the the reduced recovery time interval to reduce the time interval before the operation, and performs return transmission interval according to the current operation of the broadcast packets after the resumption set time; wherein said receiving the second connection request at the target device when the source identification information generating device according to the identification information.
6. 根据权利要求5所述的装置,其特征在于,所述请求消息包括:扫描请求或第一连接请求。 6. The apparatus as claimed in claim 5, wherein the request message comprises: a first scanning request or connection request.
7. 根据权利要求5所述的装置,其特征在于,所述装置还包括: 启动模块,用于在减小所述当前设定时间间隔的同时,启动定时器•, 间隔恢复模块,用于在所述定时器超时前未接收到所述目标设备再次发送的请求消息时,将减小后的时间间隔恢复至减小操作前的时间间隔,控制所述定时器停止工作,并返回执行按照当前设定时间间隔发送广播包的操作。 7. The apparatus as claimed in claim 5, characterized in that said apparatus further comprises: starting means for simultaneously decreasing the currently set time interval, • starting a timer, interval recovery module, for when the timer times out before the request is not received the message sent by the target device again, the recovery time after the interval is reduced to reduce the operating time before the interval, the control timer is stopped, and returns accordance currently set transmission time interval of the operation of the broadcast packet.
8. —种设备间的连接建立装置,其特征在于,包括: 发送模块,用于在检测到与目标设备断开连接时,按照当前设定时间间隔发送广播包; 间隔减小模块,用于在设定时间内接收到所述目标设备发送的请求消息时,减小所述当前设定时间间隔,将减小后的时间间隔更新为当前设定时间间隔;_ 连接模块,用于根据所述请求消息,按调整后的时间间隔向所述目标设备发送对应的源设备的标识信息,若在所述调整后的时间间隔内接收到所述目标设备发送的第〒连接请求,则与所述目标设备建立连接;若在所述调整后的时间间隔内未接收到所述目标设备发送的所述第二连接请求,则将所述减小后的时间间隔恢复至所述减小操作前的时间间隔, 并返回执行按照恢复后的当前设定时间间隔发送广播包的操作;其中,所述请求消息在所述目标设备接收到所述广播 8. - establishing the connection between the kind of equipment apparatus comprising: transmitting means for upon detection of the target device is disconnected, sending a broadcast packet interval is set according to the current time; reduced interval module configured to received within a set time to the target device request message sent by the reduced current set time interval, the time interval is updated to reduce the current set time interval; _ connection module according to the said request message, to the target device identification information corresponding to the transmission source apparatus according to the adjusted time interval, if the received first connection request 〒 the target device to transmitted within a time interval after the adjustment, and then the If before the time after the target device is not received within a time after transmitting the second connection request adjustment interval, then the interval is reduced to the reduced recovery operation; said target device to establish a connection time interval, and returns the current setting follow the recovery interval time after transmission of the broadcast packets; wherein the received request message to the target device in the broadcast 包时生成,所述第二连接请求在所述目标设备接收到所述源设备的标识信息时根据所述标识信息生成。 When generating the packet, the second connection request generator according to the identification information of the target device when receiving the identification information of the source device.
CN201510190956.7A 2015-04-21 2015-04-21 Method and apparatus for establishing connections between devices CN104812094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510190956.7A CN104812094B (en) 2015-04-21 2015-04-21 Method and apparatus for establishing connections between devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510190956.7A CN104812094B (en) 2015-04-21 2015-04-21 Method and apparatus for establishing connections between devices

Publications (2)

Publication Number Publication Date
CN104812094A CN104812094A (en) 2015-07-29
CN104812094B true CN104812094B (en) 2018-03-23

Family

ID=53696435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510190956.7A CN104812094B (en) 2015-04-21 2015-04-21 Method and apparatus for establishing connections between devices

Country Status (1)

Country Link
CN (1) CN104812094B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412843A (en) * 2015-07-31 2017-02-15 浙江大华技术股份有限公司 Method, device and system for pairing gateway and terminal
CN106817267A (en) * 2015-11-27 2017-06-09 华为技术有限公司 Fault detection method and device
CN105869374A (en) * 2016-04-29 2016-08-17 江苏惠通集团有限责任公司 Remote control terminal and finding method thereof
CN106131802A (en) * 2016-07-05 2016-11-16 北京小米移动软件有限公司 Data broadcasting method, data broadcasting device and electronic device
CN107040871A (en) * 2016-12-26 2017-08-11 歌尔科技有限公司 Method and equipment for connecting Bluetooth equipment
WO2019000411A1 (en) * 2017-06-30 2019-01-03 华为技术有限公司 Method and device for establishing wireless communication connection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1934830A (en) * 2004-03-17 2007-03-21 皇家飞利浦电子股份有限公司 Connecting devices to a peer-to-peer network
WO2007050994A3 (en) * 2005-10-27 2007-07-12 Qualcomm Inc Transitioning from monitor state in wireless communication systems
WO2007136435A3 (en) * 2006-02-06 2008-04-10 Olympus Comm Technology Of Ame Power management
CN103249003A (en) * 2012-02-10 2013-08-14 华为终端有限公司 Broadcast communication method, cordless telephone and fixed part and hand-held part of cordless telephone
CN103809729A (en) * 2014-01-26 2014-05-21 上海佩奇网络科技有限公司 Electricity saving achieving method for wearable equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1934830A (en) * 2004-03-17 2007-03-21 皇家飞利浦电子股份有限公司 Connecting devices to a peer-to-peer network
WO2007050994A3 (en) * 2005-10-27 2007-07-12 Qualcomm Inc Transitioning from monitor state in wireless communication systems
WO2007136435A3 (en) * 2006-02-06 2008-04-10 Olympus Comm Technology Of Ame Power management
CN103249003A (en) * 2012-02-10 2013-08-14 华为终端有限公司 Broadcast communication method, cordless telephone and fixed part and hand-held part of cordless telephone
CN103809729A (en) * 2014-01-26 2014-05-21 上海佩奇网络科技有限公司 Electricity saving achieving method for wearable equipment

Also Published As

Publication number Publication date
CN104812094A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
US7684346B2 (en) Communications control for extending the period over which a terminal is able to have an open connection with a host accessible via a packet data network
JP5526236B2 (en) Method and apparatus for peer discovery in a wireless communication network
US9198217B2 (en) Method for maintaining connection between terminal and network server, terminal and network server
US8850068B2 (en) United router farm setup
JP6204510B2 (en) Topology discovery within the hybrid network
CN101150381A (en) Method for handling radio link failure in wireless communications system and related apparatus
EP2713641A1 (en) Method for receiving data, method for transmitting data, mobile terminal, and server
US9706600B2 (en) Connectionless Wi-Fi mesh communication
CN101605330B (en) Method and device for building wireless distribution system connection
CN103997358A (en) Method, device and system for pairing Bluetooth remote control unit and controlled devices
CN101932123A (en) Relay station and backhaul connection method thereof
CN103313284B (en) A method of activating / deactivating isr optimization method and a network-side device
CN104469980B (en) Method Bluetooth connectivity and Bluetooth devices
CN102595226A (en) Wireless control method and set-top box
US9301252B2 (en) Reducing power consumption by a wireless communication device with multiple wireless communication modems
CN105335120A (en) Multi-screen input/output control method, device and system
US10075991B2 (en) Method and apparatus for performing state transition for device-to-device communication
JP5100854B2 (en) Communication apparatus, and communication method
WO2013174246A1 (en) Method and apparatus for searching terminals
US20130311694A1 (en) Devices and methods for facilitating direct pairing in a wireless docking system
CN104186002B (en) Improved method and apparatus for dividing nfc llcp
CN102223257B (en) Heartbeat interval adjusting method, server, client terminal and communication system
CN102523178A (en) Push-based heartbeat message sending method and terminal
CN102326432B (en) Method of operating sleep mode in wireless communication system
US9888501B2 (en) In-vehicle wireless communication

Legal Events

Date Code Title Description
C06 Publication
EXSB Decision made by sipo to initiate substantive examination
GR01