WO2019072252A1 - 终端、终端外设、信号传输系统以及信号发送和接收方法 - Google Patents

终端、终端外设、信号传输系统以及信号发送和接收方法 Download PDF

Info

Publication number
WO2019072252A1
WO2019072252A1 PCT/CN2018/110144 CN2018110144W WO2019072252A1 WO 2019072252 A1 WO2019072252 A1 WO 2019072252A1 CN 2018110144 W CN2018110144 W CN 2018110144W WO 2019072252 A1 WO2019072252 A1 WO 2019072252A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
usb
bus
audio
channel
Prior art date
Application number
PCT/CN2018/110144
Other languages
English (en)
French (fr)
Inventor
蒋益相
连伟生
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US16/755,616 priority Critical patent/US11403245B2/en
Publication of WO2019072252A1 publication Critical patent/WO2019072252A1/zh

Links

Images

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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • 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/0016Inter-integrated circuit (I2C)
    • 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]
    • 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/38Universal adapter
    • G06F2213/3812USB port controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/09Applications of special connectors, e.g. USB, XLR, in loudspeakers, microphones or headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2460/00Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups
    • H04R2460/03Aspects of the reduction of energy consumption in hearing devices

Definitions

  • the present application relates to the field of electronic devices, but is not limited to the field of electronic devices, and in particular, to a terminal, a terminal peripheral device, a signal transmission system, and a signal transmitting and receiving method.
  • USB Universal Serial Bus
  • problems such as signal interference, signal delay, and large power consumption often occur, for example, the overall design of the earphone.
  • problems such as large signal interference, call delay, and large overall power consumption.
  • USB Audio Class USB Audio Class
  • USB Type-C pure digital headset can not solve the problem of excessive call delay under mobile network, and can not pass the communication test standard.
  • UAC USB Audio Class
  • USB Type-C headset by means of analog-to-digital mixing, that is, UAC technology when listening to music, and routing the analog signal of the traditional 3.5mm headset to the USB TYPE-C interface when making a call.
  • Figure 1 shows the analog-digital hybrid USB Type-C headset structure.
  • This mixed mode headset has the following problems:
  • USB TYPE-C interface is connected to the analog headphone adapter and then plugged into the earphone. The essence is still analog headphones. The signal is still easily interfered when listening to music and making calls. The high fidelity (HIFI) performance of the headphones is not good. To a reliable guarantee.
  • USB-inter IC Sound USB-inter IC Sound
  • USB-I2S USB integrated circuit built-in audio bus
  • I2S OVER USB technology audio signal flow through USB
  • the physical channel is used for data transmission.
  • the USB interface is usually hung on the application (AP) processor.
  • AP application
  • the AP can't sleep, the power consumption will be relatively large.
  • the I2S to USB, USB to I2S bridge should be used between the host and the headset. Conversion, the additional power consumption is also relatively large.
  • the addition of the AP and the conversion bridge can significantly reduce the battery life of the mobile terminal, and the user experience is deteriorated.
  • USB enumeration delay There is a USB enumeration delay in the analog and digital mode switching scenarios, and the user will perceive the stuck, which will reduce the overall experience of the user.
  • the embodiments of the present application provide a terminal, a terminal peripheral, a signal transmission system, and a signal transmission and reception method.
  • a terminal including: a first audio module connected to a universal serial bus USB socket in a terminal through an audio bus channel, configured to send a signal to be sent to a USB socket; a USB socket Configuring to provide a physical connection interface between the terminal and the terminal peripheral.
  • a terminal peripheral device including: a second audio module connected to a universal serial bus USB plug in a terminal peripheral through an audio bus channel, configured to communicate with a USB plug through an I2S bus The channel performs signal transmission; the USB plug is used to connect with the USB socket of the terminal to which the terminal peripheral is connected.
  • a signal transmission system comprising the terminal of any of the above, and the terminal peripheral of any of the above.
  • a signal sending method comprising: sending, by a terminal, a signal to be sent to a USB socket in a terminal through a bus channel, and sending a signal to be sent to the terminal peripheral via the USB socket; .
  • a signal receiving method including: the terminal peripheral receives a signal from the terminal through a universal data bus USB plug of the terminal peripheral, and sends the signal to the terminal through the audio bus channel.
  • the second audio module in the peripheral includes: the terminal peripheral receives a signal from the terminal through a universal data bus USB plug of the terminal peripheral, and sends the signal to the terminal through the audio bus channel.
  • the second audio module in the peripheral includes: the terminal peripheral receives a signal from the terminal through a universal data bus USB plug of the terminal peripheral, and sends the signal to the terminal through the audio bus channel.
  • the audio bus traverses the USB interface to connect the terminal peripheral, thereby realizing the signal between the terminal and the terminal peripheral through the audio bus. transmission. Since the audio bus transmits a digital signal, the problem that the signal is susceptible to interference due to the signal being an analog signal can be solved; for example, an I2S bus between integrated circuits (ICs) is taken as an example, since I2S is a A low-power bus, therefore, can solve the problem of large power consumption; since I2S is an audio bus between the internal chips of the terminal, it can reduce the delay and improve the user experience.
  • ICs integrated circuits
  • FIG. 1 is a schematic structural diagram of a mixed-mode USB Type-C earphone according to the related art
  • FIG. 2 is a schematic diagram of an optional I2S Naked Over USB Type-C interface according to an embodiment of the present application
  • FIG. 3a is a schematic diagram showing the principle of establishing an I2S and USB channel during forward insertion of an optional terminal peripheral according to an embodiment of the present application
  • FIG. 3b is a schematic diagram of a corresponding relationship between a socket and a plug pin when an optional terminal peripheral is positively inserted according to an embodiment of the present application;
  • FIG. 4a is a schematic diagram of an I2S and USB channel establishment when an optional terminal peripheral is reverse inserted according to an embodiment of the present application
  • FIG. 4b is a schematic diagram of a corresponding relationship between a socket and a plug pin when an optional terminal peripheral is reversely inserted according to an embodiment of the present application;
  • FIG. 5a is a circuit schematic diagram of an optional CC module according to an embodiment of the present application.
  • FIG. 5b is a circuit schematic diagram of another optional CC module according to an embodiment of the present application.
  • FIG. 6 is a flow chart of interaction between a host and a peripheral device in an optional CC bus interaction mode according to an embodiment of the present application
  • FIG. 7 is a flow chart of interaction between an optional terminal peripheral and a terminal using a USB bus interaction mode according to an embodiment of the present application
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an optional terminal according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a terminal peripheral device according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of another optional terminal peripheral device according to an embodiment of the present application.
  • FIG. 12 is a block diagram of an optional I2S single-mode digital earphone traversing a USB Type-C interface according to an embodiment of the present application.
  • FIG. 13 is a flow chart showing an interaction between an optional headset and a host using a CC bus according to an embodiment of the present application
  • FIG. 14 is a schematic diagram of an optional I2S-based and UAC dual-mode digital earphone based on an embodiment of the present application;
  • FIG. 15 is a schematic diagram of a circuit principle of an optional I2S-based and UAC dual-mode digital earphone according to an embodiment of the present application;
  • FIG. 16 is a structural block diagram of a CODEC module of an optional earphone according to an embodiment of the present application.
  • FIG. 17 is a flowchart of an I2S USBC mode of a dual mode headset when an optional host supports an I2S Naked Over USB Type-C architecture according to an embodiment of the present application;
  • FIG. 18 is a flowchart of a UAC mode of a dual mode earphone when an optional host supports a UAC architecture according to an embodiment of the present application;
  • FIG. 19 is a flowchart of a signaling method according to an embodiment of the present application.
  • FIG. 20 is a flowchart of a signal receiving method according to an embodiment of the present application.
  • a terminal peripheral that is, an external device connected to a terminal, refers to a hardware device connected to a host computer, which functions as a transmission, transfer, and storage of data and information.
  • the audio bus can be a bus for transmitting audio signals, including but not limited to Inter-IC Sound (I2S) bus, also known as integrated circuit built-in audio bus, which can be configured as data between audio devices.
  • I2S Inter-IC Sound
  • Transmission which uses a design to transmit clock and data signals along separate wires, enabling separation of data and clock signals.
  • the analog signal is easily interfered, and the signal transmission can be performed digitally.
  • USB USB-to-Edge Adaptive MultiMediaCard
  • the bridge mode can be used to put the AP application processor to sleep.
  • the call delay under the mobile communication network must meet the communication specification requirements, that is, the call delay should be small.
  • the adopted scheme must have the following characteristics: digital mode, low power consumption, and call delay to meet the requirements.
  • the UAC headset After studying the UAC protocol, it was found that the UAC headset has a delay and consumes a lot of power because the UAC architecture uses the USB-I2S bridge mode.
  • the audio signal transmission uses the I2S OVER USB technology, and the audio signal flows away from the USB physical channel. .
  • the I2S OVER USB technology requires the packaging and unpacking of I2S format data to USB format data.
  • the signal delay and the power consumption increase, and the power consumption of the USB channel is relatively large.
  • the technical solution adopted in the embodiment of the present application saves the process of packaging and unpacking the I2S data to the USB data, and passes the USB data.
  • the channel transmits signals and streaks through the USB Type-C.
  • USB Type-C interface makes the number of buses transmitting audio data not only two, but more than four.
  • I2S is a low-power bus
  • low power consumption is a basic attribute, so low power consumption is also a basic feature of the I2S Naked Over USB Type-C architecture.
  • the I2S Naked Over USB Type-C architecture signal transmission is also purely digital. Pure numbers are also a fundamental feature of the I2S Naked Over USB Type-C architecture.
  • I2S itself is a kind of digital audio bus commonly used in mobile communication platforms. It is used to transfer call audio data between the baseband processor and audio CODEC inside the host. The call delay is low, so the I2S Naked Over USB Type-C architecture is also A low latency architecture.
  • USB Type-C the I2S Naked Over USB Type-C architecture has a series of features that solve the problems of UAC headsets and analog-to-digital hybrid USB Type-C headsets: 1) pure digital, strong anti-interference ability; 2) low power consumption and strong endurance; 3) The delay is small, and the mobile call meets the requirements of the communication specification.
  • the embodiment of the present application provides a corresponding solution, that is, the I2S is taken out from the host system architecture, and crosses the USB Type-C interface to connect audio peripherals such as headphones. Use this low-power audio bus to pass digital audio signals between the host and peripherals. It should be noted that the foregoing architecture provided in the embodiments of the present application is applicable not only to the transmission of audio signals, but also to the transmission of other types of signals that need to be exchanged between the terminal and the terminal peripherals.
  • This embodiment provides a system for an I2S Naked Over USB Type-C interface.
  • the system includes: a host (also referred to as a terminal or a computer device), a terminal peripheral, and a host.
  • An audio bus (for example, an I2S bus) channel is provided.
  • the audio bus can be a bus that carries digital signals.
  • the host includes a CC controller module, a power management module, a forward and reverse channel switching module, a USB Type-C Receptacle, a CPU system module, and a host CODEC module.
  • the CC controller module is used to complete the host forward and reverse connection state identification through the CC bus.
  • the system can also perform signal handshake interaction with the USB Type-C Cable Controller module on the peripheral side through the CC bus to complete the acquisition of the peripheral tag and the initialization of the peripheral CODEC module.
  • the CC controller is required to support the USB PD protocol so that it can read the EMCA (Electronically Marked Cable Assembly) peripheral electronic tag in the peripheral USB Type-C Cable Controller module through the CC bus.
  • EMCA Electro Mechanical Marked Cable Assembly
  • the power management module which is responsible for host power management, must support the USB OTG function and have the ability to power peripherals.
  • the forward and reverse channel switching module can be used to connect the I2S physical signal line sent by the host CODEC module to the corresponding pin of the USB Type-C Receptacle.
  • USB Type-C Receptacle the physical connection interface between the host and the peripheral
  • CPU system module including application processor, baseband processor, memory,
  • the hardware system platform chip such as RF transceiver, in addition to the functions of signal transceiving and conversion between the mobile network base station, is also responsible for completing the establishment control and signal interaction of the host I2S bare-bones channel.
  • Host CODEC module including audio CODEC, ADSP, SPEAKER, RECEIVER,
  • Audio amplifiers etc. Signal interaction with the I2S bus between the forward and reverse channel switching modules.
  • USB Controller module Peripheral side part, USB Controller module, USB Type-C Cable Controller module, peripheral CODEC module, peripheral power supply module, USB Type-C Plug.
  • USB2.0 bus I2S bus
  • channel configuration CC bus power supply line
  • common ground common ground
  • the USB Device Controller module has the function of identifying basic information of the peripheral device, including: an I2S bus traversing the USB Type-C peripheral; the channel and pin definition of the I2S traversing the USB Type-C ; USB Device device number and product serial number.
  • the module can also be configured to perform signal handshake interaction with the CPU system module on the host side to complete the reporting of the peripheral identification information; and complete the initialization and register setting of the peripheral CODEC module when the peripheral CODEC module is set to the bus.
  • the USB Type-C Cable Controller module has the function of identifying basic information about peripherals. This information includes: This is an I2S bus that traverses USB Type-C peripherals; the audio bus (I2S) traverses USB Type-C channels and pins. Definition; the peripheral is a special EMCA electronically marked cable.
  • the peripheral CODEC module includes an audio CODEC, a microphone DAC, an audio DAC, an audio amplifier, a HID (Human Interface Device), a SPEAKER, a microphone, etc., and a digital audio signal is transmitted between the USB Type-C Plug and the I2S bus.
  • the peripheral power supply module obtains the power from the USB Type-C Plug VBUS or VCONN pin, converts it to the voltage required by each module on the peripheral side, and manages the power-on sequence.
  • USB Type-C Plug the physical connection interface between the peripheral and the host, completes the function of plugging and unplugging with the USB Type-C Receptacle of the host.
  • x1, x2, x3, and x4 represent four signal lines of the peripheral side I2S; X1, X2, X3, and X4 represent four signal lines of the host side I2S; and four signal lines of the I2S.
  • the four signals x1, x2, x3, and x4 of the I2S are passed from the peripheral side USB Type-C Plug's B6, B7, A8, and B8 pins through the USB Type-
  • the C interface and the forward and reverse insertion channel switching modules are sent to X1, X2, X3, and X4 on the host side.
  • the principle of the I2S channel setup circuit is shown in Figures 3a, 3b, 4a and 4b. As shown in FIG.
  • the forward and reverse insertion channel switching module is composed of three dual single-pole double-throw switches MUX0, MUX1, MUX2, and the two-way single-pole double-throw switch with switch control signal SW and channel on/off Can signal EN.
  • Fig. 3b The corresponding relationship between the plug and the socket during the plugging is shown in Fig. 3b. As shown in FIG.
  • the USB Type-C interface supports the forward and reverse insertion, forward insertion and reverse insertion monitoring, which is completed by the CC controller and reported to the CPU system module; the instructions for the forward and reverse channel switching are issued by the CPU system module, and 3 switches are controlled.
  • the control lines SW0, SW1, and SW2 are simultaneously thrown or thrown to perform.
  • the channel of the interaction signal between the host and the peripheral is configured to use the CC bus CC bus to complete the identification of the host forward and reverse connection status.
  • the CC line is also used as the interaction bus between the host and the peripheral to complete the host identification and connection status recognition and CC behavior such as device identification and control settings of the audio module. See Figure 5a and Figure 5b. Figures 5a and 5b are taken from the USB Type-C Cable and Connector Specification Release 1.2/March 25, 2016. To define the behavior of the CC, two resistors Rp and Rd are introduced; there may be changes in the actual device.
  • Rp can be replaced by a current source; in the initial case, the DFP CC terminal has Rp pull-up, and the UFP CC terminal has Rd pull-down; Power Cable The Vconn pin has Ra pull-down (in some cases, pure resistance, and some cases are load); DFP needs to be able to identify Rd, Ra, that is, DFP identifies Rd or Ra, distinguishes UFP connection or Power Cable and CC direction; UFP passes Sence The voltage of the two CC pins (beyond OV is CC) determines the insertion direction.
  • USB2.0 data cable for interaction signal between host and peripheral When using USB Device Controller as device controller, use USB2.0 D+/D-data cable as the interactive bus between host and peripheral to complete the device. Identification and control settings for the audio module, etc.
  • the power supply line and the ground line of the interaction signal between the host and the peripheral complete the power transmission between the host and the peripheral, and provide a signal mirror circuit of the USB, I2S, CC bus.
  • Table 1 shows the USB Type-C host status identification table, "USB Type-C Host Connection Status Identification Table", which describes the host's ability to sense the resistance of two CC pins to determine whether there is a UFP or Power Cable connection and discriminate between positive and negative. Plug, Debug Accessory Mode connected or Audio Adapter Accessory Mode connected.
  • DFP is the abbreviation of Downstream Facing Port, which means the downlink port, which can be understood as the host CC controller.
  • UFP is the abbreviation of Upstream Facing Port, which means the uplink port, which can be understood as the peripheral side device control module.
  • the interaction between the host and the peripheral can be performed in two ways, the CC bus interaction mode and the USB bus interaction mode.
  • the peripheral side USB Type-C Cable Controller acts as a device controller, and externally connects to the CC bus, and internally controls the peripheral CODEC module through the control bus I2C or SPI, GPIO, and the like.
  • the specific process is shown in Figure 6.
  • USB bus interaction mode flow peripheral device USB Device Controller as device controller, external connection USB Type-C Plug USB D+/D-bus, control bus I2C or SPI, GPIO, etc. of internal peripheral CODEC module.
  • peripheral device USB Device Controller as device controller
  • external connection USB Type-C Plug USB D+/D-bus control bus I2C or SPI, GPIO, etc. of internal peripheral CODEC module.
  • control bus I2C or SPI GPIO
  • the I2S Naked Over USB Type-C architecture can solve the problems of poor anti-interference ability, high power consumption, and large delay of the UAC earphone and the analog-digital hybrid USB Type-C earphone. : Because it can use pure digital signal transmission, it has strong anti-interference ability; because I2S bus is a low-power bus, it has strong endurance; and it is a kind of digital audio bus commonly used in mobile communication platforms, which is used in The internal baseband processor and the audio CODEC are used to transmit the call audio data, and the call delay is low and the delay is small, which satisfies the requirements of the mobile call.
  • the embodiment provides a terminal, and the terminal is connected to the terminal peripheral connected thereto through the I2S bus channel.
  • the terminal 80 includes:
  • the first audio module 802 is connected to the universal serial bus USB socket in the terminal through an audio bus (for example, an inter-IC audio I2S bus) channel, and is configured to send a signal to be transmitted to the USB socket.
  • the first audio module 802 can be an audio CODEC, a MIC DAC, a headphone DAC, a headphone amplifier, a headphone wire identification circuit, an encoder, and the like in the terminal.
  • the USB socket 804 is configured to provide a physical connection interface between the terminal and the terminal peripheral.
  • the USB socket is a USB Type-C socket.
  • the terminal further includes a forward/reverse channel switching module 806, which is disposed on an audio bus (for example, an I2S bus). And connecting to the first audio module and the USB socket respectively through the audio bus (for example, an I2S bus).
  • an audio bus for example, an I2S bus
  • the terminal may further include: a channel (Configuration Channel, CC for short) controller 808, configured to identify a forward/reverse plug connection state when the terminal peripheral accesses the terminal. And the above-mentioned forward and reverse plug connection status is notified to the system module 810 for information interaction with the network side;
  • a channel Configuration Channel, CC for short
  • the system module 810 is connected to the first audio module 802 and the forward/reverse channel switching module 806, and configured to control the forward/reverse channel switching module 806 to establish the audio bus according to the forward/reverse plug connection state (for example, I2S). Bus) channel.
  • the system module 810 can include, but is not limited to, an application processor, a baseband processor, a memory, a radio frequency transceiver, and the like, and a hardware system platform chip, which is also responsible for completing functions such as signal transceiving and conversion between the mobile network base station. Host audio streaking channel establishment control and signal interaction.
  • the audio bus is an I2S bus
  • the I2S bus in the I2S bus channel is connected to the B6, B7, A8, and B8 pins in the USB Type-C socket through the forward/reverse channel switching module;
  • the above I2S bus includes the following signal lines: serial bit clock SCLK, frame clock LRCK, serial out data SDATA_O, and serial input data SDATA_I.
  • the embodiment further provides a terminal peripheral device.
  • the terminal peripheral device 10 includes:
  • the second audio module 102 is connected to the universal serial bus USB plug in the terminal peripheral through an inter-IC audio and audio bus (for example, an I2S bus) channel, and configured to communicate with the USB plug through the audio bus (eg, an I2S bus) channel.
  • an inter-IC audio and audio bus for example, an I2S bus
  • the audio bus eg, an I2S bus
  • the USB plug 104 is configured to be connected to a USB socket of the terminal to which the terminal peripheral is connected.
  • the USB plug 104 described above is a USB Type-C plug.
  • the terminal peripheral device 10 may further include:
  • the device control module 106 is connected to the USB Type-C plug 104, and is configured to maintain the description information of the terminal peripheral device, where the description information includes at least one of the following: used to identify the terminal peripheral device to support the second audio.
  • the device control module 106 is further configured to be connected to the second audio module through an I2C bus for initial configuration of the second audio module.
  • the device control module 106 is further configured to control the second audio module to establish the I2S bus channel, and send the first notification information to the terminal, where the first notification information is used to notify the terminal of the following information:
  • the above terminal peripherals have established an audio bus (eg, I2S bus) bus channel.
  • the device control module 106 is further configured to receive second notification information sent by the terminal, where the second notification information is used to notify the terminal peripheral device that the terminal has established the audio bus (for example, I2S bus) channel.
  • the audio bus for example, I2S bus
  • the I2S in the I2S bus channel is connected to the B6, B7, A8, and B8 pins of the USB Type-C plug described above; or the A2S, A7, A8, and B8 of the above USB Type-C plug are cited.
  • the I2S is connected to the A6, A7, B6 and B7 pins of the USB Type-C plug described above; wherein the I2S includes the following signal lines: serial bit clock SCLK, frame clock LRCK, serial output data SDATA_O and Serialize the data into SDATA_I.
  • the terminal peripheral device may further include: a switch module 108, configured to: when the terminal supports the first working mode, turn on the I2S bus channel, and support the terminal.
  • the I2S bus channel In the second working mode, the I2S bus channel is closed and a USB channel between the second audio module and the USB plug is opened, and the USB channel includes a USB to I2S bridge circuit; wherein, in the first working mode, the terminal is The first audio module is connected to the USB socket through the I2S bus channel; in the second working mode, the first audio module is connected to the USB socket through the USB channel.
  • the terminal peripherals can also be divided into single-mode digital earphones and dual-mode digital earphones according to different working modes of the terminal.
  • the following two earphones are described in detail.
  • the device controller and control bus on the peripheral side two implementations of I2S traversing the USB Type-C interface are provided.
  • -C interface single-mode digital headset one is to use the USB Device Controller as a device controller to provide a dual-mode digital headset with I2S traversing the USB Type-C interface.
  • I2S traversing USB Type-C interface Single-mode digital audio equipment is an audio peripheral based on the I2S Naked Over USB Type-C architecture.
  • a headset peripheral that is, an I2S traversing a USB Type-C interface headset, referred to as an I2S USBC headset.
  • the I2S USBC headset has the following features
  • the headphone wire control button operation information (volume addition and subtraction, connection hang up, pause, fast forward, etc.) is transmitted between the host and the host through the CC bus;
  • the I2S data cable uses the B6/B7/A8/B8 pins of the USB Type-C Plug.
  • the I2S USBC headset architecture consists of headphones, a host, and interactive signals between the host and the headset. Pass the I2S directly through the USB Type-C interface to deliver audio signals. The control signal and the data signal go to the CC bus.
  • the side part of the earphone includes a device control module, a headphone CODEC module, a headphone power supply module, a headphone USB Type-C Plug, and a headphone body.
  • the host side part in addition to the CPU system module and the host CODEC module, must also include a CC controller module, a power management module, a positive channel switching module, and a USB Receptacle.
  • the interaction signal between the host and the earphone I2S bus, CC bus, power supply line, common ground.
  • the module functions of the I2S USBC headset are identical to the I2S USBC headset:
  • the device controller module uses the USB Type C Cable Controller form and the device identification is a special EMCA electronic tag cable. It has the function of identifying the basic information of the I2S USBC headset. This information includes: This is an I2S bus USB Type-C interface headset; I2S is defined on the B6/B7/A8/B8 pins.
  • the CC controller is used to communicate with the CC controller module on the host side to complete the reporting of the headset identification information. Between the headset and the Audio module, the I2C bus is used as the initialization bus for communication, and the initialization of the headset CODEC module is completed. Power is supplied to the CC controller module on the host side via VCONN.
  • EMCA is the Electrically Marked Cable Assembly electronic component cable assembly, and EMCA is part of the USB PD. EMCA follows the ⁇ SOP'/SOP "Communication with Cable Plugs" in the USB PD protocol.
  • USB PD is a BMC code (Bi-phase Mark Code) signal, while the previous USB is FSK (Frequency-shift Keying frequency) Shift keying); USB PD is transmitted on the CC pin, USB PD has a VDM (Vendor Defined Messages) function, defines the device ID, can be used to define the headset label; can also define the register of the headset CODEC module Mapping table. When the host sets the register of the headphone CODEC module, it can be completed by this register mapping table.
  • VDM Vendor Defined Messages
  • I2C interface I2S interface
  • I2S interface directly connected to B6/B7/A8/B8 pins of USB Type-C Plug.
  • the power is taken from the VBUS of the USB Type-C Plug, converted to the voltage required for each module on the earphone side, and the power-on sequence is managed.
  • Headphone body
  • the technical effect of the I2S USBC headset is:
  • the I2S USBC headphone solution has low power consumption, and the signal transmission uses the I2S low-power digital audio bus; compared with the UAC solution, the power consumption of the AP can't sleep when I2S to USB, USB to I2S, and USB work is saved. .
  • the I2S USBC headset solution is low cost.
  • the USB-I2S bridge conversion chip is not needed on the earphone side; for the analog-to-digital hybrid earphone, the rear-stage circuit does not need to add a dual-headphone switch chip; in comparison with the channel-time division multiplexing analog-to-digital hybrid earphone, the USB is further saved.
  • the front-end USB and headphone signal switch of the port is not needed on the earphone side; for the analog-to-digital hybrid earphone, the rear-stage circuit does not need to add a dual-headphone switch chip; in comparison with the channel-time division multiplexing analog-to-digital hybrid earphone, the USB is further saved.
  • the front-end USB and headphone signal switch of the port is not needed on the earphone side; for the analog-to-digital hybrid earphone, the rear-stage circuit does not need to add a dual-headphone switch chip; in comparison with the channel-time division multiplexing analog-to-digital hybrid
  • the I2S USBC headset HIFI performance is more secure.
  • the scheme is purely digital, and the digital signal is not easily interfered.
  • the rear-stage circuit does not need to add a dual-headphone switch, thereby avoiding the insertion of the audio signal caused by the switch.
  • the USB and headphone signal switching switches are further eliminated, and the audio signal insertion loss caused by the switch is further avoided.
  • the I2S USBC headset solution fully meets the mobile call delay requirements.
  • the audio channel is exactly the same as a traditional mobile phone, and the natural call delay is the same as that of a traditional mobile phone.
  • the headset I2S USBC headset solution the software uses the traditional audio architecture, the development of headphones is relatively less difficult, the headset is fully digitized in advance, the product is easier to seize market opportunities.
  • the digital earphone design under the UAC architecture that fully satisfies the requirements of mobile call delay needs to wait for the UAC standard to improve, waiting for the host hardware platform and software architecture optimization, in time.
  • the peripheral device USB Device Controller is used as the device control module, and the USB D+/D-bus is used as the interactive bus to connect the USB Type-C Plug.
  • the internal control bus I2C or SPI, GPIO, etc. are connected to the peripheral CODEC module.
  • a digital audio peripheral architecture of another I2S Naked Over USB Type-C interface that traverses the USB Type-C interface can be designed.
  • Some USB Device Controllers have U2S-I2S bridge function, so it is easy to design an audio peripheral that supports both I2S Naked Over USB Type-C interface architecture and UAC function.
  • a headset peripheral namely a dual-mode digital headset
  • modulo 1 I2S Naked Over USB Type-C architecture
  • modulo 2 UAC architecture based on I2S Over USB technology.
  • the following is sometimes referred to as the I2S & UAC dual mode headset.
  • the I2S&UAC dual-mode earphone has the following features: UAC digital headphone function; I2S USBC digital headphone function; the headphone has two working modes: UAC mode and I2S USBC mode, and the I2S USBC mode has priority.
  • control signals, audio signals, and data signals are transmitted between the host and the host via the USB bus.
  • the audio signal is transmitted between the host and the host through the I2S bus, and the control signal and the human-computer interaction signal are transmitted through the USB D+/D-bus (the headphone is the volume of the line control key plus or minus, call, pause, etc.).
  • the I2S data cable uses the B6/B7/A8/B8 pins of the USB Type-C Plug.
  • the device label is implemented by the USB Device tag method.
  • the I2S&UAC dual-mode earphone architecture consists of an earphone, a host, and an interactive signal path between the host and the headset.
  • the headset has two working modes, the working mode 1 is the I2S USBC mode: the I2S directly passes the USB Type-C interface to transmit the audio signal; the working mode 2 is the UAC mode, and the I2S is packaged into the USB data format (I2S Over USB) to transmit audio signal. Both the control signal and the data signal go through the USB D+/D-bus.
  • the side part of the earphone includes a device control module, a headphone CODEC module, a headphone power supply module, a headphone USB Type-C Plug, an Rd grounding resistor, and a headphone body.
  • the host side part in addition to the CPU system module and the host CODEC module, must also include a CC controller module, a power management module, a positive channel switching module, and a USB Receptacle.
  • the interaction signal between the host and the headset USB bus, I2S bus, CC bus, power supply line, common ground.
  • This information includes: This is an I2S & UAC dual-mode headset that supports I2S USBC headset mode and UAC mode; the I2S bus is defined in the USB Type-C B6/B7/A8/B8 pins. Communicate with the CPU system module on the host side with the USB D+/D-bus, complete the reporting of the headset identification information, and complete the initialization of the headset CODEC module. Between the headphone and the CODEC module, an I2S bus is used to transmit audio uplink and downlink data, the I2C bus is used to transmit control and status data, and the SPI bus is used to transmit the firmware data of the headphone CODEC module. The mode switching function of I2S USBC headphone mode and UAC mode is also completed.
  • the power is taken from the VBUS of the USB Type-C Plug, converted to the voltage required for each module on the earphone side, and the power-on sequence is managed.
  • Rd grounding resistance It is a USB Device device.
  • the CC bus on the host side detects the grounding resistance of the headset and completes the USB device insertion identification.
  • I2C interface Including audio I2S HUB, CODEC, MIC DAC, headphone DAC, headphone amplifier, headphone line control identification and encoding, etc., with I2C interface, dual I2S interface, one I2S interface directly connected to USB Type-C Plug B6/B7/A8/ B8 pin, another I2S interface to the I2S interface of the device controller (with USB-I2S bridge).
  • the block diagram of the headphone CODEC module can be seen in Figure 16.
  • the I2S Hub in Fig. 16 can be implemented in a low power FPGA in this embodiment, and can of course be implemented by an Audio DSP.
  • the I2S2 channel must have an I2S on/off module that is turned on or off by default when powered up. Because the general host USB Type-C socket ports A6 and B6 are short-circuited, A7 and B7 are short-circuited, when the dual-mode headphones are plugged into the general host, the A6 and B6, A7 and B7 pins of the USB Type-C plug port on the headphone side will Shorted up from the host side.
  • the headset works in mode 1, ie, I2S USBC mode. See Figure 17 for the workflow of the dual-mode headset in I2S USBC mode.
  • the I2S&UAC dual-mode earphone has good versatility. When the host meets the I2S Naked Over USB Type-C architecture, the I2S USBC mode is used. When the host only meets the UAC architecture, the UAC mode is used.
  • the I2S&UAC dual-mode earphone solution uses the I2S USBC mode for low power consumption, and the audio signal transmission uses the I2S low-power digital audio bus.
  • the I2S to USB, USB to I2S, and USB work are saved. The power consumption of the AP not sleeping can be wasted.
  • the I2S & UAC dual mode headset solution is low cost. Compared with the analog-mode hybrid earphone, the rear-stage circuit does not need to add a dual-headphone switch chip; in contrast to the channel-time-multiplexed analog-to-digital hybrid earphone, the front-end USB and headphone signal switch of the USB port are further eliminated.
  • the I2S & UAC dual-mode headphones HIFI performance is more secure.
  • the scheme is purely digital, and the digital signal is not easily interfered.
  • the rear-stage circuit does not need to add a dual-headphone switch, thereby avoiding the insertion of the audio signal caused by the switch.
  • the USB and headphone signal switching switches are further eliminated, and the audio signal insertion loss caused by the switch is further avoided.
  • the I2S&UAC dual-mode headset solution fully meets the mobile call delay requirement when using the I2S USBC mode.
  • the audio channel is completely the same as the traditional mobile phone, and the natural call delay is the same as that of the traditional mobile phone, meeting the call delay requirement.
  • the headset I2S & UAC dual-mode headset solution the software uses the traditional audio architecture, the development of headphones is relatively less difficult, the headset is fully digitized in advance, the product is easier to seize market opportunities.
  • the digital headset design under the pure UAC architecture that fully satisfies the requirements of mobile call delay needs to wait for the UAC standard to improve, waiting for the host hardware platform and software architecture optimization, in time.
  • FIG. 19 is a flowchart of a signal sending method according to an embodiment of the present application. As shown in FIG. 19, the method includes
  • step S1902 the terminal sends a signal to be sent to the USB socket in the terminal through the inter-IC audio I2S bus channel; in some embodiments, the USB socket is a USB Type-C socket.
  • Step S1904 The terminal sends the to-be-sent signal to the terminal peripheral via the USB socket.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present application.
  • This embodiment provides a signal receiving method. As shown in FIG. 20, the method includes:
  • step S2002 the terminal peripheral receives the signal from the terminal through the universal data bus USB plug of the terminal peripheral; in some embodiments, the USB plug is a USB Type-C plug.
  • step S2004 the signal is sent to the second audio module in the terminal peripheral through the I2S bus channel.
  • the terminal peripheral determines the operating mode of the terminal before transmitting the signal to the second audio module in the terminal peripheral through the I2S bus channel; and turns on the I2S when the working mode is the first operating mode a bus channel, and when the terminal supports the second working mode, the I2S bus channel is closed and a USB channel between the second audio module and the USB plug is opened, and the USB channel includes a USB to I2S bridge circuit; wherein, in the first working mode The first audio module in the terminal is connected to the USB socket through the I2S bus channel; in the second working mode, the first audio module is connected to the USB socket through the USB channel.
  • modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
  • they may be implemented by program code executable by a computing device such that they may be stored in a storage device for execution by the computing device and, in some cases, may differ from this
  • the steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the application is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Information Transfer Systems (AREA)
  • Headphones And Earphones (AREA)

Abstract

本申请实施例提供了一种终端、终端外设、信号传输系统以及信号发送和接收方法,其中,上述终端包括:第一音频模块,通过IC间音频总线通道与终端中的通用串行总线USB插座连接,配置为将待发送信号发送至USB插座;USB插座,用于提供终端与终端外设之间的物理连接接口。

Description

终端、终端外设、信号传输系统以及信号发送和接收方法
相关申请的交叉引用
本申请基于申请号为201710948958.7、申请日为2017年10月12日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及电子设备领域但不限于电子设备领域,尤其涉及一种终端、终端外设、信号传输系统以及信号发送和接收方法。
背景技术
当前,在基于通用串行总线(Universal Serial Bus,简称为USB)接口的终端外设的整体设计方案中,经常出现信号干扰、信号延迟、功耗较大等问题,例如,耳机的整体设计方案中,常常会出现较大的信号干扰、通话延迟,整体功耗较大等问题,例如在设计USB Type-C耳机整体方案的过程中,发现目前的基于USB音频类(USB Audio Class,简称为UAC)技术的USB Type-C纯数字耳机还不能解决移动网络下通话延迟过长的问题,过不了通讯测试标准。虽然UAC标准在优化、手机平台方案厂家也不断在优化平台设计,但目前还没有成熟的解决方案。
目前最通常的做法是采用一种模数混合的方式来设计USB Type-C耳机,即听音乐时使用UAC技术,打电话时将传统3.5mm耳机的模拟信号路由到USB TYPE-C接口的方式。图1示出了模数混合USB Type-C耳机结构。
这种混合模式耳机有如下问题:
1.USB TYPE-C接口接模拟耳机转接头再插耳机时,实质还是模拟耳机,听音乐和打电话时信号还是容易受到干扰,耳机的高保真度(High Fidelity,简称为HIFI)性能得不到可靠保证。
2.通过UAC方式听音乐时,由于采用的是USB集成电路内置音频总线(USB-inter IC Sound,简称为USB-I2S)桥的方式,音频信号传输采用I2S OVER USB技术,音频信号流通过USB物理通道进行数据传输,USB接口通常是挂在应用(AP)处理器上,USB工作时AP不能睡眠,功耗会比较大,另外,主机和耳机间要做I2S转USB、USB转I2S的桥转换,额外增加的功耗也比较大。AP和转换桥的加入会明显降低移动终端的续航时间,用户体验变差。
3.在模拟和数字模式切换场景下存在USB枚举延时,用户会觉察到卡顿,会降低用户对产品的整体体验效果。
发明内容
本申请实施例提供了一种终端、终端外设、信号传输系统以及信号发送和接收方法。
根据本申请的一个实施例,提供了一种终端,包括:第一音频模块,通过音频总线通道与终端中的通用串行总线USB插座连接,配置为将待发送信号发送至USB插座;USB插座,配置为提供终端与终端外设之间的物理连接接口。
根据本申请的另一个实施例,提供了一种终端外设,包括:第二音频模块,通过音频总线通道与终端外设中的通用串行总线USB插头连接,配置为与USB插头通过I2S总线通道进行信号传输;USB插头,用于与终端外设所接入终端的USB插座连接。
根据本申请的又一个实施例,还提供了一种信号传输系统,包括以上任一所述的终端,以及以上任一所述的终端外设。
根据本申请的又一个实施例,还提供了一种信号发送方法,包括:终端通过总线通道将待发送信号发送至终端中的USB插座,并经由该USB插座将待发送信号发送至终端外设。
根据本申请的又一个实施例,还提供了一种信号接收方法,包括:终端外设通过该终端外设的通用数据总线USB插头接收来自终端的信号,并通过音频总线通道将信号发送至终端外设中的第二音频模块。
通过本申请,由于将终端中的信号通过I2S总线通道路由到了USB插座实现了音频总线穿越(over)USB接口以连接终端外设,从而实现了通过音频总线进行终端与终端外设之间的信号传输。由于音频总线传输的是数字信号,因此,可以解决由于信号是模拟信号而导致信号易受干扰的问题;例如,以集成电路(Integrated Circuit,简称为IC)间I2S总线为例,由于I2S是一种低功耗总线,因此,可以解决功耗大的问题;由于I2S是一种终端内部芯片间的音频总线,因此,可以降低时延,提升用户体验。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为根据相关技术中模数混合USB Type-C耳机结构示意图;
图2为根据本申请实施例的一种可选的I2S直连(Naked Over)USB Type-C接口的系统示意图;
图3a为根据本申请实施例的一种可选的终端外设正向插入时I2S和 USB信道建立的原理示意图;
图3b为根据本申请实施例的一种可选的终端外设正向插入时插座和插头管脚对应关系的示意图;
图4a为根据本申请实施例的一种可选的终端外设反向插入时I2S和USB信道建立的原理示意图;
图4b为根据本申请实施例的一种可选的终端外设反向插入时插座和插头管脚对应关系的示意图;
图5a为根据本申请实施例的一种可选的CC模块的电路原理图;
图5b为根据本申请实施例的另一种可选的CC模块的电路原理图;
图6为根据本申请实施例的一种可选的CC总线交互方式下的主机和外设的交互流程图;
图7为根据本申请实施例的一种可选的终端外设和终端间使用USB总线交互方式时的交互流程图;
图8为根据本申请实施例的一种终端的结构示意图;
图9为根据本申请实施例的一种可选的终端的结构示意图;
图10为根据本申请实施例的一种终端外设的结构示意图;
图11为根据本申请实施例的另一种可选的终端外设的结构示意图;
图12为根据本申请实施例的一种可选的I2S穿越USB Type-C接口的单模数字耳机架构图;
图13为根据本申请实施例的一种可选的耳机和主机间使用CC总线的交互流程图;
图14为根据本申请实施例的一种可选的基于I2S和UAC双模数字耳机的架构示意图;
图15为根据本申请实施例的一种可选的基于I2S和UAC双模数字耳机的电路原理示意图;
图16为根据本申请实施例的一种可选的耳机的CODEC模块的结构框图;
图17为根据本申请实施例的一种可选的主机支持I2S Naked Over USB Type-C架构时双模耳机的I2S USBC模式的工作流程图;
图18为根据本申请实施例的一种可选的主机支持UAC架构时双模耳机的UAC模式的工作流程图;
图19为根据本申请实施例的一种信号发送方法的流程图;
图20为根据本申请实施例的一种信号接收方法的流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
为便于理解本实施例,以下将本申请实施例中所涉及的技术术语解释如下:
终端外设,即连接至终端的外部设备,是指连接在计算机主机以外的硬件设备,对数据和信息起着传输、转送和存储的作用。
音频总线可为传输音频信号的总线,该音频总线包括但不限于IC间音频(Inter-IC Sound,简称为I2S)总线,又称为集成电路内置音频总线,可配置为音频设备之间的数据传输,其采用了沿独立的导线传输时钟与数据信号的设计,实现了数据和时钟信号的分离。
要解决即模拟信号容易受干扰,可以采用数字方式进行信号传输。
要解决终端里USB与I2S信号间的打包解包、TYPE C耳机里USB与 I2S信号间的打包解包,比较耗功耗,所采取的方案功耗一定要相对较低,最好不要使用USB转接桥方式,使用时可以使AP应用处理器处于睡眠状态。
要解决移动通话时延问题,所采用的方案移动通信网络下的通话时延一定要满足通信规范要求,即通话时延要小。
因此,要解决相关技术中存在的上述问题,采用的方案一定要具有以下特征:数字方式、功耗低、通话时延满足要求。
研究UAC协议后发现,UAC耳机之所以有延迟,功耗比较大,是因为UAC架构采用的是USB-I2S桥的方式,音频信号传输采用I2S OVER USB技术,音频信号流走的是USB物理通道。
I2S OVER USB技术要求I2S格式数据到USB格式数据的打包解包这个环节。而这个环节会造成信号延迟和功耗增加,并且USB通道功耗比较大,基于此,本申请实施例采用的技术方案中省去了I2S数据到USB数据的打包解包过程,并且通过USB数据信道进行信号传输,裸奔穿过USB Type-C。
在UAC协议出现之前,USB接口只有两根数据总线,而I2S有四根数据总线,I2S穿不过传统的USB接口。所以必须用I2S Over USB这个分拆打包技术来使I2S数据穿越传统USB接口。而USB Type-C接口的出现使得传输音频数据的总线数目不只有两根了,而是大于4根。
并且,由于I2S是一种低功耗总线,低功耗是基本属性,所以低功耗也是I2S Naked Over USB Type-C构架的基本特征。
由于I2S是纯数字的,而主机和音频外设之间的音频信号是用I2S来传递的,所以I2S Naked Over USB Type-C构架信号传递也是纯数字的。纯数字也是I2S Naked Over USB Type-C构架的基本特征。
由I2S本身是移动通讯平台里常用的一种数字音频总线,被用来在主机 内部基带处理器与音频CODEC间,传递通话音频数据,通话时延低,所以I2S Naked Over USB Type-C构架也是一种低时延的架构。
总之,I2S Naked Over USB Type-C构架具有解决UAC耳机和模数混合USB Type-C耳机的问题的一系列特征:1)纯数字,抗干扰能力强;2)功耗低,续航能力强;3)延迟小、移动通话满足通讯规范要求。
本申请实施例提供了相应的解决方案,即将I2S从主机系统架构中引出,并穿越USB Type-C接口,连接耳机等音频外设。用这个低功耗音频总线,在主机和外设之间,传递数字音频信号。需要说明的是,本申请实施例中所提供的上述架构不仅适用于音频信号的传输,还可以适用于终端和终端外设之间其它需要交互的信号类型的传输。
本实施例提供一种I2S直连(Naked Over)USB Type-C接口的系统,如图2所示,该系统包括:主机(又称为终端或计算机设备)、终端外设、及主机跟外设间的音频总线(例如,I2S总线)通道构成。在一些实施例中,所述音频总线可为传输数字信号的总线。
其中,主机,包括CC控制器模块、电源管理模块、正反插信道切换模块、USB Type-C Receptacle、CPU系统模块和主机CODEC模块。在一些实施例中,CC控制器模块,通过CC总线用来完成主机正反插连接状态识别。系统还可通过CC总线,与外设侧的USB Type-C Cable Controller模块间,进行信号握手交互,用来完成外设标签的获取和外设CODEC模块的初始化。此时,要求CC控制器必须支持USB PD协议,使其能通过CC总线,读外设的USB Type-C Cable Controller模块中的EMCA(Electronically Marked Cable Assembly电子标记电缆组件)外设电子标签。
电源管理模块,负责主机电源管理,必须支持USB OTG功能,具有给外设供电的能力。
正反插信道切换模块,能将主机CODEC模块送出的I2S物理信号线路 由到USB Type-C Receptacle相应管脚上。
USB Type-C Receptacle,主机与外设间的物理连接接口,
完成与外设的USB Type-C Plug进行物理连接的功能。
CPU系统模块,包括应用处理器、基带处理器、存储器、
射频收发等硬件系统平台芯片,除完成与移动网络基站间的信号收发转换等功能外,还负责完成主机I2S裸奔信道的建立控制及信号交互。
主机CODEC模块,包括音频CODEC,ADSP,SPEAKER、RECEIVER,
音频放大器等。与正反插信道切换模块间用I2S总线进行信号交互。
外设侧部分,USB Controller模块、USB Type-C Cable Controller模块、外设CODEC模块、外设供电模块、USB Type-C Plug。
主机跟外设间的交互信号:USB2.0总线、I2S总线、通道配置CC总线、供电线、共地线。
在一些实施例中,USB Device Controller模块,具有标识外设基本信息的功能,这些信息包括:这是一个I2S总线穿越USB Type-C的外设;I2S穿越USB Type-C的通道和管脚定义;USB Device设备号和产品序列号。
该模块还可配置为与主机侧的CPU系统模块间,进行信号握手交互,完成外设标识信息的上报;接外设CODEC模块的设置总线时,完成外设CODEC模块的初始化和寄存器设置。
USB Type-C Cable Controller模块,具有标识外设基本信息的功能,这些信息包括:这是一个I2S总线穿越USB Type-C的外设;音频总线(I2S)穿越USB Type-C的通道和管脚定义;外设为一种特殊的EMCA电子标记电缆。
还可用来与主机侧的CC控制器模块间,进行信号握手交互,完成外设标识信息的上报;接外设CODEC模块的设置总线时,完成外设CODEC模块的初始化和寄存器设置。
外设CODEC模块,包括音频CODEC、麦克DAC、音频DAC、音频放大器、HID(Human Interface Device人机交互器件)、SPEAKER、麦克风等,与用USB Type-C Plug间用I2S总线传递数字音频信号。
外设供电模块,从USB Type-C Plug VBUS或VCONN管脚获取电源,转换成外设侧各模块所需的电压,并进行上电顺序的管理。
USB Type-C Plug,外设与主机间的物理连接接口,完成与主机的USB Type-C Receptacle进行插拔的功能。
主机跟外设间的交互信号之I2S信道I2S如何穿越USB Type C接口?如图2所示,图2中x1、x2、x3、x4表示外设侧I2S的四根信号线;X1、X2、X3、X4表示主机侧I2S的四根信号线;I2S的四根信号线是:串行位时钟SCLK、帧时钟LRCK、串行出数据SDATA_O、串行入数据SDATA_I。要使I2S穿过USB Type-C接口,即是将I2S的四根信号x1,x2,x3,x4从外设侧USB Type-C Plug的B6,B7,A8,B8管脚穿过USB Type-C接口和正反插信道切换模块,送到主机侧的X1,X2,X3,X4。I2S信道建立电路原理参见图3a、图3b、图4a和图4b所示。如图3a所示,X1、X2、X3、X4表示主机侧I2S的四根信号线正向插时,三个开关SW0、SW1和SW2同时上掷,x1,x2,x3,x4表示外设侧I2S的四根信号线,需要说明的是,正反插信道切换模块由三个双路单刀双掷开关MUX0、MUX1、MUX2构成,双路单刀双掷开关带开关控制信号SW和通道通断使能信号EN。正插时插头和插座的对应关系如图3b所示。如图4a所示,X1、X2、X3、X4表示主机侧I2S的四根信号线反向插时,三个开关SW0、SW1和SW2同时下掷,x1,x2,x3,x4表示外设侧I2S的四根信号线。
USB Type-C接口支持正反插,正向插和反向插的监测,由CC控制器完成,报告给CPU系统模块;正反插信道切换的指令由CPU系统模块下达,通过控制3根开关控制线SW0,SW1,SW2同时上掷或下掷来执行。
主机跟外设间的交互信号之通道配置CC总线CC总线用来完成主机正反插连接状态识别。当用USB Type-C Cable Controller作为设备控制器时,还用CC线作为主机与外设间的交互总线,来完成设备标识和音频模块的控制设置等主机正反插连接状态识别和CC行为,参见图5a和图5b所示。图5a和图5b摘自USB Type-C Cable and Connector Specification Release1.2/March 25,2016。为定义CC的行为,引入两个电阻Rp、Rd;实际设备中可能会有变化,如Rp可用电流源取代;初始情况下,DFP CC端有Rp上拉,UFP CC端有Rd下拉;Power Cable的Vconn脚有Ra下拉(有些情况为纯电阻,有些情况为负载);DFP需有能力识别Rd、Ra,即DFP通过识别Rd、Ra,判别UFP的连接或Power Cable及CC方向;UFP通过Sence两个CC Pin的电压(超过OV为CC),判别插入方向。
主机跟外设间的交互信号之USB2.0数据线:当用USB Device Controller作为设备控制器时,用USB2.0的D+/D-数据线作为主机与外设间的交互总线,来完成设备标识和音频模块的控制设置等。
主机跟外设间的交互信号之供电线和接地线:完成主机给外设间的电源传输,并提供USB、I2S、CC总线的信号镜像回路。
表1为USB Type-C主机状态识别表,《USB Type-C主机连接状态识别表》,描述了主机通过感知两个CC管脚的电阻,判别是否有UFP或Power Cable连接,并判别正反插、Debug Accessory Mode connected或Audio Adapter Accessory Mode connected。其中,DFP是Downstream Facing Port的缩写,表示下行端口,这里可理解为主机CC控制器,UFP是Upstream Facing Port的缩写,表示上行端口,这里可理解为外设侧设备控制模块。
表1
Figure PCTCN2018110144-appb-000001
Figure PCTCN2018110144-appb-000002
主机跟外设间的交互流程:
主机与外设间的交互,可通过两种方式进行,CC总线交互方式和USB总线交互方式。
CC总线交互方式时,外设侧USB Type-C Cable Controller作为设备控制器,对外连接CC总线,对内通过控制总线I2C或SPI、GPIO等,控制外设CODEC模块。具体流程参见图6所示。
USB总线交互方式流程,外设侧USB Device Controller作为设备控制器,对外连接USB Type-C Plug的USB D+/D-总线,对内接外设CODEC模块的控制总线I2C或SPI、GPIO等。具体流程参见图7所示。
基于本实施例提供的上述技术方案,采用I2S Naked Over USB Type-C构架可以解决UAC耳机和模数混合USB Type-C耳机的存在的抗干扰能力差、功耗较高、延迟较大等问题:由于可以采用纯数字信号传输,因此抗干扰能力强;由于I2S总线是一种低功耗总线,因此续航能力强;并且,是移动通讯平台里常用的一种数字音频总线,被用来在主机内部基带处理器与音频CODEC间,传递通话音频数据,通话时延低延迟小,满足移动通话要求。
本实施例提供一种终端,该终端通过I2S总线通道与其连接的终端外设连接,如图8所示,终端80包括:
第一音频模块802,通过音频总线(例如,IC间音频I2S总线)通道与终端中的通用串行总线USB插座连接,配置为将待发送信号发送至上述USB插座。在一些实施例中,第一音频模块802可以为终端中的音频CODEC、MIC DAC、耳机DAC、耳机放大器、耳机线控识别电路和编码器等。
USB插座804,配置为提供上述终端与终端外设之间的物理连接接口。
在一个可选实施例中,上述USB插座为USB Type-C插座,此时,如图9所示,上述终端还包括正反插信道切换模块806,设置在音频总线(例如,I2S总线)上,通过上述音频总线(例如,I2S总线)分别与上述第一音频模块和上述USB插座连接。
在一些实施例中,如图9所示,上述终端还可以包括:通道配置(Configuration Channel,简称为CC)控制器808,用于识别上述终端外设接入上述终端时的正反插连接状态;并将上述正反插连接状态通知给用于与网络侧进行信息交互的系统模块810;
上述系统模块810,分别与上述第一音频模块802和上述正反插信道切换模块806连接,配置为依据上述正反插连接状态控制上述正反插信道切 换模块806建立上述音频总线(例如,I2S总线)通道。在一些实施例中,系统模块810可以包括但不限于应用处理器、基带处理器、存储器、射频收发等硬件系统平台芯片,除完成与移动网络基站间的信号收发转换等功能外,还负责完成主机音频裸奔信道的建立控制及信号交互。
在一些实施例中,上述音频总线为I2S总线,I2S总线通道中的I2S总线穿过上述正反插信道切换模块与USB Type-C插座中的B6、B7、A8、B8引脚连接;其中,上述I2S总线包括以下信号线:串行位时钟SCLK、帧时钟LRCK、串行出数据SDATA_O和串行入数据SDATA_I。
本实施例还提供一种终端外设,如图10所示,该终端外设10包括:
第二音频模块102,通过IC间音音频总线(例如,I2S总线)通道与终端外设中的通用串行总线USB插头连接,配置为与上述USB插头通过上述音频总线(例如,I2S总线)通道进行信号传输;
上述USB插头104,配置为与上述终端外设所接入终端的USB插座连接。
在一些实施例中,上述USB插头104为USB Type-C插头。此时,如图11所示,上述终端外设10还可以包括:
设备控制模块106,与上述USB Type-C插头104连接,用于维护上述终端外设的描述信息,其中,该描述信息包括以下至少之一:用于标识上述终端外设为支持上述第二音频模块通过I2S总线通道与USB Type-C插头连接的标识信息;上述I2S总线通道中I2S总线与上述USB Type-C插头的引脚之间的映射关系。
在一些实施例中,上述设备控制模块106,还配置为通过I2C总线与上述第二音频模块连接,用于对上述第二音频模块进行初始化配置。
在一些实施例中,上述设备控制模块106,还配置为控制上述第二音频 模块建立上述I2S总线通道,并向上述终端发送第一通知信息,该第一通知信息用于通知上述终端以下信息:上述终端外设已经建立音频总线(例如,I2S总线)总线通道。
在一些实施例中,上述设备控制模块106,还用于接收上述终端发送的第二通知信息,该第二通知信息用于通知上述终端外设以下信息:上述终端已经建立上述音频总线(例如,I2S总线)通道。
在一些实施例中,I2S总线通道中的I2S与上述USB Type-C插头的B6、B7、A8和B8引脚连接;或者上述I2S与上述USB Type-C插头的A6、A7、A8和B8引脚连接;或者上述I2S与上述USB Type-C插头的A6、A7、B6和B7引脚连接;其中,上述I2S包括以下信号线:串行位时钟SCLK、帧时钟LRCK、串行出数据SDATA_O和串行入数据SDATA_I。
在一个可选实施例中,如图11所示,上述终端外设还可以包括:开关模块108,用于在上述终端为支持第一工作模式时导通上述I2S总线通道,以及在上述终端支持第二工作模式时关闭上述I2S总线通道并开启上述第二音频模块和上述USB插头之间的USB通道,该USB通道中包括USB转I2S桥电路;其中,在上述第一工作模式下,上述终端中的第一音频模块通过上述I2S总线通道与USB插座连接;在上述第二工作模式下,上述第一音频模块通过上述USB通道与上述USB插座连接。
以耳机为例,针对终端的不同工作模式,相应地,终端外设也可以分为单模数字耳机和双模数字耳机,以下对这两种耳机详细说明。根据外设侧的设备控制器和控制总线不同,提供两个I2S穿越USB Type-C接口的实施方案,一种利用USB Type-C Cable Controller连作为设备控制器,设计出一种I2S穿越USB Type-C接口单模数字耳机,一种是利用USB Device Controller作为设备控制器,提供一种I2S穿越USB Type-C接口的双模数字耳机。
一、单模数字耳机
I2S穿越USB Type-C接口单模数字音频设备是基于I2S Naked Over USB Type-C构架的一种音频外设。这里以耳机外设为例进行说明,即一种I2S穿越USB Type-C接口耳机,简称I2S USBC耳机。
该I2S USBC耳机具有以下特征
跟主机间通过I2S传递音频信号;
跟主机间通过CC总线传递控制信号
跟主机间通过CC总线传递耳机线控按键操作信息(音量加减、接通挂断、暂停、快进等功能);
I2S的数据线使用USB Type-C Plug的B6/B7/A8/B8管脚。
该I2S USBC耳机的实现框图参见图12,如图12所示:
该I2S USBC耳机架构由耳机、主机、及主机跟耳机间的交互信号构成。将I2S直接穿越USB Type-C接口,传递音频信号。控制信号和数据信号走CC总线。
耳机侧部分,包括设备控制模块、耳机CODEC模块、耳机供电模块、耳机USB Type-C Plug、耳机本体。
主机侧部分,除包括CPU系统模块和主机CODEC模块外,还必须包括CC控制器模块、电源管理模块、正发插信道切换模块、USB Receptacle。
主机跟耳机间的交互信号:I2S总线,CC总线,供电线,共地线。
该I2S USBC耳机各模块功能:
1)设备控制模块:
设备控制器模块使用USB Type C Cable Controller形式,设备标识为一种特殊的EMCA电子标记电缆。具有标识I2S USBC耳机基本信息的功能,这些信息包括:这是一个I2S总线USB Type-C接口的耳机;I2S定义在了B6/B7/A8/B8管脚。与主机侧的CC控制器模块间,用CC单总线进行 通讯,完成耳机标识信息的上报。与耳机Audio模块间,用I2C总线作为初始化总线进行通讯,完成耳机CODEC模块的初始化。与主机侧的CC控制器模块间,通过VCONN进行供电。
EMCA即Electronically Marked Cable Assembly电子标记电缆组件,EMCA是USB PD的一部分。EMCA遵循USB PD协议中<SOP’/SOP”Communication with Cable Plugs>规定。USB PD是BMC编码(Bi-phase Mark Code双相位符号编码)的信号,而之前的USB是FSK(Frequency-shift Keying频移键控);USB PD是在CC pin上传输,USB PD有个VDM(Vendor Defined Messages用户自定义消息)功能,定义了装置端ID,可用来定义耳机标签;也可定义耳机CODEC模块的寄存器映射表。主机设置耳机CODEC模块的寄存器时,可通过这个寄存器映射表来完成。
2)耳机CODEC模块:
包括音频CODEC、MIC DAC、耳机DAC、耳机放大器、耳机线控识别和编码等,具有I2C接口,具有I2S接口,I2S接口直接连USB Type-C Plug的B6/B7/A8/B8管脚。
3)耳机供电模块:
从USB Type-C Plug的VBUS获取电源,转换成耳机侧各模块所需的电压,并进行上电顺序的管理。
4)耳机本体:
包括耳机喇叭、MIC、线控按键、耳机线缆等,即传统3.5mm耳机除了插头外所有部分。
该I2S USBC耳机的使用流程:
该I2S USBC耳机与主机间的交互流程参见图13所示。
该I2S USBC耳机的技术效果是:
1)该I2S USBC耳机方案功耗低,信号传输使用的是I2S低功耗数字 音频总线;相对UAC方案,更省掉了I2S转USB、USB转I2S、USB工作时AP不能睡眠的功耗浪费。
2)该I2S USBC耳机方案成本低。耳机侧不需要USB-I2S桥转换芯片;相对模数混合耳机来讲,后级电路无需加双路耳机切换开关芯片;相对通道时分复用的模数混合耳机来讲,更进一步省掉了USB口的前级USB和耳机信号切换开关。
3)该I2S USBC耳机HIFI性能更有保障。首先,该方案是纯数字的,数字信号不容易受干扰;其次,相对模数混合耳机来讲,后级电路无需加双路耳机切换开关,避免了开关造成的音频信号插损。相对通道时分复用的模数混合耳机来讲,跟进一步省掉了USB和耳机信号切换开关,更进一步避免了开关造成的音频信号插损。
4)该I2S USBC耳机方案能完全满足移动通话时延要求。音频通路完全跟传统手机一样,自然通话时延也跟传统手机一样。
5)该耳机I2S USBC耳机方案,软件上沿用了传统的音频架构,开发耳机难度相对更低,耳机完全数字化进程更提前,产品更容易抢占市场先机。UAC架构下的完全满足移动通话时延要求的数字耳机设计,需等待UAC标准改进,等待主机硬件平台和软件架构优化,假以时日才能实现。
二、双模数字耳机
以外设侧的USB Device Controller作为设备控制模块,对外以USB D+/D-总线为交互总线接USB Type-C Plug,对内通过控制总线I2C或SPI、GPIO等,接外设CODEC模块,作为另一个方案实施例,可设计出一款I2S穿越USB Type-C接口的另一种I2S Naked Over USB Type-C接口的数字音频外设架构。而某些USB Device Controller本身有U2S-I2S桥功能,所以很容易设计出一种音频外设,既支持I2S Naked Over USB Type-C接口架构,又支持UAC功能。这里仍以耳机外设为例进行说明,即一种双模数字耳机, 模1:I2S Naked Over USB Type-C架构;模2,基于I2S Over USB技术的UAC架构。为叙述简洁,下文有时简称为I2S&UAC双模耳机。
该I2S&UAC双模耳机具有以下特征:具有UAC数字耳机功能;具有I2S USBC数字耳机功能;该耳机具有两种工作模式:UAC模式和I2S USBC模式,I2S USBC模式具有优先权。
UAC模式时,跟主机间通过USB总线传递控制信号、音频信号、数据信号。
I2S USBC模式时,跟主机间通过I2S总线传递音频信号,通过USB D+/D-总线传递控制信号和人机交互信号(耳机为线控键的音量加减、通话、暂停等)。
I2S的数据线使用USB Type-C Plug的B6/B7/A8/B8管脚。
设备标签通过USB Device标签方式来实现。
该I2S&UAC双模耳机的实现架构参见图14。耳机电路原理参见图15。如图14和图15所示:
该I2S&UAC双模耳机架构由耳机、主机、及主机跟耳机间的交互信号通道构成。耳机具有两种工作模式,工作模式1即I2S USBC模式:将I2S直接穿越USB Type-C接口来传递音频信号;工作模式2即UAC模式,将I2S打包成USB数据格式(I2S Over USB)来传递音频信号。控制信号和数据信号都走USB D+/D-总线。
耳机侧部分,包括设备控制模块、耳机CODEC模块、耳机供电模块、耳机USB Type-C Plug、Rd接地电阻、耳机本体。
主机侧部分,除包括CPU系统模块和主机CODEC模块外,还必须包括CC控制器模块、电源管理模块、正发插信道切换模块、USB Receptacle。
主机跟耳机间的交互信号:USB总线、I2S总线,CC总线,供电线,共地线。此实施例中,设x1/X1=I2S2_SCLK;x2/X2=I2S2_LRCK;x3/X3= I2S2_SDATA_O;x4/X4=I2S2_SDATA_I,注意I2S的SDATA_O和SDATA_I在Master芯片和Slave芯片间管脚要交叉连接。
该I2S&UAC双模耳机各模块功能:
1)设备控制模块:
具有标识I2S&UAC耳机基本信息的功能,这些信息包括:这是一个I2S&UAC双模耳机,支持I2S USBC耳机模式和UAC模式;I2S总线定义在了USB Type-C的B6/B7/A8/B8管脚。与主机侧的CPU系统模块间,用USB D+/D-总线进行通讯,完成耳机标识信息的上报,并完成耳机CODEC模块的初始化。与耳机CODEC模块之间,用一个I2S总线传音频上下行数据,用I2C总线传输控制和状态数据,用SPI总线传输耳机CODEC模块的固件数据。还完成I2S USBC耳机模式与UAC模式的模式切换功能。
2)耳机本体:
包括耳机喇叭、MIC、线控按键、耳机线缆等,即传统3.5mm耳机除了插头外所有部分。
3)耳机供电模块:
从USB Type-C Plug的VBUS获取电源,转换成耳机侧各模块所需的电压,并进行上电顺序的管理。
4)Rd接地电阻:标识这是一个USB Device设备,主机侧的CC总线通过检测这个接地电阻,完成耳机USB Device插入识别。
5)耳机CODEC模块:
包括音频I2S HUB、CODEC、MIC DAC、耳机DAC、耳机放大器、耳机线控识别和编码等,具有I2C接口,具有双I2S接口,一个I2S接口直接连USB Type-C Plug的B6/B7/A8/B8管脚,另一个I2S接口接设备控制器(带USB-I2S桥)的I2S接口。
耳机CODEC模块框图可参见图16所示。图16中I2S Hub在本实施例 中可以采用低功耗FPGA来实现,当然也可用Audio DSP来实现。I2S2通道必须有I2S通断模块,上电时默认导通或断开。因为一般的主机USB Type-C插座端口A6和B6短接,A7和B7短接,双模耳机插入一般主机时,耳机侧的USB Type-C插头端口的A6和B6,A7和B7管脚会被从主机侧短接起来。
该I2S&UAC双模耳机的使用流程:
当主机是满足I2S Naked Over USB Type-C架构时,耳机工作在模式1,即I2S USBC模式。双模耳机在I2S USBC模式的工作流程参见图17。
当主机不满足I2S Naked Over USB Type-C架构而只满足UAC架构时,耳机工作在UAC模式。此时双模耳机的UAC模式的工作流程参见图18。
该I2S&UAC双模耳机的技术效果:
1)该I2S&UAC双模耳机通用性好,主机满足I2S Naked Over USB Type-C架构时用I2S USBC模式,主机只满足UAC架构时,用UAC模式。
2)该I2S&UAC双模耳机方案使用I2S USBC模式时功耗低,音频信号传输使用的是I2S低功耗数字音频总线;相对UAC方案,更省掉了I2S转USB、USB转I2S、USB工作时AP不能睡眠的功耗浪费。
3)该I2S&UAC双模耳机方案成本低。相对模数混合耳机来讲,后级电路无需加双路耳机切换开关芯片;相对通道时分复用的模数混合耳机来讲,更进一步省掉了USB口的前级USB和耳机信号切换开关。
4)该I2S&UAC双模耳机HIFI性能更有保障。首先,该方案是纯数字的,数字信号不容易受干扰;其次,相对模数混合耳机来讲,后级电路无需加双路耳机切换开关,避免了开关造成的音频信号插损。相对通道时分复用的模数混合耳机来讲,跟进一步省掉了USB和耳机信号切换开关,更进一步避免了开关造成的音频信号插损。
5)该I2S&UAC双模耳机方案使用I2S USBC模式时能完全满足移动 通话时延要求。音频通路完全跟传统手机一样,自然通话时延也跟传统手机一样,满足通话时延要求。
6)该耳机I2S&UAC双模耳机方案,软件上沿用了传统的音频架构,开发耳机难度相对更低,耳机完全数字化进程更提前,产品更容易抢占市场先机。纯UAC架构下的完全满足移动通话时延要求的数字耳机设计,需等待UAC标准改进,等待主机硬件平台和软件架构优化,假以时日才能实现。
本实施例提供一种信号发送方法,图19为根据本申请实施例的一种信号发送方法的流程图。如图19所示,该方法包括
步骤S1902,终端通过IC间音频I2S总线通道将待发送信号发送至上述终端中的USB插座;在一些实施例中,上述USB插座为USB Type-C插座。
步骤S1904,终端经由该USB插座将上述待发送信号发送至终端外设。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
本实施例提供一种信号接收方法,如图20所示,该方法包括:
步骤S2002,终端外设通过该终端外设的通用数据总线USB插头接收来自终端的信号;在一些实施例中,USB插头为USB Type-C插头。
步骤S2004,通过I2S总线通道将信号发送至终端外设中的第二音频模块。
在一个可选实施例中,在通过I2S总线通道将信号发送至终端外设中的第二音频模块之前,终端外设确定终端的工作模式;在工作模式为第一工作模式时,导通I2S总线通道,以及在终端支持第二工作模式时关闭I2S总线通道并开启第二音频模块和USB插头之间的USB通道,该USB通道中包括USB转I2S桥电路;其中,在第一工作模式下,终端中的第一音频模块通过I2S总线通道与USB插座连接;在第二工作模式下,第一音频模块通过USB通道与USB插座连接。
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,在一些实施例中,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (19)

  1. 一种终端,包括:
    第一音频模块,通过音频总线通道与终端中的通用串行总线USB插座连接,配置为将待发送信号发送至所述USB插座;
    所述USB插座,配置为提供所述终端与终端外设之间的物理连接接口。
  2. 根据权利要求1所述的终端,其中,所述USB插座为USB Type-C插座。
  3. 根据权利要求1所述的终端,其中,所述终端还包括:正反插信道切换模块,设置在所述I2S总线上,并通过所述音频总线分别与所述第一音频模块和所述USB插座连接。
  4. 根据权利要求3所述的终端,其中,所述终端还包括:
    系统模块,分别与所述第一音频模块和所述正反插信道切换模块连接,配置为依据所述终端外设接入终端时的正反插连接状态控制所述正反插信道切换模块建立所述音频总线通道。
  5. 根据权利要求2所述的终端,其中,所述音频总线为I2S总线;所述I2S总线通道中的I2S总线穿过正反插信道切换模块与USB Type-C插座中的B6、B7、A8、B8引脚连接。
  6. 一种终端外设,包括:
    第二音频模块,通过音频总线通道与终端外设中的通用串行总线USB插头连接,配置为与所述USB插头通过所述I2S总线通道进行信号传输;
    所述USB插头,配置为与所述终端外设所接入终端的USB插座连接。
  7. 根据权利要求6所述的终端外设,其中,所述USB插头为USB Type-C插头。
  8. 根据权利要求7所述的终端外设,其中,所述终端外设还包括:
    设备控制模块,与所述USB Type-C插头连接,用于维护所述终端外设的描述信息,其中,该描述信息包括以下至少之一:用于标识所述终端外设为支持所述第二音频模块通过音频总线通道与USB Type-C插头连接的标识信息;所述音频总线通道中音频总线与所述USB Type-C插头的引脚之间的映射关系。
  9. 根据权利要求8所述的终端外设,其中,所述设备控制模块,还配置为通过I2C总线与所述第二音频模块连接,用于对所述第二音频模块进行初始化配置。
  10. 根据权利要求8所述的终端外设,其中,所述设备控制模块,还配置为控制所述第二音频模块建立所述音频总线通道,并向所述终端发送第一通知信息,该第一通知信息用于通知所述终端以下信息:所述终端外设已经建立音频总线通道。
  11. 根据权利要求10所述的终端外设,其中,所述设备控制模块,还配置为接收所述终端发送的第二通知信息,该第二通知信息用于通知所述终端外设以下信息:所述终端已经建立所述I2S总线通道。
  12. 根据权利要求7所述的终端外设,其中,所述音频总线为I2S总线;所述I2S总线通道中的I2S与所述USB Type-C插头的B6、B7、A8和B8引脚连接;或者所述I2S与所述USB Type-C插头的A6、A7、A8和B8引脚连接;或者所述I2S与所述USB Type-C插头的A6、A7、B6和B7引脚连接;
    其中,所述I2S包括以下信号线:串行位时钟SCLK、帧时钟LRCK、 串行出数据SDATA_O和串行入数据SDATA_I。
  13. 根据权利要求7至12中任一项所述的终端外设,其中,所述终端外设还包括:
    开关模块,配置为在所述终端为支持第一工作模式时导通所述I2S总线通道,以及在所述终端支持第二工作模式时关闭所述I2S总线通道并开启所述第二音频模块和所述USB插头之间的USB通道,该USB通道中包括USB转I2S桥电路;其中,在所述第一工作模式下,所述终端中的第一音频模块通过所述I2S总线通道与USB插座连接;在所述第二工作模式下,所述第一音频模块通过所述USB通道与所述USB插座连接。
  14. 一种信号传输系统,其中包括:权利要求1至5中任一项所述的终端,以及权利要求6至13中任一项所述的终端外设。
  15. 一种信号发送方法,其中,包括:
    终端通过音频总线通道将待发送信号发送至所述终端中的USB插座,并经由该USB插座将所述待发送信号发送至终端外设。
  16. 根据权利要求15所述的方法,其中,所述USB插座为USB Type-C插座。
  17. 一种信号接收方法,其中,包括:
    终端外设通过该终端外设的通用数据总线USB插头接收来自终端的信号,并通过音频总线通道将所述信号发送至所述终端外设中的第二音频模块。
  18. 根据权利要求17所述的方法,其中,所述USB插头为USB Type-C插头。
  19. 根据权利要求18所述的方法,其中,通过音频总线通道将所述信号发送至所述终端外设中的第二音频模块之前,所述方法还包括:
    所述终端外设确定所述终端的工作模式;
    在所述工作模式为第一工作模式时,导通所述音频总线通道,以及在所述终端支持第二工作模式时关闭所述音频总线通道并开启所述第二音频模块和所述USB插头之间的USB通道;其中,在所述第一工作模式下,所述终端中的第一音频模块通过所述音频总线通道与USB插座连接;在所述第二工作模式下,所述第一音频模块通过所述USB通道与所述USB插座连接。
PCT/CN2018/110144 2017-10-12 2018-10-12 终端、终端外设、信号传输系统以及信号发送和接收方法 WO2019072252A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/755,616 US11403245B2 (en) 2017-10-12 2018-10-12 Terminal, terminal peripheral, signal transmission system and signal sending and receiving method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710948958.7 2017-10-12
CN201710948958.7A CN109660913B (zh) 2017-10-12 2017-10-12 终端、终端外设、信号传输系统以及信号发送和接收方法

Publications (1)

Publication Number Publication Date
WO2019072252A1 true WO2019072252A1 (zh) 2019-04-18

Family

ID=66100387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/110144 WO2019072252A1 (zh) 2017-10-12 2018-10-12 终端、终端外设、信号传输系统以及信号发送和接收方法

Country Status (3)

Country Link
US (1) US11403245B2 (zh)
CN (1) CN109660913B (zh)
WO (1) WO2019072252A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102929A (zh) * 2021-03-03 2022-09-23 阿里巴巴(中国)有限公司 音频处理系统、中间层芯片及音频处理设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102600482B1 (ko) * 2018-02-23 2023-11-10 삼성전자주식회사 경보를 출력하는 전자 장치 및 방법, 및 상기 전자 장치와 연결되는 잠금 장치를 포함하는 시스템
US11513575B1 (en) * 2021-06-14 2022-11-29 Dell Products L.P. Dynamic USB-C mode configuration
CN114286272B (zh) * 2021-12-17 2023-05-16 华勤技术股份有限公司 真无线耳机的时延测试系统、方法及相关装置
CN115994109B (zh) * 2023-03-21 2023-07-21 合肥集创微电子科技有限公司 基于Type-C物理接口的数据传输方法和电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201359725Y (zh) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Usb接口电路及具有所述电路的便携式手持设备
CN104063348A (zh) * 2014-06-17 2014-09-24 武汉天喻信息产业股份有限公司 实现兼容usb通讯与音频通讯的装置及方法
WO2017065769A1 (en) * 2015-10-15 2017-04-20 Hewlett-Packard Development Company, L.P. Utilizing pins on a universal serial bus (usb) type-c connector for a data signal

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7443213B2 (en) * 2005-01-21 2008-10-28 Thomson Licensing Staged locking of two phase locked loops
US8208660B2 (en) * 2008-08-26 2012-06-26 Broadcom Corporation Method and system for audio level detection and control
US9697837B2 (en) * 2012-12-17 2017-07-04 Yaron Hefetz Secured audio channel for voice communication
US10084698B2 (en) * 2015-03-26 2018-09-25 Intel Corporation Selectively enabling first and second communication paths using a repeater
CN105120404B (zh) * 2015-07-31 2018-11-30 华为技术有限公司 一种音频设备、终端设备及电子设备
US20170280244A1 (en) * 2015-09-11 2017-09-28 Ess Technology, Inc. Switchable Four-pole Jack For Supporting Balanced Headphones and Headset Operation in Mobile Applications
CN105677611B (zh) * 2015-12-31 2020-02-07 北京小鸟看看科技有限公司 一种便携式设备以及控制hdmi信号输出的方法
BR112018069235A2 (pt) * 2016-03-29 2019-01-22 Sony Corp receptor, e, aparelho de suprimento de sinal rf.
CN106021150B (zh) * 2016-04-29 2019-02-15 青岛海信电器股份有限公司 Type-C接口设备、通信系统和通信方法
CN205987323U (zh) * 2016-08-05 2017-02-22 深圳市金立通信设备有限公司 一种基于type‑c接口的音频处理电路及终端
CN106792313A (zh) * 2016-12-26 2017-05-31 深圳市飞易通科技有限公司 蓝牙数字音频耳机

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201359725Y (zh) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Usb接口电路及具有所述电路的便携式手持设备
CN104063348A (zh) * 2014-06-17 2014-09-24 武汉天喻信息产业股份有限公司 实现兼容usb通讯与音频通讯的装置及方法
WO2017065769A1 (en) * 2015-10-15 2017-04-20 Hewlett-Packard Development Company, L.P. Utilizing pins on a universal serial bus (usb) type-c connector for a data signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102929A (zh) * 2021-03-03 2022-09-23 阿里巴巴(中国)有限公司 音频处理系统、中间层芯片及音频处理设备
CN115102929B (zh) * 2021-03-03 2024-02-13 阿里巴巴(中国)有限公司 音频处理系统、中间层芯片及音频处理设备

Also Published As

Publication number Publication date
US11403245B2 (en) 2022-08-02
CN109660913A (zh) 2019-04-19
CN109660913B (zh) 2021-01-26
US20210200705A1 (en) 2021-07-01

Similar Documents

Publication Publication Date Title
WO2019072252A1 (zh) 终端、终端外设、信号传输系统以及信号发送和接收方法
WO2018014471A1 (zh) 终端、终端外设、信号发送及接收方法、数据传输系统
US11526459B2 (en) Adapter, terminal device and adapter system
CN109286764B (zh) 具有usb type-c接口的电视机
US9414147B2 (en) Method and device for earphone and USB to share micro-USB interface
CN109660894B (zh) 终端外设及音频信号的传输方法
KR20170120611A (ko) 오디오 데이터 전송을 위한 커넥터들
US7734841B2 (en) System and method for providing serial bus connectivity
WO2021135687A1 (zh) 电子设备与兼具快充与音频传输功能的配件
KR20190036165A (ko) Usb 타입 c 인터페이스를 이용한 멀티 디바이스 간의 통신 방법 및 이를 구현한 전자 장치
CN110300318B (zh) 一种usb端子接口电路及usb端子接口电路控制方法
WO2018076628A1 (zh) 一种usb接口电路、终端、耳机电路及耳机、存储介质
WO2012171497A1 (zh) 一种音频信号转接及接收装置、音频信号传输系统
TW201933129A (zh) 通用串列匯流排裝置及其操作方法
US10521385B2 (en) Inter-device digital audio
JP6124167B2 (ja) データ端末、データ送信システム、およびホットスワップ制御方法
US10515025B2 (en) Communication protocol adapter
CN109976694B (zh) 数据传输的设备、终端、方法和处理器系统
TWI394045B (zh) 攜帶型電子裝置及其附件鑒別方法
WO2012175005A1 (zh) 一种音频信号接收装置、音频信号传输系统
CN219958223U (zh) 数据传输系统
US8204440B2 (en) Wireless transmitting/receiving device
TWI812947B (zh) 外接音頻裝置及操作外接音頻裝置的方法
CN211296823U (zh) 一种音频播放设备
CN115494972B (zh) 一种具有数据互拷功能的kvm切换器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18866169

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18866169

Country of ref document: EP

Kind code of ref document: A1