Nothing Special   »   [go: up one dir, main page]

WO2017201899A1 - 连接蓝牙设备的方法及装置 - Google Patents

连接蓝牙设备的方法及装置 Download PDF

Info

Publication number
WO2017201899A1
WO2017201899A1 PCT/CN2016/096246 CN2016096246W WO2017201899A1 WO 2017201899 A1 WO2017201899 A1 WO 2017201899A1 CN 2016096246 W CN2016096246 W CN 2016096246W WO 2017201899 A1 WO2017201899 A1 WO 2017201899A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
connection
information
master device
master
Prior art date
Application number
PCT/CN2016/096246
Other languages
English (en)
French (fr)
Inventor
曾庆忠
潘志兴
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017201899A1 publication Critical patent/WO2017201899A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for connecting a Bluetooth device.
  • Bluetooth modules on devices such as smart phones, Bluetooth speakers, and smart TVs, which can be connected to other Bluetooth devices.
  • Some Bluetooth devices have Bluetooth automatic connection function, that is, after the Bluetooth function is turned on, the master device actively sends a connection request to the slave Bluetooth device to establish a Bluetooth connection.
  • the connection request is sent to all the previously paired slave Bluetooth devices in turn according to the historical connection record.
  • the connection may not be successful.
  • the connection cannot be successful.
  • the connections will still be connected one by one until the connection is established successfully. It can be seen that using this method for Bluetooth connection makes it waiting for a long time to establish a Bluetooth connection, and the Bluetooth automatic connection efficiency is low, which affects the user experience.
  • the main object of the present invention is to provide a method and device for connecting a Bluetooth device, aiming at achieving the purpose of quickly and automatically connecting a Bluetooth device.
  • a method for connecting a Bluetooth device includes the following steps:
  • the present invention further provides an apparatus for connecting a Bluetooth device, where the device for connecting a Bluetooth device includes:
  • a scanning module configured to scan and determine surrounding connectable Bluetooth devices when the Bluetooth function of the master device is turned on;
  • a sorting module configured to acquire connection history information of the Bluetooth device and the master device, and sort the Bluetooth device according to the historical record information
  • control module configured to control, according to the ordering, that the master device automatically connects to the Bluetooth device.
  • the connected Bluetooth device when the Bluetooth function of the master device is enabled, the connected Bluetooth device is scanned and determined; the connection history information of the Bluetooth device and the master device is obtained, and the The Bluetooth device performs sorting; and, according to the sorting, the master device automatically connects the Bluetooth device. Since the master device sorts the connectable Bluetooth devices according to the history information when performing the Bluetooth connection, the master device is more efficient in performing the Bluetooth connection, and achieves the purpose of quickly and automatically connecting the Bluetooth devices.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for connecting a Bluetooth device according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for connecting a Bluetooth device according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for connecting a Bluetooth device according to the present invention.
  • FIG. 4 is a schematic flowchart of a fifth embodiment of a method for connecting a Bluetooth device according to the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a device for connecting a Bluetooth device according to the present invention.
  • the present invention provides a method of connecting a Bluetooth device.
  • the method includes:
  • Step S10 scanning and determining surrounding connectable Bluetooth devices when the Bluetooth function of the master device is turned on;
  • Step S20 Obtain connection history record information of the Bluetooth device and the master device, and sort the Bluetooth device according to the history record information;
  • Step S30 controlling, according to the sorting, that the master device automatically connects the Bluetooth device.
  • the method for connecting a Bluetooth device is used for automatically and quickly connecting a slave Bluetooth device when the master device is turned on.
  • the main device and the bluetooth device are Bluetooth devices with a Bluetooth module and a Bluetooth function, for example, a Bluetooth device such as a smart TV, a smart phone, or a Bluetooth speaker.
  • the master device is a device that actively sends a Bluetooth connection request
  • the slave device is a device that receives a Bluetooth connection request.
  • the surrounding connectable Bluetooth device is scanned and determined, specifically, the Bluetooth protocol is initialized, the Bluetooth protocol stack is started, the surrounding Bluetooth device is scanned, and when there is a connectable slave device
  • the device information of the scanable connected slave device is obtained, and the device information of the scanable connected slave device is updated into the memory, and the device information may include a Bluetooth device name, an address, a type, and the like.
  • connection history information of the Bluetooth device and the master device is historical record information of the connection between the master device and the Bluetooth device, and the history record information may be saved in a preset file, for example, stored in an XML file, and the history record information is based on the XML file.
  • the format is saved.
  • the Bluetooth devices After obtaining the connection history information of the Bluetooth device and the master device, the Bluetooth devices are sorted according to the history information, and then the master device automatically connects to the Bluetooth device according to the sorting.
  • the specific history information may include parameters related to Bluetooth connection such as connection time and connection times, and the Bluetooth devices are sorted according to the historical connection parameters, so that the connection is performed in a certain order when connecting.
  • the connected Bluetooth device when the Bluetooth function of the master device is enabled, the connected Bluetooth device is scanned and determined; the connection history information of the Bluetooth device and the master device is obtained, and the The Bluetooth device performs sorting; and, according to the sorting, the master device automatically connects the Bluetooth device. Since the master device sorts the connectable Bluetooth devices according to the history information when performing the Bluetooth connection, the master device is more efficient in performing the Bluetooth connection, and achieves the purpose of quickly and automatically connecting the Bluetooth devices.
  • step S20 includes:
  • Step S210 according to the connection time of the Bluetooth device and the master device establishing the Bluetooth connection, the first weight value is given to the Bluetooth device, wherein the closer the connection time is, the larger the first weight value is. ;
  • Step S220 the second weighting value is given to the Bluetooth device according to the connection duration and the number of connections of the Bluetooth device and the Bluetooth connection of the master device in a preset time, wherein the longer the connection duration, the more the connection times If the number is too large, the second weight value is larger;
  • Step S230 sorting the Bluetooth devices according to the first weight value and the second weight value.
  • the Bluetooth device is sorted according to the historical record information, where the history record information includes: a connection time between the Bluetooth device and the master device to establish a Bluetooth connection, a connection duration of each Bluetooth connection, and a connection time in a preset time.
  • the first weight value of the Bluetooth device is given, and the closer the connection time is, the larger the first weight value is.
  • the connection time of the Bluetooth device AAA and the BBB in the history information is 18:34:01 respectively. 31/08/2015 and 10:30:00 30/08/2015, the AAA device and the BBB device are given a first weight value, and the first weight value of the AAA is greater than the first weight value of the device BBB, and the specific first weight value may be set as needed.
  • the second weight value is given to the Bluetooth device according to the connection duration and the number of connections of the Bluetooth device and the Bluetooth connection of the master device in the preset time, wherein the longer the connection time, the more the connection times, the larger the second weight value.
  • the preset time can be set according to requirements. For example, it can be set to 30 days to determine the connection duration and number of connections of the device within 24*3600*30 time. For devices that have not been connected to the Bluetooth for more than the preset time, Set the weight coefficient to the preset value, or you can not sort it. You can select it according to your needs.
  • the value of the preset time can be set as needed.
  • the connection time can be the average connection time, or the connection duration of the last connection, which can be set as needed.
  • the Bluetooth device AAA in the history information are 6 times, the last connection time is 3 minutes, the number of times and the connection time of the Bluetooth device BBB are 5 times, and the last connection time is 3 minutes, then the Bluetooth device The second weight value of the AAA is greater than the second weight value of the Bluetooth device BBB, and the specific second weight value may be set as needed.
  • the second weight value of the Bluetooth device AAA may be greater than or less than or equal to the Bluetooth device BBB.
  • the second weight value can be set as needed.
  • steps S210 and S220 may be performed before S210, or may be performed after step S220, or may be performed in parallel with step S220.
  • the Bluetooth devices are sorted according to the first weight value and the second weight value.
  • all the connectable Bluetooth devices that are scanned may perform weighting calculation and assignment only for the Bluetooth device having the history information, but for the scanned Bluetooth device, but the Bluetooth device does not
  • There is history information that is, the Bluetooth device may never connect with the master device, may not calculate the weight, or assign the device to a fixed value or be arranged at the end, and may specifically set the scan as needed and does not have A Bluetooth device that has passed the history connection record.
  • the device when the device is AAA, BBB, CCC, or DDD, if the device AAA and the device BBB are present in the history information, the device AAA and the device BBB are sorted according to the historical record information, and the device CCC and the device DDD are not performed. Sort, or set the weight value of device CCC and device DDD to 0.
  • history information is stored in an XML file with the file name bt_device.xml.
  • the specific content in the XML file is:
  • the weighted values are assigned to the four devices scanned according to the historical record information, and the first weight value of the four devices is determined according to the historical record information. From large to small: the first weight value of the device AAA > the first weight value of the device CCC > the first weight value of the device BBB > the first weight value of the device DDD, because the device AAA and the primary device last established Bluetooth
  • the connection time is the closest, and the device DDD has the longest connection time with the master device to establish Bluetooth.
  • the first weight values of the device AAA, the device BBB, the device CCC, and the device DDD may be set to 0.08, 0.06, 0.04, 0.02, respectively.
  • the Bluetooth device According to the duration of the Bluetooth connection between the Bluetooth device and the master device and the number of connections, the Bluetooth device is given a second weight value, and the process is similar to the process of assigning the first weight value, and will not be described again.
  • the specific method of obtaining the first weight value and the second weight value may be set as needed.
  • the first weight value of the Bluetooth device is given according to the connection time of the Bluetooth device and the master device establishing the Bluetooth connection last time
  • the Bluetooth device is given the connection time and the number of connections according to the Bluetooth connection of the Bluetooth device and the master device in the preset time.
  • the weight value is used to sort the Bluetooth devices according to the first weight value and the second weight value, so that when the Bluetooth device is connected, the device that the user desires to connect is preferentially connected, thereby speeding up the user to establish a Bluetooth connection and improving the user experience.
  • step S30 includes:
  • Step S310 obtaining the Bluetooth device information according to the sorting, and determining whether the Bluetooth device is a Bluetooth device that can accept the Bluetooth connection request of the master device and establish a Bluetooth connection with the Bluetooth device; if yes, go to step S320;
  • Step S320 controlling, according to the sorting, that the master device automatically connects to the Bluetooth device.
  • the Bluetooth device information is obtained. Specifically, the name, address, and type of the Bluetooth device can be obtained, and specific information is obtained according to requirements.
  • the Bluetooth device After obtaining the Bluetooth device information, it is determined whether the Bluetooth device is a Bluetooth device that can accept the Bluetooth connection request of the master device and establish a Bluetooth connection with the Bluetooth device.
  • the specific judgment method can be judged by acquiring the type of the Bluetooth device. Specifically, when the connection is established, according to the arrangement order, the control master device first sends a connection request to the Bluetooth device in the first order, and when receiving the message that the Bluetooth connection is successful, confirms that the master device and the first Bluetooth are arranged. The device establishes a Bluetooth connection successfully. If the master device does not establish a Bluetooth connection with the first-ranked Bluetooth device, the control master device establishes a Bluetooth connection with the second-ranked device.
  • the master device automatically connects to the Bluetooth device according to the sorting.
  • the device AAA, the device BBB, the device CCC, and the device DDD are all Bluetooth devices that can accept the Bluetooth connection request of the master device and can perform a Bluetooth connection with the master device, and the order of the devices is: device AAA>device CCC>device BBB > Device DDD, when connecting, first establish a Bluetooth connection with the device AAA according to the arrangement order.
  • the master device sends a Bluetooth connection request to the device AAA. If the Bluetooth connection establishment success message is received, the master device and the device AAA are confirmed. The Bluetooth connection is successfully established. If the primary device fails to connect to the device AAA, a Bluetooth connection request is sent to the device CCC.
  • the Bluetooth device information is obtained by sorting, and it is determined whether the Bluetooth device is a device that can receive the Bluetooth connection request of the master device and establish a Bluetooth connection with the device, and if so, the master device automatically connects the Bluetooth device according to the sorting control, so that the master device When the device automatically connects to the surrounding Bluetooth devices, it can connect according to the arrangement order, which improves the speed of the automatic connection.
  • a fourth embodiment of the method for connecting a Bluetooth device according to the present invention is provided.
  • the Bluetooth device if the Bluetooth device is not all acceptable to the main device, A Bluetooth device that requests a Bluetooth connection of the device and establishes a Bluetooth connection with the master device, and removes, from the ordering, a Bluetooth device that cannot accept the Bluetooth connection request of the master device and establish a Bluetooth connection with the master device.
  • the Bluetooth device if there is a Bluetooth device that cannot receive the Bluetooth connection request of the master device and cannot establish a Bluetooth connection with the master device, the Bluetooth device is deleted from the arrangement order. Since some Bluetooth devices cannot receive a Bluetooth request to establish a connection, the Bluetooth connection can only be established by actively sending a Bluetooth connection request. Therefore, if the device is actively connected, feedback of the connection failure will be received after a waiting period, in which case The time for automatically connecting the Bluetooth device becomes longer, so here, the Bluetooth device that cannot receive the Bluetooth connection request of the master device and cannot establish a Bluetooth connection with the master device is deleted, so that the efficiency of the Bluetooth connection is improved when the Bluetooth connection is made. .
  • the device type of the device DDD is 25, wherein 24 types indicate that the device is audio, and 25 type indicates that the device is a mouse, when it is desired to connect only audio.
  • the device DDD is deleted from the order, and only the device AAA, the device BBB, and the device CCC are connected, and the connection is automatically performed according to the order of AAA>device CCC>device BBB.
  • the device when there is a Bluetooth device in the sorted Bluetooth device that cannot receive the Bluetooth connection request of the master device or a Bluetooth device that establishes a Bluetooth connection with the master device, the device is deleted from the sorting, and the master device automatically connects according to the sorting order.
  • the connection waiting time is reduced, and the connection speed and efficiency of the Bluetooth connection are improved.
  • a method for connecting a Bluetooth device according to the present invention is a fifth embodiment of the method for connecting a Bluetooth device according to the present invention.
  • the method for connecting a Bluetooth device according to the present invention further includes:
  • Step S40 after the master device automatically connects the Bluetooth device according to the sorting, record the Bluetooth connection information between the Bluetooth device and the master device in real time, and save the information to the history record, where the
  • the Bluetooth connection information includes: a connection time of the Bluetooth connection, a connection duration of the Bluetooth connection, and a connection number of the Bluetooth connection.
  • the connection information is recorded in real time.
  • the master device establishes Bluetooth success with a surrounding Bluetooth device
  • the related connection information is saved to the history record information, specifically, according to the file format of the history record information, for example, the history record information is saved in an XML format.
  • the connection information is stored in an XML file format.
  • the Bluetooth connection information includes the connection time of the Bluetooth connection, the connection duration of the Bluetooth connection, and the number of connections of the Bluetooth connection. Specifically, for example, when the device BBB establishes a Bluetooth connection with the master device, the Bluetooth connection information is updated to the history information. When the device BBB establishes a Bluetooth connection with the master device for 5 minutes and then disconnects, the connection time is 15:34. :01 31/152015, the connection duration is 300s, and the number of connections is accumulated in the number of historical connections. If the number of previous connections is 5, the update is 6.
  • connection information of the device BBB in the history information is updated in the bt_device.xml file to:
  • the Bluetooth connection information may further include other information such as the Bluetooth name of the Bluetooth device when the Bluetooth device changes the Bluetooth device name in addition to the above connection information.
  • the master device When the history information is updated according to the latest Bluetooth connection, when the master device performs the Bluetooth connection again, it can sort according to the latest history information, thereby performing automatic connection.
  • the Bluetooth connection information between the Bluetooth device and the main device is recorded in real time and saved in the history information, so that the history information is updated according to the latest Bluetooth connection.
  • the latest history information can be sorted to improve the speed of the automatic Bluetooth connection of the master device.
  • the present invention also provides a device for connecting a Bluetooth device.
  • a first embodiment of a device for connecting a Bluetooth device according to the present invention is provided.
  • the device for connecting a Bluetooth device includes:
  • the scanning module 10 is configured to scan and determine surrounding connectable Bluetooth devices when the Bluetooth function of the master device is turned on;
  • the sorting module 20 is configured to acquire connection history information of the Bluetooth device and the master device, and sort the Bluetooth device according to the history record information;
  • the control module 30 is configured to control, according to the ordering, that the master device automatically connects to the Bluetooth device.
  • the device for connecting a Bluetooth device is used for automatically and quickly connecting a slave Bluetooth device when the master device is turned on.
  • the main device and the bluetooth device are Bluetooth devices with a Bluetooth module and a Bluetooth function, for example, a Bluetooth device such as a smart TV, a smart phone, or a Bluetooth speaker.
  • the master device is a device that actively sends a Bluetooth connection request
  • the slave device is a device that receives a Bluetooth connection request.
  • the scanning module 10 scans and determines the surrounding connectable Bluetooth devices, specifically, initializes the Bluetooth protocol, starts the Bluetooth protocol stack, scans the surrounding Bluetooth devices, and can connect when scanning exists.
  • the sorting module 20 obtains the device information of the scanned connectable slave device, specifically, the device information of the scanned connectable slave device is updated into the memory, and the device information may include the Bluetooth device name and address. , type, etc.
  • connection history information of the Bluetooth device and the master device is historical record information of the connection between the master device and the Bluetooth device, and the history record information may be saved in a preset file, for example, stored in an XML file, and the history record information is based on the XML file.
  • the format is saved.
  • the control module 30 sorts the Bluetooth devices according to the history record information, and then controls the master device to automatically connect to the Bluetooth device according to the sorting.
  • the specific history information may include parameters related to Bluetooth connection such as connection time and connection times, and the Bluetooth devices are sorted according to the historical connection parameters, so that the connection is performed in a certain order when connecting.
  • the connected Bluetooth device when the Bluetooth function of the master device is enabled, the connected Bluetooth device is scanned and determined; the connection history information of the Bluetooth device and the master device is obtained, and the The Bluetooth device performs sorting; and, according to the sorting, the master device automatically connects the Bluetooth device. Since the master device sorts the connectable Bluetooth devices according to the history information when performing the Bluetooth connection, the master device is more efficient in performing the Bluetooth connection, and achieves the purpose of quickly and automatically connecting the Bluetooth devices.
  • the history record information includes: the Bluetooth device establishes a Bluetooth connection with the master device.
  • the connection time, the connection duration of each Bluetooth connection, and the number of connections in the preset time, the sorting module 20 includes:
  • the first assignment unit 210 is configured to assign a first weight value to the Bluetooth device according to a connection time that the Bluetooth device establishes a Bluetooth connection with the master device last time, wherein the closer the connection time is, the first The greater the weight value;
  • the second assignment unit 220 is configured to assign a second weight value to the Bluetooth device according to the connection duration and the number of connections of the Bluetooth device and the Bluetooth connection of the master device, wherein the connection duration is longer. The more the number of connections, the greater the second weight value;
  • the sorting unit 230 is configured to sort the Bluetooth devices according to the first weight value and the second weight value.
  • the Bluetooth device is sorted according to the historical record information, where the history record information includes: a connection time between the Bluetooth device and the master device to establish a Bluetooth connection, a connection duration of each Bluetooth connection, and a connection time in a preset time.
  • the first assignment unit 210 assigns a first weight value to the Bluetooth device according to the connection time of the Bluetooth device and the master device establishing the Bluetooth connection last time. The closer the connection time is, the larger the first weight value is.
  • the connection time of the Bluetooth device AAA and the BBB in the history information is 18:34:01 respectively. 31/08/2015 and 10:30:00 30/08/2015, the AAA device and the BBB device are given a first weight value, and the first weight value of the AAA is greater than the first weight value of the device BBB, and the specific first weight value may be set as needed.
  • the second assignment unit 220 assigns a second weight value to the Bluetooth device according to the connection duration and the number of connections of the Bluetooth device and the Bluetooth connection of the master device in a preset time, wherein the longer the connection time, the more the connection times, the second weight value Big.
  • the preset time can be set according to requirements. For example, it can be set to 30 days to determine the connection duration and number of connections of the device within 24*3600*30 time. For devices that have not been connected to the Bluetooth for more than the preset time, Set the weight coefficient to the preset value, or you can not sort it. You can select it according to your needs.
  • the value of the preset time can be set as needed.
  • the connection time can be the average connection time, or the connection duration of the last connection, which can be set as needed.
  • the Bluetooth device AAA in the history information are 6 times, the last connection time is 3 minutes, the number of times and the connection time of the Bluetooth device BBB are 5 times, and the last connection time is 3 minutes, then the Bluetooth device The second weight value of the AAA is greater than the second weight value of the Bluetooth device BBB, and the specific second weight value may be set as needed.
  • the second weight value of the Bluetooth device AAA may be greater than or less than or equal to the Bluetooth device BBB.
  • the second weight value can be set as needed.
  • the sorting unit 230 sorts the Bluetooth devices according to the first weight value and the second weight value.
  • all the connectable Bluetooth devices that are scanned may perform weighting calculation and assignment only for the Bluetooth device having the history information, but for the scanned Bluetooth device, but the Bluetooth device does not
  • There is history information that is, the Bluetooth device may never connect with the master device, may not calculate the weight, or assign the device to a fixed value or be arranged at the end, and may specifically set the scan as needed and does not have A Bluetooth device that has passed the history connection record.
  • the device when the device is AAA, BBB, CCC, or DDD, if the device AAA and the device BBB are present in the history information, the device AAA and the device BBB are sorted according to the historical record information, and the device CCC and the device DDD are not performed. Sort, or set the weight value of device CCC and device DDD to 0.
  • history information is stored in an XML file with the file name bt_device.xml.
  • the weighted values are assigned to the four devices scanned according to the historical record information, and the first weight value of the four devices is determined according to the historical record information. From large to small: the first weight value of the device AAA > the first weight value of the device CCC > the first weight value of the device BBB > the first weight value of the device DDD, because the device AAA and the primary device last established Bluetooth
  • the connection time is the closest, and the device DDD has the longest connection time with the master device to establish Bluetooth.
  • the first weight values of the device AAA, the device BBB, the device CCC, and the device DDD may be set to 0.08, 0.06, 0.04, 0.02, respectively.
  • the Bluetooth device According to the duration of the Bluetooth connection between the Bluetooth device and the master device and the number of connections, the Bluetooth device is given a second weight value, and the process is similar to the process of assigning the first weight value, and will not be described again.
  • the specific method of obtaining the first weight value and the second weight value may be set as needed.
  • the first weight value of the Bluetooth device is given according to the connection time of the Bluetooth device and the master device establishing the Bluetooth connection last time
  • the Bluetooth device is given the connection time and the number of connections according to the Bluetooth connection of the Bluetooth device and the master device in the preset time.
  • the weight value is used to sort the Bluetooth devices according to the first weight value and the second weight value, so that when the Bluetooth device is connected, the device that the user desires to connect is preferentially connected, thereby speeding up the user to establish a Bluetooth connection and improving the user experience.
  • control module 30 includes:
  • the determining unit 310 is configured to acquire the Bluetooth device information according to the sorting, and determine whether the Bluetooth device is a Bluetooth device that can receive a Bluetooth connection request of the master device and establish a Bluetooth connection with the master device;
  • the control unit 320 is configured to control, if the Bluetooth device is a Bluetooth device that can receive a Bluetooth connection request of the master device and establish a Bluetooth connection with the master device, automatically connect the Bluetooth device according to the ordering.
  • the Bluetooth device information is obtained. Specifically, the name, address, and type of the Bluetooth device can be obtained, and specific information is obtained according to requirements.
  • the determining unit 310 determines whether the Bluetooth device is a Bluetooth device that can accept the Bluetooth connection request of the master device and establish a Bluetooth connection with the Bluetooth device.
  • the specific judgment method can be judged by acquiring the type of the Bluetooth device. Specifically, when the connection is established, according to the arrangement order, the control master device first sends a connection request to the Bluetooth device in the first order, and when receiving the message that the Bluetooth connection is successful, confirms that the master device and the first Bluetooth are arranged. The device establishes a Bluetooth connection successfully. If the master device does not establish a Bluetooth connection with the first-ranked Bluetooth device, the control master device establishes a Bluetooth connection with the second-ranked device.
  • the control unit 320 automatically controls the master device to automatically connect to the Bluetooth device according to the sorting.
  • the device AAA, the device BBB, the device CCC, and the device DDD are all Bluetooth devices that can accept the Bluetooth connection request of the master device and can perform a Bluetooth connection with the master device, and the order of the devices is: device AAA>device CCC>device BBB > Device DDD, when connecting, first establish a Bluetooth connection with the device AAA according to the arrangement order.
  • the master device sends a Bluetooth connection request to the device AAA. If the Bluetooth connection establishment success message is received, the master device and the device AAA are confirmed. The Bluetooth connection is successfully established. If the primary device fails to connect to the device AAA, a Bluetooth connection request is sent to the device CCC.
  • the Bluetooth device information is obtained by sorting, and it is determined whether the Bluetooth device is a device that can receive the Bluetooth connection request of the master device and establish a Bluetooth connection with the device, and if so, the master device automatically connects the Bluetooth device according to the sorting control, so that the master device When the device automatically connects to the surrounding Bluetooth devices, it can connect according to the arrangement order, which improves the speed of the automatic connection.
  • control module 30 further includes:
  • a deleting unit if the Bluetooth device is not a Bluetooth device that can accept the Bluetooth connection request of the master device and establish a Bluetooth connection with the master device, delete the Bluetooth that cannot accept the master device from the sorting A Bluetooth device that connects to the request and establishes a Bluetooth connection with the primary device.
  • the deleting unit deletes the Bluetooth device from the arrangement order. Since some Bluetooth devices cannot receive a Bluetooth request to establish a connection, the Bluetooth connection can only be established by actively sending a Bluetooth connection request. Therefore, if the device is actively connected, feedback of the connection failure will be received after a waiting period, in which case The time for automatically connecting the Bluetooth device becomes longer, so here, the Bluetooth device that cannot receive the Bluetooth connection request of the master device and cannot establish a Bluetooth connection with the master device is deleted, so that the efficiency of the Bluetooth connection is improved when the Bluetooth connection is made. .
  • the device type of the device DDD is 25, wherein 24 types indicate that the device is audio, and 25 type indicates that the device is a mouse, when it is desired to connect only audio.
  • the device DDD is deleted from the order, and only the device AAA, the device BBB, and the device CCC are connected, and the connection is automatically performed according to the order of AAA>device CCC>device BBB.
  • the device when there is a Bluetooth device in the sorted Bluetooth device that cannot receive the Bluetooth connection request of the master device or a Bluetooth device that establishes a Bluetooth connection with the master device, the device is deleted from the sorting, and the master device automatically connects according to the sorting order.
  • the connection waiting time is reduced, and the connection speed and efficiency of the Bluetooth connection are improved.
  • the device for connecting a Bluetooth device according to the present invention is the fifth embodiment of the device for connecting a Bluetooth device of the present invention.
  • the device for connecting a Bluetooth device according to the present invention further includes:
  • the saving module 40 is configured to record the Bluetooth connection information between the Bluetooth device and the master device in real time after the master device automatically connects the Bluetooth device according to the order, and save the information to the history record, where
  • the Bluetooth connection information includes: a connection time of the Bluetooth connection, a connection duration of the Bluetooth connection, and a connection number of the Bluetooth connection.
  • the saving module 40 records the connection information in real time and saves it. Specifically, when the master device establishes Bluetooth success with a surrounding Bluetooth device, the related connection information is saved to the history record information, specifically, according to the file format of the history record information, for example, the history record information is saved in an XML format. When the file is in the file, the connection information is stored in an XML file format.
  • the Bluetooth connection information includes the connection time of the Bluetooth connection, the connection duration of the Bluetooth connection, and the number of connections of the Bluetooth connection. Specifically, for example, when the device BBB establishes a Bluetooth connection with the master device, the Bluetooth connection information is updated to the history information. When the device BBB establishes a Bluetooth connection with the master device for 5 minutes and then disconnects, the connection time is 15:34. :01 31/152015, the connection duration is 300s, and the number of connections is accumulated in the number of historical connections. If the number of previous connections is 5, the update is 6.
  • connection information of the device BBB in the history information is updated in the bt_device.xml file to:
  • the Bluetooth connection information may further include other information such as the Bluetooth name of the Bluetooth device when the Bluetooth device changes the Bluetooth device name in addition to the above connection information.
  • the master device When the history information is updated according to the latest Bluetooth connection, when the master device performs the Bluetooth connection again, it can sort according to the latest history information, thereby performing automatic connection.
  • the Bluetooth connection information between the Bluetooth device and the main device is recorded in real time and saved in the history information, so that the history information is updated according to the latest Bluetooth connection.
  • the latest history information can be sorted to improve the speed of the automatic Bluetooth connection of the master device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种连接蓝牙设备的方法,在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及,根据所述排序控制所述主设备自动连接所述蓝牙设备。本发明还公开了一种连接蓝牙设备的装置。本发明实现了快速自动连接蓝牙设备的目的。

Description

连接蓝牙设备的方法及装置
技术领域
本发明涉及通信技术领域,尤其涉及连接蓝牙设备的方法及装置。
背景技术
目前智能手机、蓝牙音箱、智能电视等设备上都有蓝牙模块,可以连接其他蓝牙设备。有些蓝牙设备具有蓝牙自动连接功能,即在蓝牙功能开启后,主设备主动发送连接请求给从属蓝牙设备,从而建立蓝牙连接。然而,现有的蓝牙设备在自动连接时会根据历史连接记录依次对所有先前配对过的从属蓝牙设备发送连接请求,然而最近连接过的设备再次连接时不一定能连接成功,当无法连接成功时仍会逐次连接直到建立连接成功。可以见得,采用此种方法进行蓝牙连接使得等待建立蓝牙连接时间较长,蓝牙自动连接效率较低,影响用户体验。
发明内容
本发明的主要目的在于提供一种连接蓝牙设备的方法及装置,旨在实现快速自动连接蓝牙设备的目的。
为实现上述目的,本发明提供的一种连接蓝牙设备的方法包括以下步骤:
在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;
获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及
根据所述排序控制所述主设备自动连接所述蓝牙设备。
此外,为实现上述目的,本发明还提供一种连接蓝牙设备的装置,所述连接蓝牙设备的装置包括:
扫描模块,用于在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;
排序模块,用于获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及
控制模块,用于根据所述排序控制所述主设备自动连接所述蓝牙设备。
本发明实施例在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及,根据所述排序控制所述主设备自动连接所述蓝牙设备。由于主设备在进行蓝牙连接时根据历史记录信息对可连接的蓝牙设备进行了排序,使得主设备在进行蓝牙连接时效率更高,实现了快速自动连接蓝牙设备的目的。
附图说明
图1为本发明连接蓝牙设备的方法第一实施例的流程示意图;
图2为本发明连接蓝牙设备的方法第二实施例的流程示意图;
图3为本发明连接蓝牙设备的方法第三实施例的流程示意图;
图4为本发明连接蓝牙设备的方法第五实施例的流程示意图;
图5为本发明连接蓝牙设备的装置第一实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种连接蓝牙设备的方法。参照图1,在第一实施例中,该方法包括:
步骤S10,在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;
步骤S20,获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及
步骤S30,根据所述排序控制所述主设备自动连接所述蓝牙设备。
本发明提供的连接蓝牙设备的方法用于在主设备蓝牙开启时自动快速连接从属蓝牙设备。其中,主设备与蓝牙设备都是带有蓝牙模块,具备蓝牙功能的蓝牙设备,例如,智能电视、智能手机、蓝牙音箱等蓝牙设备。主设备是主动发送蓝牙连接请求的设备,从属设备是接收蓝牙连接请求的设备。
本实施例中在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备,具体是初始化蓝牙协议,启动蓝牙协议栈,扫描周围的蓝牙设备,当扫描到存在可连接的从属设备时,获取扫描到的可连接的从属设备的设备信息,具体是将扫描到的可连接的从属设备的设备信息更新到内存中,其设备信息可以包括蓝牙设备名称、地址、类型等。
上述蓝牙设备与主设备的连接历史记录信息是主设备与蓝牙设备连接的历史记录信息,历史记录信息可以保存在预置的文件中,例如保存在XML文件中,则历史记录信息是根据XML文件的格式保存的。
当获取到蓝牙设备与主设备的连接历史记录信息后,根据历史记录信息对蓝牙设备进行排序,再根据排序控制主设备自动连接蓝牙设备。具体的历史记录信息中可以包括连接的时间、连接次数等蓝牙连接相关的参数,根据这些历史连接参数来对蓝牙设备进行排序,使得在连接时按照一定的顺序进行连接。
本发明实施例在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及,根据所述排序控制所述主设备自动连接所述蓝牙设备。由于主设备在进行蓝牙连接时根据历史记录信息对可连接的蓝牙设备进行了排序,使得主设备在进行蓝牙连接时效率更高,实现了快速自动连接蓝牙设备的目的。
参考图2,基于上述图1所示的本发明连接蓝牙设备的方法第一实施例,提出本发明连接蓝牙设备的方法第二实施例,本实施例中,上述步骤S20包括:
步骤S210,根据所述蓝牙设备与所述主设备最近一次建立蓝牙连接的连接时间,赋予所述蓝牙设备第一权重值,其中,所述连接时间越近,则所述第一权重值越大;
步骤S220,根据预设时间内所述蓝牙设备与所述主设备蓝牙连接的连接时长和连接次数,赋予所述蓝牙设备第二权重值,其中,所述连接时长越长,所述连接次数越多,则所述第二权重值越大;
步骤S230,根据所述第一权重值和所述第二权重值,对所述蓝牙设备进行排序。
本实施例根据历史记录信息对蓝牙设备进行排序,其中,历史记录信息包括:蓝牙设备与主设备建立蓝牙连接的连接时间、每一次蓝牙连接的连接时长、预设时间内的连接次数。
根据蓝牙设备与主设备最近一次建立蓝牙连接的连接时间,赋予蓝牙设备第一权重值,连接时间越近,第一权重值越大。例如,历史记录信息中蓝牙设备AAA与BBB的连接时间分别为18:34:01 31/08/2015与10:30:00 30/08/2015,则对AAA设备与BBB设备赋予其第一权重值,且AAA的第一权重值大于设备BBB的第一权重值,具体的第一权重值的大小可以根据需要设定。
根据预设时间内蓝牙设备与主设备蓝牙连接的连接时长和连接次数,赋予蓝牙设备第二权重值,其中,连接时间越长,连接次数越多,则第二权重值越大。其中预设时间可以根据需要进行设定,例如可以设定为30天内,则判断24*3600*30时间内设备的连接时长和连接次数,对于超过预设时间都没有进行过蓝牙连接的设备可以设置权重系数为预设值,也可以不对其进行排序,具体可以根据需要选择,其中预设时间的值可以根据需要设定。其中连接时间可以为平均连接时间,也可以为最后一次连接的连接时长,具体可以根据需要设定。例如历史记录信息中蓝牙设备AAA的次数和连接时间分别为6次,最后一次连接时间为3分钟,蓝牙设备BBB的次数和连接时间分别为5次,最后一次连接时间为3分钟,则蓝牙设备AAA的第二权重值大于蓝牙设备BBB的第二权重值,具体的第二权重值的大小可以根据需要设定。
其中,若蓝牙设备AAA的连接次数大于蓝牙设备BBB,但蓝牙设备AAA的连接时间小于蓝牙设备BBB的连接时间,赋值时,蓝牙设备AAA的第二权重值可以大于、小于也可以等于蓝牙设备BBB的第二权重值,具体可以根据需要设定。
其中,上述步骤S210与步骤S220的顺序可以为S210在前执行,也可以步骤S220在后执行,也可以步骤S210与步骤S220并行执行。
当为蓝牙设备赋予了第一权重值与第二权重值以后,根据第一权重值和第二权重值,对蓝牙设备进行排序。其中,在对蓝牙设备进行赋值时,扫描到的所有可连接的蓝牙设备,可以仅对于存在历史记录信息的蓝牙设备进行权重值的计算和赋值,对于扫描到的蓝牙设备,但是该蓝牙设备不存在历史记录信息,即该蓝牙设备可能从未与主设备进行过连接,可以不计算权重,或者是将该类设备赋予定值或是排列在最后,具体可以根据需要设置扫描到的且未有过历史连接记录的蓝牙设备。
例如,当扫描到AAA、BBB、CCC、DDD四个设备时,若历史记录信息中存在设备AAA与设备BBB,将设备AAA与设备BBB根据历史记录信息进行排序,对设备CCC与设备DDD不进行排序,或将设备CCC与设备DDD的权重值设置为0。
例如,历史记录信息保存在文件名为bt_device.xml的XML文件中。XML文件中的具体内容为:
<bt_devices>
<device value = "0">
<bd_addr>41:00:00:00:16:DF:</bd_addr> //设备地址
<device_name>AAA</device_name> //设备名称
<class_of_device>24</class_of_device> //设备类型
<count>20<count> //设备连接次数
<last_timer>18:34:01 31/08/2015<last_timer> //设备最后一次连接时间
<last_connect_time>180s< last_connect_time> //最后一次连接时长
<last_time>0<last_time> //最后一次连接设备 1:是 0:否
</device>
<device value = "1">
<bd_addr>00:00:00:00:17:DE:</bd_addr>
<device_name>BBB</device_name>
<class_of_device>24</class_of_device>
<count>4<count>
<last_timer>15:34:01 31/07/2015<last_timer>
<last_connect_time>300s< last_connect_time>
<last_time>1<last_time>
</device>
<device value = "2">
<bd_addr>00:00:20:10:17:DE:</bd_addr>
<device_name>CCC</device_name>
<class_of_device>24</class_of_device>
<count>5<count>
<last_timer>15:34:01 15/08/2015<last_timer>
<last_connect_time>100s< last_connect_time>
<last_time>0<last_time>
</device>
<device value = "3">
<bd_addr>7C:1E:52:AA:F1:37:</bd_addr>
<device_name>DDD</device_name>
<class_of_device>25</class_of_device>
<last_timer>15:34:01 28/07/2015<last_timer>
<last_connect_time>180s< last_connect_time>
<count>1<count>
</device>
</bt_devices>
当主设备扫描到的设备有设备AAA、设备BBB、设备CCC和设备DDD时,根据历史记录信息,为扫描到的上述四个设备赋予权重值,根据历史记录信息,四个设备的第一权重值的从大到小为:设备AAA的第一权重值>设备CCC的第一权重值>设备BBB的第一权重值>设备DDD的第一权重值,因为设备AAA与主设备最近一次建立蓝牙的连接时间最近,设备DDD与主设备最近一次建立蓝牙的连接时间最远。例如将设备AAA、设备BBB、设备CCC和设备DDD的第一权重值可以分别设置为0.08、0.06、0.04、0.02。
根据历史预设时间内蓝牙设备与主设备蓝牙连接时长和连接次数,赋予蓝牙设备第二权重值,其过程与上述赋予第一权重值过程类似,不再赘述。
当赋予了权重值以后,可以对蓝牙设备进行排序,具体的,在排序时,根据第一权重值和第二权重值再结合预置的公式进行计算,如公式P=Am%+Bn%,其中A为第一权重值,B为第二权重值,m和n分别为预置的比例系数,m%+n%=100%,P为计算得到的顺序系数,可以根据P的从大到小进行排序,以使最近一次连接的,连接次数最多的,连接时间最长的,设备优先被连接。也可以令P=A* last_connect_time+B*count,其中A和B分别为第一权重值和第二权重值。具体的得到第一权重值和第二权重值以后计算的方法可以根据需要设定。
本实施例通过根据蓝牙设备与主设备最近一次建立蓝牙连接的连接时间,赋予蓝牙设备第一权重值,根据预设时间内蓝牙设备与主设备蓝牙连接的连接时长和连接次数,赋予蓝牙设备第二权重值,再根据第一权重值和第二权重值对蓝牙设备进行排序,使得蓝牙设备在连接时,能够优先连接用户期望连接的设备,加快用户建立蓝牙连接的速度,提高用户体验。
参考图3,基于上述图1所示的本发明连接蓝牙设备的方法第一实施例,提出本发明连接蓝牙设备的方法第三实施例,本实施例中,上述步骤S30包括:
步骤S310,根据所述排序获取所述蓝牙设备信息,并判断所述蓝牙设备是否均为可接受所述主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备;若是,执行步骤S320;
步骤S320,根据所述排序控制所述主设备自动连接所述蓝牙设备。
本实施例中,当对蓝牙设备排序后,获取蓝牙设备信息,具体的,可以获取蓝牙设备的名称、地址、类型等,具体获取哪些信息根据需要设定。
当获取到蓝牙设备信息后,判断蓝牙设备是否为可接受主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备。具体的判断方法可以通过获取蓝牙设备的类型来进行判断。具体的,在建立连接时,根据排列顺序,控制主设备先向排列顺序在第一位的蓝牙设备发送连接请求,当接收到蓝牙连接成功的消息时,确认主设备与排列第一位的蓝牙设备建立蓝牙连接成功。若主设备与排列第一位的蓝牙设备没有建立蓝牙连接成功,则控制主设备与排列第二位的设备建立蓝牙连接。
若均为可接受主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备,则根据排序控制主设备自动连接蓝牙设备。例如设备AAA、设备BBB、设备CCC及设备DDD全部都为可以接受主设备的蓝牙连接请求并能够与主设备进行蓝牙连接的蓝牙设备,其排列顺序为:设备AAA>设备CCC>设备BBB >设备DDD,则在连接时,根据排列顺序先与设备AAA建立蓝牙连接,具体的,主设备向设备AAA发送蓝牙连接请求,若接收到蓝牙连接建立成功的消息,则确认主设备与设备AAA的蓝牙连接建立成功,若主设备与设备AAA连接失败,则向设备CCC发送蓝牙连接请求。
本实施例通过排序后获取蓝牙设备信息,并判断蓝牙设备是否均为可接收主设备的蓝牙连接请求并与之建立蓝牙连接的设备,若是,则根据排序控制主设备自动连接蓝牙设备,使得主设备在自动连接周围的蓝牙设备时,能够根据排列顺序进行连接,提高自动连接的速度。
基于上述图3所示的本发明连接蓝牙设备的方法第三实施例,提出本发明连接蓝牙设备的方法第四实施例,本实施例中,若所述蓝牙设备不是均为可接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备,则从所述排序中删除无法接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备。
本实施例中,若存在蓝牙设备不能接收主设备的蓝牙连接请求且不能与该主设备建立蓝牙连接的蓝牙设备时,将该蓝牙设备从排列顺序中删除。由于有些蓝牙设备无法接收蓝牙请求建立连接,只能通过主动发送蓝牙连接请求的方式建立蓝牙连接,因此若主动连接该设备,则经过一段等待时间会接收到连接失败的反馈,在这种情况下,自动连接蓝牙设备的时间变长了,因此在这里,将不能够接收主设备的蓝牙连接请求且不能与该主设备建立蓝牙连接的蓝牙设备进行删除,使得在蓝牙连接时提高蓝牙连接的效率。
通过此种方法也可以通过筛选仅连接想要连接的蓝牙类型,例如仅连接音频类型的蓝牙设备,若检测到鼠标类型的蓝牙设备,不进行连接。则在连接时判断蓝牙设备是否为预置的蓝牙类型,若是,则进行连接,若否,则在排序中删除该设备。
例如,当检测到的设备AAA、设备BBB、设备CCC的设备类型为24,设备DDD的设备类型为25,其中24类型表示该设备为音频,25类型表示该设备为鼠标,当希望仅连接音频设备时,将设备DDD从排序中删除,仅连接设备AAA、设备BBB和设备CCC,则连接时根据AAA>设备CCC>设备BBB的顺序进行自动连接。
本实施例通过当排序后的蓝牙设备中存在无法接收主设备的蓝牙连接请求或与该主设备建立蓝牙连接的蓝牙设备,则从排序中将该设备删除,此时主设备根据排列顺序自动连接蓝牙设备时,由于删除了无法连接的蓝牙设备,使得连接的时候减少了连接等待时间,提高了蓝牙连接的连接速度和效率。
参考图4,基于本发明连接蓝牙设备的方法上述实施例,提出本发明连接蓝牙设备的方法第五实施例,本实施例中,本发明提出的连接蓝牙设备的方法还包括:
步骤S40,在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
本实施例中在主设备按排序自动连接蓝牙设备后,实时记录连接信息。具体的是在主设备与周围某一蓝牙设备建立蓝牙成功时,相关连接信息,将连接信息保存至历史记录信息,具体是按照历史记录信息的文件格式进行存储,例如历史记录信息保存在XML格式的文件中时,将连接信息以XML文件格式进行存储。
蓝牙连接信息包括,蓝牙连接的连接时间、蓝牙连接的连接时长以及蓝牙连接的连接次数。具体的,例如当设备BBB与主设备建立蓝牙连接成功时,将蓝牙连接信息更新至历史记录信息,当设备BBB与主设备建立蓝牙连接5分钟又断开后,获取其连接时间为15:34:01 31/09/2015,连接时长为300s,连接次数为在历史连接次数上累加,若之前连接次数为5,则更新后为6。
具体的,历史记录信息中设备BBB的连接信息在bt_device.xml文件中,更新为:
<device value = "1">
<bd_addr>00:00:00:00:17:DE:</bd_addr>
<device_name>BBB</device_name>
<class_of_device>24</class_of_device>
<count>5<count>
<last_timer>15:34:01 31/09/2015<last_timer>
<last_connect_time>300s< last_connect_time>
<last_time>1<last_time>
可以理解的是,蓝牙连接信息除了可以包括以上连接信息还可以在蓝牙设备更改了蓝牙设备名称时,再次保存该蓝牙设备的蓝牙名称等其他信息。
当历史记录信息根据最新的蓝牙连接情况进行更新后,主设备再次进行蓝牙连接时,可以根据最新的历史记录信息进行排序,从而进行自动连接。
本实施例通过在主设备按排列顺序自动连接蓝牙设备后,实时记录蓝牙设备与主设备之间蓝牙连接信息,并保存至历史记录信息中,使得历史记录信息根据最新的蓝牙连接情况进行更新,使得再次进行连接时,可以根据最新的历史记录信息进行排序,提高主设备蓝牙自动连接的速度。
本发明还提供一种连接蓝牙设备的装置,参照图5,提供了本发明连接蓝牙设备的装置第一实施例,该实施例中,连接蓝牙设备的装置包括:
扫描模块10,用于在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;
排序模块20,用于获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及
控制模块30,用于根据所述排序控制所述主设备自动连接所述蓝牙设备。
本发明提供的连接蓝牙设备的装置用于在主设备蓝牙开启时自动快速连接从属蓝牙设备。其中,主设备与蓝牙设备都是带有蓝牙模块,具备蓝牙功能的蓝牙设备,例如,智能电视、智能手机、蓝牙音箱等蓝牙设备。主设备是主动发送蓝牙连接请求的设备,从属设备是接收蓝牙连接请求的设备。
本实施例中在主设备的蓝牙功能开启时,扫描模块10扫描并确定周围的可连接的蓝牙设备,具体是初始化蓝牙协议,启动蓝牙协议栈,扫描周围的蓝牙设备,当扫描到存在可连接的从属设备时,排序模块20获取扫描到的可连接的从属设备的设备信息,具体是将扫描到的可连接的从属设备的设备信息更新到内存中,其设备信息可以包括蓝牙设备名称、地址、类型等。
上述蓝牙设备与主设备的连接历史记录信息是主设备与蓝牙设备连接的历史记录信息,历史记录信息可以保存在预置的文件中,例如保存在XML文件中,则历史记录信息是根据XML文件的格式保存的。
当获取到蓝牙设备与主设备的连接历史记录信息后,控制模块30根据历史记录信息对蓝牙设备进行排序,再根据排序控制主设备自动连接蓝牙设备。具体的历史记录信息中可以包括连接的时间、连接次数等蓝牙连接相关的参数,根据这些历史连接参数来对蓝牙设备进行排序,使得在连接时按照一定的顺序进行连接。
本发明实施例在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及,根据所述排序控制所述主设备自动连接所述蓝牙设备。由于主设备在进行蓝牙连接时根据历史记录信息对可连接的蓝牙设备进行了排序,使得主设备在进行蓝牙连接时效率更高,实现了快速自动连接蓝牙设备的目的。
基于本发明连接蓝牙设备的装置第一实施例,提出本发明连接蓝牙设备的装置第二实施例,本实施例中,所述历史记录信息包括:所述蓝牙设备与所述主设备建立蓝牙连接的连接时间、每一次蓝牙连接的连接时长、预设时间内的连接次数,上述排序模块20包括:
第一赋值单元210,用于根据所述蓝牙设备与所述主设备最近一次建立蓝牙连接的连接时间,赋予所述蓝牙设备第一权重值,其中,所述连接时间越近,则所述第一权重值越大;
第二赋值单元220,用于根据预设时间内所述蓝牙设备与所述主设备蓝牙连接的连接时长和连接次数,赋予所述蓝牙设备第二权重值,其中,所述连接时长越长,所述连接次数越多,则所述第二权重值越大;及
排序单元230,用于根据所述第一权重值和所述第二权重值,对所述蓝牙设备进行排序。
本实施例根据历史记录信息对蓝牙设备进行排序,其中,历史记录信息包括:蓝牙设备与主设备建立蓝牙连接的连接时间、每一次蓝牙连接的连接时长、预设时间内的连接次数。
第一赋值单元210根据蓝牙设备与主设备最近一次建立蓝牙连接的连接时间,赋予蓝牙设备第一权重值,连接时间越近,第一权重值越大。例如,历史记录信息中蓝牙设备AAA与BBB的连接时间分别为18:34:01 31/08/2015与10:30:00 30/08/2015,则对AAA设备与BBB设备赋予其第一权重值,且AAA的第一权重值大于设备BBB的第一权重值,具体的第一权重值的大小可以根据需要设定。
第二赋值单元220根据预设时间内蓝牙设备与主设备蓝牙连接的连接时长和连接次数,赋予蓝牙设备第二权重值,其中,连接时间越长,连接次数越多,则第二权重值越大。其中预设时间可以根据需要进行设定,例如可以设定为30天内,则判断24*3600*30时间内设备的连接时长和连接次数,对于超过预设时间都没有进行过蓝牙连接的设备可以设置权重系数为预设值,也可以不对其进行排序,具体可以根据需要选择,其中预设时间的值可以根据需要设定。其中连接时间可以为平均连接时间,也可以为最后一次连接的连接时长,具体可以根据需要设定。例如历史记录信息中蓝牙设备AAA的次数和连接时间分别为6次,最后一次连接时间为3分钟,蓝牙设备BBB的次数和连接时间分别为5次,最后一次连接时间为3分钟,则蓝牙设备AAA的第二权重值大于蓝牙设备BBB的第二权重值,具体的第二权重值的大小可以根据需要设定。
其中,若蓝牙设备AAA的连接次数大于蓝牙设备BBB,但蓝牙设备AAA的连接时间小于蓝牙设备BBB的连接时间,赋值时,蓝牙设备AAA的第二权重值可以大于、小于也可以等于蓝牙设备BBB的第二权重值,具体可以根据需要设定。
当为蓝牙设备赋予了第一权重值与第二权重值以后,排序单元230根据第一权重值和第二权重值,对蓝牙设备进行排序。其中,在对蓝牙设备进行赋值时,扫描到的所有可连接的蓝牙设备,可以仅对于存在历史记录信息的蓝牙设备进行权重值的计算和赋值,对于扫描到的蓝牙设备,但是该蓝牙设备不存在历史记录信息,即该蓝牙设备可能从未与主设备进行过连接,可以不计算权重,或者是将该类设备赋予定值或是排列在最后,具体可以根据需要设置扫描到的且未有过历史连接记录的蓝牙设备。
例如,当扫描到AAA、BBB、CCC、DDD四个设备时,若历史记录信息中存在设备AAA与设备BBB,将设备AAA与设备BBB根据历史记录信息进行排序,对设备CCC与设备DDD不进行排序,或将设备CCC与设备DDD的权重值设置为0。
例如,历史记录信息保存在文件名为bt_device.xml的XML文件中。
当主设备扫描到的设备有设备AAA、设备BBB、设备CCC和设备DDD时,根据历史记录信息,为扫描到的上述四个设备赋予权重值,根据历史记录信息,四个设备的第一权重值的从大到小为:设备AAA的第一权重值>设备CCC的第一权重值>设备BBB的第一权重值>设备DDD的第一权重值,因为设备AAA与主设备最近一次建立蓝牙的连接时间最近,设备DDD与主设备最近一次建立蓝牙的连接时间最远。例如将设备AAA、设备BBB、设备CCC和设备DDD的第一权重值可以分别设置为0.08、0.06、0.04、0.02。
根据历史预设时间内蓝牙设备与主设备蓝牙连接时长和连接次数,赋予蓝牙设备第二权重值,其过程与上述赋予第一权重值过程类似,不再赘述。
当赋予了权重值以后,可以对蓝牙设备进行排序,具体的,在排序时,根据第一权重值和第二权重值再结合预置的公式进行计算,如公式P=Am%+Bn%,其中A为第一权重值,B为第二权重值,m和n分别为预置的比例系数,m%+n%=100%,P为计算得到的顺序系数,可以根据P的从大到小进行排序,以使最近一次连接的,连接次数最多的,连接时间最长的,设备优先被连接。也可以令P=A* last_connect_time+B*count,其中A和B分别为第一权重值和第二权重值。具体的得到第一权重值和第二权重值以后计算的方法可以根据需要设定。
本实施例通过根据蓝牙设备与主设备最近一次建立蓝牙连接的连接时间,赋予蓝牙设备第一权重值,根据预设时间内蓝牙设备与主设备蓝牙连接的连接时长和连接次数,赋予蓝牙设备第二权重值,再根据第一权重值和第二权重值对蓝牙设备进行排序,使得蓝牙设备在连接时,能够优先连接用户期望连接的设备,加快用户建立蓝牙连接的速度,提高用户体验。
基于本发明连接蓝牙设备的装置第一实施例,提出本发明连接蓝牙设备的装置第三实施例,本实施例中,上述控制模块30包括:
判断单元310,用于根据所述排序获取所述蓝牙设备信息,并判断所述蓝牙设备是否均为可接受所述主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备;及
控制单元320,用于若所述蓝牙设备均为可接收所述主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备,则根据所述排序控制所述主设备自动连接所述蓝牙设备。
本实施例中,当对蓝牙设备排序后,获取蓝牙设备信息,具体的,可以获取蓝牙设备的名称、地址、类型等,具体获取哪些信息根据需要设定。
当获取到蓝牙设备信息后,判断单元310判断蓝牙设备是否为可接受主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备。具体的判断方法可以通过获取蓝牙设备的类型来进行判断。具体的,在建立连接时,根据排列顺序,控制主设备先向排列顺序在第一位的蓝牙设备发送连接请求,当接收到蓝牙连接成功的消息时,确认主设备与排列第一位的蓝牙设备建立蓝牙连接成功。若主设备与排列第一位的蓝牙设备没有建立蓝牙连接成功,则控制主设备与排列第二位的设备建立蓝牙连接。
若均为可接受主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备,控制单元320根据排序控制主设备自动连接蓝牙设备。例如设备AAA、设备BBB、设备CCC及设备DDD全部都为可以接受主设备的蓝牙连接请求并能够与主设备进行蓝牙连接的蓝牙设备,其排列顺序为:设备AAA>设备CCC>设备BBB >设备DDD,则在连接时,根据排列顺序先与设备AAA建立蓝牙连接,具体的,主设备向设备AAA发送蓝牙连接请求,若接收到蓝牙连接建立成功的消息,则确认主设备与设备AAA的蓝牙连接建立成功,若主设备与设备AAA连接失败,则向设备CCC发送蓝牙连接请求。
本实施例通过排序后获取蓝牙设备信息,并判断蓝牙设备是否均为可接收主设备的蓝牙连接请求并与之建立蓝牙连接的设备,若是,则根据排序控制主设备自动连接蓝牙设备,使得主设备在自动连接周围的蓝牙设备时,能够根据排列顺序进行连接,提高自动连接的速度。
基于本发明连接蓝牙设备的装置第三实施例,提出本发明连接蓝牙设备的装置第四实施例,本实施例中,上述控制模块30还包括:
删除单元,用于若所述蓝牙设备不是均为可接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备,则从所述排序中删除无法接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备。
本实施例中,若存在蓝牙设备不能接收主设备的蓝牙连接请求且不能与该主设备建立蓝牙连接的蓝牙设备时,删除单元将该蓝牙设备从排列顺序中删除。由于有些蓝牙设备无法接收蓝牙请求建立连接,只能通过主动发送蓝牙连接请求的方式建立蓝牙连接,因此若主动连接该设备,则经过一段等待时间会接收到连接失败的反馈,在这种情况下,自动连接蓝牙设备的时间变长了,因此在这里,将不能够接收主设备的蓝牙连接请求且不能与该主设备建立蓝牙连接的蓝牙设备进行删除,使得在蓝牙连接时提高蓝牙连接的效率。
通过此种方法也可以通过筛选仅连接想要连接的蓝牙类型,例如仅连接音频类型的蓝牙设备,若检测到鼠标类型的蓝牙设备,不进行连接。则在连接时判断蓝牙设备是否为预置的蓝牙类型,若是,则进行连接,若否,则在排序中删除该设备。
例如,当检测到的设备AAA、设备BBB、设备CCC的设备类型为24,设备DDD的设备类型为25,其中24类型表示该设备为音频,25类型表示该设备为鼠标,当希望仅连接音频设备时,将设备DDD从排序中删除,仅连接设备AAA、设备BBB和设备CCC,则连接时根据AAA>设备CCC>设备BBB的顺序进行自动连接。
本实施例通过当排序后的蓝牙设备中存在无法接收主设备的蓝牙连接请求或与该主设备建立蓝牙连接的蓝牙设备,则从排序中将该设备删除,此时主设备根据排列顺序自动连接蓝牙设备时,由于删除了无法连接的蓝牙设备,使得连接的时候减少了连接等待时间,提高了蓝牙连接的连接速度和效率。
基于本发明连接蓝牙设备的装置上述实施例,提出本发明连接蓝牙设备的装置第五实施例,本实施例中,本发明提出的连接蓝牙设备的装置还包括:
保存模块40,用于在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
本实施例中在主设备按排序自动连接蓝牙设备后,保存模块40实时记录连接信息并保存。具体的是在主设备与周围某一蓝牙设备建立蓝牙成功时,相关连接信息,将连接信息保存至历史记录信息,具体是按照历史记录信息的文件格式进行存储,例如历史记录信息保存在XML格式的文件中时,将连接信息以XML文件格式进行存储。
蓝牙连接信息包括,蓝牙连接的连接时间、蓝牙连接的连接时长以及蓝牙连接的连接次数。具体的,例如当设备BBB与主设备建立蓝牙连接成功时,将蓝牙连接信息更新至历史记录信息,当设备BBB与主设备建立蓝牙连接5分钟又断开后,获取其连接时间为15:34:01 31/09/2015,连接时长为300s,连接次数为在历史连接次数上累加,若之前连接次数为5,则更新后为6。
具体的,历史记录信息中设备BBB的连接信息在bt_device.xml文件中,更新为:
<device value = "1">
<bd_addr>00:00:00:00:17:DE:</bd_addr>
<device_name>BBB</device_name>
<class_of_device>24</class_of_device>
<count>5<count>
<last_timer>15:34:01 31/09/2015<last_timer>
<last_connect_time>300s< last_connect_time>
<last_time>1<last_time>
可以理解的是,蓝牙连接信息除了可以包括以上连接信息还可以在蓝牙设备更改了蓝牙设备名称时,再次保存该蓝牙设备的蓝牙名称等其他信息。
当历史记录信息根据最新的蓝牙连接情况进行更新后,主设备再次进行蓝牙连接时,可以根据最新的历史记录信息进行排序,从而进行自动连接。
本实施例通过在主设备按排列顺序自动连接蓝牙设备后,实时记录蓝牙设备与主设备之间蓝牙连接信息,并保存至历史记录信息中,使得历史记录信息根据最新的蓝牙连接情况进行更新,使得再次进行连接时,可以根据最新的历史记录信息进行排序,提高主设备蓝牙自动连接的速度。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (18)

  1. 一种连接蓝牙设备的方法,其特征在于,所述方法包括:
    在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;
    获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及
    根据所述排序控制所述主设备自动连接所述蓝牙设备。
  2. 如权利要求1所述的方法,其特征在于,所述历史记录信息包括:所述蓝牙设备与所述主设备建立蓝牙连接的连接时间、每一次蓝牙连接的连接时长、预设时间内的连接次数,所述方法还包括:
    根据所述蓝牙设备与所述主设备最近一次建立蓝牙连接的连接时间,赋予所述蓝牙设备第一权重值,其中,所述连接时间越近,则所述第一权重值越大;
    根据预设时间内所述蓝牙设备与所述主设备蓝牙连接的连接时长和连接次数,赋予所述蓝牙设备第二权重值,其中,所述连接时长越长,所述连接次数越多,则所述第二权重值越大;及
    根据所述第一权重值和所述第二权重值,对所述蓝牙设备进行排序。
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    根据所述排序获取所述蓝牙设备信息,并判断所述蓝牙设备是否均为可接受所述主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备;及
    若是,则根据所述排序控制所述主设备自动连接所述蓝牙设备。
  4. 如权利要求3所述的方法,其特征在于,若所述蓝牙设备不是均为可接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备,则从所述排序中删除无法接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备。
  5. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  6. 如权利要求2所述的方法,其特征在于,所述方法还包括:
    在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  7. 如权利要求3所述的方法,其特征在于,所述方法还包括:
    在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  8. 如权利要求4所述的方法,其特征在于,所述方法还包括:
    在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  9. 如权利要求1所述的方法,其特征在于,所述历史记录信息保存在预置的文件中。
  10. 一种连接蓝牙设备的装置,其特征在于,所述装置包括:
    扫描模块,用于在主设备的蓝牙功能开启时,扫描并确定周围的可连接的蓝牙设备;
    排序模块,用于获取所述蓝牙设备与所述主设备的连接历史记录信息,并根据所述历史记录信息对所述蓝牙设备进行排序;及
    控制模块,用于根据所述排序控制所述主设备自动连接所述蓝牙设备。
  11. 如权利要求10所述的装置,其特征在于,所述历史记录信息包括:所述蓝牙设备与所述主设备建立蓝牙连接的连接时间、每一次蓝牙连接的连接时长、预设时间内的连接次数,所述排序模块包括:
    第一赋值单元,用于根据所述蓝牙设备与所述主设备最近一次建立蓝牙连接的连接时间,赋予所述蓝牙设备第一权重值,其中,所述连接时间越近,则所述第一权重值越大;
    第二赋值单元,用于根据预设时间内所述蓝牙设备与所述主设备蓝牙连接的连接时长和连接次数,赋予所述蓝牙设备第二权重值,其中,所述连接时长越长,所述连接次数越多,则所述第二权重值越大;及
    排序单元,用于根据所述第一权重值和所述第二权重值,对所述蓝牙设备进行排序。
  12. 如权利要求10所述的装置,其特征在于,所述控制模块包括:
    判断单元,用于根据所述排序获取所述蓝牙设备信息,并判断所述蓝牙设备是否均为可接受所述主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备;及
    控制单元,用于若所述蓝牙设备均为可接收所述主设备的蓝牙连接请求并与之建立蓝牙连接的蓝牙设备,则根据所述排序控制所述主设备自动连接所述蓝牙设备。
  13. 如权利要求12所述的装置,其特征在于,所述控制模块还包括:
    删除单元,用于若所述蓝牙设备不是均为可接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备,则从所述排序中删除无法接受所述主设备的蓝牙连接请求并与该主设备建立蓝牙连接的蓝牙设备。
  14. 如权利要求10所述的装置,其特征在于,所述装置还包括:
    保存模块,用于在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  15. 如权利要求11所述的装置,其特征在于,所述装置还包括:
    保存模块,用于在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  16. 如权利要求12所述的装置,其特征在于,所述装置还包括:
    保存模块,用于在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  17. 如权利要求13所述的装置,其特征在于,所述装置还包括:
    保存模块,用于在所述主设备按所述排序自动连接所述蓝牙设备后,实时记录所述蓝牙设备与所述主设备之间蓝牙连接信息,并保存至所述历史记录信息,其中,所述蓝牙连接信息包括:所述蓝牙连接的连接时间、所述蓝牙连接的连接时长、以及所述蓝牙连接的连接次数。
  18. 如权利要求10所述的装置,其特征在于,所述历史记录信息保存在预置的文件中。
PCT/CN2016/096246 2016-05-23 2016-08-22 连接蓝牙设备的方法及装置 WO2017201899A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610344329.9A CN106102129A (zh) 2016-05-23 2016-05-23 连接蓝牙设备的方法及装置
CN201610344329.9 2016-05-23

Publications (1)

Publication Number Publication Date
WO2017201899A1 true WO2017201899A1 (zh) 2017-11-30

Family

ID=57229982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096246 WO2017201899A1 (zh) 2016-05-23 2016-08-22 连接蓝牙设备的方法及装置

Country Status (2)

Country Link
CN (1) CN106102129A (zh)
WO (1) WO2017201899A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004220A (zh) * 2020-09-16 2020-11-27 深圳市锐尔觅移动通信有限公司 蓝牙连接方法及系统、蓝牙设备及可读存储介质
CN113747406A (zh) * 2021-08-06 2021-12-03 深圳Tcl新技术有限公司 蓝牙连接方法、装置、蓝牙设备及存储介质
CN115499803A (zh) * 2022-09-08 2022-12-20 星河智联汽车科技有限公司 一种车载蓝牙连接方法、装置、设备及车辆

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107155123A (zh) * 2017-06-14 2017-09-12 深圳Tcl新技术有限公司 蓝牙设备与电视机的配对方法、电视机和可读存储介质
CN107770758A (zh) * 2017-09-21 2018-03-06 深圳市汉普电子技术开发有限公司 蓝牙音箱的蓝牙回连方法、蓝牙音箱及存储介质
CN108135033B (zh) * 2017-12-19 2020-07-31 维沃移动通信有限公司 一种蓝牙连接方法及移动终端
CN109951829B (zh) * 2017-12-20 2021-07-20 深圳光峰科技股份有限公司 蓝牙连接方法、智能终端及蓝牙设备
WO2019127322A1 (zh) * 2017-12-29 2019-07-04 深圳市名宗科技有限公司 一种无线配对系统及配对方法
CN108347720A (zh) * 2018-02-08 2018-07-31 广东欧珀移动通信有限公司 通信连接方法、装置、终端及存储介质
CN108924706B (zh) * 2018-06-26 2020-08-18 东莞市和乐电子有限公司 蓝牙耳机切换控制方法、蓝牙耳机及计算机可读存储介质
CN109286996A (zh) * 2018-10-16 2019-01-29 深圳Tcl新技术有限公司 基于蓝牙连接的模式切换方法、蓝牙设备、装置及系统
CN109151790B (zh) * 2018-10-25 2021-11-26 深圳市信富达科技有限公司 一种基于网络安全的蓝牙设备连接方法及其系统
CN109413629A (zh) * 2018-11-20 2019-03-01 智车优行科技(北京)有限公司 蓝牙重连方法
CN110191450B (zh) 2019-04-02 2021-02-26 华为技术有限公司 业务连接建立方法、蓝牙主设备、芯片及蓝牙系统
CN110809267A (zh) * 2019-10-31 2020-02-18 维沃移动通信有限公司 一种设备连接方法、电子设备及计算机可读存储介质
CN111954193B (zh) * 2020-08-06 2024-06-11 深圳市华正行科技有限公司 一种蓝牙设备连接检测方法、装置及移动终端
CN116056051B (zh) * 2022-06-06 2023-10-27 荣耀终端有限公司 蓝牙连接控制方法、系统和设备
CN115314868A (zh) * 2022-07-28 2022-11-08 杭州智缤科技有限公司 一种基于蓝牙ble通信技术进行智能消防的应用系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340212A (zh) * 2007-07-03 2009-01-07 艾威梯软件技术(北京)有限公司 按键触发蓝牙连接设备自动切换的方法、设备和系统
US20110296463A1 (en) * 2010-06-01 2011-12-01 Comcast Cable Communications, Llc Ranking search results
CN102394673A (zh) * 2011-11-17 2012-03-28 深圳市中兴移动通信有限公司 一种蓝牙设备排序的方法和系统
CN103228060A (zh) * 2013-04-02 2013-07-31 深圳市文鼎创数据科技有限公司 蓝牙配对信息的处理方法及装置
TW201533698A (zh) * 2014-02-27 2015-09-01 Univ Southern Taiwan Sci & Tec 具有個人暨親友歷史偏好餐點細部屬性記錄之訂購輔助系統

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103228059B (zh) * 2013-04-02 2017-02-08 深圳市文鼎创数据科技有限公司 蓝牙配对信息的处理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340212A (zh) * 2007-07-03 2009-01-07 艾威梯软件技术(北京)有限公司 按键触发蓝牙连接设备自动切换的方法、设备和系统
US20110296463A1 (en) * 2010-06-01 2011-12-01 Comcast Cable Communications, Llc Ranking search results
CN102394673A (zh) * 2011-11-17 2012-03-28 深圳市中兴移动通信有限公司 一种蓝牙设备排序的方法和系统
CN103228060A (zh) * 2013-04-02 2013-07-31 深圳市文鼎创数据科技有限公司 蓝牙配对信息的处理方法及装置
TW201533698A (zh) * 2014-02-27 2015-09-01 Univ Southern Taiwan Sci & Tec 具有個人暨親友歷史偏好餐點細部屬性記錄之訂購輔助系統

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004220A (zh) * 2020-09-16 2020-11-27 深圳市锐尔觅移动通信有限公司 蓝牙连接方法及系统、蓝牙设备及可读存储介质
CN113747406A (zh) * 2021-08-06 2021-12-03 深圳Tcl新技术有限公司 蓝牙连接方法、装置、蓝牙设备及存储介质
CN113747406B (zh) * 2021-08-06 2024-03-12 深圳Tcl新技术有限公司 蓝牙连接方法、装置、蓝牙设备及存储介质
CN115499803A (zh) * 2022-09-08 2022-12-20 星河智联汽车科技有限公司 一种车载蓝牙连接方法、装置、设备及车辆

Also Published As

Publication number Publication date
CN106102129A (zh) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2017201899A1 (zh) 连接蓝牙设备的方法及装置
WO2019114269A1 (zh) 一种节目续播方法、电视设备及计算机可读存储介质
WO2019019374A1 (zh) 智能语音设备控制家电的方法、装置及系统
WO2019051899A1 (zh) 终端控制方法、装置及存储介质
WO2015007007A1 (zh) 一种adc自动校正的方法及装置
WO2019051890A1 (zh) 终端控制方法、装置及计算机可读存储介质
WO2018000856A1 (zh) 一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质
WO2019062194A1 (zh) 家电设备及其控制方法、系统及计算机可读存储介质
WO2018233367A1 (zh) 立案方法、装置、终端和计算机可读存储介质
WO2015127859A1 (en) Sensitive text detecting method and apparatus
WO2018058919A1 (zh) 标识信息生成方法、装置、设备和计算机可读存储介质
WO2015158132A1 (zh) 语音控制方法和系统
WO2017185480A1 (zh) 多屏互动连接方法、装置及系统
WO2019051895A1 (zh) 终端控制方法、装置及存储介质
WO2018233221A1 (zh) 多窗口声音输出方法、电视机以及计算机可读存储介质
WO2019071762A1 (zh) 楼层位置定位方法、系统、服务器和计算机可读存储介质
WO2017063369A1 (zh) 无线直连连接方法及装置
WO2016107249A1 (zh) 卫星电视搜台的方法和装置
WO2018032688A1 (zh) 一种终端设备播放开机视频的控制方法及装置
WO2018032679A1 (zh) 电视定时开关机的设置方法和装置
WO2017113596A1 (zh) 单独听控制方法及系统、移动终端及智能电视
WO2017088437A1 (zh) 智能电视控制终端摄像头切换方法及装置
WO2018090461A1 (zh) 多声道无线音箱之间数据同步的方法及系统
WO2019056566A1 (zh) 空调参数确定方法、空调设备及可读存储介质
WO2017148028A1 (zh) 基于智能电视的远端网络连接方法和系统

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16902885

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/04/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16902885

Country of ref document: EP

Kind code of ref document: A1