Movatterモバイル変換


[0]ホーム

URL:


CN108347719A - Connection method of Bluetooth device, device, storage medium, mobile terminal and server - Google Patents

Connection method of Bluetooth device, device, storage medium, mobile terminal and server
Download PDF

Info

Publication number
CN108347719A
CN108347719ACN201810117192.2ACN201810117192ACN108347719ACN 108347719 ACN108347719 ACN 108347719ACN 201810117192 ACN201810117192 ACN 201810117192ACN 108347719 ACN108347719 ACN 108347719A
Authority
CN
China
Prior art keywords
mobile terminal
bluetooth
default
target
blacklist
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810117192.2A
Other languages
Chinese (zh)
Other versions
CN108347719B (en
Inventor
刘畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810117192.2ApriorityCriticalpatent/CN108347719B/en
Publication of CN108347719ApublicationCriticalpatent/CN108347719A/en
Application grantedgrantedCritical
Publication of CN108347719BpublicationCriticalpatent/CN108347719B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了蓝牙设备连接方法、装置、存储介质、移动终端及服务器。该方法包括:获取目标蓝牙设备的目标设备标识;在判断出目标设备标识与预设黑名单相匹配时,读取预设白名单;若目标设备标识与所述预设白名单相匹配,则确定目标设备标识与所述预设黑名单匹配失效,并采用所述默认连接策略与所述目标蓝牙设备进行通信连接。本申请实施例通过采用上述技术方案,可以解决因预设黑名单在移动终端出厂后无法被更改而引起的蓝牙设备连接兼容性问题,使移动终端与目标蓝牙设备之间能够更好的匹配连接,提升数据交互性能。

The embodiment of the application discloses a Bluetooth device connection method, device, storage medium, mobile terminal and server. The method includes: obtaining the target device identifier of the target Bluetooth device; when it is determined that the target device identifier matches the preset blacklist, reading the preset whitelist; if the target device identifier matches the preset whitelist, then It is determined that the match between the target device identifier and the preset blacklist fails, and the default connection policy is used to communicate with the target Bluetooth device. The embodiment of the present application adopts the above technical solution to solve the Bluetooth device connection compatibility problem caused by the inability to change the preset blacklist after the mobile terminal leaves the factory, so that the mobile terminal and the target Bluetooth device can be better matched and connected. , to improve data interaction performance.

Description

Translated fromChinese
蓝牙设备连接方法、装置、存储介质、移动终端及服务器Bluetooth device connection method, device, storage medium, mobile terminal and server

技术领域technical field

本申请实施例涉及蓝牙技术领域,尤其涉及蓝牙设备连接方法、装置、存储介质、移动终端及服务器。The embodiments of the present application relate to the technical field of bluetooth, and in particular to a bluetooth device connection method, device, storage medium, mobile terminal and server.

背景技术Background technique

蓝牙(Bluetooth,BT)是一种低功耗无线连接技术,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换,如实现跨设备传输音频及广播信息等。Bluetooth (Bluetooth, BT) is a low-power wireless connection technology that can realize short-distance data exchange between fixed devices, mobile devices and building personal area networks, such as realizing cross-device transmission of audio and broadcast information.

目前,蓝牙由蓝牙技术联盟(Bluetooth Special Interest Group,简称SIG)管理。蓝牙技术联盟在全球拥有超过25,000家成员公司,它们分布在电信、计算机、网络、和消费电子等多重领域。制造商的设备必须符合蓝牙技术联盟的标准才能以“蓝牙设备”的名义进入市场。Currently, Bluetooth is managed by the Bluetooth Special Interest Group (SIG for short). The Bluetooth SIG has more than 25,000 member companies in the world, and they are distributed in multiple fields such as telecommunications, computers, networks, and consumer electronics. A manufacturer's device must meet the standards of the Bluetooth Special Interest Group in order to be marketed as a "Bluetooth device."

随着蓝牙技术的快速普及,人们身边的各种电子设备大多已支持蓝牙,如手机及平板电脑等移动终端、蓝牙耳机、车载蓝牙以及蓝牙音箱等等。不同的蓝牙设备可能采用不同类型的通信协议,如HFP(Hands-free Profile)协议、蓝牙音频传输模型协定(AdvancedAudio Distribution Profile,A2DP)协议等等,同一类型的通信协议可能随着技术发展又会有不同的版本,因此,蓝牙设备之间的通信连接可能会存在一些兼容性的问题,需要改进。With the rapid popularization of Bluetooth technology, most of the various electronic devices around people already support Bluetooth, such as mobile terminals such as mobile phones and tablet computers, Bluetooth headsets, car Bluetooth and Bluetooth speakers, etc. Different Bluetooth devices may use different types of communication protocols, such as HFP (Hands-free Profile) protocol, Bluetooth Audio Distribution Profile (Advanced Audio Distribution Profile, A2DP) protocol, etc., and the same type of communication protocol may change with the development of technology. There are different versions, therefore, there may be some compatibility issues in the communication connection between Bluetooth devices, which needs to be improved.

发明内容Contents of the invention

本申请实施例提供一种蓝牙设备连接方法、装置、存储介质、移动终端及服务器,可以优化移动终端与蓝牙设备的连接方案。Embodiments of the present application provide a Bluetooth device connection method, device, storage medium, mobile terminal, and server, which can optimize the connection scheme between the mobile terminal and the Bluetooth device.

第一方面,本申请实施例提供了一种蓝牙设备连接方法,应用于移动终端,包括:In the first aspect, the embodiment of the present application provides a Bluetooth device connection method applied to a mobile terminal, including:

获取目标蓝牙设备的目标设备标识;Obtain the target device identification of the target Bluetooth device;

在判断出所述目标设备标识与预设黑名单相匹配时,读取预设白名单;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接;所述预设白名单包括服务器向所述移动终端推送的蓝牙设备白名单;When it is determined that the target device identifier matches the preset blacklist, read the preset whitelist; wherein, the preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory, when When the device identification of the Bluetooth device to be connected matches the preset blacklist, use a standby connection strategy to communicate with the Bluetooth device to be connected; otherwise, use a default connection strategy to communicate with the Bluetooth device to be connected A communication connection; the preset whitelist includes a bluetooth device whitelist pushed by the server to the mobile terminal;

若所述目标设备标识与所述预设白名单相匹配,则确定所述目标设备标识与所述预设黑名单匹配失效,并采用所述默认连接策略与所述目标蓝牙设备进行通信连接。If the target device identifier matches the preset whitelist, it is determined that the match between the target device identifier and the preset blacklist fails, and the default connection policy is used to communicate with the target Bluetooth device.

第二方面,本申请实施例提供了一种蓝牙设备连接方法,应用于服务器,包括:In the second aspect, the embodiment of the present application provides a Bluetooth device connection method applied to a server, including:

接收移动终端发送的问题报告,所述问题报告包括所述移动终端根据用户输入的问题反馈信息生成的报告,所述问题报告中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识;Receive a problem report sent by the mobile terminal, the problem report includes a report generated by the mobile terminal according to the problem feedback information input by the user, and the problem report includes the device identification of the Bluetooth device that has a connection problem with the mobile terminal ;

根据所述问题报告生成预设白名单;Generate a preset whitelist based on the problem report;

将所述预设白名单推送至所述移动终端;所述预设白名单用于指示所述移动终端在判断出目标蓝牙设备的目标设备标识与预设黑名单相匹配的同时,还与所述预设白名单相匹配时,确定所述目标设备标识与所述预设黑名单匹配失效,并采用默认连接策略与所述目标蓝牙设备进行通信连接;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接。Pushing the preset whitelist to the mobile terminal; the preset whitelist is used to instruct the mobile terminal to match the target device identifier of the target Bluetooth device with the preset blacklist, and also to match the preset blacklist. When the preset whitelist matches, it is determined that the match between the target device identifier and the preset blacklist fails, and a default connection strategy is used to communicate with the target Bluetooth device; wherein, the preset blacklist is included in The bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory, when the device identification of the bluetooth device to be connected matches the preset blacklist, use the standby connection strategy to communicate with the bluetooth device to be connected , otherwise, a default connection policy is used to communicate with the Bluetooth device to be connected.

第三方面,本申请实施例提供了一种蓝牙设备的连接装置,配置于移动终端,包括:In a third aspect, the embodiment of the present application provides a connection device for a Bluetooth device, configured in a mobile terminal, including:

设备标识获取模块,用于获取目标蓝牙设备的目标设备标识;The device identification acquisition module is used to obtain the target device identification of the target bluetooth device;

白名单读取模块,用于在判断出所述目标设备标识与预设黑名单相匹配时,读取预设白名单;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接;所述预设白名单包括服务器向所述移动终端推送的蓝牙设备白名单;The whitelist reading module is used to read the preset whitelist when it is determined that the target device identifier matches the preset blacklist; wherein, the preset blacklist includes information stored in the mobile terminal that cannot The changed bluetooth device blacklist, when the device identification of the bluetooth device to be connected matches the preset blacklist, use the backup connection strategy to communicate with the bluetooth device to be connected, otherwise, use the default connection strategy to communicate with the bluetooth device The Bluetooth device to be connected is connected by communication; the preset white list includes a white list of Bluetooth devices pushed by the server to the mobile terminal;

连接控制模块,用于在所述目标设备标识与所述预设白名单相匹配时,确定所述目标设备标识与所述预设黑名单匹配失效,并采用所述默认连接策略与所述目标蓝牙设备进行通信连接。A connection control module, configured to determine that the match between the target device identifier and the preset blacklist fails when the target device identifier matches the preset whitelist, and use the default connection policy to connect with the target Bluetooth device for communication connection.

第四方面,本申请实施例提供了一种蓝牙设备的连接装置,配置于服务器,包括:In a fourth aspect, the embodiment of the present application provides a connection device for a Bluetooth device, configured in a server, including:

问题报告接收模块,用于接收移动终端发送的问题报告,所述问题报告包括所述移动终端根据用户输入的问题反馈信息生成的报告,所述问题反馈信息中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识;A problem report receiving module, configured to receive a problem report sent by a mobile terminal, the problem report includes a report generated by the mobile terminal according to the problem feedback information input by the user, and the problem feedback information includes the device identification of the bluetooth device with connection problems;

白名单生成模块,用于根据所述问题报告生成预设白名单;A whitelist generating module, configured to generate a preset whitelist according to the problem report;

白名单推送模块,用于将所述预设白名单推送至所述移动终端,所述预设白名单用于指示所述移动终端在判断出目标蓝牙设备的目标设备标识与预设黑名单相匹配的同时,还与所述预设白名单相匹配时,确定所述目标设备标识与所述预设黑名单匹配失效,并采用默认连接策略与所述目标蓝牙设备进行通信连接;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接。A whitelist push module, configured to push the preset whitelist to the mobile terminal, the preset whitelist is used to instruct the mobile terminal to determine that the target device identifier of the target Bluetooth device is consistent with the preset blacklist When matching with the preset whitelist, it is determined that the match between the target device identifier and the preset blacklist fails, and a default connection strategy is used to communicate with the target Bluetooth device; wherein, the The preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory. The connected Bluetooth device performs a communication connection, otherwise, adopts a default connection policy to perform a communication connection with the Bluetooth device to be connected.

第五方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例第一方面所述的蓝牙设备连接方法。In the fifth aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for connecting a Bluetooth device as described in the first aspect of the embodiment of the present application is implemented.

第六方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例第二方面所述的蓝牙设备连接方法。In a sixth aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for connecting a Bluetooth device as described in the second aspect of the embodiment of the present application is implemented.

第七方面,本申请实施例提供了一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例第一方面所述的蓝牙设备连接方法。In the seventh aspect, the embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the implementation of the present application is implemented. Example of the Bluetooth device connection method described in the first aspect.

第八方面,本申请实施例提供了一种服务器,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例第二方面所述的蓝牙设备连接方法。In an eighth aspect, the embodiment of the present application provides a server, including a memory, a processor, and a computer program stored on the memory and operable by the processor, and when the processor executes the computer program, the server according to the embodiment of the present application is implemented. The Bluetooth device connection method described in the second aspect.

本申请实施例中提供的蓝牙设备的连接方案,在移动终端需要与目标蓝牙设备进行通信连接时,获取目标蓝牙设备的目标设备标识,在判断出目标设备标识与移动终端出厂前存储的预设黑名单相匹配时,读取预设白名单,若目标设备标识与预设白名单相匹配,则确定目标设备标识与预设黑名单匹配失效,并采用默认连接策略与目标蓝牙设备进行通信连接。通过采用上述技术方案,可以解决因预设黑名单在移动终端出厂后无法被更改而引起的蓝牙设备连接兼容性问题,使移动终端与目标蓝牙设备之间能够更好的匹配连接,提升数据交互性能。The bluetooth device connection scheme provided in the embodiment of the present application, when the mobile terminal needs to communicate with the target bluetooth device, obtains the target device identification of the target bluetooth device, and determines the target device identification and the preset stored in the mobile terminal before leaving the factory When the blacklist matches, the preset whitelist is read. If the target device ID matches the preset whitelist, it is determined that the target device ID matches the preset blacklist, and the default connection strategy is used to communicate with the target Bluetooth device. . By adopting the above technical solution, the Bluetooth device connection compatibility problem caused by the preset blacklist cannot be changed after the mobile terminal leaves the factory can be solved, so that the mobile terminal and the target Bluetooth device can be better matched and connected, and data interaction can be improved. performance.

附图说明Description of drawings

图1为本申请实施例提供的一种蓝牙设备连接方法的流程示意图;FIG. 1 is a schematic flowchart of a Bluetooth device connection method provided in an embodiment of the present application;

图2为本申请实施例提供的又一种蓝牙设备连接方法的流程示意图;FIG. 2 is a schematic flowchart of another Bluetooth device connection method provided by the embodiment of the present application;

图3为本申请实施例提供的另一种蓝牙设备连接方法的流程示意图;FIG. 3 is a schematic flowchart of another Bluetooth device connection method provided by the embodiment of the present application;

图4为本申请实施例提供的再一种蓝牙设备连接方法的流程示意图;FIG. 4 is a schematic flowchart of another Bluetooth device connection method provided by the embodiment of the present application;

图5为本申请实施例提供的一种移动终端与服务器进行交互的信令图;FIG. 5 is a signaling diagram for interaction between a mobile terminal and a server provided in an embodiment of the present application;

图6为本申请实施例提供的一种蓝牙设备的连接装置的结构框图;FIG. 6 is a structural block diagram of a connection device for a Bluetooth device provided in an embodiment of the present application;

图7为本申请实施例提供的另一种蓝牙设备的连接装置的结构框图;FIG. 7 is a structural block diagram of another Bluetooth device connection device provided by the embodiment of the present application;

图8为本申请实施例提供的一种移动终端的结构示意图;FIG. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;

图9为本申请实施例提供的又一种移动终端的结构示意图;FIG. 9 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present application;

图10为本申请实施例提供的一种服务器的结构示意图。FIG. 10 is a schematic structural diagram of a server provided by an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

图1为本申请实施例提供的一种蓝牙设备连接方法的流程示意图,该方法可以由蓝牙设备的连接装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:FIG. 1 is a schematic flowchart of a Bluetooth device connection method provided by an embodiment of the present application. The method can be executed by a Bluetooth device connection device, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a mobile terminal. As shown in Figure 1, the method includes:

步骤101、获取目标蓝牙设备的目标设备标识。Step 101. Obtain a target device identifier of a target Bluetooth device.

示例性的,本申请实施例中的移动终端可包括手机、平板电脑、智能手表、智能音箱以及媒体播放器等具备蓝牙连接功能的移动设备。蓝牙设备可包括手机、平板电脑、智能手表、智能音箱、媒体播放器、蓝牙耳机以及车载蓝牙等具备蓝牙连接功能的设备。移动终端与蓝牙设备可以是同一类型的设备,也可以是不同类型的设备,本申请实施例不做限定。Exemplarily, the mobile terminal in the embodiment of the present application may include a mobile device with a Bluetooth connection function, such as a mobile phone, a tablet computer, a smart watch, a smart speaker, and a media player. Bluetooth devices can include devices with Bluetooth connectivity such as mobile phones, tablets, smart watches, smart speakers, media players, Bluetooth headsets, and car Bluetooth. The mobile terminal and the Bluetooth device may be of the same type or of different types, which is not limited in this embodiment of the present application.

本申请中,目标蓝牙设备可以是移动终端当前想要与其建立通信连接的蓝牙设备,例如是与移动终端配对成功的蓝牙设备,配对成功可理解为通过身份验证。一般的,在开启蓝牙功能后,移动终端可以查找到附近的可被发现的蓝牙设备,其中可包括曾经连接过的蓝牙设备和未连接过的蓝牙设备,未连接过的蓝牙设备需要进行配对,而曾经连接过的蓝牙设备一般是用户信任的蓝牙设备,可以认为配对成功。In this application, the target bluetooth device may be the bluetooth device that the mobile terminal currently wants to establish a communication connection with, for example, the bluetooth device that has successfully paired with the mobile terminal, and successful pairing can be understood as passing identity verification. Generally, after the Bluetooth function is turned on, the mobile terminal can find nearby discoverable Bluetooth devices, which may include previously connected Bluetooth devices and unconnected Bluetooth devices, and unconnected Bluetooth devices need to be paired. The bluetooth device that has been connected is generally a bluetooth device trusted by the user, and it can be considered that the pairing is successful.

示例性的,设备标识可以是蓝牙设备的蓝牙设备地址,目前由6个字节(byte)组成,即由48位(bit)组成,用于唯一标识一台蓝牙设备的身份,其中高字节的3byte(24位)由蓝牙联盟向蓝牙设备厂商分配,而低字节的3byte(24位)由蓝牙设备厂商自行设置。一般的,蓝牙设备厂商会针对同一系列或同一型号的产品向蓝牙联盟申请同样的3byte,具体由蓝牙设备厂商自行决定,本申请不做限定。而低字节的3byte可以由蓝牙设备厂商根据自身需要进行设置,具体可包括产品型号、产品批次、生产日期、产品配置参数(如处理器型号、内存容量以及机身颜色等等),还可以包括一些数字代码等,最终得到唯一的蓝牙设备地址,用于标识唯一的蓝牙设备。Exemplarily, the device identifier may be the Bluetooth device address of the Bluetooth device, which currently consists of 6 bytes (byte), that is, 48 bits (bit), and is used to uniquely identify the identity of a Bluetooth device, wherein the high byte The 3byte (24 bits) of the low byte is allocated to the Bluetooth device manufacturer by the Bluetooth Alliance, and the 3byte (24 bits) of the low byte is set by the Bluetooth device manufacturer itself. Generally, a Bluetooth device manufacturer will apply to the Bluetooth Alliance for the same 3byte for products of the same series or the same model, which is determined by the Bluetooth device manufacturer itself, and is not limited in this application. The low-byte 3byte can be set by the Bluetooth device manufacturer according to its own needs, specifically including product model, product batch, production date, product configuration parameters (such as processor model, memory capacity, body color, etc.), and Some digital codes can be included, and finally a unique Bluetooth device address is obtained, which is used to identify a unique Bluetooth device.

步骤102、在判断出所述目标设备标识与预设黑名单相匹配时,读取预设白名单。Step 102, when it is determined that the target device identifier matches the preset blacklist, read the preset whitelist.

其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接;所述预设白名单包括服务器向所述移动终端推送的蓝牙设备白名单。蓝牙设备黑名单中可包括蓝牙设备的设备标识的全部内容或部分内容。Wherein, the preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory. The Bluetooth device to be connected performs a communication connection, otherwise, adopts a default connection policy to perform a communication connection with the Bluetooth device to be connected; the preset white list includes a white list of Bluetooth devices pushed by the server to the mobile terminal. The bluetooth device blacklist may include all or part of the device identification of the bluetooth device.

目前,支持蓝牙功能的蓝牙设备的种类越来越多,不同的蓝牙设备可能采用不同类型的通信协议,而同一类型的通信协议可能随着技术发展又会有不同的版本,因此,不同蓝牙设备之间非常容易出现兼容性问题,兼容性问题可能导致数据传输发生错误,甚至连接失败。以支持蓝牙功能的智能手机和车载蓝牙为例,当两者存在兼容性问题时,可能导致智能手机和车载蓝牙之间无法建立通信连接,也可能因编解码算法不匹配导致传输的数据无法被正常解码,导致出现车载通话时没有声音或智能手机上的音乐无法通过车载蓝牙播放等问题。移动终端制造商一般在移动终端出厂前会对已知的设备兼容性问题进行汇总及分析,找出与自家移动终端所采用的蓝牙通信协议版本存在兼容性问题的蓝牙设备,并确定相应的解决方式,即备用连接策略,最终形成蓝牙设备黑名单。示例性的,当蓝牙设备黑名单中的蓝牙设备可采用相同的备用连接策略解决兼容性问题时,预设黑名单中可包括蓝牙设备黑名单;当蓝牙设备黑名单中的蓝牙设备需要各自采用不同的备用连接策略解决兼容性问题时,预设黑名单中除了包含蓝牙设备黑名单以外,还可包含蓝牙设备对应的备用连接策略。对于蓝牙设备黑名单以外蓝牙设备,可以采用默认连接策略进行连接。At present, there are more and more types of Bluetooth devices that support the Bluetooth function. Different Bluetooth devices may use different types of communication protocols, and the same type of communication protocol may have different versions as technology develops. Therefore, different Bluetooth devices Compatibility issues are very prone to occur between them, and compatibility issues may cause errors in data transmission or even connection failures. Take a Bluetooth-enabled smartphone and a car Bluetooth as an example. When there is a compatibility problem between the two, the communication connection between the smartphone and the car Bluetooth may not be established, or the transmitted data may not be transmitted due to a codec algorithm mismatch. Normal decoding, resulting in problems such as no sound during car calls or music on the smartphone cannot be played through car Bluetooth. Mobile terminal manufacturers generally summarize and analyze known device compatibility issues before the mobile terminal leaves the factory, find out the Bluetooth devices that have compatibility issues with the Bluetooth communication protocol version adopted by their own mobile terminals, and determine the corresponding solutions The way, that is, the backup connection strategy, finally forms the blacklist of Bluetooth devices. Exemplarily, when the bluetooth devices in the bluetooth device blacklist can use the same backup connection strategy to solve the compatibility problem, the preset blacklist can include the bluetooth device blacklist; when the bluetooth devices in the bluetooth device blacklist need to adopt When different backup connection strategies are used to solve the compatibility problem, the preset blacklist may also include backup connection strategies corresponding to Bluetooth devices in addition to the blacklist of Bluetooth devices. For Bluetooth devices outside of the Bluetooth device blacklist, you can use the default connection policy to connect.

示例性的,默认连接策略可以是采用移动终端中默认版本的通信协议与蓝牙设备进行通信连接;还可以是采用移动终端中默认的编解码方式(一般编解码效率较高,信息损失少)传输数据。备用连接策略可以是对默认版本的通信协议进行调整后,如将默认版本的通信协议封装成较低版本的通信协议或者屏蔽默认版本中的扩展功能,采用调整后的通信协议与蓝牙设备进行通信;还可以是采用备选的编解码方式(可能编解码效率相对较低,或有部分信息损失)传输数据。当然,默认连接策略和备用连接策略还可以包含其他内容,本领域技术人员可根据实际情况进行设置,上述内容仅作为示意性说明,本申请并不对此进行限定。Exemplarily, the default connection strategy may be to use the default version of the communication protocol in the mobile terminal to communicate with the Bluetooth device; data. The backup connection strategy can be after adjusting the default version of the communication protocol, such as encapsulating the default version of the communication protocol into a lower version of the communication protocol or shielding the extended functions in the default version, and using the adjusted communication protocol to communicate with the Bluetooth device ; It is also possible to use an alternative encoding and decoding method (which may have relatively low encoding and decoding efficiency, or have some information loss) to transmit data. Certainly, the default connection policy and the backup connection policy may also contain other content, which can be set by those skilled in the art according to the actual situation. The above content is only for illustrative illustration, and this application does not limit it.

相关技术中,预设黑名单在出厂前被配置于移动终端中,在出厂后不可更改。发明人发现,这样可能会出现一些问题,被列入预设黑名单中的蓝牙设备一般与移动终端是不同类型的设备或不同厂家的设备,蓝牙设备的更新或升级等情况并不被移动终端厂商所掌控或了解,在移动终端出厂后,预设黑名单中的蓝牙设备可能在经过一段时间后,进行了升级,蓝牙通信版本发生了变化,与移动终端之间的连接已经并不适用于备用连接策略,采用备用连接策略反而会出现兼容性问题,而采用默认连接策略可能会正常连接,没有兼容性问题。若移动终端仍然采用原有的基于预设黑名单机制的连接方式,那么可能会出现兼容性问题,给用户带来较差的使用体验。In related technologies, the preset blacklist is configured in the mobile terminal before leaving the factory, and cannot be changed after leaving the factory. The inventor found that some problems may arise in this way. The Bluetooth devices included in the preset blacklist are generally different types of devices or devices of different manufacturers from the mobile terminal, and the update or upgrade of the Bluetooth device is not affected by the mobile terminal. The manufacturer controls or understands that after the mobile terminal leaves the factory, the Bluetooth devices in the preset blacklist may be upgraded after a period of time, the Bluetooth communication version has changed, and the connection with the mobile terminal is no longer suitable for Alternate connection strategy, using the alternate connection strategy will cause compatibility problems, but using the default connection strategy may connect normally without compatibility problems. If the mobile terminal still adopts the original connection method based on the preset blacklist mechanism, compatibility problems may occur, which will bring poor user experience to users.

另外,发明人还发现,设备标识一般包括蓝牙设备的蓝牙设备地址,而预设黑名单中包含蓝牙设备地址的前24位,即高3个字节。蓝牙设备厂商可能会针对同一系列的产品向蓝牙联盟申请同样的3byte,同一系列下不同型号的产品可能配置不同,例如采用不同厂家的蓝牙芯片等,因此蓝牙协议版本可能不同。例如,汽车制造商为同一系列的汽车申请了同样的3byte作为蓝牙设备地址中的高3个字节,首先出售的型号X1采用的蓝牙芯片为A,对应的蓝牙通信协议版本为a,移动终端厂商在出厂前将汽车制造商申请的3byte列入预设黑名单中,采用备用连接策略与其进行连接,而在移动终端出厂后,汽车制造商又发售了同一系列的型号X2的汽车,采用的蓝牙芯片为B,对应的蓝牙通信协议版本为b,而该版本b并不适用于使用备用连接策略与移动终端建立连接,会出现兼容性问题,而移动终端中的预设黑名单无法更改,移动终端仍然会采用备用连接策略与型号X2的汽车建立连接,那么就会出现兼容性问题,同样也会给用户带来较差的使用体验。In addition, the inventor also found that the device identification generally includes the Bluetooth device address of the Bluetooth device, and the preset blacklist includes the first 24 bits of the Bluetooth device address, that is, the upper 3 bytes. Bluetooth device manufacturers may apply to the Bluetooth Alliance for the same 3byte for the same series of products. Different models of products in the same series may have different configurations, such as using Bluetooth chips from different manufacturers, so the Bluetooth protocol version may be different. For example, a car manufacturer applies for the same 3 bytes as the upper 3 bytes of the Bluetooth device address for the same series of cars. The Bluetooth chip used in the first sold model X1 is A, and the corresponding Bluetooth communication protocol version is a. Mobile terminals Before leaving the factory, the manufacturer puts the 3byte applied by the car manufacturer into the preset blacklist, and uses a backup connection strategy to connect to it. After the mobile terminal leaves the factory, the car manufacturer releases the same series of X2 cars, using the The bluetooth chip is B, and the corresponding bluetooth communication protocol version is b, and this version b is not suitable for establishing a connection with the mobile terminal using the standby connection strategy, and there will be compatibility problems, and the preset blacklist in the mobile terminal cannot be changed. The mobile terminal will still use the standby connection strategy to establish a connection with the model X2 car, then there will be compatibility issues, and it will also bring poor user experience to the user.

本申请为了克服预设黑名单在移动终端出厂后不可更改所带来的问题,增加了预设白名单,由移动终端对应的后台服务器向移动终端推送。预设白名单可以由移动终端厂商通过服务器进行维护,可通过用户反馈或市场调研等方式及时更新预设白名单,并推送给特定用户所持有的特定移动终端。在预设白名单中,列出预设黑名单中的采用备用连接策略会出现兼容性问题的蓝牙设备。当判断出目标设备标识与预设黑名单相匹配时,不会直接采用备用连接策略与目标蓝牙设备进行通信连接,而是先读取预设白名单,待进行后续的判断后再决定采用何种连接策略。In order to overcome the problem that the preset blacklist cannot be changed after the mobile terminal leaves the factory, this application adds a preset whitelist, which is pushed to the mobile terminal by the background server corresponding to the mobile terminal. The preset white list can be maintained by the mobile terminal manufacturer through the server, and the preset white list can be updated in time through user feedback or market research, and pushed to a specific mobile terminal held by a specific user. In the preset white list, list the Bluetooth devices in the preset black list that may have compatibility problems when adopting an alternate connection strategy. When it is determined that the target device ID matches the preset blacklist, it will not directly use the standby connection strategy to communicate with the target Bluetooth device, but read the preset whitelist first, and then decide which one to use after making subsequent judgments. connection strategy.

示例性的,若判断出目标设备标识与预设黑名单不匹配,可采用默认连接策略与目标蓝牙设备进行通信连接。Exemplarily, if it is determined that the target device identifier does not match the preset blacklist, a default connection strategy may be used to communicate with the target Bluetooth device.

步骤103、若所述目标设备标识与所述预设白名单相匹配,则确定所述目标设备标识与所述预设黑名单匹配失效,并采用所述默认连接策略与所述目标蓝牙设备进行通信连接。Step 103: If the target device ID matches the preset whitelist, then determine that the target device ID does not match the preset blacklist, and use the default connection strategy to communicate with the target Bluetooth device communication connection.

本申请实施例中,若目标设备标识与预设白名单匹配,则认为之前与预设黑名单的匹配失效,不会采用备用连接策略与目标蓝牙设备进行通信连接,而是采用默认连接策略与目标蓝牙设备进行通信连接,以避免采用备用连接策略所造成的兼容性问题。In this embodiment of the application, if the target device identifier matches the preset whitelist, it is considered that the previous match with the preset blacklist is invalid, and the standby connection strategy will not be used to communicate with the target Bluetooth device, but the default connection strategy will be used to communicate with the target Bluetooth device. The target Bluetooth device communicates and connects to avoid compatibility problems caused by the use of alternate connection strategies.

可选的,预设黑名单中包含蓝牙设备地址的前24位,所述预设白名单中包含蓝牙设备地址的至少前24位。例如,预设白名单中可以包含蓝牙设备地址的前24为,也可以包含前25位或更多位。这样设置的好处在于,可以更有针对性地设置预设白名单。以上面的同一系列的汽车为例,假设已知该汽车制造商采用蓝牙设备地址的第25位来表示汽车型号,即X1和X2,那么可将X2对应的前25位保存至预设白名单中,这样X1对应的设备标识就不会与预设白名单匹配,与预设黑名单的匹配仍然有效,将采用备用连接策略进行通信连接,且采用备用连接策略时兼容性更好。Optionally, the preset blacklist includes the first 24 digits of the Bluetooth device address, and the preset whitelist includes at least the first 24 digits of the Bluetooth device address. For example, the preset white list may include the first 24 digits of the Bluetooth device address, and may also include the first 25 digits or more. The advantage of this setting is that the preset whitelist can be set in a more targeted manner. Taking the same series of cars above as an example, assuming that the car manufacturer uses the 25th digit of the Bluetooth device address to represent the car model, that is, X1 and X2, then the first 25 digits corresponding to X2 can be saved to the preset white list In this way, the device ID corresponding to X1 will not match the preset whitelist, and the match with the preset blacklist is still valid, and the backup connection strategy will be used for communication connection, and the compatibility is better when the backup connection strategy is used.

本申请实施例中提供的蓝牙设备的连接方法,在移动终端需要与目标蓝牙设备进行通信连接时,获取目标蓝牙设备的目标设备标识,在判断出目标设备标识与移动终端出厂前存储的预设黑名单相匹配时,读取预设白名单,若目标设备标识与预设白名单相匹配,则确定目标设备标识与预设黑名单匹配失效,并采用默认连接策略与目标蓝牙设备进行通信连接。通过采用上述技术方案,可以解决因预设黑名单在移动终端出厂后无法被更改而引起的蓝牙设备连接兼容性问题,使移动终端与目标蓝牙设备之间能够更好的匹配连接,提升数据交互性能。The Bluetooth device connection method provided in the embodiment of the present application, when the mobile terminal needs to communicate with the target Bluetooth device, obtains the target device ID of the target Bluetooth device, and determines the target device ID and the preset value stored in the mobile terminal before leaving the factory. When the blacklist matches, the preset whitelist is read. If the target device ID matches the preset whitelist, it is determined that the target device ID matches the preset blacklist, and the default connection strategy is used to communicate with the target Bluetooth device. . By adopting the above technical solution, the Bluetooth device connection compatibility problem caused by the preset blacklist cannot be changed after the mobile terminal leaves the factory can be solved, so that the mobile terminal and the target Bluetooth device can be better matched and connected, and data interaction can be improved. performance.

在一些实施例中,在所述获取目标蓝牙设备的目标设备标识之前,还包括:接收所述服务器推送的预设白名单。这样设置的好处在于,能够在与目标蓝牙设备建立通信连接之前,获取到最新的预设白名单。In some embodiments, before the acquiring the target device identifier of the target Bluetooth device, the method further includes: receiving a preset whitelist pushed by the server. The advantage of this setting is that the latest preset whitelist can be obtained before establishing a communication connection with the target Bluetooth device.

进一步的,在所述接收所述服务器推送的预设白名单之前,还包括:接收用户输入的问题反馈信息;根据所述问题反馈信息生成问题报告并发送至所述服务器,所述问题报告中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识信息,用于指示所述服务器根据所述问题报告生成预设白名单,并将所述预设白名单推送至所述移动终端。对于某些兼容性问题,可能移动终端无法自动检测到,或者移动终端中未设置兼容性检测功能,又或者兼容性检测功能失效,又或者存在未知的兼容性问题等等,针对这些情况,可以由用户根据使用情况反馈兼容性问题。例如,当用户使用移动终端与车载蓝牙建立连接后,将移动终端中的歌曲通过蓝牙发送至车辆,但在车辆播放过程中,歌曲声音发生失真或没有声音等异常情况,此时,用户可在移动终端中进入问题反馈界面,并在该界面中输入问题反馈信息,以便移动终端根据问题反馈信息生成问题报告上传至服务器。示例性的,问题反馈信息可包括用户采用自然语言描述的兼容性问题,如声音失真或没有声音等。移动终端在接收到问题反馈信息后,获取当前与移动终端之间存在连接问题的蓝牙设备的设备标识信息,根据该设备标识信息和问题反馈信息生成问题报告,发送给服务器。这样,服务器可根据问题报告自动生成预设白名单,或由工作人员分析问题报告后控制服务器生成预设白名单,最后由服务器将预设白名单推送至移动终端。移动终端在接收到预设白名单后,将会检测到当前存在于预设黑名单中的蓝牙设备还存在于预设白名单中,于是将改为采用默认连接策略与蓝牙设备进行通信连接,能够快速解决由预设黑名单机制所造成的兼容性问题,实时有效地解除用户的困扰。Further, before receiving the preset whitelist pushed by the server, it also includes: receiving feedback information input by the user; generating a question report according to the question feedback information and sending it to the server, and the question report contains Containing device identification information of Bluetooth devices having connection problems with the mobile terminal, used to instruct the server to generate a preset whitelist according to the problem report, and push the preset whitelist to the mobile terminal . For some compatibility problems, the mobile terminal may not be able to detect automatically, or the compatibility detection function is not set in the mobile terminal, or the compatibility detection function fails, or there are unknown compatibility problems, etc. For these cases, you can Compatibility issues are reported by users based on their usage. For example, when the user uses the mobile terminal to establish a connection with the car Bluetooth, and sends the song in the mobile terminal to the vehicle via Bluetooth, but during the playback process of the vehicle, the sound of the song is distorted or there is no sound, etc. At this time, the user can Enter the problem feedback interface in the mobile terminal, and input the problem feedback information in the interface, so that the mobile terminal generates a problem report according to the problem feedback information and uploads it to the server. Exemplarily, the problem feedback information may include a compatibility problem described by the user in natural language, such as distorted or no sound. After receiving the problem feedback information, the mobile terminal obtains the device identification information of the bluetooth device that currently has a connection problem with the mobile terminal, generates a problem report according to the device identification information and the problem feedback information, and sends it to the server. In this way, the server can automatically generate a preset white list according to the problem report, or the staff can control the server to generate a preset white list after analyzing the problem report, and finally the server pushes the preset white list to the mobile terminal. After the mobile terminal receives the preset whitelist, it will detect that the Bluetooth devices that currently exist in the preset blacklist still exist in the preset whitelist, so it will use the default connection strategy to communicate with the Bluetooth device instead. It can quickly solve the compatibility problems caused by the preset blacklist mechanism, and effectively relieve users' troubles in real time.

图2为本申请实施例提供的又一种蓝牙设备连接方法的流程示意图,该方法包括如下步骤:Fig. 2 is a schematic flow chart of another Bluetooth device connection method provided by the embodiment of the present application, the method includes the following steps:

步骤201、接收用户输入的问题反馈信息。Step 201, receiving question feedback information input by a user.

步骤202、根据问题反馈信息生成问题报告并发送至服务器。Step 202, generating a problem report according to the problem feedback information and sending it to the server.

所述问题报告中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识信息,用于指示所述服务器根据所述问题报告生成预设白名单,并将所述预设白名单推送至所述移动终端。The problem report includes device identification information of the Bluetooth device that has a connection problem with the mobile terminal, and is used to instruct the server to generate a preset whitelist according to the problem report, and push the preset whitelist to the mobile terminal.

步骤203、接收服务器推送的预设白名单。Step 203, receiving the preset white list pushed by the server.

示例性的,可以文件的形式保存预设白名单。Exemplarily, the preset white list can be saved in the form of a file.

步骤204、在移动终端与目标蓝牙设备发起互连时,获取目标蓝牙设备的目标设备标识。Step 204, when the mobile terminal initiates interconnection with the target Bluetooth device, acquire the target device identifier of the target Bluetooth device.

步骤205、判断目标设备标识是否与预设黑名单相匹配,若是,则执行步骤206;否则,执行步骤208。Step 205 , judging whether the target device identifier matches the preset blacklist, if yes, execute step 206 ; otherwise, execute step 208 .

步骤206、读取预设白名单,判断目标设备标识是否与预设白名单相匹配,若是,则执行步骤207;否则,执行步骤Step 206, read the preset whitelist, and judge whether the target device identifier matches the preset whitelist, if so, execute step 207; otherwise, execute step

步骤207、确定目标设备标识与预设黑名单匹配失效,并采用默认连接策略与目标蓝牙设备进行通信连接。Step 207 , determining that the match between the target device identifier and the preset blacklist fails, and adopting a default connection policy to communicate with the target Bluetooth device.

步骤208、采用默认连接策略与目标蓝牙设备进行通信连接。Step 208, adopting a default connection policy to communicate with the target Bluetooth device.

步骤209、采用备用连接策略与所述待连接的蓝牙设备进行通信连接。Step 209 , using a backup connection strategy to communicate with the Bluetooth device to be connected.

本申请实施例提供的蓝牙设备连接方法,接收用户输入的问题反馈信息,并生成问题报告上传至服务器,由服务器根据问题报告生成预设白名单,在接收到服务器推送的预设白名单后,在移动终端与目标蓝牙设备发起互连时,获取目标蓝牙设备的目标设备标识,综合考虑目标设备标识与预设黑名单以及预设白名单的匹配情况,最终选择最佳的连接策略与目标蓝牙设备进行通信连接,减少兼容性问题的发生。The Bluetooth device connection method provided by the embodiment of the present application receives the problem feedback information input by the user, generates a problem report and uploads it to the server, and the server generates a preset whitelist according to the problem report. After receiving the preset whitelist pushed by the server, When the mobile terminal initiates interconnection with the target Bluetooth device, obtain the target device ID of the target Bluetooth device, comprehensively consider the match between the target device ID and the preset blacklist and preset whitelist, and finally select the best connection strategy and target Bluetooth Devices are connected by communication to reduce the occurrence of compatibility problems.

图3为本申请实施例提供的另一种蓝牙设备连接方法的流程示意图,该方法可以由蓝牙设备的连接装置执行,其中该装置可由软件和/或硬件实现,一般可集成在服务器中。如图3所示,该方法包括:Fig. 3 is a schematic flowchart of another Bluetooth device connection method provided by the embodiment of the present application. The method can be executed by a Bluetooth device connection device, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a server. As shown in Figure 3, the method includes:

步骤301、接收移动终端发送的问题报告。Step 301, receiving a problem report sent by a mobile terminal.

其中,所述问题报告包括所述移动终端根据用户输入的问题反馈信息生成的报告,所述问题报告中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识。Wherein, the problem report includes a report generated by the mobile terminal according to the problem feedback information input by the user, and the problem report includes the device identification of the Bluetooth device having a connection problem with the mobile terminal.

步骤302、根据所述问题报告生成预设白名单。Step 302, generating a preset whitelist according to the problem report.

步骤303、将所述预设白名单推送至所述移动终端。Step 303. Push the preset whitelist to the mobile terminal.

其中,所述预设白名单用于指示所述移动终端在判断出目标蓝牙设备的目标设备标识与预设黑名单相匹配的同时,还与所述预设白名单相匹配时,确定所述目标设备标识与所述预设黑名单匹配失效,并采用默认连接策略与所述目标蓝牙设备进行通信连接;所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接。Wherein, the preset whitelist is used to instruct the mobile terminal to determine the The target device identification fails to match the preset blacklist, and uses the default connection strategy to communicate with the target Bluetooth device; the preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory , when the device identification of the Bluetooth device to be connected matches the preset blacklist, use the standby connection strategy to communicate with the Bluetooth device to be connected, otherwise, use the default connection strategy to communicate with the Bluetooth device to be connected device for communication.

本申请实施例提供的蓝牙设备的连接方法,服务器接收移动终端根据用户输入的关于蓝牙设备连接兼容性问题的问题反馈信息所生成的问题报告,根据问题报告中包含的与移动终端之间存在连接问题的蓝牙设备的设备标识生成预设白名单,再将预设白名单推送至移动终端,用于指导移动终端在需要与目标蓝牙设备进行互连时,综合考虑目标设备标识与预设黑名单以及预设白名单的匹配情况,最终选择最佳的连接策略与目标蓝牙设备进行通信连接,减少兼容性问题的发生。In the method for connecting a Bluetooth device provided in the embodiment of the present application, the server receives the problem report generated by the mobile terminal according to the problem feedback information about the connection compatibility problem of the Bluetooth device input by the user, and according to the connection between the mobile terminal and the mobile terminal contained in the problem report The device ID of the problematic Bluetooth device generates a preset whitelist, and then pushes the preset whitelist to the mobile terminal, which is used to guide the mobile terminal to comprehensively consider the target device ID and the preset blacklist when it needs to interconnect with the target Bluetooth device And the matching situation of the preset white list, and finally select the best connection strategy to communicate with the target Bluetooth device to reduce the occurrence of compatibility problems.

在一些实施例中,在将所述预设白名单推送至所述移动终端之后,还包括:将所述预设白名单推送至与所述移动终端同一型号或同一批次的其他移动终端。这样设置的好处在于,可以及时更新与当前移动终端同一型号或同一批次的其他移动终端中的预设白名单。在当前用户发现当前蓝牙设备与自己的移动终端之间存在连接兼容性问题时,与当前用户使用同一型号或同一批次移动终端的其他用户可能还未发现该兼容性问题,因为其他用户可能并未购买同型号的蓝牙设备,或者已经购买但未进行过蓝牙连接,因此本申请实施例可在一个用户发现兼容性问题后,及时将预设白名单更新至相关用户,使相关用户的移动终端与同型号蓝牙设备建立蓝牙连接时,能够根据预设白名单忽略预设黑名单规则,使用默认连接策略与蓝牙设备进行连接,避免兼容性问题的发生。In some embodiments, after pushing the preset whitelist to the mobile terminal, it further includes: pushing the preset whitelist to other mobile terminals of the same model or batch as the mobile terminal. The advantage of this setting is that the preset whitelists in other mobile terminals of the same model or batch as the current mobile terminal can be updated in time. When the current user finds that there is a connection compatibility problem between the current Bluetooth device and his own mobile terminal, other users who use the same model or the same batch of mobile terminals as the current user may not have discovered the compatibility problem, because other users may not. The Bluetooth device of the same model has not been purchased, or has been purchased but has not been connected to Bluetooth, so this embodiment of the application can update the preset white list to the relevant user in time after a user finds a compatibility problem, so that the mobile terminal of the relevant user When establishing a Bluetooth connection with a Bluetooth device of the same model, the preset blacklist rules can be ignored according to the preset whitelist, and the default connection strategy can be used to connect with the Bluetooth device to avoid compatibility problems.

图4为本申请实施例提供的再一种蓝牙设备连接方法的流程示意图,该方法包括:Fig. 4 is a schematic flow chart of another Bluetooth device connection method provided by the embodiment of the present application, the method comprising:

步骤401、移动终端接收用户输入的问题反馈信息,根据问题反馈信息生成问题报告。Step 401, the mobile terminal receives question feedback information input by the user, and generates a question report according to the question feedback information.

步骤402、移动终端将问题报告发送至服务器。Step 402, the mobile terminal sends the problem report to the server.

步骤403、服务器根据问题报告生成预设白名单。Step 403, the server generates a preset white list according to the problem report.

步骤404、服务器将预设白名单推送至移动终端,以及与移动终端同一型号或同一批次的其他移动终端。Step 404, the server pushes the preset white list to the mobile terminal and other mobile terminals of the same model or batch as the mobile terminal.

步骤405、移动终端在与目标蓝牙设备发起互连时,获取目标蓝牙设备的目标设备标识,在判断出目标蓝牙设备的目标设备标识与预设黑名单相匹配的同时,还与预设白名单相匹配时,确定目标设备标识与所述预设黑名单匹配失效,并采用默认连接策略与所述目标蓝牙设备进行通信连接。Step 405, when the mobile terminal initiates interconnection with the target Bluetooth device, obtain the target device identifier of the target Bluetooth device, and determine that the target device identifier of the target Bluetooth device matches the preset blacklist, and also matches the preset whitelist When matching, it is determined that the match between the target device identifier and the preset blacklist fails, and a default connection strategy is used to communicate with the target Bluetooth device.

图5为本申请实施例提供的一种移动终端与服务器进行交互的信令图,可结合该信令图对上述实施例进行理解。FIG. 5 is a signaling diagram for interaction between a mobile terminal and a server provided by an embodiment of the present application, and the foregoing embodiment may be understood in conjunction with the signaling diagram.

本申请实施例提供的蓝牙设备连接方法,由移动终端接收用户输入的问题反馈信息,并生成问题报告上传至服务器,由服务器根据问题报告生成预设白名单推送给移动终端以及与该移动终端同一型号或同一批次的其他移动终端,移动终端在接收到服务器推送的预设白名单后,在与目标蓝牙设备发起互连时,获取目标蓝牙设备的目标设备标识,综合考虑目标设备标识与预设黑名单以及预设白名单的匹配情况,最终选择最佳的连接策略与目标蓝牙设备进行通信连接,减少兼容性问题的发生。In the Bluetooth device connection method provided by the embodiment of the present application, the mobile terminal receives the problem feedback information input by the user, generates a problem report and uploads it to the server, and the server generates a preset white list based on the problem report and pushes it to the mobile terminal and the same model or other mobile terminals of the same batch. After receiving the preset whitelist pushed by the server, the mobile terminal obtains the target device ID of the target Bluetooth device when it initiates interconnection with the target Bluetooth device. Considering the target device ID and preset Set the blacklist and the matching situation of the preset whitelist, and finally select the best connection strategy to communicate with the target Bluetooth device to reduce the occurrence of compatibility problems.

图6为本申请实施例提供的一种蓝牙设备的连接装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行蓝牙设备的连接方法来与蓝牙设备进行通信连接。如图6所示,该装置包括:Fig. 6 is a structural block diagram of a device for connecting a Bluetooth device provided by an embodiment of the present application. The device can be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and can communicate with a Bluetooth device by executing a connection method for a Bluetooth device communication connection. As shown in Figure 6, the device includes:

设备标识获取模块601,用于获取目标蓝牙设备的目标设备标识;The device identification obtaining module 601 is used to obtain the target device identification of the target bluetooth device;

白名单读取模块602,用于在判断出所述目标设备标识与预设黑名单相匹配时,读取预设白名单;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接;所述预设白名单包括服务器向所述移动终端推送的蓝牙设备白名单;The whitelist reading module 602 is configured to read the preset whitelist when it is determined that the target device identifier matches the preset blacklist; wherein, the preset blacklist includes information stored in the mobile terminal after leaving the factory An unchangeable bluetooth device blacklist, when the device identification of the bluetooth device to be connected matches the preset blacklist, use the backup connection strategy to communicate with the bluetooth device to be connected, otherwise, use the default connection strategy Communicating with the Bluetooth device to be connected; the preset white list includes a white list of Bluetooth devices pushed by the server to the mobile terminal;

连接控制模块603,用于在所述目标设备标识与所述预设白名单相匹配时,确定所述目标设备标识与所述预设黑名单匹配失效,并采用所述默认连接策略与所述目标蓝牙设备进行通信连接。A connection control module 603, configured to determine that the match between the target device identifier and the preset blacklist fails when the target device identifier matches the preset whitelist, and use the default connection policy to communicate with the preset blacklist. The target Bluetooth device is connected for communication.

本申请实施例中提供的蓝牙设备的连接装置,在移动终端需要与目标蓝牙设备进行通信连接时,获取目标蓝牙设备的目标设备标识,在判断出目标设备标识与移动终端出厂前存储的预设黑名单相匹配时,读取预设白名单,若目标设备标识与预设白名单相匹配,则确定目标设备标识与预设黑名单匹配失效,并采用默认连接策略与目标蓝牙设备进行通信连接。通过采用上述技术方案,可以解决因预设黑名单在移动终端出厂后无法被更改而引起的蓝牙设备连接兼容性问题,使移动终端与目标蓝牙设备之间能够更好的匹配连接,提升数据交互性能。The Bluetooth device connection device provided in the embodiment of the present application obtains the target device identifier of the target Bluetooth device when the mobile terminal needs to communicate with the target Bluetooth device, and determines the target device identifier and the preset value stored in the mobile terminal before leaving the factory. When the blacklist matches, the preset whitelist is read. If the target device ID matches the preset whitelist, it is determined that the target device ID matches the preset blacklist, and the default connection strategy is used to communicate with the target Bluetooth device. . By adopting the above technical solution, the Bluetooth device connection compatibility problem caused by the preset blacklist cannot be changed after the mobile terminal leaves the factory can be solved, so that the mobile terminal and the target Bluetooth device can be better matched and connected, and data interaction can be improved. performance.

可选的,该装置还包括白名单接收模块,用于在所述获取目标蓝牙设备的目标设备标识之前,接收所述服务器推送的预设白名单。Optionally, the device further includes a whitelist receiving module, configured to receive a preset whitelist pushed by the server before acquiring the target device identifier of the target Bluetooth device.

可选的,该装置还包括问题反馈接收模块,用于在所述接收所述服务器推送的预设白名单之前,接收用户输入的问题反馈信息;Optionally, the device further includes a question feedback receiving module, configured to receive question feedback information input by the user before receiving the preset whitelist pushed by the server;

问题报告发送模块,用于根据所述问题反馈信息生成问题报告并发送至所述服务器,所述问题报告中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识信息,用于指示所述服务器根据所述问题报告生成预设白名单,并将所述预设白名单推送至所述移动终端。A problem report sending module, configured to generate a problem report according to the problem feedback information and send it to the server, the problem report includes device identification information of the Bluetooth device that has a connection problem with the mobile terminal, and is used to indicate The server generates a preset whitelist according to the problem report, and pushes the preset whitelist to the mobile terminal.

可选的,设备标识包括蓝牙设备的蓝牙设备地址,所述预设黑名单中包含蓝牙设备地址的前24位,所述预设白名单中包含蓝牙设备地址的至少前24位。Optionally, the device identifier includes a Bluetooth device address of the Bluetooth device, the preset blacklist includes the first 24 digits of the Bluetooth device address, and the preset whitelist includes at least the first 24 digits of the Bluetooth device address.

图7为本申请实施例提供的另一种蓝牙设备的连接装置的结构框图,该装置可由软件和/或硬件实现,一般集成在服务器中,可通过执行蓝牙设备的连接方法来指导移动终端与蓝牙设备进行通信连接。如图7所示,该装置包括:Fig. 7 is a structural block diagram of another Bluetooth device connection device provided by the embodiment of the present application. The device can be implemented by software and/or hardware, and is generally integrated in a server. It can guide the mobile terminal to communicate with the Bluetooth device by executing the connection method of the Bluetooth device. Bluetooth device for communication connection. As shown in Figure 7, the device includes:

问题报告接收模块701,用于接收移动终端发送的问题报告,所述问题报告包括所述移动终端根据用户输入的问题反馈信息生成的报告,所述问题反馈信息中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识;The problem report receiving module 701 is configured to receive the problem report sent by the mobile terminal, the problem report includes the report generated by the mobile terminal according to the problem feedback information input by the user, and the problem feedback information includes the communication between the mobile terminal and the mobile terminal. the device identification of the Bluetooth device that is having connection problems;

白名单生成模块702,用于根据所述问题报告生成预设白名单;A whitelist generating module 702, configured to generate a preset whitelist according to the problem report;

白名单推送模块703,用于将所述预设白名单推送至所述移动终端,所述预设白名单用于指示所述移动终端在判断出目标蓝牙设备的目标设备标识与预设黑名单相匹配的同时,还与所述预设白名单相匹配时,确定所述目标设备标识与所述预设黑名单匹配失效,并采用默认连接策略与所述目标蓝牙设备进行通信连接;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接。The whitelist push module 703 is configured to push the preset whitelist to the mobile terminal, the preset whitelist is used to instruct the mobile terminal to determine the target device identifier and the preset blacklist of the target Bluetooth device When matching and also matching with the preset whitelist, it is determined that the match between the target device identifier and the preset blacklist fails, and a default connection strategy is used to communicate with the target Bluetooth device; wherein, The preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after delivery. The Bluetooth device to be connected performs a communication connection, otherwise, adopts a default connection strategy to perform a communication connection with the Bluetooth device to be connected.

本申请实施例中提供的蓝牙设备的连接装置,服务器接收移动终端根据用户输入的关于蓝牙设备连接兼容性问题的问题反馈信息所生成的问题报告,根据问题报告中包含的与移动终端之间存在连接问题的蓝牙设备的设备标识生成预设白名单,再将预设白名单推送至移动终端,用于指导移动终端在需要与目标蓝牙设备进行互连时,综合考虑目标设备标识与预设黑名单以及预设白名单的匹配情况,最终选择最佳的连接策略与目标蓝牙设备进行通信连接,减少兼容性问题的发生。In the connection device of the Bluetooth device provided in the embodiment of the present application, the server receives the problem report generated by the mobile terminal according to the problem feedback information about the connection compatibility problem of the Bluetooth device input by the user, and according to the information contained in the problem report and the mobile terminal. The device identification of the Bluetooth device with connection problems generates a preset white list, and then pushes the preset white list to the mobile terminal, which is used to guide the mobile terminal to comprehensively consider the target device ID and the preset black list when it needs to interconnect with the target Bluetooth device. list and the matching status of the preset white list, and finally select the best connection strategy to communicate with the target Bluetooth device to reduce the occurrence of compatibility problems.

可选的,白名单推送模块还可用于:在将所述预设白名单推送至所述移动终端之后,将所述预设白名单推送至与所述移动终端同一型号或同一批次的其他移动终端。Optionally, the whitelist pushing module can also be used for: after pushing the preset whitelist to the mobile terminal, push the preset whitelist to other mobile terminals of the same model or the same batch as the mobile terminal mobile terminal.

本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行蓝牙设备连接方法,该方法包括:The embodiment of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a Bluetooth device connection method when executed by a computer processor, and the method includes:

获取目标蓝牙设备的目标设备标识;Obtain the target device identification of the target Bluetooth device;

在判断出所述目标设备标识与预设黑名单相匹配时,读取预设白名单;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接;所述预设白名单包括服务器向所述移动终端推送的蓝牙设备白名单;When it is determined that the target device identifier matches the preset blacklist, read the preset whitelist; wherein, the preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory, when When the device identification of the Bluetooth device to be connected matches the preset blacklist, use a standby connection strategy to communicate with the Bluetooth device to be connected; otherwise, use a default connection strategy to communicate with the Bluetooth device to be connected A communication connection; the preset whitelist includes a bluetooth device whitelist pushed by the server to the mobile terminal;

若所述目标设备标识与所述预设白名单相匹配,则确定所述目标设备标识与所述预设黑名单匹配失效,并采用所述默认连接策略与所述目标蓝牙设备进行通信连接。If the target device identifier matches the preset whitelist, it is determined that the match between the target device identifier and the preset blacklist fails, and the default connection policy is used to communicate with the target Bluetooth device.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDRRAM、SRAM、EDORAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape drives; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; Volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的蓝牙设备的连接操作,还可以执行本申请任意实施例所提供的蓝牙设备连接方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the connection operation of the Bluetooth device as described above, and can also execute the Bluetooth device provided in any embodiment of the present application. Related operations in the connection method.

本申请实施例还提供另一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行页面图片显示方法,该方法包括:The embodiment of the present application also provides another storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a method for displaying a page picture when executed by a computer processor, and the method includes:

接收移动终端发送的问题报告,所述问题报告包括所述移动终端根据用户输入的问题反馈信息生成的报告,所述问题报告中包含与所述移动终端之间存在连接问题的蓝牙设备的设备标识;Receive a problem report sent by the mobile terminal, the problem report includes a report generated by the mobile terminal according to the problem feedback information input by the user, and the problem report includes the device identification of the Bluetooth device that has a connection problem with the mobile terminal ;

根据所述问题报告生成预设白名单,并将所述预设白名单推送至所述移动终端,所述预设白名单用于指示所述移动终端在判断出目标蓝牙设备的目标设备标识与预设黑名单相匹配的同时,还与所述预设白名单相匹配时,确定所述目标设备标识与所述预设黑名单匹配失效,并采用默认连接策略与所述目标蓝牙设备进行通信连接;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接。Generate a preset whitelist according to the problem report, and push the preset whitelist to the mobile terminal, the preset whitelist is used to instruct the mobile terminal to determine the target device identifier of the target Bluetooth device and When matching the preset blacklist and also matching the preset whitelist, it is determined that the match between the target device identifier and the preset blacklist fails, and a default connection strategy is used to communicate with the target Bluetooth device connection; wherein, the preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory, and when the device identification of the bluetooth device to be connected matches the preset blacklist, a standby connection is used strategy to communicate with the Bluetooth device to be connected; otherwise, adopt a default connection strategy to communicate with the Bluetooth device to be connected.

本申请实施例的计算机存储介质的具体细节与上面所述的计算机存储介质相似,此处不再赘述。The specific details of the computer storage medium in the embodiment of the present application are similar to the computer storage medium described above, and will not be repeated here.

本申请实施例提供了一种移动终端,该移动终端中可集成本申请实施例提供的蓝牙设备的连接装置。图8为本申请实施例提供的一种移动终端的结构示意图。移动终端800可以包括:存储器801,处理器802及存储在存储器801上并可在处理器802运行的计算机程序,所述处理器802执行所述计算机程序时实现如本申请实施例所述的蓝牙设备连接方法。An embodiment of the present application provides a mobile terminal, in which the device for connecting a Bluetooth device provided in the embodiment of the present application can be integrated. FIG. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application. The mobile terminal 800 may include: a memory 801, a processor 802, and a computer program stored on the memory 801 and capable of running on the processor 802. When the processor 802 executes the computer program, it realizes the bluetooth as described in the embodiment of the present application. Device connection method.

本申请实施例提供的移动终端,可以解决因预设黑名单在移动终端出厂后无法被更改而引起的蓝牙设备连接兼容性问题,使移动终端与目标蓝牙设备之间能够更好的匹配连接,提升数据交互性能。The mobile terminal provided by the embodiment of the present application can solve the Bluetooth device connection compatibility problem caused by the preset blacklist that cannot be changed after the mobile terminal leaves the factory, so that the mobile terminal and the target Bluetooth device can be better matched and connected. Improve data interaction performance.

图9为本申请实施例提供的另一种移动终端的结构示意图,该移动终端可以包括:壳体(图中未示出)、存储器901、中央处理器(central processing unit,CPU)902(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU902和所述存储器901设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器901,用于存储可执行程序代码;所述CPU902通过读取所述存储器901中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:FIG. 9 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present application. The mobile terminal may include: a casing (not shown in the figure), a memory 901, and a central processing unit (central processing unit, CPU) 902 (also Said processor, hereinafter referred to as CPU), circuit board (not shown in the figure) and power supply circuit (not shown in the figure). The circuit board is placed inside the space surrounded by the housing; the CPU902 and the memory 901 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the mobile terminal The memory 901 is used to store executable program codes; the CPU902 executes a computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 901, to achieve the following steps:

获取目标蓝牙设备的目标设备标识;Obtain the target device identification of the target Bluetooth device;

在判断出所述目标设备标识与预设黑名单相匹配时,读取预设白名单;其中,所述预设黑名单包括在移动终端中存储的出厂后不可更改的蓝牙设备黑名单,当待连接的蓝牙设备的设备标识与所述预设黑名单相匹配时,采用备用连接策略与所述待连接的蓝牙设备进行通信连接,否则,采用默认连接策略与所述待连接的蓝牙设备进行通信连接;所述预设白名单包括服务器向所述移动终端推送的蓝牙设备白名单;When it is determined that the target device identifier matches the preset blacklist, read the preset whitelist; wherein, the preset blacklist includes a bluetooth device blacklist stored in the mobile terminal that cannot be changed after leaving the factory, when When the device identification of the Bluetooth device to be connected matches the preset blacklist, use a standby connection strategy to communicate with the Bluetooth device to be connected; otherwise, use a default connection strategy to communicate with the Bluetooth device to be connected A communication connection; the preset whitelist includes a bluetooth device whitelist pushed by the server to the mobile terminal;

若所述目标设备标识与所述预设白名单相匹配,则确定所述目标设备标识与所述预设黑名单匹配失效,并采用所述默认连接策略与所述目标蓝牙设备进行通信连接。If the target device identifier matches the preset whitelist, it is determined that the match between the target device identifier and the preset blacklist fails, and the default connection policy is used to communicate with the target Bluetooth device.

所述移动终端还包括:外设接口903、RF(Radio Frequency,射频)电路905、音频电路906、扬声器911、电源管理芯片908、输入/输出(I/O)子系统909、其他输入/控制设备910、触摸屏912、其他输入/控制设备910以及外部端口904,这些部件通过一个或多个通信总线或信号线907来通信。The mobile terminal also includes: peripheral interface 903, RF (Radio Frequency, radio frequency) circuit 905, audio circuit 906, speaker 911, power management chip 908, input/output (I/O) subsystem 909, other input/control device 910 , touch screen 912 , other input/control devices 910 , and external ports 904 , these components communicate via one or more communication buses or signal lines 907 .

应该理解的是,图示移动终端900仅仅是移动终端的一个范例,并且移动终端900可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 900 is only an example of a mobile terminal, and the mobile terminal 900 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于蓝牙设备连接的移动终端进行详细的描述,该移动终端以手机为例。The mobile terminal used for Bluetooth device connection provided in this embodiment will be described in detail below, and a mobile phone is used as an example for the mobile terminal.

存储器901,所述存储器901可以被CPU902、外设接口903等访问,所述存储器901可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 901, the memory 901 can be accessed by the CPU 902, the peripheral interface 903, etc., the memory 901 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口903,所述外设接口903可以将设备的输入和输出外设连接到CPU902和存储器901。Peripheral interface 903 , which can connect the input and output peripherals of the device to CPU 902 and memory 901 .

I/O子系统909,所述I/O子系统909可以将设备上的输入输出外设,例如触摸屏912和其他输入/控制设备910,连接到外设接口903。I/O子系统909可以包括显示控制器9091和用于控制其他输入/控制设备910的一个或多个输入控制器9092。其中,一个或多个输入控制器9092从其他输入/控制设备910接收电信号或者向其他输入/控制设备910发送电信号,其他输入/控制设备910可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器9092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 909 , the I/O subsystem 909 can connect input and output peripherals on the device, such as a touch screen 912 and other input/control devices 910 , to the peripheral interface 903 . The I/O subsystem 909 may include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910 . Among them, one or more input controllers 9092 receive electrical signals from or send electrical signals to other input/control devices 910, which may include physical buttons (push buttons, rocker buttons, etc. ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 9092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏912,所述触摸屏912是用户移动终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 912, the touch screen 912 is an input interface and an output interface between the user's mobile terminal and the user, and displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.

I/O子系统909中的显示控制器9091从触摸屏912接收电信号或者向触摸屏912发送电信号。触摸屏912检测触摸屏上的接触,显示控制器9091将检测到的接触转换为与显示在触摸屏912上的用户界面对象的交互,即实现人机交互,显示在触摸屏912上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 9091 in the I/O subsystem 909 receives electrical signals from the touch screen 912 or sends electrical signals to the touch screen 912 . The touch screen 912 detects the contact on the touch screen, and the display controller 9091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 912, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 912 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touchscreen.

RF电路905,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路905接收并发送RF信号,RF信号也称为电磁信号,RF电路905将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路905可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 905 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 905 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 905 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 905 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.

音频电路906,主要用于从外设接口903接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器911。The audio circuit 906 is mainly used to receive audio data from the peripheral interface 903 , convert the audio data into electrical signals, and send the electrical signals to the speaker 911 .

扬声器911,用于将手机通过RF电路905从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 911 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 905 into sound and play the sound to the user.

电源管理芯片908,用于为CPU902、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 908 is used for power supply and power management for the hardware connected to the CPU 902 , the I/O subsystem and the peripheral interface.

本申请实施例还提供了一种服务器,该服务器中可集成本申请实施例提供的蓝牙设备的连接装置。图10为本申请实施例提供的一种服务器的结构示意图。移动终端1000可以包括:存储器1001,处理器1002及存储在存储器1001上并可在处理器1002运行的计算机程序,所述处理器1002执行所述计算机程序时实现如本申请实施例所述的蓝牙设备连接方法。The embodiment of the present application also provides a server, in which the device for connecting the Bluetooth device provided in the embodiment of the present application can be integrated. FIG. 10 is a schematic structural diagram of a server provided by an embodiment of the present application. The mobile terminal 1000 may include: a memory 1001, a processor 1002, and a computer program stored on the memory 1001 and capable of running on the processor 1002. When the processor 1002 executes the computer program, it realizes the bluetooth as described in the embodiment of the present application. Device connection method.

本申请实施例提供的服务器,可以解决因预设黑名单在移动终端出厂后无法被更改而引起的蓝牙设备连接兼容性问题,使移动终端与目标蓝牙设备之间能够更好的匹配连接,提升数据交互性能。The server provided by the embodiment of the present application can solve the Bluetooth device connection compatibility problem caused by the preset blacklist cannot be changed after the mobile terminal leaves the factory, so that the mobile terminal and the target Bluetooth device can better match and connect, and improve Data interaction performance.

上述实施例中提供的蓝牙设备的连接装置、存储介质、服务器以移动终端可执行本申请任意实施例所提供的对应的蓝牙设备连接方法,具备执行方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请相应实施例所提供的蓝牙设备连接方法。The Bluetooth device connection device, storage medium, server, and mobile terminal provided in the above embodiments can execute the corresponding Bluetooth device connection method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the Bluetooth device connection method provided in the corresponding embodiments of the present application.

注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.

Claims (12)

The default white list is pushed into the mobile terminal;The default white list is used to indicate the mobile terminal and is sentencingBreak target Bluetooth devices target device mark with default blacklist match while, also with the default white list phaseTiming determines that the target device mark matches failure with the default blacklist, and using default connection strategy and the meshMark bluetooth equipment is communicatively coupled;Wherein, the default blacklist include can not be more after the manufacture stored in the terminalThe bluetooth equipment blacklist changed uses when the device identification of the bluetooth equipment connected and the default blacklist matchSpare connection strategy is communicatively coupled with the bluetooth equipment to be connect, and otherwise, is waited for described using default connection strategyThe bluetooth equipment of connection is communicatively coupled.
White list pushing module, for the default white list to be pushed to the mobile terminal, the default white list is used forThe mobile terminal is indicated while the target device mark for judging target Bluetooth devices matches with default blacklist, alsoWhen matching with the default white list, determine that the target device mark matches failure with the default blacklist, and useDefault connection strategy is communicatively coupled with the target Bluetooth devices;Wherein, the default blacklist is included in mobile terminalNot modifiable bluetooth equipment blacklist after the manufacture of middle storage, when the device identification of bluetooth equipment to be connected is preset with describedIt when blacklist matches, is communicatively coupled with the bluetooth equipment to be connect using spare connection strategy, otherwise, using silentRecognize connection strategy to be communicatively coupled with the bluetooth equipment to be connect.
CN201810117192.2A2018-02-062018-02-06 Bluetooth device connection method, device, storage medium, mobile terminal and serverActiveCN108347719B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810117192.2ACN108347719B (en)2018-02-062018-02-06 Bluetooth device connection method, device, storage medium, mobile terminal and server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810117192.2ACN108347719B (en)2018-02-062018-02-06 Bluetooth device connection method, device, storage medium, mobile terminal and server

Publications (2)

Publication NumberPublication Date
CN108347719Atrue CN108347719A (en)2018-07-31
CN108347719B CN108347719B (en)2021-02-02

Family

ID=62958506

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810117192.2AActiveCN108347719B (en)2018-02-062018-02-06 Bluetooth device connection method, device, storage medium, mobile terminal and server

Country Status (1)

CountryLink
CN (1)CN108347719B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109495871A (en)*2018-12-202019-03-19Oppo广东移动通信有限公司Bluetooth connection control method, electronic device and computer readable storage medium
CN110636403A (en)*2019-10-252019-12-31深圳市科奈信科技有限公司Wireless earphone pairing method, system and storage medium
CN111212410A (en)*2019-12-262020-05-29无锡中感微电子股份有限公司Bluetooth device intelligent optimization method and device and Bluetooth device
CN111290717A (en)*2020-03-132020-06-16成都互诚在线科技有限公司Off-line data storage device based on Bluetooth communication
CN111314897A (en)*2020-02-272020-06-19科世达(上海)机电有限公司Method for recording white list of vehicle Bluetooth keys
CN113573291A (en)*2021-08-042021-10-29杭州涂鸦信息技术有限公司Bluetooth connection method, device, computer equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101286770A (en)*2007-04-092008-10-15艾威梯软件技术(北京)有限公司Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
US20100087167A1 (en)*2008-10-062010-04-08Kevin TsurutomeRemotely provisioned wirelessly proxy
CN105553964A (en)*2015-12-102016-05-04小米科技有限责任公司Method and apparatus for controlling Bluetooth device
CN105957160A (en)*2016-04-252016-09-21江苏东大金智信息系统有限公司Parking lot entrance/exit control method and parking lot entrance/exit control system based on Bluetooth
CN106211361A (en)*2016-08-012016-12-07惠州Tcl移动通信有限公司A kind of mobile terminal bluetooth compatibility processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101286770A (en)*2007-04-092008-10-15艾威梯软件技术(北京)有限公司Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
US20100087167A1 (en)*2008-10-062010-04-08Kevin TsurutomeRemotely provisioned wirelessly proxy
CN105553964A (en)*2015-12-102016-05-04小米科技有限责任公司Method and apparatus for controlling Bluetooth device
CN105957160A (en)*2016-04-252016-09-21江苏东大金智信息系统有限公司Parking lot entrance/exit control method and parking lot entrance/exit control system based on Bluetooth
CN106211361A (en)*2016-08-012016-12-07惠州Tcl移动通信有限公司A kind of mobile terminal bluetooth compatibility processing method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109495871A (en)*2018-12-202019-03-19Oppo广东移动通信有限公司Bluetooth connection control method, electronic device and computer readable storage medium
CN109495871B (en)*2018-12-202022-02-18Oppo广东移动通信有限公司Bluetooth connection control method, electronic device and computer readable storage medium
CN110636403A (en)*2019-10-252019-12-31深圳市科奈信科技有限公司Wireless earphone pairing method, system and storage medium
CN111212410A (en)*2019-12-262020-05-29无锡中感微电子股份有限公司Bluetooth device intelligent optimization method and device and Bluetooth device
CN111314897A (en)*2020-02-272020-06-19科世达(上海)机电有限公司Method for recording white list of vehicle Bluetooth keys
CN111290717A (en)*2020-03-132020-06-16成都互诚在线科技有限公司Off-line data storage device based on Bluetooth communication
CN113573291A (en)*2021-08-042021-10-29杭州涂鸦信息技术有限公司Bluetooth connection method, device, computer equipment and computer readable storage medium

Also Published As

Publication numberPublication date
CN108347719B (en)2021-02-02

Similar Documents

PublicationPublication DateTitle
CN108347719A (en)Connection method of Bluetooth device, device, storage medium, mobile terminal and server
CN107770759B (en)Bluetooth voice link establishing method and device, storage medium and mobile terminal
CN107889092B (en)Bluetooth device communication control method, device, terminal device and storage medium
CN112055424B (en)Electronic device and method for switching electronic device
CN109495871B (en)Bluetooth connection control method, electronic device and computer readable storage medium
CN104765591A (en)Method and system for updating software configuration parameter, and terminal server
CN108829320A (en)Interaction method, device, storage medium, mobile terminal and interaction system
CN106332307A (en) Method and mobile terminal for application program to access network
CN103607713A (en)Method, apparatus, device and system for network access
CN107038046B (en)Method and device for upgrading audio playing system and terminal
CN105700732A (en)Apparatus, system and method for communication of touch sensor information
CN108933968A (en)A kind of conversion method of message format, device, storage medium and android terminal
CN106776385A (en) A kind of transmission method, device and terminal of log log information
CN108415863A (en)Hardware compatible implementation method of electronic device and related product
KR20200069532A (en)Electronic device for reducing power consumption in network baede on wireless fidelity direct protocol and method thereof
CN113466841B (en)Distance measuring method, device, electronic equipment and storage medium
CN106878915A (en) Playing device control method, device, playing device, and mobile terminal
CN108093451A (en)Control method, device and the storage medium and mobile terminal of random access
WO2023134386A1 (en)Device connection method and apparatus, and device, storage medium and chip
CN107071655A (en) Method, device, audio playback device and mobile terminal for configuring stereo output
CN106506646A (en) Playing device control method, device, mobile terminal and playing system
CN106791090B (en)Mobile terminal restart control method and device and mobile terminal
CN108833033A (en) Method, device, storage medium and mobile terminal for determining radio frequency calibration parameters
CN108769368A (en)Electronic equipment and information processing method
CN106101361A (en)The display packing of cell phone address book, device and mobile phone

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp