WO2017201899A1 - Procédé et appareil de connexion à un dispositif bluetooth - Google Patents

Procédé et appareil de connexion à un dispositif bluetooth 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)
Chinese (zh)
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/fr

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

L'invention concerne un procédé de connexion à un dispositif Bluetooth, qui consiste: lorsque la fonction Bluetooth d'un dispositif maître est démarrée, à explorer et identifier des dispositifs Bluetooth se trouvant à proximité et pouvant être connectés; à acquérir les informations enregistrées de l'historique de connexion des dispositifs Bluetooth et du dispositif maître, et à séquencer les dispositifs Bluetooth selon les informations enregistrées de l'historique de connexion; et à commander, selon la séquence, le dispositif maître pour qu'il se connecte automatiquement aux dispositifs Bluetooth. L'invention concerne également un appareil destiné à être connecté à un dispositif Bluetooth. L'invention permet de se connecter automatiquement et rapidement à un dispositif Bluetooth.
PCT/CN2016/096246 2016-05-23 2016-08-22 Procédé et appareil de connexion à un dispositif bluetooth WO2017201899A1 (fr)

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 (fr) 2017-11-30

Family

ID=57229982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096246 WO2017201899A1 (fr) 2016-05-23 2016-08-22 Procédé et appareil de connexion à un dispositif bluetooth

Country Status (2)

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

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 (fr) * 2017-12-29 2019-07-04 深圳市名宗科技有限公司 Système d'appariement sans fil et procédé d'appariement
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 (fr) Procédé et appareil de connexion à un dispositif bluetooth
WO2019114269A1 (fr) Procédé de reprise de la visualisation d'un programme, téléviseur et support d'informations lisible par ordinateur
WO2019019374A1 (fr) Procédé, appareil et système permettant de commander un appareil électroménager à l'aide d'un dispositif vocal intelligent
WO2019051890A1 (fr) Procédé et dispositif de commande de terminal et support de stockage lisible par ordinateur
WO2015007007A1 (fr) Procédé et dispositif permettant une correction automatique d'un convertisseur analogique-numérique
WO2018000856A1 (fr) Procédé de mise en œuvre de transfert de message de réseau de recouvrement sdn, terminal, appareil et support d'informations lisible par ordinateur
WO2019062194A1 (fr) Appareil ménager, procédé et système de commande d'appareil ménager, et support d'informations lisible par ordinateur
WO2018233367A1 (fr) Procédé et appareil d'enregistrement de cas, terminal et support de stockage lisible par ordinateur
WO2015127859A1 (fr) Procédé et appareil de détection de texte sensible
WO2018058919A1 (fr) Procédé, appareil, dispositif de génération d'informations d'identification, et support de stockage lisible par ordinateur
WO2017185480A1 (fr) Procédé, dispositif et système de connexion d'interaction multi-écran
WO2015158132A1 (fr) Procede et systeme de commande vocale
WO2018233221A1 (fr) Procédé de sortie sonore multi-fenêtre, télévision et support de stockage lisible par ordinateur
WO2019071762A1 (fr) Procédé et système de positionnement au sol, serveur et support d'enregistrement lisible par ordinateur
WO2017063369A1 (fr) Procédé d'établissement d'une connexion directe sans fil et dispositif utilisant ce dernier
WO2016107249A1 (fr) Procédé et dispositif de recherche de canal pour télévision par satellite
WO2018032688A1 (fr) Procédé et appareil de commande de lecture de vidéo d'amorçage d'un dispositif terminal
WO2018149191A1 (fr) Procédé, appareil et dispositif de souscription à des polices d'assurance, et support d'informations lisible par ordinateur
WO2017113596A1 (fr) Procédé et système de commande par écoute seulement, terminal mobile, et télévision intelligente
WO2018032679A1 (fr) Procédé et dispositif de programmation synchronisée du démarrage et de l'arrêt d'un téléviseur
WO2018090461A1 (fr) Procédé et système de synchronisation de données entre des haut-parleurs sans fil multicanaux
WO2019056566A1 (fr) Procédé de détermination de paramètre de climatisation, appareil de climatisation et support de stockage lisible
WO2017088437A1 (fr) Procédé et dispositif de commande de commutation de caméras de terminal au moyen d'une télévision intelligente
WO2017148028A1 (fr) Procédé et système de connexion de réseau à distance basés sur un téléviseur intelligent
WO2013166796A1 (fr) Procédé et dispositif permettant d'identifier automatiquement un mode de lecture vidéo en 3d

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