WO2023087880A1 - Bluetooth device management method and apparatus, storage medium and terminal device - Google Patents

Bluetooth device management method and apparatus, storage medium and terminal device Download PDF

Info

Publication number
WO2023087880A1
WO2023087880A1 PCT/CN2022/119114 CN2022119114W WO2023087880A1 WO 2023087880 A1 WO2023087880 A1 WO 2023087880A1 CN 2022119114 W CN2022119114 W CN 2022119114W WO 2023087880 A1 WO2023087880 A1 WO 2023087880A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
bluetooth device
information
authority
control
Prior art date
Application number
PCT/CN2022/119114
Other languages
French (fr)
Chinese (zh)
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 WO2023087880A1 publication Critical patent/WO2023087880A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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
    • 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

  • the embodiments of the present application relate to, but are not limited to, the field of communication technologies, and in particular, relate to a management method, device, storage medium, and terminal equipment of a Bluetooth device.
  • Bluetooth 4.0 introduces low-power modules, knocking on the door of the Internet of Things.
  • Bluetooth 5.2 introduces a new Bluetooth Low Energy Audio technology based on Bluetooth Low Energy, which adds a new Multi-Stream Audio function to realize a single audio source device (source device) and one or more audio receiving devices for simultaneous multiple and independent audio stream transmission.
  • connection-based synchronous group Connected Isochronous Group, CIG
  • CIG Connection-based synchronous group
  • the user of one device wants to switch to the next audio data, while the user of another device wants to maintain the status quo, resulting in confusion in the control of the device
  • the user as the master wants to keep the volume of the audio of all devices synchronized, but does not want the audio of all devices to be able to adjust the volume arbitrarily to cause a control conflict between the devices
  • users do not want to give all devices the permission to answer, hang up, and microphone, which increases the difficulty of managing multiple devices.
  • the embodiment of the present application provides a management method, device, storage medium and terminal equipment of a Bluetooth device, which can make multiple Bluetooth devices work together without causing control conflicts and confusion between devices or increasing the management of multiple devices. difficulty.
  • the embodiment of the present application provides a management method of a Bluetooth device, which is applied to a terminal device, and the terminal device is connected to multiple Bluetooth devices in at least one device group at the same time
  • the management method of the Bluetooth device includes: receiving control request information sent by a first Bluetooth device connected to the terminal device in the device group; processing the control request information according to the authority information of the first Bluetooth device in the device group, the The authority information is used to characterize the control authority of the first Bluetooth device to the terminal device and/or the control authority of a second Bluetooth device connected to the terminal device in the same device group.
  • the embodiment of the present application also provides a management device for Bluetooth devices, the management device for Bluetooth devices is applied to a terminal device, and the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group, so
  • the management device of the Bluetooth device includes: a data receiving module, configured to receive control request information sent by the first Bluetooth device connected to the terminal device in the device group;
  • the authority information in the device group processes the control request information, and the authority information is used to represent the control authority of the first Bluetooth device to the terminal device and/or to connect with the terminal device in the same device group control authority of the second Bluetooth device.
  • the embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned Bluetooth device management method.
  • the embodiment of the present application also provides a network processing device, including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the computer program when executing the computer program.
  • a network processing device including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the computer program when executing the computer program.
  • FIG. 1 is a block diagram of functional modules of an architecture platform for implementing a management method of a Bluetooth device provided by an embodiment of the present application;
  • FIG. 2 is a flow chart of a management method for a Bluetooth device provided by an embodiment of the present application
  • FIG. 3 is a flow chart of generating authority information provided by an embodiment of the present application.
  • Fig. 4 is a block diagram of functional modules of a management system for Bluetooth devices provided by an embodiment of the present application.
  • the embodiment of the present application provides a management method, device, storage medium and terminal equipment of a bluetooth device.
  • the terminal equipment executes the control request information sent by the first bluetooth information
  • it will first determine whether the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device, and then can determine whether the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device.
  • the control request information will be executed after the control authority of the Bluetooth device, and the control of the terminal device and the second Bluetooth device will be completed, thereby preventing the terminal device from executing the control request information sent by all Bluetooth devices, effectively solving the problem of multiple Bluetooth devices.
  • devices work together, there will be control conflicts between devices, confusion, or increase the difficulty of managing multiple devices.
  • an embodiment of the present application provides an architecture platform for the management method of the Bluetooth device.
  • the architecture platform can be applied to terminal equipment.
  • the architecture platform includes a Bluetooth module 110 , a setting module 120 and a storage module 130 .
  • the bluetooth module 110 is configured to establish a bluetooth low energy protocol (Bluetooth Low Energy, BLE/LE) connection and a general property agreement (Generic Attribute Profile, GATT) connection with a plurality of bluetooth devices in each equipment grouping, to realize multi-to-many control of a Bluetooth device and receive control request information sent by multiple Bluetooth devices.
  • a bluetooth low energy protocol Bluetooth Low Energy, BLE/LE
  • GATT General Attribute Profile
  • the storage module 130 is configured to store authority information, which represents the control authority of the first Bluetooth device to the terminal device and the second Bluetooth device in the device group.
  • the setting module 120 is configured to receive the control request information sent by the first Bluetooth device, and process the control request information according to the permission information, and the setting module 120 can also be configured to modify the permission information in the storage module 130 .
  • the architecture platform described in the embodiment of this application is to illustrate the technical solution of the embodiment of the application more clearly, and does not constitute a limitation to the technical solution provided by the embodiment of the application.
  • Those skilled in the art know that with the evolution of Bluetooth technology and For the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
  • various modules can cooperate with each other to execute the management method of the Bluetooth device.
  • FIG. 2 is a flowchart of a management method for a Bluetooth device provided by an embodiment of the present application.
  • the management method of the Bluetooth device includes: including step S110 and step S120, the management method of the Bluetooth device is applied to a terminal device, and the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group,
  • Step S110 receiving control request information sent by the first Bluetooth device connected to the terminal device in the device group;
  • Step S120 Process the control request information according to the authority information of the first Bluetooth device in the device group.
  • the authority information is used to represent the control authority of the first Bluetooth device to the terminal device and/or the first Bluetooth device connected to the terminal device in the same device group. 2. Control authority of Bluetooth devices.
  • authority information is constructed for the first Bluetooth device in advance, and the authority information is stored in the storage module 130.
  • the authority information includes the control authority of the first Bluetooth device to the terminal device and the second Bluetooth device. After the terminal device receives the control request information sent by the first bluetooth device, it will access the permission information corresponding to the first bluetooth device in the storage module 130, and then can determine that the first bluetooth device has the right to the terminal device, the second After the control authority of the Bluetooth device, the control request information will be executed to complete the control of the terminal device and the second Bluetooth device, thereby preventing the terminal device from executing the control request information sent by all Bluetooth devices, effectively solving multiple When Bluetooth devices work together, there will be problems such as control conflicts between devices, confusion, or increased difficulty in managing multiple devices.
  • the terminal device when the first Bluetooth device has no control authority over the terminal device and the second Bluetooth device, the terminal device will directly ignore the control request information sent by the first Bluetooth device. It should be noted that the control authority in the authority information can be set according to actual use requirements, and only the control authority corresponding to the terminal device can be set, or only the control authority corresponding to the second Bluetooth device can be set, or both the corresponding terminal device and the second Bluetooth device can be set. 2. Control authority of Bluetooth devices.
  • Bluetooth Low Energy protocol Bluetooth Low Energy, BLE/LE
  • GATT Generic Attribute Profile
  • the bluetooth module 110 notifies the setting module 120 of the current connection status with the bluetooth device.
  • the bluetooth devices in each device group can be added or removed through the setting module 120 , and the permission information can be set for the first bluetooth device through the setting module 120 , and the permission information can be stored in the storage module 130 .
  • the setting module 120 After the bluetooth module 110 receives the control request information sent by the first bluetooth device, the setting module 120 will first determine whether the first bluetooth device has permission information, if the first bluetooth device has permission information, it will The control authority of the device to the terminal device and the second Bluetooth device, and the control authority corresponding to the control request information complete the control of the second Bluetooth device. It should be noted that when there are multiple first bluetooth devices, when the terminal device executes the control request information sent by any first bluetooth device, it will complete all bluetooth devices in the device group except the first bluetooth device. control, or in other words, when executing the control request information sent by any first Bluetooth device, other Bluetooth devices can be understood as the second Bluetooth device.
  • control request information is processed according to the authority information of the first Bluetooth device in the device group, including:
  • the terminal device When the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device, the terminal device will only perform data processing on the control request information after receiving the control request information, and control or control the terminal device according to the control request information.
  • a corresponding control command is generated according to the control request information and sent to the corresponding second bluetooth device to complete the control request.
  • FIG. 3 is a flow chart of generating permission information provided by an embodiment of the present application.
  • the permission setting information includes device information of the first bluetooth device and control authority of the first bluetooth device to the terminal device and/or the second bluetooth device;
  • the setting of the permission information of the first Bluetooth device can be completed, and the way of setting the permission information by the user inputting the permission setting information can facilitate modification when the permission information needs to be modified.
  • the permission setting information is input by the user into the setting module 120, so that it is convenient for the user to set and modify according to usage requirements in different scenarios.
  • the management method of the Bluetooth device further includes step S130, step S140:
  • Step S130 Obtain permission request information sent by the first Bluetooth device, where the permission request information is a permission request for the first Bluetooth device to control the terminal device and/or the second Bluetooth device;
  • Step S140 Determine the permission information of the first Bluetooth device according to the permission request information.
  • the first Bluetooth device can actively apply for permission information by sending permission request information to the terminal device. After the user checks the received permission request information through the terminal device, the permission request will be approved or not passed according to the requirement. Stored in the storage module 130 in the form of permission information. It should be noted that obtaining the permission information by actively sending permission request information can allow the user on the Bluetooth device side to actively apply for it according to the demand, thereby improving the user experience.
  • determining the permission information of the first Bluetooth device according to the permission setting information includes:
  • the permission information of the first bluetooth device in the device group where it is located is obtained according to the operation permission item information and the permission setting information.
  • each control authority requires corresponding hardware to support, and different Bluetooth devices have different operating capabilities due to different hardware.
  • the terminal device can communicate with the first Bluetooth device to determine all the control permissions that the first Bluetooth device can support, and then when the permission information is subsequently generated using the permission setting information, the permission information of the first Bluetooth device will not appear. Realized control permissions to avoid confusion.
  • control permissions can be implemented through the Generic Attribute Profile (GATT).
  • GATT Generic Attribute Profile
  • the general attribute protocol is composed of services and characteristic values. Different control permissions belong to different services. For example, volume control belongs to one service, and microphone control belongs to another service. Their values are stored in the corresponding characteristic values. middle.
  • the basis for determining the operation permission item information is:
  • the operation permission item information includes the operation authority to the terminal device and the control authority to simultaneously operate multiple second Bluetooth devices;
  • the operation permission item information includes the operation authority for the terminal device, the control authority for simultaneously operating multiple second bluetooth devices, and the control authority for operating a single second bluetooth device.
  • Bluetooth devices are divided according to the operation mode, and can be roughly divided into two types: those with an interactive interface and those without an interactive interface.
  • the first Bluetooth device without an interactive interface because the specific operation situation cannot be seen, it is not convenient to set the control authority for operating a single second Bluetooth device, try to choose to operate multiple Bluetooth devices in the device group at the same time
  • the control permissions are more suitable for actual use needs.
  • the first Bluetooth device with an interactive interface because the parameter information of each second Bluetooth device can be obtained and displayed by communicating with the terminal device, there is a basis for adjusting the working state of a single second Bluetooth device through the first Bluetooth device , therefore, when setting the first bluetooth device, it can be set to have the control authority to operate a single second bluetooth device.
  • control request information is processed according to the authority information of the first Bluetooth device in the device group, including:
  • the control request information sent by the first Bluetooth device is ignored.
  • the terminal device When the first Bluetooth device does not have the control authority to the terminal device and the second Bluetooth device, the terminal device will not execute the control request information sent by the first Bluetooth device, but will directly ignore it, so that the Bluetooth device without permission information can be directly avoided There is a conflict with a bluetooth device that has permission information. It should be noted here that, in actual use, if the control request information is ignored, the processing result will be returned to the first Bluetooth device that sent the control request information.
  • the control request information is processed according to the authority information of the first Bluetooth device in the device group. processing, which also includes:
  • the ignored control request information will be displayed on the terminal device, as well as the name of the first Bluetooth device that sent the control request information, so that the user controlling the terminal device can decide whether to actively modify the control authority according to actual needs .
  • the management method of the bluetooth device includes the following steps:
  • a plurality of bluetooth devices and the bluetooth module 110 establish the bluetooth low energy consumption protocol connection and the common property agreement connection;
  • the Bluetooth module 110 notifies the setting module 120 of the current connection status with the Bluetooth device
  • the setting module 120 will perform automatic grouping based on broadcast synchronization groups or connection-based synchronization groups;
  • the Bluetooth devices in each device group are increased or decreased through the setting module 120 to form at least one device group required by the user; there can be multiple device groups, and the same Bluetooth device can exist in multiple device groups. equipment;
  • the setting module 120 determines the first Bluetooth device according to the authority setting information input by the user, and then determines whether the first Bluetooth device has an interactive interface, thereby determining the operation permission item information of the first Bluetooth device, that is, obtaining the optional authority of the first Bluetooth device list, the permission list of the first bluetooth device without an interactive interface includes control permissions such as switching, answering, hanging up, volume adjustment, input (microphone), and the permission list of a bluetooth device with an interactive interface except switching, answering, hanging up, volume
  • control rights such as adjustment and input (microphone)
  • control rights such as increasing code rate control, independent control of microphone functions, and independent volume control are also included; in an embodiment of the present application, the list of rights is as shown in Table 1;
  • the setting module 120 After determining the first bluetooth device, the setting module 120 completes the setting of the control authority of the first bluetooth device to the terminal device and/or the second bluetooth device according to the authority setting information, thereby forming the final authority information; the authority information will be stored in the storage module 130 for subsequent access and modification;
  • the terminal device After the terminal device receives the control request information sent by the first Bluetooth device, it will execute the control request information according to the permission information corresponding to the first Bluetooth device. Conversely, if the Bluetooth device sending the control request information does not have permission information, It will ignore the control request information and return the processing result, and display it on the terminal device, so that the terminal device can determine whether to actively open the authority for the Bluetooth device that sent the control request information according to actual needs;
  • the Bluetooth device After the Bluetooth device receives the processing result returned by the terminal device, if the Bluetooth device has an interactive interface, it can directly use the interactive interface to initiate a permission application.
  • all Bluetooth devices in the device group can actively apply for control authority by sending permission request information to the terminal device.
  • the terminal device After the terminal device passes the permission application, it will generate corresponding permission information and store it in the storage module 130; what needs to be explained here Yes, the permission request information is usually submitted by a Bluetooth device with an interactive interface, and the user can input the required permission request on the interactive interface of these Bluetooth devices.
  • FIG. 4 is a block diagram of functional modules of an apparatus for managing Bluetooth devices provided by an embodiment of the present application.
  • the management device of the Bluetooth device can realize the management method of the Bluetooth device in the embodiment shown in Figure 2, the management device of the Bluetooth device is applied to a terminal device, and the terminal device communicates with at least one device group A plurality of Bluetooth devices are connected, and the network processor includes: a data receiving module 210, a request processing module 220,
  • the data receiving module 210 is configured to receive the control request information sent by the first Bluetooth device connected to the terminal device in the device group;
  • the request processing module 220 is configured to process the control request information according to the permission information of the first Bluetooth device in the device group, and the permission information is used to represent the control permission of the first Bluetooth device to the terminal device and/or within the same device group and The control authority of the second Bluetooth device connected to the terminal device.
  • permission information is constructed for the first Bluetooth device, the permission information includes the control permission of the first Bluetooth device to the terminal device and/or the second Bluetooth device, and the permission information is stored in the storage module 130 .
  • the data receiving module 210 After the data receiving module 210 receives the control request information sent by the first bluetooth device, it will confirm the authority information of the first bluetooth device through the request processing module 220, and then can confirm that the first bluetooth device has the right to the terminal device, the second After the control authority of the Bluetooth device, the control request information will be executed to complete the control of the terminal device and the second Bluetooth device, thereby preventing the terminal device from executing the control request information sent by all Bluetooth devices, effectively solving multiple When Bluetooth devices work together, there will be problems such as control conflicts between devices, confusion, or increased difficulty in managing multiple devices.
  • the terminal device when the first Bluetooth device has no control authority over the terminal device and the second Bluetooth device, the terminal device will directly ignore the control request information sent by the first Bluetooth device. It should be noted that the control authority in the authority information can be set according to actual use requirements, and only the control authority corresponding to the terminal device can be set, or only the control authority corresponding to the second Bluetooth device can be set, or both the corresponding terminal device and the second Bluetooth device can be set. 2. Control authority of Bluetooth devices.
  • Bluetooth Low Energy protocol Bluetooth Low Energy, BLE/LE
  • GATT Generic Attribute Profile
  • the bluetooth module 110 notifies the setting module 120 of the current connection status with the bluetooth device.
  • the bluetooth devices in each device group can be added or removed through the setting module 120 , and the permission information can be set for the first bluetooth device through the setting module 120 , and the permission information can be stored in the storage module 130 .
  • the request processing module 220 After the data receiving module 210 receives the control request information sent by the first bluetooth device, the request processing module 220 will first determine whether the first bluetooth device has permission information, and if the first bluetooth device has permission information, it will The control authority of a bluetooth device to the terminal device and the second bluetooth device, and the control authority corresponding to the control request information complete the control of the terminal device and the second bluetooth device. It should be noted that when there are multiple first bluetooth devices, when the terminal device executes the control request information sent by any first bluetooth device, it will complete all bluetooth devices in the device group except the first bluetooth device. control, or in other words, when executing the control request information sent by any first Bluetooth device, other Bluetooth devices can be understood as the second Bluetooth device.
  • the management device of the bluetooth device also includes: a permission setting information acquisition module 230, a permission information generation module 240,
  • the permission setting information acquisition module 230 is configured to obtain permission setting information input by the user, and the permission request information is a permission request for the first Bluetooth device to control the terminal device and/or the second Bluetooth device;
  • the authority information generation module 240 is configured to determine the authority information of the first Bluetooth device according to the authority setting information.
  • the authority setting information acquiring module 230 can acquire the authority setting information input by the user, and then allow the authority information generating module 240 to complete the setting of the authority information of the first Bluetooth device according to the authority setting information.
  • the method of generating the permission information by acquiring the permission setting information input by the user can facilitate modification when the permission information needs to be modified. It should be noted that, therefore, the permission setting information is input by the user into the setting module 120, so the user can set and modify the permission information according to usage requirements in different scenarios.
  • the authority information generation module 240 includes: an operation permission information acquisition module, a right item generation module,
  • the operation permission information acquisition module is configured to obtain the operation permission item information corresponding to each first Bluetooth device, and the operation permission item information includes all the control permissions supported by the first Bluetooth device;
  • the right item generation module is configured to obtain the right information of the first Bluetooth device in the device group where it is located according to the operation permission item information and the right setting information.
  • each control authority requires corresponding hardware to support, and different Bluetooth devices have different operating capabilities due to different hardware.
  • the operation permission information acquisition module determines all the control permissions that the first Bluetooth device can support by obtaining the operation permission item information of the first Bluetooth device, so that the right item generation module can avoid adding in the permission information when generating the permission information.
  • the right to control the authority will cause subsequent operation confusion.
  • the implementation of these control rights can be realized through the Generic Attribute Profile (GATT).
  • GATT Generic Attribute Profile
  • the general attribute protocol is composed of services and characteristic values. Different control permissions belong to different services. For example, volume control belongs to one service, and microphone control belongs to another service. Their values are stored in the corresponding characteristic values. middle.
  • the basis for determining the operation permission item information is: if the first Bluetooth device does not have an interactive interface, the operation permission item information includes the control authority to operate multiple second Bluetooth devices at the same time; if the first Bluetooth device has In the interactive interface, the operation permission item information includes the control authority to operate multiple second Bluetooth devices at the same time, and the control authority to operate a single second Bluetooth device.
  • Bluetooth devices are divided according to the operation mode, and can be roughly divided into two types: those with an interactive interface and those without an interactive interface.
  • the first Bluetooth device without an interactive interface because the specific operation situation cannot be seen, it is not convenient to set the control authority for operating a single second Bluetooth device, try to choose to operate multiple Bluetooth devices in the device group at the same time
  • the control permissions are more suitable for actual use needs.
  • the first Bluetooth device with an interactive interface because the parameter information of each second Bluetooth device can be obtained and displayed by communicating with the terminal device, there is a basis for adjusting the working state of a single second Bluetooth device through the first Bluetooth device , therefore, when setting the first bluetooth device, it can be set to have the control authority to operate a single second bluetooth device.
  • the management apparatus for Bluetooth devices further includes a visualization module 250 configured to display the control request information and the name of the first Bluetooth device sending the control request information.
  • the request processing module 220 When the authority information indicates that the first Bluetooth device does not have the control authority to the terminal device and the second Bluetooth device, the request processing module 220 will ignore the control request information sent by the first Bluetooth device, so as to directly avoid the Bluetooth device without authority information and There is a conflict between bluetooth devices with permission information. After the request processing module 220 ignores the control request information, it will display the ignored control request information through the visualization module 250, and display the name of the first bluetooth device that sent the control request information, so that the user who controls the terminal device can decide whether to proceed according to actual needs. Actively modify control permissions.
  • an embodiment of the present application also provides a network processor.
  • the network processor includes: a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, it realizes Such as the packet processing method described above.
  • the non-transitory software programs and instructions required to realize the message processing method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the message processing method in the above-mentioned embodiment is executed, for example, executing the above-described Figure 2
  • an embodiment of the present application also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to execute the above-mentioned packet processing method, for example, by the above-mentioned Execution by a processor in the embodiment of the network processor may cause the processor to execute the information processing method in the above embodiment, for example, execute the method in FIG. 2 and the method in FIG. 3 described above.
  • the embodiment of the present application includes: receiving control request information sent by the first Bluetooth device connected to the terminal device in the device group, wherein the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group; according to the first Bluetooth device
  • the authority information in the device group processes the control request information, and the authority information is used to represent the control authority of the first Bluetooth device to the terminal device and/or the second Bluetooth device connected to the terminal device in the same device group. Since the authority information is set for the first Bluetooth device in advance, after the terminal device receives the control request information, it will first determine whether the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device, and then can determine the first Bluetooth device.
  • Computer storage media including, but not limited to, RAM, ROM, EEPROM, flash memory or other storage unit technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or Any other medium that can be used to store desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

A Bluetooth device management method and apparatus, a storage medium and a terminal device. The Bluetooth device management method comprises: receiving control request information sent by a first Bluetooth device in a device group connected to a terminal device (S110); and processing the control request information according to permission information of the first Bluetooth device in the device group, the permission information being used for representing the control permission of the first Bluetooth device to the terminal device and/or a second Bluetooth device (S120).

Description

蓝牙设备的管理方法、装置、存储介质及终端设备Management method, device, storage medium and terminal equipment of bluetooth equipment
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202111372304.7、申请日为2021年11月18日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202111372304.7 and a filing date of November 18, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请实施例涉及但不限于通信技术领域,尤其涉及一种蓝牙设备的管理方法、装置、存储介质及终端设备。The embodiments of the present application relate to, but are not limited to, the field of communication technologies, and in particular, relate to a management method, device, storage medium, and terminal equipment of a Bluetooth device.
背景技术Background technique
蓝牙4.0引入了低功耗模块,敲开物联网的大门。蓝牙5.2推出了基于低功耗蓝牙的全新藍牙低功耗音频(Bluetooth Low Energy Audio)技术,该技术加入了全新的多重串流音频(Multi-Stream Audio)功能,实现了单一音频源设备(source device)与一个或多个音频接收设备之间同步进行多重且独立的音频串流传输。Bluetooth 4.0 introduces low-power modules, knocking on the door of the Internet of Things. Bluetooth 5.2 introduces a new Bluetooth Low Energy Audio technology based on Bluetooth Low Energy, which adds a new Multi-Stream Audio function to realize a single audio source device (source device) and one or more audio receiving devices for simultaneous multiple and independent audio stream transmission.
但是,多个设备协同工作的情况下容易引发设备间的控制冲突、混乱或者增加多个设备管理的难度。例如:在一个基于连接的同步群组(Connected Isochronous Group,CIG)中,一个设备的用户想要切换到下一个音频数据,而另外一个设备的用户则希望维持现状,从而造成设备的控制混乱;或者在一个全环绕立体音响的环境下,作为主控方的用户希望所有设备的音响的音量保持同步,而又不希望所有设备的音响都可以任意调节音量引发设备的控制冲突;再或者在一个家庭影音环境下,用户不希望赋予所有设备接听、挂断以及麦克风的权限增加了多个设备管理的难度。However, when multiple devices work together, it is easy to cause control conflicts and confusion between devices, or increase the difficulty of managing multiple devices. For example: in a connection-based synchronous group (Connected Isochronous Group, CIG), the user of one device wants to switch to the next audio data, while the user of another device wants to maintain the status quo, resulting in confusion in the control of the device; Or in a full-surround stereo environment, the user as the master wants to keep the volume of the audio of all devices synchronized, but does not want the audio of all devices to be able to adjust the volume arbitrarily to cause a control conflict between the devices; or in a In the home audio-visual environment, users do not want to give all devices the permission to answer, hang up, and microphone, which increases the difficulty of managing multiple devices.
发明内容Contents of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics described in detail in this article. This summary is not intended to limit the scope of the claims.
本申请实施例提供了一种蓝牙设备的管理方法、装置、存储介质及终端设备,能够让多个蓝牙设备在协同工作情况下不会引发设备间的控制冲突、混乱或者增加多个设备管理的难度。The embodiment of the present application provides a management method, device, storage medium and terminal equipment of a Bluetooth device, which can make multiple Bluetooth devices work together without causing control conflicts and confusion between devices or increasing the management of multiple devices. difficulty.
第一方面,本申请实施例提供了一种蓝牙设备的管理方法,应用于终端设备,所述终端设备同时与至少一个设备分组内的多个蓝牙设备连接,所述蓝牙设备的管理方法包括:接收所述设备分组内与所述终端设备连接的第一蓝牙设备发送的控制请求信息;根据所述第一蓝牙设备在所述设备分组内的权限信息对所述控制请求信息进行处理,所述权限信息用于表征所述第一蓝牙设备对所述终端设备的控制权限和/或同一设备分组内与所述终端设备连接的第二蓝牙设备的控制权限。In the first aspect, the embodiment of the present application provides a management method of a Bluetooth device, which is applied to a terminal device, and the terminal device is connected to multiple Bluetooth devices in at least one device group at the same time, and the management method of the Bluetooth device includes: receiving control request information sent by a first Bluetooth device connected to the terminal device in the device group; processing the control request information according to the authority information of the first Bluetooth device in the device group, the The authority information is used to characterize the control authority of the first Bluetooth device to the terminal device and/or the control authority of a second Bluetooth device connected to the terminal device in the same device group.
第二方面,本申请实施例还提供了一种蓝牙设备的管理装置,所述蓝牙设备的管理装置应用于终端设备,所述终端设备同时与至少一个设备分组内的多个蓝牙设备连接,所述蓝牙设备的管理装置包括:数据接收模块,被设置为接收设备分组内与终端设备连接的第一蓝牙设备发送的控制请求信息;请求处理模块,被设置为根据所述第一蓝牙设备在所述设备分组内的权限信息对所述控制请求信息进行处理,所述权限信息用于表征所述第一蓝牙设备对所述终端设备的控制权限和/或同一设备分组内与所述终端设备连接的第二蓝牙设备的控制权 限。In the second aspect, the embodiment of the present application also provides a management device for Bluetooth devices, the management device for Bluetooth devices is applied to a terminal device, and the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group, so The management device of the Bluetooth device includes: a data receiving module, configured to receive control request information sent by the first Bluetooth device connected to the terminal device in the device group; The authority information in the device group processes the control request information, and the authority information is used to represent the control authority of the first Bluetooth device to the terminal device and/or to connect with the terminal device in the same device group control authority of the second Bluetooth device.
第三方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上述的蓝牙设备的管理方法。In a third aspect, the embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned Bluetooth device management method.
第四方面,本申请实施例还提供了一种网络处理设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述的蓝牙设备的管理方法。In a fourth aspect, the embodiment of the present application also provides a network processing device, including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the computer program when executing the computer program. Such as the management method of the Bluetooth device mentioned above.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the application will be set forth in the description which follows, and, in part, will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description, claims as well as the appended drawings.
附图说明Description of drawings
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.
图1是本申请一个实施例提供的用于执行蓝牙设备的管理方法的架构平台的功能模块框图;FIG. 1 is a block diagram of functional modules of an architecture platform for implementing a management method of a Bluetooth device provided by an embodiment of the present application;
图2是本申请一个实施例提供的蓝牙设备的管理方法的流程图;FIG. 2 is a flow chart of a management method for a Bluetooth device provided by an embodiment of the present application;
图3是本申请一个实施例提供的生成权限信息的流程图;FIG. 3 is a flow chart of generating authority information provided by an embodiment of the present application;
图4是本申请一个实施例提供的蓝牙设备的管理系统的功能模块框图。Fig. 4 is a block diagram of functional modules of a management system for Bluetooth devices provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.
需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than in the flowchart. The terms "first", "second" and the like in the specification and claims and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence.
本申请实施例提供了一种蓝牙设备的管理方法、装置、存储介质及终端设备,在终端设备执行第一蓝牙设备发送的控制请求信息前,由于终端设备中预先为第一蓝牙设备设置了权限信息,因此,在终端设备接收到控制请求信息后,会先确定第一蓝牙设备是否具有对终端设备、第二蓝牙设备的控制权限,进而可以在确定第一蓝牙设备具有对终端设备、第二蓝牙设备的控制权限后,才会执行控制请求信息,完成对终端设备、第二蓝牙设备的控制,从而避免终端设备对所有蓝牙设备发送的控制请求信息都进行执行,有效的解决了多个蓝牙设备协同工作时会出现设备间的控制冲突、混乱或者增加多个设备管理的难度等问题。The embodiment of the present application provides a management method, device, storage medium and terminal equipment of a bluetooth device. Before the terminal equipment executes the control request information sent by the first bluetooth information, therefore, after the terminal device receives the control request information, it will first determine whether the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device, and then can determine whether the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device. The control request information will be executed after the control authority of the Bluetooth device, and the control of the terminal device and the second Bluetooth device will be completed, thereby preventing the terminal device from executing the control request information sent by all Bluetooth devices, effectively solving the problem of multiple Bluetooth devices. When devices work together, there will be control conflicts between devices, confusion, or increase the difficulty of managing multiple devices.
这里为了便于阐述本申请的管理方法、装置、存储介质及终端设备,本申请一个实施例提供了用于蓝牙设备的管理方法的架构平台。该架构平台可以应用于终端设备。如图1所示,该架构平台包括蓝牙模块110、设置模块120和存储模块130。蓝牙模块110被设置为与每个设备分组中的多个蓝牙设备建立蓝牙低功耗协议(Bluetooth Low Energy,BLE/LE)连接和通用属性协议(Generic Attribute Profile,GATT)连接,以实现对多个蓝牙设备的控制和接收多个蓝牙设备发送的控制请求信息。存储模块130被设置为存储权限信息,权限信息表征了设备分组中第一蓝牙设备对终端设备、第二蓝牙设备的控制权限。设置模块120被设置为接收第一蓝牙设备发送的控制请求信息,并根据权限信息对控制请求信息进行处理,设置模块120 还可以被设置为修改存储模块130中的权限信息。In order to facilitate the description of the management method, device, storage medium and terminal device of the present application, an embodiment of the present application provides an architecture platform for the management method of the Bluetooth device. The architecture platform can be applied to terminal equipment. As shown in FIG. 1 , the architecture platform includes a Bluetooth module 110 , a setting module 120 and a storage module 130 . The bluetooth module 110 is configured to establish a bluetooth low energy protocol (Bluetooth Low Energy, BLE/LE) connection and a general property agreement (Generic Attribute Profile, GATT) connection with a plurality of bluetooth devices in each equipment grouping, to realize multi-to-many control of a Bluetooth device and receive control request information sent by multiple Bluetooth devices. The storage module 130 is configured to store authority information, which represents the control authority of the first Bluetooth device to the terminal device and the second Bluetooth device in the device group. The setting module 120 is configured to receive the control request information sent by the first Bluetooth device, and process the control request information according to the permission information, and the setting module 120 can also be configured to modify the permission information in the storage module 130 .
本申请实施例描述的架构平台是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着蓝牙技术的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The architecture platform described in the embodiment of this application is to illustrate the technical solution of the embodiment of the application more clearly, and does not constitute a limitation to the technical solution provided by the embodiment of the application. Those skilled in the art know that with the evolution of Bluetooth technology and For the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
在上述的架构平台中,各个模块之间可以相互配合以执行蓝牙设备的管理方法。In the above architecture platform, various modules can cooperate with each other to execute the management method of the Bluetooth device.
基于上述架构平台以及上述架构平台中各个模块及器件的结构关系,提出本申请的蓝牙设备的管理方法的各个实施例。下面结合附图,对本申请实施例作进一步阐述。Based on the above architecture platform and the structural relationship of each module and device in the above architecture platform, various embodiments of the Bluetooth device management method of the present application are proposed. The embodiments of the present application will be further described below in conjunction with the accompanying drawings.
如图2所示,图2是本申请一个实施例提供的蓝牙设备的管理方法的流程图。As shown in FIG. 2 , FIG. 2 is a flowchart of a management method for a Bluetooth device provided by an embodiment of the present application.
如图2所示,该蓝牙设备的管理方法包括:包括步骤S110和步骤S120,该蓝牙设备的管理方法应用于终端设备,终端设备同时与至少一个设备分组内的多个蓝牙设备连接,As shown in FIG. 2, the management method of the Bluetooth device includes: including step S110 and step S120, the management method of the Bluetooth device is applied to a terminal device, and the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group,
步骤S110:接收设备分组内与终端设备连接的第一蓝牙设备发送的控制请求信息;Step S110: receiving control request information sent by the first Bluetooth device connected to the terminal device in the device group;
步骤S120:根据第一蓝牙设备在设备分组内的权限信息对控制请求信息进行处理,权限信息用于表征第一蓝牙设备对终端设备的控制权限和/或同一设备分组内与终端设备连接的第二蓝牙设备的控制权限。Step S120: Process the control request information according to the authority information of the first Bluetooth device in the device group. The authority information is used to represent the control authority of the first Bluetooth device to the terminal device and/or the first Bluetooth device connected to the terminal device in the same device group. 2. Control authority of Bluetooth devices.
在本实施例中,预先为第一蓝牙设备构建了权限信息,并将权限信息存储到存储模块130中,权限信息包括第一蓝牙设备对终端设备、第二蓝牙设备的控制权限。在终端设备接收到第一蓝牙设备的发送的控制请求信息后,便会在访问存储模块130中与第一蓝牙设备对应的权限信息,进而可以在确定第一蓝牙设备具有对终端设备、第二蓝牙设备的控制权限后,才会执行控制请求信息,完成对终端设备、第二蓝牙设备的控制,从而可以避免终端设备对所有蓝牙设备发送的控制请求信息都进行执行,有效的解决了多个蓝牙设备协同工作时会出现设备间的控制冲突、混乱或者增加多个设备管理的难度等问题。需要说明的是,在第一蓝牙设备没有对终端设备和第二蓝牙设备的控制权限时,终端设备会直接忽略第一蓝牙设备发送给的控制请求信息。需要说明的是,权限信息中的控制权限可以根据实际使用的需求进行设置,可以只设置对应终端设备的控制权限,或者只设置对应第二蓝牙设备的控制权限,或者同时设置对应终端设备和第二蓝牙设备的控制权限。In this embodiment, authority information is constructed for the first Bluetooth device in advance, and the authority information is stored in the storage module 130. The authority information includes the control authority of the first Bluetooth device to the terminal device and the second Bluetooth device. After the terminal device receives the control request information sent by the first bluetooth device, it will access the permission information corresponding to the first bluetooth device in the storage module 130, and then can determine that the first bluetooth device has the right to the terminal device, the second After the control authority of the Bluetooth device, the control request information will be executed to complete the control of the terminal device and the second Bluetooth device, thereby preventing the terminal device from executing the control request information sent by all Bluetooth devices, effectively solving multiple When Bluetooth devices work together, there will be problems such as control conflicts between devices, confusion, or increased difficulty in managing multiple devices. It should be noted that, when the first Bluetooth device has no control authority over the terminal device and the second Bluetooth device, the terminal device will directly ignore the control request information sent by the first Bluetooth device. It should be noted that the control authority in the authority information can be set according to actual use requirements, and only the control authority corresponding to the terminal device can be set, or only the control authority corresponding to the second Bluetooth device can be set, or both the corresponding terminal device and the second Bluetooth device can be set. 2. Control authority of Bluetooth devices.
在实施例中,设备分组至少有一个,每个设备分组中多个蓝牙设备与蓝牙模块110建立蓝牙低功耗协议(Bluetooth Low Energy,BLE/LE)连接和通用属性协议(Generic Attribute Profile,GATT)连接,蓝牙模块110通知设置模块120当前与蓝牙设备的连接状况,设置模块120会根据基于广播的同步群组(Broadcast Isochronous Group,BIG)或基于连接的同步群组(Connected Isochronous Group,CIG)进行自动分组。自动完成分组后,可以通过设置模块120对各个设备分组中的蓝牙设备进行增减,并且可以通过设置模块120为第一蓝牙设备进行权限信息设置,并将权限信息存储到存储模块130中。在蓝牙模块110接收到第一蓝牙设备发送的控制请求信息后,设置模块120会先确定第一蓝牙设备是否具有权限信息,如果第一蓝牙设备具有权限信息,则会根据权限信息中第一蓝牙设备对终端设备、第二蓝牙设备的控制权限,以及控制请求信息对应的控制权限,对第二蓝牙设备完成控制。需要说明的是,当第一蓝牙设备有多个时,终端设备在执行任一第一蓝牙设备发送的控制请求信息时,会对设备分组中除该第一蓝牙设备以外的所有蓝牙设备都完成控制,或者说,在执行任一第一蓝牙设备发送的控制请求信息时,其它蓝牙设备都可以理解为第二蓝牙设备。In an embodiment, there is at least one device group, and multiple Bluetooth devices in each device group establish a Bluetooth Low Energy protocol (Bluetooth Low Energy, BLE/LE) connection and a generic attribute protocol (Generic Attribute Profile, GATT) with the Bluetooth module 110 ) connection, the bluetooth module 110 notifies the setting module 120 of the current connection status with the bluetooth device. Do automatic grouping. After the grouping is automatically completed, the bluetooth devices in each device group can be added or removed through the setting module 120 , and the permission information can be set for the first bluetooth device through the setting module 120 , and the permission information can be stored in the storage module 130 . After the bluetooth module 110 receives the control request information sent by the first bluetooth device, the setting module 120 will first determine whether the first bluetooth device has permission information, if the first bluetooth device has permission information, it will The control authority of the device to the terminal device and the second Bluetooth device, and the control authority corresponding to the control request information complete the control of the second Bluetooth device. It should be noted that when there are multiple first bluetooth devices, when the terminal device executes the control request information sent by any first bluetooth device, it will complete all bluetooth devices in the device group except the first bluetooth device. control, or in other words, when executing the control request information sent by any first Bluetooth device, other Bluetooth devices can be understood as the second Bluetooth device.
在本申请的一实施例中,根据第一蓝牙设备在设备分组内的权限信息对控制请求信息进 行处理,包括:In an embodiment of the present application, the control request information is processed according to the authority information of the first Bluetooth device in the device group, including:
若权限信息表征第一蓝牙设备具有对终端设备和/或第二蓝牙设备的控制权限,根据控制请求信息调整终端设备和/或第二蓝牙设备的工作状态。If the authority information indicates that the first Bluetooth device has control authority over the terminal device and/or the second Bluetooth device, adjust the working status of the terminal device and/or the second Bluetooth device according to the control request information.
当第一蓝牙设备具备对终端设备、第二蓝牙设备的控制权限时,终端设备在接收到控制请求信息后,才会对控制请求信息进行数据处理,并根据控制请求信息对终端设备进行控制或者根据控制请求信息生成相应的控制指令发送到对应的第二蓝牙设备,以完成控制请求。When the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device, the terminal device will only perform data processing on the control request information after receiving the control request information, and control or control the terminal device according to the control request information. A corresponding control command is generated according to the control request information and sent to the corresponding second bluetooth device to complete the control request.
如图3所示,图3是本申请一个实施例提供的生成权限信息的流程图。As shown in FIG. 3 , FIG. 3 is a flow chart of generating permission information provided by an embodiment of the present application.
如图3所示,权限信息由以下步骤得到:As shown in Figure 3, permission information is obtained by the following steps:
获取用户输入的权限设置信息,权限设置信息包括第一蓝牙设备的设备信息以及第一蓝牙设备对终端设备和/或第二蓝牙设备的控制权限;Obtain permission setting information input by the user, where the permission setting information includes device information of the first bluetooth device and control authority of the first bluetooth device to the terminal device and/or the second bluetooth device;
根据权限设置信息确定第一蓝牙设备的权限信息。Determine the permission information of the first Bluetooth device according to the permission setting information.
根据权限设置信息可以完成对第一蓝牙设备的权限信息的设置,且通过用户输入权限设置信息来进行权限信息设置的方式,在需要对权限信息进行修改时,可以便于进行修改。需要说明的是,权限设置信息由用户输入至设置模块120,从而便于用户根据不同场景下的使用需求进行设置和修改。According to the permission setting information, the setting of the permission information of the first Bluetooth device can be completed, and the way of setting the permission information by the user inputting the permission setting information can facilitate modification when the permission information needs to be modified. It should be noted that the permission setting information is input by the user into the setting module 120, so that it is convenient for the user to set and modify according to usage requirements in different scenarios.
在本申请的一些实施例中,蓝牙设备的管理方法还包括步骤S130、步骤S140:In some embodiments of the present application, the management method of the Bluetooth device further includes step S130, step S140:
步骤S130:获取第一蓝牙设备发送的权限请求信息,权限请求信息为第一蓝牙设备对终端设备和/或第二蓝牙设备进行控制的权限请求;Step S130: Obtain permission request information sent by the first Bluetooth device, where the permission request information is a permission request for the first Bluetooth device to control the terminal device and/or the second Bluetooth device;
步骤S140:根据权限请求信息确定第一蓝牙设备的权限信息。Step S140: Determine the permission information of the first Bluetooth device according to the permission request information.
第一蓝牙设备可以通过向终端设备发送权限请求信息来主动申请权限信息,用户通过终端设备查看到接收的权限请求信息后,会根据需求对权限请求予以通过或不通过,通过的权限请求则会以权限信息的形式存储到存储模块130中。需要说明的是,通过主动发出权限请求信息的方式来获得权限信息,可以让蓝牙设备一侧用户根据需求主动提出申请,从而提高用户的使用体验。The first Bluetooth device can actively apply for permission information by sending permission request information to the terminal device. After the user checks the received permission request information through the terminal device, the permission request will be approved or not passed according to the requirement. Stored in the storage module 130 in the form of permission information. It should be noted that obtaining the permission information by actively sending permission request information can allow the user on the Bluetooth device side to actively apply for it according to the demand, thereby improving the user experience.
在本申请的一些实施例中,根据权限设置信息确定第一蓝牙设备的权限信息,包括:In some embodiments of the present application, determining the permission information of the first Bluetooth device according to the permission setting information includes:
获取与每个第一蓝牙设备对应的操作允许项信息,操作允许项信息包括第一蓝牙设备所有支持的控制权限;Obtain the operation permission item information corresponding to each first Bluetooth device, where the operation permission item information includes all the control permissions supported by the first Bluetooth device;
根据操作允许项信息和权限设置信息得到第一蓝牙设备在所处设备分组的权限信息。The permission information of the first bluetooth device in the device group where it is located is obtained according to the operation permission item information and the permission setting information.
每个一个控制权限的实现都需要对应的硬件来进行支持,不同的蓝牙设备因为硬件不同,从而具备不同的操作能力。终端设备可以通过与第一蓝牙设备进行通信,从而确定第一蓝牙设备能够支持的所有控制权限,进而在后续利用权限设置信息生成权限信息时,使第一蓝牙设备的权限信息中不会出现无法实现的控制权限,避免出现混乱。需要说明的是,这些控制权限可以通过通用属性协议(Generic Attribute Profile,GATT)来实现。通用属性协议由服务(Service)、特征值(Characteristic)构成,不同的控制权限属于不同的服务,例如:音量控制属于一个服务、麦克风控制属于另一个服务,他们的数值都保存在对应的特征值中。The realization of each control authority requires corresponding hardware to support, and different Bluetooth devices have different operating capabilities due to different hardware. The terminal device can communicate with the first Bluetooth device to determine all the control permissions that the first Bluetooth device can support, and then when the permission information is subsequently generated using the permission setting information, the permission information of the first Bluetooth device will not appear. Realized control permissions to avoid confusion. It should be noted that these control permissions can be implemented through the Generic Attribute Profile (GATT). The general attribute protocol is composed of services and characteristic values. Different control permissions belong to different services. For example, volume control belongs to one service, and microphone control belongs to another service. Their values are stored in the corresponding characteristic values. middle.
在本申请的一些实施例中,操作允许项信息的确定依据为:In some embodiments of the present application, the basis for determining the operation permission item information is:
若第一蓝牙设备不具有交互界面,操作允许项信息包括对所述终端设备的操作权限、对多个第二蓝牙设备同时进行操作的控制权限;If the first Bluetooth device does not have an interactive interface, the operation permission item information includes the operation authority to the terminal device and the control authority to simultaneously operate multiple second Bluetooth devices;
或者,or,
若第一蓝牙设备具有交互界面,操作允许项信息包括对所述终端设备的操作权限、对多个第二蓝牙设备同时进行操作的控制权限、以及对单个第二蓝牙设备进行操作的控制权限。If the first bluetooth device has an interactive interface, the operation permission item information includes the operation authority for the terminal device, the control authority for simultaneously operating multiple second bluetooth devices, and the control authority for operating a single second bluetooth device.
蓝牙设备按照操作方式来进行划分,大致可以分为有交互界面和无交互界面两种。对于无交互界面的第一蓝牙设备而言,因为不能看到具体的操作情形,所以不便于设置对单个第二蓝牙设备进行操作的控制权限,尽量选择对设备分组中多个蓝牙设备同时进行操作的控制权限更贴合实际使用需求。对于具有交互界面的第一蓝牙设备而言,因为可以通过与终端设备通讯获取每一个第二蓝牙设备的参数信息并进行显示,从而具备通过第一蓝牙设备调整单个第二蓝牙设备工作状态的基础,因此,在对第一蓝牙设备进行设置时,可以设置具备对单个第二蓝牙设备进行操作的控制权限。Bluetooth devices are divided according to the operation mode, and can be roughly divided into two types: those with an interactive interface and those without an interactive interface. For the first Bluetooth device without an interactive interface, because the specific operation situation cannot be seen, it is not convenient to set the control authority for operating a single second Bluetooth device, try to choose to operate multiple Bluetooth devices in the device group at the same time The control permissions are more suitable for actual use needs. For the first Bluetooth device with an interactive interface, because the parameter information of each second Bluetooth device can be obtained and displayed by communicating with the terminal device, there is a basis for adjusting the working state of a single second Bluetooth device through the first Bluetooth device , therefore, when setting the first bluetooth device, it can be set to have the control authority to operate a single second bluetooth device.
在本申请的一实施例中,根据第一蓝牙设备在设备分组内的权限信息对控制请求信息进行处理,包括:In an embodiment of the present application, the control request information is processed according to the authority information of the first Bluetooth device in the device group, including:
若权限信息表征第一蓝牙设备不具有对终端设备和/或第二蓝牙设备的控制权限,忽略第一蓝牙设备发送的控制请求信息。If the authority information indicates that the first Bluetooth device does not have control authority over the terminal device and/or the second Bluetooth device, the control request information sent by the first Bluetooth device is ignored.
当第一蓝牙设备不具有对终端设备、第二蓝牙设备的控制权限时,终端设备不会执行第一蓝牙设备发送的控制请求信息,而会直接忽略,从而可以直接避免无权限信息的蓝牙设备与有权限信息的蓝牙设备之间出现冲突。这里需要说明的是,在实际使用中,如果忽略控制请求信息,该处理结果会返回到发出控制请求信息的第一蓝牙设备。When the first Bluetooth device does not have the control authority to the terminal device and the second Bluetooth device, the terminal device will not execute the control request information sent by the first Bluetooth device, but will directly ignore it, so that the Bluetooth device without permission information can be directly avoided There is a conflict with a bluetooth device that has permission information. It should be noted here that, in actual use, if the control request information is ignored, the processing result will be returned to the first Bluetooth device that sent the control request information.
在本申请的一实施例中,若权限信息表征第一蓝牙设备不具有对终端设备和/或第二蓝牙设备的控制权限,根据第一蓝牙设备在设备分组内的权限信息对控制请求信息进行处理,还包括:In an embodiment of the present application, if the authority information indicates that the first Bluetooth device does not have control authority over the terminal device and/or the second Bluetooth device, the control request information is processed according to the authority information of the first Bluetooth device in the device group. processing, which also includes:
显示控制请求信息以及发送控制请求信息的第一蓝牙设备的名称。Displaying the control request information and the name of the first Bluetooth device sending the control request information.
忽略控制请求信息后,会在终端设备中显示忽略的控制请求信息,以及显示发送控制请求信息的第一蓝牙设备的名称,从而让控制终端设备的用户可以根据实际需求决定是否进行主动修改控制权限。After ignoring the control request information, the ignored control request information will be displayed on the terminal device, as well as the name of the first Bluetooth device that sent the control request information, so that the user controlling the terminal device can decide whether to actively modify the control authority according to actual needs .
为了更加清楚的说明本申请实施例提供的蓝牙设备的管理方法的处理流程,下面以具体的示例进行说明。In order to more clearly illustrate the processing flow of the Bluetooth device management method provided by the embodiment of the present application, a specific example will be used below for description.
该蓝牙设备的管理方法包括以下步骤:The management method of the bluetooth device includes the following steps:
多个蓝牙设备与蓝牙模块110建立蓝牙低功耗协议连接和通用属性协议连接;A plurality of bluetooth devices and the bluetooth module 110 establish the bluetooth low energy consumption protocol connection and the common property agreement connection;
蓝牙模块110通知设置模块120当前与蓝牙设备的连接状况;The Bluetooth module 110 notifies the setting module 120 of the current connection status with the Bluetooth device;
设置模块120会基于广播的同步群组或基于连接的同步群组进行自动分组;The setting module 120 will perform automatic grouping based on broadcast synchronization groups or connection-based synchronization groups;
自动完成分组后,通过设置模块120对各个设备分组中的蓝牙设备进行增减,以形成用户所需要的至少一个设备分组;设备分组可以有多个,且多个设备分组中可以存在相同的蓝牙设备;After the grouping is automatically completed, the Bluetooth devices in each device group are increased or decreased through the setting module 120 to form at least one device group required by the user; there can be multiple device groups, and the same Bluetooth device can exist in multiple device groups. equipment;
设置模块120根据用户输入的权限设置信息确定第一蓝牙设备,然后确定第一蓝牙设备是否具有交互界面,从而确定第一蓝牙设备的操作允许项信息,即获得第一蓝牙设备可供选择的权限列表,无交互界面的第一蓝牙设备的权限列表包括切换、接听、挂断、音量调节、输入(麦克风)等控制权限,具有交互界面的蓝牙设备的权限列表除了切换、接听、挂断、音量调节、输入(麦克风)等控制权限外,还包括增加码率控制、麦克风功能单独控制、音量单独控制等控制权限;在本申请的一实施例中,权限列表如表1所示;The setting module 120 determines the first Bluetooth device according to the authority setting information input by the user, and then determines whether the first Bluetooth device has an interactive interface, thereby determining the operation permission item information of the first Bluetooth device, that is, obtaining the optional authority of the first Bluetooth device list, the permission list of the first bluetooth device without an interactive interface includes control permissions such as switching, answering, hanging up, volume adjustment, input (microphone), and the permission list of a bluetooth device with an interactive interface except switching, answering, hanging up, volume In addition to control rights such as adjustment and input (microphone), control rights such as increasing code rate control, independent control of microphone functions, and independent volume control are also included; in an embodiment of the present application, the list of rights is as shown in Table 1;
表1权限列表Table 1 Permission list
Figure PCTCN2022119114-appb-000001
Figure PCTCN2022119114-appb-000001
确定第一蓝牙设备后,设置模块120根据权限设置信息完成第一蓝牙设备对终端设备和/或第二蓝牙设备的控制权限的设置,从而形成最终的权限信息;权限信息会存储到存储模块130中,以便后续进行访问和修改使用;After determining the first bluetooth device, the setting module 120 completes the setting of the control authority of the first bluetooth device to the terminal device and/or the second bluetooth device according to the authority setting information, thereby forming the final authority information; the authority information will be stored in the storage module 130 for subsequent access and modification;
终端设备在接收到第一蓝牙设备发送的控制请求信息后,便会根据与第一蓝牙设备对应的权限信息来执行控制请求信息,反之,如果发送控制请求信息的蓝牙设备不具备权限信息时,则会忽略该控制请求信息并返回处理结果,并在终端设备进行显示,使得终端设备可以根据实际需求来确定是否主动为发送该控制请求信息的蓝牙设备开通权限;After the terminal device receives the control request information sent by the first Bluetooth device, it will execute the control request information according to the permission information corresponding to the first Bluetooth device. Conversely, if the Bluetooth device sending the control request information does not have permission information, It will ignore the control request information and return the processing result, and display it on the terminal device, so that the terminal device can determine whether to actively open the authority for the Bluetooth device that sent the control request information according to actual needs;
在蓝牙设备接收到终端设备返回的处理结果后,如果该蓝牙设备具备交互界面,则可以直接利用交互界面发起权限申请。After the Bluetooth device receives the processing result returned by the terminal device, if the Bluetooth device has an interactive interface, it can directly use the interactive interface to initiate a permission application.
此外,设备分组中所有蓝牙设备都可以通过向终端设备发送权限请求信息来主动申请控制权限,在终端设备通过权限申请后,会生成相应的权限信息并存储至存储模块130中;这里需要说明的是,权限请求信息通常是由具备交互界面的蓝牙设备提交,用户通过在这些蓝牙设备的交互界面上输入需要的权限请求即可。In addition, all Bluetooth devices in the device group can actively apply for control authority by sending permission request information to the terminal device. After the terminal device passes the permission application, it will generate corresponding permission information and store it in the storage module 130; what needs to be explained here Yes, the permission request information is usually submitted by a Bluetooth device with an interactive interface, and the user can input the required permission request on the interactive interface of these Bluetooth devices.
另外,如图4所示,图4为本申请的一个实施例提供的蓝牙设备的管理装置的功能模块框图。In addition, as shown in FIG. 4 , FIG. 4 is a block diagram of functional modules of an apparatus for managing Bluetooth devices provided by an embodiment of the present application.
如图4所示,该蓝牙设备的管理装置能够实现如图2所示实施例中的蓝牙设备的管理方法,该蓝牙设备的管理装置应用于终端设备,终端设备同时与至少一个设备分组内的多个蓝牙设备连接,该网络处理器包括:数据接收模块210、请求处理模块220,As shown in Figure 4, the management device of the Bluetooth device can realize the management method of the Bluetooth device in the embodiment shown in Figure 2, the management device of the Bluetooth device is applied to a terminal device, and the terminal device communicates with at least one device group A plurality of Bluetooth devices are connected, and the network processor includes: a data receiving module 210, a request processing module 220,
数据接收模块210,被设置为接收设备分组内与终端设备连接的第一蓝牙设备发送的控制请求信息;The data receiving module 210 is configured to receive the control request information sent by the first Bluetooth device connected to the terminal device in the device group;
请求处理模块220,被设置为根据第一蓝牙设备在设备分组内的权限信息对控制请求信 息进行处理,权限信息用于表征第一蓝牙设备对终端设备的控制权限和/或同一设备分组内与终端设备连接的第二蓝牙设备的控制权限。The request processing module 220 is configured to process the control request information according to the permission information of the first Bluetooth device in the device group, and the permission information is used to represent the control permission of the first Bluetooth device to the terminal device and/or within the same device group and The control authority of the second Bluetooth device connected to the terminal device.
在本实施例中,为第一蓝牙设备构建了权限信息,权限信息包括第一蓝牙设备对终端设备和/或第二蓝牙设备的控制权限,并将权限信息存储到存储模块130中。在数据接收模块210接收到第一蓝牙设备的发送的控制请求信息后,便会通过请求处理模块220确认第一蓝牙设备的权限信息,进而可以在确定第一蓝牙设备具有对终端设备、第二蓝牙设备的控制权限后,才会执行控制请求信息,完成对终端设备、第二蓝牙设备的控制,从而可以避免终端设备对所有蓝牙设备发送的控制请求信息都进行执行,有效的解决了多个蓝牙设备协同工作时会出现设备间的控制冲突、混乱或者增加多个设备管理的难度等问题。需要说明的是,第一蓝牙设备没有对终端设备、第二蓝牙设备的控制权限时,终端设备会直接忽略第一蓝牙设备发送给的控制请求信息。需要说明的是,权限信息中的控制权限可以根据实际使用的需求进行设置,可以只设置对应终端设备的控制权限,或者只设置对应第二蓝牙设备的控制权限,或者同时设置对应终端设备和第二蓝牙设备的控制权限。In this embodiment, permission information is constructed for the first Bluetooth device, the permission information includes the control permission of the first Bluetooth device to the terminal device and/or the second Bluetooth device, and the permission information is stored in the storage module 130 . After the data receiving module 210 receives the control request information sent by the first bluetooth device, it will confirm the authority information of the first bluetooth device through the request processing module 220, and then can confirm that the first bluetooth device has the right to the terminal device, the second After the control authority of the Bluetooth device, the control request information will be executed to complete the control of the terminal device and the second Bluetooth device, thereby preventing the terminal device from executing the control request information sent by all Bluetooth devices, effectively solving multiple When Bluetooth devices work together, there will be problems such as control conflicts between devices, confusion, or increased difficulty in managing multiple devices. It should be noted that when the first Bluetooth device has no control authority over the terminal device and the second Bluetooth device, the terminal device will directly ignore the control request information sent by the first Bluetooth device. It should be noted that the control authority in the authority information can be set according to actual use requirements, and only the control authority corresponding to the terminal device can be set, or only the control authority corresponding to the second Bluetooth device can be set, or both the corresponding terminal device and the second Bluetooth device can be set. 2. Control authority of Bluetooth devices.
在实施例中,设备分组至少有一个,每个设备分组中多个蓝牙设备与蓝牙模块110建立蓝牙低功耗协议(Bluetooth Low Energy,BLE/LE)连接和通用属性协议(Generic Attribute Profile,GATT)连接,蓝牙模块110通知设置模块120当前与蓝牙设备的连接状况,设置模块120会根据基于广播的同步群组(Broadcast Isochronous Group,BIG)或基于连接的同步群组(Connected Isochronous Group,CIG)进行自动分组。自动完成分组后,可以通过设置模块120对各个设备分组中的蓝牙设备进行增减,并且可以通过设置模块120为第一蓝牙设备进行权限信息设置,并将权限信息存储到存储模块130中。在数据接收模块210接收到第一蓝牙设备发送的控制请求信息后,请求处理模块220会先确定第一蓝牙设备是否具有权限信息,如果第一蓝牙设备具有权限信息,则会根据权限信息中第一蓝牙设备对终端设备、第二蓝牙设备的控制权限,以及控制请求信息对应的控制权限,对终端设备、第二蓝牙设备完成控制。需要说明的是,当第一蓝牙设备有多个时,终端设备在执行任一第一蓝牙设备发送的控制请求信息时,会对设备分组中除该第一蓝牙设备以外的所有蓝牙设备都完成控制,或者说,在执行任一第一蓝牙设备发送的控制请求信息时,其它蓝牙设备都可以理解为第二蓝牙设备。In an embodiment, there is at least one device group, and multiple Bluetooth devices in each device group establish a Bluetooth Low Energy protocol (Bluetooth Low Energy, BLE/LE) connection and a generic attribute protocol (Generic Attribute Profile, GATT) with the Bluetooth module 110 ) connection, the bluetooth module 110 notifies the setting module 120 of the current connection status with the bluetooth device. Do automatic grouping. After the grouping is automatically completed, the bluetooth devices in each device group can be added or removed through the setting module 120 , and the permission information can be set for the first bluetooth device through the setting module 120 , and the permission information can be stored in the storage module 130 . After the data receiving module 210 receives the control request information sent by the first bluetooth device, the request processing module 220 will first determine whether the first bluetooth device has permission information, and if the first bluetooth device has permission information, it will The control authority of a bluetooth device to the terminal device and the second bluetooth device, and the control authority corresponding to the control request information complete the control of the terminal device and the second bluetooth device. It should be noted that when there are multiple first bluetooth devices, when the terminal device executes the control request information sent by any first bluetooth device, it will complete all bluetooth devices in the device group except the first bluetooth device. control, or in other words, when executing the control request information sent by any first Bluetooth device, other Bluetooth devices can be understood as the second Bluetooth device.
如图4所示,蓝牙设备的管理装置还包括:权限设置信息获取模块230、权限信息生成模块240,As shown in Figure 4, the management device of the bluetooth device also includes: a permission setting information acquisition module 230, a permission information generation module 240,
权限设置信息获取模块230,被设置为获取用户输入的权限设置信息,权限请求信息为第一蓝牙设备对终端设备和/或第二蓝牙设备进行控制的权限请求;The permission setting information acquisition module 230 is configured to obtain permission setting information input by the user, and the permission request information is a permission request for the first Bluetooth device to control the terminal device and/or the second Bluetooth device;
权限信息生成模块240,被设置为根据权限设置信息确定第一蓝牙设备的权限信息。The authority information generation module 240 is configured to determine the authority information of the first Bluetooth device according to the authority setting information.
权限设置信息获取模块230可以获取用户输入的权限设置信息,进而可以让权限信息生成模块240可以根据权限设置信息完成对第一蓝牙设备的权限信息的设置。通过获取用户输入的权限设置信息来生成权限信息的方式,可以在需要对权限信息进行修改时,便于完成修改。需要说明的是,因此权限设置信息由用户输入至设置模块120,所以用户可以根据不同场景下的使用需求对权限信息进行设置和修改。The authority setting information acquiring module 230 can acquire the authority setting information input by the user, and then allow the authority information generating module 240 to complete the setting of the authority information of the first Bluetooth device according to the authority setting information. The method of generating the permission information by acquiring the permission setting information input by the user can facilitate modification when the permission information needs to be modified. It should be noted that, therefore, the permission setting information is input by the user into the setting module 120, so the user can set and modify the permission information according to usage requirements in different scenarios.
在本申请的一实施例中,权限信息生成模块240包括:操作允许信息获取模块、权项生成模块,In an embodiment of the present application, the authority information generation module 240 includes: an operation permission information acquisition module, a right item generation module,
操作允许信息获取模块,被设置为获取与每个第一蓝牙设备对应的操作允许项信息,操作允许项信息包括第一蓝牙设备所有支持的控制权限;The operation permission information acquisition module is configured to obtain the operation permission item information corresponding to each first Bluetooth device, and the operation permission item information includes all the control permissions supported by the first Bluetooth device;
权项生成模块,被设置为根据操作允许项信息和权限设置信息得到第一蓝牙设备在所处设备分组的权限信息。The right item generation module is configured to obtain the right information of the first Bluetooth device in the device group where it is located according to the operation permission item information and the right setting information.
每个一个控制权限的实现都需要对应的硬件来进行支持,不同的蓝牙设备因为硬件不同,从而具备不同的操作能力。操作允许信息获取模块通过获取第一蓝牙设备的操作允许项信息,从而确定第一蓝牙设备能够支持的所有控制权限,从而使得权项生成模块在生成权限信息可以避免在权限信息中加入不能进行操作的权控制权限,造成后续发生操作混乱。这些控制权限的实现可以通过通用属性协议(Generic Attribute Profile,GATT)来实现。通用属性协议由服务(Service)、特征值(Characteristic)构成,不同的控制权限属于不同的服务,例如:音量控制属于一个服务、麦克风控制属于另一个服务,他们的数值都保存在对应的特征值中。The realization of each control authority requires corresponding hardware to support, and different Bluetooth devices have different operating capabilities due to different hardware. The operation permission information acquisition module determines all the control permissions that the first Bluetooth device can support by obtaining the operation permission item information of the first Bluetooth device, so that the right item generation module can avoid adding in the permission information when generating the permission information. The right to control the authority will cause subsequent operation confusion. The implementation of these control rights can be realized through the Generic Attribute Profile (GATT). The general attribute protocol is composed of services and characteristic values. Different control permissions belong to different services. For example, volume control belongs to one service, and microphone control belongs to another service. Their values are stored in the corresponding characteristic values. middle.
这里需要说明的是,操作允许项信息的确定依据为:若第一蓝牙设备不具有交互界面,操作允许项信息包括对多个第二蓝牙设备同时进行操作的控制权限;若第一蓝牙设备具有交互界面,操作允许项信息包括对多个第二蓝牙设备同时进行操作的控制权限、以及对单个第二蓝牙设备进行操作的控制权限。It should be noted here that the basis for determining the operation permission item information is: if the first Bluetooth device does not have an interactive interface, the operation permission item information includes the control authority to operate multiple second Bluetooth devices at the same time; if the first Bluetooth device has In the interactive interface, the operation permission item information includes the control authority to operate multiple second Bluetooth devices at the same time, and the control authority to operate a single second Bluetooth device.
蓝牙设备按照操作方式来进行划分,大致可以分为有交互界面和无交互界面两种。对于无交互界面的第一蓝牙设备而言,因为不能看到具体的操作情形,所以不便于设置对单个第二蓝牙设备进行操作的控制权限,尽量选择对设备分组中多个蓝牙设备同时进行操作的控制权限更贴合实际使用需求。对于具有交互界面的第一蓝牙设备而言,因为可以通过与终端设备通讯获取每一个第二蓝牙设备的参数信息并进行显示,从而具备通过第一蓝牙设备调整单个第二蓝牙设备工作状态的基础,因此,在对第一蓝牙设备进行设置时,可以设置具备对单个第二蓝牙设备进行操作的控制权限。Bluetooth devices are divided according to the operation mode, and can be roughly divided into two types: those with an interactive interface and those without an interactive interface. For the first Bluetooth device without an interactive interface, because the specific operation situation cannot be seen, it is not convenient to set the control authority for operating a single second Bluetooth device, try to choose to operate multiple Bluetooth devices in the device group at the same time The control permissions are more suitable for actual use needs. For the first Bluetooth device with an interactive interface, because the parameter information of each second Bluetooth device can be obtained and displayed by communicating with the terminal device, there is a basis for adjusting the working state of a single second Bluetooth device through the first Bluetooth device , therefore, when setting the first bluetooth device, it can be set to have the control authority to operate a single second bluetooth device.
如图4所示,蓝牙设备的管理装置还包括可视化模块250,可视化模块250被设置为显示控制请求信息以及发送控制请求信息的第一蓝牙设备的名称。As shown in FIG. 4 , the management apparatus for Bluetooth devices further includes a visualization module 250 configured to display the control request information and the name of the first Bluetooth device sending the control request information.
当权限信息表征第一蓝牙设备不具有对终端设备、第二蓝牙设备的控制权限时,请求处理模块220会忽略第一蓝牙设备发送的控制请求信息,从而可以直接避免无权限信息的蓝牙设备与有权限信息的蓝牙设备之间出现冲突。请求处理模块220忽略控制请求信息后,会通过可视化模块250显示忽略的控制请求信息,以及显示发送控制请求信息的第一蓝牙设备的名称,从而让控制终端设备的用户可以根据实际需求决定是否进行主动修改控制权限。When the authority information indicates that the first Bluetooth device does not have the control authority to the terminal device and the second Bluetooth device, the request processing module 220 will ignore the control request information sent by the first Bluetooth device, so as to directly avoid the Bluetooth device without authority information and There is a conflict between bluetooth devices with permission information. After the request processing module 220 ignores the control request information, it will display the ignored control request information through the visualization module 250, and display the name of the first bluetooth device that sent the control request information, so that the user who controls the terminal device can decide whether to proceed according to actual needs. Actively modify control permissions.
另外,本申请的一个实施例还提供了一种网络处理器,该网络处理器包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上述的报文处理方法。In addition, an embodiment of the present application also provides a network processor. The network processor includes: a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, it realizes Such as the packet processing method described above.
实现上述实施例的报文处理方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例中的报文处理方法,例如,执行以上描述的图2中的方法、图3中的方法。The non-transitory software programs and instructions required to realize the message processing method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the message processing method in the above-mentioned embodiment is executed, for example, executing the above-described Figure 2 The method in, the method in Fig. 3.
另外,本申请的一个实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于执行如上述的报文处理方法,例如,被上述网络处理器的实施例中的一个处理器执行,可使得上述处理器执行上述实施例中的信息处理方法,例如,执行以上描述的图2中的方法、图3中的方法。In addition, an embodiment of the present application also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to execute the above-mentioned packet processing method, for example, by the above-mentioned Execution by a processor in the embodiment of the network processor may cause the processor to execute the information processing method in the above embodiment, for example, execute the method in FIG. 2 and the method in FIG. 3 described above.
本申请实施例包括:接收所述设备分组内与终端设备连接的第一蓝牙设备发送的控制请求信息,其中,终端设备同时与至少一个设备分组内的多个蓝牙设备连接;根据第一蓝牙设备在设备分组内的权限信息对控制请求信息进行处理,权限信息用于表征第一蓝牙设备对终端设备和/或同一设备分组内与终端设备连接的第二蓝牙设备的控制权限。由于预先为第一蓝牙设备设置了权限信息,因此,在终端设备接收到控制请求信息后,会先确定第一蓝牙设备是否具有对终端设备、第二蓝牙设备的控制权限,进而可以在确定第一蓝牙设备具有对终端设备、第二蓝牙设备的控制权限后,才会执行控制请求信息,完成对终端设备、第二蓝牙设备的控制,从而可以避免终端设备对所有蓝牙设备发送的控制请求信息都进行执行,有效的解决了多个蓝牙设备协同工作时会出现设备间的控制冲突、混乱或者增加多个设备管理的难度等问题。The embodiment of the present application includes: receiving control request information sent by the first Bluetooth device connected to the terminal device in the device group, wherein the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group; according to the first Bluetooth device The authority information in the device group processes the control request information, and the authority information is used to represent the control authority of the first Bluetooth device to the terminal device and/or the second Bluetooth device connected to the terminal device in the same device group. Since the authority information is set for the first Bluetooth device in advance, after the terminal device receives the control request information, it will first determine whether the first Bluetooth device has the control authority to the terminal device and the second Bluetooth device, and then can determine the first Bluetooth device. Only after a bluetooth device has the control authority to the terminal device and the second bluetooth device will it execute the control request information to complete the control of the terminal device and the second bluetooth device, thereby avoiding the control request information sent by the terminal device to all bluetooth devices Both are executed, which effectively solves the problems of control conflicts between devices, confusion, or increased difficulty in managing multiple devices when multiple Bluetooth devices work together.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储单元技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those skilled in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware and an appropriate combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media including, but not limited to, RAM, ROM, EEPROM, flash memory or other storage unit technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or Any other medium that can be used to store desired information and that can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
以上是对本申请的较佳实施进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the application, but the application is not limited to the above-mentioned implementation, and those skilled in the art can also make various equivalent deformations or replacements without violating the spirit of the application. Equivalent modifications or replacements are all within the scope defined by the claims of the present application.

Claims (14)

  1. 一种蓝牙设备的管理方法,应用于终端设备,所述终端设备同时与至少一个设备分组内的多个蓝牙设备连接,所述蓝牙设备的管理方法包括:A method for managing a Bluetooth device, applied to a terminal device, where the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group, and the method for managing the Bluetooth device includes:
    接收所述设备分组内与所述终端设备连接的第一蓝牙设备发送的控制请求信息;receiving control request information sent by a first Bluetooth device connected to the terminal device in the device group;
    根据所述第一蓝牙设备在所述设备分组内的权限信息对所述控制请求信息进行处理,所述权限信息用于表征所述第一蓝牙设备对所述终端设备的控制权限和/或对同一设备分组内与所述终端设备连接的第二蓝牙设备的控制权限。Process the control request information according to the authority information of the first Bluetooth device in the device group, where the authority information is used to represent the control authority of the first Bluetooth device to the terminal device and/or to The control authority of the second Bluetooth device connected to the terminal device in the same device group.
  2. 根据权利要求1所述的蓝牙设备的管理方法,其中,所述根据所述第一蓝牙设备在所述设备分组内的权限信息对所述控制请求信息进行处理,包括:The management method for Bluetooth devices according to claim 1, wherein the processing of the control request information according to the authority information of the first Bluetooth device in the device group includes:
    若所述权限信息表征所述第一蓝牙设备具有对所述终端设备和/或所述第二蓝牙设备的控制权限,根据所述控制请求信息调整所述终端设备和/或所述第二蓝牙设备的工作状态。If the authority information indicates that the first Bluetooth device has control authority over the terminal device and/or the second Bluetooth device, adjust the terminal device and/or the second Bluetooth device according to the control request information. The working status of the device.
  3. 根据权利要求1所述的蓝牙设备的管理方法,其中,所述权限信息由以下步骤得到:The management method of the Bluetooth device according to claim 1, wherein the authority information is obtained by the following steps:
    获取用户输入的权限设置信息,所述权限设置信息包括所述第一蓝牙设备的设备信息以及所述第一蓝牙设备对所述终端设备和/或所述第二蓝牙设备的控制权限;Obtain permission setting information input by the user, where the permission setting information includes the device information of the first Bluetooth device and the control permission of the first Bluetooth device to the terminal device and/or the second Bluetooth device;
    根据所述权限设置信息确定所述第一蓝牙设备的所述权限信息。Determine the permission information of the first Bluetooth device according to the permission setting information.
  4. 根据权利要求1或3所述的蓝牙设备的管理方法,其中,所述蓝牙设备的管理方法,还包括:The management method of the Bluetooth device according to claim 1 or 3, wherein the management method of the Bluetooth device further comprises:
    获取所述第一蓝牙设备发送的权限请求信息,所述权限请求信息为所述第一蓝牙设备对所述终端设备和/或所述第二蓝牙设备进行控制的权限请求;Obtain permission request information sent by the first Bluetooth device, where the permission request information is a permission request for the first Bluetooth device to control the terminal device and/or the second Bluetooth device;
    根据所述权限请求信息确定所述第一蓝牙设备的所述权限信息。Determine the permission information of the first Bluetooth device according to the permission request information.
  5. 根据权利要求3所述的蓝牙设备的管理方法,其中,所述根据所述权限设置信息确定所述第一蓝牙设备的所述权限信息,包括:The management method of the Bluetooth device according to claim 3, wherein said determining the permission information of the first Bluetooth device according to the permission setting information comprises:
    获取与每个所述第一蓝牙设备对应的操作允许项信息,所述操作允许项信息包括所述第一蓝牙设备所有支持的控制权限;Obtaining operation permission item information corresponding to each of the first Bluetooth devices, where the operation permission item information includes all control permissions supported by the first Bluetooth device;
    根据所述操作允许项信息和所述权限设置信息得到所述第一蓝牙设备在所处设备分组的所述权限信息。Obtain the permission information of the device group where the first Bluetooth device is located according to the operation permission item information and the permission setting information.
  6. 根据权利要求5所述的蓝牙设备的管理方法,其中,所述操作允许项信息的确定依据为:The management method of the Bluetooth device according to claim 5, wherein the basis for determining the operation permission item information is:
    若所述第一蓝牙设备不具有交互界面,所述操作允许项信息包括对所述终端设备的操作权限、对多个所述第二蓝牙设备同时进行操作的控制权限;If the first Bluetooth device does not have an interactive interface, the operation permission item information includes the operation authority for the terminal device and the control authority for simultaneously operating multiple second Bluetooth devices;
    或者,or,
    若所述第一蓝牙设备具有交互界面,所述操作允许项信息包括对所述终端设备的操作权限、对多个所述第二蓝牙设备同时进行操作的控制权限、以及对单个所述第二蓝牙设备进行操作的控制权限。If the first bluetooth device has an interactive interface, the operation permission item information includes the operation authority for the terminal device, the control authority for operating multiple second bluetooth devices at the same time, and the control authority for a single second bluetooth device. The control authority to operate the Bluetooth device.
  7. 根据权利要求1所述的蓝牙设备的管理方法,其中,所述根据所述第一蓝牙设备在所述设备分组内的权限信息对所述控制请求信息进行处理,包括:The management method for Bluetooth devices according to claim 1, wherein the processing of the control request information according to the authority information of the first Bluetooth device in the device group includes:
    若所述权限信息表征所述第一蓝牙设备不具有对所述终端设备和/或所述第二蓝牙设备的控制权限,忽略所述第一蓝牙设备发送的所述控制请求信息。If the authority information indicates that the first Bluetooth device does not have control authority over the terminal device and/or the second Bluetooth device, ignore the control request information sent by the first Bluetooth device.
  8. 根据权利要求7所述的蓝牙设备的管理方法,其中,若所述权限信息表征所述第一蓝牙设备不具有对所述终端设备和/或所述第二蓝牙设备的控制权限,所述根据所述第一蓝牙设备在所述设备分组内的权限信息对所述控制请求信息进行处理,还包括:The management method of the Bluetooth device according to claim 7, wherein if the authority information indicates that the first Bluetooth device does not have control authority over the terminal device and/or the second Bluetooth device, the The authority information of the first Bluetooth device in the device group processes the control request information, and further includes:
    显示所述控制请求信息以及发送所述控制请求信息的所述第一蓝牙设备的名称。displaying the control request information and the name of the first Bluetooth device sending the control request information.
  9. 一种蓝牙设备的管理装置,其中,所述蓝牙设备的管理装置应用于终端设备,所述终端设备同时与至少一个设备分组内的多个蓝牙设备连接,所述蓝牙设备的管理装置包括:A management device for Bluetooth devices, wherein the management device for Bluetooth devices is applied to a terminal device, and the terminal device is simultaneously connected to multiple Bluetooth devices in at least one device group, and the management device for Bluetooth devices includes:
    数据接收模块,被设置为接收设备分组内与终端设备连接的第一蓝牙设备发送的控制请求信息;The data receiving module is configured to receive the control request information sent by the first Bluetooth device connected to the terminal device in the device group;
    请求处理模块,被设置为根据所述第一蓝牙设备在所述设备分组内的权限信息对所述控制请求信息进行处理,所述权限信息用于表征所述第一蓝牙设备对所述终端设备的控制权限和/或同一设备分组内与所述终端设备连接的第二蓝牙设备的控制权限。The request processing module is configured to process the control request information according to the authority information of the first Bluetooth device in the device group, and the authority information is used to indicate that the first Bluetooth device is responsible for the terminal device and/or the control authority of the second Bluetooth device connected to the terminal device in the same device group.
  10. 根据权利要求9所述的蓝牙设备的管理装置,其中,所述蓝牙设备的管理装置还包括:The management device of the Bluetooth device according to claim 9, wherein the management device of the Bluetooth device further comprises:
    权限设置信息获取模块,被设置为获取用户输入的权限设置信息,所述权限请求信息为所述第一蓝牙设备对所述终端设备和/或所述第二蓝牙设备进行控制的权限请求;An authority setting information acquisition module configured to acquire authority setting information input by a user, the authority request information being a authority request for the first Bluetooth device to control the terminal device and/or the second Bluetooth device;
    权限信息生成模块,被设置为根据所述权限设置信息确定所述第一蓝牙设备的所述权限信息。The authority information generating module is configured to determine the authority information of the first Bluetooth device according to the authority setting information.
  11. 根据权利要求10所述的蓝牙设备的管理装置,其中,所述权限信息生成模块包括:The management device for Bluetooth devices according to claim 10, wherein the authority information generating module comprises:
    操作允许信息获取模块,被设置为获取与每个所述第一蓝牙设备对应的操作允许项信息,所述操作允许项信息包括所述第一蓝牙设备所有支持的控制权限;The operation permission information acquisition module is configured to obtain the operation permission item information corresponding to each of the first Bluetooth devices, and the operation permission item information includes all the control permissions supported by the first Bluetooth device;
    权项生成模块,被设置为根据所述操作允许项信息和所述权限设置信息得到所述第一蓝牙设备在所处设备分组的所述权限信息。The rights generation module is configured to obtain the rights information of the device group where the first Bluetooth device is located according to the operation permission item information and the rights setting information.
  12. 根据权利要求9所述的蓝牙设备的管理装置,其中,所述蓝牙设备的管理装置还包括:The management device of the Bluetooth device according to claim 9, wherein the management device of the Bluetooth device further comprises:
    可视化模块,被设置为显示所述控制请求信息以及发送所述控制请求信息的所述第一蓝牙设备的名称。A visualization module configured to display the control request information and the name of the first Bluetooth device sending the control request information.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至8中任意一项所述的蓝牙设备的管理方法。A computer-readable storage medium, storing computer-executable instructions, the computer-executable instructions are used to execute the management method for Bluetooth devices according to any one of claims 1-8.
  14. 一种终端设备,包括:存储器、处理器、通讯模块及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至8任一所述的蓝牙设备的管理方法。A terminal device, comprising: a memory, a processor, a communication module, and a computer program stored on the memory and operable on the processor, wherein, when the processor executes the computer program, any of claims 1 to 8 is implemented. A management method for the Bluetooth device.
PCT/CN2022/119114 2021-11-18 2022-09-15 Bluetooth device management method and apparatus, storage medium and terminal device WO2023087880A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111372304.7 2021-11-18
CN202111372304.7A CN116137094A (en) 2021-11-18 2021-11-18 Bluetooth device management method and device, storage medium and terminal device

Publications (1)

Publication Number Publication Date
WO2023087880A1 true WO2023087880A1 (en) 2023-05-25

Family

ID=86334308

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/119114 WO2023087880A1 (en) 2021-11-18 2022-09-15 Bluetooth device management method and apparatus, storage medium and terminal device

Country Status (2)

Country Link
CN (1) CN116137094A (en)
WO (1) WO2023087880A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117255332A (en) * 2023-11-17 2023-12-19 Tcl通讯科技(成都)有限公司 Bluetooth connection control method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068041A1 (en) * 2012-09-06 2014-03-06 Eric T. Obligacion Team processing using dynamic licenses
CN105578386A (en) * 2015-11-26 2016-05-11 小米科技有限责任公司 Bluetooth device management method and device
CN106603716A (en) * 2016-12-30 2017-04-26 Tcl集团股份有限公司 Synchronization method of intelligent device state, intelligent device and control terminal thereof
CN110753334A (en) * 2019-10-25 2020-02-04 华为技术有限公司 Bluetooth communication method, device and equipment with Bluetooth communication function
CN111049709A (en) * 2019-11-19 2020-04-21 广东科徕尼智能科技有限公司 Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
CN113194450A (en) * 2021-05-06 2021-07-30 维沃移动通信有限公司 Bluetooth device management method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068041A1 (en) * 2012-09-06 2014-03-06 Eric T. Obligacion Team processing using dynamic licenses
CN105578386A (en) * 2015-11-26 2016-05-11 小米科技有限责任公司 Bluetooth device management method and device
CN106603716A (en) * 2016-12-30 2017-04-26 Tcl集团股份有限公司 Synchronization method of intelligent device state, intelligent device and control terminal thereof
CN110753334A (en) * 2019-10-25 2020-02-04 华为技术有限公司 Bluetooth communication method, device and equipment with Bluetooth communication function
CN111049709A (en) * 2019-11-19 2020-04-21 广东科徕尼智能科技有限公司 Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
CN113194450A (en) * 2021-05-06 2021-07-30 维沃移动通信有限公司 Bluetooth device management method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117255332A (en) * 2023-11-17 2023-12-19 Tcl通讯科技(成都)有限公司 Bluetooth connection control method and device, storage medium and electronic equipment
CN117255332B (en) * 2023-11-17 2024-03-19 Tcl通讯科技(成都)有限公司 Bluetooth connection control method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN116137094A (en) 2023-05-19

Similar Documents

Publication Publication Date Title
US10382501B2 (en) Multifunction collaboration within an electronic meeting
CN105308934B (en) Method and apparatus for controlling content shared between devices in wireless communication system
CN105335112B (en) Multi-screen display information processing and main control end content sending method and device
US11316909B2 (en) Data transmission method and apparatus, and computer storage medium
US10419535B2 (en) Preconfigured syncML profile categories
US10284609B2 (en) Multifunction collaboration within an electronic meeting
CN106851174B (en) Virtual conference room creating method and device and method and device for holding video conference
EP2945337A2 (en) Method, system and server for service switching
WO2020024775A1 (en) Data transmission control method and related apparatus
US10038664B2 (en) Terminal status subscription method, apparatus, and system
WO2023087880A1 (en) Bluetooth device management method and apparatus, storage medium and terminal device
WO2016101545A1 (en) Device management method, apparatus, and system
US20130132586A1 (en) Selective Connection Between Corresponding Communication Components Involved in a Teleconference
WO2012163075A1 (en) Video conferencing processing method, apparatus and communication system
WO2023071248A1 (en) Video conference scene control method and system, device, and storage medium
CN111988660A (en) DLNA equipment screen projection method, gateway, terminal and system
WO2023103599A1 (en) Screen projection method and apparatus, storage medium and electronic device
CN114827094A (en) Cloud desktop-based authority control method and device, computer equipment and medium
US10455195B2 (en) Method and system for controlling multiple auxiliary streams, control device, and node
WO2018058895A1 (en) Terminal control method and apparatus based on rcs message
US20080162586A1 (en) Automatic syncml client profile creation for new servers
US10277655B2 (en) Scheduling method and device for protocol stack in remote presentation system
WO2021121413A1 (en) Video pushing and transmission methods, angle of view synchronization method and apparatus, and storage medium
CN104618500B (en) A kind of method that local area network applications routine data based on DLNA is shared
WO2023093300A1 (en) Communication method, terminal and computer-readable storage medium

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: 22894418

Country of ref document: EP

Kind code of ref document: A1