CN115665716A - Audio data transmission method, electronic device, and computer-readable storage medium - Google Patents

Audio data transmission method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN115665716A
CN115665716A CN202211681858.XA CN202211681858A CN115665716A CN 115665716 A CN115665716 A CN 115665716A CN 202211681858 A CN202211681858 A CN 202211681858A CN 115665716 A CN115665716 A CN 115665716A
Authority
CN
China
Prior art keywords
access point
distance
communication
establishing
bluetooth
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.)
Granted
Application number
CN202211681858.XA
Other languages
Chinese (zh)
Other versions
CN115665716B (en
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.)
Hefei Torch Core Intelligent Technology Co ltd
Original Assignee
Hefei Torch Core Intelligent Technology 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 Hefei Torch Core Intelligent Technology Co ltd filed Critical Hefei Torch Core Intelligent Technology Co ltd
Priority to CN202211681858.XA priority Critical patent/CN115665716B/en
Publication of CN115665716A publication Critical patent/CN115665716A/en
Application granted granted Critical
Publication of CN115665716B publication Critical patent/CN115665716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

An embodiment of the present application provides an audio data transmission method, an electronic device, and a computer-readable storage medium, where an audio transmission network includes a root group, where the root group includes a receiver and at least one audio device and forms at least one access point, and the method includes: determining, by the current audio device, a first communication distance with the searched root access point; establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition; or responding to the first communication distance not meeting the preset condition, and establishing the Bluetooth communication connection with the root access point. By the mode, the transmission distance and the transmission efficiency can be considered, and the audio transmission quality is improved.

Description

Audio data transmission method, electronic device, and computer-readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an audio data transmission method, an electronic device, and a computer-readable storage medium.
Background
In recent years, with the development of short video and live broadcast industries, the tendency of media of the whole people is more and more obvious. Compared with the traditional media which needs professional interview equipment and post-production equipment, the self-media can finish all the processes from audio and video acquisition to post-production only by one mobile phone with a camera. With the development of self-media, video shooting of the self-media is gradually developed towards specialization. The camera shooting performance of the mobile phone is improved year by year, but the audio recording function of the mobile phone is not improved all the time, so that the requirement of externally connecting a professional microphone is created.
The wireless microphone on the market at present has various realization modes:
the early wireless microphone generally transmits in a VHF/UHF frequency band, the matching mode is a fixed frequency band, the advantages are that the distance is long, the penetration capability is strong, the defects are that the transmission speed is low, the tone quality is poor, the equipment accommodating capacity is small, and the microphone is easy to be interfered by other equipment of the same type.
In recent years, the 2.4G technology wireless microphone (2.4G technology comprises a private protocol, a Bluetooth protocol, a WIFI protocol and the like) which is developed quickly has the advantages of high speed, good tone quality, no crosstalk in encrypted transmission among equipment, large equipment accommodating capacity, long transmission distance without interference and blocking, and the defects of poor penetration capability, close signal distance of a partition wall, numerous working 2.4G equipment, crowded channels and close transmission distance in crowded places.
At present, the widely used private protocol 2.4G technology single chip has the maximum transmission speed of 2Mbps, the transmission speed of the single chip is just enough for transmitting two paths of data at a single sound track sampling rate of 48K, and one receiver can be simultaneously connected with two transmitters.
Recently, a low-delay leaudio technology is released by a Bluetooth 5.3 version, depending on the high compression ratio of an LC3 coding and decoding algorithm, the leaudio technology is used for realizing one-drive-many, which is also becoming an option, but compared with the one-drive-two 5ms delay of a private 2.4G technology, the one-drive-two delay of a wireless microphone realized by the leaudio technology is 20ms, which is relatively large.
Disclosure of Invention
Embodiments of the present application provide an audio data transmission method, an electronic device, and a computer-readable storage medium, which are intended to improve/solve the problem of low audio data transmission quality in the related art.
The application provides a data transmission method, wherein an audio transmission network comprises a root group, the root group comprises a receiver and at least one audio device, and forms at least one access point, the method comprises the following steps: determining, by the current audio device, a first communication distance with the searched root access point; establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition; or responding to the first communication distance not meeting the preset condition, and establishing the Bluetooth communication connection with the root access point.
In some embodiments, establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition comprises: establishing a UWB communication connection with the root access point in response to the first communication distance being less than a first distance threshold; in response to the first communication distance not satisfying a predetermined condition, establishing a bluetooth communication connection with the root access point, comprising: establishing a bluetooth communication connection with the root access point in response to the first communication distance being greater than a first distance threshold; wherein the first distance threshold is determined by the performance of the UWB communication.
In some embodiments, after establishing UWB communication with the root access point, further comprising: searching for a new access point in response to the first communication distance being greater than the first distance threshold; in response to the first communication distance being greater than a second distance threshold, establishing a connection with a closest access point of the searched new access points; wherein the second distance threshold is greater than the first distance threshold.
In some embodiments, the audio transmission network includes an extension group, the extension group including at least one audio device and forming an extension access point; responsive to the first communication distance being greater than the first distance threshold, establishing bluetooth communication with the root access point, comprising: in response to the first communication distance being greater than a first distance threshold, searching for an extended access point within a first distance threshold range, the extended access point being formed by audio devices of non-root access points of the extended group; in response to searching for an extended access point, establishing a UWB communication connection with the searched extended access point; or in response to not searching for an extended access point, establishing a bluetooth communication connection with the root access point.
In some embodiments, the method further comprises: in response to not searching for an extended access point within the first range of distance thresholds and in response to searching for an extended access point within the third range of distance thresholds, establishing a bluetooth communication connection with the searched extended access point; wherein the third distance threshold is greater than the first distance threshold.
In some embodiments, after establishing bluetooth communication with the root access point, further comprising: determining a second communication distance with the searched root access point based on the Bluetooth communication; and establishing the UWB communication connection with the root access point in response to the second communication distance meeting the preset condition.
In some embodiments, the method further comprises: and searching for a new access point except for the extended group where the first access point is located in response to the Bluetooth communication connection with the first access point, the Bluetooth communication connection between the first access point and the second access point being established, and the communication distance between the first access point and the second access point being greater than a fourth distance threshold value.
In some embodiments, the method further comprises: collecting audio data; acquiring audio data sent by the child member equipment; and mixing the acquired audio data with the acquired audio data, and sending the audio data to an access point of the current audio equipment.
The present application further provides an electronic device comprising a processor and a memory, wherein the memory stores program data, and the processor is configured to execute the program data to implement the method as described above.
The present application also provides a computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein program data for implementing the method as described above when executed by a processor.
The audio data transmission method provided by the embodiment of the application comprises the following steps: the current audio device determines a first communication distance with the searched root access point based on UWB communication; establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition; or in response to the first communication distance not meeting a preset condition, establishing a Bluetooth communication connection with the root access point. In this way, this embodiment constructs the audio transmission network based on a large amount of audio equipment to confirm in the network whether bluetooth is connected or UWB is connected based on communication distance, can guarantee long-range stable transmission of data under the bluetooth is connected, can guarantee closely data high-speed transmission under the UWB is connected, can compromise data transmission quality and data transmission efficiency, improved the data transmission quality of whole audio transmission network.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a first embodiment of an audio transmission network provided in the present application;
FIG. 2 is a schematic view of a corresponding node hierarchy of FIG. 1;
fig. 3 is a schematic flowchart of a first embodiment of an audio data transmission method provided in the present application;
FIG. 4 is a schematic diagram of a first interaction for establishing UWB communications as provided herein;
FIG. 5 is a schematic diagram of a first interaction for establishing Bluetooth communication as provided herein;
fig. 6 is a schematic flowchart of a second embodiment of an audio data transmission method provided in the present application;
FIG. 7 is a second interaction diagram for establishing Bluetooth communication, as provided herein;
FIG. 8 is a second schematic illustration of an interaction for establishing UWB communications as provided herein;
FIG. 9 is an interactive schematic diagram of switching UWB communication provided herein;
FIG. 10 is an interaction diagram of UWB communications switching Bluetooth communications provided herein;
FIG. 11 is an interaction diagram of switching Bluetooth communication between Bluetooth communication provided by the present application;
fig. 12 is a schematic structural diagram of a second embodiment of an audio transmission network provided in the present application;
FIG. 13 is a hardware schematic diagram of an embodiment of an electronic device provided herein;
FIG. 14 is a schematic structural diagram of an embodiment of an electronic device provided in the present application;
FIG. 15 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, merely for convenience of description and simplicity of description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered limiting of the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
"A and/or B" includes the following three combinations: a alone, B alone, and a combination of A and B.
The use of "adapted to" or "configured to" in this application means open and inclusive language that does not exclude devices adapted to or configured to perform additional tasks or steps. Additionally, the use of "based on" means open and inclusive, as a process, step, calculation, or other action that is "based on" one or more stated conditions or values may in practice be based on additional conditions or values beyond those stated.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Based on the limitation of bluetooth communication in the related technology, the embodiment of the application adopts a mode of combining bluetooth communication and Ultra Wide Band (UWB) communication, and the UWB technology has the advantages of strong anti-multipath interference capability and high transmission speed, and is widely applied to an accurate positioning system, and the theoretical limit transmission speed of the system is 32Mbps. However, since the broadband working at more than 6GHz is limited by the regulation that the FCC emission power is not greater than 0dbm, the transmission distance (20 meters) is not an order of magnitude with the 2.4g 10dbm proprietary protocol and the 200 meters and 20dbm wifi (500 meters) of the bluetooth technology, so the UWB is rarely applied in the data transmission field, the data transmission protocol is crude, and the application range and the popularity are poor. However, because the UWB uses 6GHz to 9GHz frequency bands and has no other communication competition, the same frequency interference is small, and the transmission speed is stable.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a first embodiment of an audio transmission network provided by the present application, where the audio transmission network includes a root group (i.e., a UWB root group), the root group includes a receiver (initial access point) and at least one audio device (the receiver and the audio device are represented by small dots), and forms at least one access point. Wherein the receiver is connected to the host.
Optionally, in an embodiment, the audio transmission network further includes an extension group, and the extension group includes at least one audio device and forms an extension access point. It will be appreciated that there may be only one UWB root group without extension group if all devices are within UWB connection range.
The receiver is an initial UWB root group access point, after the audio equipment connected with the current access point is full, the receiver randomly designates other audio equipment in the UWB root group members as a new UWB root group access point, and when the UWB root group members are more, the receiver randomly designates a plurality of UWB root group access points from near to far according to the distance. All audio devices connected to the UWB root group access point constitute a UWB root group, and the number of UWB root group members may theoretically be infinite.
It is understood that a plurality of root access points may be included in the UWB root group member, UWB communication is adopted between the receiver and the audio device or between the receiver and the audio device in the UWB root group member, and generally, there are a lot of audio devices to which the receiver can be connected, and generally, 3 to 4 audio devices can be connected, depending on the performance.
Furthermore, the audio equipment establishing the Bluetooth connection with the UWB root group member is used as a root access point to form an extension group, and one extension group only has one root access point.
With further reference to fig. 2, fig. 2 is a corresponding node level diagram of fig. 1, for a UWB root group, the audio devices connected to the receivers are secondary access points/secondary members, the audio devices connected to the secondary access points are tertiary access points/tertiary members, and so on. For the extended group, the audio device connected to the root access point is a secondary access point/secondary member, the audio device connected to the secondary access point is a tertiary access point/tertiary member, and so on.
In an embodiment, the audio devices in the audio transmission network each include a UWB module and a bluetooth module.
Referring to fig. 3, fig. 3 is a schematic flowchart of a first embodiment of an audio data transmission method provided by the present application, where the method is applied to an audio device of the audio transmission network, a current audio device searches for other audio devices or receivers based on UWB communication, and if other audio devices or receivers are searched, the following steps are performed:
step 31: the current audio device determines a first communication distance from the searched root access point.
Wherein, utilize UWB communication range finding to adopt the TOF method, specifically do: the first device sends a first ranging signal to the second device based on the UWB channel, receives a first return signal sent by the second device based on the UWB channel and based on the first ranging signal, and determines a communication distance between the first device and the second device based on the first ranging signal and the first return signal.
Specifically, the first device and the second device may perform the calculation of the communication distance by using the following formula:
Figure 885113DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 598991DEST_PATH_IMAGE002
it is the speed of the light that is,
Figure 50832DEST_PATH_IMAGE003
a time difference between the transmission of the first ranging signal and the reception of the first reply signal for the first device,
Figure 118145DEST_PATH_IMAGE004
a time difference between receiving the first ranging signal and transmitting the first reply signal for the second device.
The bluetooth ranging method may include:
for a first device, the first device sends a first data packet to a second device based on a bluetooth channel, the first data packet including a first transmission power of the first device, and also receives a second data packet sent by the second device, the second data packet including a second transmission power of the second device. The second device then determines a first signal strength at which the second data packet is received; a first communication distance between the first device and the second device is determined based on the first signal strength and the second transmit power.
For the second device: the second device sends a second data packet to the first device based on the Bluetooth channel, wherein the second data packet comprises second transmission power of the second device, and meanwhile, the second device also receives a first data packet sent by the first device, and the first data packet comprises first transmission power of the first device. The second device then determines a second signal strength at which the first data packet was received; a second communication distance between the first device and the second device is determined based on the second signal strength and the first transmit power.
The first device and the second device may calculate the communication distance by using the following formula:
Figure 463676DEST_PATH_IMAGE005
wherein the content of the first and second substances,
Figure 459707DEST_PATH_IMAGE006
is expressed in a transmission power of
Figure 398844DEST_PATH_IMAGE007
The signal strength when the data packet is received,
Figure 128903DEST_PATH_IMAGE008
in order to be the environmental attenuation factor,
Figure 204306DEST_PATH_IMAGE009
is expressed in a transmission power of
Figure 869774DEST_PATH_IMAGE010
The signal strength of a received packet at a time unit distance.
As can be appreciated, the first and second electrodes,
Figure 60322DEST_PATH_IMAGE009
is at a power of
Figure 328492DEST_PATH_IMAGE010
Actual measurement of signal strength at unit distance, by
Figure 258402DEST_PATH_IMAGE011
Calculating the signal strength of the received data packet at a unit distance when any transmitting power P is obtained);
Figure 484984DEST_PATH_IMAGE012
two sets of data can be collected under the same transmitting power in the same environment:
Figure 133134DEST_PATH_IMAGE013
and
Figure 939416DEST_PATH_IMAGE014
calculated according to the following formula:
Figure 254991DEST_PATH_IMAGE015
for cases where accurate ranging is not required, n =2 substitution may be used.
Step 32: and establishing the UWB communication connection with the root access point in response to the first communication distance meeting a preset condition.
Alternatively, the preset condition here means that the first communication distance is smaller than a first distance threshold, and the first distance threshold is set based on the performance of the UWB communication protocol. It will be appreciated that bluetooth communications are relatively long, up to several hundred meters (e.g., 10dbm bluetooth operating in a 2.4G narrowband may have a transmission distance of up to 200 meters), and are generally unaffected by the transmission distance, whereas UWB transmissions are typically around 20 meters. Therefore, the first distance threshold here may be set according to the UWB transmission distance, for example, to be set to 20 meters.
With further reference to fig. 4, fig. 4 is a schematic diagram of a first interaction for establishing UWB communication provided by the present application, and the specific process is as follows:
the UWB module of the access point device (the device accessed by the current audio device) sends a UWB ranging broadcast packet containing an access point identification code and a Bluetooth address at fixed time, and after the current audio device receives the UWB ranging broadcast packet, the UWB ranging response packet containing the device identification code and the Bluetooth address is sent. When the UWB module of the access point equipment judges that the distance measurement result is smaller than the first distance threshold value, the UWB module sends a UWB connection request packet containing identification codes of both parties and connection time sequence information, and the UWB module of the current audio equipment sends a connection request response packet, so that UWB communication connection between the current audio equipment and the access point equipment is successfully established.
Step 33: and responding to the first communication distance not meeting the preset condition, and establishing the Bluetooth communication connection with the root access point.
With further reference to fig. 5, fig. 5 is a schematic diagram of a first interaction for establishing bluetooth communication according to the present application, and the specific process is as follows:
the access point equipment UWB module sends a UWB ranging broadcast packet containing an access point identification code and a Bluetooth address at regular time, and after the current audio equipment receives the UWB ranging broadcast packet, the UWB ranging response packet containing an equipment identification code and a Bluetooth address is sent. When the UWB module of the access point equipment judges that the distance measurement result is larger than the first distance threshold value, the Bluetooth module of the access point equipment sends a Bluetooth connection command containing the Bluetooth address of the current audio equipment to the Bluetooth module of the access point equipment, the Bluetooth module of the access point equipment sends a directional connection request packet containing the Bluetooth address of the current audio equipment to the Bluetooth module of the current audio equipment, and the Bluetooth module of the current audio equipment sends a Bluetooth connection request response packet to the Bluetooth module of the access point equipment, so that the Bluetooth communication connection between the current audio equipment and the access point equipment is successfully established.
The audio data transmission method provided by the embodiment comprises the following steps: the current audio device determines a first communication distance with the searched root access point based on UWB communication; establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition; or in response to the first communication distance not meeting a preset condition, establishing a Bluetooth communication connection with the root access point. In this way, this embodiment constructs the audio transmission network based on a large amount of audio equipment to confirm in the network whether bluetooth is connected or UWB is connected based on communication distance, can guarantee long-range stable transmission of data under the bluetooth is connected, can guarantee closely data high-speed transmission under the UWB is connected, can compromise data transmission quality and data transmission efficiency, improved the data transmission quality of whole audio transmission network.
Referring to fig. 6, fig. 6 is a schematic flowchart of a second embodiment of an audio data transmission method provided in the present application, where the method includes:
step 61: the current audio device determines a first communication distance from the searched root access point.
Step 62: responsive to the first communication distance being less than the first distance threshold, establishing a UWB communication connection with the root access point.
And step 63: responsive to the first communication distance being greater than the first distance threshold, a Bluetooth communication connection is established with the root access point.
After step 62, the determination of the first communication distance to the root access point is continued, and steps 64 and 65 described below are performed based on the first communication distance.
Step 64: in response to the first communication distance being greater than the first distance threshold, a new access point is searched.
Step 65: and establishing connection with the nearest access point in the searched new access points in response to the first communication distance being larger than the second distance threshold.
Wherein the second distance threshold is greater than the first distance threshold. In an embodiment, the first distance threshold and the second distance threshold may be determined in the following manner:
UWB transmission first distance threshold: the maximum distance (n is the optimal empirical value obtained by comprehensively considering the maximum UWB transmission speed, the maximum number of UWB equipment which can be connected by a single access point and the transmission delay) of the two UWB equipment which are stably transmitted and the average retransmission times of which is less than or equal to n, or the average retransmission times of which is more than n can be directly judged.
UWB transmission second distance threshold: the two UWB devices can transmit, and the average retransmission times is larger than the nearest distance of m (m: the optimal empirical value is obtained according to the comprehensive consideration of the maximum UWB transmission speed, the maximum UWB device number which can be connected by a single access point and the transmission delay), or the average retransmission times is larger than m.
Optionally, in an embodiment, step 63 may include: in response to the first communication distance being greater than a first distance threshold, searching for an extended access point within the first distance threshold, the extended access point being formed by audio devices of non-root access points of the extended group; in response to searching for an extended access point, establishing a UWB communication connection with the searched extended access point; or in response to not searching for an extended access point, establishing a bluetooth communication connection with the root access point.
Specifically, in response to no extended access point being searched within a first distance threshold range and in response to an extended access point being searched within a third distance threshold range, establishing a bluetooth communication connection with the searched extended access point; wherein the third distance threshold is greater than the first distance threshold and the third distance threshold is greater than the second distance threshold.
In an embodiment, the third distance threshold may be determined in the following manner:
bluetooth transmission third distance threshold: the maximum distance (N: the optimal empirical value is obtained according to the comprehensive consideration of the maximum transmission speed of the Bluetooth, the maximum number of the Bluetooth devices which can be connected by a single access point and the transmission delay), and the average retransmission times is less than or equal to N, or whether the average retransmission times is more than N can be directly judged.
With further reference to fig. 7, fig. 7 is a second interaction diagram for establishing bluetooth communication provided by the present application, and the specific process is as follows:
and the Bluetooth module of the access point equipment sends a Bluetooth ranging broadcast packet containing the Bluetooth address of the access point at regular time, and after the current audio equipment receives the Bluetooth ranging broadcast packet, the current audio equipment judges that the ranging result is smaller than a third distance threshold value and sends a Bluetooth ranging broadcast response packet containing the Bluetooth address of the equipment. The Bluetooth module of the access point equipment sends a directional connection request packet containing the Bluetooth address of the equipment to the current audio equipment, and the Bluetooth module of the current audio equipment sends a Bluetooth connection request response packet to the Bluetooth module of the access point equipment, so that the Bluetooth communication connection between the current audio equipment and the access point equipment is established.
Alternatively, in one embodiment, after the bluetooth communication is established, the bluetooth communication may be converted into a UWB communication connection. Specifically, a second communication distance with the searched root access point is determined based on Bluetooth communication; and establishing the UWB communication connection with the root access point in response to the second communication distance meeting the preset condition.
With further reference to fig. 8, fig. 8 is a second interaction diagram for establishing UWB communication provided by the present application, and the specific process is as follows:
the Bluetooth module of the access point equipment sends a Bluetooth ranging broadcast packet containing a Bluetooth address of the access point, the Bluetooth module of the current audio equipment judges that a ranging result is smaller than a first distance threshold value, sends a UWB connection request packet containing an equipment identification code to the Bluetooth module of the access point equipment, the Bluetooth module of the access point equipment sends a UWB connection command containing the equipment identification code to the UWB module of the access point equipment, the UWB module of the access point equipment sends the UWB connection request packet containing identification codes of both sides and connection timing sequence information to the current audio equipment, and the current audio equipment feeds back a connection request response packet, thereby completing the UWB communication connection of the current audio equipment and the access point equipment.
Optionally, in an embodiment, after step 62, the method may further include: searching for a new access point in response to the first communication distance being greater than the first distance threshold; in response to the first communication distance being greater than a second distance threshold, establishing a connection with a closest access point of the searched new access points; wherein the second distance threshold is greater than the first distance threshold.
Here, the new access point may be a UWB connection or a bluetooth connection.
Taking UWB connection as an example, as shown in fig. 9, fig. 9 is an interaction diagram of UWB communication switching UWB communication provided by the present application.
After the current audio equipment establishes UWB communication connection with the first access point equipment, the current audio equipment sends a directional ranging packet to the first access point equipment, and the first access point equipment feeds back a ranging response packet. When the distance measurement result of the current audio equipment is larger than the first distance threshold value, the UWB distance measurement broadcast packet receiving function is started.
The second access point device sends a UWB ranging broadcast packet including an access point identification code and a bluetooth address, and the current audio device sends a UWB ranging broadcast packet including a device identification code and a bluetooth address to the second access point device. Based on the continuous distance measurement of the current audio equipment and the first access point equipment and the continuous distance measurement of the current audio equipment and the second access point equipment, when the distance measurement result of the first access point equipment is larger than a second distance threshold value and the distance measurement result of the second access point equipment is smaller than a first distance threshold value, the second access point equipment sends a UWB connection request packet containing identification codes of both parties and connection time sequence information, and the current audio equipment sends a connection request response packet, so that the UWB communication connection of the current audio equipment and the second access point equipment is established.
Taking bluetooth connection as an example, as shown in fig. 10, fig. 10 is an interaction diagram of switching UWB communication to bluetooth communication provided by the present application.
After the current audio equipment establishes UWB communication connection with the first access point equipment, the current audio equipment sends a directional ranging packet to the first access point equipment, and the first access point equipment feeds back a ranging response packet. And when the distance measurement result of the current audio equipment is greater than the first distance threshold value, starting a Bluetooth distance measurement broadcast packet receiving function.
And the second access point equipment sends a Bluetooth ranging broadcast packet containing the Bluetooth address of the access point, and when the ranging result of the current audio equipment is smaller than a third distance threshold value, the second access point equipment is determined to be the access point equipment with the shortest distance in the plurality of access point equipment with the ranging result smaller than the third distance threshold value.
Based on the continuous distance measurement of the current audio equipment and the first access point equipment, when the distance measurement result of the current audio equipment and the first access point equipment is larger than a second distance threshold value, the second access point equipment continuously sends a Bluetooth distance measurement broadcast packet containing an access point Bluetooth address, after the current audio equipment determines that the second access point equipment is the access point equipment with the shortest distance, the current audio equipment sends a Bluetooth distance measurement broadcast response packet containing the equipment Bluetooth address, the second access point equipment sends a directional connection request packet containing the equipment Bluetooth address, and the current audio equipment sends a Bluetooth connection request response packet, so that Bluetooth communication connection between the current audio equipment and the second access point equipment is established.
Optionally, in an embodiment, in response to establishing a bluetooth communication connection with the first access point, establishing a bluetooth communication connection between the first access point and the second access point, and the communication distance between the first access point and the second access point being greater than a fourth distance threshold, a new access point other than the extended group in which the first access point is located is searched.
In an embodiment, the fourth distance threshold may be determined in the following manner:
bluetooth transmit fourth distance threshold: the two Bluetooth devices can transmit, and the average retransmission times is more than the nearest distance of M (M is the optimal empirical value obtained according to the comprehensive consideration of the maximum transmission speed of the Bluetooth, the maximum number of the Bluetooth devices which can be connected by a single access point and the transmission delay), or whether the average retransmission times is more than M can be directly judged.
As shown in fig. 11, fig. 11 is an interaction diagram of switching bluetooth communication from bluetooth communication provided by the present application.
After the current audio equipment establishes Bluetooth communication with the first access point equipment, the first access point equipment sends a Bluetooth directional ranging packet in connection, and when a ranging result is greater than a third distance threshold value, a Bluetooth ranging broadcast packet receiving function is started.
And the second access point equipment sends a Bluetooth ranging broadcast packet containing the Bluetooth address of the access point, and the ranging result is smaller than the third distance threshold and is the closest equipment. Based on the continuous distance measurement of the current audio equipment and the first access point equipment, when the distance measurement result of the current audio equipment and the first access point equipment is larger than a fourth distance threshold value, the second access point equipment sends a Bluetooth distance measurement broadcast packet containing an access point Bluetooth address, the current audio equipment sends a Bluetooth distance measurement broadcast response packet containing an equipment Bluetooth address, the second access point equipment sends a directional connection request packet containing an equipment Bluetooth address, and the current audio equipment sends a Bluetooth connection request response packet, so that the Bluetooth communication connection between the current audio equipment and the second access point equipment is established.
After the channel is established, each audio device can respectively collect audio data and acquire the audio data sent by the sub-member device; and mixing the acquired audio data with the acquired audio data, and sending the audio data to an access point of the current audio equipment.
As shown in fig. 12, fig. 12 is a schematic structural diagram of a second embodiment of the audio transmission network provided in this application, and in other embodiments, the audio transmission network may also be used in a product with pure bluetooth connection, in which all wireless microphones are connected to an access point of a bluetooth group in a bluetooth manner, and all devices together form a bluetooth group, which is different from the scheme with UWB connection: only one group (Bluetooth root group) exists, all the devices belong to the Bluetooth root group, and a few devices can access the Bluetooth devices, so that all the devices automatically become access points after being connected successfully, and the access points can be found more easily by the unaccessed devices.
In addition, the embodiment can be applied to not only a single uplink audio device (such as a wireless microphone) product, but also other products requiring one-to-many audio transmission, such as a multi-split wireless earphone. At present, square dance sound disturbs people's incident constantly to take place, can use this one to drag many wireless earphones to replace high-power stereo set, realizes that the player plays the music to a pair of multicast of earphone, has both satisfied the demand of crowd's collective body-building, also avoids producing the noise, moreover, the earphone has still taken the microphone function certainly, and the participant can also directly yell to the organizer, when the participant is more, makes things convenient for the organizer to make statistics of and manage the participant.
Referring to fig. 13, fig. 13 is a hardware schematic diagram of an embodiment of an electronic device provided in the present application, where the electronic device includes a host, a bluetooth module, and a UWB module, the host includes an application layer, a high-level protocol, an L2CAP protocol layer, and an HCI interface protocol layer, the bluetooth module includes a host server, an LMP protocol layer, an L2CAP protocol layer, a bluetooth baseband, and a bluetooth radio frequency, the UWB module includes a host server, a UWB baseband, and a UWB radio frequency, where the HCI interface protocol layer communicates with the host server of the bluetooth module through a physical interface, and the application layer is connected with the host server of the UWB module.
When sending data, the host encapsulates the first data, and sends the encapsulated first data to a host servo unit of the Bluetooth module through a physical interface or to a host servo of the UWB module through an application layer; a host servo unit of the Bluetooth module adds the first data into a data queue and sends the first data in the queue to a protocol analysis unit; the protocol analysis unit sends the first data after protocol analysis to the Bluetooth baseband and sends the first data out through Bluetooth radio frequency. And the host servo unit of the UWB module adds the first data into a data queue, sends the first data in the queue to a Bluetooth baseband and sends the first data out through Bluetooth radio frequency.
Referring to fig. 14, fig. 14 is a schematic structural diagram of an embodiment of an electronic device provided in the present application, where the electronic device 140 includes a processor 141 and a memory 142, the memory 142 stores program data, and the processor 141 is configured to execute the program data to implement the following method:
the current audio device determines a first communication distance with the searched root access point based on UWB communication; establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition; or responding to the first communication distance not meeting the preset condition, and establishing the Bluetooth communication connection with the root access point.
It is understood that the electronic device 140 may be an audio extension device, such as a bluetooth headset, a bluetooth sound, etc.
Referring to fig. 15, fig. 15 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present application, where the computer-readable storage medium 150 stores program data 151, and when executed by a processor, the program data 151 is used to implement the following method:
the current audio device determines a first communication distance with the searched root access point based on the UWB communication; establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition; or in response to the first communication distance not meeting a preset condition, establishing a Bluetooth communication connection with the root access point.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The audio data transmission method, the electronic device, and the computer-readable storage medium provided in the embodiments of the present application are described in detail above, and specific examples are applied herein to explain the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. Audio data transmission method, characterized in that an audio transmission network comprises a root group comprising receivers and at least one audio device and forming at least one access point, said method comprising:
determining, by the current audio device, a first communication distance with the searched root access point;
establishing a UWB communication connection with the root access point in response to the first communication distance satisfying a preset condition; or
And responding to the condition that the first communication distance does not meet the preset condition, and establishing Bluetooth communication connection with the root access point.
2. The method of claim 1,
said establishing a UWB communication connection with said root access point in response to said first communication distance satisfying a predetermined condition, comprising:
responsive to the first communication distance being less than a first distance threshold, establishing a UWB communication connection with the root access point;
the responding to the first communication distance not meeting the preset condition, establishing the Bluetooth communication connection with the root access point, including:
responsive to the first communication distance being greater than the first distance threshold, establishing a Bluetooth communication connection with the root access point;
wherein the first distance threshold is determined by the performance of UWB communication.
3. The method of claim 2,
after establishing UWB communication with the root access point, further comprising:
searching for a new access point in response to the first communication distance being greater than the first distance threshold;
establishing connection with the nearest access point in the searched new access points in response to the first communication distance being greater than a second distance threshold;
wherein the second distance threshold is greater than the first distance threshold.
4. The method of claim 2,
the audio transmission network comprises an extension group, the extension group comprises at least one audio device and forms an extension access point;
said establishing Bluetooth communication with said root access point in response to said first communication distance being greater than said first distance threshold comprises:
in response to the first communication distance being greater than the first distance threshold, searching for an extended access point within the first distance threshold range, the extended access point being formed by audio devices of a non-root access point of the extended group;
in response to searching for an extended access point, establishing a UWB communication connection with the searched extended access point; or
In response to not searching for an extended access point, establishing a Bluetooth communication connection with the root access point.
5. The method of claim 4,
the method further comprises the following steps:
in response to no extended access point being searched within the first distance threshold range and in response to an extended access point being searched within a third distance threshold range, establishing a bluetooth communication connection with the searched extended access point;
wherein the third distance threshold is greater than the first distance threshold.
6. The method of claim 1,
after establishing bluetooth communication with the root access point, the method further comprises:
determining a second communication distance with the searched root access point based on the Bluetooth communication;
and responding to the second communication distance meeting a preset condition, and establishing the UWB communication connection with the root access point.
7. The method of claim 1,
the method further comprises the following steps:
and searching for a new access point except for the extended group where the first access point is located in response to the Bluetooth communication connection with the first access point, the Bluetooth communication connection between the first access point and the second access point being established, and the communication distance between the first access point and the second access point being greater than a fourth distance threshold value.
8. The method of claim 1,
the method further comprises the following steps:
collecting audio data;
acquiring audio data sent by the child member equipment;
and mixing the acquired audio data with the acquired audio data, and sending the audio data to an access point of the current audio equipment.
9. An electronic device, characterized in that the electronic device comprises a processor and a memory, the memory having stored therein program data for execution by the processor to implement the method of any of claims 1 to 8.
10. A computer-readable storage medium, in which program data are stored which, when being executed by a processor, are adapted to carry out the method of any one of claims 1 to 8.
CN202211681858.XA 2022-12-27 2022-12-27 Audio data transmission method, electronic device, and computer-readable storage medium Active CN115665716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211681858.XA CN115665716B (en) 2022-12-27 2022-12-27 Audio data transmission method, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211681858.XA CN115665716B (en) 2022-12-27 2022-12-27 Audio data transmission method, electronic device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN115665716A true CN115665716A (en) 2023-01-31
CN115665716B CN115665716B (en) 2023-04-07

Family

ID=85023369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211681858.XA Active CN115665716B (en) 2022-12-27 2022-12-27 Audio data transmission method, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115665716B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070104215A1 (en) * 2002-05-13 2007-05-10 Kiyon, Inc. Multi-Hop Ultra Wide Band Wireless Network Communication
JP2007329877A (en) * 2006-06-09 2007-12-20 Canon Inc Transmission system of sound information
JP2010011420A (en) * 2008-06-30 2010-01-14 Canon Inc Wireless communication system
US20190156603A1 (en) * 2016-02-26 2019-05-23 Huf Hülsbeck & Fürst Gmbh & Co.Kg Method for activating of at least one security function of a security system of a vehicle
CN112954758A (en) * 2021-02-02 2021-06-11 维沃移动通信有限公司 Network switching method and device and electronic equipment
CN113411787A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Audio transmission method and electronic equipment
CN113596723A (en) * 2021-08-05 2021-11-02 深圳华云时空技术有限公司 Fusion positioning method and system based on UWB and Bluetooth
WO2022050561A1 (en) * 2020-09-01 2022-03-10 삼성전자주식회사 Electronic device and control method
WO2022068221A1 (en) * 2020-09-29 2022-04-07 南京中感微电子有限公司 Low-delay wireless audio sending and receiving method and device
WO2022197856A1 (en) * 2021-03-19 2022-09-22 Meta Platforms Technologies, Llc Systems and methods for ultra-wideband applications

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070104215A1 (en) * 2002-05-13 2007-05-10 Kiyon, Inc. Multi-Hop Ultra Wide Band Wireless Network Communication
JP2007329877A (en) * 2006-06-09 2007-12-20 Canon Inc Transmission system of sound information
JP2010011420A (en) * 2008-06-30 2010-01-14 Canon Inc Wireless communication system
US20190156603A1 (en) * 2016-02-26 2019-05-23 Huf Hülsbeck & Fürst Gmbh & Co.Kg Method for activating of at least one security function of a security system of a vehicle
CN113411787A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Audio transmission method and electronic equipment
WO2022050561A1 (en) * 2020-09-01 2022-03-10 삼성전자주식회사 Electronic device and control method
WO2022068221A1 (en) * 2020-09-29 2022-04-07 南京中感微电子有限公司 Low-delay wireless audio sending and receiving method and device
CN112954758A (en) * 2021-02-02 2021-06-11 维沃移动通信有限公司 Network switching method and device and electronic equipment
WO2022197856A1 (en) * 2021-03-19 2022-09-22 Meta Platforms Technologies, Llc Systems and methods for ultra-wideband applications
CN113596723A (en) * 2021-08-05 2021-11-02 深圳华云时空技术有限公司 Fusion positioning method and system based on UWB and Bluetooth

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"蓝牙+UWB――高速无线通信的未来发展" *
夏露;陆际光;: "一种蓝牙与超宽带无线通信技术的结合方案" *
李渊;: "UWB/Bluetooth融合的话音传输研究" *

Also Published As

Publication number Publication date
CN115665716B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
WO2020147627A1 (en) Link selection method and related apparatus
US10313804B2 (en) Hearing device and a method of selecting an optimal transceiver channel in a wireless network
CN112492449B (en) Wireless earphone receiver and wireless earphone
US11764852B2 (en) Beam selection method, apparatus and system
CN104247548A (en) Communication using distributed channel access parameters
CN108834112A (en) A kind of relaying auxiliary D2D communication system power distribution method based on NOMA
CN111683413B (en) Method, terminal, network access device and storage medium for establishing multilink connection
CN108712778B (en) Channel selection method and related product
CN111756764B (en) Audio signal interaction method and system based on WiFi
US11558081B1 (en) Data transfer protocol for ultra-wideband (UWB)
US20160270105A1 (en) Access point managed concurrent transmissions
CN114095104B (en) Communication method, electronic equipment, chip system and storage medium
CN115002735A (en) Bluetooth control method, Bluetooth control device, storage medium and electronic equipment
CN115665716B (en) Audio data transmission method, electronic device, and computer-readable storage medium
CN114339547B (en) Sound box assembly, intelligent device, wireless audio playing system and communication method
CN216162855U (en) Multi-channel wireless earphone device
Vikulov et al. The airtime resource model of the ofdm channel in the task of the ieee 802.11 network efficiency estimation
CN112437418A (en) TWS device communication data configuration method, device, equipment, chip and medium
CN110856244A (en) AP power adjustment method and device
CN115665717B (en) Data transmission method, electronic equipment and computer readable storage medium
Moballegh et al. Analysis of cooperative communication in one-dimensional dense ad-hoc networks
CN112789806B (en) Data transmission method, device and storage medium
CN108449722A (en) Communication means and communication device
CN110225495B (en) Bluetooth communication system
CN110999338B (en) Multi-TB (transport block) alternate transmission processing method and device, communication equipment and 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
GR01 Patent grant
GR01 Patent grant