CN106407149A - Device and method for adjusting audio transmission of universal sequence bus - Google Patents

Device and method for adjusting audio transmission of universal sequence bus Download PDF

Info

Publication number
CN106407149A
CN106407149A CN201510647978.1A CN201510647978A CN106407149A CN 106407149 A CN106407149 A CN 106407149A CN 201510647978 A CN201510647978 A CN 201510647978A CN 106407149 A CN106407149 A CN 106407149A
Authority
CN
China
Prior art keywords
amount
voice data
transmission
feedback information
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510647978.1A
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.)
Shengwei Advanced Technology Co ltd
Original Assignee
Shengwei Advanced 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 Shengwei Advanced Technology Co ltd filed Critical Shengwei Advanced Technology Co ltd
Publication of CN106407149A publication Critical patent/CN106407149A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a device for adjusting audio transmission of a Universal Serial Bus (USB), which comprises: a buffer processor for receiving and storing an audio data transmitted via a USB and counting the audio data to generate an audio data amount; transmitting a feedback message via an Interrupt Endpoint (Interrupt Endpoint) according to the audio data amount by using a controller; and a transmission adjuster, receiving the feedback information to decide whether to adjust the transmission speed of the audio data. The technical scheme of the embodiment adjusts the transmission of the audio data by returning the feedback information through the interrupt tail end.

Description

The apparatus and method of universal serial bus audio transmission adjustment
Technical field
The apparatus and method that the present invention adjusts with regard to a kind of universal serial bus audio transmission.
Background technology
In the past, analogy audio frequency was play and was often applied in radio, analog television etc., direct with anaiog signal Drive loudspeaker.With scientific and technological progress, the evolution of the personal computer and the Internet and digit audio frequency signal processing Development, digit audio frequency play be applied to various electronic systems such as cinema, domestic, automobile etc. Sound equipment, and DVB-T, various types computer, walkman, mobile phone etc..Wherein audio signal is driven Dynamic function must possess the characteristic of low noise, high-quality so that acoustics is more sophisticated.
Analogy audio frequency is play and is often applied in radio, analog television etc., directly drives loudspeaker with anaiog signal ?.The transmission of existing digit audio frequency data is in a large number using universal serial bus (Universal Serial Bus, USB) interface.Such as ordinary circumstance is to be held numerical digit sound by universal serial bus main frame (Host) Frequency is held according to being sent to universal sequence bus unit (Device).Or using hand-held device by numerical digit sound Frequency evidence is transferred to adnexa (Accessory) via the interface of universal serial bus.Sound for instantaneity Frequency according to transmission and is play, and often makes because of the difference between the clock at adnexa end and the clock of hand-held device Become the damage of voice data, produce the situation playing pause or distortion.In the case, adnexa end can Via end (Isochronous Endpoint) when waiting, feedback information is returned to hand-held device, to adjust The transmission of voice data.
Some hand-held devices of above-mentioned situation or the Linux operation of embedded system (Embedded System) System cannot normally support Non-synchronous Mechanism (Asynchronous Mode), that is, via end when waiting The function that feedback information is returned by (Isochronous Endpoint).
The present invention proposes a kind of technology of universal serial bus audio transmission adjustment, and adnexa end is via interruption Feedback information is returned to hand-held device by end (Interrupt Endpoint), and then adjusts voice data Transmission.
Content of the invention
The embodiment of the present invention can provide with regard to universal serial bus (USB) audio transmission adjustment device with Method.
A disclosed embodiment is the dress with regard to a kind of adjustment of universal serial bus (USB) audio transmission Put, this device includes:One buffer, receives and storage is via a universal serial bus transmission One voice data, and count this voice data to produce an amount of audio data;One controller, foundation This amount of audio data transmits a feedback information via interrupting end (Interrupt Endpoint);And one biography Defeated adjustor, receives feedback information to decide whether to adjust the transfer rate of this voice data.
In an embodiment, this buffer includes a buffer, and this buffer is with sequence Row mode receives this voice data.
In an embodiment, this buffer includes an enumerator, this audio frequency number of this rolling counters forward According to producing this amount of audio data.
In an embodiment, this controller is by this amount of audio data and a upper limit amount and lower limit amount ratio Relatively, to determine this feedback information.
In an embodiment, if according to this feedback information, this transmission regulator represents that this amount of audio data is low In this lower limit amount, then the transfer rate of this voice data is heightened;If this transmission regulator is anti-according to this Feedforward information represents that this amount of audio data is higher than this upper limit amount, then adjust the transfer rate of this voice data Low.
Disclosed another embodiment is with regard to a kind of adjustment of universal serial bus (USB) audio transmission Method, the method includes:Using a buffer, receive and storage is via universal serial bus One voice data of transmission, and count this voice data to produce an amount of audio data;Using a control Device processed, transmits a feedback letter according to this amount of audio data via interrupting end (Interrupt Endpoint) Breath;And use a transmission regulator, receive feedback information to decide whether to adjust this voice data Transfer rate.
In an embodiment, this buffer receives this sound in serial fashion using a buffer Frequency evidence.
In an embodiment, this buffer produces this using this voice data of a rolling counters forward Amount of audio data.
In an embodiment, this controller is by this amount of audio data and a upper limit amount and lower limit amount ratio Relatively, to determine this feedback information.
In an embodiment, if according to this feedback information, this transmission regulator represents that this amount of audio data is low In this lower limit amount, then the transfer rate of this voice data is heightened;If this transmission regulator is anti-according to this Feedforward information represents that this amount of audio data is higher than this upper limit amount, then adjust the transfer rate of this voice data Low.
Brief description
Fig. 1 is a schematic diagram consistent with a disclosed embodiment, and a kind of universal serial bus are described The device of audio transmission adjustment.
Fig. 2 is a schematic diagram consistent with a disclosed embodiment, and the buffered in Fig. 1 is described Device.
Fig. 3 is a schematic diagram consistent with a disclosed embodiment, illustrates controller according to audio frequency number According to amount transmission one feedback information.
Fig. 4 is a schematic diagram consistent with a disclosed embodiment, and a kind of universal serial bus are described (USB) method of audio transmission adjustment.
Wherein, description of reference numerals is as follows:
The device of 100 universal serial bus audio transmission adjustment
110 buffer
111 voice datas
112 amount of audio data
120 controllers
121 feedback informations
130 transmission regulators
410 use a buffer, receive and store the sound via a universal serial bus transmission Frequency evidence, and count this voice data to produce an amount of audio data
420 use a controller, transmit a feedback information according to this amount of audio data via interrupting end
430 use a transmission regulator, receive feedback information to decide whether to adjust this voice data Transfer rate
Specific embodiment
Hereinafter, with reference to accompanying drawing, describe in detail according to embodiments of the invention, make this area person It is apparent to.Described innovation and creation can adopt the embodiment of multiple changes, when can not only limit In these embodiments.The present invention omit those of ordinary skill in the art it is well known that part (well-known Part description), and identical reference number represents identical element in the present invention.
The present invention proposes the technology of universal serial bus audio transmission adjustment, and adnexa end is via interruption end Feedback information is returned to hand-held device by (Interrupt Endpoint), and then adjusts the biography of voice data Defeated.Fig. 1 is to implement the consistent schematic diagram of example with disclosed one, illustrates that a kind of universal sequence is total The device of line audio transmission adjustment.
In FIG, the device 100 of this universal serial bus (USB) audio transmission adjustment includes:One Buffer 110, receives and stores the voice data 111 via a universal serial bus transmission, And count this voice data to produce an amount of audio data 112;One controller 120, according to this sound Frequency data volume 112 transmits a feedback information 121 via interrupting end (Interrupt Endpoint);And One transmission regulator 130, receives feedback information 121 to decide whether to adjust this voice data 111 Transfer rate.
The enforcement example of the device according to the adjustment of universal serial bus in Fig. 1 (USB) audio transmission, first First buffer 110, receives and stores the voice data via a universal serial bus transmission 111.Fig. 2 is to implement the consistent schematic diagram of example with disclosed one, and the buffering in Fig. 1 is described Processor 110.With reference to Fig. 2, a voice data 111 is transmitted by the universal sequence main frame that confluxes.Its Sound intermediate frequency data is the audio signal data of a sampling.Buffer 110 includes a buffer 210, e.g. one first in first out (First In First out, FIFO) bin, receive in serial fashion Voice data 111 through universal serial bus transmission.Buffer 110 also includes an enumerator 220 Carry out the capacity of the voice data of institute's buffer storage in count buffer bin 210, to produce voice data Amount 112, as shown in Figure 2.
The enforcement example of the device according to the adjustment of universal serial bus in Fig. 1 (USB) audio transmission, control Device 120 processed is anti-via interrupting end (Interrupt Endpoint) transmission one according to this amount of audio data 112 Feedforward information 121.Fig. 3 is to implement the consistent schematic diagram of example with disclosed one, and controller is described Transmit a feedback information according to amount of audio data.With reference to the enforcement example of Fig. 3, controller 120 can be by Amount of audio data B is compared with upper limit amount U and lower limit amount L, and determines a feedback information 121. Wherein upper limit amount U and lower limit amount L are upper limit amount U and lower limit amount L of buffer 210, example Capacity as assumed buffer 210 is 4Mb (million bit), and determines that upper limit amount U is 3Mb It is 1Mb with lower limit amount L.Wherein manner of comparison can use such as comparator, to compare news data Amount B is compared with upper limit amount U and lower limit amount L.If B U is it is determined that feedback information 121 is low frequency Rate.If B L is it is determined that feedback information 121 is altofrequency.If U>B>L is it is determined that anti- Feedforward information 121 is normal frequency.If above-mentioned B U, this amount of audio data is higher than that buffer holds The upper limit of amount, in this buffer, amount of audio data is higher.If above-mentioned B L, represent this audio frequency Data volume is less than the lower limit of buffer capacity, and in this buffer, amount of audio data is low.
The enforcement example of the device according to the adjustment of universal serial bus in Fig. 1 (USB) audio transmission, passes Defeated adjustor 130 receives feedback information 121 to decide whether to adjust the transmission speed of this voice data 111 Degree.In implementing example, if the feedback information 121 that transmission regulator 130 receives is altofrequency, table Show that in buffer, amount of audio data is low, then the transfer rate of this voice data 111 can be adjusted Whole for upper frequency, that is, heighten transfer rate.In implementing example, if transmission regulator 130 receives Feedback information 121 be low frequency, represent that in buffer, amount of audio data is higher, then can be by The transfer rate of this voice data 111 is adjusted to lower frequency, that is, turn down transfer rate.Implementing model In example, if the feedback information 121 that transmission regulator 130 receives is normal frequency, represent buffer storage In device, amount of audio data is between upper limit amount U and lower limit amount L, then the transmission of this voice data 111 Speed can not be adjusted.
Example is implemented according to another, a kind of Fig. 4 explanation universal serial bus (USB) audio transmission is adjusted Whole method, the method includes:Using a buffer, receive and storage is via a universal sequence One voice data of bus transmission, and count this voice data to produce an amount of audio data (step 410);Using a controller, according to this amount of audio data via interruption end (Interrupt Endpoint) Transmit a feedback information (step 420);And use a transmission regulator, receive feedback information Decide whether to adjust the transfer rate (step 430) of this voice data.
As it was previously stated, voice data in step 410 is the audio signal data of a sampling.Buffering Processor can be, for example, a first in first out (First In First out, FIFO) storage using a buffer Storage, receives the voice data through the transmission of universal serial bus reception interface in serial fashion.At buffering Reason device it is also possible to use the appearance that an enumerator carrys out the voice data of institute's buffer storage in count buffer bin Amount, to produce amount of audio data B.
As it was previously stated, at step 420, controller transmits a feedback information according to amount of audio data. Amount of audio data B can be compared by controller with upper limit amount U and lower limit amount L, and determines that one is anti- Feedforward information.Wherein upper limit amount U and lower limit amount L are upper limit amount U and lower limit amount L of buffer, The capacity of such as hypothesis buffer is 4Mb (million bit), and determines that upper limit amount U is 3Mb It is 1Mb with lower limit amount L.If B L is it is determined that feedback information is altofrequency.If U>B>L, Then determine that feedback information is normal frequency.If B U is it is determined that feedback information is low frequency.Above-mentioned If B is L, represent that this amount of audio data is less than the lower limit of buffer capacity, this buffer Interior amount of audio data is low.If above-mentioned B U, this amount of audio data is higher than buffer capacity The upper limit, in this buffer, amount of audio data is higher.
As it was previously stated, in step 430, transmission regulator receives feedback information to decide whether to adjust The transfer rate of this voice data.In implementing example, if the feedback information that transmission regulator receives is Altofrequency, represents that in buffer, amount of audio data is low, then can be by the transmission of this voice data Speed is adjusted to upper frequency, that is, heighten transfer rate.In implementing example, if transmission regulator connects The feedback information received is low frequency, represents that in buffer, amount of audio data is higher, then can will be somebody's turn to do The transfer rate of voice data is adjusted to lower frequency, that is, turn down transfer rate.In implementing example, If the feedback information that transmission regulator 130 receives is normal frequency, represent audio frequency number in buffer According to amount between upper limit amount U and lower limit amount L, then the transfer rate of this voice data can not be carried out Adjustment.
In sum, the present invention proposes a kind of technology of audio transmission adjustment, via interruption end Feedback information is returned by (Interrupt Endpoint), and then adjusts the transmission of voice data.
Accompanying drawing disclosed above and explanation, only presently preferred embodiments of the present invention, non-be in order to Limit the enforcement of the present invention, its institute's spirit under this invention of those of ordinary skill in the art, is made generally Change or modification, all should cover in scope of the presently claimed invention.

Claims (10)

1. a kind of device of universal serial bus audio transmission adjustment, this device includes:
One buffer, receives and stores the voice data via a universal serial bus transmission, And count this voice data to produce an amount of audio data;
One controller, transmits a feedback information according to this amount of audio data via interrupting end;And
One transmission regulator, receives this feedback information to decide whether to adjust the transmission speed of this voice data Degree.
2. device as claimed in claim 1 it is characterised in that this buffer include one delay Rush bin, this buffer receives this voice data in serial fashion.
3. device as claimed in claim 1 is it is characterised in that this buffer includes a meter Number devices, this voice data of this rolling counters forward is producing this amount of audio data.
4. device as claimed in claim 1 is it is characterised in that this controller is by this voice data Amount is compared with a upper limit amount and a lower limit amount, to determine this feedback information.
If 5. device as claimed in claim 4 was it is characterised in that this transmission regulator foundation should Feedback information represents that this amount of audio data is less than this lower limit amount, then adjust the transfer rate of this voice data High;If according to this feedback information, this transmission regulator represents that this amount of audio data is higher than this upper limit amount, The transfer rate of this voice data is turned down.
6. a kind of method of universal serial bus (USB) audio transmission adjustment, including:
Using a buffer, receive and store the audio frequency number via a universal serial bus transmission According to, and count this voice data to produce an amount of audio data;
Using a controller, transmit a feedback information according to this amount of audio data via interrupting end;With And
Using a transmission regulator, receive this feedback information to decide whether to adjust the biography of this voice data Send speed.
7. method as claimed in claim 6 is it is characterised in that this buffer uses one to delay Rush bin and receive this voice data in serial fashion.
8. method as claimed in claim 6 is it is characterised in that this buffer uses a meter This voice data of rolling counters forward is producing this amount of audio data.
9. method as claimed in claim 6 is it is characterised in that this controller is by this voice data Amount is compared with a upper limit amount and a lower limit amount, to determine this feedback information.
If 10. method as claimed in claim 9 was it is characterised in that this transmission regulator foundation should Feedback information represents that this amount of audio data is less than this lower limit amount, then adjust the transfer rate of this voice data High;If according to this feedback information, this transmission regulator represents that this amount of audio data is higher than this upper limit amount, The transfer rate of this voice data is turned down.
CN201510647978.1A 2015-07-31 2015-10-09 Device and method for adjusting audio transmission of universal sequence bus Pending CN106407149A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW104125007A TW201705010A (en) 2015-07-31 2015-07-31 Apparatus and method of USB audio transmission adjustment
TW104125007 2015-07-31

Publications (1)

Publication Number Publication Date
CN106407149A true CN106407149A (en) 2017-02-15

Family

ID=58007965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510647978.1A Pending CN106407149A (en) 2015-07-31 2015-10-09 Device and method for adjusting audio transmission of universal sequence bus

Country Status (2)

Country Link
CN (1) CN106407149A (en)
TW (1) TW201705010A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033781A (en) * 2018-01-10 2019-07-19 盛微先进科技股份有限公司 Audio-frequency processing method, device and non-transitory computer readable media
CN112533046A (en) * 2019-09-18 2021-03-19 新唐科技股份有限公司 Audio data synchronization device and method thereof
CN113132044A (en) * 2019-12-30 2021-07-16 新唐科技股份有限公司 Audio synchronous processing circuit and method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063627A1 (en) * 2000-09-08 2003-04-03 Masafumi Toshitani Synchronization control device
TW200921325A (en) * 2007-11-05 2009-05-16 Holtek Semiconductor Inc Frequency synchronous apparatus and method
TW201010288A (en) * 2008-08-26 2010-03-01 Holtek Semiconductor Inc Synchronization device for transmitting real-time audio data by USB
CN103561282A (en) * 2013-10-29 2014-02-05 联想中望系统服务有限公司 Streaming media file data transmission method and device
CN103973407A (en) * 2014-05-28 2014-08-06 北京经纬恒润科技有限公司 Data transmission rate matching method and device of remote data transmission system
CN104320699A (en) * 2014-10-22 2015-01-28 络达科技股份有限公司 Method for dynamically adjusting Bluetooth sounding device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063627A1 (en) * 2000-09-08 2003-04-03 Masafumi Toshitani Synchronization control device
TW200921325A (en) * 2007-11-05 2009-05-16 Holtek Semiconductor Inc Frequency synchronous apparatus and method
TW201010288A (en) * 2008-08-26 2010-03-01 Holtek Semiconductor Inc Synchronization device for transmitting real-time audio data by USB
CN103561282A (en) * 2013-10-29 2014-02-05 联想中望系统服务有限公司 Streaming media file data transmission method and device
CN103973407A (en) * 2014-05-28 2014-08-06 北京经纬恒润科技有限公司 Data transmission rate matching method and device of remote data transmission system
CN104320699A (en) * 2014-10-22 2015-01-28 络达科技股份有限公司 Method for dynamically adjusting Bluetooth sounding device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033781A (en) * 2018-01-10 2019-07-19 盛微先进科技股份有限公司 Audio-frequency processing method, device and non-transitory computer readable media
CN112533046A (en) * 2019-09-18 2021-03-19 新唐科技股份有限公司 Audio data synchronization device and method thereof
CN113132044A (en) * 2019-12-30 2021-07-16 新唐科技股份有限公司 Audio synchronous processing circuit and method thereof

Also Published As

Publication number Publication date
TW201705010A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
WO2015058656A1 (en) Live broadcast control method and main broadcast device
EP2326136A2 (en) Method and apparatus for remote controlling bluetooth device
TWI790236B (en) Volume adjustment method, device, electronic device and storage medium
CN109905812B (en) Input power control method and device and terminal equipment
CN103594103A (en) Audio processing method and related device
CN107613146B (en) Volume adjustment method and device and mobile terminal
CN109951602B (en) Vibration control method and mobile terminal
CN106407149A (en) Device and method for adjusting audio transmission of universal sequence bus
CN109076280A (en) Earphone system customizable by a user
CN112136331A (en) Correction for loudspeaker delay
CN104065401A (en) Voice transmission method based on HID bluetooth module and HID bluetooth voice communication device
CN110799936A (en) Volume adjusting method and device, terminal equipment and storage medium
KR20230119205A (en) Coding method, coding device, electronic device and storage medium
EP4275349A1 (en) Call audio playback speed adjustment
WO2021068875A1 (en) Uplink transmission control method and terminal
EP2709371A1 (en) Continuous data delivery with energy conservation
WO2023241026A1 (en) Data transmission method and apparatus, and terminal and storage medium
WO2020062862A1 (en) Voice interactive control method and device for speaker
CN112887776B (en) Method, equipment and computer readable storage medium for reducing audio delay
CN114356146A (en) Method and device for dynamically regulating and controlling game frame rate and computer readable storage medium
CN112770001A (en) Output volume regulation method, device and computer readable storage medium
EP4005119B1 (en) Radio frequency condition aware audio buffering
CN111935525A (en) Method for playing multimedia and electronic terminal equipment
CN111970668A (en) Bluetooth audio control method, equipment and computer readable storage medium
US12009916B2 (en) Radio frequency condition aware audio buffering

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170215

WD01 Invention patent application deemed withdrawn after publication