技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种蓝牙连接方法及移动终端。The embodiments of the present invention relate to the technical field of communication, and in particular, to a Bluetooth connection method and a mobile terminal.
背景技术Background technique
随着移动终端的高速发展,移动终端具有的功能越来越多。在移动终端的各种功能中蓝牙功能的应用十分广泛,可以通过蓝牙功能与蓝牙耳机、蓝牙音箱和蓝牙音响等蓝牙音频设备进行连接,很大程度上丰富了移动终端的应用范围。目前若移动终端与两个蓝牙音频设备均已配对,例如已经配对的蓝牙耳机A及蓝牙音箱B,在移动终端启动蓝牙功能前上一次蓝牙连接中断开的是蓝牙耳机A,在此次开启移动终端的蓝牙功能时,移动终端会主动连接蓝牙耳机A,但是此次用户想要连接蓝牙音箱B。可见,现有移动终端存在对蓝牙设备进行连接准确率比较低的问题。With the rapid development of mobile terminals, mobile terminals have more and more functions. Among the various functions of the mobile terminal, the Bluetooth function is widely used, and it can be connected with Bluetooth audio devices such as Bluetooth earphones, Bluetooth speakers, and Bluetooth speakers through the Bluetooth function, which greatly enriches the application range of the mobile terminal. At present, if the mobile terminal has been paired with two Bluetooth audio devices, such as the paired Bluetooth headset A and Bluetooth speaker B, the Bluetooth headset A was disconnected in the last Bluetooth connection before the mobile terminal started the Bluetooth function. When the Bluetooth function of the mobile terminal is activated, the mobile terminal will actively connect to the Bluetooth headset A, but this time the user wants to connect to the Bluetooth speaker B. It can be seen that the existing mobile terminal has the problem of relatively low connection accuracy to the Bluetooth device.
发明内容Contents of the invention
本发明实施例提供一种蓝牙连接方法及移动终端,以解决现有移动终端存在对蓝牙设备进行连接的准确率比较低的问题。Embodiments of the present invention provide a bluetooth connection method and a mobile terminal to solve the problem of relatively low accuracy in connecting bluetooth devices in existing mobile terminals.
为解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:
第一方面,本发明实施例提供了一种蓝牙连接方法,包括:In a first aspect, an embodiment of the present invention provides a Bluetooth connection method, including:
启动蓝牙功能;Start the Bluetooth function;
若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算至少两个蓝牙设备的活跃因子,所述至少两个蓝牙设备为所述启动蓝牙功能之前N次蓝牙连接成功对应的蓝牙设备中的至少两个蓝牙设备,N为大于1的自然数;If the last bluetooth connection before the start of the bluetooth function is not disconnected according to the active disconnection mode, then calculate the activity factor of at least two bluetooth devices, and the at least two bluetooth devices are the bluetooth of N times before the start of the bluetooth function. At least two Bluetooth devices among the Bluetooth devices corresponding to the successful connection, N is a natural number greater than 1;
若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备;If the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is greater than a preset threshold, then connect the target Bluetooth device;
其中,所述目标蓝牙设备为所述启动蓝牙功能之前的上一次蓝牙连接的蓝牙设备,蓝牙设备的活跃因子与预设蓝牙连接信息相关联,所述预设蓝牙连接信息包括蓝牙设备在所述N次蓝牙连接成功的连接成功次数、连接时间及连接时长中的至少一项。第二方面,本发明实施例还提供一种移动终端,包括:Wherein, the target bluetooth device is the bluetooth device of the last bluetooth connection before the start of the bluetooth function, and the activity factor of the bluetooth device is associated with preset bluetooth connection information, and the preset bluetooth connection information includes the bluetooth device in the At least one of the number of successful connections, connection time, and connection duration of N successful Bluetooth connections. In the second aspect, the embodiment of the present invention also provides a mobile terminal, including:
启动模块,用于启动蓝牙功能;Start module, be used for starting bluetooth function;
计算模块,用于若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算至少两个蓝牙设备的活跃因子,所述至少两个蓝牙设备为所述启动蓝牙功能之前N次蓝牙连接成功对应的蓝牙设备中的至少两个蓝牙设备,N为大于1的自然数;Calculation module, used to calculate the activity factors of at least two Bluetooth devices if the last Bluetooth connection before the Bluetooth function is activated is not disconnected according to the active disconnection method, and the at least two Bluetooth devices are the active factors of the Bluetooth activation. At least two Bluetooth devices among the Bluetooth devices corresponding to the successful N Bluetooth connections before the function, N is a natural number greater than 1;
连接模块,用于若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备;A connection module, configured to connect the target Bluetooth device if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is greater than a preset threshold;
其中,所述目标蓝牙设备为所述启动蓝牙功能之前的上一次蓝牙连接的蓝牙设备,蓝牙设备的活跃因子与预设蓝牙连接信息相关联,所述预设蓝牙连接信息包括蓝牙设备在所述N次蓝牙连接成功的连接成功次数、连接时间及连接时长中的至少一项。Wherein, the target bluetooth device is the bluetooth device of the last bluetooth connection before the start of the bluetooth function, and the activity factor of the bluetooth device is associated with preset bluetooth connection information, and the preset bluetooth connection information includes the bluetooth device in the At least one of the number of successful connections, connection time, and connection duration of N successful Bluetooth connections.
第三方面,本发明实施例还提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述蓝牙连接方法的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor When implementing the steps of the above bluetooth connection method.
在本发明实施例中,通过启动蓝牙功能;若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数;若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备,其中,所述目标蓝牙设备为所述启动蓝牙功能之前的上一次蓝牙连接的蓝牙设备,每个蓝牙设备的活跃因子与对应的蓝牙设备在所述N次蓝牙连接成功的连接成功次数、连接时间及连接时长中的至少一项相关联。这样,移动终端根据与连接成功次数、连接时间及连接时长中的至少一项相关联的活跃因子确定用户需要连接的蓝牙设备,能够提高对蓝牙设备进行连接的准确率,从而有效的节约用户在蓝牙连接过程中所消耗的时间。In the embodiment of the present invention, by starting the Bluetooth function; if the last Bluetooth connection before the start of the Bluetooth function is not disconnected according to the active disconnection mode, then calculate the at least The activity factors of two Bluetooth devices, N is a natural number greater than 1; if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is greater than a preset threshold, then connect the target Bluetooth device, wherein, The target bluetooth device is the bluetooth device of the last bluetooth connection before the bluetooth function is started, the active factor of each bluetooth device and the number of successful connections, connection time and connection times of the corresponding bluetooth device in the n bluetooth connections. At least one of the durations is associated. In this way, the mobile terminal determines the Bluetooth device that the user needs to connect to according to the activity factor associated with at least one of the number of successful connections, connection time, and connection duration, which can improve the accuracy of connecting to the Bluetooth device, thereby effectively saving the user's time spent on the Bluetooth device. The time spent during the Bluetooth connection.
附图说明Description of drawings
图1是本发明实施例提供的蓝牙连接方法的流程图之一;Fig. 1 is one of the flowcharts of the bluetooth connection method provided by the embodiment of the present invention;
图2是本发明实施例提供的蓝牙连接方法的流程图之二;Fig. 2 is the second flowchart of the Bluetooth connection method provided by the embodiment of the present invention;
图3是本发明实施例提供的移动终端的结构图之一;Fig. 3 is one of the structural diagrams of the mobile terminal provided by the embodiment of the present invention;
图4是本发明实施例提供的移动终端结构图之二;FIG. 4 is the second structural diagram of the mobile terminal provided by the embodiment of the present invention;
图5是本发明实施例提供的移动终端结构图之三;FIG. 5 is the third structural diagram of the mobile terminal provided by the embodiment of the present invention;
图6是本发明实施例提供的移动终端的结构图之四。FIG. 6 is a fourth structural diagram of a mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参见图1,图1是本发明实施例提供的蓝牙连接方法的流程图,所述蓝牙连接方法可以应用于移动终端,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a Bluetooth connection method provided by an embodiment of the present invention. The Bluetooth connection method can be applied to a mobile terminal, as shown in FIG. 1, and includes the following steps:
步骤101、启动蓝牙功能。Step 101, start the bluetooth function.
在本实施例中,启动蓝牙功能的方式有多种,可以通过移动终端的蓝牙功能管理界面启动蓝牙功能,也可以根据移动终端上的快捷按钮开关启动蓝牙功能。在本实施例中,移动终端与其他蓝牙设备的配对情况有多种,例如,移动终端仅与蓝牙耳机A配对成功,移动终端与蓝牙耳机A及蓝牙音箱B两个或者两个以上蓝牙设备配对成功。In this embodiment, there are multiple ways to activate the Bluetooth function. The Bluetooth function can be activated through the Bluetooth function management interface of the mobile terminal, or can be activated according to the shortcut button switch on the mobile terminal. In this embodiment, there are various pairing situations between the mobile terminal and other Bluetooth devices. For example, the mobile terminal is only successfully paired with Bluetooth headset A, and the mobile terminal is paired with two or more Bluetooth devices such as Bluetooth headset A and Bluetooth speaker B. success.
步骤102、若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算至少两个蓝牙设备的活跃因子,所述至少两个蓝牙设备为所述启动蓝牙功能之前N次蓝牙连接成功对应的蓝牙设备中的至少两个蓝牙设备,N为大于1的自然数。Step 102. If the last Bluetooth connection before starting the Bluetooth function is not disconnected according to the active disconnection method, then calculate the activity factors of at least two Bluetooth devices, and the at least two Bluetooth devices are before the Bluetooth function is started. At least two Bluetooth devices among the Bluetooth devices corresponding to N successful Bluetooth connections, where N is a natural number greater than 1.
在本发明实施例中,所述蓝牙设备可以为蓝牙音频设备。蓝牙设备的活跃因子与预设蓝牙连接信息相关联,所述预设蓝牙连接信息包括蓝牙设备在所述N次蓝牙连接成功的连接成功次数、连接时间及连接时长中的至少一项,例如,可以将每个蓝牙设备在所述N次蓝牙连接成功的连接成功次数作为每个蓝牙设备的活跃因子。In the embodiment of the present invention, the Bluetooth device may be a Bluetooth audio device. The activity factor of the Bluetooth device is associated with preset Bluetooth connection information, and the preset Bluetooth connection information includes at least one of the successful connection times, connection time and connection duration of the Bluetooth device in the N times of successful Bluetooth connections, for example, The number of successful connections of each bluetooth device in the N times of successful bluetooth connections may be used as the activity factor of each bluetooth device.
需要说明的是,所述主动断开方式为在蓝牙连接管理界面关闭移动终端与蓝牙设备之间蓝牙连接的方式。举例来说,通过关闭移动终端的蓝牙功能或关闭蓝牙设备的方式断开连接为未按照主动断开方式断开连接。N为在启动蓝牙功能之前蓝牙连接成功的次数,N为大于1的自然数,N可以为10次或者20,具体数值可以进行用户自定义设置,也可以为默认数值。It should be noted that the active disconnection method is a method of closing the Bluetooth connection between the mobile terminal and the Bluetooth device on the Bluetooth connection management interface. For example, disconnecting by turning off the bluetooth function of the mobile terminal or turning off the bluetooth device is not disconnected in an active disconnection manner. N is the number of successful Bluetooth connections before starting the Bluetooth function. N is a natural number greater than 1. N can be 10 or 20. The specific value can be user-defined or default.
举例来说,若所述启动蓝牙功能的时间为2017年10月1日10点30分,在启动蓝牙之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算2017年10月1日的8点30分至10点30分之间10次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子。For example, if the time to start the Bluetooth function is 10:30 on October 1, 2017, and the last Bluetooth connection before the start of Bluetooth was not disconnected according to the active disconnection method, then calculate the time on October 1, 2017 Active factors of at least two Bluetooth devices corresponding to 10 successful Bluetooth connections between 8:30 and 10:30 on a day.
步骤103、若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备。Step 103: If the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is greater than a preset threshold, connect the target Bluetooth device.
在本实施例中,所述目标蓝牙设备为所述启动蓝牙功能之前的上一次蓝牙连接的蓝牙设备,所述预设阈值可以为用户自定义数值,也可以为默认数值,例如预设阈值为5。In this embodiment, the target Bluetooth device is the last Bluetooth connected Bluetooth device before the Bluetooth function is started, and the preset threshold can be a user-defined value or a default value, for example, the preset threshold is 5.
举例来说,若在步骤102中,所述启动蓝牙功能的时间为2017年10月1日10点30分,计算在启动蓝牙功能之前2小时内10次蓝牙连接成功对应的蓝牙设备C、蓝牙设备D及蓝牙设备E对应的活跃因子分别为7、2、1,目标蓝牙设备为蓝牙设备C,预设阈值为5,由于蓝牙设备C的活跃因子最大且大于预设阈值5,则连接所述蓝牙设备C,由于在近2个小时中,10次蓝牙连接成功中,有7次是使用蓝牙设备C,且在上一次为未按照主动断开方式断开连接,则用户在启动蓝牙功能后,有很大概率需要连接蓝牙设备C,这样,移动终端主动连接蓝牙设备C,可以提高蓝牙连接的准确率,减少用户在蓝牙连接过程中所需的时间。For example, if in step 102, the time for starting the Bluetooth function is 10:30 on October 1, 2017, calculate the corresponding Bluetooth device C, Bluetooth The activity factors corresponding to device D and Bluetooth device E are 7, 2, and 1 respectively. The target Bluetooth device is Bluetooth device C, and the preset threshold is 5. Since the activity factor of Bluetooth device C is the largest and greater than the preset threshold 5, the connected The Bluetooth device C mentioned above, because in the past 2 hours, among the 10 successful Bluetooth connections, 7 times were using the Bluetooth device C, and the last time the connection was not disconnected according to the active disconnection method, the user is starting the Bluetooth function Finally, there is a high probability that the Bluetooth device C needs to be connected. In this way, the mobile terminal actively connects to the Bluetooth device C, which can improve the accuracy of the Bluetooth connection and reduce the time required by the user in the Bluetooth connection process.
本发明实施例中,上述移动终端可以任何包括双摄像头的移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned mobile terminal can be any mobile terminal including dual cameras, for example: mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital assistant, PDA for short) , Mobile Internet Device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.
本发明实施例的蓝牙连接方法,通过启动蓝牙功能;若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数;若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备。这样,移动终端根据与连接成功次数、连接时间及连接时长中的至少一项相关联的活跃因子确定用户需要连接的蓝牙设备,能够提高对蓝牙设备进行连接的准确率,从而有效的节约用户在蓝牙连接过程中所消耗的时间。The bluetooth connection method of the embodiment of the present invention, by starting the bluetooth function; if the last bluetooth connection before the start of the bluetooth function is not disconnected according to the active disconnection mode, then calculate the successful correspondence of N times of bluetooth connections before the start of the bluetooth function The activity factors of at least two bluetooth devices, N is a natural number greater than 1; if the activity factor of the target bluetooth device is the largest among the active factors of the at least two bluetooth devices and greater than a preset threshold, then connect the target bluetooth device. In this way, the mobile terminal determines the Bluetooth device that the user needs to connect to according to the activity factor associated with at least one of the number of successful connections, connection time, and connection duration, which can improve the accuracy of connecting to the Bluetooth device, thereby effectively saving the user's time spent on the Bluetooth device. The time spent during the Bluetooth connection.
参见图2,图2是本发明实施例提供的蓝牙连接方法的流程图,所述蓝牙连接方法可以应用于移动终端。如图2所示,包括以下步骤:Referring to FIG. 2 , FIG. 2 is a flowchart of a Bluetooth connection method provided by an embodiment of the present invention, and the Bluetooth connection method can be applied to a mobile terminal. As shown in Figure 2, it includes the following steps:
步骤201、启动蓝牙功能。Step 201, start the bluetooth function.
此步骤的实现过程和有益效果可以参见步骤101中的描述,此处不再赘述。For the implementation process and beneficial effects of this step, reference may be made to the description in step 101, which will not be repeated here.
步骤202、若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算至少两个蓝牙设备的活跃因子,所述至少两个蓝牙设备为所述启动蓝牙功能之前N次蓝牙连接成功对应的蓝牙设备中的至少两个蓝牙设备,N为大于1的自然数。Step 202. If the last Bluetooth connection before starting the Bluetooth function is not disconnected according to the active disconnection method, then calculate the activity factors of at least two Bluetooth devices, and the at least two Bluetooth devices are before the Bluetooth function is started. At least two Bluetooth devices among the Bluetooth devices corresponding to N successful Bluetooth connections, where N is a natural number greater than 1.
可选的,所述计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数的步骤,可以包括以下步骤:Optionally, the step of calculating the activity factors of at least two bluetooth devices corresponding to the successful N times of bluetooth connections before the start of the bluetooth function, where N is a natural number greater than 1, may include the following steps:
确定所述N次蓝牙连接成功中每个蓝牙设备的连接次数,将每个蓝牙设备的连接次数作为每个蓝牙设备的活跃因子。Determine the connection times of each Bluetooth device in the N successful Bluetooth connections, and use the connection times of each Bluetooth device as the activity factor of each Bluetooth device.
举例来说,若N次蓝牙连接成功为10次蓝牙连接成功,所述启动蓝牙功能的时间为2017年10月1日10点30分,在启动蓝牙之前的上一次蓝牙连接未按照主动断开方式断开连接,则按照时间的先后顺序,确定2017年10月1日的8点30分至10点30分之间10次蓝牙连接成功的所有蓝牙设备的名称,若2017年10月1日的8点30分至10点30分之间10次蓝牙连接成功的所有蓝牙设备依次为:第一次对应蓝牙设备F、第二次对应蓝牙设备G、第三次对应蓝牙设备H、第四次对应蓝牙设备G、第五次对应蓝牙设备F、第六次对应蓝牙设备F、第七次对应蓝牙设备F、第八次对应蓝牙设备F、第九次对应蓝牙设备F、第十次对应蓝牙设备F,在10次蓝牙成功连接中,蓝牙设备F成功连接7次,蓝牙设备G成功连接2次,蓝牙设备H成功连接1次,则蓝牙设备F的活跃因子为7,蓝牙设备G为2,蓝牙设备H的活跃因子为1。For example, if N times of successful Bluetooth connections are 10 successful Bluetooth connections, the time to start the Bluetooth function is 10:30 on October 1, 2017, and the last Bluetooth connection before starting Bluetooth was not automatically disconnected In order to disconnect the connection, the names of all Bluetooth devices that have successfully connected to Bluetooth for 10 times between 8:30 and 10:30 on October 1, 2017 will be determined according to the order of time. If October 1, 2017 All the bluetooth devices with 10 successful bluetooth connections between 8:30 and 10:30 are as follows: the first time corresponds to bluetooth device F, the second time corresponds to bluetooth device G, the third time corresponds to bluetooth device H, the fourth time The second time corresponds to Bluetooth device G, the fifth time corresponds to Bluetooth device F, the sixth time corresponds to Bluetooth device F, the seventh time corresponds to Bluetooth device F, the eighth time corresponds to Bluetooth device F, the ninth time corresponds to Bluetooth device F, and the tenth time corresponds to Bluetooth device F, in 10 successful Bluetooth connections, Bluetooth device F successfully connects 7 times, Bluetooth device G successfully connects 2 times, and Bluetooth device H successfully connects 1 time, then the activity factor of Bluetooth device F is 7, and Bluetooth device G is 2. The activity factor of the Bluetooth device H is 1.
这样,可以将在N次蓝牙连接成功中每个蓝牙设备的连接次数作为每个蓝牙设备的活跃因子,活跃因子越大,说明蓝牙设备的使用频率越大,活跃因子比较大的蓝牙设备为用户需要使用的蓝牙设备的概率比较大。In this way, the number of connections of each Bluetooth device in N successful Bluetooth connections can be used as the active factor of each Bluetooth device. The larger the active factor, the greater the frequency of use of the Bluetooth device. The probability of using a Bluetooth device is relatively high.
可选的,所述计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数的步骤,还可以包括以下步骤:Optionally, the step of calculating the activity factors of at least two Bluetooth devices corresponding to the successful N Bluetooth connections before the Bluetooth function is started, where N is a natural number greater than 1, may also include the following steps:
确定所述N次蓝牙连接成功中每个蓝牙设备每次连接的连接时间,根据预先获取的连接时间与参数值之间的对应关系,确定每个蓝牙设备每次连接的连接时间对应的第一参数值;Determine the connection time of each Bluetooth device in the N successful Bluetooth connections, and determine the first connection time corresponding to each connection time of each Bluetooth device according to the correspondence between the pre-acquired connection time and the parameter value. parameter value;
将每个蓝牙设备对应的第一参数值之和作为每个蓝牙设备的活跃因子;Using the sum of the first parameter values corresponding to each bluetooth device as the activity factor of each bluetooth device;
其中,所述预先获取的连接时间与参数值之间的对应关系的变化趋势为随着目标间隔时间变短所述参数值变大,所述目标间隔时间为所述连接时间距离所述启动蓝牙功能的时间之间的间隔。Wherein, the change trend of the corresponding relationship between the pre-acquired connection time and the parameter value is that the parameter value becomes larger as the target interval time becomes shorter, and the target interval time is the distance between the connection time and the Bluetooth activation. The time interval between functions.
举例来说,若N次蓝牙连接成功为10次蓝牙连接成功,且所述启动蓝牙功能的时间为2017年10月1日10点30分,在启动蓝牙之前的上一次蓝牙连接未按照主动断开方式断开连接,则按照时间的先后顺序,确定2017年10月1日的8点30分至10点30分之间10次蓝牙连接成功的所有蓝牙设备的名称及每一次连接的开始时间。For example, if N times of successful Bluetooth connections are 10 successful Bluetooth connections, and the time to start the Bluetooth function is 10:30 on October 1, 2017, the last Bluetooth connection before starting Bluetooth did not follow the active disconnection method. If the connection is disconnected in the open mode, the names of all Bluetooth devices and the start time of each connection between 8:30 and 10:30 on October 1, 2017, which have been connected successfully for 10 times, will be determined in chronological order. .
若2017年10月1日的8点30分至10点30分之间10次蓝牙连接成功的所有蓝牙设备及连接开始时间依次为:第一次对应蓝牙设备F及连接开始时间为2017年10月1日的8点35分、第二次对应蓝牙设备G及连接开始时间为2017年10月1日的8点45分、第三次对应蓝牙设备H及连接开始时间为2017年10月1日的9点05分、第四次对应蓝牙设备G及连接开始时间为2017年10月1日的9点20分、第五次对应蓝牙设备F及连接开始时间为2017年10月1日的9点45分、第六次对应蓝牙设备F及连接开始时间为2017年10月1日的9点55分、第七次对应蓝牙设备F及连接开始时间为2017年10月1日的10点02分、第八次对应蓝牙设备F及连接开始时间为2017年10月1日的10点10分、第九次对应蓝牙设备F及连接开始时间为2017年10月1日的10点15分、第十次对应蓝牙设备F及连接开始时间为2017年10月1日的10点25分;且所述预先获取的连接时间与参数值之间的对应关系为:连接开始时间在8点30分钟至9点之间对应参数值1,连接开始时间在9点至9点30分之间对应参数值2,连接开始时间在9点30分至10点之间对应参数值3,连接开始时间在10点至10点30分钟之间对应参数值4;则在10次蓝牙成功连接中,蓝牙设备F的活跃因子为4+4+4+4+3+3+1=23,蓝牙设备G的活跃因子为2+1=3,蓝牙设备H的活跃因子为2。If all the Bluetooth devices with 10 successful Bluetooth connections between 8:30 and 10:30 on October 1, 2017 and the connection start time are as follows: the first corresponding Bluetooth device F and the connection start time are October 2017 8:35 on the 1st, the second corresponding Bluetooth device G and the connection start time is 8:45 on October 1, 2017, the third corresponding Bluetooth device H and the connection start time is October 1, 2017 9:05 on the day, the fourth time corresponds to Bluetooth device G and the connection start time is 9:20 on October 1, 2017, the fifth time corresponds to Bluetooth device F and the connection start time is October 1, 2017 9:45, the sixth time corresponds to Bluetooth device F and the connection start time is 9:55 on October 1, 2017, the seventh time corresponds to Bluetooth device F and the connection start time is 10:00 on October 1, 2017 02 minutes, the eighth time corresponds to Bluetooth device F and the connection start time is 10:10 on October 1, 2017, the ninth time corresponds to Bluetooth device F and the connection start time is 10:15 on October 1, 2017 , The tenth corresponding Bluetooth device F and the connection start time are 10:25 on October 1, 2017; and the correspondence between the pre-acquired connection time and the parameter value is: the connection start time is 8:30 The parameter value between minutes and 9 o'clock corresponds to parameter value 1, the connection start time corresponds to parameter value 2 between 9 o'clock and 9:30 o'clock, the connection start time corresponds to parameter value 3 between 9:30 o'clock and 10 o'clock, and the connection start time corresponds to parameter value 3. Between 10:00 and 10:30 minutes corresponds to a parameter value of 4; then in 10 successful Bluetooth connections, the activity factor of Bluetooth device F is 4+4+4+4+3+3+1=23, and Bluetooth device G The activity factor of the Bluetooth device H is 2+1=3, and the activity factor of the Bluetooth device H is 2.
这样,可以根据N次蓝牙连接成功的每次连接的开始时间赋予不同的参数值,确定每个蓝牙设备每次连接的连接时长对应的第一参数值,将每个蓝牙设备对应的第一参数值之和作为每个蓝牙设备的活跃因子,活跃因子越大,说明蓝牙设备的在启动蓝牙功能之前比较短的时间段内的使用次数越多,活跃因子比较大的蓝牙设备为用户在启动蓝牙功能时需要使用的蓝牙设备的概率比较大。In this way, different parameter values can be given according to the start time of each connection of N successful Bluetooth connections, and the first parameter value corresponding to the connection duration of each connection of each Bluetooth device can be determined, and the corresponding first parameter value of each Bluetooth device can be determined. The sum of the values is used as the active factor of each Bluetooth device. The larger the active factor, the more the Bluetooth device is used in a relatively short period of time before starting the Bluetooth function. The probability of using a Bluetooth device for the function is relatively high.
可选的,所述计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数的步骤,还可以包括以下步骤:Optionally, the step of calculating the activity factors of at least two Bluetooth devices corresponding to the successful N Bluetooth connections before the Bluetooth function is started, where N is a natural number greater than 1, may also include the following steps:
确定所述N次蓝牙连接成功中每个蓝牙设备的每次连接的连接时长,根据预先获取的连接时长与参数值之间的对应关系,确定每个蓝牙设备每次连接的连接时长对应的第二参数值,将每个蓝牙设备对应的第二参数值之和作为每个蓝牙设备的活跃因子;Determine the connection duration of each connection of each Bluetooth device in the N successful Bluetooth connections, and determine the first connection duration corresponding to each connection duration of each Bluetooth device according to the correspondence between the pre-acquired connection duration and the parameter value. Two parameter values, using the sum of the second parameter values corresponding to each bluetooth device as the activity factor of each bluetooth device;
其中,所述预先获取的连接时间与参数值之间的对应关系的变化趋势为随着所述连接时长变长所述参数值变大。Wherein, the change trend of the corresponding relationship between the pre-acquired connection time and the parameter value is that the parameter value becomes larger as the connection time length becomes longer.
举例来说,若N次蓝牙连接成功为10次蓝牙连接成功,所述启动蓝牙功能的时间为2017年10月1日10点30分,在启动蓝牙之前的上一次蓝牙连接未按照主动断开方式断开连接,则按照时间的先后顺序,确定2017年10月1日的8点30分至10点30分之间10次蓝牙连接成功的所有蓝牙设备的名称及每一次连接时长,若2017年10月1日的8点30分至10点30分之间10次蓝牙连接成功的所有蓝牙设备及连接时长依次为:第一次对应蓝牙设备F及连接时长4分钟、第二次对应蓝牙设备G及连接时长4分钟、第三次对应蓝牙设备H及连接时长4分钟、第四次对应蓝牙设备G及连接时长6分钟、第五次对应蓝牙设备F及连接时长6分钟、第六次对应蓝牙设备F及连接时长12分钟、第七次对应蓝牙设备F及连接时长12分钟、第八次对应蓝牙设备F及连接时长12分钟、第九次对应蓝牙设备F及连接时长12分钟、第十次对应蓝牙设备F及连接时长11分钟。若所述预先获取的连接时间与参数值之间的对应关系为:连接时长在0至5分钟之间对应参数值1,连接时长在5至10分钟之间对应参数值2,连接时长在10至15分钟之间对应参数值3。在10次蓝牙成功连接中,蓝牙设备F的活跃因子为3+3+3+3+3+2+1=18,蓝牙设备G的活跃因子为2+1=2,蓝牙设备H的活跃因子为1。For example, if N times of successful Bluetooth connections are 10 successful Bluetooth connections, the time to start the Bluetooth function is 10:30 on October 1, 2017, and the last Bluetooth connection before starting Bluetooth was not automatically disconnected If the connection is disconnected in this way, the names of all Bluetooth devices and the duration of each connection that have been connected successfully for 10 times between 8:30 and 10:30 on October 1, 2017 will be determined according to the order of time. If 2017 All Bluetooth devices with 10 successful Bluetooth connections between 8:30 and 10:30 on October 1, 2019 and the connection duration are as follows: the first time corresponds to Bluetooth device F and the connection time is 4 minutes, and the second time corresponds to Bluetooth Device G and the connection time is 4 minutes, the third time corresponds to Bluetooth device H and the connection time is 4 minutes, the fourth time corresponds to Bluetooth device G and the connection time is 6 minutes, the fifth time corresponds to Bluetooth device F and the connection time is 6 minutes, the sixth time Corresponds to Bluetooth device F and the connection time is 12 minutes, the seventh time corresponds to Bluetooth device F and the connection time is 12 minutes, the eighth time corresponds to Bluetooth device F and the connection time is 12 minutes, the ninth time corresponds to Bluetooth device F and the connection time is 12 minutes, and the ninth time corresponds to Bluetooth device F and the connection time is 12 minutes. Ten times correspond to Bluetooth device F and the connection time is 11 minutes. If the corresponding relationship between the pre-acquired connection time and the parameter value is as follows: the connection time between 0 and 5 minutes corresponds to the parameter value 1, the connection time between 5 and 10 minutes corresponds to the parameter value 2, and the connection time between 10 and 10 minutes to 15 minutes corresponds to parameter value 3. In 10 successful Bluetooth connections, the activity factor of Bluetooth device F is 3+3+3+3+3+2+1=18, the activity factor of Bluetooth device G is 2+1=2, and the activity factor of Bluetooth device H is 1.
这样,可以根据N次蓝牙连接成功的每一次连接时间赋予不同的参数值,确定每个蓝牙设备每次连接的连接时长对应的第二参数值,将每个蓝牙设备对应的第二参数值之和作为每个蓝牙设备的活跃因子,活跃因子越大,说明蓝牙设备的使用时长越大,活跃因子比较大的蓝牙设备为用户需要使用的蓝牙设备的概率比较大。In this way, different parameter values can be given to each connection time of N times of successful Bluetooth connections, and the second parameter value corresponding to the connection duration of each connection of each Bluetooth device can be determined, and the second parameter value corresponding to each Bluetooth device And as the activity factor of each Bluetooth device, the larger the activity factor, the longer the use time of the Bluetooth device is, and the Bluetooth device with a larger activity factor is more likely to be the Bluetooth device that the user needs to use.
可选的,所述预设阈值为目标活跃因子与预设活跃因子阈值之和,所述目标活跃因子为所述至少两个蓝牙设备的活跃因子的从大至小排列顺序中位于第二位的活跃因子。Optionally, the preset threshold is the sum of the target activity factor and the preset activity factor threshold, and the target activity factor is the second in the ranking order of the activity factors of the at least two Bluetooth devices from large to small active factor.
所述预设活跃因子阈值可以为用户自定义数值或默认数值。举例来说,若预设活跃因子阈值为3,计算的蓝牙设备F的活跃因子为23、蓝牙设备G的活跃因子为3及蓝牙设备H的活跃因子为2,则目标活跃因子为蓝牙设备G的活跃因子3,预设阈值为蓝牙设备G的活跃因子3加上预设活跃因子阈值3,即预设阈值为6。这样,蓝牙设备F的活跃因子为23大于预设阈值6,则可以说明蓝牙设备F为用户需要使用的蓝牙设备的概率远远大于其他蓝牙设备,若连接蓝牙设备F,则可以提高蓝牙设备连接正确的概率。The preset active factor threshold may be a user-defined value or a default value. For example, if the preset activity factor threshold is 3, the calculated activity factor of Bluetooth device F is 23, the activity factor of Bluetooth device G is 3, and the activity factor of Bluetooth device H is 2, then the target activity factor is Bluetooth device G The activity factor of 3, the preset threshold is the activity factor 3 of the Bluetooth device G plus the preset activity factor threshold 3, that is, the preset threshold is 6. In this way, if the activity factor of the Bluetooth device F is 23 and greater than the preset threshold 6, it can be explained that the probability that the Bluetooth device F is the Bluetooth device that the user needs to use is far greater than other Bluetooth devices. If the Bluetooth device F is connected, the Bluetooth device connection can be improved. correct probability.
步骤203、若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备。Step 203: If the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is greater than a preset threshold, connect the target Bluetooth device.
此步骤的实现过程和有益效果可以参见步骤103中的描述,此处不再赘述。For the implementation process and beneficial effects of this step, reference may be made to the description in step 103, which will not be repeated here.
该步骤203之后,还可以包括以下步骤:After the step 203, the following steps may also be included:
若在与所述目标蓝牙设备的连接等待中关闭蓝牙连接,且在关闭蓝牙连接之后的第一预设时长内启动蓝牙连接,则禁止对所述目标蓝牙设备进行连接;或者,If the Bluetooth connection is closed while the connection with the target Bluetooth device is waiting, and the Bluetooth connection is started within the first preset time period after the Bluetooth connection is closed, the connection to the target Bluetooth device is prohibited; or,
若连接所述目标蓝牙设备的连接等待时长超过第二预设时长,则显示第二提示框,所述第二提示框用于提示用户结束连接等待;或者,If the connection waiting time for connecting the target Bluetooth device exceeds the second preset time length, a second prompt box is displayed, and the second prompt box is used to prompt the user to end the connection waiting; or,
若与所述目标蓝牙设备连接成功,则记录连接成功信息,所述连接成功信息包括所述目标蓝牙设备的身份标识、所述移动终端与所述目标蓝牙设备连接成功的连接时间及连接时长。If the connection with the target Bluetooth device is successful, the connection success information is recorded, and the connection success information includes the identity mark of the target Bluetooth device, the connection time and the connection duration of the successful connection between the mobile terminal and the target Bluetooth device.
在本实施例中,所述第一预设时长可以为3秒。若在与所述目标蓝牙设备的连接等待中关闭蓝牙连接,且在关闭蓝牙连接之后的第一预设时长内启动蓝牙连接,说明用户不想连接目标蓝牙设备,需要连接其他的蓝牙设备,移动终端禁止对所述目标蓝牙设备进行连接,将目标蓝牙设备连接记录中的断开连接方式修改为主动断开,确保不再对目标蓝牙设备进行主动连接。In this embodiment, the first preset duration may be 3 seconds. If the Bluetooth connection is closed while the connection with the target Bluetooth device is waiting, and the Bluetooth connection is started within the first preset time period after the Bluetooth connection is closed, it means that the user does not want to connect to the target Bluetooth device and needs to connect to other Bluetooth devices. The connection to the target Bluetooth device is prohibited, and the disconnection mode in the connection record of the target Bluetooth device is changed to active disconnection, so as to ensure that the target Bluetooth device is no longer actively connected.
这样,可以避免重复连接用户不需要的蓝牙设备的情况出现,从而节约用户在蓝牙连接过程中所损耗的时间。In this way, repeated connections to unnecessary Bluetooth devices can be avoided, thereby saving the time spent by the user in the Bluetooth connection process.
在本实施例中,所述第二预设时长可以为5秒。若连接所述目标蓝牙设备的连接等待时长超过第二预设时长5秒,则说明连接等待的时间过长,显示第二提示框,其中,第二提示框可以为显示界面上的文字进行直接提示,也可以为弹窗或悬浮窗的形式进行提示。In this embodiment, the second preset duration may be 5 seconds. If the connection waiting time for connecting the target bluetooth device exceeds the second preset time length of 5 seconds, it means that the connection waiting time is too long, and a second prompt box is displayed, wherein the second prompt box can be directly displayed on the text on the display interface. The prompt can also be provided in the form of a pop-up window or a floating window.
这样,可以在蓝牙连接等待时长比较久的情况下提醒用户关闭蓝牙连接,避免用户在蓝牙等待过程中耗费过多时间。In this way, the user can be reminded to close the Bluetooth connection when the waiting time for the Bluetooth connection is relatively long, so as to prevent the user from spending too much time in the Bluetooth waiting process.
在本实施例中,若与所述目标蓝牙设备连接成功,则记录连接成功信息举例来说,可以记录目标蓝牙设备对应的蓝牙设备编码、连接开始时间、连接结束时间及连接时长等信息。In this embodiment, if the connection with the target Bluetooth device is successful, the connection success information is recorded. For example, information such as the Bluetooth device code corresponding to the target Bluetooth device, connection start time, connection end time, and connection duration can be recorded.
需要注意的是,该实施方式也可以应用于图1对应的实施例,以及达到相同的有益效果,为避免重复,此处不再赘述。It should be noted that this implementation manner can also be applied to the embodiment corresponding to FIG. 1 , and achieve the same beneficial effect. To avoid repetition, details are not repeated here.
步骤204、若所述目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且小于或等于所述预设阈值,则显示第一提示框,所述第一提示框用于提醒用户是否连接所述目标蓝牙设备。Step 204, if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is less than or equal to the preset threshold, display a first prompt box, and the first prompt box is used for reminding Whether the user is connected to the target Bluetooth device.
举例来说,若预设阈值为5,计算的蓝牙设备F的活跃因子为4,蓝牙设备G的活跃因子为3,蓝牙设备H的活跃因子为3,目标蓝牙设备为蓝牙设备F,蓝牙设备F的活跃因子4小于预设阈值5,不能确定启动蓝牙功能时用户需要连接蓝牙设备名称,显示的第一提示框中显示“是否需要连接蓝牙设备F”等提示信息,对提醒用户选择相应的蓝牙设备进行连接。For example, if the preset threshold is 5, the calculated activity factor of Bluetooth device F is 4, the activity factor of Bluetooth device G is 3, the activity factor of Bluetooth device H is 3, the target Bluetooth device is Bluetooth device F, and the Bluetooth device The activity factor 4 of F is less than the preset threshold value 5, and it is not sure that the user needs to connect the name of the Bluetooth device when the Bluetooth function is activated. The displayed first prompt box displays prompt information such as "Do you need to connect the Bluetooth device F?" to remind the user to select the corresponding Bluetooth device to connect.
这样,移动终端在目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且小于或等于所述预设阈值时,不会直接连接目标蓝牙设备,而会显示提示框,提醒用户是否连接对应的蓝牙设备,避免出现连接了用户不需要的蓝牙设备,用户需要关闭蓝牙连接重新选择需要的蓝牙设备的情况,节约用户在重新连接蓝牙设备中所花费的大量时间。In this way, when the activity factor of the target Bluetooth device is at the maximum of the activity factors of the at least two Bluetooth devices and is less than or equal to the preset threshold, the mobile terminal will not directly connect to the target Bluetooth device, but will display a prompt box to remind the user Whether to connect the corresponding bluetooth device, to avoid the connection of the bluetooth device that the user does not need, the user needs to close the bluetooth connection and reselect the required bluetooth device, saving the user a lot of time spent in reconnecting the bluetooth device.
需要注意的是,该实施方式也可以应用于图1对应的实施例,以及达到相同的有益效果,为避免重复,此处不再赘述。It should be noted that this implementation manner can also be applied to the embodiment corresponding to FIG. 1 , and achieve the same beneficial effect. To avoid repetition, details are not repeated here.
本发明实施例的蓝牙连接方法,通过若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数;若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备,其中,所述目标蓝牙设备为所述启动蓝牙功能之前的上一次蓝牙连接的蓝牙设备,每个蓝牙设备的活跃因子与对应的蓝牙设备在所述N次蓝牙连接成功的连接成功次数、连接时间及连接时长中的至少一项相关联;若所述目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且小于或等于所述预设阈值,则显示第一提示框,所述第一提示框用于提醒用户是否连接所述目标蓝牙设备。这样,移动终端根据与连接成功次数、连接时间及连接时长中的至少一项相关联的活跃因子确定用户需要连接的蓝牙设备,能够提高对蓝牙设备进行连接的准确率,从而有效的节约用户在蓝牙连接过程中所消耗的时间;在目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且小于或等于所述预设阈值时,提醒用户是否连接对应的蓝牙设备,避免出现连接用户不需要的蓝牙设备情况,无需用户花费大量时间重新连接蓝牙设备,从而节约用户的蓝牙连接时间。In the Bluetooth connection method of the embodiment of the present invention, if the last Bluetooth connection before starting the Bluetooth function is not disconnected according to the active disconnection mode, then calculate at least two corresponding to the N times of Bluetooth connection success before the Bluetooth function is started. The activity factor of the Bluetooth device, N is a natural number greater than 1; if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is greater than a preset threshold, then connect the target Bluetooth device, wherein the The target bluetooth device is the bluetooth device of the last bluetooth connection before the described start of the bluetooth function, the active factor of each bluetooth device and the number of successful connections, connection time and connection duration of the corresponding bluetooth device in the said n bluetooth connections If the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is less than or equal to the preset threshold, a first prompt box is displayed, and the first prompt box is used to remind the user whether to connect the target bluetooth device. In this way, the mobile terminal determines the Bluetooth device that the user needs to connect to according to the activity factor associated with at least one of the number of successful connections, connection time, and connection duration, which can improve the accuracy of connecting to the Bluetooth device, thereby effectively saving the user's time spent on the Bluetooth device. The time consumed in the bluetooth connection process; when the active factor of the target bluetooth device is at the maximum of the active factors of the at least two bluetooth devices and is less than or equal to the preset threshold, remind the user whether to connect the corresponding bluetooth device to avoid In the case of connecting a Bluetooth device that the user does not need, the user does not need to spend a lot of time reconnecting the Bluetooth device, thereby saving the user's Bluetooth connection time.
参见图3,图3是本发明实施例提供的移动终端的结构图,如图3所示,移动终端300包括启动模块301、计算模块302及连接模块303,启动模块301与计算模块302连接,计算模块302还与连接模块303连接;其中:Referring to FIG. 3, FIG. 3 is a structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. The calculation module 302 is also connected with the connection module 303; wherein:
启动模块301,用于启动蓝牙功能;Start module 301, for starting bluetooth function;
计算模块302,用于若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算至少两个蓝牙设备的活跃因子,所述至少两个蓝牙设备为所述启动蓝牙功能之前N次蓝牙连接成功对应的蓝牙设备中的至少两个蓝牙设备,N为大于1的自然数;Calculation module 302, used to calculate the activity factors of at least two bluetooth devices if the last bluetooth connection before the start of the bluetooth function is not disconnected according to the active disconnection method, and the at least two bluetooth devices are active factors of the start At least two bluetooth devices among the bluetooth devices corresponding to the bluetooth connection of N times before the bluetooth function, N is a natural number greater than 1;
连接模块303,用于若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备;A connection module 303, configured to connect the target Bluetooth device if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and greater than a preset threshold;
其中,所述目标蓝牙设备为所述启动蓝牙功能之前的上一次蓝牙连接的蓝牙设备,蓝牙设备的活跃因子与预设蓝牙连接信息相关联,所述预设蓝牙连接信息包括蓝牙设备在所述N次蓝牙连接成功的连接成功次数、连接时间及连接时长中的至少一项。可选的,所述计算模块302,还用于确定所述N次蓝牙连接成功中每个蓝牙设备的连接次数,将每个蓝牙设备的连接次数作为每个蓝牙设备的活跃因子;或者,还用于确定所述N次蓝牙连接成功中每个蓝牙设备每次连接的连接时间,根据预先获取的连接时间与参数值之间的对应关系,确定每个蓝牙设备每次连接的连接时间对应的第一参数值,将每个蓝牙设备对应的第一参数值之和作为每个蓝牙设备的活跃因子;Wherein, the target bluetooth device is the bluetooth device of the last bluetooth connection before the start of the bluetooth function, and the activity factor of the bluetooth device is associated with preset bluetooth connection information, and the preset bluetooth connection information includes the bluetooth device in the At least one of the number of successful connections, connection time, and connection duration of N successful Bluetooth connections. Optionally, the calculation module 302 is also configured to determine the number of connections of each Bluetooth device in the N successful Bluetooth connections, and use the number of connections of each Bluetooth device as the activity factor of each Bluetooth device; or, It is used to determine the connection time of each Bluetooth device in the N times of successful Bluetooth connections, and determine the connection time corresponding to each connection time of each Bluetooth device according to the correspondence between the pre-acquired connection time and the parameter value. The first parameter value, using the sum of the first parameter values corresponding to each bluetooth device as the activity factor of each bluetooth device;
其中,所述预先获取的连接时间与参数值之间的对应关系的变化趋势为随着目标间隔时间变短所述参数值变大,所述目标间隔时间为所述连接时间距离所述启动蓝牙功能的时间之间的间隔。Wherein, the change trend of the corresponding relationship between the pre-acquired connection time and the parameter value is that the parameter value becomes larger as the target interval time becomes shorter, and the target interval time is the distance between the connection time and the Bluetooth activation. The time interval between functions.
可选的,所述计算模块,还用于确定所述N次蓝牙连接成功中每个蓝牙设备的每次连接的连接时长,根据预先获取的连接时长与参数值之间的对应关系,确定每个蓝牙设备每次连接的连接时长对应的第二参数值,将每个蓝牙设备对应的第二参数值之和作为每个蓝牙设备的活跃因子;Optionally, the calculation module is further configured to determine the connection duration of each connection of each Bluetooth device in the N successful Bluetooth connections, and determine each connection duration according to the pre-acquired correspondence between the connection duration and the parameter value The second parameter value corresponding to the connection duration of each connection of each bluetooth device, and the sum of the second parameter values corresponding to each bluetooth device as the activity factor of each bluetooth device;
其中,所述预先获取的连接时长与参数值之间的对应关系的变化趋势为随着所述连接时长变长所述参数值变大。Wherein, the change trend of the corresponding relationship between the pre-acquired connection duration and the parameter value is that the parameter value becomes larger as the connection duration becomes longer.
可选的,所述预设阈值为目标活跃因子与预设活跃因子阈值之和,所述目标活跃因子为所述至少两个蓝牙设备的活跃因子的从大至小排列顺序中位于第二位的活跃因子。Optionally, the preset threshold is the sum of the target activity factor and the preset activity factor threshold, and the target activity factor is the second in the ranking order of the activity factors of the at least two Bluetooth devices from large to small active factor.
可选的,如图4所示,所述移动终端300还包括:Optionally, as shown in FIG. 4, the mobile terminal 300 further includes:
第一显示模块304,用于若所述目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且小于或等于所述预设阈值,则显示第一提示框,所述第一提示框用于提醒用户是否连接所述目标蓝牙设备。The first display module 304 is configured to display a first prompt box if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is less than or equal to the preset threshold, and the first The prompt box is used to remind the user whether to connect to the target Bluetooth device.
可选的,如图5所示,所述移动终端300还包括:Optionally, as shown in FIG. 5, the mobile terminal 300 further includes:
控制模块305,用于若在与所述目标蓝牙设备的连接等待中关闭蓝牙连接,且在关闭蓝牙连接之后的第一预设时长内启动蓝牙连接,则禁止对所述目标蓝牙设备进行连接;或者,The control module 305 is configured to disable the connection to the target Bluetooth device if the Bluetooth connection is closed while the connection with the target Bluetooth device is waiting, and the Bluetooth connection is started within the first preset time period after the Bluetooth connection is closed; or,
第二显示模块306,用于若连接所述目标蓝牙设备的连接等待时长超过第二预设时长,则显示第二提示框,所述第二提示框用于提示用户结束连接等待;或者,The second display module 306 is configured to display a second prompt box if the connection waiting time for connecting the target Bluetooth device exceeds a second preset time length, and the second prompt box is used to prompt the user to end the connection waiting; or,
记录模块307,用于若与所述目标蓝牙设备连接成功,则记录连接成功信息,所述连接成功信息包括所述目标蓝牙设备的身份标识、所述移动终端与所述目标蓝牙设备连接成功的连接时间及连接时长。The recording module 307 is configured to record successful connection information if the connection with the target Bluetooth device is successful, the successful connection information including the identity of the target Bluetooth device, the successful connection between the mobile terminal and the target Bluetooth device Connection time and connection duration.
移动终端300能够实现图1至图2的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 300 can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition.
本发明实施例提供的移动终端300,根据与连接成功次数、连接时间及连接时长中的至少一项相关联的活跃因子确定用户需要连接的蓝牙设备,能够提高对蓝牙设备进行连接的准确率,从而有效的节约用户在蓝牙连接过程中所消耗的时间。The mobile terminal 300 provided by the embodiment of the present invention determines the Bluetooth device that the user needs to connect to according to the activity factor associated with at least one of the number of successful connections, connection time, and connection duration, which can improve the accuracy of connecting to the Bluetooth device. Thus, the time consumed by the user in the Bluetooth connection process is effectively saved.
图6为实现本发明各个实施例的一种移动终端的硬件结构示意图,该移动终端600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、处理器610、以及电源611等部件。本领域技术人员可以理解,图6中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。6 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 600 includes but not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, and a display unit 606 , a user input unit 607 , an interface unit 608 , a memory 609 , a processor 610 , and a power supply 611 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 6 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine certain components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
其中,处理器610用于,启动蓝牙功能;若所述启动蓝牙功能之前的上一次蓝牙连接未按照主动断开方式断开连接,则计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数;若目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且大于预设阈值,则连接所述目标蓝牙设备;其中,所述目标蓝牙设备为所述启动蓝牙功能之前的上一次蓝牙连接的蓝牙设备,每个蓝牙设备的活跃因子与对应的蓝牙设备在所述N次蓝牙连接成功的连接成功次数、连接时间及连接时长中的至少一项相关联。Wherein, the processor 610 is used to start the Bluetooth function; if the last Bluetooth connection before the start of the Bluetooth function is not disconnected according to the active disconnection mode, then calculate at least The activity factors of two Bluetooth devices, N is a natural number greater than 1; if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is greater than a preset threshold, then connect the target Bluetooth device; wherein, The target bluetooth device is the bluetooth device of the last bluetooth connection before the bluetooth function is started, the active factor of each bluetooth device and the number of successful connections, connection time and connection times of the corresponding bluetooth device in the n bluetooth connections. At least one of the durations is associated.
可选的,所述处理器610执行所述计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数,包括:确定所述N次蓝牙连接成功中每个蓝牙设备的连接次数,将每个蓝牙设备的连接次数作为每个蓝牙设备的活跃因子;或者,确定所述N次蓝牙连接成功中每个蓝牙设备每次连接的连接时间,根据预先获取的连接时间与参数值之间的对应关系,确定每个蓝牙设备每次连接的连接时间对应的第一参数值,将每个蓝牙设备对应的第一参数值之和作为每个蓝牙设备的活跃因子;其中,所述预先获取的连接时间与参数值之间的对应关系的变化趋势为随着目标间隔时间变短所述参数值变大,所述目标间隔时间为所述连接时间距离所述启动蓝牙功能的时间之间的间隔。Optionally, the processor 610 executes the calculation of the activity factors of at least two Bluetooth devices corresponding to the successful N Bluetooth connections before starting the Bluetooth function, where N is a natural number greater than 1, including: determining the N Bluetooth The number of connections of each bluetooth device in the successful connection, using the number of connections of each bluetooth device as the active factor of each bluetooth device; or, determining the connection time of each connection of each bluetooth device in the N successful bluetooth connections, According to the correspondence between the pre-acquired connection time and the parameter value, determine the first parameter value corresponding to the connection time of each connection of each Bluetooth device, and use the sum of the first parameter values corresponding to each Bluetooth device as each Bluetooth The activity factor of the device; wherein, the change trend of the corresponding relationship between the pre-acquired connection time and the parameter value is that the parameter value becomes larger as the target interval time becomes shorter, and the target interval time is the connection time The interval between the times when the bluetooth function is activated.
可选的,所述处理器610执行所述计算所述启动蓝牙功能之前N次蓝牙连接成功对应的至少两个蓝牙设备的活跃因子,N为大于1的自然数,包括:确定所述N次蓝牙连接成功中每个蓝牙设备的每次连接的连接时长,根据预先获取的连接时长与参数值之间的对应关系,确定每个蓝牙设备每次连接的连接时长对应的第二参数值,将每个蓝牙设备对应的第二参数值之和作为每个蓝牙设备的活跃因子;其中,所述预先获取的连接时长与参数值之间的对应关系的变化趋势为随着所述连接时长变长所述参数值变大。Optionally, the processor 610 executes the calculation of the activity factors of at least two Bluetooth devices corresponding to the successful N Bluetooth connections before starting the Bluetooth function, where N is a natural number greater than 1, including: determining the N Bluetooth The connection duration of each connection of each Bluetooth device in the successful connection, according to the corresponding relationship between the pre-acquired connection duration and the parameter value, determine the second parameter value corresponding to the connection duration of each connection of each Bluetooth device, and set each The sum of the second parameter values corresponding to each bluetooth device is used as the activity factor of each bluetooth device; wherein, the change trend of the corresponding relationship between the pre-acquired connection duration and the parameter value is as the connection duration becomes longer. The above parameter value becomes larger.
可选的,所述预设阈值为目标活跃因子与预设活跃因子阈值之和,所述目标活跃因子为所述至少两个蓝牙设备的活跃因子的从大至小排列顺序中位于第二位的活跃因子。Optionally, the preset threshold is the sum of the target activity factor and the preset activity factor threshold, and the target activity factor is the second in the ranking order of the activity factors of the at least two Bluetooth devices from large to small active factor.
可选的,所述处理器610还用于,若所述目标蓝牙设备的活跃因子在所述至少两个蓝牙设备的活跃因子最大且小于或等于所述预设阈值,则显示第一提示框,所述第一提示框用于提醒用户是否连接所述目标蓝牙设备。Optionally, the processor 610 is further configured to display a first prompt box if the activity factor of the target Bluetooth device is the largest among the activity factors of the at least two Bluetooth devices and is less than or equal to the preset threshold , the first prompt box is used to remind the user whether to connect to the target Bluetooth device.
可选的,所述处理器610还用于,若在与所述目标蓝牙设备的连接等待中关闭蓝牙连接,且在第一预设时长内启动蓝牙连接,则禁止对所述目标蓝牙设备进行连接;若连接所述目标蓝牙设备的连接等待时长超过第二预设时长,则显示第二提示框,所述第二提示框用于提示用户结束连接等待;若与所述目标蓝牙设备连接成功,则记录连接成功信息,所述连接成功信息包括所述目标蓝牙设备的身份标识、所述移动终端与所述目标蓝牙设备连接成功的连接时间及连接时长。Optionally, the processor 610 is further configured to, if the Bluetooth connection is closed while the connection with the target Bluetooth device is waiting, and the Bluetooth connection is started within the first preset time length, prohibiting the connection to the target Bluetooth device. Connect; if the connection waiting time for connecting the target Bluetooth device exceeds the second preset time length, a second prompt box is displayed, and the second prompt box is used to prompt the user to end the connection waiting; if the connection with the target Bluetooth device is successful , then record the connection success information, the connection success information includes the identity of the target Bluetooth device, the connection time and connection duration of the successful connection between the mobile terminal and the target Bluetooth device.
移动终端600能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 600 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.
本发明实施例的移动终端600,能够根据与连接成功次数、连接时间及连接时长中的至少一项相关联的活跃因子确定用户需要连接的蓝牙设备,提高连接蓝牙设备的准确率,从而有效的节约用户在蓝牙连接过程中所消耗的时间。The mobile terminal 600 of the embodiment of the present invention can determine the Bluetooth device that the user needs to connect according to the activity factor associated with at least one of the number of successful connections, connection time and connection duration, and improve the accuracy of connecting the Bluetooth device, thereby effectively Save time spent by users in the Bluetooth connection process.
应理解的是,本发明实施例中,射频单元601可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器610处理;另外,将上行的数据发送给基站。通常,射频单元601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元601还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 610 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块602为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 602, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元603可以将射频单元601或网络模块602接收的或者在存储器609中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元603还可以提供与移动终端600执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元603包括扬声器、蜂鸣器以及受话器等。The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 can also provide audio output related to a specific function performed by the mobile terminal 600 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
输入单元604用于接收音频或视频信号。输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元606上。经图形处理器6041处理后的图像帧可以存储在存储器609(或其它存储介质)中或者经由射频单元601或网络模块602进行发送。麦克风6042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元601发送到移动通信基站的格式输出。The input unit 604 is used for receiving audio or video signals. The input unit 604 may include a graphics processing unit (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processing unit 6041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 606 . The image frames processed by the graphics processor 6041 may be stored in the memory 609 (or other storage medium) or sent via the radio frequency unit 601 or the network module 602 . The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 601 for output in the case of a phone call mode.
移动终端600还包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6061的亮度,接近传感器可在移动终端600移动到耳边时,关闭显示面板6061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器605还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and the display panel 6061 when the mobile terminal 600 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 605 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元606用于显示由用户输入的信息或提供给用户的信息。显示单元606可包括显示面板6061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6061。The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元607可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6071上或在触控面板6071附近的操作)。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器610,接收处理器610发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6071。除了触控面板6071,用户输入单元607还可以包括其他输入设备6072。具体地,其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 607 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072 . The touch panel 6071, also referred to as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 6071 or near the touch panel 6071). operate). The touch panel 6071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 610, receive the command sent by the processor 610 and execute it. In addition, the touch panel 6071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6071 , the user input unit 607 may also include other input devices 6072 . Specifically, other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板6071可覆盖在显示面板6061上,当触控面板6071检测到在其上或附近的触摸操作后,传送给处理器610以确定触摸事件的类型,随后处理器610根据触摸事件的类型在显示面板6061上提供相应的视觉输出。虽然在图6中,触控面板6071与显示面板6061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板6071与显示面板6061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 6071 can be covered on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near it, it will be sent to the processor 610 to determine the type of the touch event, and then the processor 610 can The type of event provides a corresponding visual output on the display panel 6061. Although in FIG. 6, the touch panel 6071 and the display panel 6061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元608为外部装置与移动终端600连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元608可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端600内的一个或多个元件或者可以用于在移动终端600和外部装置之间传输数据。The interface unit 608 is an interface for connecting an external device to the mobile terminal 600 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 608 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器609可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 609 can be used to store software programs as well as various data. The memory 609 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 609 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器610是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器609内的软件程序和/或模块,以及调用存储在存储器609内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器610可包括一个或多个处理单元;优选的,处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。The processor 610 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .
移动终端600还可以包括给各个部件供电的电源611(比如电池),优选的,电源611可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 600 can also include a power supply 611 (such as a battery) for supplying power to various components. Preferably, the power supply 611 can be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端600包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 600 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器610,存储器609,存储在存储器609上并可在所述处理器610上运行的计算机程序,该计算机程序被处理器610执行时实现上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 610, a memory 609, a computer program stored in the memory 609 and operable on the processor 610, when the computer program is executed by the processor 610 The various processes of the foregoing Bluetooth connection method embodiments are implemented and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned Bluetooth connection method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711373389.4ACN108135033B (en) | 2017-12-19 | 2017-12-19 | Bluetooth connection method and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711373389.4ACN108135033B (en) | 2017-12-19 | 2017-12-19 | Bluetooth connection method and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN108135033Atrue CN108135033A (en) | 2018-06-08 |
| CN108135033B CN108135033B (en) | 2020-07-31 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711373389.4AActiveCN108135033B (en) | 2017-12-19 | 2017-12-19 | Bluetooth connection method and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN108135033B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110139261A (en)* | 2019-06-06 | 2019-08-16 | 深圳诺康医疗设备股份有限公司 | Bluetooth equipment, Bluetooth mobile terminal, bluetooth connect system and method fastly |
| CN110337090A (en)* | 2019-08-12 | 2019-10-15 | 广州小鹏汽车科技有限公司 | A kind of connection method of bluetooth equipment and device |
| CN110602672A (en)* | 2019-07-29 | 2019-12-20 | 深圳市万普拉斯科技有限公司 | Bluetooth device reconnection method, device, terminal and computer readable storage medium |
| CN111954193A (en)* | 2020-08-06 | 2020-11-17 | Tcl通讯(宁波)有限公司 | A Bluetooth device connection detection method, device and mobile terminal |
| CN112235166A (en)* | 2020-12-04 | 2021-01-15 | 歌尔科技有限公司 | Bluetooth connection time detection method and system |
| CN112954760A (en)* | 2021-03-15 | 2021-06-11 | 维沃移动通信有限公司 | Connection method and device of Bluetooth equipment and electronic equipment |
| CN113163318A (en)* | 2021-05-10 | 2021-07-23 | 深圳市美恩微电子有限公司 | Call Bluetooth headset based on ENC noise reduction |
| CN115484581A (en)* | 2022-08-29 | 2022-12-16 | 深圳市酷开网络科技股份有限公司 | Bluetooth list display method and device, storage medium and electronic equipment |
| CN117154890A (en)* | 2023-09-08 | 2023-12-01 | 南通国轩新能源科技有限公司 | Multi-data linkage charging monitoring method and system |
| CN120475386A (en)* | 2025-07-15 | 2025-08-12 | 深蓝汽车科技有限公司 | Bluetooth connection method, device, equipment, vehicle, system and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105392212A (en)* | 2015-10-30 | 2016-03-09 | 上海卓易科技股份有限公司 | Automatic Bluetooth reconnection method, system and intelligent terminal |
| CN106102129A (en)* | 2016-05-23 | 2016-11-09 | 深圳Tcl数字技术有限公司 | Connect the method and device of bluetooth equipment |
| CN106303907A (en)* | 2015-05-28 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Bluetooth communication method and bluetooth communication device |
| CN106851530A (en)* | 2016-12-14 | 2017-06-13 | 青岛海信电器股份有限公司 | The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment |
| CN107197346A (en)* | 2017-05-27 | 2017-09-22 | 深圳Tcl新技术有限公司 | Television terminal and bluetooth equipment return even method and computer-readable recording medium |
| EP3065469B1 (en)* | 2015-03-04 | 2017-10-11 | Alcatel Lucent | Peer-to-peer network connectivity in a mobile environment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3065469B1 (en)* | 2015-03-04 | 2017-10-11 | Alcatel Lucent | Peer-to-peer network connectivity in a mobile environment |
| CN106303907A (en)* | 2015-05-28 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Bluetooth communication method and bluetooth communication device |
| CN105392212A (en)* | 2015-10-30 | 2016-03-09 | 上海卓易科技股份有限公司 | Automatic Bluetooth reconnection method, system and intelligent terminal |
| CN106102129A (en)* | 2016-05-23 | 2016-11-09 | 深圳Tcl数字技术有限公司 | Connect the method and device of bluetooth equipment |
| CN106851530A (en)* | 2016-12-14 | 2017-06-13 | 青岛海信电器股份有限公司 | The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment |
| CN107197346A (en)* | 2017-05-27 | 2017-09-22 | 深圳Tcl新技术有限公司 | Television terminal and bluetooth equipment return even method and computer-readable recording medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110139261A (en)* | 2019-06-06 | 2019-08-16 | 深圳诺康医疗设备股份有限公司 | Bluetooth equipment, Bluetooth mobile terminal, bluetooth connect system and method fastly |
| CN110139261B (en)* | 2019-06-06 | 2024-02-20 | 深圳诺康医疗设备股份有限公司 | Bluetooth equipment, bluetooth mobile terminal, bluetooth quick connection system and Bluetooth quick connection method |
| CN110602672A (en)* | 2019-07-29 | 2019-12-20 | 深圳市万普拉斯科技有限公司 | Bluetooth device reconnection method, device, terminal and computer readable storage medium |
| CN110602672B (en)* | 2019-07-29 | 2021-10-08 | 深圳市万普拉斯科技有限公司 | Method, apparatus, terminal and computer-readable storage medium for connecting back to a Bluetooth device |
| CN110337090A (en)* | 2019-08-12 | 2019-10-15 | 广州小鹏汽车科技有限公司 | A kind of connection method of bluetooth equipment and device |
| CN111954193A (en)* | 2020-08-06 | 2020-11-17 | Tcl通讯(宁波)有限公司 | A Bluetooth device connection detection method, device and mobile terminal |
| CN111954193B (en)* | 2020-08-06 | 2024-06-11 | 深圳市华正行科技有限公司 | Bluetooth equipment connection detection method and device and mobile terminal |
| CN112235166A (en)* | 2020-12-04 | 2021-01-15 | 歌尔科技有限公司 | Bluetooth connection time detection method and system |
| CN112235166B (en)* | 2020-12-04 | 2022-06-21 | 歌尔科技有限公司 | Bluetooth connection time detection method and system |
| CN112954760B (en)* | 2021-03-15 | 2023-09-22 | 维沃移动通信有限公司 | Connection method, device and electronic device for Bluetooth device |
| CN112954760A (en)* | 2021-03-15 | 2021-06-11 | 维沃移动通信有限公司 | Connection method and device of Bluetooth equipment and electronic equipment |
| CN113163318B (en)* | 2021-05-10 | 2022-04-29 | 深圳市美恩微电子有限公司 | Call Bluetooth headset based on ENC noise reduction |
| CN113163318A (en)* | 2021-05-10 | 2021-07-23 | 深圳市美恩微电子有限公司 | Call Bluetooth headset based on ENC noise reduction |
| CN115484581A (en)* | 2022-08-29 | 2022-12-16 | 深圳市酷开网络科技股份有限公司 | Bluetooth list display method and device, storage medium and electronic equipment |
| CN117154890A (en)* | 2023-09-08 | 2023-12-01 | 南通国轩新能源科技有限公司 | Multi-data linkage charging monitoring method and system |
| CN117154890B (en)* | 2023-09-08 | 2024-02-20 | 南通国轩新能源科技有限公司 | Multi-data linkage charging monitoring method and system |
| CN120475386A (en)* | 2025-07-15 | 2025-08-12 | 深蓝汽车科技有限公司 | Bluetooth connection method, device, equipment, vehicle, system and storage medium |
| Publication number | Publication date |
|---|---|
| CN108135033B (en) | 2020-07-31 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108135033B (en) | Bluetooth connection method and mobile terminal | |
| CN109509473B (en) | Voice control method and terminal device | |
| CN107613131A (en) | Method for avoiding disturbing application program and mobile terminal | |
| CN108845853A (en) | A kind of application program launching method and mobile terminal | |
| US20220278950A1 (en) | Information display method, information sending method, and electronic device | |
| CN108391008B (en) | Message reminding method and mobile terminal | |
| CN107911445A (en) | A kind of information push method, mobile terminal and storage medium | |
| CN108196815B (en) | Method for adjusting call sound and mobile terminal | |
| CN107908705A (en) | A kind of information-pushing method, information push-delivery apparatus and mobile terminal | |
| CN107734170A (en) | A kind of notification message processing method, mobile terminal and wearable device | |
| CN108174037A (en) | Prompt method for notification message and mobile terminal | |
| CN108418950B (en) | Message reminder method and mobile terminal | |
| CN108270853B (en) | A message processing method and mobile terminal | |
| WO2020238451A1 (en) | Terminal control method and terminal | |
| CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
| CN108512980A (en) | A kind of detection method and mobile terminal of mobile terminal | |
| CN110138963A (en) | A kind of message treatment method and mobile terminal | |
| CN108632469A (en) | Method for prompting location of mobile terminal and mobile terminal | |
| CN107861786A (en) | The reminding method and mobile terminal of a kind of notice | |
| CN108062195A (en) | The reminding method and mobile terminal of a kind of notification event | |
| CN108307048B (en) | Message output method and device and mobile terminal | |
| CN108307075B (en) | A kind of incoming call processing method and mobile terminal | |
| CN110784394A (en) | Prompting method and electronic equipment | |
| CN108366167B (en) | A kind of message reminding method and mobile terminal | |
| CN108197893A (en) | A kind of based reminding method and mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |