Audio communication method and system, electronic equipment and storage medium
By configuring a communication sub-cycle for each terminal device and dynamically allocating bandwidth, the problem of poor link stability in multi-mode coexistence scenarios is solved, multi-mode coexistence and link stability are balanced, and the timeliness and low-latency performance of control information transmission are improved.
Patent Information
- Application Number
- CN202510896790.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-10-03
AI Technical Summary
In wireless audio scenarios with multi-mode coexistence, existing technologies cannot simultaneously take into account multi-mode coexistence and link stability, resulting in insufficient bandwidth and poor link stability.
By configuring a communication sub-cycle for each terminal device and dynamically allocating bandwidth when the preset bandwidth occupancy condition is reached, audio communication is performed using the communication sub-cycles of other terminal devices, ensuring that the audio communications between each terminal device and the audio device do not interfere with each other.
Under the premise of ensuring multi-mode coexistence, the stability of the communication link and the timeliness of the transmission of control information are significantly improved, meeting the low latency requirements in multi-connection scenarios.
Smart Images

Figure CN120751494A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to an audio communication method, system, electronic device, and storage medium. Background Art
[0002] In practical wireless audio applications, different wireless protocols have different characteristics and can present device compatibility issues. Multimode coexistence is an integrated solution that effectively combines the advantages of multiple wireless protocols and has a wide range of applications in the wireless audio field.
[0003] Multi-mode coexistence means that terminal devices that support multiple protocols can connect to devices that support different protocols. Figure 1 In this example, a wireless headset multi-mode coexistence solution is used. The headset can communicate with a mobile phone through Connection 1 (Connect 1), and can also communicate with a device that does not support Connection 1 but supports Connection 2 (such as a computer) through Connection 2 (Connect 2).
[0004] However, in scenarios where Connection 1 (Connect 1) and Connection 2 (Connect 2) coexist, poor link stability is common due to insufficient bandwidth. To improve link stability, existing solutions mostly disconnect one connection to support the other. For example, if Connection 2 is transmitting audio, Connection 1 is disconnected; if Connection 1 is transmitting audio, Connection 2 is disconnected. In other words, the two audio modes cannot coexist at the same time, making it impossible to simultaneously take into account both multi-mode coexistence and link stability. Summary of the Invention
[0005] The embodiments of the present disclosure at least provide an audio communication method, system, electronic device, and storage medium, which significantly improve the stability of the communication link while ensuring multi-mode coexistence.
[0006] In a first aspect, an embodiment of the present disclosure provides an audio communication method, which is applied to an audio device in an audio communication system, wherein the audio device is connected to multiple terminal devices, and different terminal devices use different communication protocols to perform audio communication with the audio device. The method includes:
[0007] A communication sub-cycle is configured for each terminal device connected to the audio device, and the sum of the communication sub-cycles configured for each terminal device is less than a preset communication cycle of the audio communication system;
[0008] In response to any terminal device reaching a preset bandwidth occupation condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication is performed between the audio device and any of the terminal devices by occupying communication sub-periods corresponding to the other terminal devices.
[0009] In a possible implementation, determining whether any terminal device meets the preset bandwidth occupancy condition is performed according to the following steps:
[0010] In the corresponding communication sub-cycle, the number of times the audio packet is retransmitted between the audio device and the terminal device reaches a preset number;
[0011] In the corresponding communication sub-period, the first control information that the audio device needs to send to the terminal device has not been sent;
[0012] In the corresponding communication sub-period, the audio device has not received the second control information of the terminal device that needs to be received.
[0013] In a possible implementation, the multiple terminal devices include a first terminal device and a second terminal device; and the method includes:
[0014] A first communication sub-cycle is configured for the first terminal device, and a second communication sub-cycle is configured for the second terminal device; audio communication is performed between the audio device and the first terminal device during the first communication sub-cycle, and audio communication is performed between the audio device and the second terminal device during the second communication sub-cycle;
[0015] Determining whether the first terminal device meets a preset bandwidth occupancy condition;
[0016] If the first terminal device meets the preset bandwidth occupation condition, audio communication is performed between the audio device and the first terminal device by occupying the second communication sub-period corresponding to the second terminal device.
[0017] In one possible implementation, the method further includes:
[0018] When it is determined that the first terminal device has completed the transmission of the audio packet within the first communication sub-cycle and still has control information to be sent and received, it is determined that the preset bandwidth occupancy condition is met, and the control information is sent and received by occupying the second communication sub-cycle corresponding to the second terminal device.
[0019] In a possible implementation manner, the duration of the first communication sub-cycle is greater than the duration of the second communication sub-cycle.
[0020] In a possible implementation manner, the first communication sub-cycle includes a plurality of first communication time slots, and the second communication sub-cycle includes a plurality of second communication time slots;
[0021] The number of the first communication time slots is greater than the number of the second communication time slots, and the duration of the first communication time slots is equal to the duration of the second communication time slots.
[0022] In a second aspect, the present disclosure further provides an audio communication method, which is applied to any terminal device among multiple terminal devices in an audio communication system, wherein the multiple terminal devices are all connected to an audio device, and different terminal devices use different communication protocols to perform audio communication with the audio device, the method comprising:
[0023] A communication sub-cycle is configured for any of the terminal devices, and the sum of the communication sub-cycle configured for any of the terminal devices and the communication sub-cycles configured for other terminal devices is less than a preset communication cycle of the audio communication system;
[0024] In response to any of the terminal devices reaching a preset bandwidth occupation condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication is performed between any of the terminal devices and the audio device by occupying communication sub-periods corresponding to the other terminal devices.
[0025] In a third aspect, the present disclosure further provides an audio communication system, comprising an audio device and a plurality of terminal devices correspondingly connected to the audio device, wherein different terminal devices use different communication protocols to perform audio communication with the audio device;
[0026] The audio device is configured to configure a communication sub-cycle for each terminal device connected to the audio device, wherein the sum of the communication sub-cycles configured for each terminal device is less than a preset communication cycle of the audio communication system;
[0027] Any of the terminal devices is used to determine other terminal devices that need to occupy the bandwidth in response to reaching a preset bandwidth occupancy condition, and to perform audio communication between the audio device and any of the terminal devices by occupying the communication sub-period corresponding to the other terminal devices.
[0028] In a fourth aspect, the present disclosure also provides an electronic device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, an audio communication method as described in the first aspect and its various embodiments, and any one of the second aspect is performed.
[0029] In a fifth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the audio communication method as described in the first aspect and its various embodiments, and any one of the second aspect is executed.
[0030] The above-mentioned audio communication method, system, electronic device and storage medium are adopted, which configure a communication sub-cycle for each terminal device connected to the audio device, and the sum of the communication sub-cycles configured for each terminal device is less than the preset communication cycle of the audio communication system; then, in response to any terminal device reaching the preset bandwidth occupancy condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication between the audio device and any terminal device is carried out by occupying the communication sub-cycles corresponding to the other terminal devices. In other words, the present disclosure sets different communication sub-cycles for terminal devices under different communication protocols to ensure that the audio communications between each terminal device and the audio device will not interfere with each other. At the same time, when it is determined that the preset bandwidth occupancy condition is reached, the transmission needs of specific terminal devices can also be met through the dynamic bandwidth allocation mechanism, thereby taking into account the multi-mode coexistence and the stability of the communication link, and meeting the low latency requirements in multi-connection scenarios.
[0031] Other advantages of the present disclosure will be explained in more detail with reference to the following description and accompanying drawings.
[0032] It should be understood that the above description is only an overview of the technical solution of the present disclosure, so that the technical means of the present disclosure can be generally understood and then implemented in accordance with the contents of the description. In order to make the above and other purposes, features and advantages of the present disclosure more clearly understood, the following examples are used to illustrate specific embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of this specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope of protection. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work. Moreover, the same reference numerals are used to represent the same components throughout the drawings. In the drawings:
[0034] Figure 1 A schematic diagram of a scenario of a multi-mode coexistence solution for wireless headsets is shown;
[0035] Figure 2 Another schematic diagram of a multi-mode coexistence scenario for wireless headsets is shown;
[0036] Figure 3 shows an architecture diagram of an audio communication system provided by an embodiment of the present disclosure;
[0037] Figure 4 A timing diagram showing the coexistence of dual connections in the audio communication system provided by an embodiment of the present disclosure is shown;
[0038] Figure 5 Another timing diagram showing the coexistence of dual connections in the audio communication system provided by an embodiment of the present disclosure is shown;
[0039] FIG6( a ) shows a bandwidth diagram captured by a logic analyzer in the audio communication system provided by an embodiment of the present disclosure under dual-connection coexistence;
[0040] FIG6( b ) shows another bandwidth diagram captured by a logic analyzer in the audio communication system provided by an embodiment of the present disclosure under dual-connection coexistence;
[0041] Figure 7 A flowchart of an audio communication method provided by an embodiment of the present disclosure is shown;
[0042] Figure 8 A flowchart of another audio communication method provided by an embodiment of the present disclosure is shown;
[0043] Figure 9 A schematic diagram of an audio communication device provided by an embodiment of the present disclosure is shown;
[0044] Figure 10 A schematic diagram showing another audio communication device provided by an embodiment of the present disclosure is shown;
[0045] Figure 11 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0046] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0047] In the description of the embodiments of the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the presence of the disclosed features, numbers, steps, actions, components, parts, or combinations thereof in the specification, and do not exclude the possibility of the presence of one or more other features, numbers, steps, actions, components, parts, or combinations thereof.
[0048] Unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. “And / or” in this article is only a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0049] The terms "first," "second," etc., are used solely to distinguish identical or similar technical features for ease of description and should not be construed as indicating or implying the relative importance or quantity of these technical features. Thus, a feature defined by "first," "second," etc., may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, the term "plurality" means two or more than two.
[0050] The research found that Figure 1 The coexistence scenario shown for Connection 1 (Connect 1) and Connection 2 (Connect 2) generally suffers from poor link stability due to insufficient bandwidth. This phenomenon is particularly severe in scenarios where audio from Connection 1 and music / audio from Connection 2 coexist. Therefore, current coexistence solutions are mostly implemented through scenario management.
[0051] like Figure 2 As shown, when connection 2 is in the audio transmission scenario, connection 1 is disconnected; when connection 1 is in the audio transmission scenario, connection 2 is disconnected; that is, the two audio modes cannot coexist at the same time.
[0052] In order to solve the problems existing in the above-mentioned multi-mode coexistence, the relevant technology also proposes a solution in which during the process of audio communication through one connection, another connection is kept in a maintained state. Although coexistence is achieved, the link stability cannot be guaranteed, and there will be probabilistic disconnection, audio playback jamming and other problems. In addition, the coexistence here still cannot actually complete audio communication under two connections.
[0053] In order to at least partially solve one or more of the above problems and other potential problems, the present disclosure at least provides an audio communication solution that significantly improves the stability of the communication link while ensuring multi-mode coexistence.
[0054] To facilitate understanding of the audio communication solution provided by the embodiments of the present disclosure, the audio communication system is briefly introduced below.
[0055] like Figure 3 FIG. 1 is an architecture diagram of an audio communication system provided by an embodiment of the present disclosure. The system includes an audio device 11 and multiple terminal devices 22 correspondingly connected to the audio device 11. Different terminal devices 22 use different communication protocols to perform audio communication with the audio device 11.
[0056] The audio device 11 is configured to configure a communication sub-cycle for each terminal device 22 connected to the audio device 11, wherein the sum of the communication sub-cycles configured for each terminal device 22 is less than a preset communication cycle of the audio communication system;
[0057] Any terminal device 22 is used to determine other terminal devices 22 that need to occupy the bandwidth in response to reaching the preset bandwidth occupation condition, and perform audio communication between the audio device 11 and any terminal device 22 by occupying the communication sub-period corresponding to the other terminal device 22.
[0058] In order to facilitate understanding of the audio communication system provided by the embodiment of the present disclosure, the application scenario of the system is first described in detail. The audio communication system here can be mainly applied to multi-mode coexistence scenarios. Multi-mode coexistence here refers to having multiple terminal devices 22 that support multiple communication protocols, which can be connected to devices that support different protocols respectively. For example, an audio device 11 that supports different communication protocols can be connected to multiple different terminal devices 22. In actual applications, each mode can correspond to a connection, such as Figure 1 In the example application scenario, dual connection coexistence is adopted, and other multi-connection coexistence is also possible, and no specific limitation is made here.
[0059] Considering that the related technologies cannot well take into account the multi-mode coexistence and the stability of the communication link, a solution for audio communication through a dynamic bandwidth allocation mechanism is provided here. Figure 1 Taking the example scenario as an example, if connection 1 is in a call scenario and occupies more bandwidth, the other connection 2 can occupy the remaining bandwidth, thereby ensuring multi-mode coexistence. At the same time, in some special circumstances, such as connection 1 in a call, control information transmission is also required. In order to ensure the stability and timeliness of control information transmission, the embodiment of the present disclosure can utilize the characteristic of connection 2 giving up specific bandwidth within a certain interval, and allocate this part of specific bandwidth as dynamic bandwidth to connection 1 for use. This solution not only ensures the reliability of multi-connection coexistence, but also greatly improves the stability and timeliness of connection 1 control information transmission.
[0060] Each terminal device 22 connected to the audio device 11 here is configured with a corresponding communication sub-cycle, and the sum of the communication sub-cycles configured for each terminal device 22 is less than the preset communication cycle of the audio communication system. In this way, once some terminal devices 22 reach the preset bandwidth occupancy condition, other terminal devices 22 that need to occupy the bandwidth can be determined, and audio communication between the audio device 11 and any terminal device 22 can be carried out by occupying the communication sub-cycles corresponding to other terminal devices 22.
[0061] The audio device 11 here can be, for example, a wireless headset, an in-ear wireless headset, or other Bluetooth headsets, etc. The terminal device 22 here can be, for example, a mobile phone, a computer, an IPAD, etc., and no specific restrictions are made here.
[0062] Still taking Figure 1 the example application scenario as an example, the headset is used as the audio device 11, and the mobile phone and the computer are used as the two terminal devices 22 respectively. Thus, there are two connections simultaneously, Connect 1 and Connect 2. Connect1 corresponds to the connection between the headset and the mobile phone, and Connect2 corresponds to the connection between the headset and the computer.
[0063] Combined with Figure 4 the example communication timing diagram, it can be known that Connect 1 should not only ensure that audio packets are periodically transmitted at an interval of INTVL0 (corresponding to the preset communication cycle of the entire audio communication system), and occupy a duration of at most d0 (the communication sub-cycle configured for the mobile phone); but also allow interaction with the peer device for control information, such as the Access Control List (ACL), so as to ensure the stability and timeliness of link control; Connect 2 requires that the link can coexist with Connect 1, and audio packets are interacted at the same interval of INTVL0, and occupy a duration of at most d1 (the communication sub-cycle configured for the computer); where d0 + d1 < INTVL0; in addition, there is a fixed-position bandwidth available in Connect 2, as shown at d1 in the second communication cycle.
[0064] In practical applications, for Connect 1, d0 can be dynamic. In the most extreme scenario, the sum of d0 + d1 is very close to INTVL0, so the bandwidth left for Connect 1 to interact with control information is extremely small, or even non-existent; in this case, problems such as control operation delay and even link disconnection are likely to occur.
[0065] Regarding the timeliness requirement for the transmission of control information of Connect 1, and the characteristic that the fixed-position bandwidth in Connect 2 can be vacated, it is considered to use the vacated bandwidth at the fixed position in Connect 2 as dynamic bandwidth and dynamically allocate it to Connect 1 for use according to actual needs; and Connect 1 has the priority to use it, so as to ensure the timeliness of control information transmission.
[0066] Such as Figure 5As shown in the figure, the bandwidth corresponding to d1 in the second communication cycle is the bandwidth that Connect 2 can give up. In this way, Connect 1 can decide whether to occupy the bandwidth of Connect 2 as needed. The control information of Connect 1 is relatively small in most cases. Therefore, when Connect 1 does not occupy the bandwidth of Connect 2, Connect 2 can use the bandwidth to interact with its own information. Even if Connect 1 needs to send a lot of control information, it can also achieve control information interaction by dynamically occupying the bandwidth of Connect 2.
[0067] In this way, based on the above dynamic bandwidth allocation strategy, not only is the functional integrity of Connect 1 and Connect 2 coexisting scenarios guaranteed, the low latency requirement is met, but the timeliness and stability of control information transmission are also greatly improved.
[0068] In addition, based on the example d0, it can be known that the audio packet between the mobile phone and the headset can support a maximum of 3 retransmissions (each rectangular box in d0 corresponds to 1 audio packet transmission), and based on the example d1, it can be known that the audio packet between the computer and the headset can support a maximum of 2 retransmissions (each rectangular box in d1 corresponds to 1 audio packet transmission). In this way, if the mobile phone side meets the preset bandwidth occupancy conditions (such as the number of retransmissions reaches 3), the audio communication between the mobile phone and the headset can be maintained by occupying the duration of the computer-side communication (d1), such as interactive control information; similarly, if the computer side meets the preset bandwidth occupancy conditions (such as the number of retransmissions reaches 2), the audio communication between the computer and the headset can be maintained by occupying the duration of the mobile phone-side communication (d0), such as interactive control information, etc., thus achieving the timeliness and stability of the entire communication link.
[0069] It should be noted that the above example is a dual-connection coexistence solution. When it is actually applied to other multi-connection coexistence scenarios, different durations can be set for different terminal devices 22 based on actual needs to support multi-connection coexistence audio communications. At the same time, the dynamic bandwidth allocation mechanism can be used to achieve timely transmission of key information (such as control information), ensuring the communication quality of the entire audio communication system.
[0070] In order to further understand the audio communication system provided by the embodiment of the present disclosure, Figure 4 and Figure 5 The corresponding dynamic bandwidth occupancy before and after diagrams are used to implement the audio communication system. FIG6( a ) and FIG6 ( b ) respectively illustrate the bandwidth diagrams captured by the logic analyzer.
[0071] Figure 6(a) shows the normal situation when there is no control information to be sent or received. At this time, connection 2 occupies dynamic bandwidth for sending and receiving its own data. Figure 6(b) shows the situation when control information needs to be exchanged. Connection 1 occupies dynamic bandwidth for sending and receiving control information, ensuring the timeliness and stability of link control.
[0072] To facilitate further understanding of the embodiments of the present disclosure, the audio communication method disclosed in the embodiments of the present disclosure will be introduced in detail below. The executor of the audio communication method provided in the embodiments of the present disclosure is generally an electronic device with certain computing capabilities. The electronic device includes, for example: an audio device or a terminal device or other processing device. Taking into account the actual application scenarios of the embodiments of the present disclosure, the audio device and terminal device here can be set in the above-mentioned audio communication system.
[0073] In some possible implementations, the audio communication method may be implemented by a processor calling computer-readable instructions stored in a memory.
[0074] See also Figure 7 , which shows a flowchart of an audio communication method provided by an embodiment of the present disclosure. The method is applied to an audio device in an audio communication system. The audio device is connected to multiple terminal devices. Different terminal devices and the audio device use different communication protocols for audio communication. The method includes the following steps S101 to S102:
[0075] S101: configuring a communication sub-cycle for each terminal device connected to the audio device, wherein the sum of the communication sub-cycles configured for each terminal device is less than a preset communication cycle of the audio communication system;
[0076] S102: In response to any terminal device reaching a preset bandwidth occupation condition, determining other terminal devices that need to occupy the bandwidth, and performing audio communication between the audio device and any terminal device by occupying communication sub-periods corresponding to the other terminal devices.
[0077] Here, a communication sub-cycle is configured for each terminal device connected to the audio device. For example, one audio device is connected to two terminal devices. These two terminal devices can use different communication protocols to connect to the audio device. In this way, a complete audio communication system is formed. In this system, the terminal device can communicate with the audio device independently, and audio communication can also be achieved between terminal devices through the audio device. No specific restrictions are made here.
[0078] Before actually conducting audio communication, it is first necessary to configure the communication sub-cycle for each terminal device in the entire audio communication system. The specific configuration process of the communication sub-cycle can be found in the relevant content of the audio communication system described in the previous embodiment, which will not be repeated here. In addition, the sum of the communication sub-cycles configured corresponding to each terminal device needs to be less than the preset communication cycle of the audio communication system. The relevant description of each communication sub-cycle and the preset communication cycle of the entire audio communication system can also be found in the aforementioned content, which will not be repeated here.
[0079] In this way, once it is determined that any terminal device meets the preset bandwidth occupancy condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication between the audio device and any terminal device is performed by occupying the communication sub-cycles corresponding to the other terminal devices.
[0080] The following steps may be used to determine whether any terminal device has reached the preset bandwidth occupancy condition:
[0081] During the corresponding communication sub-cycle, the number of times the audio packet is retransmitted between the audio device and the terminal device reaches a preset number; during the corresponding communication sub-cycle, the first control information that the audio device needs to send to the terminal device has not been sent; during the corresponding communication sub-cycle, the audio device has not received the second control information that it needs to receive from the terminal device.
[0082] When actually applied to multi-connection coexistence scenarios, different communication sub-cycles can be set for different terminal devices based on actual needs to support audio communication with multi-connection coexistence. At the same time, the dynamic bandwidth allocation mechanism can be used to achieve timely transmission of key information (such as control information), ensuring the communication quality of the entire audio communication system.
[0083] The following is a specific example of dual-connection coexistence. Here, the multiple terminal devices include a first terminal device and a second terminal device. Specifically, audio communication can be performed through the following steps:
[0084] Step 1: configuring a first communication sub-cycle for the first terminal device and a second communication sub-cycle for the second terminal device; performing audio communication between the audio device and the first terminal device during the first communication sub-cycle, and performing audio communication between the audio device and the second terminal device during the second communication sub-cycle;
[0085] Step 2: Determine whether the first terminal device meets the preset bandwidth occupancy condition;
[0086] Step 3: If the first terminal device meets the preset bandwidth occupation condition, audio communication is performed between the audio device and the first terminal device by occupying the second communication sub-period corresponding to the second terminal device.
[0087] In practical applications, when it is determined that the first terminal device has completed the transmission of audio packets within the first communication sub-cycle and there is still control information to be transmitted and received, it is determined that the preset bandwidth occupancy condition is met, and the control information is transmitted and received by occupying the second communication sub-cycle corresponding to the second terminal device.
[0088] Here, different weights of bandwidth support can be set for different terminal devices. Combining Figure 1 with an example application scenario, the headset is used as an audio device, and the mobile phone and the computer are used as the first terminal device and the second terminal device respectively. For example, more bandwidth is allocated to the mobile phone terminal device, and less bandwidth is allocated to the computer terminal device. In this way, the duration of the first communication sub-cycle configured for the mobile phone can be greater than the duration of the second communication sub-cycle configured for the computer.
[0089] In addition, in order to further support the priority use right of the first terminal device, the first communication sub-cycle can be divided into multiple first communication time slots, and the second communication sub-cycle can be divided into multiple second communication time slots. In this way, when the duration of the first communication time slot is equal to the duration of the second communication time slot, the number of first communication time slots can be set to be greater than the number of second communication time slots, so as to support the transmission of audio packets for the communication of the first terminal device.
[0090] Here, still taking Figure 1 the example application scenario as an example, in this way, there are two connections at the same time, Connection 1 (Connect 1) and Connection 2 (Connect 2). Connect 1 corresponds to the connection between the headset and the mobile phone, and Connect 2 corresponds to the connection between the headset and the computer.
[0091] Combining Figure 4 with the example communication timing diagram, it can be seen that Connect 1 not only needs to ensure that audio packets are periodically transmitted at an interval of INTVL0 (corresponding to the preset communication cycle of the entire audio communication system), and at most occupy a duration of d0 (the first communication sub-cycle configured for the mobile phone); but also allows interaction with the peer device for control information, such as the Access Control List (ACL), so as to ensure the stability and timeliness of link control; Connect 2 requires that the link can coexist with Connect 1, and audio packets are interacted at the same interval of INTVL0, and at most occupy a duration of d1 (the second communication sub-cycle configured for the computer); where d0 + d1 < INTVL0; in addition, there is a fixed position of bandwidth that can be vacated in Connect 2, as shown at d1 in the second communication cycle.
[0092] Based on the example d0, it can be known that each rectangular box in d0 corresponds to a first communication time slot for transmitting one audio packet. In this way, the audio packet between the mobile phone and the headset can support a maximum of 3 retransmissions. Based on the example d1, it can be known that each rectangular box in d1 corresponds to a second communication time slot for transmitting one audio packet. The audio packet between the computer and the headset can support a maximum of 2 retransmissions. In this way, if the mobile phone side meets the preset bandwidth occupancy conditions (such as the number of retransmissions reaches 3), the audio communication between the mobile phone and the headset can be maintained by occupying the duration of the computer-side communication (d1), such as interactive control information; similarly, if the computer side meets the preset bandwidth occupancy conditions (such as the number of retransmissions reaches 2), the audio communication between the computer and the headset can be maintained by occupying the duration of the mobile phone-side communication (d0), such as interactive control information. In this way, the timeliness and stability of the entire communication link are achieved.
[0093] In addition to the number of retransmissions as a criterion for determining the preset bandwidth occupancy condition, for example, the existence of control information to be received or sent may also be used to determine whether the preset bandwidth occupancy condition is met. In addition, other preset bandwidth occupancy conditions may also be used, and no specific restrictions are made here.
[0094] In actual applications, for Connect 1, d0 can be dynamic. In the most extreme scenario, the sum of d0 + d1 is very close to INTVL0, so the bandwidth left for Connect 1 to control information exchange is very small or even non-existent. In this case, control operation delays and even link disconnection are very likely to occur.
[0095] To meet the timeliness requirements for control information transmission of Connect 1 and the fact that the fixed bandwidth of Connect 2 can be waived, the waived bandwidth of Connect 2 can be used as dynamic bandwidth and dynamically allocated to Connect 1 based on actual needs. In addition, Connect 1 has priority use rights to ensure the timeliness of control information transmission.
[0096] like Figure 5 As shown in the figure, the bandwidth corresponding to d1 in the second communication cycle is the bandwidth that Connect 2 can give up. In this way, Connect 1 can decide whether to occupy the bandwidth of Connect 2 as needed. The control information of Connect 1 is relatively small in most cases. Therefore, when Connect 1 does not occupy the bandwidth of Connect 2, Connect 2 can use the bandwidth to interact with its own information. Even if Connect 1 needs to send a lot of control information, it can also achieve control information interaction by dynamically occupying the bandwidth of Connect 2.
[0097] In this way, based on the above dynamic bandwidth allocation strategy, not only is the functional integrity of Connect 1 and Connect 2 coexisting scenarios guaranteed, the low latency requirement is met, but the timeliness and stability of control information transmission are also greatly improved.
[0098] See also Figure 8 , which shows a flowchart of an audio communication method provided by an embodiment of the present disclosure. The method is applied to any terminal device among multiple terminal devices in an audio communication system. The multiple terminal devices are all connected to an audio device. Different terminal devices and audio devices use different communication protocols for audio communication. The method includes the following steps S201 to S202:
[0099] S201: A communication sub-cycle is configured for any terminal device, and the sum of the communication sub-cycle configured for any terminal device and the communication sub-cycles configured for other terminal devices is less than a preset communication cycle of the audio communication system;
[0100] S202: In response to any terminal device reaching a preset bandwidth occupation condition, determining other terminal devices that need to occupy the bandwidth, and performing audio communication between any terminal device and the audio device by occupying communication sub-periods corresponding to the other terminal devices.
[0101] Here, a communication sub-cycle is configured for each terminal device. For example, an audio device is connected to two terminal devices. These two terminal devices can use different communication protocols to connect to the audio device. In this way, a complete audio communication system is formed. In this system, the terminal device can communicate with the audio device independently, and audio communication can also be achieved between terminal devices through the audio device. No specific restrictions are made here.
[0102] Before actually conducting audio communication, it is first necessary to configure the communication sub-cycle for each terminal device in the entire audio communication system. The specific configuration process of the communication sub-cycle can be found in the relevant content of the audio communication system described in the previous embodiment, which will not be repeated here. In addition, the sum of the communication sub-cycles configured corresponding to each terminal device needs to be less than the preset communication cycle of the audio communication system. The relevant description of each communication sub-cycle and the preset communication cycle of the entire audio communication system can also be found in the aforementioned content, which will not be repeated here.
[0103] In this way, once it is determined that any terminal device meets the preset bandwidth occupancy condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication between any terminal device and the audio device is performed by occupying the communication sub-cycles corresponding to the other terminal devices.
[0104] The judgment conditions for the preset bandwidth occupancy conditions can be found in the above description and will not be elaborated here.
[0105] In addition, the audio communication method under the audio communication system formed by two terminal devices can also be found in Figure 4 and Figure 5 The relevant description content will not be repeated here.
[0106] In the description of this specification, the description with reference to the terms "some possible embodiments", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure, and the above terms do not necessarily represent the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.
[0107] About the method flow chart of the present disclosure embodiment, some operations are described as different steps performed in a certain order. Such flow chart is illustrative and not restrictive. Some steps described in this article can be grouped together and performed in a single operation, or some steps can be divided into multiple sub-steps and can be performed in an order different from that shown in this article. The various steps shown in the flow chart can be implemented in any way by any circuit structure and / or tangible mechanism (for example, by software running on a computer device, hardware (for example, the logical function implemented by a processor or chip), etc., and / or any combination thereof).
[0108] Those skilled in the art will understand that, in the method described in the above specific embodiments, the writing order of each step does not mean a strict execution order, and the specific execution order of each step should be determined by its function and possible internal logic.
[0109] Based on the same inventive concept, an audio communication device corresponding to the audio communication method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned audio communication method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0110] Reference Figure 9FIG2 is a schematic diagram of an audio communication device provided by an embodiment of the present disclosure. The device is applied to an audio device in an audio communication system. The audio device is connected to multiple terminal devices. Different terminal devices and audio devices use different communication protocols for audio communication. The device includes: a configuration module 301 and a communication module 302.
[0111] A configuration module 301 is configured to configure a communication sub-cycle for each terminal device connected to the audio device, wherein the sum of the communication sub-cycles configured for each terminal device is less than a preset communication cycle of the audio communication system;
[0112] The communication module 302 is configured to determine other terminal devices that need to occupy bandwidth in response to any terminal device reaching a preset bandwidth occupation condition, and perform audio communication between the audio device and any terminal device by occupying the communication sub-periods corresponding to the other terminal devices.
[0113] In a possible implementation, the communication module 302 is configured to determine whether any terminal device meets a preset bandwidth occupancy condition according to the following steps:
[0114] In the corresponding communication sub-cycle, the number of times the audio packet is retransmitted between the audio device and the terminal device reaches a preset number;
[0115] In the corresponding communication sub-period, the first control information that the audio device needs to send to the terminal device has not been sent;
[0116] In the corresponding communication sub-period, the audio device has not yet received the second control information from the terminal device that needs to be received.
[0117] In a possible implementation, the plurality of terminal devices include a first terminal device and a second terminal device; wherein:
[0118] The configuration module 301 is further configured to:
[0119] A first communication sub-cycle is configured for the first terminal device, and a second communication sub-cycle is configured for the second terminal device; audio communication is performed between the audio device and the first terminal device during the first communication sub-cycle, and audio communication is performed between the audio device and the second terminal device during the second communication sub-cycle;
[0120] The communication module 302 is also used to determine whether the first terminal device meets the preset bandwidth occupancy condition; if the first terminal device meets the preset bandwidth occupancy condition, audio communication between the audio device and the first terminal device is performed by occupying the second communication sub-cycle corresponding to the second terminal device.
[0121] In a possible implementation, the communication module 302 is further configured to:
[0122] When it is determined that the first terminal device has completed the transmission of the audio packet within the first communication sub-cycle and still has control information to be sent and received, it is determined that the preset bandwidth occupancy condition is met, and the control information is sent and received by occupying the second communication sub-cycle corresponding to the second terminal device.
[0123] In a possible implementation, the duration of the first communication sub-cycle is greater than the duration of the second communication sub-cycle.
[0124] In one possible implementation, the first communication sub-cycle includes a plurality of first communication time slots, and the second communication sub-cycle includes a plurality of second communication time slots;
[0125] The number of the first communication time slots is greater than the number of the second communication time slots, and the duration of the first communication time slots is equal to the duration of the second communication time slots.
[0126] Reference Figure 10 FIG. 4 is a schematic diagram of another audio communication device provided by an embodiment of the present disclosure. The device is applied to any terminal device among multiple terminal devices in an audio communication system. The multiple terminal devices are connected to an audio device. Different terminal devices and audio devices use different communication protocols for audio communication. The device includes: a configuration module 401 and a communication module 402; wherein,
[0127] A configuration module 401 is configured to configure a communication sub-cycle for any terminal device, wherein the sum of the communication sub-cycle configured for any terminal device and the communication sub-cycle configured for other terminal devices is less than a preset communication cycle of the audio communication system;
[0128] The communication module 402 is configured to determine other terminal devices that need to occupy bandwidth in response to any terminal device reaching a preset bandwidth occupation condition, and perform audio communication between any terminal device and the audio device by occupying communication sub-periods corresponding to other terminal devices.
[0129] It should be noted that the device in the embodiment of the present disclosure can implement each process of the embodiment of the aforementioned method and achieve the same effects and functions, which will not be repeated here.
[0130] Corresponding to Figure 7 and Figure 8 The audio communication method in the present disclosure also provides an electronic device, such as Figure 11 FIG. 1 is a schematic diagram of the electronic device structure provided by an embodiment of the present disclosure, including:
[0131] Processor 501, memory 502, and bus 503; memory 502 is used to store execution instructions and includes internal memory 5021 and external memory 5022; the internal memory 5021 is also called internal memory and is used to temporarily store operation data in the processor 501 and data exchanged with external memory 5022 such as a hard disk. The processor 501 exchanges data with the external memory 5022 through the internal memory 5021. When the electronic device is running, the processor 501 and the memory 502 communicate via the bus 503, so that the processor 501 executes the following instructions:
[0132] A communication sub-cycle is configured for each terminal device connected to the audio device, and the sum of the communication sub-cycles configured for each terminal device is less than a preset communication cycle of the audio communication system;
[0133] In response to any terminal device reaching a preset bandwidth occupation condition, determining other terminal devices that need to occupy the bandwidth, and performing audio communication between the audio device and any terminal device by occupying communication sub-periods corresponding to the other terminal devices;
[0134] Or execute the following command:
[0135] A communication sub-cycle is configured for each terminal device, and the sum of the communication sub-cycle configured for each terminal device and the communication sub-cycle configured for other terminal devices is less than a preset communication cycle of the audio communication system;
[0136] In response to any terminal device reaching a preset bandwidth occupation condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication between any terminal device and the audio device is performed by occupying communication sub-periods corresponding to the other terminal devices.
[0137] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program executes the steps of the audio communication method described in the above method embodiment. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0138] The embodiments of the present disclosure also provide a computer program product, which carries program code. The instructions included in the program code can be used to execute the steps of the audio communication method described in the above method embodiment. For details, please refer to the above method embodiment and will not be repeated here.
[0139] The computer program product may be implemented in hardware, software, or a combination thereof. In one embodiment, the computer program product is implemented as a computer storage medium. In another embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0140] Each embodiment of this disclosure is described in a progressive manner. The same or similar parts between the various embodiments can be referenced across them, and each embodiment focuses on the differences between the other embodiments. In particular, the descriptions of the apparatus, device, and computer-readable storage medium embodiments are simplified because they are generally similar to the method embodiments. For relevant details, please refer to the descriptions of the method embodiments.
[0141] The apparatus, equipment and computer-readable storage medium provided in the embodiments of the present disclosure correspond one-to-one to the method. Therefore, the apparatus, equipment and computer-readable storage medium also have similar beneficial technical effects to their corresponding methods. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the apparatus, equipment and computer-readable storage medium will not be repeated here.
[0142] It should be understood by those skilled in the art that the embodiments of the present disclosure can be implemented as methods and apparatus (devices or systems), or computer-readable storage media. Therefore, the present disclosure can be implemented entirely in hardware, entirely in software, or in a combination of software and hardware. Furthermore, the present disclosure can be implemented in the form of a computer-readable storage medium implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0143] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (equipment or system) and computer-readable storage media according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0144] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, wherein the instruction device implements the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram.
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0146] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0147] Memory can include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory (Flash RAM). Memory is an example of a computer-readable medium.
[0148] Computer-readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory, read-only memory, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. In addition, although the operations of the disclosed method are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all shown operations must be performed to achieve the desired result. In addition, certain steps may be omitted, multiple steps may be combined into a single step, and / or a step may be broken down into multiple sub-steps.
[0149] Although the spirit and principles of the present disclosure have been described above with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the specific embodiments disclosed, and the division into various aspects does not mean that the features of these aspects cannot be combined. The present disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. An audio communication method, characterized in that: An audio device used in an audio communication system, wherein the audio device is connected to multiple terminal devices, and different terminal devices use different communication protocols to perform audio communication with the audio device, and the method includes: A communication sub-cycle is configured for each terminal device connected to the audio device, and the sum of the communication sub-cycles configured for each terminal device is less than a preset communication cycle of the audio communication system; In response to any terminal device reaching a preset bandwidth occupation condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication is performed between the audio device and any of the terminal devices by occupying communication sub-periods corresponding to the other terminal devices.
2. The method according to claim 1, characterized in that Determine whether any terminal device meets the preset bandwidth occupancy condition by following the steps below: In the corresponding communication sub-cycle, the number of times the audio packet is retransmitted between the audio device and the terminal device reaches a preset number; In the corresponding communication sub-period, the first control information that the audio device needs to send to the terminal device has not been sent; In the corresponding communication sub-period, the audio device has not received the second control information of the terminal device that needs to be received.
3. The method according to claim 1 or 2, characterized in that The plurality of terminal devices include a first terminal device and a second terminal device; and the method includes: A first communication sub-cycle is configured for the first terminal device, and a second communication sub-cycle is configured for the second terminal device; audio communication is performed between the audio device and the first terminal device during the first communication sub-cycle, and audio communication is performed between the audio device and the second terminal device during the second communication sub-cycle; Determining whether the first terminal device meets a preset bandwidth occupancy condition; If the first terminal device meets the preset bandwidth occupation condition, audio communication is performed between the audio device and the first terminal device by occupying the second communication sub-period corresponding to the second terminal device.
4. The method according to claim 3, characterized in that The method further comprises: When it is determined that the first terminal device has completed the transmission of the audio packet within the first communication sub-cycle and still has control information to be sent and received, it is determined that the preset bandwidth occupancy condition is met, and the control information is sent and received by occupying the second communication sub-cycle corresponding to the second terminal device.
5. The method according to claim 3, characterized in that The duration of the first communication sub-cycle is greater than the duration of the second communication sub-cycle.
6. The method according to claim 3, characterized in that The first communication sub-cycle includes a plurality of first communication time slots, and the second communication sub-cycle includes a plurality of second communication time slots; The number of the first communication time slots is greater than the number of the second communication time slots, and the duration of the first communication time slots is equal to the duration of the second communication time slots.
7. An audio communication method, characterized in that: The method is applied to any terminal device among multiple terminal devices in an audio communication system, wherein the multiple terminal devices are all connected to an audio device, and different terminal devices use different communication protocols to perform audio communication with the audio device. The method includes: A communication sub-cycle is configured for any of the terminal devices, and the sum of the communication sub-cycle configured for any of the terminal devices and the communication sub-cycles configured for other terminal devices is less than a preset communication cycle of the audio communication system; In response to any of the terminal devices reaching a preset bandwidth occupation condition, other terminal devices that need to occupy the bandwidth are determined, and audio communication is performed between any of the terminal devices and the audio device by occupying communication sub-periods corresponding to the other terminal devices.
8. An audio communication system, characterized in that: It includes an audio device and a plurality of terminal devices correspondingly connected to the audio device, wherein different terminal devices use different communication protocols to perform audio communication with the audio device; The audio device is configured to configure a communication sub-cycle for each terminal device connected to the audio device, wherein the sum of the communication sub-cycles configured for each terminal device is less than a preset communication cycle of the audio communication system; Any of the terminal devices is used to determine other terminal devices that need to occupy the bandwidth in response to reaching a preset bandwidth occupancy condition, and to perform audio communication between the audio device and any of the terminal devices by occupying the communication sub-period corresponding to the other terminal devices.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the audio communication method according to any one of claims 1 to 7 is executed.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the audio communication method according to any one of claims 1 to 7.