WO2018000290A1 - 管理蓝牙连接的方法、蓝牙主设备和装置 - Google Patents

管理蓝牙连接的方法、蓝牙主设备和装置 Download PDF

Info

Publication number
WO2018000290A1
WO2018000290A1 PCT/CN2016/087816 CN2016087816W WO2018000290A1 WO 2018000290 A1 WO2018000290 A1 WO 2018000290A1 CN 2016087816 W CN2016087816 W CN 2016087816W WO 2018000290 A1 WO2018000290 A1 WO 2018000290A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
state
master device
connection
slave device
Prior art date
Application number
PCT/CN2016/087816
Other languages
English (en)
French (fr)
Inventor
王昆
杨楠
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/087816 priority Critical patent/WO2018000290A1/zh
Priority to US16/314,421 priority patent/US20190159271A1/en
Priority to KR1020197001697A priority patent/KR20190019179A/ko
Priority to JP2018568764A priority patent/JP6924783B2/ja
Priority to CN201680025161.3A priority patent/CN107852762B/zh
Priority to MYPI2018002706A priority patent/MY196659A/en
Priority to EP16906691.7A priority patent/EP3462803B1/en
Publication of WO2018000290A1 publication Critical patent/WO2018000290A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/38Connection release triggered by timers
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Definitions

  • Embodiments of the present invention relate to the field of communications and, more particularly, to a method of managing a Bluetooth connection, a Bluetooth master device, and a device.
  • Bluetooth technology is an open standard for wireless data and voice communications. Bluetooth technology uses the global 2.4GHz band, and Bluetooth technology has a data rate of 1Mbs. At present, Bluetooth technology has become the most popular means of connecting smart phones and Bluetooth slave devices by virtue of low power consumption, small size, and strong anti-interference.
  • the Bluetooth master device when the Bluetooth master device establishes a Bluetooth connection with the Bluetooth slave device, if the Bluetooth master device keeps the connection with the Bluetooth slave device, even if there is no data transmission between the Bluetooth master device and the Bluetooth slave device, other Bluetooth master devices also Unable to connect to the Bluetooth slave device, which will result in wasted resources.
  • the present application provides a method for managing a Bluetooth connection, a Bluetooth master device and a device.
  • the Bluetooth master device determines that the Bluetooth slave device does not transmit data through the Bluetooth connection, the Bluetooth master device disconnects the Bluetooth connection with the Bluetooth slave device, thereby not The user needs to manually disconnect the Bluetooth connection, so that other Bluetooth master devices can establish a Bluetooth connection with the Bluetooth slave device to avoid waste of resources.
  • a method for managing a Bluetooth connection is provided.
  • the method is applied to a scenario in which a Bluetooth master device and a Bluetooth slave device have established a Bluetooth connection.
  • the method includes: determining, by the Bluetooth master device, whether the Bluetooth slave device and the Bluetooth slave device pass the Bluetooth device.
  • the connection performs data transmission; when the Bluetooth master device determines that there is no data transmission with the Bluetooth slave device through the Bluetooth connection, the Bluetooth master device disconnects the Bluetooth connection with the Bluetooth slave device.
  • the Bluetooth master device when the Bluetooth master device determines that the Bluetooth slave device does not transmit data through the Bluetooth connection, the Bluetooth master device disconnects the Bluetooth connection with the Bluetooth slave device, thereby eliminating the need for the user to manually disconnect.
  • the Bluetooth connection makes it easy for other Bluetooth master devices to establish a Bluetooth connection with the Bluetooth slave device to avoid waste of resources.
  • the Bluetooth master device determines whether to perform data transmission with the Bluetooth slave device through a Bluetooth connection, including: the Bluetooth master device According to the working power of the Bluetooth module in the Bluetooth master device, it is determined whether data transmission is performed with the Bluetooth slave device through a Bluetooth connection.
  • the operating power of the Bluetooth module includes the transmit power and the received power of the Bluetooth module.
  • the Bluetooth master device determines, according to the working power of the Bluetooth module in the Bluetooth master device, whether the Bluetooth slave device is The device transmits data through the Bluetooth connection, including: the Bluetooth master device collects a sum of working powers of the Bluetooth module within a preset duration; and when the Bluetooth master device determines that the sum of the working powers is less than a preset power threshold, the Bluetooth master The device determines that the data transmission is not performed by the Bluetooth slave device through the Bluetooth connection; when the Bluetooth master device determines that the sum of the working powers is greater than or equal to the preset power threshold, the Bluetooth master device determines to perform the Bluetooth connection with the Bluetooth slave device. data transmission.
  • the Bluetooth master device determines whether the Bluetooth slave device is configured according to the working power of the Bluetooth module in the Bluetooth master device.
  • the device transmits data through the Bluetooth connection, including: when the Bluetooth master detects that the working power of the Bluetooth module is lower than a preset power threshold, starts timing; when the Bluetooth master detects that the working power of the Bluetooth module is less than a preset When the duration of the power threshold exceeds the preset duration, the Bluetooth master determines that the data transmission is not performed by the Bluetooth slave device through the Bluetooth connection; when the Bluetooth master device detects that the working power of the Bluetooth module is greater than or equal to the preset power threshold Or, when the Bluetooth master detects that the working power of the Bluetooth module is less than the preset power threshold for a preset duration, the Bluetooth master determines to perform data transmission with the Bluetooth slave device through a Bluetooth connection. .
  • the Bluetooth master device determines whether to perform data transmission with the Bluetooth slave device through a Bluetooth connection, including: the Bluetooth master device according to the application that applies the Bluetooth connection The status of the program APP determines whether the data is transmitted through the Bluetooth connection with the Bluetooth slave device; when it is determined that the APP is out of operation, the Bluetooth master device determines that there is no data transmission with the Bluetooth slave device through the Bluetooth connection; when it is determined that the APP is In operation, the Bluetooth master device determines to transmit data with the Bluetooth slave device via a Bluetooth connection.
  • the Bluetooth master device is disconnected from the Before the Bluetooth connection of the Bluetooth slave device, the method further includes: the Bluetooth master device notifying the Bluetooth slave The device enters the pairing state or the state to be connected.
  • the method further includes: the Bluetooth master device turns off the Bluetooth function of the Bluetooth master device.
  • the Bluetooth function of the Bluetooth master device is in a closed state, which can reduce the power consumption of the Bluetooth master device.
  • a second aspect provides a method for managing a Bluetooth connection, wherein an application APP corresponding to a Bluetooth slave device is installed in the Bluetooth master device, and the method includes: when the Bluetooth master device detects that the running state of the APP is When a state transitions to the second state, the Bluetooth master determines a current state of the Bluetooth function of the Bluetooth master device, wherein the first state and the second state are respectively one of an open state and a closed state, the first A state is different from the second state; when the Bluetooth master determines that the current state of the Bluetooth function of the Bluetooth master device is different from the state of the Bluetooth function corresponding to the second state, the Bluetooth master device The state of the Bluetooth function is switched to the state in which the second state requires the corresponding Bluetooth function.
  • the Bluetooth function of the Bluetooth main device can be automatically or turned off by the requirement of the status of the Bluetooth function by the application APP corresponding to the Bluetooth slave device installed on the Bluetooth master device, thereby avoiding The inconvenience caused by the user manually turning on and off the Bluetooth function simplifies the user's operation and improves the user experience.
  • the information about the Bluetooth slave device is stored in the Bluetooth master device, the second state is an on state, and the second state requires a corresponding Bluetooth function.
  • the method is further configured to: the Bluetooth master device searches for a Bluetooth device around the Bluetooth master device; and when the Bluetooth master device searches for the Bluetooth slave device, automatically establishes a Bluetooth connection with the Bluetooth slave device.
  • a Bluetooth master device for performing the method of any of the first aspect or the first aspect of the first aspect.
  • the Bluetooth master device comprises means for performing the method of any of the first aspect or the first aspect of the first aspect described above.
  • a Bluetooth master device for performing the method of any of the foregoing second aspect or any of the possible implementations of the second aspect.
  • the Bluetooth master device comprises means for performing the method of any of the above-described second aspect or any of the possible implementations of the second aspect.
  • a Bluetooth master device including a processor, a memory, and a Bluetooth module.
  • the processor, the memory and the Bluetooth module are connected by a bus system for storing instructions, and the Bluetooth module receives and sends a message according to the control of the processor to implement between the Bluetooth host device and other terminal devices.
  • a Bluetooth master device includes a processor, a memory, and a Bluetooth module, the processor, the memory, and the Bluetooth module are connected by a bus system, where the memory is used to store instructions, and the Bluetooth module is configured according to the processor Controlling to receive and send a message to enable Bluetooth communication between the Bluetooth master device and other terminal devices, the processor for invoking instructions stored in the memory to perform any of the possible implementations of the second aspect or the second aspect above The method in the way.
  • a seventh aspect a computer readable medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • a computer readable medium for storing a computer program comprising instructions for performing the method of the second aspect or any of the possible implementations of the second aspect.
  • FIG. 1a and 1b are schematic diagrams of a Bluetooth switch icon in accordance with an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an application scenario of an embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of a smartphone according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for managing a Bluetooth connection according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a user interface of a smartphone according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a method for managing a Bluetooth connection according to another embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a method for managing a Bluetooth connection according to still another embodiment of the present invention.
  • FIG. 8 is a schematic block diagram of a Bluetooth master device according to an embodiment of the present invention.
  • FIG. 9 is a schematic block diagram of a Bluetooth master device according to another embodiment of the present invention.
  • Figure 10 is a schematic block diagram of an apparatus in accordance with an embodiment of the present invention.
  • FIG. 11 is another schematic block diagram of an apparatus in accordance with an embodiment of the present invention.
  • Figure 12 is a schematic block diagram of an apparatus in accordance with another embodiment of the present invention.
  • Figure 13 is another schematic block diagram of an apparatus in accordance with another embodiment of the present invention.
  • the Bluetooth master device can search for surrounding Bluetooth slave devices.
  • the user can select the Bluetooth slave device that needs to be connected, can initiate Bluetooth pairing actively, match the Bluetooth master device and the Bluetooth slave device by matching the password, and have a Bluetooth-enabled smartphone or personal.
  • a computer Personal Computer, referred to as "PC" is a Bluetooth master device.
  • a Bluetooth slave device that does not actively initiate a Bluetooth pairing request.
  • a Bluetooth slave device generally does not have an input terminal.
  • a 4-bit or 6-digit matching password is solidified in the Bluetooth chip of the Bluetooth slave device.
  • Bluetooth speakers, Bluetooth headsets, etc. are all Bluetooth slave devices.
  • the Bluetooth master disconnects from the Bluetooth slave device, and the Bluetooth master device disconnects from the Bluetooth slave device, and the Bluetooth connection is disconnected, which does not cause the Bluetooth function of the Bluetooth master device to be disabled. Off, so the Bluetooth master can also establish a Bluetooth connection with other Bluetooth slaves.
  • the Bluetooth master device When the Bluetooth function of the Bluetooth master device is turned off, that is, the Bluetooth module does not work, the Bluetooth master device cannot establish a Bluetooth connection with other Bluetooth slave devices.
  • the Bluetooth function can be turned on and off by the Bluetooth switch icon on the Bluetooth master device.
  • the Bluetooth switch icon on the Bluetooth main device as shown in the left figure of Figure 1a, turns off the Bluetooth function.
  • the Bluetooth function is enabled.
  • FIG. 1b another form of the Bluetooth switch icon, when the user clicks the Bluetooth switch icon, the Bluetooth switch icon turns gray, and the Bluetooth function is turned off; when the user clicks the Bluetooth switch, the Bluetooth switch icon becomes highlighted, and the Bluetooth function is enabled. . Turning off the Bluetooth function causes the Bluetooth master to disconnect from the Bluetooth slave device.
  • Bluetooth master If there is a paired Bluetooth slave device on the device, you can choose to connect to the Bluetooth slave device through menu operation, or disconnect the Bluetooth slave device. You can also choose to cancel pairing with the paired Bluetooth slave device through menu operation. . The Bluetooth master device and the Bluetooth slave device disconnect the Bluetooth connection, and the pairing information will remain. The next time you connect to the Bluetooth slave device, you do not need to pair again. If the Bluetooth master and the Bluetooth slave are unpaired, the next time you establish a Bluetooth connection, you need to pair first.
  • the embodiment of the invention is applied to a scenario in which a Bluetooth master device and a Bluetooth slave device perform data interaction by establishing a Bluetooth connection.
  • the smart phone AD is a Bluetooth master device
  • the bluetooth speaker is a Bluetooth slave device.
  • the smart phone AD and the bluetooth speaker need to be paired or connected, the user needs to manually turn on Bluetooth function of the smartphone AD.
  • the smart phone A and the bluetooth speaker establish a Bluetooth connection
  • the user needs to manually turn off the Bluetooth switch of the smart phone A or manually disconnect the Bluetooth connection, and one of the smart phones B-D can establish a connection with the bluetooth speaker.
  • the smartphone A will still maintain the Bluetooth connection with the bluetooth speaker, occupying the channel, and the smart phone B-D cannot establish a Bluetooth connection with the bluetooth speaker, resulting in waste of resources.
  • a method of managing a Bluetooth connection can be provided to avoid waste of resources.
  • a method for managing a Bluetooth connection will be described below by taking a Bluetooth host device as a smart phone as an example. It is to be understood that the smart phone is exemplified for convenience of description and does not limit the scope of protection of the embodiments of the present invention.
  • FIG. 3 shows a block diagram of a portion of the structure of a smartphone 100 related to an embodiment of the present invention.
  • the smart phone 100 includes a radio frequency (Radio Frequency, abbreviated as "RF") circuit 110, a memory 120, an input unit 130, a display unit 140, an audio circuit 150, a Bluetooth module 160, a processor 170, and a power source 180. component.
  • RF Radio Frequency
  • the structure of the smartphone shown in FIG. 3 does not constitute a limitation to the smartphone, and may include more or less components than those illustrated, or combine some components, or different component arrangements. .
  • the smart phone may further include a sensor, a camera, a wireless fidelity (“WiFi”) module, and the like, and details are not described herein.
  • WiFi wireless fidelity
  • the RF circuit 110 can be used for receiving and transmitting signals during transmission and reception of information or during a call.
  • the processing is performed by the processor 170.
  • data related to the uplink is sent to Base station.
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the RF circuit 110 can also communicate with the network through wireless Network and other devices communicate.
  • the wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (“GSM”), General Packet Radio Service (“GPRS”). , Code Division Multiple Access (“CDMA”), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE) , email, short message service (Short Messaging Service, referred to as "SMS").
  • GSM Global System of Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • the memory 120 can be used to store software programs and modules, and the processor 170 executes various functional applications and data processing of the smartphone 100 by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data (such as audio data, phone book, etc.) created according to the use of the smartphone 100.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the smartphone 100.
  • the input unit 130 may include a touch panel and other input devices.
  • a touch panel also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like, any suitable object or accessory on or near the touch panel).
  • the corresponding connecting device is driven according to a preset program.
  • the touch panel may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user as well as various menus of the device.
  • the display unit 140 may include a display panel.
  • a liquid crystal display (“LCD”) or an organic light emitting diode (Organic) may be used.
  • Light-Emitting Diode (“OLED”) is used to configure the display panel.
  • the touch panel may cover the display panel, and when the touch panel detects a touch operation on or near the touch panel, the touch panel transmits to the processor to determine the type of the touch event, and then the processor 170 displays the panel according to the type of the touch event. Provide corresponding visual output on it.
  • the touch panel and the display panel are two independent components to implement the input and output functions of the smartphone 100, in some embodiments, the touch panel and the display panel may be integrated to realize the smart function.
  • the input and output functions of the mobile phone 100 may include a display panel.
  • LCD liquid crystal display
  • Organic organic light emitting diode
  • OLED Light-E
  • the audio circuit 150, the speaker, and the microphone can provide an audio interface between the user and the smartphone 100.
  • the audio circuit 150 can transmit the converted electrical data of the received audio data to the speaker, and convert it into a sound signal output by the speaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 150 and then converted.
  • the audio data is output to memory 170 for further processing.
  • the Bluetooth module 160 is a chip basic circuit set integrating the Bluetooth function, and the Bluetooth module 160 can perform wireless transmission according to the Bluetooth protocol.
  • the processor 170 is a control center of the smartphone 100 that connects various portions of the entire smartphone 100 using various interfaces and lines, by running or executing software programs and/or modules stored in the memory, and recalling stored in the memory 120.
  • the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 170.
  • a power source 180 such as a battery, is used to power the various components.
  • the power source can pass through the power rail system and the processor logic vector to manage functions such as charging, discharging, and power consumption through the power management system.
  • method 1000 includes:
  • the processor 170 of the smart phone A determines whether the smart phone A and the bluetooth speaker have data transmission through the Bluetooth connection;
  • the processor 170 of the mobile phone A determines whether the smart phone A and the bluetooth speaker transmit data through the Bluetooth connection.
  • the data transmission refers to the transmission of information such as music, documents, and video.
  • the processor 170 of the smart phone A determines whether the smart phone A transmits data through the Bluetooth connection and the bluetooth speaker through the working power of the Bluetooth module 160 of the smart phone A, and the Bluetooth module 160 of the smart phone A
  • the operating power can be transmit power and/or receive power.
  • the time point for detecting the working power of the Bluetooth module 160 of the smartphone A may be preset, and the smartphone A is The processor 170 detects the operating power of the Bluetooth module 160 of the smartphone A at each preset time point.
  • the processor 170 of the smartphone A detects that the operating power of the Bluetooth module 160 of the smartphone A is lower than a certain time point.
  • the processor 170 of the smartphone A determines that the smartphone A and the Bluetooth speaker are not transmitting data.
  • the processor of the smartphone A can periodically detect the operating power of the Bluetooth module 160 of the smartphone A.
  • the processor 170 of the smart phone A detects the working power of the Bluetooth module 160 of the smart phone A in real time, and starts timing when detecting that the working power of the Bluetooth module 160 of the smart phone A is lower than the preset power threshold, when the smart phone A processes
  • the device 170 detects that the working power of the Bluetooth module 160 of the smartphone A is less than the preset power threshold for more than the preset duration, and then considers that the smartphone A does not perform data transmission with the Bluetooth speaker through the Bluetooth connection.
  • the processor 170 of the smartphone A detects that the operating power of the Bluetooth module 160 is not less than the preset power threshold, or when the operating power of the Bluetooth module 160 is less than the preset power threshold, the duration is not exceeded, Mobile phone A and Bluetooth speaker for data transmission.
  • the processor 170 of the smartphone A can count the sum of the working powers of the Bluetooth module 160 of the smart phone A for a preset duration, and determine whether the smart phone A and the Bluetooth are based on the relationship between the sum of the working power and the preset power threshold.
  • the speaker transmits data via a Bluetooth connection.
  • the preset power threshold compared with the sum of the working powers and the preset power threshold mentioned in the previous paragraph may be set to different values.
  • the processor 170 of the smart phone A determines whether the smart phone A is connected to the bluetooth speaker via a Bluetooth connection according to the relationship between the working power of the Bluetooth module 160 and the preset power threshold for a period of time by the Bluetooth module 160 of the smart phone A. data transmission.
  • P is the operating power of the Bluetooth module 160 of the smartphone A, and P can be expressed by the formula (1):
  • x is the Bluetooth signal sent or received by Bluetooth module 160 of smartphone A (mainly for Bluetooth speakers), and X can be expressed as a function of time and angular frequency as variables.
  • the operating power of the Bluetooth module 160 can be obtained from the power management module in the smartphone A.
  • the processor 170 of the smartphone A can start recording the working power of the Bluetooth module 160 of the smart phone A starting from any one time point, and the processor 170 of the smart phone A counts the Bluetooth module of the smart phone A for a period of time. After the sum of the working powers of 160, the sum of the working powers is compared with the preset power threshold P threshold . If P is less than P threshold , it is considered that the smartphone A does not transmit data through the Bluetooth connection with the Bluetooth speaker, and needs to be disconnected from the Bluetooth. Bluetooth connection for the speaker. If P is greater than or equal to P threshold , it is considered that the smartphone A and the Bluetooth speaker have data transmission through the Bluetooth connection, and there is no need to disconnect the Bluetooth connection between the smartphone A and the Bluetooth speaker.
  • the processor 170 of the smart phone A can determine whether the smart phone A and the bluetooth speaker transmit data through the Bluetooth connection according to the state of the application corresponding to the Bluetooth speaker (Application, referred to as “APP”).
  • APP Application, referred to as “APP”.
  • the processor 170 of the smartphone A determines that the APP corresponding to the Bluetooth speaker is in the on state, it is determined that the smartphone A and the Bluetooth speaker transmit data through the Bluetooth connection, and when the processor 170 of the smartphone A determines that the APP corresponding to the Bluetooth speaker is in the off state
  • the smartphone A and the Bluetooth speaker are not transmitted through the Bluetooth connection.
  • the smart phone A can detect the use of the Bluetooth connection, that is, whether the data transmission is performed through the Bluetooth connection, thereby controlling the Bluetooth connection with the bluetooth speaker, and disconnecting the bluetooth speaker when it is determined that the data transmission is not performed through the Bluetooth connection.
  • the connection so that other smartphones can establish a Bluetooth connection with the Bluetooth speaker.
  • the Bluetooth function of the smartphone A can be turned off, and the user is prompted to turn off the Bluetooth function, which can save the power consumption of the mobile phone.
  • the smart phone A determines that there is no data transmission with the bluetooth speaker
  • the smart phone A disconnects the bluetooth connection of the bluetooth speaker
  • the smart phone A notifies the bluetooth speaker to enter the pairing state or to be connected through the bluetooth connection.
  • the Bluetooth master device is manually disconnected from the Bluetooth connection by the user
  • the corresponding Bluetooth slave device still cannot establish a connection with other Bluetooth master devices, and the user needs to manually restart the Bluetooth slave device, and the Bluetooth slave device can establish with other Bluetooth master devices.
  • Connection in this example, smartphone A instructs the Bluetooth speaker to enter the pairing state or to be connected before disconnecting the Bluetooth speaker from the Bluetooth speaker, and the Bluetooth speaker switches state after receiving the indication, so that other smartphones can be connected to the Bluetooth speaker.
  • the processor 170 of the smart phone A detects the state of the Bluetooth switch icon of the smart phone A, and when the blue switch icon is turned off, notifies the bluetooth speaker to enter the state to be connected or the pairing state, and disconnects the smart phone A and the bluetooth. Bluetooth connection for the speaker.
  • the Bluetooth slave When the Bluetooth slave is in the standby state, the Bluetooth slave can be searched for a Bluetooth connection with the previously paired Bluetooth master.
  • the Bluetooth slave device When the Bluetooth slave device is in the pairing state, the Bluetooth slave device can be searched with the unpaired Bluetooth master device, paired by key pairing method, and a Bluetooth connection is established.
  • the smart phone A notifies the bluetooth speaker to enter the state to be connected, the Bluetooth connection of the smart phone A and the bluetooth speaker is disconnected, and the bluetooth speaker
  • the Bluetooth module 160 of the smart phone B performs a device search, and when the Bluetooth speaker is searched, the smart phone B automatically establishes a connection with the bluetooth speaker.
  • the smartphone A notifies the Bluetooth speaker to enter the state to be connected, which can be realized by instructing the Bluetooth speaker to turn off and then on.
  • the smartphone A notifies the Bluetooth speaker to enter the pairing state, the Bluetooth connection of the smartphone A and the Bluetooth speaker is disconnected, the Bluetooth speaker enters the pairing state, and the Bluetooth function of the smartphone B is After being turned on, the Bluetooth module 160 of the smart phone B performs device search.
  • searching for the bluetooth speaker the smart phone B needs to complete the pairing connection between the smart phone B and the bluetooth speaker through the pairing password.
  • the bluetooth speaker saves the information of the smart terminal B.
  • the smart terminal B searches for the bluetooth speaker again, the smart terminal B can directly establish a Bluetooth connection with the bluetooth speaker.
  • the smart phone BD wants to establish a connection with the bluetooth speaker. If the smart phone BD is only the smart phone B and the bluetooth speaker Paired, Bluetooth speaker and smartphone B set up blue If the smartphone B-D is paired with the Bluetooth speaker, the highest priority smartphone D can be paired with the Bluetooth speaker to establish a Bluetooth connection according to the preset priority order.
  • the smart phone A is installed on the smart phone A as an example.
  • the memory 120 of the smartphone A records the APP-related attributes corresponding to the Bluetooth speaker. These related attributes may include whether the APP needs to apply the Bluetooth function, and whether the APP has the Bluetooth function of turning on the smartphone A.
  • the permission, etc. may also include the Bluetooth device type corresponding to the APP corresponding to the Bluetooth speaker, such as a Bluetooth headset, a Bluetooth speaker, a Bluetooth bracelet, etc., and the APP corresponding to the APP is displayed on the display unit 140 of the smartphone A after the installation is completed.
  • the icon is convenient for the user to operate.
  • the user interface of the smartphone A shown in FIG. 5 the icon corresponding to the APP is “Bluetooth speaker”, and the APP corresponding to the following Bluetooth speaker is called “Bluetooth speaker APP”.
  • the correspondence between the switch state of the Bluetooth speaker APP and the state of the required Bluetooth function may be stored in the memory 120 of the smartphone A.
  • Table 1 shows a possible switch state of the Bluetooth speaker APP. Correspondence with the state of the required Bluetooth function.
  • the processor 170 of the smartphone A detects the on state of the Bluetooth APP to determine the on/off state of the Bluetooth function.
  • the smartphone A determines the status of the current Bluetooth function, and determines whether it is consistent with the state of the required Bluetooth function, such as the current Bluetooth function status is off, the Bluetooth speaker APP is turned on the required Bluetooth.
  • the function status is on, if the two are inconsistent, the current Bluetooth function status is switched to the state of the required Bluetooth function, that is, the current Bluetooth function status is switched on, and the two are consistent; accordingly, when Bluetooth is detected Speaker
  • the APP is switched from on to off, and the smartphone A determines whether the current state of the Bluetooth function is turned off, and if so, remains off, if not, the smartphone A turns off the Bluetooth function.
  • the memory 120 of the smart phone A can store the information of the bluetooth speaker corresponding to the Bluetooth speaker APP.
  • the Bluetooth speaker APP is turned on, and the Bluetooth function is turned on, the smart phone A searches for the surrounding bluetooth device;
  • the mobile phone A searches for the bluetooth speaker, it automatically establishes a Bluetooth connection with the bluetooth speaker.
  • FIG. 6 is a diagram of a method of managing a Bluetooth connection in accordance with another embodiment of the present invention.
  • the method 2000 shown in Figure 6 includes:
  • the Bluetooth speaker APP determines whether the Bluetooth function of the smartphone A is turned on;
  • the user opens the Bluetooth speaker APP by clicking on the "Bluetooth Speaker” icon on the display unit 140 of the smartphone A (as shown in FIG. 5). Smartphone A runs the Bluetooth Speaker APP.
  • the Bluetooth speaker APP determines whether the Bluetooth function of the smartphone A is turned on by detecting the state of the Bluetooth module 160 in the smartphone A. Or the Bluetooth speaker APP reads the status of the Bluetooth switch icon to determine whether the Bluetooth function of the smartphone A is turned on.
  • the Bluetooth speaker APP determines that the Bluetooth function of the smartphone A is not turned on, the Bluetooth speaker APP performs the Bluetooth function of the smartphone A by transmitting the Bluetooth function of the smartphone A to the Bluetooth module 160 of the smartphone A, and then the Bluetooth function of the smartphone A is turned on. Execute the S2200.
  • the memory 120 in the smartphone A records the pairing information of the Bluetooth speaker APP and the Bluetooth speaker. After the Bluetooth function of the smartphone A is turned on, the Bluetooth speaker APP searches for the Bluetooth speaker, and searches for Automatically establish a Bluetooth connection with the Bluetooth speaker when you reach the Bluetooth speaker.
  • the Bluetooth speaker APP has not been paired with the Bluetooth speaker before, after the Bluetooth function of the smartphone A is turned on, the surrounding Bluetooth device is scanned, and the Bluetooth device is automatically paired according to the Bluetooth device type corresponding to the Bluetooth speaker APP. After pairing, the smartphone is paired. A's memory 120 will save the Bluetooth speaker's identification information, Bluetooth speaker's function information, etc. After the Bluetooth speaker APP is turned on again, the Bluetooth speaker APP automatically searches for the Bluetooth speaker corresponding to the identity information, and automatically establishes Bluetooth with the Bluetooth speaker. connection.
  • Smartphone A can enter the Bluetooth setting interface to display the surrounding Bluetooth devices, and the user can manually select the Bluetooth speakers for pairing.
  • the Bluetooth speaker APP determines whether an instruction to exit the operation is received
  • the user can exit the Bluetooth speaker APP by operating the Bluetooth speaker APP, or the Bluetooth speaker APP can be taken out of operation by the mobile application management software.
  • the Bluetooth speaker APP notifies the Bluetooth speaker to enter the connected state or the pairing state when receiving the exit running instruction.
  • the S2400 is an optional step, and the S2500 can be directly executed after the step S2300.
  • the Bluetooth speaker APP on the smartphone B wishes to establish a Bluetooth connection with the Bluetooth speaker, and if the Bluetooth speaker APP on the smartphone B is previously paired with the Bluetooth speaker, The Bluetooth Speaker app on Smartphone B automatically establishes a connection with the Bluetooth speaker. Otherwise, the Bluetooth speaker APP on the smartphone B and the Bluetooth speaker are connected via a key pair for Bluetooth connection.
  • Bluetooth speaker APP disconnects and Bluetooth connection of Bluetooth speaker
  • disconnection of the Bluetooth speaker APP and the Bluetooth connection of the Bluetooth speaker refer to disconnecting the physical layer of the Bluetooth module of the smartphone A and the Bluetooth speaker, that is, the disconnection of the Bluetooth speaker APP and the data transmission between the Bluetooth speakers. aisle.
  • Bluetooth speaker APP turns off the Bluetooth function of smartphone A
  • the Bluetooth speaker APP turns off the Bluetooth function of the smartphone A by instructing the Bluetooth module 160 of the smartphone A to reduce the power consumption of the smartphone A.
  • the Bluetooth speaker APP can determine whether the Bluetooth function of the smartphone A is turned on when the Bluetooth speaker APP is turned on, and if not, the S2600 is not executed; if the Bluetooth function of the smartphone A is not enabled, the S2600 is executed. After the Bluetooth speaker APP is turned off, the Bluetooth function of the smartphone A restores the state before the Bluetooth speaker APP is turned on.
  • the Bluetooth speaker APP can be provided by the manufacturer of the Bluetooth speaker.
  • the Bluetooth speaker APP has the program code corresponding to the above steps.
  • the steps in this embodiment can be implemented by the processor 170 of the smartphone A running the Bluetooth speaker APP.
  • FIG. 7 illustrates a method of managing a Bluetooth connection according to still another embodiment of the present invention. As shown in FIG. 7, the method 3000 includes:
  • the user opens the Bluetooth speaker APP by clicking on the "Bluetooth Speaker” icon on the display unit 140 of the smartphone A (as shown in FIG. 5).
  • the smart phone A determines whether the Bluetooth speaker APP has the right to use the Bluetooth function according to the attribute of the Bluetooth speaker APP; when it is determined that the Bluetooth speaker APP has the use right of the Bluetooth function, step S3300 is performed; alternatively, the smart phone A can skip the S3200 Execute the S3300 after executing S3100.
  • the properties of the Bluetooth speaker APP can be recorded to the default settings in the memory 120 of the smartphone A at the time of installation, or can be set by the user when the Bluetooth speaker APP is running. It may include whether the Bluetooth speaker APP has the right to use the Bluetooth function, the identity information of the Bluetooth speaker bound by the Bluetooth speaker APP, and the like.
  • the smart phone A determines whether the Bluetooth function is enabled, if it is enabled, the S3500 is executed; if not, the S3400 is executed;
  • the memory 120 in the smartphone A records the pairing information of the Bluetooth speaker APP and the Bluetooth speaker. After the Bluetooth function of the smartphone A is turned on, the search for the paired Bluetooth speaker is performed. Automatically establish a Bluetooth connection with the Bluetooth speaker when the Bluetooth speaker is searched.
  • the Bluetooth speaker APP If the Bluetooth speaker APP has not been paired with the Bluetooth speaker before, after the Bluetooth function of the smartphone A is turned on, the Bluetooth speaker APP needs to be paired with the Bluetooth speaker first, and the user inputs the pairing password through the input unit 130 of the smartphone A to realize the Bluetooth speaker.
  • the memory 120 of the smartphone A After pairing with the Bluetooth speaker, after pairing, the memory 120 of the smartphone A will save the identification information of the bluetooth speaker, the function information of the bluetooth speaker, etc., and after the Bluetooth speaker APP is turned on, automatically search for the bluetooth speaker and the bluetooth speaker. Automatically establish a Bluetooth connection.
  • the user can exit the Bluetooth speaker APP by operating the Bluetooth speaker APP, or the Bluetooth speaker APP can be taken out of operation by the mobile application management software.
  • the smartphone A notifies the Bluetooth speaker to enter the connected state or the pairing state through the Bluetooth connection.
  • the Bluetooth speaker APP on the smartphone B wishes to establish a Bluetooth connection with the Bluetooth speaker, and if the Bluetooth speaker APP on the smartphone B is previously paired with the Bluetooth speaker, The Bluetooth Speaker app on Smartphone B automatically establishes a connection with the Bluetooth speaker. Otherwise, the Bluetooth speaker APP on the smartphone B and the Bluetooth speaker are connected via a key pair for Bluetooth connection.
  • the S3700 is an optional step. After step S3600, the S3800 can be directly executed.
  • the Bluetooth connection of the smartphone A disconnected and the Bluetooth speaker refers to disconnecting the physical layer of the Bluetooth module of the smartphone A and the Bluetooth speaker, that is, the Bluetooth speaker APP is disconnected and the data transmission between the Bluetooth speakers is performed. aisle.
  • Smartphone A turns off the Bluetooth function of Smartphone A
  • the smartphone A turns off the Bluetooth function of the smartphone A to reduce the power consumption of the smartphone A.
  • the smart phone A can determine whether the Bluetooth function of the smart phone A is turned on when the bluetooth speaker APP is turned on, and if not, the S3900 is not executed; if the bluetooth function of the smart phone A is not turned on, the S3900 is executed. After the Bluetooth speaker APP is turned off, the Bluetooth function of the smartphone A restores the state before the Bluetooth speaker APP is turned on.
  • the program code of the smartphone A performing the above steps may be independent of the code of the Bluetooth speaker APP, that is, may be other applications, such as a management application of the mobile phone.
  • FIG. 6 and FIG. 7 can be combined with the embodiment of FIG. 4, that is, when the Bluetooth speaker APP is running, it is detected whether there is data transmission with the bluetooth speaker, and if there is no data transmission, the Bluetooth with the bluetooth speaker is automatically disconnected. connection.
  • the Bluetooth master device 10 includes :
  • the Bluetooth unit 11 is configured to establish a Bluetooth connection between the Bluetooth master device and the Bluetooth slave device, perform data transmission with the Bluetooth slave device through a Bluetooth connection, and disconnect a Bluetooth connection between the Bluetooth master device and the Bluetooth slave device;
  • the processing unit 12 is configured to determine whether the Bluetooth master device is connected to the Bluetooth slave device via Bluetooth Data transmission is performed. When it is determined that the Bluetooth master device does not perform data transmission with the Bluetooth slave device through a Bluetooth connection, the Bluetooth unit 11 is instructed to disconnect the Bluetooth master device from the Bluetooth slave device.
  • the Bluetooth master device determines that the Bluetooth connection with the Bluetooth slave device is disconnected when the Bluetooth slave device does not transmit data via the Bluetooth connection, thereby eliminating the need for the user to manually disconnect the Bluetooth connection, thereby facilitating other Bluetooth masters.
  • the device is connected to the Bluetooth slave device to avoid waste of resources.
  • the processing unit 12 includes a power detecting unit 121, and the power detecting unit 121 is configured to: determine, according to the working power of the Bluetooth unit 11, whether the Bluetooth master device is Data transmission with the Bluetooth slave device via Bluetooth connection.
  • the power detecting unit 121 is specifically configured to: calculate a sum of working powers of the Bluetooth unit within a preset duration; and determine that the sum of the working powers is less than a preset power threshold, determine The Bluetooth master device does not perform data transmission with the Bluetooth slave device through a Bluetooth connection; when it is determined that the sum of the working powers is greater than or equal to the preset power threshold, determining that the Bluetooth master device and the Bluetooth slave device transmit data through a Bluetooth connection .
  • the power detecting unit 121 is specifically configured to: when detecting that the working power of the Bluetooth unit 11 is lower than a preset power threshold, start timing; when the operation of the Bluetooth unit 11 is detected When the duration of the power less than the preset power threshold exceeds the preset duration, it is determined that the Bluetooth master device does not transmit data through the Bluetooth connection with the Bluetooth slave device; when detecting that the working power of the Bluetooth unit 11 is greater than or equal to the preset power When the threshold is detected, or when the duration of detecting that the working power of the Bluetooth unit 11 is less than the preset power threshold does not exceed the preset duration, it is determined that the Bluetooth master device and the Bluetooth slave device perform data transmission through a Bluetooth connection.
  • the processing unit 12 further includes an application APP detecting unit 122, where the APP detecting unit 122 is configured to: according to the state of the APP to which the Bluetooth connection is applied. Determining whether the Bluetooth master device performs data transmission with the Bluetooth slave device through a Bluetooth connection; when it is determined that the APP is out of operation, determining that the terminal device does not transmit data through the Bluetooth connection with the Bluetooth slave device; when determining that the APP is running When it is determined, the terminal device and the Bluetooth slave device perform data transmission through a Bluetooth connection.
  • the Bluetooth unit 11 is further configured to notify the Bluetooth slave device to enter a pairing state or a to-be-connected state before disconnecting the Bluetooth master device from the Bluetooth slave device.
  • the processing unit 12 further includes The Bluetooth control unit 123 is configured to turn off the Bluetooth function of the Bluetooth master device after the Bluetooth unit 11 disconnects the Bluetooth master device from the Bluetooth slave device.
  • the Bluetooth master device 10 herein is embodied in the form of a functional unit.
  • the term "unit” herein may refer to an application specific integrated circuit ("ASIC"), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary A processor or group processor, etc.) and memory, merge logic, and/or other suitable components that support the functions described.
  • ASIC application specific integrated circuit
  • the Bluetooth master device 10 may be used to perform related processes and/or steps in the method 1000 in the foregoing method embodiments. To avoid repetition, details are not described herein again.
  • FIG. 10 shows a device integrated in a Bluetooth master device for performing functions related to a Bluetooth slave device, as shown in FIG. 10, the device 20 includes: an operation state detecting unit 21, Bluetooth, according to an embodiment of the present invention. Detection unit 22 and Bluetooth control unit 23;
  • An operation state detecting unit 21 configured to detect an operating state of the device
  • the Bluetooth detecting unit 22 is configured to determine a current state of the Bluetooth function of the Bluetooth master device when the running state detected by the running state detecting unit 21 is changed from the first state to the second state, where the first state and the first state
  • the second state is one of an open state and a closed state, the first state being different from the second state;
  • the Bluetooth control unit 23 is configured to: when the Bluetooth detection unit 22 determines that the current state of the Bluetooth function is different from the state of the Bluetooth function that the second state needs to be, the state of the Bluetooth function is switched to the second state. The status of the Bluetooth function.
  • the Bluetooth function of the Bluetooth main device can be automatically turned on or off according to the requirement of the state of the Bluetooth function according to the running state thereof, thereby reducing the power consumption of the Bluetooth main device and avoiding manual operation by the user.
  • the inconvenience caused by turning Bluetooth on and off increases the user experience.
  • the device further includes:
  • the storage unit 24 is configured to store information of the Bluetooth slave device, where the Bluetooth slave device may be a preset Bluetooth slave device corresponding to the Bluetooth unit 11 or a Bluetooth slave device paired with the Bluetooth master device;
  • the processing unit 25 is configured to enable the Bluetooth master device to automatically establish a Bluetooth connection with the Bluetooth slave device when the second state is an on state and the state of the Bluetooth function is an on state.
  • the state of the Bluetooth function here is the on state, which means that the Bluetooth function is actually turned on, instead of the required Bluetooth function state. Understandably, for unpaired Bluetooth slaves
  • the Bluetooth master device automatically performs a pairing operation before establishing a Bluetooth connection with the Bluetooth slave device.
  • the device 20 may correspond to the Bluetooth speaker APP in the method 2000 of the embodiment of the present invention, and the modules and the other operations and/or functions in the device 20 are respectively implemented to implement the method 2000.
  • the corresponding process for the sake of brevity, will not be described here.
  • FIG. 12 shows an apparatus according to another embodiment of the present invention, which is integrated in a Bluetooth main device, in which an application APP corresponding to a Bluetooth slave device is installed, as shown in FIG. 30 includes: an APP detecting unit 31, a Bluetooth detecting unit 32, and a Bluetooth control unit 33;
  • the APP detecting unit 31 is configured to detect an operating state of the APP.
  • the Bluetooth detecting unit 32 is configured to determine a current state of the Bluetooth function of the Bluetooth master device when the APP detecting unit 31 detects that the running state of the APP changes from the first state to the second state, where the first state And the second state is one of an open state and a closed state, the first state and the second state being different;
  • the Bluetooth control unit 33 is configured to: when the Bluetooth detecting unit 32 determines that the current state of the Bluetooth function is different from the state of the Bluetooth function that the second state needs to be, the state of the Bluetooth function is switched to the second state. The status of the Bluetooth function.
  • the device according to the embodiment of the present invention can automatically turn on or off the Bluetooth function of the Bluetooth master device according to the running state of the APP installed in the Bluetooth host device and the running state of the APP, thereby reducing the Bluetooth function of the Bluetooth master device.
  • the power consumption of the Bluetooth main device can avoid the inconvenience caused by the user manually turning the Bluetooth function on and off, and improve the user experience.
  • the device further includes:
  • a storage unit 34 configured to store information of the Bluetooth slave device
  • the processing unit 35 is configured to enable the APP to automatically establish a Bluetooth connection with the Bluetooth slave device when the APP is turned on and the state of the Bluetooth function is the on state.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

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

Abstract

本发明提供一种管理蓝牙连接的方法、蓝牙主设备和装置,该方法应用于蓝牙主设备与蓝牙从设备已经建立蓝牙连接的场景中,该方法包括:该蓝牙主设备确定是否与该蓝牙从设备通过蓝牙连接进行数据传输;当该蓝牙主设备确定没有与该蓝牙从设备通过蓝牙连接进行数据传输时,该蓝牙主设备断开与该蓝牙从设备的蓝牙连接。由此不需要用户手动断开蓝牙连接,便于其他蓝牙主设备与该蓝牙从设备建立蓝牙连接,避免资源浪费。

Description

管理蓝牙连接的方法、蓝牙主设备和装置 技术领域
本发明实施例涉及通信领域,并且更具体地,涉及管理蓝牙连接的方法、蓝牙主设备和装置。
背景技术
蓝牙技术是一种无线数据与语音通信的开放性标准,蓝牙技术使用全球通用2.4GHz频段,蓝牙技术的数据速率为1Mbs。目前蓝牙技术凭借着低功耗、小体积、较强的抗干扰性等优点,成为智能手机和蓝牙从设备连接的最普及的手段。
现有技术中,当蓝牙主设备与蓝牙从设备建立蓝牙连接后,如果蓝牙主设备一直保持与蓝牙从设备的连接,即使蓝牙主设备与蓝牙从设备之间没有数据传输,其他蓝牙主设备也无法与蓝牙从设备进行连接,由此会造成资源的浪费。
发明内容
本申请提供一种管理蓝牙连接的方法、蓝牙主设备和装置,蓝牙主设备确定与蓝牙从设备没有通过蓝牙连接进行数据传输时,蓝牙主设备断开与蓝牙从设备的蓝牙连接,由此不需要用户手动断开蓝牙连接,便于其他蓝牙主设备与该蓝牙从设备建立蓝牙连接,避免资源浪费。
第一方面,提供了一种管理蓝牙连接的方法,该方法应用于蓝牙主设备与蓝牙从设备已经建立蓝牙连接的场景中,该方法包括:该蓝牙主设备确定是否与该蓝牙从设备通过蓝牙连接进行数据传输;当该蓝牙主设备确定没有与该蓝牙从设备通过蓝牙连接进行数据传输时,该蓝牙主设备断开与该蓝牙从设备的蓝牙连接。
因此,根据本申请的管理蓝牙连接的方法,蓝牙主设备确定与蓝牙从设备没有通过蓝牙连接进行数据传输时,蓝牙主设备断开与蓝牙从设备的蓝牙连接,由此不需要用户手动断开蓝牙连接,便于其他蓝牙主设备与该蓝牙从设备建立蓝牙连接,避免资源浪费。
结合第一方面,在第一方面的第一种可能的实现方式中,该蓝牙主设备确定是否与该蓝牙从设备通过蓝牙连接进行数据传输,包括:该蓝牙主设备 根据该蓝牙主设备中的蓝牙模块的工作功率,确定是否与该蓝牙从设备通过蓝牙连接进行数据传输。
可以理解的是,蓝牙模块的工作功率包括蓝牙模块的发射功率和接收功率。
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,该蓝牙主设备根据该蓝牙主设备中的蓝牙模块的工作功率,确定是否与该蓝牙从设备通过蓝牙连接进行数据传输,包括:该蓝牙主设备统计该蓝牙模块在预设时长内的工作功率的总和;当该蓝牙主设备确定该工作功率的总和小于预设功率阈值时,该蓝牙主设备确定没有与该蓝牙从设备通过蓝牙连接进行数据传输;当该蓝牙主设备确定该工作功率的总和大于或等于该预设功率阈值时,该蓝牙主设备确定与该蓝牙从设备通过蓝牙连接进行数据传输。
结合第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,该蓝牙主设备根据该蓝牙主设备中的蓝牙模块的工作功率,确定是否与该蓝牙从设备通过蓝牙连接进行数据传输,包括:当该蓝牙主设备检测到该蓝牙模块的工作功率低于预设功率阈值时,开始计时;当该蓝牙主设备检测到该蓝牙模块的工作功率小于预设功率阈值的持续时间超过预设时长时,该蓝牙主设备确定没有与该蓝牙从设备通过蓝牙连接进行数据传输;当该蓝牙主设备检测到该蓝牙模块的工作功率大于或等于该预设功率阈值时,或,当该蓝牙主设备检测到该蓝牙模块的工作功率小于该预设功率阈值的持续时间未超过该预设时长时,该蓝牙主设备确定与该蓝牙从设备通过蓝牙连接进行数据传输。
结合第一方面,在第一方面的第四种可能的实现方式中,该蓝牙主设备确定是否与该蓝牙从设备通过蓝牙连接进行数据传输,包括:该蓝牙主设备根据应用该蓝牙连接的应用程序APP的状态,确定是否与该蓝牙从设备通过蓝牙连接进行数据传输;当确定该APP退出运行时,该蓝牙主设备确定没有与该蓝牙从设备通过蓝牙连接进行数据传输;当确定该APP正在运行时,该蓝牙主设备确定与该蓝牙从设备通过蓝牙连接进行数据传输。
结合第一方面,第一方面的第一种至第四种可能的实现方式中任一可能的实现方式,在第一方面的第五种可能的实现方式中,该蓝牙主设备断开与该蓝牙从设备的蓝牙连接之前,该方法还包括:该蓝牙主设备通知该蓝牙从 设备进入配对状态或待连接状态。
结合第一方面,第一方面的第一种至第五种可能的实现方式中任一可能的实现方式,在第一方面的第六种可能的实现方式中,在该蓝牙主设备断开与该蓝牙从设备的蓝牙连接之后,该方法还包括:该蓝牙主设备关闭该蓝牙主设备的蓝牙功能。
由此,当蓝牙主设备与蓝牙从设备没有蓝牙连接时,蓝牙主设备的蓝牙功能处于被关闭的状态,可以减少蓝牙主设备的耗电量。
第二方面,提供了一种管理蓝牙连接的方法,该蓝牙主设备内安装有与蓝牙从设备相对应的应用程序APP,该方法包括:当该蓝牙主设备检测到该APP的运行状态由第一状态转变为第二状态时,该蓝牙主设备确定该蓝牙主设备的蓝牙功能的当前状态,其中,该第一状态和该第二状态分别为开启状态和关闭状态中的一种,该第一状态和该第二状态不同;当该蓝牙主设备确定该蓝牙主设备的蓝牙功能的当前状态与该第二状态需要对应的蓝牙功能的状态不同时,该蓝牙主设备将该蓝牙主设备的蓝牙功能的状态切换为该第二状态需要对应的蓝牙功能的状态。
因此,根据本申请的管理蓝牙连接的方法,能够通过蓝牙主设备上安装的与蓝牙从设备相对应的应用程序APP对蓝牙功能的状态的需求,自动或关闭打开蓝牙主设备的蓝牙功能,避免用户手动开启和关闭蓝牙功能带来的不便,简化用户的操作,提高用户的用户体验。
结合第二方面,在第二方面的第一种可能的实现方式中,该蓝牙主设备内存储有该蓝牙从设备的信息,该第二状态为开启状态,该第二状态需要对应的蓝牙功能的状态为开启状态,该方法还包括:该蓝牙主设备对该蓝牙主设备周围的蓝牙设备进行搜索;当该蓝牙主设备搜索到该蓝牙从设备时,自动与该蓝牙从设备建立蓝牙连接。
第三方面,提供了一种蓝牙主设备,用于执行上述第一方面或第一方面的任意可能的实现方式中的方法。具体地,该蓝牙主设备包括用于执行上述第一方面或第一方面的任意可能的实现方式中的方法的单元。
第四方面,提供了一种蓝牙主设备,用于执行上述第二方面或第二方面的任意可能的实现方式中的方法。具体地,该蓝牙主设备包括用于执行上述第二方面或第二方面的任意可能的实现方式中的方法的单元。
第五方面,提供了一种蓝牙主设备,包括处理器、存储器和蓝牙模块, 该处理器、该存储器和该蓝牙模块通过总线系统相连,该存储器用于存储指令,该蓝牙模块根据该处理器的控制进行接收和发送消息,以实现该蓝牙主设备与其他终端设备之间的蓝牙通信,该处理器用于调用该存储器中存储的指令,执行上述第一方面或第一方面的任意可能的实现方式中的方法。
第六方面,提供了一种蓝牙主设备,包括处理器、存储器和蓝牙模块,该处理器、该存储器和该蓝牙模块通过总线系统相连,该存储器用于存储指令,该蓝牙模块根据该处理器的控制进行接收和发送消息,以实现该蓝牙主设备与其他终端设备之间的蓝牙通信,该处理器用于调用该存储器中存储的指令,执行上述第二方面或第二方面的任意可能的实现方式中的方法。
第七方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。
第八方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1a和1b是根据本发明实施例的蓝牙开关图标的示意图;
图2是本发明实施例的一个应用场景的示意图;
图3是根据本发明实施例的智能手机的示意性框图;
图4是根据本发明实施例的管理蓝牙连接的方法的示意性流程图;
图5是根据本发明实施例的智能手机的用户界面的示意图;
图6是根据本发明实施例的另一实施例的管理蓝牙连接的方法的示意性流程图;
图7是根据本发明再一实施例的管理蓝牙连接的方法的示意性流程图;
图8是根据本发明实施例的蓝牙主设备的示意性框图;
图9是根据本发明另一实施例的蓝牙主设备的示意性框图;
图10是根据本发明实施例的装置的示意性框图;
图11是根据本发明实施例的装置的另一示意性框图;
图12是根据本发明另一实施例的装置的示意性框图;
图13是根据本发明另一实施例的装置另一示意性框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。
为了方便理解本发明实施例,首先在此介绍本发明实施例描述中会引入的几个要素。
蓝牙主设备,可以搜索周围的蓝牙从设备,用户可以选择需要连接的蓝牙从设备,可主动发起蓝牙配对,通过匹配密码来将蓝牙主设备和蓝牙从设备匹配,具有蓝牙功能的智能手机、个人计算机(Personal Computer,简称为“PC”)等都属于蓝牙主设备。
蓝牙从设备,不主动发起蓝牙配对请求的设备,蓝牙从设备一般不具备输入端,通常在蓝牙从设备出厂时在蓝牙从设备的蓝牙芯片中固化有一个4位或6位数字的匹配密码,蓝牙音箱、蓝牙耳机等都是蓝牙从设备。
在本发明实施例中,蓝牙主设备断开与蓝牙从设备的蓝牙连接指的是蓝牙主设备断开与蓝牙从设备的物理层连接,蓝牙连接断开不会导致蓝牙主设备的蓝牙功能被关闭,因此蓝牙主设备还可以与其他蓝牙从设备建立蓝牙连接。
蓝牙主设备的蓝牙功能关闭,即蓝牙模块不工作,则蓝牙主设备不能和其他蓝牙从设备建立蓝牙连接。
蓝牙功能的开启和关闭,可以通过蓝牙主设备上蓝牙开关图标的进行操作。如图1a所示为蓝牙主设备上的蓝牙开关图标,如图1a左图所示为关闭蓝牙功能,如图1a右图所示为开启蓝牙功能。如图1b所示为蓝牙开关图标的另一种形式,当用户点击蓝牙开关图标,蓝牙开关图标变成灰色,关闭蓝牙功能;当用户点击蓝牙开关,蓝牙开关图标变高亮,则开启蓝牙功能。蓝牙功能关闭会导致蓝牙主设备断开与蓝牙从设备的蓝牙连接。一般在蓝牙主 设备上如果有已配对的蓝牙从设备,可以通过菜单操作选择连接该蓝牙从设备,或者断开与该蓝牙从设备的连接,还可以通过菜单操作选择取消与该已配对的蓝牙从设备的配对。蓝牙主设备和蓝牙从设备断开蓝牙连接,依然会保留配对信息,下次再与蓝牙从设备连接时,不需要再进行配对。若蓝牙主设备和蓝牙从设备取消配对了,则下次建立蓝牙连接时,需要先进行配对。
本发明实施例应用于蓝牙主设备与蓝牙从设备通过建立蓝牙连接进行数据交互的场景中。如图2中示出的,智能手机A-D为蓝牙主设备,蓝牙音箱为蓝牙从设备,根据现有相关技术的方法,在需要将智能手机A-D与蓝牙音箱进行配对或连接时,需要用户手动开启智能手机A-D的蓝牙功能。并且,当智能手机A与蓝牙音箱建立了蓝牙连接后,需要用户手动关闭智能手机A的蓝牙开关或手动断开蓝牙连接,智能手机B-D之一才能和蓝牙音箱建立连接。否则,即使智能手机A与蓝牙音箱没有数据传输,智能手机A仍会保持与蓝牙音箱的蓝牙连接,占用信道,智能手机B-D无法与蓝牙音箱建立蓝牙连接,造成资源的浪费。
基于此,可以提供一种管理蓝牙连接的方法,避免资源浪费。
下面将以蓝牙主设备为智能手机为例,描述本发明实施例的管理蓝牙连接的方法。可以理解的是,以智能手机为例仅是为了描述方便,而不对本发明实施例的保护范围构成限定。
图3示出了与本发明实施例相关的智能手机100的部分结构的框图。参考图3,智能手机100包括:射频(Radio Frequency,简称为“RF”)电路110,存储器120、输入单元130、显示单元140、音频电路150、蓝牙模块160、处理器170、以及电源180等部件。本领域技术人员可以理解,图3中示出的智能手机的结构并不构成对智能手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
例如,智能手机可以还包括传感器、摄像头、无线保真(Wireless Fidelity,简称为“WiFi”)模块等,在此不再赘述。
在本发明实施例中,RF电路110可用于收发信息或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,给处理器170处理;另外,将涉及上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,简称为“LNA”)、双工器等。此外,RF电路110还可以通过无线通信与网 络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile Communication,简称为“GSM”)、通用分组无线服务(General Packet Radio Service,简称为“GPRS”)、码分多址(Code Division Multiple Access,简称为“CDMA”)、宽带码分多址(Wideband Code Division Multiple Access,简称为“WCDMA”)、长期演进(Long Term Evolution,简称为“LTE”)、电子邮件、短消息服务(Short Messaging Service,简称为“SMS”)等。
存储器120可用于存储软件程序以及模块,处理器170通过运行存储在存储器120的软件程序以及模块,从而执行智能手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图象播放功能等)等;存储数据区可存储根据智能手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元130可用于接收输入的数字或字符信息,以及产生与智能手机100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板以及其他输入设备。触控面板,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器,并能接收处理器发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板。除了触控面板,输入单元还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及设备的各种菜单。显示单元140可包括显示面板,可选的,可以采用液晶显示器(Liquid Crystal Display,简称为“LCD”)、有机发光二极管(Organic  Light-Emitting Diode,简称为“OLED”)等形式来配置显示面板。进一步的,触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器以确定触摸事件的类型,随后处理器170根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图3中,触控面板与显示面板是作为两个独立的部件来实现智能手机100的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成而实现智能手机100的输入和输出功能。
音频电路150、扬声器,麦克风可提供用户与智能手机100之间的音频接口。音频电路150可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,麦克风将收集的声音信号转换为电信号,由音频电路150接收后转换为音频数据,将音频数据输出至存储器170以便进一步处理。
蓝牙模块160是集成蓝牙功能的芯片基本电路集合,蓝牙模块160能够根据蓝牙协议进行无线传输。
处理器170是智能手机100的控制中心,利用各种接口和线路连接整个智能手机100的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行智能手机100的各种功能和处理数据,从而对智能手机100进行整体监控。可选的,处理器170可包括一个或多个处理单元;优选的,处理器170可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器170中。
电源180(比如电池)用于给各个部件供电,优选地,电源可以通过电源管系统与处理器逻辑向量,从而通过电源管理系统实现管理充电、放电以及功耗等功能。
下面将结合具有图3示出的智能手机100的结构的智能手机A和智能手机B与蓝牙音箱之间建立蓝牙连接为例,描述根据本发明实施例的管理蓝牙连接的方法。如图4所示,方法1000包括:
S1100,智能手机A的处理器170确定智能手机A是否与蓝牙音箱通过蓝牙连接有数据传输;
具体地,智能手机A通过蓝牙模块160与蓝牙音箱建立蓝牙连接后,智 能手机A的处理器170确定智能手机A是否与蓝牙音箱通过蓝牙连接进行数据传输,示例性的,数据传输指的是音乐、文档、视频等信息的传输。
可选地,作为一个例子,智能手机A的处理器170通过智能手机A的蓝牙模块160的工作功率来确定智能手机A是否通过蓝牙连接与蓝牙音箱进行数据传输,智能手机A的蓝牙模块160的工作功率可以为发射功率和/或接收功率。
举例来说,在智能手机A的处理器170确定智能手机A是否通过蓝牙连接与蓝牙音箱进行数据传输时,可以预先设置检测智能手机A的蓝牙模块160的工作功率的时间点,智能手机A的处理器170在每个预设的时间点检测智能手机A的蓝牙模块160的工作功率,当智能手机A的处理器170在某个时间点检测到智能手机A的蓝牙模块160的工作功率低于预设功率阈值时,智能手机A的处理器170确定智能手机A与蓝牙音箱没有进行数据传输。具体地,智能手机A的处理器可以周期性地检测智能手机A的蓝牙模块160的工作功率。
或者智能手机A的处理器170实时检测智能手机A的蓝牙模块160的工作功率,当检测到智能手机A的蓝牙模块160的工作功率低于预设功率阈值时开始计时,当智能手机A的处理器170检测到智能手机A的蓝牙模块160的工作功率小于预设功率阈值的持续时间超过预设时长,则认为智能手机A没有通过蓝牙连接与蓝牙音箱进行数据传输。当智能手机A的处理器170检测到蓝牙模块160的工作功率不小于预设功率阈值时,或者当蓝牙模块160的工作功率小于预设功率阈值的持续时长未超过预设时长时,则认为智能手机A与蓝牙音箱进行数据传输。
或者,智能手机A的处理器170可以统计智能手机A的蓝牙模块160在预设时长内的工作功率的总和,根据工作功率的总和与预设功率阈值的大小关系,确定智能手机A是否与蓝牙音箱通过蓝牙连接进行数据传输。与工作功率的总和比较的预设功率阈值和前一段中提到的预设功率阈值可设置为不同值。
可选地,智能手机A的处理器170根据智能手机A的蓝牙模块160在一段时间内蓝牙模块160的工作功率与预设功率阈值的大小关系,确定智能手机A是否与蓝牙音箱通过蓝牙连接进行数据传输。P为智能手机A的蓝牙模块160的工作功率,P可用公式(1)表示:
Figure PCTCN2016087816-appb-000001
公式(1)中,x是智能手机A的蓝牙模块160发送或接收的蓝牙信号(对于蓝牙音箱主要是发送信号),X可以表示为以时间和角频率为变量的函数,
Figure PCTCN2016087816-appb-000002
其中,A(t)表示蓝牙信号的振幅;ω=2πf表示角频率,f表示传输蓝牙信号的频率;
Figure PCTCN2016087816-appb-000003
表示蓝牙信号的初始相位;X2表示功率;t表示时间;N表示时间长度,其中N的取值可以根据实际需要进行设置。
可选地,可以从智能手机A中的电源管理模块中获取蓝牙模块160的工作功率。
具体地,智能手机A的处理器170可以以任何一个时间点为起点开始记录智能手机A的蓝牙模块160的工作功率,当智能手机A的处理器170统计到一段时间内智能手机A的蓝牙模块160的工作功率的总和后,将工作功率的总和与预设功率阈值Pthreshold进行比较,如果P小于Pthreshold,则认为智能手机A没有与蓝牙音箱通过蓝牙连接进行数据传输,需要断开与蓝牙音箱的蓝牙连接。如果P大于或等于Pthreshold,则认为智能手机A与蓝牙音箱通过蓝牙连接有数据的传输,不需要断开智能手机A与蓝牙音箱的蓝牙连接。
可选地,作为一个例子,智能手机A的处理器170可以根据蓝牙音箱对应的应用程序(Application,简称为“APP”)的状态,确定智能手机A是否与蓝牙音箱通过蓝牙连接进行数据传输。当智能手机A的处理器170确定蓝牙音箱对应的APP处于开启状态时,确定智能手机A与蓝牙音箱通过蓝牙连接进行数据传输,当智能手机A的处理器170确定蓝牙音箱对应的APP处于关闭状态时,确定智能手机A与蓝牙音箱没有通过蓝牙连接进行数据传输。
S1200,当智能手机A确定没有与蓝牙音箱通过蓝牙连接进行数据传输时,智能手机A断开与蓝牙音箱的蓝牙连接。
本实施例中智能手机A能够检测蓝牙连接的使用情况,即是否通过蓝牙连接进行数据传输,以此控制与蓝牙音箱的蓝牙连接,当确定没有通过蓝牙连接进行数据传输,则断开与蓝牙音箱的连接,这样其他智能手机可以与蓝牙音箱建立蓝牙连接。
进一步地,当智能手机A断开与蓝牙音箱的蓝牙连接后,可以关闭智能手机A的蓝牙功能,并提示用户蓝牙功能被关闭,这样可以节省手机耗电量。
可选地,作为一个例子,当智能手机A确定与蓝牙音箱没有数据传输后,智能手机A断开和蓝牙音箱的蓝牙连接前,智能手机A通过蓝牙连接通知蓝牙音箱进入配对状态或待连接状态。现有技术中在蓝牙主设备被用户手动断开蓝牙连接后,对应的蓝牙从设备仍无法和其他蓝牙主设备建立连接,需要用户手动重启蓝牙从设备,蓝牙从设备才能和其他蓝牙主设备建立连接,在这个例子中,智能手机A在断开和蓝牙音箱的蓝牙连接之前指示蓝牙音箱进入配对状态或待连接状态,蓝牙音箱收到指示后切换状态,这样其他智能手机可以与蓝牙音箱连接。
可选地,作为一个例子,智能手机A的处理器170检测智能手机A的蓝牙开关图标的状态,当蓝牙开关图标关闭,通知蓝牙音箱进入待连接状态或配对状态,断开智能手机A和蓝牙音箱的蓝牙连接。
当蓝牙从设备处于待连接状态时,蓝牙从设备可以被与之前配对过的蓝牙主设备搜索到进行蓝牙连接。
当蓝牙从设备处于配对状态时,蓝牙从设备能够被与未配对过的蓝牙主设备搜索到,通过密钥配对方式进行配对,建立蓝牙连接。
例如在图4中所示出的,假设智能手机A和智能手机B均与蓝牙音箱配对过,智能手机A通知蓝牙音箱进入待连接状态,智能手机A和蓝牙音箱的蓝牙连接断开,蓝牙音箱进入待连接状态,当智能手机B的蓝牙功能被开启后,智能手机B的蓝牙模块160进行设备搜索,当搜索到蓝牙音箱时,智能手机B自动与蓝牙音箱建立连接。智能手机A通知蓝牙音箱进入待连接状态,可以通过指示蓝牙音箱进行关机再开机来实现。
假设图4中的智能手机B未与蓝牙音箱配对过,智能手机A通知蓝牙音箱进入配对状态,智能手机A和蓝牙音箱的蓝牙连接断开,蓝牙音箱进入配对状态,当智能手机B的蓝牙功能被开启后,智能手机B的蓝牙模块160进行设备搜索,当搜索到蓝牙音箱时,需要智能手机B通过配对密码,完成智能手机B与蓝牙音箱之间的配对连接。智能终端B与蓝牙音箱配对连接后,蓝牙音箱会保存智能终端B的信息,当下次智能终端B再搜索到该蓝牙音箱时,智能终端B可以直接与该蓝牙音箱建立蓝牙连接。
可选地,作为一个例子,假设图4中,智能手机A断开与蓝牙音箱的蓝牙连接后,智能手机B-D均希望与蓝牙音箱建立连接,如果智能手机B-D中,只有智能手机B与蓝牙音箱配对过,则蓝牙音箱与智能手机B建立蓝 牙连接;如果智能手机B-D均与蓝牙音箱配对过,则可以按照预设设置的优先级顺序,优先级最高的智能手机D与蓝牙音箱进行配对建立蓝牙连接。
在现有技术中,当用户需要使用蓝牙音箱时,需要手动打开智能手机A的蓝牙开关,搜索周围的蓝牙设备,手动选择蓝牙音箱触发智能手机A和蓝牙音箱的蓝牙连接,当用户不需要使用蓝牙音箱时,需要用户手动断开蓝牙连接或关闭蓝牙功能,以上均需要用户通过手动方式实现,会影响用户的用户体验。基于此,可以提供一种自动开启和关闭智能手机A的蓝牙功能的方法,简化用户操作,提高用户的用户体验。
下面将结合具体的实施例,描述根据本发明实施例的自动开启和关闭智能手机A的蓝牙功能的方法,以智能手机A上安装有蓝牙音箱对应的APP为例,在智能手机A上安装与蓝牙音箱对应的APP的过程中,智能手机A的存储器120会记录与蓝牙音箱对应的APP相关的属性,这些相关的属性可以包括APP是否需要应用蓝牙功能、APP是否具有打开智能手机A的蓝牙功能的权限等,还可包括蓝牙音箱对应的APP对应的蓝牙设备类型,如蓝牙耳机,蓝牙音箱,蓝牙手环等,并且APP安装完成后会在智能手机A的显示单元140上显示与APP相对应的图标,方便用户的操作,例如图5中所示的智能手机A的用户界面,APP对应的图标为“蓝牙音箱”,以下蓝牙音箱对应的APP称作“蓝牙音箱APP”。
本发明的实施例中可以在智能手机A的存储器120中存储蓝牙音箱APP的开关状态和所需的蓝牙功能的状态的对应关系,表1中示出了一种可能的蓝牙音箱APP的开关状态和所需的蓝牙功能的状态的对应关系。
表1
蓝牙音箱APP 蓝牙功能
智能手机A的处理器170检测蓝牙APP的开启状态,来决定蓝牙功能的开关状态。当检测到蓝牙音箱APP由关闭切换到开启,智能手机A确定当前蓝牙功能的状态,判断是否与所需的蓝牙功能的状态一致,如当前蓝牙功能状态为关闭,蓝牙音箱APP开启所需的蓝牙功能状态为开启,两者不一致,则将当前蓝牙功能的状态切换为该所需的蓝牙功能的状态,即将当前蓝牙功能的状态切换为开启,两者一致则保持;相应地,当检测到蓝牙音箱 APP由开启切换到关闭,智能手机A确定当前蓝牙功能的状态是否是已经关闭,若是则保持关闭状态,若不是,则智能手机A关闭蓝牙功能。该智能手机A的存储器120内可存储有蓝牙音箱APP对应的蓝牙音箱的信息,当蓝牙音箱APP变为开启状态,蓝牙功能处于开启状态时,智能手机A对周围的蓝牙设备进行搜索;当智能手机A搜索到该蓝牙音箱时,自动与该蓝牙音箱建立蓝牙连接。
图6是根据本发明另一实施例的管理蓝牙连接的方法。如图6所示方法2000包括:
S2100,当蓝牙音箱APP被启动,蓝牙音箱APP确定智能手机A的蓝牙功能是否被开启;
用户通过点击智能手机A的显示单元140上的“蓝牙音箱”图标(如图5所示出的),打开蓝牙音箱APP。智能手机A运行蓝牙音箱APP。
具体地,蓝牙音箱APP通过检测智能手机A中的蓝牙模块160的状态,确定智能手机A的蓝牙功能是否被开启。或者蓝牙音箱APP读取蓝牙开关图标的状态,确定智能手机A的蓝牙功能是否被开启。
如果智能手机A的蓝牙功能已经开启,直接执行S2200。否则当蓝牙音箱APP确定智能手机A的蓝牙功能没有打开时,执行步骤2110蓝牙音箱APP通过向智能手机A的蓝牙模块160发送开启智能手机A的蓝牙功能的指令开启智能手机A的蓝牙功能,之后执行S2200。
S2200,蓝牙音箱APP与蓝牙音箱建立蓝牙连接;
如果蓝牙音箱APP与蓝牙音箱配对过,智能手机A中的存储器中120记录有蓝牙音箱APP和蓝牙音箱的配对信息,在智能手机A的蓝牙功能被开启后,蓝牙音箱APP搜索蓝牙音箱,在搜索到蓝牙音箱时自动与蓝牙音箱建立蓝牙连接。
如果蓝牙音箱APP之前未与蓝牙音箱配对过,在智能手机A的蓝牙功能被开启后,扫描周围的蓝牙设备,根据蓝牙音箱APP对应的蓝牙设备类型自动与蓝牙音箱进行配对,配对之后,智能手机A的存储器120会保存蓝牙音箱的身份识别信息、蓝牙音箱的功能信息等,在蓝牙音箱APP再被开启之后,蓝牙音箱APP自动搜索该身份标识信息对应的蓝牙音箱,并与蓝牙音箱自动建立蓝牙连接。
可选地,如果蓝牙音箱APP之前未与蓝牙音箱配对过,在智能手机A 的蓝牙功能被开启后,智能手机A可以进入蓝牙设置界面,显示周围的蓝牙设备,用户可以手动选择蓝牙音箱进行配对。
S2300,蓝牙音箱APP判断是否接收到退出运行的指示;
用户可以通过操作蓝牙音箱APP退出蓝牙音箱APP,或者通过手机应用管理软件将蓝牙音箱APP退出运行。
S2400,蓝牙音箱APP在收到退出运行指示时,通知蓝牙音箱进入待连接状态或配对状态。
其中,S2400为可选步骤,步骤S2300之后可以直接执行S2500。
可以理解的是,在蓝牙音箱进入待连接状态或配对状态后,假设智能手机B上的蓝牙音箱APP希望与蓝牙音箱建立蓝牙连接,如果智能手机B上的蓝牙音箱APP之前与蓝牙音箱配对过,智能手机B上的蓝牙音箱APP可以自动与蓝牙音箱建立连接。否则,智能手机B上的蓝牙音箱APP与蓝牙音箱通过密钥配对进行蓝牙连接。
S2500,蓝牙音箱APP断开和蓝牙音箱的蓝牙连接;
需要说明的是,蓝牙音箱APP断开和蓝牙音箱的蓝牙连接指的是断开智能手机A的蓝牙模块与蓝牙音箱的物理层连接,也即蓝牙音箱APP断开和蓝牙音箱之间的数据传输通道。
S2600,蓝牙音箱APP关闭智能手机A的蓝牙功能;
具体地,蓝牙音箱APP通过指示智能手机A的蓝牙模块160关闭智能手机A的蓝牙功能,以减少智能手机A的耗电量。
可选地,S2600之前,蓝牙音箱APP可以判断蓝牙音箱APP打开时,智能手机A的蓝牙功能是否开启,若开启,则不执行S2600;若智能手机A的蓝牙功能未开启,则执行S2600。以实现蓝牙音箱APP关闭后,智能手机A的蓝牙功能恢复蓝牙音箱APP开启前的状态。
本实施例中蓝牙音箱APP可以由蓝牙音箱的厂商提供,蓝牙音箱APP带有上述步骤对应的程序代码,本实施例中的步骤可以由智能手机A的处理器170运行蓝牙音箱APP来实现。
下面将结合再一具体的实施例,描述根据本发明实施例的自动开启和关闭智能手机A的蓝牙功能的方法,以智能手机A上安装有蓝牙音箱对应的APP为例,APP安装完成后会在智能手机A的显示单元140上显示与APP相对应的图标,方便用户的操作,例如图5中所示的智能手机A的用户界面, APP对应的图标为“蓝牙音箱”,以下蓝牙音箱对应的APP称作“蓝牙音箱APP”。图7示出了根据本发明再一实施例的管理蓝牙连接的方法,如图7所示,方法3000包括:
S3100,智能手机A检测蓝牙音箱APP被启动;
用户通过点击智能手机A的显示单元140上的“蓝牙音箱”图标(如图5所示出的),打开蓝牙音箱APP。
S3200,智能手机A根据蓝牙音箱APP的属性确定蓝牙音箱APP是否具有使用蓝牙功能的权限;当确定蓝牙音箱APP有蓝牙功能的使用权限时,执行步骤S3300;可选地智能手机A可以跳过S3200,在执行S3100后执行S3300。
具体地,蓝牙音箱APP的属性可以在安装时记录到智能手机A的存储器120中的默认设置,也可以是蓝牙音箱APP之前运行时用户设置的。可以包括蓝牙音箱APP是否具有使用蓝牙功能的权限,蓝牙音箱APP绑定的蓝牙音箱的身份标识信息等。
S3300,智能手机A判断蓝牙功能是否开启,若开启则执行S3500;若未开启则执行S3400;
S3400,智能手机A开启蓝牙功能;
S3500,智能手机A与蓝牙音箱建立蓝牙连接;
如果蓝牙音箱APP与蓝牙音箱配对过,智能手机A中的存储器中120记录有蓝牙音箱APP和蓝牙音箱的配对信息,在智能手机A的蓝牙功能被开启后,搜索配过对的蓝牙音箱,在搜索到蓝牙音箱时自动与蓝牙音箱建立蓝牙连接。
如果蓝牙音箱APP之前未与蓝牙音箱配对过,在智能手机A的蓝牙功能被开启后,需要蓝牙音箱APP先与蓝牙音箱进行配对,用户通过智能手机A的输入单元130输入配对密码,实现蓝牙音箱APP与蓝牙音箱的配对,配对之后,智能手机A的存储器120会保存蓝牙音箱的身份识别信息、蓝牙音箱的功能信息等,在蓝牙音箱APP再被开启之后,自动搜索蓝牙音箱,并与蓝牙音箱自动建立蓝牙连接。
S3600,智能手机A检测到蓝牙音箱APP被退出运行;
用户可以通过操作蓝牙音箱APP退出蓝牙音箱APP,或者通过手机应用管理软件将蓝牙音箱APP退出运行。
S3700,智能手机A通过蓝牙连接通知蓝牙音箱进入待连接状态或配对状态。
可以理解的是,在蓝牙音箱进入待连接状态或配对状态后,假设智能手机B上的蓝牙音箱APP希望与蓝牙音箱建立蓝牙连接,如果智能手机B上的蓝牙音箱APP之前与蓝牙音箱配对过,智能手机B上的蓝牙音箱APP可以自动与蓝牙音箱建立连接。否则,智能手机B上的蓝牙音箱APP与蓝牙音箱通过密钥配对进行蓝牙连接。
S3700为可选步骤,步骤S3600之后可以直接执行S3800。
S3800,智能手机A和蓝牙音箱断开蓝牙连接;
需要说明的是,智能手机A断开和蓝牙音箱的蓝牙连接指的是断开智能手机A的蓝牙模块与蓝牙音箱的物理层连接,也即蓝牙音箱APP断开和蓝牙音箱之间的数据传输通道。
S3900,智能手机A关闭智能手机A的蓝牙功能;
具体地,智能手机A关闭智能手机A的蓝牙功能,以减少智能手机A的耗电量。
可选地,S3900之前,智能手机A可以判断蓝牙音箱APP打开时智能手机A的蓝牙功能是否开启,若开启,则不执行S3900;若智能手机A的蓝牙功能未开启,则执行S3900。以实现蓝牙音箱APP关闭后,智能手机A的蓝牙功能恢复蓝牙音箱APP开启前的状态。
本实施例中智能手机A执行上述步骤的程序代码可与蓝牙音箱APP的代码相独立,即可以是其他应用,如手机的管理应用。
以上图6和图7的实施例中可以结合图4的实施例,即在蓝牙音箱APP运行时,检测是否与蓝牙音箱有数据传输,若没有数据传输时,则自动断开与蓝牙音箱的蓝牙连接。
以上结合图2至图7详细描述了根据本发明实施例的管理蓝牙连接的方法,下面将结合图8详细描述根据本发明实施例的蓝牙主设备,如图8所示,蓝牙主设备10包括:
蓝牙单元11,用于建立该蓝牙主设备与该蓝牙从设备的蓝牙连接,通过蓝牙连接与该蓝牙从设备进行数据传输,以及断开该蓝牙主设备与该蓝牙从设备的蓝牙连接;
处理单元12,用于确定该蓝牙主设备是否与该蓝牙从设备通过蓝牙连接 进行数据传输,当确定该蓝牙主设备没有与该蓝牙从设备通过蓝牙连接进行数据传输时,指示该蓝牙单元11断开该蓝牙主设备与该蓝牙从设备的蓝牙连接。
因此,根据本发明实施例的蓝牙主设备确定与蓝牙从设备没有通过蓝牙连接进行数据传输时,断开与蓝牙从设备的蓝牙连接,由此不需要用户手动断开蓝牙连接,便于其他蓝牙主设备与该蓝牙从设备连接,避免资源浪费。
在本发明实施例中,可选地,如图9所示,该处理单元12包括功率检测单元121,该功率检测单元121用于:根据该蓝牙单元11的工作功率,确定该蓝牙主设备是否与该蓝牙从设备通过蓝牙连接进行数据传输。
在本发明实施例中,可选地,该功率检测单元121具体用于:统计该蓝牙单元在预设时长内的工作功率的总和;当确定该工作功率的总和小于预设功率阈值时,确定该蓝牙主设备没有与该蓝牙从设备通过蓝牙连接进行数据传输;当确定该工作功率的总和大于或等于该预设功率阈值时,确定该蓝牙主设备与该蓝牙从设备通过蓝牙连接进行数据传输。
在本发明实施例中,可选地,该功率检测单元121具体用于:当检测到该蓝牙单元11的工作功率低于预设功率阈值时,开始计时;当检测到该蓝牙单元11的工作功率小于预设功率阈值的持续时间超过预设时长时,确定该蓝牙主设备没有与该蓝牙从设备通过蓝牙连接进行数据传输;当检测到该蓝牙单元11的工作功率大于或等于该预设功率阈值时,或,当检测到蓝牙单元11的工作功率小于该预设功率阈值的持续时间未超过该预设时长时,确定该蓝牙主设备与该蓝牙从设备通过蓝牙连接进行数据传输。
在本发明实施例中,可选地,如图9中所示出的,该处理单元12还包括应用程序APP检测单元122,该APP检测单元122用于:根据应用该蓝牙连接的APP的状态,确定该蓝牙主设备是否与该蓝牙从设备通过蓝牙连接进行数据传输;当确定该APP退出运行时,确定该终端设备没有与该蓝牙从设备通过蓝牙连接进行数据传输;当确定该APP正在运行时,确定该终端设备与该蓝牙从设备通过蓝牙连接进行数据传输。
在本发明实施例中,可选地,该蓝牙单元11,还用于在断开该蓝牙主设备与该蓝牙从设备的蓝牙连接之前,通知该蓝牙从设备进入配对状态或待连接状态。
在本发明实施例中,可选地,如图9中所示出的,该处理单元12还包 括蓝牙控制单元123,用于在该蓝牙单元11断开该蓝牙主设备与该蓝牙从设备的蓝牙连接之后,关闭该蓝牙主设备的蓝牙功能。
应理解,这里的蓝牙主设备10以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(Application Specific Integrated Circuit,简称为“ASIC”)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,蓝牙主设备10可以用于执行上述方法实施例中方法1000中的相关流程和/或步骤,为避免重复,在此不再赘述。
图10示出了根据本发明实施例的装置,该装置集成在蓝牙主设备中用于执行与蓝牙从设备相关的功能,如图10所示,该装置20包括:运行状态检测单元21、蓝牙检测单元22和蓝牙控制单元23;
运行状态检测单元21,用于检测该装置的运行状态;
该蓝牙检测单元22,用于当该运行状态检测单元21检测到的运行状态由第一状态转变为第二状态时,确定该蓝牙主设备的蓝牙功能的当前状态,其中,该第一状态和该第二状态分别为开启状态和关闭状态中的一种,该第一状态和该第二状态不同;
该蓝牙控制单元23,用于当该蓝牙检测单元22确定该蓝牙功能的当前状态与该第二状态需要对应的蓝牙功能的状态不同时,将该蓝牙功能的状态切换为该第二状态需要对应的蓝牙功能的状态。
因此,根据本发明实施例的装置,能够根据自身运行状态对蓝牙功能的状态的需求自动打开或关闭蓝牙主设备的蓝牙功能,由此能够减少蓝牙主设备的耗电量,并能够避免用户手动开启和关闭蓝牙功能带来的不便,提高用户体验。
在本发明实施例中,可选地,如图11所示出的,该装置还包括:
存储单元24,用于存储蓝牙从设备的信息,该蓝牙从设备可以为预设的与蓝牙单元11对应的蓝牙从设备,或与蓝牙主设备配对过的蓝牙从设备;
处理单元25,用于当所述第二状态为开启状态且蓝牙功能的状态为开启状态时,使所述蓝牙主设备自动与该蓝牙从设备建立蓝牙连接。
可以理解地,此处蓝牙功能的状态为开启状态,是指蓝牙功能实际为开启状态,而不是所需的蓝牙功能状态。可以理解地,对于未配对的蓝牙从设 备,蓝牙主设备自动和蓝牙从设备建立蓝牙连接之前还包括进行配对操作。
应理解,根据本发明实施例的装置20可对应于本发明实施例的方法2000中蓝牙音箱APP,并且,装置20中的各单元即模块和上述其他操作和/或功能分别为了实现方法2000的相应流程,为了简洁,在此不再赘述。
图12示出了根据本发明另一实施例的装置,该装置集成在蓝牙主设备中,该蓝牙主设备内安装有与蓝牙从设备相对应的应用程序APP,如图12所示,该装置30包括:APP检测单元31、蓝牙检测单元32和蓝牙控制单元33;
该APP检测单元31,用于检测该APP的运行状态;
该蓝牙检测单元32,用于当该APP检测单元31检测到该APP的运行状态由第一状态转变为第二状态时,确定该蓝牙主设备的蓝牙功能的当前状态,其中,该第一状态和该第二状态分别为开启状态和关闭状态中的一种,该第一状态和该第二状态不同;
该蓝牙控制单元33,用于当该蓝牙检测单元32确定该蓝牙功能的当前状态与该第二状态需要对应的蓝牙功能的状态不同时,将该蓝牙功能的状态切换为该第二状态需要对应的蓝牙功能的状态。
因此,根据本发明实施例的装置,能够根据蓝牙主设备内安装的APP的运行状态及APP的运行状态对蓝牙功能的状态的需求,自动打开或关闭蓝牙主设备的蓝牙功能,由此能够减少蓝牙主设备的耗电量,并能够避免用户手动开启和关闭蓝牙功能带来的不便,提高用户体验。
在本发明实施例中,可选地,如图13所示出的,该装置还包括:
存储单元34,用于存储该蓝牙从设备的信息;
处理单元35,用于当该APP变为开启状态且蓝牙功能的状态为开启状态时,使该APP自动与该蓝牙从设备建立蓝牙连接。
应理解,根据本发明实施例的装置30中的各单元即模块和上述其他操作和/或功能分别为了实现方法3000的相应流程,为了简洁,在此不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。

Claims (27)

  1. 一种管理蓝牙连接的方法,所述方法应用于蓝牙主设备与蓝牙从设备已经建立蓝牙连接的场景中,其特征在于,所述方法包括:
    所述蓝牙主设备确定是否与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当所述蓝牙主设备确定没有与所述蓝牙从设备通过蓝牙连接进行数据传输时,所述蓝牙主设备断开与所述蓝牙从设备的蓝牙连接。
  2. 根据权利要求1所述的方法,其特征在于,所述蓝牙主设备确定是否与所述蓝牙从设备通过蓝牙连接进行数据传输,包括:
    所述蓝牙主设备根据所述蓝牙主设备中的蓝牙模块的工作功率,确定是否与所述蓝牙从设备通过蓝牙连接进行数据传输。
  3. 根据权利要求2所述的方法,其特征在于,所述蓝牙主设备根据所述蓝牙主设备中的蓝牙模块的工作功率,确定是否与所述蓝牙从设备通过蓝牙连接进行数据传输,包括:
    所述蓝牙主设备统计所述蓝牙模块在预设时长内的工作功率的总和;
    当所述蓝牙主设备确定所述工作功率的总和小于预设功率阈值时,所述蓝牙主设备确定没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当所述蓝牙主设备确定所述工作功率的总和大于或等于所述预设功率阈值时,所述蓝牙主设备确定与所述蓝牙从设备通过蓝牙连接进行数据传输。
  4. 根据权利要求2所述的方法,其特征在于,所述蓝牙主设备根据所述蓝牙主设备中的蓝牙模块的工作功率,确定是否与所述蓝牙从设备通过蓝牙连接进行数据传输,包括:
    当所述蓝牙主设备检测到所述蓝牙模块的工作功率低于预设功率阈值时,开始计时;
    当所述蓝牙主设备检测到所述蓝牙模块的工作功率小于预设功率阈值的持续时间超过预设时长时,所述蓝牙主设备确定没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当所述蓝牙主设备检测到所述蓝牙模块的工作功率大于或等于所述预设功率阈值时,或,当所述蓝牙主设备检测到所述蓝牙模块的工作功率小于所述预设功率阈值的持续时间未超过所述预设时长时,所述蓝牙主设备确定 与所述蓝牙从设备通过蓝牙连接进行数据传输。
  5. 根据权利要求1所述的方法,其特征在于,所述蓝牙主设备确定是否与所述蓝牙从设备通过蓝牙连接进行数据传输,包括:
    所述蓝牙主设备根据应用所述蓝牙连接的应用程序APP的状态,确定是否与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述APP退出运行时,所述蓝牙主设备确定没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述APP正在运行时,所述蓝牙主设备确定与所述蓝牙从设备通过蓝牙连接进行数据传输。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述蓝牙主设备断开与所述蓝牙从设备的蓝牙连接之前,所述方法还包括:
    所述蓝牙主设备通知所述蓝牙从设备进入配对状态或待连接状态。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,在所述蓝牙主设备断开与所述蓝牙从设备的蓝牙连接之后,所述方法还包括:
    所述蓝牙主设备关闭所述蓝牙主设备的蓝牙功能。
  8. 一种管理蓝牙连接的方法,其特征在于,所述蓝牙主设备内安装有与蓝牙从设备相对应的应用程序APP,所述方法包括:
    当所述蓝牙主设备检测到所述APP的运行状态由第一状态转变为第二状态时,所述蓝牙主设备确定所述蓝牙主设备的蓝牙功能的当前状态,其中,所述第一状态和所述第二状态分别为开启状态和关闭状态中的一种,所述第一状态和所述第二状态不同;
    当所述蓝牙主设备确定所述蓝牙主设备的蓝牙功能的当前状态与所述第二状态需要对应的蓝牙功能的状态不同时,所述蓝牙主设备将所述蓝牙主设备的蓝牙功能的状态切换为所述第二状态需要对应的蓝牙功能的状态。
  9. 根据权利要求8所述的方法,其特征在于,所述蓝牙主设备内存储有所述蓝牙从设备的信息,所述第二状态为开启状态,所述第二状态需要对应的蓝牙功能的状态为开启状态,所述方法还包括:
    所述蓝牙主设备对所述蓝牙主设备周围的蓝牙设备进行搜索;
    当所述蓝牙主设备搜索到所述蓝牙从设备时,自动与所述蓝牙从设备建立蓝牙连接。
  10. 一种蓝牙主设备,其特征在于,所述蓝牙主设备包括:
    蓝牙单元,用于建立所述蓝牙主设备与蓝牙从设备的蓝牙连接,通过蓝牙连接与所述蓝牙从设备进行数据传输,以及断开所述蓝牙主设备与所述蓝牙从设备的蓝牙连接;
    处理单元,用于确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输,当确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输时,指示所述蓝牙单元断开所述蓝牙主设备与所述蓝牙从设备的蓝牙连接。
  11. 根据权利要求10所述的蓝牙主设备,其特征在于,所述处理单元包括功率检测单元,所述功率检测单元用于:
    根据所述蓝牙单元的工作功率,确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输。
  12. 根据权利要求11所述的蓝牙主设备,其特征在于,所述功率检测单元具体用于:
    统计所述蓝牙单元在预设时长内的工作功率的总和;
    当确定所述工作功率的总和小于预设功率阈值时,确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述工作功率的总和大于或等于所述预设功率阈值时,确定所述蓝牙主设备与所述蓝牙从设备通过蓝牙连接进行数据传输。
  13. 根据权利要求11所述的蓝牙主设备,其特征在于,所述功率检测单元具体用于:
    当检测到所述蓝牙单元的工作功率低于预设功率阈值时,开始计时;
    当检测到所述蓝牙单元的工作功率小于预设功率阈值的持续时间超过预设时长时,确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当检测到所述蓝牙单元的工作功率大于或等于所述预设功率阈值时,或,当检测到所述蓝牙单元的工作功率小于所述预设功率阈值的持续时间未超过所述预设时长时,确定所述蓝牙主设备与所述蓝牙从设备通过蓝牙连接进行数据传输。
  14. 根据权利要求10所述的蓝牙主设备,其特征在于,所述处理单元还包括应用程序APP检测单元,所述APP检测单元用于:
    根据应用所述蓝牙连接的APP的状态,确定所述蓝牙主设备是否与所 述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述APP退出运行时,确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述APP正在运行时,确定所述蓝牙主设备与所述蓝牙从设备通过蓝牙连接进行数据传输。
  15. 根据权利要求10至14中任一项所述的蓝牙主设备,其特征在于,所述蓝牙单元,还用于在断开所述蓝牙主设备与所述蓝牙从设备的蓝牙连接之前,通知所述蓝牙从设备进入配对状态或待连接状态。
  16. 根据权利要求10至15中任一项所述的蓝牙主设备,其特征在于,所述处理单元还包括:
    蓝牙控制单元,用于在所述蓝牙单元断开所述蓝牙主设备与所述蓝牙从设备的蓝牙连接之后,关闭所述蓝牙主设备的蓝牙功能。
  17. 一种装置,其特征在于,所述装置集成在蓝牙主设备中,所述装置包括:运行状态检测单元、蓝牙检测单元和蓝牙控制单元;
    所述运行状态检测单元,用于检测所述装置的运行状态;
    所述蓝牙检测单元,用于当所述运行状态检测单元检测到所述装置的运行状态由第一状态转变为第二状态时,确定所述蓝牙主设备的蓝牙功能的当前状态,其中,所述第一状态和所述第二状态分别为开启状态和关闭状态中的一种,所述第一状态和所述第二状态不同;
    所述蓝牙控制单元,用于当所述蓝牙检测单元确定所述蓝牙功能的当前状态与所述第二状态需要对应的蓝牙功能的状态不同时,将所述蓝牙功能的状态切换为所述第二状态需要对应的蓝牙功能的状态。
  18. 根据权利要求17所述的装置,其特征在于,所述装置还包括:
    存储单元,用于存储蓝牙从设备的信息,所述蓝牙从设备与所述蓝牙主设备建立过蓝牙连接;
    处理单元,用于当所述第二状态为开启状态,且蓝牙功能的状态为开启状态时,对所述蓝牙主设备周围的蓝牙设备进行搜索,当搜索到所述蓝牙从设备时,使所述蓝牙主设备自动与所述蓝牙从设备建立蓝牙连接。
  19. 一种蓝牙主设备,其特征在于,所述蓝牙主设备已经与蓝牙从设备建立蓝牙连接,所述蓝牙主设备包括:处理器、存储器和蓝牙模块,所述处理器、所述存储器和所述蓝牙模块通过总线系统相连,
    所述存储器用于存储指令,
    所述蓝牙模块根据所述处理器的控制进行接收和发送消息,以实现所述蓝牙主设备与其他蓝牙从设备之间的蓝牙通信,
    所述处理器用于调用该存储器中存储的指令,执行以下步骤:
    确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输时,断开所述蓝牙主设备与所述蓝牙从设备的蓝牙连接。
  20. 根据权利要求19所述的蓝牙主设备,其特征在于,所述确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输,具体包括:
    根据蓝牙模块的工作功率,确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输。
  21. 根据权利要求20所述的蓝牙主设备,其特征在于,所述根据蓝牙模块的工作功率,确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输,具体包括:
    统计所述蓝牙模块在预设时长内的工作功率的总和;
    当确定所述工作功率的总和小于预设功率阈值时,确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述工作功率的总和大于或等于所述预设功率阈值时,确定所述蓝牙主设备与所述蓝牙从设备通过蓝牙连接进行数据传输。
  22. 根据权利要求20所述的蓝牙主设备,其特征在于,所述根据蓝牙模块的工作功率,确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输,具体包括:
    当检测到所述蓝牙模块的工作功率低于预设功率阈值时,开始计时;
    当检测到所述蓝牙模块的工作功率小于预设功率阈值的持续时间超过预设时长时,确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当检测到所述蓝牙模块的工作功率大于或等于所述预设功率阈值时,或,当检测到所述蓝牙模块的工作功率小于所述预设功率阈值的持续时间未超过所述预设时长时,确定所述蓝牙主设备与所述蓝牙从设备通过蓝牙连接进行数据传输。
  23. 根据权利要求19所述的蓝牙主设备,其特征在于,所述确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输,具体包括:
    根据应用所述蓝牙连接的应用程序APP的状态,确定所述蓝牙主设备是否与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述APP退出运行时,确定所述蓝牙主设备没有与所述蓝牙从设备通过蓝牙连接进行数据传输;
    当确定所述APP正在运行时,确定所述蓝牙主设备与所述蓝牙从设备通过蓝牙连接进行数据传输。
  24. 根据权利要求19至23中任一项所述的蓝牙主设备,其特征在于,所述处理器,还用于在断开所述蓝牙主设备与所述蓝牙从设备的蓝牙连接之前,通知所述蓝牙从设备进入配对状态或待连接状态。
  25. 根据权利要求19至24中任一项所述的蓝牙主设备,其特征在于,在断开所述蓝牙主设备与所述蓝牙从设备的蓝牙连接之后,所述处理器还用于:
    关闭所述蓝牙主设备的蓝牙功能。
  26. 一种蓝牙主设备,其特征在于,所述蓝牙主设备内安装有与蓝牙从设备相对应的应用程序APP,所述蓝牙主设备包括:处理器、存储器和蓝牙模块,所述处理器、所述存储器和所述蓝牙模块通过总线系统相连,
    所述存储器用于存储指令,
    所述蓝牙模块根据所述处理器的控制进行接收和发送消息,以实现所述蓝牙主设备与其他蓝牙从设备之间的蓝牙通信,
    所述处理器用于调用该存储器中存储的指令,执行以下步骤:
    当检测到所述APP的运行状态由第一状态转变为第二状态时,确定所述蓝牙主设备的蓝牙功能的当前状态,其中,所述第一状态和所述第二状态分别为开启状态和关闭状态中的一种,所述第一状态和所述第二状态不同;
    当所述蓝牙主设备的蓝牙功能的当前状态与所述第二状态需要对应的蓝牙功能的状态不同时,将所述蓝牙主设备的蓝牙功能的状态切换为所述第二状态需要对应的蓝牙功能的状态。
  27. 根据权利要求26所述的蓝牙主设备,其特征在于,所述存储器内存储有所述蓝牙从设备的信息,所述处理器还用于:当所述第二状态为开启状态,且蓝牙功能的状态为开启状态时,
    通过所述蓝牙模块对所述蓝牙主设备周围的蓝牙设备进行搜索;
    当搜索到所述蓝牙从设备时,使所述蓝牙主设备自动与所述蓝牙从设备建立蓝牙连接。
PCT/CN2016/087816 2016-06-30 2016-06-30 管理蓝牙连接的方法、蓝牙主设备和装置 WO2018000290A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
PCT/CN2016/087816 WO2018000290A1 (zh) 2016-06-30 2016-06-30 管理蓝牙连接的方法、蓝牙主设备和装置
US16/314,421 US20190159271A1 (en) 2016-06-30 2016-06-30 Bluetooth connection management method, master bluetooth device, and apparatus
KR1020197001697A KR20190019179A (ko) 2016-06-30 2016-06-30 블루투스 연결 관리 방법, 마스터 블루투스 디바이스, 및 장치
JP2018568764A JP6924783B2 (ja) 2016-06-30 2016-06-30 ブルートゥース接続管理方法、マスタ・ブルートゥース・デバイス、及び装置
CN201680025161.3A CN107852762B (zh) 2016-06-30 2016-06-30 管理蓝牙连接的方法、蓝牙主设备和装置
MYPI2018002706A MY196659A (en) 2016-06-30 2016-06-30 Bluetooth Connection Management Method and Master Bluetooth Device
EP16906691.7A EP3462803B1 (en) 2016-06-30 2016-06-30 Method for managing bluetooth connection and master bluetooth device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/087816 WO2018000290A1 (zh) 2016-06-30 2016-06-30 管理蓝牙连接的方法、蓝牙主设备和装置

Publications (1)

Publication Number Publication Date
WO2018000290A1 true WO2018000290A1 (zh) 2018-01-04

Family

ID=60785715

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087816 WO2018000290A1 (zh) 2016-06-30 2016-06-30 管理蓝牙连接的方法、蓝牙主设备和装置

Country Status (7)

Country Link
US (1) US20190159271A1 (zh)
EP (1) EP3462803B1 (zh)
JP (1) JP6924783B2 (zh)
KR (1) KR20190019179A (zh)
CN (1) CN107852762B (zh)
MY (1) MY196659A (zh)
WO (1) WO2018000290A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300397A (zh) * 2019-05-30 2019-10-01 惠州高盛达科技有限公司 AI智能音箱的wifi连接方法及AI智能音箱
CN112333678A (zh) * 2020-09-09 2021-02-05 深圳Tcl新技术有限公司 基于蓝牙的数据传输方法及智能系统、存储介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107318174A (zh) * 2017-06-28 2017-11-03 广东欧珀移动通信有限公司 一种通信方法、装置及终端
CN109800644A (zh) * 2018-12-17 2019-05-24 深圳壹账通智能科技有限公司 基于表情识别的终端设备切换方法、装置、介质及终端
CN109660973A (zh) * 2018-12-28 2019-04-19 努比亚技术有限公司 蓝牙控制方法、移动终端及存储介质
KR102522253B1 (ko) 2019-02-19 2023-04-17 주식회사 엘지화학 편광판의 제조 방법
CN112804667A (zh) * 2019-11-13 2021-05-14 络达科技股份有限公司 无线蓝牙音讯输出系统与其控制方法
CN111385781B (zh) * 2020-03-03 2023-02-24 广东小天才科技有限公司 一种文件分享方法、智能手表、存储介质及电子设备
KR20210135085A (ko) * 2020-05-04 2021-11-12 엘지이노텍 주식회사 블루투스 디바이스
CN112437421B (zh) * 2020-11-23 2024-05-10 深圳市纵贯无限科技有限公司 蓝牙控制方法、装置、存储介质及移动终端
CN112596426B (zh) * 2020-11-30 2022-03-11 深圳市欧瑞博科技股份有限公司 单火线蓝牙智能开关的控制以及组网方法、装置及电子设备
CN113138335B (zh) * 2021-04-16 2024-10-18 中国电力科学研究院有限公司 一种检测蓝牙断路器的方法及系统
CN113573291B (zh) * 2021-08-04 2024-07-30 杭州涂鸦信息技术有限公司 蓝牙连接方法、装置、计算机设备和计算机可读存储介质
CN113825105B (zh) * 2021-09-26 2023-03-07 深圳市芯中芯科技有限公司 一种基于蓝牙广播的一拖多组网音箱控制系统及方法
CN115396859A (zh) * 2022-08-25 2022-11-25 深圳康佳电子科技有限公司 一种显示设备与遥控设备蓝牙配对的方法、装置及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093216A (zh) * 2014-06-16 2014-10-08 小米科技有限责任公司 一种无线数据传输的方法和装置
US20160057803A1 (en) * 2014-08-21 2016-02-25 Samsung Electronics Co., Ltd. Method for selecting communication method and electronic device thereof
CN105447921A (zh) * 2015-11-18 2016-03-30 浙江广厦建设职业技术学院 课堂自动化考勤与限制手机使用的系统及其实现方法

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11355848A (ja) * 1998-06-04 1999-12-24 Alps Electric Co Ltd データ通信の開始・終了方式
JP3766056B2 (ja) * 2002-09-30 2006-04-12 株式会社東芝 主通信装置、従属通信装置、通信制御装置、通信システム及び通信制御プログラム
US7546086B2 (en) * 2004-05-07 2009-06-09 Telefonaktiebolaget L M Ericsson (Publ) Ad-hoc messaging between wireless devices
CN101938284B (zh) * 2009-06-30 2014-01-01 深圳富泰宏精密工业有限公司 通信装置及其通信方法
KR20110028056A (ko) * 2009-09-11 2011-03-17 삼성전자주식회사 블루투스 통신 연결 방법 및 시스템
JP5487889B2 (ja) * 2009-11-11 2014-05-14 キヤノンマーケティングジャパン株式会社 携帯情報端末、およびその制御方法、プログラム
JP5950691B2 (ja) * 2012-02-09 2016-07-13 シャープ株式会社 情報処理システム、情報処理装置、及び通信接続方法
JP6077268B2 (ja) * 2012-10-25 2017-02-08 京セラ株式会社 電子機器、制御方法、及び制御プログラム
US9800429B2 (en) * 2013-03-15 2017-10-24 Smartbotics Inc. Adaptive home and commercial automation devices, methods and systems based on the proximity of controlling elements
JP2015012443A (ja) * 2013-06-28 2015-01-19 スター精密株式会社 情報処理端末および無線接続制御用プログラム
CN204334965U (zh) * 2014-07-25 2015-05-13 中兴通讯股份有限公司 一种蓝牙控制装置、移动终端及通信系统
JP6582372B2 (ja) * 2014-08-26 2019-10-02 カシオ計算機株式会社 電子機器及び通信接続の制御方法
US9357342B2 (en) * 2014-10-07 2016-05-31 Google Inc. Short-range wireless controller filtering and reporting
KR20160062393A (ko) * 2014-11-25 2016-06-02 김영렬 블루투스로 스위칭 가능한 콘센트
CN104680213A (zh) * 2015-02-12 2015-06-03 无锡识凌科技有限公司 一种设备之间快速连接及数据传输的控制方法
TWI578821B (zh) * 2015-06-26 2017-04-11 鴻海精密工業股份有限公司 省電方法及低功耗藍牙設備
CN105578386A (zh) * 2015-11-26 2016-05-11 小米科技有限责任公司 蓝牙设备管理方法及装置
CN105391477A (zh) * 2015-12-15 2016-03-09 小米科技有限责任公司 蓝牙设备间的通信方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093216A (zh) * 2014-06-16 2014-10-08 小米科技有限责任公司 一种无线数据传输的方法和装置
US20160057803A1 (en) * 2014-08-21 2016-02-25 Samsung Electronics Co., Ltd. Method for selecting communication method and electronic device thereof
CN105447921A (zh) * 2015-11-18 2016-03-30 浙江广厦建设职业技术学院 课堂自动化考勤与限制手机使用的系统及其实现方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300397A (zh) * 2019-05-30 2019-10-01 惠州高盛达科技有限公司 AI智能音箱的wifi连接方法及AI智能音箱
CN112333678A (zh) * 2020-09-09 2021-02-05 深圳Tcl新技术有限公司 基于蓝牙的数据传输方法及智能系统、存储介质
CN112333678B (zh) * 2020-09-09 2023-10-13 深圳Tcl新技术有限公司 基于蓝牙的数据传输方法及智能系统、存储介质

Also Published As

Publication number Publication date
JP6924783B2 (ja) 2021-08-25
US20190159271A1 (en) 2019-05-23
EP3462803B1 (en) 2023-07-26
EP3462803A1 (en) 2019-04-03
CN107852762B (zh) 2021-02-12
JP2019525554A (ja) 2019-09-05
EP3462803A4 (en) 2019-08-28
MY196659A (en) 2023-04-28
CN107852762A (zh) 2018-03-27
KR20190019179A (ko) 2019-02-26

Similar Documents

Publication Publication Date Title
WO2018000290A1 (zh) 管理蓝牙连接的方法、蓝牙主设备和装置
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
EP3873004B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN107277880B (zh) 数据网络切换的方法、装置及移动终端
WO2017197650A1 (zh) 通话中的交互方法和设备
EP3624404B1 (en) Method and device for establishing wireless communication connection
WO2019090726A1 (zh) 选择蓝牙设备的方法、终端和系统
US11579946B2 (en) Method for managing multiple operating systems in a terminal
WO2019210754A1 (zh) 搜网控制方法、装置及移动终端
WO2018098694A1 (zh) 搜索网络的方法和终端设备
US11076354B2 (en) Cell handover method and terminal device
CN106454810A (zh) 一种建立热点的方法及终端设备
CN110072013B (zh) 终端控制方法及装置
WO2015024393A1 (zh) 发送短信的方法、装置及终端
US8970792B2 (en) Remote controller and remote controller set applied to display device
CN106815077B (zh) 一种基于智能设备架构的数据处理方法,及智能设备
CN105635379B (zh) 噪声抑制方法及装置
CN107484225B (zh) 一种网络接入控制方法、装置及用户终端
CN108307531B (zh) 通话控制方法、装置、用户终端及计算机可读存储介质
CN111106846A (zh) 一种降低sar值的方法、系统及移动终端
CN111182141B (zh) 一种获取终端装置状态的方法、装置及存储介质

Legal Events

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

Ref document number: 16906691

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018568764

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20197001697

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2016906691

Country of ref document: EP

Effective date: 20190130