CN116828431A - Bluetooth equipment call and audio control method and system with low power consumption - Google Patents

Bluetooth equipment call and audio control method and system with low power consumption Download PDF

Info

Publication number
CN116828431A
CN116828431A CN202310782058.5A CN202310782058A CN116828431A CN 116828431 A CN116828431 A CN 116828431A CN 202310782058 A CN202310782058 A CN 202310782058A CN 116828431 A CN116828431 A CN 116828431A
Authority
CN
China
Prior art keywords
bluetooth device
audio
broadcast
event
slave
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310782058.5A
Other languages
Chinese (zh)
Inventor
贺家裕
庄少宏
肖关胜
李富涛
邹海青
劳凯邦
陈大磊
司徒永康
程好峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Panyu Juda Car Audio Equipment Co ltd
Original Assignee
Guangzhou Panyu Juda Car Audio Equipment Co ltd
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 Guangzhou Panyu Juda Car Audio Equipment Co ltd filed Critical Guangzhou Panyu Juda Car Audio Equipment Co ltd
Priority to CN202310782058.5A priority Critical patent/CN116828431A/en
Publication of CN116828431A publication Critical patent/CN116828431A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a system for controlling communication and audio of low-power consumption Bluetooth equipment, wherein the method comprises the following steps: configuring an upper layer Profile of a general audio architecture based on LE audio according to requirements to obtain a configuration telephone audio application and a configuration media audio application; managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain a broadcast audio event; performing key event operation on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device; obtaining key operation control of the master and slave Bluetooth devices during network call based on the configuration telephone audio application; and performing call control and audio playing of the master and slave Bluetooth devices based on the control connection and the key operation control. The invention realizes the answering of the network telephone by the Bluetooth device and the synchronous playing of the audio by the Bluetooth device, and can reduce the power consumption so as to enhance the whole endurance time.

Description

Bluetooth equipment call and audio control method and system with low power consumption
Technical Field
The invention relates to the field of Bluetooth communication and Bluetooth audio, in particular to a low-power consumption Bluetooth equipment communication and audio control method and system.
Background
Along with the rapid development of bluetooth technology, users have more and more functional requirements on bluetooth equipment, in order to facilitate users to answer network calls and listen to audio, the bluetooth alliance has released a new generation of bluetooth audio technology-LE audio, which not only supports cellular mobile communication network calls but also supports various VoIP-based network calls, so as to thoroughly solve the problem that the current bluetooth equipment HFP cannot answer the pain point of the network call, and simultaneously the LE audio has newly increased a broadcast audio technology, thereby solving the problem that the bluetooth equipment cannot synchronously play audio, leading the audio play to have lower bluetooth transmission delay and better tone quality, leading the connection between the equipment to be smooth, reducing the power consumption and further enhancing the whole duration.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a low-power consumption Bluetooth equipment communication and audio control method and system.
The embodiment of the invention provides a low-power consumption Bluetooth equipment call and audio control method, which comprises the following steps:
configuring an upper layer Profile of a general audio architecture based on LE audio according to requirements to obtain a configuration telephone audio application and a configuration media audio application;
managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain a broadcast audio event;
performing key event operation on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is more than or equal to one;
obtaining key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application;
and performing call control and audio playing of the master Bluetooth device and the slave Bluetooth device based on the control connection and the key operation control.
Optionally, the configuration of the upper layer Profile of the generic audio architecture based on LE audio is performed as required to obtain a configured telephony audio application and a configured media audio application, including:
and taking the general Audio architecture of the LE Audio as a middleware, and configuring an upper layer Profile according to requirements according to different modules and characteristics defined by the modules of the middleware to obtain a configuration telephone Audio application and a configuration media Audio application.
Optionally, the module and the defined characteristic of the middleware include:
the audio stream transmission management module defines basic audio stream configuration information, audio stream transmission control and characteristics of broadcast audio;
the device coordination module defines the characteristics of the identifying and positioning device;
the call control module defines the characteristics of the call control roles and the telephone bearer services.
Optionally, managing the processing flow of the broadcast audio stream based on the configuration media audio application, to obtain a broadcast audio event, including:
the Bluetooth host provides configuration information of a broadcast synchronization group for a controller layer, and the controller layer utilizes the configuration information to schedule broadcast isochronous streams to set a broadcast source so as to obtain the set broadcast source;
based on the set broadcast source configuration BASE structure, the bluetooth host uses the BASE structure to send PDU in the broadcast synchronization group by using HCI command, and updates the broadcast synchronization group information;
creating a broadcast audio EVENT using big_sync and create_event methods based on the updated broadcast synchronization group information;
the transmission channel is set using LE Setup ISO Event Path HCI command, and the broadcast audio event and the broadcast audio stream are transmitted to the receiving end through the transmission channel using the BMS.
Optionally, the receiving process of the broadcast audio stream includes:
processing the broadcast audio event data to obtain broadcast isochronous stream anchor points;
based on the broadcasting isochronous stream anchor point, a command method is used for positioning Bluetooth equipment marked by the broadcasting isochronous stream anchor point;
based on the located bluetooth devices, a specific connection is established between the bluetooth devices, and the broadcast audio event is fully aligned with the transmitting device to receive the broadcast audio stream from the transmitting device.
Optionally, the operation of key event is performed on the master bluetooth device and the slave bluetooth device based on the broadcast audio event, so as to form a control connection between the master bluetooth device and the slave bluetooth device, where the number of the slave bluetooth devices is greater than or equal to one, and the method includes:
starting a master Bluetooth device and a slave Bluetooth device, enabling the master Bluetooth device to be in a BT pairing mode state, enabling a broadcast pairing key of the master Bluetooth device to enter a connection broadcast mode, and enabling the master Bluetooth device to start searching the slave Bluetooth device;
the method comprises the steps that a Bluetooth device keeps a found state until a set time, a key driver operates distribution of key events, and a distribution command of the key events is obtained;
and identifying a distribution command of the key event based on the broadcast audio event, positioning the slave Bluetooth device according to the identified distribution command, and transmitting the command into the positioned slave Bluetooth device, so that the master Bluetooth device and the slave Bluetooth device form a connection state.
Optionally, the distribution of key events operated by the key driver includes:
the main Bluetooth device calls an input_manager_init function to initialize and sends data to the input manager, and the input manager receives related data and sends the data and a starting request to a physical layer;
the physical layer receives a start request to start a driver and feeds back a keyvent event processing request to an input manager;
recursively searching a sub view of the current focus by using a view group in the input manager, and transmitting an event to the focus sub view;
based on the acquired focus, keyvent enters into the dispatchKeyEvent () of activity to distribute the event, and key event processing information is sent to the main Bluetooth device by adopting asynchronous sending;
the master bluetooth device transmits a key event distribution command processed in the dispatchKeyEvent ().
Optionally, obtaining key operation control of the master bluetooth device and the slave bluetooth device during network call based on the configuration of the telephone audio application includes:
the call control server actively transmits the call classification identification in the TBS and the change information of the call control operation related characteristic value to the call control client;
the call control client acquires a call state and controls a call based on each characteristic value of TBS in the call control server;
and obtaining key control operation of the master Bluetooth device and the slave Bluetooth device in network call based on the operation control of the call control client to the network call.
Optionally, performing call control and audio playing of the master bluetooth device and the slave bluetooth device based on the control connection and the key operation control, including:
traversing a slave Bluetooth device connected with the master Bluetooth device and entering a key notification enabling service based on control connection formed by key events;
based on the enabled notification, the master Bluetooth device sends notification information to the slave Bluetooth device, the slave Bluetooth device receives the notification information and feeds back pairing information, and the master Bluetooth device receives feedback information of the slave Bluetooth device and triggers key notification;
based on the triggered key notification, the master Bluetooth device and the slave Bluetooth device form a synchronous state;
and based on the formed synchronous state, the master Bluetooth device and the slave Bluetooth device perform call operation and audio synchronous playing.
The invention also provides a low-power consumption Bluetooth equipment communication and audio control system, which comprises:
and (3) a configuration module: configuring an upper layer Profile of a general audio architecture based on LE audio according to requirements to obtain a configuration telephone audio application and a configuration media audio application;
and a management module: managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain a broadcast audio event;
the key module is as follows: performing key event operation on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is more than or equal to one;
and a communication module: obtaining key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application;
and the control module is used for: and performing call control and audio playing of the master Bluetooth device and the slave Bluetooth device based on the control connection and the key operation control.
In the embodiment of the invention, the LE audio protocol is adopted, so that not only can the HFP of the Bluetooth equipment be used for answering the network telephone, but also the synchronous audio playing among the Bluetooth equipment can be realized, the audio playing has lower Bluetooth transmission delay and better tone quality, and the equipment is smoothly connected, so that the power consumption is reduced, and the whole endurance time is enhanced.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a low-power consumption bluetooth device communication and audio control method according to an embodiment of the invention;
fig. 2 is a schematic diagram illustrating the structural components of a low-power consumption bluetooth device communication and audio control system according to an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a low-power consumption bluetooth device communication and audio control method according to an embodiment of the invention.
As shown in fig. 1, a method for controlling communication and audio of a bluetooth device with low energy includes:
s11: configuring an upper layer Profile of a general audio architecture based on LE audio according to requirements to obtain a configuration telephone audio application and a configuration media audio application;
in the implementation process of the invention, the configuration of the upper layer Profile of the general audio architecture based on LE audio is carried out according to the requirement to obtain the configuration telephone audio application and the configuration media audio application, which comprises the following steps: and taking the general Audio architecture of the LE Audio as a middleware, and configuring an upper layer Profile according to requirements according to different modules and characteristics defined by the modules of the middleware to obtain a configuration telephone Audio application and a configuration media Audio application.
Specifically, the modules and defined characteristics of the middleware include: the audio stream transmission management module defines basic audio stream configuration information, audio stream transmission control and characteristics of broadcast audio; the device coordination module defines the characteristics of the identifying and positioning device; the call control module defines the characteristics of the call control roles and the telephone bearer services.
S12: managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain a broadcast audio event;
in the implementation process of the present invention, the managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain the broadcast audio event includes: the Bluetooth host provides configuration information of a broadcast synchronization group for a controller layer, and the controller layer utilizes the configuration information to schedule broadcast isochronous streams to set a broadcast source so as to obtain the set broadcast source; based on the set broadcast source configuration BASE structure, the bluetooth host uses the BASE structure to send PDU in the broadcast synchronization group by using HCI command, and updates the broadcast synchronization group information; creating a broadcast audio EVENT using big_sync and create_event methods based on the updated broadcast synchronization group information; the transmission channel is set using LE Setup ISO Event Path HCI command, and the broadcast audio event and the broadcast audio stream are transmitted to the receiving end through the transmission channel using the BMS.
Further, the receiving process of the broadcast audio stream includes: processing the broadcast audio event data to obtain broadcast isochronous stream anchor points; based on the broadcasting isochronous stream anchor point, a command method is used for positioning Bluetooth equipment marked by the broadcasting isochronous stream anchor point; based on the located bluetooth devices, a specific connection is established between the bluetooth devices, and the broadcast audio event is fully aligned with the transmitting device to receive the broadcast audio stream from the transmitting device.
Specifically, bluetooth host provides configuration information of a broadcast synchronization group to a controller layer, and the controller layer utilizes the configuration information to schedule an isochronous stream for broadcasting to set a broadcast source, so as to obtain the set broadcast source; based on the set broadcast source configuration BASE structure, the BASE structure provides detailed configuration information of BIS, bluetooth host sends PDU in the broadcast synchronization group by using HCI command by using the BASE structure, and fills the broadcast synchronization group information by using the HCI command to send PDU and allows the update of the broadcast synchronization group information; after the updated broadcast synchronization group information is obtained, using BIG_Sync and CREATE_EVENT methods, wherein BIG_Sync is a method for calling the updated broadcast synchronization group information to process, and then using the CREATE_EVENT method to CREATE a broadcast audio EVENT; using LE Setup ISO Event Path HCI command to set a transmission channel, using BMS to transmit broadcast audio event and broadcast audio stream to a receiving end through the transmission channel; for the receiving process of the broadcast audio stream, firstly, the broadcast audio event data is processed to obtain a broadcast isochronous stream anchor point, and the broadcast isochronous stream anchor point can rapidly mark the Bluetooth equipment and provide assistance for positioning the Bluetooth equipment; based on the broadcasting isochronous stream anchor, a command method is used for positioning Bluetooth equipment marked by the broadcasting isochronous stream anchor, the command method supports positioning of the Bluetooth equipment, and the command method can ensure that the equipment marked by the anchor is positioned correctly; based on the located bluetooth devices, a specific connection is established between the bluetooth devices, and the broadcast audio event is fully aligned with the transmitting end device, so that the broadcast audio stream from the transmitting end device can be completely received.
S13: performing key event operation on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is more than or equal to one;
in the implementation process of the invention, the operation of key event is performed on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is greater than or equal to one, and the method comprises the following steps: starting a master Bluetooth device and a slave Bluetooth device, enabling the master Bluetooth device to be in a BT pairing mode state, enabling a broadcast pairing key of the master Bluetooth device to enter a connection broadcast mode, and enabling the master Bluetooth device to start searching the slave Bluetooth device; the method comprises the steps that a Bluetooth device keeps a found state until a set time, a key driver operates distribution of key events, and a distribution command of the key events is obtained; and identifying a distribution command of the key event based on the broadcast audio event, positioning the slave Bluetooth device according to the identified distribution command, and transmitting the command into the positioned slave Bluetooth device, so that the master Bluetooth device and the slave Bluetooth device form a connection state.
Specifically, starting a master Bluetooth device and a slave Bluetooth device, wherein the number of the slave Bluetooth devices is greater than or equal to one, so that the master Bluetooth device is in a BT pairing mode state, a broadcasting pairing key of the master Bluetooth device is put into a connection broadcasting mode, and after the broadcasting mode is put into the connection broadcasting mode, the master Bluetooth device starts searching the slave Bluetooth device; the method comprises the steps that a bluetooth device keeps a found state to a specified time, wherein the specified time can be set to be 3 minutes, the influence of overlong time on power consumption is avoided, and then a key event distribution command is obtained by operating key event distribution through a key driver; the distribution command of the key event is identified based on the broadcast audio event, the slave Bluetooth equipment is positioned according to the identified distribution command, and when the slave Bluetooth equipment is more than one slave Bluetooth equipment, each slave Bluetooth equipment can be positioned based on the identified distribution command, so that the correct positioning is ensured, and the master Bluetooth equipment and the slave Bluetooth equipment form a connection state.
Specifically, the distribution of key events operated by the key driver includes: the main Bluetooth device calls an input_manager_init function to initialize and sends data to the input manager, and the input manager receives related data and sends the data and a starting request to a physical layer; the physical layer receives a start request to start a driver and feeds back a keyvent event processing request to an input manager; recursively searching a sub view of the current focus by using a view group in the input manager, and transmitting an event to the focus sub view; based on the acquired focus, keyvent enters into the dispatchKeyEvent () of activity to distribute the event, and key event processing information is sent to the main Bluetooth device by adopting asynchronous sending; the master bluetooth device transmits a key event distribution command processed in the dispatchKeyEvent ().
S14: obtaining key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application;
in the implementation process of the invention, the key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application comprises the following steps: the call control server actively transmits the call classification identification in the TBS and the change information of the call control operation related characteristic value to the call control client; the call control client acquires a call state and controls a call based on each characteristic value of TBS in the call control server; and obtaining key control operation of the master Bluetooth device and the slave Bluetooth device in network call based on the operation control of the call control client to the network call.
Specifically, the call control roles include a call control client and a call control server, and the call control server actively transmits the call classification identification in the TBS and the change information of the call control operation related characteristic value to the call control client, wherein the call classification identification related characteristic value includes call URI and call service provider ID, and the call control operation related characteristic value includes a call index, a specific call resource identifier, a call control point and a call control point operation code; the call control client obtains call states, such as ringing or in a call, based on the characteristic values in the TBS, and can control different types of network calls; based on the operation control of the call control client to the network call, different operation codes can be written into the call control point to obtain the key control operation of the master Bluetooth device and the slave Bluetooth device in the network call.
S15: performing call control and audio playing of the master Bluetooth device and the slave Bluetooth device based on the control connection and the key operation control;
in the implementation process of the present invention, the call control and audio playing of the master bluetooth device and the slave bluetooth device based on the control connection and the key operation control include: traversing a slave Bluetooth device connected with the master Bluetooth device and entering a key notification enabling service based on control connection formed by key events; based on the enabled notification, the master Bluetooth device sends notification information to the slave Bluetooth device, the slave Bluetooth device receives the notification information and feeds back pairing information, and the master Bluetooth device receives feedback information of the slave Bluetooth device and triggers key notification; based on the triggered key notification, the master Bluetooth device and the slave Bluetooth device form a synchronous state; and based on the formed synchronous state, the master Bluetooth device and the slave Bluetooth device perform call operation and audio synchronous playing.
Specifically, traversing a slave Bluetooth device connected with the master Bluetooth device and entering a key notification enabling service based on control connection formed by key events; after the notification is enabled, the master Bluetooth device sends notification information to the slave Bluetooth device, the slave Bluetooth device is notified to prepare for working, the slave Bluetooth device receives the notification information and feeds back corresponding information, and key notification is triggered; based on the triggered key notification, the master Bluetooth device and the slave Bluetooth device form a synchronous state; after the synchronous state is formed, the master Bluetooth device and the slave Bluetooth device can synchronously play audio, and a user can select the master Bluetooth device or the Bluetooth device to answer, initiate, end, maintain and retrieve the call.
In the embodiment of the invention, by implementing the method, not only can the HFP of the Bluetooth equipment be used for answering the network telephone, but also the Bluetooth equipment can synchronously play the audio, so that the audio playing has lower Bluetooth transmission delay and better tone quality, and the equipment is smoothly connected, and the power consumption is reduced, thereby enhancing the whole endurance time.
Example two
Referring to fig. 2, fig. 2 is a schematic diagram illustrating the structural components of a low-power bluetooth device communication and audio control system according to an embodiment of the invention.
As shown in fig. 2, a low-power consumption bluetooth device call and audio control system, the system includes:
configuration module 21: configuring an upper layer Profile of a general audio architecture based on LE audio according to requirements to obtain a configuration telephone audio application and a configuration media audio application;
in the implementation process of the invention, the configuration of the upper layer Profile of the general audio architecture based on LE audio is carried out according to the requirement to obtain the configuration telephone audio application and the configuration media audio application, which comprises the following steps: and taking the general Audio architecture of the LE Audio as a middleware, and configuring an upper layer Profile according to requirements according to different modules and characteristics defined by the modules of the middleware to obtain a configuration telephone Audio application and a configuration media Audio application.
Specifically, the modules and defined characteristics of the middleware include: the audio stream transmission management module defines basic audio stream configuration information, audio stream transmission control and characteristics of broadcast audio; the device coordination module defines the characteristics of the identifying and positioning device; the call control module defines the characteristics of the call control roles and the telephone bearer services.
Management module 22: managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain a broadcast audio event;
in the implementation process of the present invention, the managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain the broadcast audio event includes: the Bluetooth host provides configuration information of a broadcast synchronization group for a controller layer, and the controller layer utilizes the configuration information to schedule broadcast isochronous streams to set a broadcast source so as to obtain the set broadcast source; based on the set broadcast source configuration BASE structure, the bluetooth host uses the BASE structure to send PDU in the broadcast synchronization group by using HCI command, and updates the broadcast synchronization group information; creating a broadcast audio EVENT using big_sync and create_event methods based on the updated broadcast synchronization group information; the transmission channel is set using LE Setup ISO Event Path HCI command, and the broadcast audio event and the broadcast audio stream are transmitted to the receiving end through the transmission channel using the BMS.
Further, the receiving process of the broadcast audio stream includes: processing the broadcast audio event data to obtain broadcast isochronous stream anchor points; based on the broadcasting isochronous stream anchor point, a command method is used for positioning Bluetooth equipment marked by the broadcasting isochronous stream anchor point; based on the located bluetooth devices, a specific connection is established between the bluetooth devices, and the broadcast audio event is fully aligned with the transmitting device to receive the broadcast audio stream from the transmitting device.
Specifically, bluetooth host provides configuration information of a broadcast synchronization group to a controller layer, and the controller layer utilizes the configuration information to schedule an isochronous stream for broadcasting to set a broadcast source, so as to obtain the set broadcast source; based on the set broadcast source configuration BASE structure, the BASE structure provides detailed configuration information of BIS, bluetooth host sends PDU in the broadcast synchronization group by using HCI command by using the BASE structure, and fills the broadcast synchronization group information by using the HCI command to send PDU, and allows the broadcast synchronization group information to be updated, and updated broadcast synchronization group information is obtained; after the updated broadcast synchronization group information is obtained, using BIG_Sync and CREATE_EVENT methods, wherein BIG_Sync is a method for calling the updated broadcast synchronization group information to process, and then using the CREATE_EVENT method to CREATE a broadcast audio EVENT; using LE Setup ISO Event Path HCI command to set a transmission channel, using BMS to transmit broadcast audio event and broadcast audio stream to a receiving end through the transmission channel; for the receiving process of the broadcast audio stream, firstly, the broadcast audio event data is processed to obtain a broadcast isochronous stream anchor point, and the broadcast isochronous stream anchor point can rapidly mark the Bluetooth equipment and provide assistance for positioning the Bluetooth equipment; based on the broadcasting isochronous stream anchor, a command method is used for positioning Bluetooth equipment marked by the broadcasting isochronous stream anchor, the command method supports positioning of the Bluetooth equipment, and the command method can ensure that the equipment marked by the anchor is positioned correctly; based on the located bluetooth devices, a specific connection is established between the bluetooth devices, and the broadcast audio event is fully aligned with the transmitting end device, so that the broadcast audio stream from the transmitting end device can be completely received.
Key module 23: performing key event operation on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is more than or equal to one;
in the implementation process of the invention, the operation of key event is performed on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is greater than or equal to one, and the method comprises the following steps: starting a master Bluetooth device and a slave Bluetooth device, enabling the master Bluetooth device to be in a BT pairing mode state, enabling a broadcast pairing key of the master Bluetooth device to enter a connection broadcast mode, and enabling the master Bluetooth device to start searching the slave Bluetooth device; the method comprises the steps that a Bluetooth device keeps a found state until a set time, a key driver operates distribution of key events, and a distribution command of the key events is obtained; and identifying a distribution command of the key event based on the broadcast audio event, positioning the slave Bluetooth device according to the identified distribution command, and transmitting the command into the positioned slave Bluetooth device, so that the master Bluetooth device and the slave Bluetooth device form a connection state.
Specifically, starting a master Bluetooth device and a slave Bluetooth device, wherein the number of the slave Bluetooth devices is greater than or equal to one, so that the master Bluetooth device is in a BT pairing mode state, a broadcasting pairing key of the master Bluetooth device is put into a connection broadcasting mode, and after the broadcasting mode is put into the connection broadcasting mode, the master Bluetooth device starts searching the slave Bluetooth device; the method comprises the steps that a bluetooth device keeps a found state to a specified time, wherein the specified time can be set to be 3 minutes, the influence of overlong time on power consumption is avoided, and then a key event distribution command is obtained by operating key event distribution through a key driver; the distribution command of the key event is identified based on the broadcast audio event, the slave Bluetooth equipment is positioned according to the identified distribution command, and when the slave Bluetooth equipment is more than one slave Bluetooth equipment, each slave Bluetooth equipment can be positioned based on the identified distribution command, so that the correct positioning is ensured, and the master Bluetooth equipment and the slave Bluetooth equipment form a connection state.
Specifically, the distribution of key events operated by the key driver includes: the main Bluetooth device calls an input_manager_init function to initialize and sends data to the input manager, and the input manager receives related data and sends the data and a starting request to a physical layer; the physical layer receives a start request to start a driver and feeds back a keyvent event processing request to an input manager; recursively searching a sub view of the current focus by using a view group in the input manager, and transmitting an event to the focus sub view; based on the acquired focus, keyvent enters into the dispatchKeyEvent () of activity to distribute the event, and key event processing information is sent to the main Bluetooth device by adopting asynchronous sending; the master bluetooth device transmits a key event distribution command processed in the dispatchKeyEvent ().
Talk module 24: obtaining key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application;
in the implementation process of the invention, the key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application comprises the following steps: the call control server actively transmits the call classification identification in the TBS and the change information of the call control operation related characteristic value to the call control client; the call control client acquires a call state and controls a call based on each characteristic value of TBS in the call control server; and obtaining key control operation of the master Bluetooth device and the slave Bluetooth device in network call based on the operation control of the call control client to the network call.
Specifically, the call control roles include a call control client and a call control server, and the call control server actively transmits the call classification identification in the TBS and the change information of the call control operation related characteristic value to the call control client, wherein the call classification identification related characteristic value includes call URI and call service provider ID, and the call control operation related characteristic value includes a call index, a specific call resource identifier, a call control point and a call control point operation code; the call control client obtains call states, such as ringing or in a call, based on the characteristic values in the TBS, and can control different types of network calls; based on the operation control of the call control client to the network call, different operation codes can be written into the call control point to obtain the key control operation of the master Bluetooth device and the slave Bluetooth device in the network call.
Control module 25: performing call control and audio playing of the master Bluetooth device and the slave Bluetooth device based on the control connection and the key operation control;
in the implementation process of the present invention, the call control and audio playing of the master bluetooth device and the slave bluetooth device based on the control connection and the key operation control include: traversing a slave Bluetooth device connected with the master Bluetooth device and entering a key notification enabling service based on control connection formed by key events; based on the enabled notification, the master Bluetooth device sends notification information to the slave Bluetooth device, the slave Bluetooth device receives the notification information and feeds back pairing information, and the master Bluetooth device receives feedback information of the slave Bluetooth device and triggers key notification; based on the triggered key notification, the master Bluetooth device and the slave Bluetooth device form a synchronous state; and based on the formed synchronous state, the master Bluetooth device and the slave Bluetooth device perform call operation and audio synchronous playing.
Specifically, traversing a slave Bluetooth device connected with the master Bluetooth device and entering a key notification enabling service based on control connection formed by key events; after the notification is enabled, the master Bluetooth device sends notification information to the slave Bluetooth device, the slave Bluetooth device is notified to prepare for working, the slave Bluetooth device receives the notification information and feeds back corresponding information, and key notification is triggered; based on the triggered key notification, the master Bluetooth device and the slave Bluetooth device form a synchronous state; after the synchronous state is formed, the master Bluetooth device and the slave Bluetooth device can synchronously play audio, and a user can select the master Bluetooth device or the Bluetooth device to answer, initiate, end, maintain and retrieve the call.
In the embodiment of the invention, by implementing the method, not only can the HFP of the Bluetooth equipment be used for answering the network telephone, but also the Bluetooth equipment can synchronously play the audio, so that the audio playing has lower Bluetooth transmission delay and better tone quality, and the equipment is smoothly connected, and the power consumption is reduced, thereby enhancing the endurance time.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
In addition, the foregoing has outlined rather broadly the more detailed description of embodiments of the invention in order that the detailed description of the principles and embodiments of the invention may be implemented in conjunction with the present examples, the above examples being provided to facilitate the understanding of the method and core concepts of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A low-power consumption Bluetooth equipment communication and audio control method is characterized by comprising the following steps:
configuring an upper layer Profile of a general audio architecture based on LE audio according to requirements to obtain a configuration telephone audio application and a configuration media audio application;
managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain a broadcast audio event;
performing key event operation on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is more than or equal to one;
obtaining key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application;
and performing call control and audio playing of the master Bluetooth device and the slave Bluetooth device based on the control connection and the key operation control.
2. The method for controlling communication and audio of bluetooth device according to claim 1, wherein the configuration of the upper Profile of the generic audio architecture based on LE audio according to the requirement, obtaining the configuration telephony audio application and the configuration media audio application, comprises:
and taking the general Audio architecture of the LE Audio as a middleware, and configuring an upper layer Profile according to requirements according to different modules and characteristics defined by the modules of the middleware to obtain a configuration telephone Audio application and a configuration media Audio application.
3. The bluetooth device talk and audio control method of claim 2, wherein the middleware modules and defined features include:
the audio stream transmission management module defines basic audio stream configuration information, audio stream transmission control and characteristics of broadcast audio;
the device coordination module defines the characteristics of the identifying and positioning device;
the call control module defines the characteristics of the call control roles and the telephone bearer services.
4. The bluetooth device communication and audio control method according to claim 1, wherein the managing the processing flow of the broadcast audio stream based on the configuration media audio application, to obtain the broadcast audio event, includes:
the Bluetooth host provides configuration information of a broadcast synchronization group for a controller layer, and the controller layer utilizes the configuration information to schedule broadcast isochronous streams to set a broadcast source so as to obtain the set broadcast source;
based on the set broadcast source configuration BASE structure, the bluetooth host uses the BASE structure to send PDU in the broadcast synchronization group by using HCI command, and updates the broadcast synchronization group information;
creating a broadcast audio EVENT using big_sync and create_event methods based on the updated broadcast synchronization group information;
the transmission channel is set using LE Setup ISO Event Path HCI command, and the broadcast audio event and the broadcast audio stream are transmitted to the receiving end through the transmission channel using the BMS.
5. The bluetooth device talk and audio control method according to claim 4, wherein the receiving process of the broadcast audio stream comprises:
processing the broadcast audio event data to obtain broadcast isochronous stream anchor points;
based on the broadcasting isochronous stream anchor point, a command method is used for positioning Bluetooth equipment marked by the broadcasting isochronous stream anchor point;
based on the located bluetooth devices, a specific connection is established between the bluetooth devices, and the broadcast audio event is fully aligned with the transmitting device to receive the broadcast audio stream from the transmitting device.
6. The method for controlling communication and audio of bluetooth device according to claim 1, wherein the operation of performing a key event on the master bluetooth device and the slave bluetooth device based on the broadcast audio event forms a control connection between the master bluetooth device and the slave bluetooth device, wherein the number of the slave bluetooth devices is greater than or equal to one, and the method comprises:
starting a master Bluetooth device and a slave Bluetooth device, enabling the master Bluetooth device to be in a BT pairing mode state, enabling a broadcast pairing key of the master Bluetooth device to enter a connection broadcast mode, and enabling the master Bluetooth device to start searching the slave Bluetooth device;
the method comprises the steps that a Bluetooth device keeps a found state until a set time, a key driver operates distribution of key events, and a distribution command of the key events is obtained;
and identifying a distribution command of the key event based on the broadcast audio event, positioning the slave Bluetooth device according to the identified distribution command, and transmitting the command into the positioned slave Bluetooth device, so that the master Bluetooth device and the slave Bluetooth device form a connection state.
7. The bluetooth device talk and audio control method according to claim 6, wherein the key driver operates the distribution of key events, comprising:
the main Bluetooth device calls an input_manager_init function to initialize and sends data to the input manager, and the input manager receives related data and sends the data and a starting request to a physical layer;
the physical layer receives a start request to start a driver and feeds back a keyvent event processing request to an input manager;
recursively searching a sub view of the current focus by using a view group in the input manager, and transmitting an event to the focus sub view;
based on the acquired focus, keyvent enters into the dispatchKeyEvent () of activity to distribute the event, and key event processing information is sent to the main Bluetooth device by adopting asynchronous sending;
the master bluetooth device transmits a key event distribution command processed in the dispatchKeyEvent ().
8. The bluetooth device communication and audio control method according to claim 1, wherein the obtaining key operation control of the master bluetooth device and the slave bluetooth device at the time of the network communication based on the configuration telephone audio application comprises:
the call control server actively transmits the call classification identification in the TBS and the change information of the call control operation related characteristic value to the call control client;
the call control client acquires a call state and controls a call based on each characteristic value of TBS in the call control server;
and obtaining key control operation of the master Bluetooth device and the slave Bluetooth device in network call based on the operation control of the call control client to the network call.
9. The method according to claim 1, wherein the performing call control and audio playback of the master bluetooth device and the slave bluetooth device based on the control connection and the key operation control comprises:
traversing a slave Bluetooth device connected with the master Bluetooth device and entering a key notification enabling service based on control connection formed by key events;
based on the enabled notification, the master Bluetooth device sends notification information to the slave Bluetooth device, the slave Bluetooth device receives the notification information and feeds back pairing information, and the master Bluetooth device receives feedback information of the slave Bluetooth device and triggers key notification;
based on the triggered key notification, the master Bluetooth device and the slave Bluetooth device form a synchronous state;
and based on the formed synchronous state, the master Bluetooth device and the slave Bluetooth device perform call operation and audio synchronous playing.
10. A bluetooth device talk and audio control system with low power consumption, the system comprising:
and (3) a configuration module: configuring an upper layer Profile of a general audio architecture based on LE audio according to requirements to obtain a configuration telephone audio application and a configuration media audio application;
and a management module: managing the processing flow of the broadcast audio stream based on the configuration media audio application to obtain a broadcast audio event;
the key module is as follows: performing key event operation on the master Bluetooth device and the slave Bluetooth device based on the broadcast audio event to form control connection between the master Bluetooth device and the slave Bluetooth device, wherein the number of the slave Bluetooth devices is more than or equal to one;
and a communication module: obtaining key operation control of the master Bluetooth device and the slave Bluetooth device during network communication based on the configuration telephone audio application;
and the control module is used for: and performing call control and audio playing of the master Bluetooth device and the slave Bluetooth device based on the control connection and the key operation control.
CN202310782058.5A 2023-06-28 2023-06-28 Bluetooth equipment call and audio control method and system with low power consumption Pending CN116828431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310782058.5A CN116828431A (en) 2023-06-28 2023-06-28 Bluetooth equipment call and audio control method and system with low power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310782058.5A CN116828431A (en) 2023-06-28 2023-06-28 Bluetooth equipment call and audio control method and system with low power consumption

Publications (1)

Publication Number Publication Date
CN116828431A true CN116828431A (en) 2023-09-29

Family

ID=88116295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310782058.5A Pending CN116828431A (en) 2023-06-28 2023-06-28 Bluetooth equipment call and audio control method and system with low power consumption

Country Status (1)

Country Link
CN (1) CN116828431A (en)

Similar Documents

Publication Publication Date Title
CN100502567C (en) Method and apparatus to initiate point-to-point call during shared-channel delivery of broadcast content in a wireless telephone network
JP5074472B2 (en) Method and apparatus for initiating shared transmission or individual transmission of broadcast content in a wireless telephone network
CN110012366B (en) Wide-narrow band converged communication system and method used under public and private network IP interconnection
CN1993931B (en) System and method for changing duration of talk burst control timer
RU2480946C2 (en) Setting up full-duplex communication session and transitioning between half-duplex and full-duplex modes during communication session in wireless communication system
KR100978182B1 (en) System and method for multiple simultaneous group communications in a wireless system
CN100358377C (en) Push to talk (PTT) service method
CN102685689B (en) Pt service method
CN1689327A (en) Media communications method and apparatus
CN101616364A (en) A kind of group-calling service implementation method
KR20070040850A (en) System and method for optimizing audio and video data transmission in a wireless system
CN1735235A (en) PoC service method in the PoC portable terminal
CN1762111A (en) Be used for carrying out the method and system that short calling is set up at wireless communication system
CN101217533B (en) A synchronous big head portrait method and cluster server and terminal for the method
CN102196367B (en) PPT service processing method, and device and system thereof
CN100477862C (en) Method and system for determining centrally controlled server
CN1852322B (en) Information synchronizing method and system and terminal device
WO2010145169A1 (en) Method and equipment for transmitting multicast control channel information
CN108353145A (en) Video answers record communication means and terminal
CN105704684A (en) Customized ringing tone implementation method, device, server and system
CN102300159B (en) The processing method of multimedia broadcast multicast service, system and subscriber equipment
CN102067594B (en) Method for determining active communication sessions and communication session information server
CN116828431A (en) Bluetooth equipment call and audio control method and system with low power consumption
CN110351570B (en) Video live broadcast method and system under 5G network
CN110602430B (en) Video synchronization method, terminal, color ring platform, system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination