WO2023124257A1 - 一种蓝牙设备的组网方法、终端设备及蓝牙设备 - Google Patents

一种蓝牙设备的组网方法、终端设备及蓝牙设备 Download PDF

Info

Publication number
WO2023124257A1
WO2023124257A1 PCT/CN2022/119094 CN2022119094W WO2023124257A1 WO 2023124257 A1 WO2023124257 A1 WO 2023124257A1 CN 2022119094 W CN2022119094 W CN 2022119094W WO 2023124257 A1 WO2023124257 A1 WO 2023124257A1
Authority
WO
WIPO (PCT)
Prior art keywords
networking
bluetooth device
information
shortcut key
key
Prior art date
Application number
PCT/CN2022/119094
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 中兴通讯股份有限公司
Publication of WO2023124257A1 publication Critical patent/WO2023124257A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • Embodiments of the present disclosure relate to the technical field of near-field communication, and in particular, to a networking method of a Bluetooth device, a terminal device, and a Bluetooth device.
  • Bluetooth 4.0 introduces low-power modules. Wearable devices are the first market for low-power Bluetooth to explode, and are currently in a period of rapid growth. Among them, the growth of wearable devices mainly comes from wrist devices and ear-worn devices.
  • Bluetooth 5.2 introduces a new Bluetooth Low Energy Audio (BLE Audio for short) technology, which adds a new multi-stream audio (Multi-Stream Audio) function to achieve a single audio source device (source device) ) and one or more audio receiving devices for simultaneous multiple and independent audio stream transmission.
  • BLE Audio Bluetooth Low Energy Audio
  • Multi-Stream Audio multi-stream audio
  • the main purpose of the embodiments of the present disclosure is to provide a networking method for Bluetooth devices, a terminal device and a Bluetooth device, which can improve the operation convenience of the BLE Audio solution.
  • an embodiment of the present disclosure provides a Bluetooth device networking method, which is applied to a terminal device, including: setting networking information for at least one target Bluetooth device, and the networking information includes at least one and preset The shortcut key corresponding to the networking operation and the key value of the shortcut key; the networking information is sent to the target Bluetooth device, so that the target Bluetooth device can send the The key value is carried in the broadcast information for broadcast; in the case that the information broadcast by the target Bluetooth device includes the key value, execute the preset networking corresponding to the shortcut key indicated by the key value operate.
  • an embodiment of the present disclosure also provides a Bluetooth device networking method, which is applied to the Bluetooth device, including: receiving networking information set by the terminal device, and the networking information includes at least one The shortcut key corresponding to the networking operation and the key value of the shortcut key; after the operation of the shortcut key is detected, the key value is carried in the broadcast information for broadcasting, for the terminal device to perform the operation indicated by the key value The preset networking operation corresponding to the shortcut key.
  • an embodiment of the present disclosure further provides a terminal device, including: a setting module configured to set networking information for at least one target Bluetooth device, and the networking information includes at least one preset networking Operate the corresponding shortcut key and the key value of the shortcut key; the sending module is configured to send the networking information to the target Bluetooth device, for the target Bluetooth device to send the target Bluetooth device after detecting the operation of the shortcut key
  • the key value is carried in the broadcast information for broadcast; the execution module is configured to execute the corresponding shortcut key indicated by the key value when the key value is included in the information broadcast by the target Bluetooth device.
  • an embodiment of the present disclosure further provides a Bluetooth device, including: a receiving module configured to receive networking information set by the terminal device, the networking information includes at least one corresponding to a preset networking operation The shortcut key and the key value of the shortcut key; the broadcast module is configured to carry the key value in broadcast information for broadcasting after detecting the operation of the shortcut key, so that the terminal device can execute the key value indication The preset networking operations corresponding to the shortcut keys.
  • an embodiment of the present disclosure further provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information that can be used by the Instructions executed by at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned networking method of a Bluetooth device applied to a terminal device, or can execute the above-mentioned application A method for networking of a Bluetooth device of a Bluetooth device.
  • an embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned method for networking a Bluetooth device applied to a terminal device is implemented, or , realizing the above-mentioned networking method of the Bluetooth device applied to the Bluetooth device.
  • FIG. 1 is a structural diagram of a terminal device provided according to an embodiment of the present disclosure
  • FIG. 2 is a flow chart 1 of a networking method for Bluetooth devices provided according to an embodiment of the present disclosure
  • FIG. 3 is a second flow chart of a networking method for Bluetooth devices provided according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart three of a networking method for Bluetooth devices provided according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart 4 of a networking method for Bluetooth devices provided according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart five of a networking method for Bluetooth devices provided according to an embodiment of the present disclosure.
  • Fig. 7 is a schematic diagram of a terminal device provided according to another embodiment of the present disclosure.
  • Fig. 8 is a schematic diagram of a Bluetooth device provided according to another embodiment of the present disclosure.
  • Fig. 9 is a schematic structural diagram of an electronic device according to another embodiment of the present disclosure.
  • An embodiment of the present disclosure relates to a networking method for Bluetooth devices, which is applied to terminal devices.
  • the terminal device is a device supporting BLE AUDIO technology, for example, a mobile phone.
  • the structure of the terminal device is shown in FIG. 1 , including: a setting module 101 , a Bluetooth module 102 , an audio module 103 , a whitelist management module 104 , a monitoring module 105 , and a device management module 106 .
  • the setting module 101 is configured to set and save the bluetooth device and the networking information of the bluetooth device.
  • the bluetooth module 102 is configured to connect with bluetooth devices, exchange information, and perform preset networking operations.
  • a terminal device can transmit audio streams to different Bluetooth devices to realize synchronous multi-target data stream transmission.
  • the Bluetooth device may be a connection-based synchronous audio stream (Connected Isochronous Stream, CIS) device and a broadcast-based synchronous audio stream (Broadcast Isochronous Stream, BIS) device.
  • the audio module 103 is configured to encode the audio data of the upper-layer application to obtain audio coded data, and transmit the audio coded data to a corresponding playback device, that is, the Bluetooth module 102 in this embodiment.
  • the white list management module 104 is configured to manage the bluetooth devices whose networking information is set by the user, specifically including the addresses of the bluetooth devices, the media access control address (Media Access Control Address, MAC), and the applications that the bluetooth devices are authorized to use.
  • the bluetooth devices whose networking information is set by the user, specifically including the addresses of the bluetooth devices, the media access control address (Media Access Control Address, MAC), and the applications that the bluetooth devices are authorized to use.
  • MAC Media Access Control Address
  • the monitoring module 105 is configured to monitor the data packets sent by the Bluetooth device and analyze the data packets, that is, the information broadcast by the target Bluetooth device in this embodiment.
  • the device management module 106 is configured to manage the Bluetooth devices connected to the terminal device. For example, disconnect the terminal device from the Bluetooth device, or switch the audio stream transmitted to the Bluetooth device.
  • the setting module 101 is not limited to the setting interface in the mobile terminal, and any interactive interface capable of realizing its function can be the setting module 101 .
  • the specific flowchart of the networking method of the Bluetooth device in the embodiment of the present disclosure, as shown in FIG. 2 includes:
  • Step 201 setting networking information for at least one target Bluetooth device.
  • Step 202 sending the networking information to the target Bluetooth device, so that the target Bluetooth device can carry the key value in the broadcast information to broadcast after detecting the operation of the shortcut key.
  • Step 203 in the case that the information broadcast by the target Bluetooth device includes a key value, execute a preset networking operation corresponding to the shortcut key indicated by the key value.
  • the networking information is set for at least one target Bluetooth device, wherein the networking information includes at least one shortcut key corresponding to the preset networking operation and the key value of the shortcut key, and then the networking information Send to the target Bluetooth device for the target Bluetooth device to broadcast the key value in the broadcast information after detecting the operation of the shortcut key, and execute the key value instruction if the information broadcast by the target Bluetooth device includes the key value The preset networking operations corresponding to the shortcut keys.
  • the networking information includes at least one shortcut key corresponding to the preset networking operation and the key value of the shortcut key
  • the networking information includes at least one shortcut key corresponding to the preset networking operation and the key value of the shortcut key
  • networking information is set for at least one target Bluetooth device, wherein the networking information includes at least one shortcut key corresponding to a preset networking operation and the key value of the shortcut key, and then the networking information is sent to
  • the target Bluetooth device After the target Bluetooth device detects the operation of the shortcut key, it carries the key value in the broadcast information and broadcasts it.
  • the information broadcast by the target Bluetooth device includes the key value, it executes the operation indicated by the key value.
  • the preset networking operation corresponding to the shortcut key is set for at least one target Bluetooth device, wherein the networking information includes at least one shortcut key corresponding to a preset networking operation and the key value of the shortcut key.
  • the networking information includes at least one shortcut key corresponding to the preset networking operation and the key value of the shortcut key
  • the networking information includes at least one shortcut key corresponding to the preset networking operation and the key value of the shortcut key
  • the terminal device selects at least one target Bluetooth device from the candidate Bluetooth devices, and after connecting to it, sets networking information for the connected target Bluetooth device, wherein the networking information includes at least one preset networking operation The corresponding shortcut key and the key value of the shortcut key.
  • the candidate Bluetooth device is displayed through the human-computer interaction interface for the user to select, and the Bluetooth device selected by the user is used as the target Bluetooth device, and then the candidate networking operation and the candidate shortcut key are displayed through the human-computer interaction interface for the user to select, And the networking operation and shortcut key selected by the user are used as the preset networking operation and the shortcut key corresponding to the preset networking operation.
  • the candidate networking operation includes one of the following or any combination thereof: joining a synchronization group, joining a synchronization group and playing an audio stream, and exiting a currently joined synchronization group.
  • the candidate networking operation further includes: joining the synchronization group last joined.
  • the synchronization group is a connection-based synchronization group (Connected Isochronous Group, CIG), or a broadcast-based synchronization group (Broadcast Isochronous Group, BIG).
  • the corresponding relationship between the key value of the shortcut key, the shortcut key, and the candidate networking operation in Table 1 is only for illustration, and the form of the shortcut key may not be unique.
  • the key of the shortcut key may also be an answer key /Hang up button, the button form can also be short press or continuous short press; the corresponding relationship is not unique, for example, the candidate networking operation corresponding to double-clicking the volume up key can be to join a synchronization group and play an audio stream.
  • step 202 after setting up the networking information for the target Bluetooth device, the networking information is sent to the target Bluetooth device through the GATT (Generic Attribute Profile) protocol, so that the target Bluetooth device can send the key value after detecting the operation of the shortcut key. It is carried in the broadcast information for broadcasting.
  • GATT Generic Attribute Profile
  • the GATT protocol is a general specification for sending and receiving very short data segments over the Bluetooth connection.
  • the networking information is sent to the target Bluetooth device through the GATT protocol, so that the target Bluetooth device modifies the corresponding attribute ATTRIBUTE value, that is, this
  • the key value is carried in the broadcast information, such as the beacon broadcast data field for broadcast.
  • the broadcast period after sending the networking information to the target Bluetooth device, the broadcast period will be negotiated with the target Bluetooth device, and then the broadcast period of the negotiation will be used to monitor the broadcast of the Bluetooth device, so as to prevent the terminal device from performing a long-term monitoring of the target Bluetooth device. Scanning and monitoring results in power consumption.
  • step 203 when the terminal device hears that the information broadcast by the target Bluetooth device includes the key value, that is, it hears the preset networking operation that the target Bluetooth device needs to perform, it executes the corresponding shortcut key indicated by the key value. Preset networking operations.
  • the terminal device when the terminal device hears that the information broadcast by the target Bluetooth device includes the key value 102, that is, it hears that the target Bluetooth device needs to join the synchronization group and play the audio stream, then the terminal device will connect with the target Bluetooth device, that is, the target Bluetooth device will be added to the synchronization group. Group BIG or CIG, and transmit the audio stream to the target Bluetooth device, so that the target Bluetooth device can play audio, and at the same time, the terminal device will save the information of the target Bluetooth device connected to the terminal device.
  • the target Bluetooth device that is, the target Bluetooth device will be added to the synchronization group.
  • Group BIG or CIG Group BIG or CIG
  • the execution key indicates After the preset networking operation corresponding to the shortcut key, the user will be prompted to select the target audio stream through the human-computer interaction interface, and the target audio stream selected by the user will be synchronized to the target Bluetooth device. Through the target audio stream selected by the user, the fast connection and networking of Bluetooth devices can be realized.
  • displaying the audio stream through the human-computer interaction interface for the user to select the target audio stream is only an implementation method of determining the target audio stream, and the default audio stream, that is, the target audio stream, can also be pushed to the target Bluetooth device.
  • the default audio stream is preset.
  • the bluetooth device networking method applied to the terminal device in the embodiment of the present disclosure can also be implemented in the following manner: the terminal device sets networking information for at least one target bluetooth device, wherein the networking information includes synchronization with joining The shortcut key corresponding to the group, and then send the networking information to the target Bluetooth device for the target Bluetooth device to initiate a network access request after detecting the operation of the shortcut key.
  • the Bluetooth device joins the sync group.
  • the terminal device can monitor whether the target Bluetooth device initiates a network access request by entering the discovery mode, so as to add the target Bluetooth device to the synchronization group when monitoring the network access request initiated by the target Bluetooth device.
  • Another embodiment of the present disclosure relates to a Bluetooth device networking method, which is applied to terminal devices.
  • This embodiment is roughly the same as the first embodiment, except that the networking information set for the target Bluetooth device also includes: target Application information that the Bluetooth device is authorized to use.
  • the specific flow chart of the networking method of the Bluetooth device in the embodiment of the present disclosure is shown in Figure 3, including:
  • Step 301 setting networking information for at least one target Bluetooth device.
  • the networking information also includes application information that the target Bluetooth device is authorized to use. For example, set the application authorized to be used by the target Bluetooth device as music playing software 1 .
  • step 302 the networking information is sent to the target Bluetooth device, so that the target Bluetooth device carries the key value in the broadcast information to broadcast after detecting the operation of the shortcut key.
  • Step 302 is substantially the same as step 202, and will not be repeated here.
  • Step 303 if the information broadcast by the target Bluetooth device includes a key value, detect whether the currently transmitted audio data belongs to an application that the target Bluetooth device is authorized to use.
  • the key value is included in the information broadcast by the target Bluetooth device, it is detected whether the player software of the currently transmitted audio stream belongs to the application that the target Bluetooth device has the right to use, that is, the music player software 1 . If yes, go to step 304, if not, go to step 305.
  • Step 304 when it is determined that the currently transmitted audio data belongs to an application that the target Bluetooth device is entitled to use, execute a preset networking operation corresponding to the shortcut key indicated by the key value.
  • the player software of the currently transmitted audio stream belongs to the application that the target Bluetooth device has the right to use, that is, the player software of the currently transmitted audio stream is music player software 1, then execute the shortcut key indicated by the key value Corresponding preset networking operations.
  • Step 305 in the case that it is determined that the currently transmitted audio data does not belong to the application that the target Bluetooth device has the right to use, prompting the user to make settings through the human-computer interaction interface.
  • the bluetooth device can be controlled more flexibly by setting the authorized application for the target bluetooth device.
  • the terminal device will not connect to the target Bluetooth device and transmit the audio stream , therefore, it is necessary to re-set the networking information for the target Bluetooth device through the human-computer interaction interface.
  • FIG. 4 Another embodiment of the present disclosure relates to a networking method for Bluetooth devices, which is applied to Bluetooth devices, such as earphones.
  • the implementation details of the bluetooth device networking method in this embodiment will be described in detail below. The following content is only implementation details provided for easy understanding, and is not necessary for implementing this solution.
  • the specific flowchart of the networking method of the bluetooth device in this embodiment is shown in Figure 4, including:
  • Step 401 receiving the networking information set by the terminal device.
  • the networking information includes at least one shortcut key corresponding to a preset networking operation and a key value of the shortcut key.
  • the buttons of the shortcut keys are volume up and down keys, answer/hang up keys, and the key forms are short presses, continuous short presses, long presses, or simultaneous presses, which can avoid overlapping with the original function key forms.
  • the shortcut keys are richer and may include a human-computer interaction interface.
  • Step 402 after the operation of the shortcut key is detected, the key value is carried in the broadcast information for broadcasting, so that the terminal device can execute the preset networking operation corresponding to the shortcut key indicated by the key value.
  • the Bluetooth device broadcasts the key value in the broadcast information.
  • the broadcast message type adopts the non-connectable non-directional broadcast ADV_NONCONN_IND, and the format is a 6-byte broadcast device address. +31 bytes of broadcast data (AD Structure1+AD Structure2+........+AD StructureN), among which, the longest broadcast data is 31 bytes.
  • the key value is carried in the broadcast information for broadcast, so that the terminal device can execute the preset corresponding to the shortcut key indicated by the key value. Networking operation to improve the operation convenience of the BLE Audio solution.
  • the Bluetooth device networking method applied to the Bluetooth device in the embodiment of the present disclosure can also be implemented in the following manner: the Bluetooth device receives the networking information set by the terminal device, wherein the networking information includes information related to joining a synchronization group The shortcut key corresponding to the group, and then initiate a network access request after detecting the operation of the shortcut key, for the terminal device to add the Bluetooth device to the synchronization group.
  • Another embodiment of the present disclosure relates to a networking method for Bluetooth devices, which is applied to Bluetooth devices.
  • This embodiment is roughly the same as the third embodiment, except that after the operation of the shortcut key is detected, the currently scanned The received signal strength indicator of the received broadcast signal is detected, and the specific flowchart of the networking method of the Bluetooth device of the present embodiment is shown in Figure 5, including:
  • Step 501 receiving networking information set by a terminal device.
  • Step 501 is substantially the same as step 401, and will not be repeated here.
  • Step 502 after detecting the operation of the shortcut key, detect whether the received signal strength indicator RSSI of the currently scanned broadcast signal is greater than a first preset threshold.
  • the terminal device Before the terminal device is connected to the Bluetooth device, it will send a broadcast signal to the surrounding Bluetooth devices. After the Bluetooth device detects that the user has performed the operation of the shortcut key, it will scan the broadcast signal broadcast by the terminal device in advance and judge the current status. Whether the RSSI of the scanned broadcast signal is greater than the first preset threshold is to detect whether the broadcast signal of the current terminal device is strong enough.
  • the first preset threshold is an empirical value.
  • Step 503 after it is determined that the RSSI is greater than the first preset threshold, carry the key value corresponding to the detected operation of the shortcut key in the broadcast information for broadcasting.
  • the key value is carried in the broadcast information for broadcast, so that the terminal device executes the preset function corresponding to the shortcut key indicated by the key value. networking operations.
  • the terminal device that is, the signal of the source device of the Bluetooth audio stream will affect the playback effect of the audio stream
  • the RSSI of the currently scanned broadcast signal will be detected. After it is determined that the RSSI is greater than the first preset threshold, the key value will be carried in the broadcast information for broadcast, so as to improve the playback effect of the audio stream.
  • Another embodiment of the present disclosure relates to a networking method for Bluetooth devices, which is applied to Bluetooth devices.
  • This embodiment is roughly the same as the third embodiment, except that after receiving the networking information set by the terminal device, if the scanning If the received broadcast signal is greater than the preset threshold, relevant operations will be performed automatically.
  • the specific flowchart of the networking method of the Bluetooth device in this embodiment is shown in Figure 6, including:
  • Step 601 receiving networking information set by a terminal device.
  • Step 601 is substantially the same as step 401, and will not be repeated here.
  • Step 602 periodically scan the broadcast signal of the terminal device.
  • the terminal device Before the terminal device is connected to the Bluetooth device, it will send a broadcast signal to the surrounding Bluetooth devices. If the Bluetooth device is turned on, it will periodically scan the broadcast signal of the terminal device.
  • step 603 when the scanned RSSI of the broadcast signal is greater than the second preset threshold, carry the key value in the networking information in the broadcast information for broadcasting.
  • the Bluetooth device determines that the RSSI of the scanned broadcast signal is greater than the second preset threshold, indicating that the signal of the current terminal device is strong enough, it will directly carry the key value in the broadcast information and broadcast it for the terminal device to execute the key value.
  • the preset networking operation corresponding to the indicated shortcut key is a preset networking operation corresponding to the indicated shortcut key.
  • step division of the above various methods is only for the sake of clarity of description. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
  • FIG. A schematic diagram of the terminal device described in the example, including: a setting module 701 , a sending module 702 and an execution module 703 .
  • the setting module 701 is configured to set networking information for at least one target Bluetooth device, wherein the networking information includes at least one shortcut key corresponding to a preset networking operation and a key value of the shortcut key.
  • the setting module 701 is also configured to display candidate Bluetooth devices through the human-computer interaction interface for the user to select, and use the Bluetooth device selected by the user as the target Bluetooth device; display candidate networking operations and The candidate shortcut keys are for the user to choose, and the user-selected networking operation and shortcut key are used as the preset networking operation and the shortcut key corresponding to the preset networking operation; wherein, the candidate networking operation includes one of the following Or any combination thereof: join a sync group, join a sync group and play audio stream, exit the currently joined sync group.
  • the setting module 701 is further configured to set networking information for at least one target Bluetooth device, wherein the networking information includes a shortcut key corresponding to joining a synchronization group.
  • the sending module 702 is configured to send the networking information to the target Bluetooth device, for the target Bluetooth device to carry the key value in the broadcast information to broadcast after detecting the operation of the shortcut key.
  • the sending module 702 is further configured to send networking information to the target Bluetooth device, so that the target Bluetooth device can initiate a network access request after detecting the operation of the shortcut key.
  • the execution module 703 is configured to execute a preset networking operation corresponding to the shortcut key indicated by the key value when the information broadcast by the target Bluetooth device is monitored includes a key value.
  • the execution module 703 is further configured to detect the currently transmitted information when the information broadcast by the target Bluetooth device includes a key value when the networking information also includes the application information that the target Bluetooth device is authorized to use. Whether the audio data belongs to the application that the target Bluetooth device has the right to use, if it is determined that the currently transmitted audio data belongs to the application that the target Bluetooth device has the right to use, execute the preset networking operation corresponding to the shortcut key indicated by the key value.
  • the execution module 703 is further configured to: when the networking information also includes information about applications that the target Bluetooth device is authorized to use, when it is determined that the currently transmitted audio data does not belong to the application that the target Bluetooth device is authorized to use, Prompt the user to set up through the human-computer interaction interface.
  • the execution module 703 is further configured to add the target Bluetooth device to the synchronization group when monitoring the network access request initiated by the target Bluetooth device.
  • this embodiment is an embodiment of a terminal device corresponding to the foregoing method embodiment applied to a terminal device, and this embodiment may be implemented in cooperation with the foregoing method embodiment.
  • the relevant technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and will not be repeated here to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied in the above embodiments.
  • FIG. 1 The schematic diagram of the bluetooth device described in the example includes: a receiving module 801 and a broadcasting module 802 .
  • the receiving module 801 is configured to receive networking information set by the terminal device, wherein the networking information includes at least one shortcut key corresponding to a preset networking operation and a key value of the shortcut key.
  • the receiving module 801 is further configured to receive networking information set by the terminal device, wherein the networking information includes a shortcut key corresponding to joining a synchronization group.
  • the broadcast module 802 is configured to broadcast the key value in the broadcast information after detecting the operation of the shortcut key, so that the terminal device can execute the preset networking operation corresponding to the shortcut key indicated by the key value.
  • the broadcast module 802 is further configured to detect whether the received signal strength indicator RSSI of the currently scanned broadcast signal is greater than the first preset threshold after detecting the operation of the shortcut key; After the threshold, carry the key value in the broadcast information for broadcast.
  • the bluetooth device further includes: a request module, configured to initiate a network access request after detecting the operation of the shortcut key, for the terminal device to add the bluetooth device to the synchronization group.
  • this embodiment is an embodiment of a Bluetooth device corresponding to the above-mentioned method embodiment applied to a Bluetooth device, and this embodiment can be implemented in cooperation with the above-mentioned method embodiment.
  • the relevant technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and will not be repeated here to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied in the above embodiments.
  • modules involved in the above-mentioned terminal device embodiment and the Bluetooth device embodiment are logical modules.
  • a logical unit can be a physical unit or a part of a physical unit. , and can also be implemented as a combination of multiple physical units.
  • units that are not closely related to solving the technical problems raised by the present disclosure are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
  • FIG. 9 Another embodiment of the present disclosure relates to an electronic device, as shown in FIG. 9 , including: at least one processor 901; and a memory 902 communicatively connected to the at least one processor 901; wherein, the memory 902 stores Instructions that can be executed by the at least one processor 901, the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the networking methods for Bluetooth devices in the foregoing embodiments.
  • the memory and the processor are connected by a bus
  • the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • the data processed by the processor is transmitted on the wireless medium through the antenna, further, the antenna also receives the data and transmits the data to the processor.
  • the processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory can be used to store data that the processor uses when performing operations.
  • Another embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • a storage medium includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Abstract

本公开实施例涉及近场通信技术领域,公开了一种蓝牙设备的组网方法、终端设备、蓝牙设备。上述蓝牙设备的组网方法包括:为至少一个目标蓝牙设备设置组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和所述快捷键的键值;将所述组网信息发送给所述目标蓝牙设备,供所述目标蓝牙设备在检测到所述快捷键的操作后将所述键值携带在广播信息中进行广播;在监听到所述目标蓝牙设备广播的信息中包括所述键值的情况下,执行所述键值指示的快捷键所对应的所述预设的组网操作。本公开实施例提供的蓝牙设备的组网方法,旨在提升BLE Audio方案的操作便捷性。

Description

一种蓝牙设备的组网方法、终端设备及蓝牙设备
相关申请的交叉引用
本公开基于2021年12月30日提交的发明名称为“一种蓝牙设备的组网方法、终端设备及蓝牙设备”的中国专利申请CN202111657454.2,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。
技术领域
本公开实施例涉及近场通信技术领域,特别涉及一种蓝牙设备的组网方法、终端设备及蓝牙设备。
背景技术
蓝牙4.0引入了低功耗模块,可穿戴设备是低功耗蓝牙率先爆发的市场,当前处在快速增长期,其中,可穿戴设备的增长主要来自腕式设备和耳戴式设备。蓝牙5.2推出了全新的低能耗蓝牙音频(Bluetooth Low Energy Audio,简称为BLE Audio)技术,该技术加入了全新的多重串流音频(Multi-Stream Audio)功能,实现了单一音频源设备(source device)与一个或多个音频接收设备之间,同步进行多重且独立的音频串流传输。
然而,目前在采用BLE Audio技术,即同步进行多重且独立的音频串流传输时,操作的便捷性较低。
发明内容
本公开实施例的主要目的在于提出一种蓝牙设备的组网方法、终端设备及蓝牙设备,可以提升BLE Audio方案的操作便捷性。
为至少实现上述目的,本公开实施例提供了一种蓝牙设备的组网方法,应用于终端设备,包括:为至少一个目标蓝牙设备设置组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和所述快捷键的键值;将所述组网信息发送给所述目标蓝牙设备,供所述目标蓝牙设备在检测到所述快捷键的操作后将所述键值携带在广播信息中进行广播;在监听到所述目标蓝牙设备广播的信息中包括所述键值的情况下,执行所述键值指示的快捷键所对应的所述预设的组网操作。
为至少实现上述目的,本公开实施例还提供了一种蓝牙设备的组网方法,应用于蓝牙设备,包括:接收终端设备设置的组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值;在检测到所述快捷键的操作后,将所述键值携带在广播信息中进行广播,供所述终端设备执行所述键值指示的快捷键所对应的所述预设的组网操作。
为至少实现上述目的,本公开实施例还提供了一种终端设备,包括:设置模块,设置为为至少一个目标蓝牙设备设置组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和所述快捷键的键值;发送模块,设置为将所述组网信息发送给所述目标蓝牙设备,供所述目标蓝牙设备在检测到所述快捷键的操作后将所述键值携带在广播信息中进行广播;执行模块,设置为在监听到所述目标蓝牙设备广播的信息中包括所述键值的情况下,执行所述键值指示的快捷键所对应的所述预设的组网操作。
为至少实现上述目的,本公开实施例还提供了一种蓝牙设备,包括:接收模块,设置为接收终端设备设置的组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值;广播模块,设置为在检测到所述快捷键的操作后,将所述键值携带在广播信息中进行广播,供所述终端设备执行所述键值指示的快捷键所对应的所述预设的组网操作。
为至少实现上述目的,本公开实施例还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述应用于终端设备的蓝牙设备的组网方法,或者,能够执行上述应用于蓝牙设备的蓝牙设备的组网方法。
为至少实现上述目的,本公开实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述应用于终端设备的蓝牙设备的组网方法,或者,实现上述应用于蓝牙设备的蓝牙设备的组网方法。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标识的元件表示为类似的元件,除非有特别的申明,附图中的图不构成比例限制。
图1是根据本公开一个实施例提供的一种终端设备的结构图;
图2是根据本公开一个实施例提供的一种蓝牙设备的组网方法的流程图一;
图3是根据本公开一个实施例提供的一种蓝牙设备的组网方法的流程图二;
图4是根据本公开一个实施例提供的一种蓝牙设备的组网方法的流程图三;
图5是根据本公开一个实施例提供的一种蓝牙设备的组网方法的流程图四;
图6是根据本公开一个实施例提供的一种蓝牙设备的组网方法的流程图五;
图7是根据本公开另一个实施例提供的一种终端设备的示意图;
图8是根据本公开另一个实施例提供的一种蓝牙设备的示意图;
图9是根据本公开另一个实施例提供的一种电子设备的结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本公开各实施例中,为了使读者更好地理解本公开而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本公开所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本公开的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。
本公开的一个实施例涉及一种蓝牙设备的组网方法,应用于终端设备。其中,终端设备为支持BLE AUDIO技术的设备,例如,手机。
在一个例子中,终端设备的结构如图1所示,包括:设置模块101,蓝牙模块102,音频模块103,白名单管理模块104,监听模块105,以及设备管理模块106。
其中,设置模块101,设置为设置及保存蓝牙设备和蓝牙设备的组网信息。
蓝牙模块102,设置为与蓝牙设备连接、信息交互、以及执行预设的组网操作。
具体地,根据蓝牙5.2规范,终端设备可以通过向不同的蓝牙设备发送音频流,以实现同步的多目标数据流传输。其中,蓝牙设备可以为基于连接的同步音频流(Connected Isochronous Stream,CIS)设备和基于广播的同步音频流(Broadcast Isochronous Stream,BIS)设备。
音频模块103,设置为将上层应用的音频数据编码,得到音频编码数据,并将音频编码数据传输给对应的播放设备,即本实施例的蓝牙模块102。
白名单管理模块104,设置为管理经过用户设置组网信息的蓝牙设备,具体包括蓝牙设备的地址、媒体存取控制位地址(Media Access Control Address,MAC)、以及蓝牙设备有权使用的应用。
监听模块105,设置为监听蓝牙设备发送的数据包并对数据包进行解析,即本实施例中的目标蓝牙设备广播的信息。
设备管理模块106,设置为管理与终端设备连接的蓝牙设备。例如,断开终端设备与蓝牙设备的连接,或者切换向蓝牙设备传输的音频流。
需要说明的是,设置模块101并不局限于手机终端中的设置界面,能够实现其功能的可交互界面都可以为设置模块101。
本公开实施例的蓝牙设备的组网方法的具体流程图,如图2所示,包括:
步骤201,为至少一个目标蓝牙设备设置组网信息。
步骤202,将组网信息发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后将键值携带在广播信息中进行广播。
步骤203,在监听到目标蓝牙设备广播的信息中包括键值的情况下,执行键值指示的快捷键所对应的预设的组网操作。
通过上述步骤S201至S203,为至少一个目标蓝牙设备设置组网信息,其中,组网信息中包括至少一个与预设的组网操作对应的快捷键和快捷键的键值,然后将组网信息发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后将键值携带在广播信息中进行广播,在监听到目标蓝牙设备广播的信息中包括键值的情况下,执行键值指示的快捷键所对应的预设的组网操作。由于组网信息中包括至少一个与预设的组网操作对应的快捷键和快捷键的键值,因此,通过为目标蓝牙设备设置组网信息,在组网信息发送给目标蓝牙设备后,监听目标蓝牙设备广播的信息,并在广播的信息中包括键值的情况下,执行键值指示的快捷键所对应的预设的组网操作,即本公开实施例通过快捷键实现预设的组网操作,无需用户进行复杂的可交互界面操作,有效地提升了BLE AUDIO操作的便捷性。
在本实施例中,为至少一个目标蓝牙设备设置组网信息,其中,组网信息中包括至少一个与预设的组网操作对应的快捷键和快捷键的键值,然后将组网信息发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后将键值携带在广播信息中进行广播,在监听到目标蓝牙设备广播的信息中包括键值的情况下,执行键值指示的快捷键所对应的预设的组网操作。由于组网信息中包括至少一个与预设的组网操作对应的快捷键和快捷键的键值,因此,通过为目标蓝牙设备设置组网信息,在组网信息发送给目标蓝牙设备后,监听目标蓝牙设备广播的信息,并在广播的信息中包括键值的情况下,执行键值指示的快捷键所对应的预设的组网操作,即本公开实施例通过快捷键实现预设的组网操作,无需用户进行复杂的可交互界面操 作,有效地提升了BLE AUDIO操作的便捷性。
下面对本实施例的蓝牙设备的组网方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
在步骤201中,终端设备从候选蓝牙设备中选择至少一个目标蓝牙设备,并与其连接之后,为连接的目标蓝牙设备设置组网信息,其中,组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值。
具体地,通过人机交互界面显示候选的蓝牙设备供用户选择,并将用户选择的蓝牙设备作为目标蓝牙设备,然后通过人机交互界面显示候选的组网操作和候选的快捷键供用户选择,并将用户选择的组网操作和快捷键作为预设的组网操作以及与预设的组网操作对应的快捷键。
其中,候选的组网操作包括以下之一或其任意组合:加入同步群组、加入同步群组并播放音频流、退出当前加入的同步群组。
在一个例子中,在查询到目标蓝牙设备的加入同步群组的历史记录时,候选的组网操作还包括:加入上一次加入的同步群组。
在一个例子中,快捷键的键值、快捷键、以及候选的组网操作的对应关系如表1所示:
表1
快捷键的键值 快捷键 候选的组网操作
101 双击音量上键 加入同步群组
102 双击音量下键 加入同步群组并播放音频流
103 同时按音量上下键 退出当前加入的同步群组
104 长按音量上键 加入上一次加入的同步群组
其中,同步群组为基于连接的同步群组(Connected Isochronous Group,CIG),或者基于广播的同步群组(Broadcast Isochronous Group,BIG)。
需要说明的是,表1中的快捷键的键值、快捷键、以及候选的组网操作的对应关系仅为举例说明,快捷键的形式可不唯一,例如,快捷键的按键还可以为接听键/挂断键,按键形式还可以为短按、连续短按;对应关系可不唯一,例如双击音量上键对应的候选的组网操作可以为加入同步群组并播放音频流。
在步骤202中,在为目标蓝牙设备设置好组网信息之后,将组网信息通过GATT(Generic Attribute Profile)协议发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后将键值携带在广播信息中进行广播。
其中,GATT协议是一个在蓝牙连接之上的发送和接收很短的数据段的通用规范,将组网信息通过GATT协议发送给目标蓝牙设备,使目标蓝牙设备修改对应的属性ATTRIBUTE值,即本实施例中的键值,然后在用户执行快捷键的操作后,将键值携带在广播信息,例如信标beacon广播数据域中进行广播。
在一个例子中,在将组网信息发送给目标蓝牙设备后,会与目标蓝牙设备协商广播周期,然后以协商的广播周期监听蓝牙设备的广播,以避免终端设备场合长时间对目标蓝牙设备进行扫描监听,导致功率的消耗。
在步骤203中,终端设备在监听到目标蓝牙设备广播的信息包括键值的情况下,即监听到目标蓝牙设备需要执行的预设的组网操作,则执行键值指示的快捷键所对应的预设的组网操作。
例如,终端设备在监听到目标蓝牙设备广播的信息包括键值102,即监听到目标蓝牙设备需要加入同步群组并播放音频流,则终端设备会与目标蓝牙设备连接,即将目标蓝牙设备加入同步群组BIG或CIG,并将音频流传输至目标蓝牙设备,使目标蓝牙设备能够播放音频,同时,终端设备会保存与终端设备连接的目标蓝牙设备的信息。
在一个例子中,若步骤201中终端设备为目标蓝牙设备设置的组网信息中的预设的组网操作为加入同步群组或加入同步群组并播放音频流,则在执行键值指示的快捷键所对应的预设的组网操作之后,会通过人机交互界面提示用户选择目标音频流,将用户选择的目标音频流同步给目标蓝牙设备。通过用户选择的目标音频流,可以实现蓝牙设备的快速连接组网。
需要说明的是,通过人机交互界面显示音频流,供用户选择目标音频流仅为确定目标音频流的一种实现方式,还可以向目标蓝牙设备推送默认的音频流,即目标音频流。其中,默认的音频流为预先设置。
在一实施例中,本公开实施例的应用于终端设备的蓝牙设备组网方法还可通过以下方式实现:终端设备为至少一个目标蓝牙设备设置组网信息,其中,组网信息包括与加入同步群组对应的快捷键,然后将组网信息发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后发起入网请求,在监听到目标蓝牙设备发起的入网请求的情况下,将目标蓝牙设备加入同步群组。
其中,终端设备可通过进入discovery模式,监听目标蓝牙设备是否发起了入网请求,以在监听到目标蓝牙设备发起的入网请求的情况下,将目标蓝牙设备加入同步群组。
本公开的另一个实施例涉及一种蓝牙设备的组网方法,应用于终端设备,本实施方式与第一实施方式大致相同,不同之处在于为目标蓝牙设备设置的组网信息还包括:目标蓝牙设备有权使用的应用信息。本公开实施例的蓝牙设备的组网方法的具体流程图如图3所示,包括:
步骤301,为至少一个目标蓝牙设备设置组网信息。
其中,组网信息还包括目标蓝牙设备有权使用的应用信息。例如,设置目标蓝牙设备有权使用的应用为音乐播放软件1。
步骤302,将组网信息发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后将键值携带在广播信息中进行广播。
步骤302与步骤202大致相同,此处不再赘述。
步骤303,在监听到目标蓝牙设备广播的信息中包括键值的情况下,检测当前传输的音频数据是否属于目标蓝牙设备有权使用的应用。
具体而言,在监听到目标蓝牙设备广播的信息中包括键值的情况下,检测当前传输的音频流的播放软件是否属于目标蓝牙设备有权使用的应用,即音乐播放软件1。若是,则进入步骤304,若否,则进入步骤305。
步骤304,在确定当前传输的音频数据属于目标蓝牙设备有权使用的应用的情况下,执行键值指示的快捷键所对应的预设的组网操作。
具体而言,在确定当前传输的音频流的播放软件属于目标蓝牙设备有权使用的应用的情况下,即当前传输的音频流的播放软件为音乐播放软件1,则执行键值指示的快捷键所对应的预设的组网操作。
步骤305,在确定当前传输的音频数据不属于目标蓝牙设备有权使用的应用的情况下, 通过人机交互界面提示用户进行设置。
本实施例通过为目标蓝牙设备设置有权使用的应用,可以更加灵活的控制蓝牙设备。
具体而言,在确定当前传输的音频数据不属于目标蓝牙设备有权使用的应用的情况下,表示目标蓝牙设备无权播放音频流,则终端设备不会与目标蓝牙设备连接,并传输音频流,因此,需要通过人机交互界面重新为目标蓝牙设备设置组网信息。
本公开的另一个实施例涉及一种蓝牙设备的组网方法,应用于蓝牙设备,例如,耳机。下面对本实施例的蓝牙设备的组网方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。本实施例的蓝牙设备的组网方法的具体流程图如图4所示,包括:
步骤401,接收终端设备设置的组网信息。
其中,组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值。若蓝牙设备为耳机,则快捷键的按键为音量上下键,接听/挂断键,按键形式为短按、连续短按、长按、或者同时按,可以避免与原有功能按键形式重合。若蓝牙设备为其他手持设备,则快捷键更加丰富,可以包括人机交互界面。
步骤402,在检测到快捷键的操作后,将键值携带在广播信息中进行广播,供终端设备执行键值指示的快捷键所对应的预设的组网操作。
具体而言,在检测到用户执行快捷键的操作后,蓝牙设备将键值携带在广播信息中进行广播,广播报文类型采用不可连接的非定向广播ADV_NONCONN_IND,格式为6字节的广播设备地址+31字节广播数据(AD Structure1+AD Structure2+........+AD StructureN),其中,广播数据最长为31字节。
本实施例中,通过接收终端设备设置的组网信息,在检测到快捷键的操作后,将键值携带在广播信息中进行广播,供终端设备执行键值指示的快捷键所对应的预设的组网操作,以提升BLE Audio方案的操作便捷性。
在一实施例中,本公开实施例的应用于蓝牙设备的蓝牙设备的组网方法还可通过以下方式实现:蓝牙设备接收终端设备设置的组网信息,其中,组网信息包括与加入同步群组对应的快捷键,然后在检测到快捷键的操作后发起入网请求,供终端设备将蓝牙设备加入同步群组。
本公开的另一个实施例涉及一种蓝牙设备的组网方法,应用于蓝牙设备,本实施方式与第三实施方式大致相同,不同之处在于在检测到快捷键的操作后,会对当前扫描到的广播信号的接收信号强度指示进行检测,本实施例的蓝牙设备的组网方法的具体流程图如图5所示,包括:
步骤501,接收终端设备设置的组网信息。
步骤501与步骤401大致相同,此处不再赘述。
步骤502,在检测到快捷键的操作后,检测当前扫描到的广播信号的接收信号强度指示RSSI是否大于第一预设门限。
具体而言,终端设备在与蓝牙设备连接之前,会向周围的蓝牙设备发出广播信号,蓝牙设备在检测到用户执行快捷键的操作后,对终端设备预先广播的广播信号进行扫描,并判断当前扫描到的广播信号的RSSI是否大于第一预设门限,即检测当前终端设备的广播信号是否足够强。其中,第一预设门限取经验值。
步骤503,在确定RSSI大于第一预设门限后,将检测到的快捷键的操作对应的键值携带在广播信息中进行广播。
具体而言,若RSSI大于第一预设门限,即当前终端设备的广播信号足够强,则将键值携带在广播信息中进行广播,供终端设备执行键值指示的快捷键所对应的预设的组网操作。
由于终端设备,即蓝牙音频流的源设备的信号会影响音频流的播放效果,因此,本实施例中在检测到快捷键的操作后,会对当前扫描到的广播信号的RSSI进行检测,在确定RSSI大于第一预设门限后,才会将键值携带在广播信息中进行广播,以提升音频流的播放效果。
本公开的另一个实施例涉及一种蓝牙设备的组网方法,应用于蓝牙设备,本实施方式与第三实施方式大致相同,不同之处在于在接收终端设备设置的组网信息后,若扫描到的广播信号大于预设门限,则自动进行相关操作。本实施例的蓝牙设备的组网方法的具体流程图如图6所示,包括:
步骤601,接收终端设备设置的组网信息。
步骤601与步骤401大致相同,此处不再赘述。
步骤602,周期性扫描终端设备的广播信号。
具体而言,终端设备在与蓝牙设备连接之前,会向周围的蓝牙设备发出广播信号,若蓝牙设备处于开机状态,会周期性的扫描终端设备的广播信号。
步骤603,在扫描到的广播信号的RSSI大于第二预设门限的情况下,将组网信息中的键值携带在广播信息中进行广播。
具体而言,若蓝牙设备确定扫描到的广播信号的RSSI大于第二预设门限,表示当前终端设备的信号足够强,则直接将键值携带在广播信息中进行广播,供终端设备执行键值指示的快捷键所对应的预设的组网操作。
本实施例中,通过周期性的扫描终端设备的广播信号,在扫描到的广播信号的RSSI大于第二预设门限的情况下,可以自动的进行相关操作,无需等待用户执行快捷键操作,提升了BLE Audio方案的操作便捷性。
需要说明的是,本实施方式中的上述各示例均为方便理解进行的举例说明,并不对本公开的技术方案构成限定。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本公开的另一个实施例涉及一种终端设备,下面对本实施例的终端设备的细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本例的必须,图7是本实施例所述的终端设备的示意图,包括:设置模块701、发送模块702和执行模块703。
具体而言,设置模块701,设置为为至少一个目标蓝牙设备设置组网信息,其中,组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值。
在一个例子中,设置模块701,还设置为通过人机交互界面显示候选的蓝牙设备供用户选择,并将用户选择的蓝牙设备作为目标蓝牙设备;通过人机交互界面显示候选的组网操作和候选的快捷键供用户选择,并将用户选择的组网操作和快捷键作为预设的组网操作以及与预设的组网操作对应的快捷键;其中,候选的组网操作包括以下之一或其任意组合:加入同 步群组、加入同步群组并播放音频流、退出当前加入的同步群组。
在一个例子中,设置模块701,还设置为为至少一个目标蓝牙设备设置组网信息,其中,组网信息包括与加入同步群组对应的快捷键。
发送模块702,设置为将组网信息发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后将键值携带在广播信息中进行广播。
在一个例子中,发送模块702,还设置为将组网信息发送给目标蓝牙设备,供目标蓝牙设备在检测到快捷键的操作后发起入网请求。
执行模块703,设置为在监听到目标蓝牙设备广播的信息中包括键值的情况下,执行键值指示的快捷键所对应的预设的组网操作。
在一个例子中,执行模块703,还设置为当组网信息还包括目标蓝牙设备有权使用的应用信时,在监听到目标蓝牙设备广播的信息中包括键值的情况下,检测当前传输的音频数据是否属于目标蓝牙设备有权使用的应用,在确定当前传输的音频数据属于目标蓝牙设备有权使用的应用的情况下,执行键值指示的快捷键所对应的预设的组网操作。
在一个例子中,执行模块703,还设置为当组网信息还包括目标蓝牙设备有权使用的应用信时,在确定当前传输的音频数据不属于目标蓝牙设备有权使用的应用的情况下,通过人机交互界面提示用户进行设置。
在一个例子中,执行模块703,还设置为在监听到目标蓝牙设备发起的入网请求的情况下,将目标蓝牙设备加入同步群组。
不难发现,本实施例为与上述应用于终端设备的方法实施例对应的终端设备的实施例,本实施例可以与上述方法实施例互相配合实施。上述实施例中提到的相关技术细节和技术效果在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在上述实施例中。
本公开的另一个实施例涉及一种蓝牙设备,下面对本实施例的蓝牙设备的细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本例的必须,图8是本实施例所述的蓝牙设备的示意图,包括:接收模块801和广播模块802。
具体而言,接收模块801,设置为接收终端设备设置的组网信息,其中,组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值。
在一个例子中,接收模块801,还设置为接收终端设备设置的组网信息,其中,组网信息包括与加入同步群组对应的快捷键。
广播模块802,设置为在检测到快捷键的操作后,将键值携带在广播信息中进行广播,供终端设备执行键值指示的快捷键所对应的预设的组网操作。
在一个例子中,广播模块802,还设置为在检测到快捷键的操作后,检测当前扫描到的广播信号的接收信号强度指示RSSI是否大于第一预设门限;在确定RSSI大于第一预设门限后,将键值携带在广播信息中进行广播。
在一个例子中,蓝牙设备还包括:请求模块,设置为在检测到快捷键的操作后发起入网请求,供终端设备将蓝牙设备加入同步群组。
不难发现,本实施例为与上述应用于蓝牙设备的方法实施例对应的蓝牙设备的实施例,本实施例可以与上述方法实施例互相配合实施。上述实施例中提到的相关技术细节和技术效果在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关 技术细节也可应用在上述实施例中。
值得一提的是,上述终端设备实施例与蓝牙设备实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本公开的创新部分,本实施例中并没有将与解决本公开所提出的技术问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。
本公开另一个实施例涉及一种电子设备,如图9所示,包括:至少一个处理器901;以及,与所述至少一个处理器901通信连接的存储器902;其中,所述存储器902存储有可被所述至少一个处理器901执行的指令,所述指令被所述至少一个处理器901执行,以使所述至少一个处理器901能够执行上述各实施例中的蓝牙设备的组网方法。
其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。
处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。
本公开另一个实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施方式是实现本公开的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本公开的精神和范围。

Claims (16)

  1. 一种蓝牙设备的组网方法,应用于终端设备,包括:
    为至少一个目标蓝牙设备设置组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和所述快捷键的键值;
    将所述组网信息发送给所述目标蓝牙设备,供所述目标蓝牙设备在检测到所述快捷键的操作后将所述键值携带在广播信息中进行广播;
    在监听到所述目标蓝牙设备广播的信息中包括所述键值的情况下,执行所述键值指示的快捷键所对应的所述预设的组网操作。
  2. 根据权利要求1所述的蓝牙设备的组网方法,其中,所述组网信息还包括:所述目标蓝牙设备有权使用的应用信息;
    所述在监听到所述目标蓝牙设备广播的信息中包括所述键值的情况下,执行所述键值指示的快捷键所对应的所述预设的组网操作,包括:
    在监听到所述目标蓝牙设备广播的信息中包括所述键值的情况下,检测当前传输的音频数据是否属于所述目标蓝牙设备有权使用的应用,在确定当前传输的音频数据属于所述目标蓝牙设备有权使用的应用的情况下,执行所述键值指示的快捷键所对应的所述预设的组网操作。
  3. 根据权利要求2所述的蓝牙设备的组网方法,其中,所述方法还包括:
    在确定当前传输的音频数据不属于所述目标蓝牙设备有权使用的应用的情况下,通过人机交互界面提示用户进行设置。
  4. 根据权利要求1至3中任一项所述的蓝牙设备的组网方法,其中,所述为至少一个目标蓝牙设备设置组网信息,包括:
    通过人机交互界面显示候选的蓝牙设备供用户选择,并将用户选择的蓝牙设备作为所述目标蓝牙设备;
    通过人机交互界面显示候选的组网操作和候选的快捷键供用户选择,并将用户选择的组网操作和快捷键作为所述预设的组网操作以及所述与预设的组网操作对应的快捷键;
    其中,所述候选的组网操作包括以下之一或其任意组合:加入同步群组、加入同步群组并播放音频流、退出当前加入的同步群组。
  5. 根据权利要求4所述的蓝牙设备的组网方法,其中,当所述预设的组网操作为加入同步群组或加入同步群组并播放音频流,在所述执行所述键值指示的快捷键所对应的所述预设的组网操作之后,还包括:
    通过人机交互界面提示用户选择目标音频流;
    将所述用户选择的所述目标音频流同步给所述目标蓝牙设备。
  6. 一种蓝牙设备的组网方法,应用于终端设备,包括:
    为至少一个目标蓝牙设备设置组网信息,所述组网信息包括与加入同步群组对应的快捷键;
    将所述组网信息发送给所述目标蓝牙设备,供所述目标蓝牙设备在检测到所述快捷键的操作后发起入网请求;
    在监听到所述目标蓝牙设备发起的入网请求的情况下,将所述目标蓝牙设备加入同步群组。
  7. 一种蓝牙设备的组网方法,应用于蓝牙设备,包括:
    接收终端设备设置的组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值;
    在检测到所述快捷键的操作后,将所述键值携带在广播信息中进行广播,供所述终端设备执行所述键值指示的快捷键所对应的所述预设的组网操作。
  8. 根据权利要求7所述的蓝牙设备的组网方法,其中,所述在检测到所述快捷键的操作后,将所述键值携带在广播信息中进行广播,包括:
    在检测到所述快捷键的操作后,检测当前扫描到的广播信号的接收信号强度指示RSSI是否大于第一预设门限;
    在确定所述RSSI大于所述第一预设门限后,将检测到的所述快捷键的操作对应的所述键值携带在广播信息中进行广播。
  9. 根据权利要求7所述的蓝牙设备的组网方法,其中,在所述接收终端设备设置的组网信息后,还包括:
    周期性扫描所述终端设备的广播信号;
    在扫描到的所述广播信号的RSSI大于第二预设门限的情况下,将所述组网信息中的键值携带在广播信息中进行广播。
  10. 一种蓝牙设备的组网方法,应用于蓝牙设备,包括:
    接收终端设备设置的组网信息,所述组网信息包括与加入同步群组对应的快捷键;
    在检测到所述快捷键的操作后发起入网请求,供所述终端设备将所述蓝牙设备加入同步群组。
  11. 一种终端设备,包括:
    设置模块,设置为为至少一个目标蓝牙设备设置组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和所述快捷键的键值;
    发送模块,设置为将所述组网信息发送给所述目标蓝牙设备,供所述目标蓝牙设备在检测到所述快捷键的操作后将所述键值携带在广播信息中进行广播;
    执行模块,设置为在监听到所述目标蓝牙设备广播的信息中包括所述键值的情况下,执行所述键值指示的快捷键所对应的所述预设的组网操作。
  12. 一种终端设备,包括:
    设置模块,设置为为至少一个目标蓝牙设备设置组网信息,所述组网信息包括与加入同步群组对应的快捷键;
    发送模块,设置为将所述组网信息发送给所述目标蓝牙设备,供所述目标蓝牙设备在检测到所述快捷键的操作后发起入网请求;
    执行模块,设置为在监听到所述目标蓝牙设备发起的入网请求的情况下,将所述目标蓝牙设备加入同步群组。
  13. 一种蓝牙设备,包括:
    接收模块,设置为接收终端设备设置的组网信息,所述组网信息包括至少一个与预设的组网操作对应的快捷键和快捷键的键值;
    广播模块,设置为在检测到所述快捷键的操作后,将所述键值携带在广播信息中进行广播,供所述终端设备执行所述键值指示的快捷键所对应的所述预设的组网操作。
  14. 一种蓝牙设备,包括:
    接收模块,设置为接收终端设备设置的组网信息,所述组网信息包括与加入同步群组对应的快捷键;
    请求模块,设置为在检测到所述快捷键的操作后发起入网请求,供所述终端设备将所述蓝牙设备加入同步群组。
  15. 一种电子设备,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至5中任一项所述的蓝牙设备的组网方法,或如权利要求6所述的蓝牙设备的组网方法,或如权利要求7至9中任一项所述的蓝牙设备的组网方法,或如权利要求10所述的蓝牙设备的组网方法。
  16. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至5中任一项所述的蓝牙设备的组网方法,或实现权利要求6所述的蓝牙设备的组网方法,或实现权利要求7至9中任一项所述的蓝牙设备的组网方法,或实现权利要求10所述的蓝牙设备的组网方法。
PCT/CN2022/119094 2021-12-30 2022-09-15 一种蓝牙设备的组网方法、终端设备及蓝牙设备 WO2023124257A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111657454.2 2021-12-30
CN202111657454.2A CN116419436A (zh) 2021-12-30 2021-12-30 一种蓝牙设备的组网方法、终端设备及蓝牙设备

Publications (1)

Publication Number Publication Date
WO2023124257A1 true WO2023124257A1 (zh) 2023-07-06

Family

ID=86997424

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/119094 WO2023124257A1 (zh) 2021-12-30 2022-09-15 一种蓝牙设备的组网方法、终端设备及蓝牙设备

Country Status (2)

Country Link
CN (1) CN116419436A (zh)
WO (1) WO2023124257A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117289642B (zh) * 2023-11-27 2024-04-16 荣耀终端有限公司 外部控制的响应方法、控制方法及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1591327A (zh) * 2003-08-28 2005-03-09 联想(北京)有限公司 基于具有蓝牙通信功能移动通讯设备遥控电脑的方法
US20070093207A1 (en) * 2005-10-25 2007-04-26 Samsung Electronics Co., Ltd. Method and apparatus for automatic bluetooth connection in a mobile communication terminal
CN107493563A (zh) * 2017-08-31 2017-12-19 大唐终端技术有限公司 一种蓝牙实现群组对讲的方法及系统
CN109348345A (zh) * 2018-11-28 2019-02-15 品令科技(北京)有限公司 一种qmkg耳机处理数据的方法及qmkg耳机
CN112530149A (zh) * 2019-09-17 2021-03-19 青岛海信宽带多媒体技术有限公司 一种遥控方法及装置
CN113709679A (zh) * 2021-08-26 2021-11-26 郑名渠 音频数据分享方法、蓝牙终端及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1591327A (zh) * 2003-08-28 2005-03-09 联想(北京)有限公司 基于具有蓝牙通信功能移动通讯设备遥控电脑的方法
US20070093207A1 (en) * 2005-10-25 2007-04-26 Samsung Electronics Co., Ltd. Method and apparatus for automatic bluetooth connection in a mobile communication terminal
CN107493563A (zh) * 2017-08-31 2017-12-19 大唐终端技术有限公司 一种蓝牙实现群组对讲的方法及系统
CN109348345A (zh) * 2018-11-28 2019-02-15 品令科技(北京)有限公司 一种qmkg耳机处理数据的方法及qmkg耳机
CN112530149A (zh) * 2019-09-17 2021-03-19 青岛海信宽带多媒体技术有限公司 一种遥控方法及装置
CN113709679A (zh) * 2021-08-26 2021-11-26 郑名渠 音频数据分享方法、蓝牙终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN116419436A (zh) 2023-07-11

Similar Documents

Publication Publication Date Title
WO2018000134A1 (zh) 一种蓝牙连接的方法及终端
CN109862549A (zh) 蓝牙连接方法、装置、可读存储介质及移动设备
WO2018000156A1 (zh) 用于双模蓝牙设备之间建立经典蓝牙连接的方法和双模蓝牙设备
US8639220B2 (en) Method and system for providing Wi-Fi service by Wi-Fi device
US11856498B2 (en) Bluetooth device connection method and device
EP2020788B1 (en) Apparatus and system for switching channels through which content data is received
US20190215673A1 (en) Method for controlling device by using bluetooth technology, and apparatus
WO2021190483A1 (zh) 多播广播业务传输方法、多播广播业务传输控制方法及相关设备
CN102265578A (zh) 从流式传输的内容切换到本地内容的系统和方法
WO2020029934A1 (zh) 小区重选方法、终端和网络侧设备
US10425758B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
WO2023124257A1 (zh) 一种蓝牙设备的组网方法、终端设备及蓝牙设备
US9531763B2 (en) Apparatus and method for reproducing contents using digital living network alliance in mobile terminal
US20220338195A1 (en) Method for indicating buffered downlink data, downlink data acquisition method and access point
WO2022222299A1 (zh) wifi 设备的通信方法、设备和计算机可读存储介质
CN112616176B (zh) 设备的唤醒方法及装置、控制方法及装置
CN105828253A (zh) 音频播放系统中的无线连接控制方法及装置
CN113572886A (zh) 路由器控制方法、装置和存储介质
WO2023124265A1 (zh) 一种音频切换方法、终端设备及蓝牙设备
WO2016107013A1 (zh) 传输处理、远程处理方法、装置及计算机存储介质
WO2023134386A1 (zh) 设备连接方法、装置、设备存储介质及芯片
WO2021179166A1 (zh) 数据传输方法、装置、通信设备及存储介质
WO2023082966A1 (zh) 一种邻居发现方法和电子设备
WO2022156407A1 (zh) 网络设备及其执行业务的方法
WO2022143451A1 (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: 22913524

Country of ref document: EP

Kind code of ref document: A1