CN115002738A - Low-delay transmission method for converting audio into Bluetooth signal - Google Patents

Low-delay transmission method for converting audio into Bluetooth signal Download PDF

Info

Publication number
CN115002738A
CN115002738A CN202210585823.XA CN202210585823A CN115002738A CN 115002738 A CN115002738 A CN 115002738A CN 202210585823 A CN202210585823 A CN 202210585823A CN 115002738 A CN115002738 A CN 115002738A
Authority
CN
China
Prior art keywords
audio
sampling frequency
signal
bluetooth
bluetooth chip
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.)
Withdrawn
Application number
CN202210585823.XA
Other languages
Chinese (zh)
Inventor
李平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ousi Microelectronics Co ltd
Original Assignee
Shenzhen Ousi Microelectronics 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 Shenzhen Ousi Microelectronics Co ltd filed Critical Shenzhen Ousi Microelectronics Co ltd
Priority to CN202210585823.XA priority Critical patent/CN115002738A/en
Publication of CN115002738A publication Critical patent/CN115002738A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

A low-delay transmission method for converting audio frequency into Bluetooth signals relates to a wireless signal transmission technology, which connects a Bluetooth chip with a USB to a PC, then, the sampling frequency generated by the source of the audio and the sampling frequency generated by the USB connector with the Bluetooth chip are obtained by using the built-in software of the Bluetooth chip, calculating a deviation value between sampling frequency generated by an audio source and sampling frequency generated by a USB connector with a Bluetooth chip through software, and then adjusting data according to one or more +/-0.5 mu s in each transmission period by a method of dynamically adjusting a time interval PT of signal transmission data, the method and the device have the advantages that data of the sending end are enabled not to overflow or data are interrupted, and finally the audio signal is sent.

Description

Low-delay transmission method for converting audio into Bluetooth signal
Technical Field
The invention relates to the technical field of wireless transmission, in particular to a low-delay transmission method for audio Bluetooth signals.
Background
The Bluetooth technology is taken as a short-distance wireless transmission technology, the application is very wide, the traditional intelligent equipment generally does not have the transmission capability of Bluetooth, the application of data transmission is very difficult to solve aiming at some equipment without Bluetooth communication capability, the stability of transmission and the quality of transmission audio frequency also have higher requirements, the stability of data transmission and the quality of transmission audio frequency are improved at present, an extension Bluetooth connector is generally adopted, but the connector is not high generally in quality due to the diversification of equipment interfaces and protocols and the difference of signals. Sampling frequencies generated by any equipment and chips cannot be completely consistent, in the process of transmitting and transmitting the Bluetooth signals, in order to ensure that the signal playing effect is optimal, the same frequency of the signals is very important, most Bluetooth playing terminals do not optimize or process the signals, and the output signal effect is poor; or the processing is excessive, and the output signal is distorted; or other signal loss and interruption conditions occur.
Disclosure of Invention
The invention aims to provide a low-delay transmission method of audio conversion Bluetooth signals aiming at the defects and shortcomings of the prior art, which keeps the clocks of a signal sending main device and a wireless transmission sending end synchronous by adopting a method of dynamically adjusting a time interval PT of signal transmission data, so that the data of the sending end is not overflowed or interrupted, the quality of the transmitted signals is higher, and the output signals are closer to the original audio signals.
In order to achieve the purpose, the invention adopts the following technical scheme: the low-delay transmission method for converting audio into Bluetooth signals comprises the following steps:
connecting a Bluetooth chip with a USB to a PC, wherein the sampling frequency generated by the audio source on the PC is F0, the sampling frequency generated by a USB connector with the Bluetooth chip is F1, the audio source on the PC is a main device for sending signals, and the USB connector with the Bluetooth chip is a wireless transmission sending end;
acquiring the sampling frequency F0 generated by the audio source and the sampling frequency F1 generated by the USB connector with the Bluetooth chip in the step one by using Bluetooth chip built-in software, and calculating a deviation value delta F between the sampling frequency F0 generated by the audio source and the sampling frequency F1 generated by the USB connector with the Bluetooth chip through the software;
step three, according to the delta F in the step two, the data is adjusted according to one or more +/-0.5 mu s in each transmission period by a method of dynamically adjusting the time interval PT of the signal transmission data, so that the data at the transmitting end does not overflow or is interrupted;
and step four, sending the audio signal.
Further, the deviation value Δ F in the second step is obtained by measuring a deviation between clocks of the signal sending main device and the wireless transmission sending end in the first step, and the deviation is calculated by measuring a time of the wireless transmission sending end receiving a data packet of the signal sending main device.
Further, the deviation calculation formula is,
Figure BDA0003665892650000021
wherein RXppm represents a time deviation;
furthermore, the method for dynamically adjusting the time interval PT of the signal transmission data in step three is to take ± 0.5 μ s as unit time to adjust PT, and by using the following formula,
RXppm ± 0.5 μ s/(PT × M), the formula is further transformed,
M=±0.5μS/(PT×PXppm),
wherein RT represents the time interval of signal transmission data,
m represents the number of 0.5us left or right shifts in each PT interval, and the fractional part of M is approximately represented by a decimal number 32.
The working principle of the invention is as follows: the invention realizes the transmission of audio signals through Bluetooth by adding a connector with a Bluetooth chip and sending data of an audio signal generating device (such as a PC) to a third-party Bluetooth device, and in order to prevent output signals from being lost and overflowing, the invention adjusts and processes a sampling frequency F0 generated by an audio source and a sampling frequency F1 generated by a receiver.
Firstly, connecting a Bluetooth chip with a USB to a PC, then utilizing built-in software of the Bluetooth chip to obtain sampling frequency F0 generated by a source of audio and sampling frequency F1 generated by a USB connector with the Bluetooth chip, calculating a deviation value delta F between the sampling frequency F0 generated by the source of the audio and the sampling frequency F1 generated by the USB connector with the Bluetooth chip through the built-in software of the chip, then measuring the deviation of clocks of a transmitting signal main device (the source of the audio) and a wireless transmission transmitting terminal (the USB connector with the Bluetooth chip), wherein the deviation is obtained by measuring the time of receiving a data packet of the transmitting signal main device by the wireless transmission transmitting terminal, and the deviation calculation formula is as follows,
Figure BDA0003665892650000031
wherein RXppm represents a time deviation;
then, by using a method of dynamically adjusting the time interval PT of the signal transmission data, taking +/-0.5 mu s as unit time to adjust the PT, by using the following formula,
RXppm ± 0.5 μ S/(PT × M), the formula is further transformed,
M=±0.5μs/(PT×PXppm),
in the formula, RT represents a time interval of signal transmission data, M represents the quantity of left shift or right shift of 0.5us in each PT interval, the decimal part of M is approximately represented by 32 decimal parts, the data is adjusted according to a plurality of +/-0.5 mu s in each transmission period, so that the data at a transmitting end does not overflow or is interrupted, the quality of the transmitted signal is higher after adjustment, and the output signal is closer to the original audio signal.
After the technical scheme is adopted, the invention has the beneficial effects that:
1. the invention realizes that the clock of the main device for sending the signal and the clock of the wireless transmission sending end are kept synchronous, so that the data of the sending end does not overflow or is not interrupted, the quality of the transmitted signal is higher, and the output signal is closer to the original audio signal. .
2. The method for dynamically adjusting the time interval PT of the signal transmission data has the characteristics of good applicability, high reliability and the like.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of the present invention.
Fig. 2 is a schematic diagram of the signal transmission structure in the present invention.
Fig. 3 is a schematic diagram illustrating the principle of the cause of the deviation of the digital audio signal in the wireless transmission according to the embodiment of the present invention.
Fig. 4 is a schematic diagram of an application of the embodiment of the present invention.
Detailed Description
Referring to fig. 1 to 4, the technical solution adopted by the present embodiment is: the low-delay transmission method for converting audio into Bluetooth signals comprises the following steps:
1. connecting a USB connector with a Bluetooth chip OTK5280 to a PC (personal computer) through a USB port on the PC, wherein the sampling frequency generated by the audio source on the PC is F0, the sampling frequency generated by the USB connector with the Bluetooth chip OTK5280 is F1, the audio source on the PC is a main device for sending signals, and the USB connector with the Bluetooth chip is a wireless transmission sending end; 2. acquiring the sampling frequency F0 generated by the source of the audio and the sampling frequency F1 generated by the USB connector with the Bluetooth chip in the step one by using the built-in software of the Bluetooth chip OTK5280, and calculating a deviation value delta F between the sampling frequency F0 generated by the source of the audio and the sampling frequency F1 generated by the USB connector with the Bluetooth chip by the software; 3, according to the delta F in the step 1, by a method of dynamically adjusting the time interval PT of the signal transmission data, the data is adjusted according to a plurality of 0.5 mu s in each transmission period, so that the data at the transmitting end does not overflow or is not interrupted; and 4, transmitting the audio signal.
The deviation value delta F in the step 2 is obtained by measuring the deviation of the clocks of the signal sending main equipment and the wireless transmission sending end in the step one, the deviation is obtained by measuring the time of the wireless transmission sending end receiving a data packet of the signal sending main equipment, the deviation calculation formula is as follows,
Figure BDA0003665892650000041
wherein RXppm represents a time deviation;
furthermore, the method for dynamically adjusting the time interval PT of the signal transmission data in step three is to take ± 0.5 μ s as unit time to adjust PT by using the following formula,
RXppm ± 0.5 μ s/(PT × M), the formula is further transformed,
M=±0.5μS/(PT×PXppm),
wherein RT represents the time interval of signal transmission data,
m represents the number of 0.5us left-shifted in each PT interval,
the fractional part of M is approximately represented by a decimal number 32.
The invention realizes the transmission of audio signals through Bluetooth by adding a connector with a Bluetooth chip and sending data of an audio signal generating device (such as a PC) to a third-party Bluetooth device, and in order to prevent output signals from being lost and overflowing, the invention adjusts and processes a sampling frequency F0 generated by an audio source and a sampling frequency F1 generated by a receiver.
Firstly, a Bluetooth chip with a USB is connected to a PC, then the sampling frequency F0 generated by the source of the audio and the sampling frequency F1 generated by a USB connector with the Bluetooth chip are obtained by using the software built in the Bluetooth chip, calculating a deviation value delta F between a sampling frequency F0 generated by an audio source and a sampling frequency F1 generated by a USB connector with a Bluetooth chip through software built in the chip, wherein FIG. 3 is a schematic diagram of the principle of deviation generation of digital audio signals in wireless transmission, wherein tb-t4 is the delay of the compression algorithm, t5-tb is the time when the clock of the master device processing the transmission signal and the wireless transmission transmitting terminal are not synchronized, t5-tb is represented by Msyn, and by analyzing Msyn, if the clock of the transmitting signal master is faster than the radio transmitting end, tb shifts to the left, and the delay from the transmitting signal master to the radio transmitting end increases and accumulates. If the clock of the signaling master is slower than the radio transmitter, tb shifts to the right, the delay from the signaling master to the radio transmitter is reduced and accumulated, and the radio transmitter causes invalid data to be read once the clock has shifted to the right at t 5.
In order to solve the problem of Msyn drift, the deviation is obtained by measuring the deviation of clocks of a main device (audio source) for sending signals and a wireless transmission sending end (a USB connector with a Bluetooth chip), and the deviation is calculated by measuring the time of receiving a data packet of the main device for sending signals by the wireless transmission sending end, wherein the deviation calculation formula is as follows,
Figure BDA0003665892650000061
wherein RXppm represents a time deviation;
then, by using a method of dynamically adjusting the time interval PT of the signal transmission data, taking +/-0.5 mu s as unit time to adjust the PT, by using the following formula,
RXppm ± 0.5 μ s/(PT × M), the formula is further transformed,
M=±0.5μS/(PT×PXppm),
in the formula, RT represents a time interval of signal transmission data, M represents the quantity of left shift or right shift of 0.5us in each PT interval, the decimal part of M is approximately represented by 32 decimal parts, the data is adjusted according to a plurality of +/-0.5 mu s in each transmission period, so that the data at a transmitting end does not overflow or is interrupted, the quality of the transmitted signal is higher after adjustment, and the output signal is closer to the original audio signal.
The above description is only for illustrating the technical solution of the present invention and not for limiting, and other modifications or equivalent substitutions made by the technical solution of the present invention by those of ordinary skill in the art should be covered within the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solution of the present invention.

Claims (4)

1. The low-delay transmission method for converting the audio into the Bluetooth signal is characterized in that: it comprises the following steps:
connecting a Bluetooth chip with a USB to a PC, wherein the sampling frequency generated by the audio source on the PC is F0, the sampling frequency generated by a USB connector with the Bluetooth chip is F1, the audio source on the PC is a main device for sending signals, and the USB connector with the Bluetooth chip is a wireless transmission sending end;
step two, acquiring the sampling frequency F0 generated by the source of the audio in the step one and the sampling frequency F1 generated by the USB connector with the Bluetooth chip by using the built-in software of the Bluetooth chip, and calculating a deviation value delta F between the sampling frequency F0 generated by the source of the audio and the sampling frequency F1 generated by the USB connector with the Bluetooth chip by the software;
step three, according to the delta F in the step two, the data is adjusted according to one or more +/-0.5 mu s in each transmission period by a method of dynamically adjusting the time interval PT of the signal transmission data, so that the data at the transmitting end does not overflow or is interrupted;
and step four, sending the audio signal.
2. The method of claim 1, wherein the audio converting bluetooth signal comprises: and the deviation value delta F in the step two is obtained by measuring the deviation of the clock of the signal sending main equipment and the clock of the wireless transmission sending end in the step one, and the deviation is obtained by measuring the time of the wireless transmission sending end receiving a data packet of the signal sending main equipment.
3. The method of claim 2, wherein the audio converting bluetooth signal comprises: the deviation is calculated by the formula as follows,
Figure FDA0003665892640000011
in the formula, RXppm represents a time lag.
4. The method of claim 1, wherein the audio converting bluetooth signal comprises: the method for dynamically adjusting the time interval PT of the signal transmission data in the third step is to take +/-0.5 mus as unit time to adjust the PT, and by using the following formula,
RXppm ± 0.5 μ s/(PT × M), the formula is further transformed,
M=±0.5μS/(PT×PXppm),
in the formula, RT represents the time interval of signal transmission data,
m represents the number of 0.5us left or right shifts in each PT interval, and the fractional part of M is approximately represented by a decimal number 32.
CN202210585823.XA 2022-05-27 2022-05-27 Low-delay transmission method for converting audio into Bluetooth signal Withdrawn CN115002738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210585823.XA CN115002738A (en) 2022-05-27 2022-05-27 Low-delay transmission method for converting audio into Bluetooth signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210585823.XA CN115002738A (en) 2022-05-27 2022-05-27 Low-delay transmission method for converting audio into Bluetooth signal

Publications (1)

Publication Number Publication Date
CN115002738A true CN115002738A (en) 2022-09-02

Family

ID=83029678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210585823.XA Withdrawn CN115002738A (en) 2022-05-27 2022-05-27 Low-delay transmission method for converting audio into Bluetooth signal

Country Status (1)

Country Link
CN (1) CN115002738A (en)

Similar Documents

Publication Publication Date Title
CN108234105B (en) Clock skew compensation method and related system
US20210034096A1 (en) Systems and methods for clock synchronization in transmission of audio information
CN110636600B (en) Audio synchronous playing method for wireless equipment
CN110636349B (en) Audio synchronous playing method for wireless equipment
CN113473426A (en) Audio signal Bluetooth low-delay transmission method based on PC-USB connection
CN114039600A (en) Multichannel high-speed AD synchronous acquisition device and method
CN113556153A (en) Low-delay transmission method for converting audio data into Bluetooth signal
US20050156649A1 (en) Apparatus and method for generating clock signal
CN113473425A (en) Bluetooth low-delay transmission method for audio signals based on PC-SPDIF connection
CN115002738A (en) Low-delay transmission method for converting audio into Bluetooth signal
US11681323B2 (en) Data formatting of a low voltage drive circuit data communication system
CN113453206A (en) Audio signal Bluetooth low-delay transmission method based on PC-Slave I2S connection
CN115379549A (en) Low-delay Bluetooth wireless signal transmission method
CN110635892A (en) Data sampling system based on synchronization 422 standard
CN115175298A (en) Audio signal Bluetooth low-delay transmission method based on PC-SPDIF
CN215768986U (en) Digital radar intermediate frequency signal processing unit and digital phased array radar
CN115580899A (en) Wireless signal transmission method based on PC-USB
WO2022193328A1 (en) Serializing/deserializing circuit, serial data receiving method, and chip
US11477260B2 (en) Systems and methods for transmission of audio information
AU2022224718A1 (en) Uwb-based low-delay lossless digital audio transmission unit and system, and electronic device
CN209280640U (en) A kind of acoustic sensor array control circuit for acoustics camera
CN113556154A (en) Low-delay transmission method between Bluetooth chips
CN110417504B (en) Method for outputting signal solved in OTN from SERDES
CN113078978A (en) Synchronization method, system and test method for remote multi-ATE semiconductor test equipment
CN112946583A (en) Intermediate frequency signal processing unit and digital phased array radar with same

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220902

WW01 Invention patent application withdrawn after publication