WO2018014471A1 - 终端、终端外设、信号发送及接收方法、数据传输系统 - Google Patents

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

Info

Publication number
WO2018014471A1
WO2018014471A1 PCT/CN2016/105762 CN2016105762W WO2018014471A1 WO 2018014471 A1 WO2018014471 A1 WO 2018014471A1 CN 2016105762 W CN2016105762 W CN 2016105762W WO 2018014471 A1 WO2018014471 A1 WO 2018014471A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
terminal
pin
module
slimbus
Prior art date
Application number
PCT/CN2016/105762
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 中兴通讯股份有限公司
Publication of WO2018014471A1 publication Critical patent/WO2018014471A1/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/40Bus structure

Definitions

  • the present invention relates to the field of electronic devices, and in particular to a terminal, a terminal peripheral, a signal transmitting and receiving method, and a data transmission system.
  • 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 Physical channel for data transmission, USB interface It is often 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 conversion between the host and the headset, and the additional power consumption is also increased. bigger.
  • 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.
  • Embodiments of the present invention provide a terminal, a terminal peripheral, a signal transmitting and receiving method, and a data transmission system, to at least solve the problems of signal interference, signal delay, and power consumption in a design scheme of a terminal peripheral in the related art. .
  • a terminal including: a channel switching module, a first audio module and a USB socket; wherein the channel switching module passes through a low-power inter-chip serial media bus (The first audio module is configured to connect the audio signal sent by the first audio module to the USB socket, and the first audio module is configured to Generating the signal; the USB socket is connected to the channel switching module and configured to provide a physical connection interface between the terminal and the terminal peripheral.
  • the channel switching module, the first audio module and the USB socket may use a central processing unit (CPU), a digital signal processor (DSP, Digital Singnal Processor) or programmable logic when performing processing.
  • Array FPGA, Field-Programmable Gate Array
  • a terminal peripheral device based on a USB interface
  • a terminal peripheral device including: a device control module, a second audio module, and a USB plug; wherein the second audio module is connected to the USB plug Connecting, configured to receive the terminal accessed by the terminal peripheral through the low A signal transmitted by the inter-chip serial media bus SLIMbus; the USB plug being connected to a USB socket of the terminal, and forwarding the signal received from the USB socket to the second audio module.
  • a signal transmitting method comprising: a terminal routing a signal to a USB socket in the terminal through a low power inter-chip serial media bus SLIM bus, and via the USB socket The signal is sent to the terminal peripheral.
  • a signal receiving method comprising: a terminal peripheral receiving a signal transmitted by a terminal through a low-power inter-chip serial media bus SLIM bus through a USB plug of the terminal peripheral.
  • a data transmission system comprising the terminal of any of the above and a terminal peripheral.
  • the SLIMbus traversing USB interface is connected to the terminal peripheral by transmitting the signal in the terminal to the USB socket through the SLIMbus, thereby realizing the signal transmission between the terminal and the terminal peripheral through the SLIMbus. Since SLIMbus transmits digital signals, it can solve the problem that the signal is susceptible to interference because the signal is an analog signal; since SLIMbus is a low-power bus, it can solve the problem of large power consumption; since SLIMbus is a The audio bus between the internal chips of the terminal, therefore, can reduce the delay and improve the user experience.
  • FIG. 1 is a schematic structural diagram of a mixed-mode USB Type-C earphone according to the related art
  • FIG. 2a is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • 2b is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a SLIMbus Over USB interface architecture according to an embodiment of the invention.
  • FIG. 4 is a flow chart of information interaction based on a SLIMbus Over USB interface architecture according to an embodiment of the invention
  • FIG. 5 is a schematic diagram of an earphone architecture based on a SLIMbus Over Micro USB interface according to an embodiment of the invention
  • FIG. 6 is a schematic diagram of a workflow of a headset based on a SLIMbus Over Micro USB interface according to an embodiment of the invention
  • FIG. 7 is a schematic diagram of a headset architecture based on a SLIMbus Over USB Type-C interface according to an embodiment of the invention.
  • FIG. 8 is a schematic diagram of establishing a SLIMbus channel by using a USB D+/D- pin of a headphone plug according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of establishing a SLIMbus channel using an undefined B6/B7 pin on a USB plug, in accordance with an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of establishing a SLIMbus channel by using SBU1 and SBU2 pins on a USB plug according to an embodiment of the present invention
  • FIG. 11 is a schematic circuit diagram of a host connection state identification according to an embodiment of the present invention.
  • FIG. 12 is a flow chart showing interaction between a terminal peripheral and a host (also referred to as a terminal) using a CC bus according to an embodiment of the present invention
  • FIG. 13 is a flowchart of interaction between a terminal peripheral and a host using USB according to an embodiment of the present invention
  • FIG. 14 is a structural block diagram of a terminal peripheral device according to an embodiment of the present invention.
  • FIG. 15 is a structural block diagram of another terminal peripheral device according to an embodiment of the present invention.
  • FIG. 16 is a schematic structural diagram of a headset based on SLIMbus Over USB Type-C according to an embodiment of the invention.
  • FIG. 17 is an ear based on SLIMbus Over USB Type-C according to an embodiment of the present invention. Schematic diagram of the circuit transfer circuit board;
  • FIG. 18 is a schematic diagram of a flow of interaction between a headset and a host using a CC bus according to an embodiment of the present invention
  • FIG. 19 is a schematic structural diagram of a terminal peripheral device based on a USB interface according to an embodiment of the present invention.
  • 21 is a flow chart of a signal receiving method according to an embodiment of the present invention.
  • a peripheral device that is, an external device, refers to a hardware device connected to a host computer, which functions to transfer, transfer, and store data and information.
  • SLIMbus Low-Power Inter-Chip Serial Media Bus
  • terminal peripherals have technical problems such as signal interference, signal delay, and power consumption when interacting with a terminal (also referred to as a host).
  • the scheme used is such that the transmitted signal is a digital signal.
  • the power consumption of the solution must be relatively low. It is best not to use the USB adapter bridge. When used, the AP application processor can sleep.
  • the scheme must ensure that there is no mode switch during use. At the same time, to meet the call delay requirement, the call delay under the mobile 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, coherent use process, and call delay to meet the requirements.
  • SLIMbus can be used to realize terminal and terminal peripherals.
  • SLIMbus has the above characteristics, which perfectly realizes the transmission of control signals, audio signals and data signals between the SOC (including the application processor AP and the baseband processor DBB, etc.) and the audio CODEC. It is a very simple solution for signal transmission between chips.
  • USB Type-C USB Type-C
  • Micro USB interface USB Type-C
  • SLIMbus In addition to low power consumption and call delay, SLIMbus meets the requirements. More importantly, SLIMbus can have multiple peripheral devices. This allows an audio module (such as a codec CODEC) to be hung inside the host, and an audio module (including but not limited to the CODEC on the peripheral side) to be external to the host.
  • an audio module such as a codec CODEC
  • an audio module including but not limited to the CODEC on the peripheral side
  • USB headset As a headset, it must meet the basic attributes of the USB headset: support hot plugging and traversing the USB Type-C interface.
  • SLIMbus is mainly used to complete communication in a single terminal such as a mobile terminal.
  • the SLIMbus bus device allows for dynamic "drop” and “re-access” buses, depending on the system usage requirements resulting from the appropriate protocol in the SLIMbus bus specification. This can meet the hot plug requirements of USB Type-C headphones.
  • SLIMbus has only two lines: clock line CLK and data line DATA. Control signals, audio signals, and line control signals are all on these two lines, which are easy to be multiplexed by pins or ports. Extended way to traverse the USB Type-C interface (ie through pin multiplexing or port expansion) The way the show associates SLIMbus with the USB interface, such as mapping or linking).
  • FIG. 2a is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal includes: a channel switching module 20, a first audio module 22, and a USB socket 24 (ie, a USB interface located on the host side);
  • the channel switching module 20 is connected to the first audio module 22 via the SLIMbus, and configured to route the signal sent by the first audio module 22 to the USB socket 24;
  • the first audio module 22 is configured to generate the foregoing signal.
  • the first audio module includes at least one of the following: a codec CODEC, a digital signal processor, a speaker, and an audio amplifier.
  • the USB socket 24 is connected to the channel switching module and configured to provide a physical connection interface between the terminal and the terminal peripheral.
  • the terminal peripherals may include, but are not limited to, audio peripherals such as headphones.
  • the terminal may further include: a system module (also referred to as a CPU system module) 26, which is respectively connected to the first audio module and the channel switching module 20, and configured to perform information interaction with the network side.
  • the system module 26 can be a system-on-a-chip or a circuit related to the system-on-a-chip, and the system-on-chip includes, but is not limited to, an application processor, a baseband processor, a memory, and a radio frequency transceiver.
  • the terminal may further include: a channel configuration module 28, respectively connected to the system module 26 and the terminal peripheral, configured to detect whether the USB socket has a terminal peripheral access, and The indication information indicating whether there is a peripheral access is reported to the system module;
  • the terminal further includes: a power management module 30, connected to the system module 26, receiving the notification information sent by the system module 26, and receiving the notification information as a terminal Peripheral power supply.
  • the terminal may adopt different processing schemes according to different USB interface types.
  • the USB socket is a Micro USB socket and a USB Type-C socket
  • different schemes may be adopted.
  • the USB interface type is described as an example.
  • the channel switching module 20 includes: at least one dual single-pole double-throw switch circuit, wherein the SLIMbus is connected to a designated pin of the USB socket through the dual single-pole double-throw switch circuit.
  • the two-way single-pole double-throw switch circuit includes but is not limited to a single-pole double-throw switch and other components.
  • the CLK pin and the DATA pin of the SLIMbus are connected to the D+ pin and the D- pin in the USB socket by the above two-way single-pole double-throw switch circuit.
  • the channel configuration module is a channel configuration bus
  • the channel configuration bus is a USB iBUS bus
  • SLIMbus Over Micro USB architecture utilizes SLIMbus bus to traverse the Micro USB interface, and uses SLIMbus to transfer audio, data and control signals between the host and peripherals. It is a specific interface of the USB interface under the SLIMbus Over USB architecture using Micro USB. Is a subset of the SLIMbus Over USB architecture.
  • the SLIMbus Over Micro USB device is an audio peripheral based on the SLIMbus Over Micro USB architecture.
  • a headset peripheral that is, a SLIMbus Over Micro USB headset, referred to as a Micro USB headset.
  • the Micro USB headset has the following features:
  • SLIMbus volume addition, subtraction, switch on and off Break, pause, fast forward and other functions
  • the SLIMbus clock and data lines are multiplexed with the D+/D- data lines of the Micro USB interface.
  • the headset uses the ID signal line of the Micro USB interface as a channel configuration bus to transmit control signals using the USB iBUS single bus protocol.
  • the Micro USB earphone architecture is composed of a transmission channel (including an interface) used by an earphone, a host, and an interaction signal between the host and the earphone.
  • a transmission channel including an interface
  • a host used by an earphone
  • an interaction signal between the host and the earphone.
  • Use SLIMbus to traverse the Micro USB interface to deliver audio, control, and data signals.
  • the side part of the earphone includes a device control module, a headphone AUDIO module, a headphone power supply module, and a headphone USB Plug.
  • the SLIMbus bus is directly connected to the USB Plug pin.
  • a channel selection module can also be provided between the SLIMbus and the USB.
  • the channel selection module can be implemented by a single-pole double-throw switch circuit, and the single-pole double-throw switch circuit includes at least one single-pole double-throw switch.
  • the host side part in addition to the CPU system module and the AUDIO module, must also include a channel configuration module, a power management module, a channel switching module, and a USB Receptacle.
  • the interaction signal between the host and the headset SLIMbus bus, channel configuration bus, power supply line, common ground.
  • SLIMbus shares the USB channel, D+/D-.
  • the channel configuration bus uses the USB iBUS single bus protocol.
  • this information includes: This is a SLIMbus bus headset; SLIMbus_CLK is defined in the USB D+ pin, SLIMbus_DATA is defined in the USB D-. Communicate with the USB iBUS single bus between the channel configuration module on the host side, complete the reporting of the headset identification information, and complete the initialization of the headset AUDIO module.
  • the power is taken from the VBUS of the Micro USB Plug, converted to the voltage required for each module on the headphone side, and the power-on sequence is managed.
  • Headphone body
  • Power management module support USB OTG power supply, with power management capabilities,
  • the channel switching module can be implemented by a two-way single-pole double-throw circuit.
  • the SLIMbus clock and data signals sent by the host AUDIO module are multiplexed with the USB D+/D- pins.
  • 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 SLIMbus channel.
  • Host AUDIO module including audio CODEC, ADSP, SPEAKER,
  • the SLIMbus bus can be either the audio CODEC or the SLIMbus bridge circuit.
  • the Micro USB headset solution has low power consumption, and the signal transmission uses SLIMbus low-power bus. When working, control signals, audio signals, and data signals all go to SLIMbus; compared with UAC solution, I2S to USB and USB transfer are saved. The power consumption of the AP not sleeping when I2S and USB work is wasted.
  • the Micro USB 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 earphone,
  • the performance of the Micro USB headset HIFI 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 omitted, and the audio signal insertion loss caused by the switch is further avoided.
  • the Micro USB 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 Micro USB headset solution the software uses the traditional audio architecture, the development of headphones is relatively less difficult, the headset is fully digitized in advance, and the product is more likely 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.
  • USB socket is USB Type-C socket
  • the channel switching module 20 includes: a first switching circuit, the first switching circuit is time division multiplexed The first path when the plug of the terminal peripheral device is inserted forward and the second path when the plug is reversely inserted is formed between the SLIMbus and the USB Type-C socket.
  • the first path is determined by: connecting a CLK pin of the SLIMbus to a circuit shorted by the A6 pin and the B6 pin in the USB Type-C socket, and passing the A6 pin and the terminal The peripheral connection; and the DATA pin of the above SLIMbus is connected to the circuit shorted by the A7 pin and the B7 pin in the USB Type-C socket, and is connected to the terminal peripheral through the A7 pin.
  • the second path is determined by: connecting a CLK pin of the SLIMbus to a circuit shorted by the A6 pin and the B6 pin in the USB Type-C socket, and passing the B6 pin and the terminal The peripheral connection; and the DATA pin of the above SLIMbus is connected to the circuit shorted by the A7 pin and the B7 pin in the USB Type-C socket, and is connected to the terminal peripheral through the B7 pin.
  • the channel switching module 20 includes: a second switching circuit configured to connect the CLK pin and the DATA pin of the SLIMbus to the first pin and the first of the USB socket respectively through the first switch when the forward insertion is detected a second pin; and when the reverse insertion is detected, the CLK pin and the DATA pin of the SLIMbus are respectively connected to the third pin of the USB socket through the first switch (which may be a single-pole double-throw switch) The fourth pin.
  • the first pin and the second pin respectively comprise: a B6 pin and a B7 pin of the USB socket; and the third pin and the fourth pin respectively comprise: the USB Type-C socket A6 and A7 pins.
  • the foregoing channel switching module includes:
  • a third switching circuit configured to connect the CLK pin and the DATA pin of the SLIMbus to the fifth pin and the sixth pin of the USB socket respectively through the second switch when the forward insertion is detected;
  • the CLK pin and the DATA pin of the SLIMbus are respectively connected to the sixth pin and the first of the USB socket through the second switch. Five pins.
  • the fifth pin and the sixth pin are extension pins of the USB Type-C socket.
  • the fifth pin and the sixth pin respectively include: an A8 pin and a B8 pin of the USB Type-C socket described above.
  • the terminal further includes: a channel controller CC configured to detect an insertion direction of the plug of the terminal peripheral, and perform information interaction with the terminal peripheral through the CC bus, where the insertion direction includes: forward insertion and reverse insertion.
  • a channel controller CC configured to detect an insertion direction of the plug of the terminal peripheral, and perform information interaction with the terminal peripheral through the CC bus, where the insertion direction includes: forward insertion and reverse insertion.
  • Initial state The peripheral is not plugged in, and the host channel configuration module monitors the channel configuration bus.
  • the peripheral is inserted into the host, and the host channel configuration module detects that there is a peripheral insertion.
  • the channel configuration module reports the information inserted in the USB port to the host CPU system module.
  • the host CPU system module notifies the power management module to output the VBUS voltage to supply power to the peripheral power supply module inserted into the USB interface; the peripheral power supply module converts the VBUS into the voltage required by each module.
  • the fourth step S304 the peripheral side, after the peripheral circuit completes the power-on initialization, the device control module informs the host side of the channel configuration module SLIMbus peripheral information through the channel configuration bus; the host side channel configuration module reports the SLIMbus peripheral information to the CPU System module.
  • the host side CPU system module controls the ⁇ signal switching module> switching switch SW, and the SLIMbus clock and the data line sent to the Receptacle pin are routed to the corresponding SLIMbus signal channel in the host. Enable the ⁇ Signal Switch Module>EN pin to turn the SLIMbus channel on.
  • the host CPU system module notifies that the channel configuration module SLIMbus channel has passed through, and the channel configuration module uses the channel configuration bus to tell the peripheral host side that it is ready.
  • the seventh step S307 the peripheral side, the device control module initializes the peripheral AUDIO module, and the SLIMbus Routing to the corresponding pin of the USB interface, establishing the SLIMbus channel on the peripheral side,
  • the peripheral device informs the channel configuration module on the host side through the channel configuration bus, the peripheral SLIMbus bus is ready to transmit signals; on the host side, the channel configuration module tells the CPU system module that the SLIMbus channel on the peripheral side has get ready.
  • the CPU system module sends the peripheral configuration data to the SLIMbus bus through the host AUDIO module, and updates the setting of the peripheral AUDIO module.
  • the peripheral configuration data can also be sent through the channel configuration bus path.
  • the peripheral AUDIO module tells the host through the SLIMbus bus, and the peripheral AUDIO module configuration is completed.
  • this step of S309 can also be done through the channel configuration bus path.
  • the SLIMbus channel can be officially used: either in standby mode; or to transmit audio or VOICE signals between peripherals and the host, to listen to music or make phone calls; or to communicate peripheral human-computer interaction information to the host, and so on.
  • the host channel configuration module monitors the channel configuration bus to monitor whether the peripheral is pulled out.
  • the host channel configuration module detects that the peripheral has been pulled out, turns off the VBUS power supply channel, resets the switch switching signal SW, sets the SLIMbus channel enable signal EN to Disable, and closes the SLIMbus channel. The host enters the peripheral unplugged state again.
  • the architecture is an architecture scheme that uses the SLIMbus bus to traverse the USB Type-C interface to transfer audio, data and control signals between the host and the peripherals using the SLIMbus bus. It is a USB interface under the SLIMbus Over USB architecture using USB Type- An embodiment of C is a subset of the SLIMbus Over USB interface architecture.
  • the SLIMbus Over USB Type-C device is an audio peripheral application based on the SLIMbus Over USB Type-C architecture. For example, SLIMbus Over USB Type-C headphones.
  • the architecture consists of the host, peripherals, and interaction signals between the host and the peripherals.
  • the host side part includes a CC controller module, a power management module, a forward and reverse channel switching module 0 and 1, a USB Type-C Receptacle, a CPU system module, and a host AUDIO module.
  • Peripheral side part including device control module, peripheral AUDIO module, peripheral power supply module, USB Plug, channel selection module (optional), when there is no channel selection module, SLIMbus bus selects one of channels 0, 1, 2 directly Connect to the USB Type-C Plug pin.
  • the interaction signal between the host and the peripheral SLIMbus and USB bus, channel configuration CC bus, power supply line, common ground.
  • SLIMbus can time-multiplex the USB D+/D- of the USB Type-C interface, or use the USB Type-C Plug alone to define the pins B6/B7 or SBU1, and the A8/B8 pins of the SBU2. See the section "SLIMbus Channel Establishment for Interaction Signals Between Host and Peripheral".
  • CC bus mode There are two forms of channel configuration: CC bus mode and USB bus mode; when CC bus is selected, the device control module on the peripheral side is in the form of USB Type C Cable Controller; when USB D+/D-bus is selected, peripherals are selected.
  • the device controller module on the side is in the form of a USB Device controller.
  • the CC controller module is used to complete the host forward and reverse connection status through the CC bus.
  • 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 Electroically 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.
  • Forward and reverse channel switching modules 0 and 1 can send the host AUDIO module
  • the SLIMbus clock and data signals are routed to the corresponding pins 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, RF transceiver and other hardware system platform chips, in addition to completing the functions of signal transceiving and conversion between the mobile network base station, etc., is also responsible for completing the establishment control and signal interaction of the host SLIMbus channel.
  • the CPU system module also directly performs the device identification acquisition function and the peripheral AUDIO module initialization function through the USB bus.
  • Host AUDIO module including audio codec (CODEC), Advanced Digital Signal Processor (ADSP), SPEAKER, RECEIVER, audio amplifier and so on. Signal interaction with the SLIMbus bus between the channel switching modules 0 and 1 is being performed.
  • the SLIMbus bus can be either the audio CODEC or the SLIMbus bridge circuit.
  • the device control module has a function of identifying basic information of the peripheral device, the information includes: indication information indicating that the peripheral is a SLIMbus-based peripheral; and a channel and pin definition of the SLIMbus bus.
  • the peripheral device and the host communicate with each other through the CC bus or the USB bus to complete the reporting of the peripheral identification information; and the peripheral audio module communicates with the initialization bus to complete the initialization of the peripheral AUDIO module.
  • the device controller module can be in the form of a USB Type C Cable Controller or a USB Device controller.
  • the device controller module is identified as a special EMCA electronic tag cable; when the device controller module is in the form of a USB Device controller, the device is identified as a special USB Device device.
  • Peripheral AUDIO modules including audio CODEC, mic DAC, audio DAC,
  • Audio amplifier HID (Human Interface Device), SPEAKER, microphone, etc.
  • HID Human Interface Device
  • SPEAKER Sensor Equipment
  • microphone etc.
  • SLIMbus is used between the channel selection module and the channel selection module.
  • the bus performs signal interaction. Or skip the channel selection module and connect directly to the USB Plug.
  • Peripheral power supply module obtained from USB Type-C Plug VBUS or VCONN pin
  • USB Type-C Plug the physical connection interface between the peripheral and the host, completed and
  • USB Type-C Receptacle of the host is plugged and unplugged.
  • Channel selection module mainly completes the peripheral side SLIMbus channel
  • This module can be omitted and the SLIMbus can be directly connected to the USB Plug available pin. Use or not, can be determined according to actual equipment design needs.
  • x represents the peripheral side SLIMbus_CLK
  • y represents the peripheral side SLIMbus_DATA
  • X represents the host side SLIMbus_CLK
  • Y represents the host side SLIMbus_DATA
  • 0, 1, 2 represents the optional channel number.
  • SLIMbus time division multiplexes the two legs D+/D- of the USB channel.
  • the peripheral is connected to the A6/A7 of the USB Type-C Plug.
  • the forward/reverse channel switching module 0 can use the time division switching circuit to route the clock line x0 and the data lines y0 to X0/Y0 of the SLIMbus.
  • the USB Type-C Receptacle A6 pin and B6 pin on the host side are shorted, and the A7 pin and B7 pin are shorted. See Figure 8 for the schematic diagram of channel establishment.
  • SLIMbus peripherals are connected to the undefined B6/B7 pins on the USB Type-C Plug.
  • the forward/reverse channel switching module 0 can use the space division switching circuit to route the clock line x1 and the data lines y1 to X1/Y1 of the SLIMbus.
  • Figure 9 shows the principle of establishing a SLIMbus channel using B6/B7 not defined on the Plug.
  • SLIMbus peripheral side is connected to Plug A8, B8 pin, host side, forward and reverse channel switching module can use time division switching circuit, route SLIMbus clock x2 and data line y2 to X2/Y2.
  • the forward and reverse insertion adaptive signal switching module can be implemented with a two-way single-pole double-throw switch.
  • Figure 10 shows the principle of using the SBU1 and SBU2 pins of the Plug to establish the SLIMbus channel. As shown in Figure 9, when the peripheral is plugged in, the switch SW2 is pushed up, so that SLIMbus_CLK (X2) is connected to the USB Receptacle. A8, SLIMbus_DATA (Y2) is connected to B8 of USB Receptacle.
  • Channel 2 is the optimal channel solution for SLIMbus OVER USB Type-C.
  • SBU1/SBU2 can be customized with strong custom attributes, relatively standard, and relatively simple circuit structure. It can be realized with a two-way single-pole double-throw switch. Compared with USB D+/D-, SLIMbus has a relatively low signal frequency, and the requirements for the switching circuit are naturally lower, so that the circuit cost will be lower.
  • CC channel is configured for the channel of the interaction signal between the host and the peripheral
  • the CC bus is used to complete the host forward and reverse plug connection status identification.
  • the CC line is also used as an interactive bus between the host and the peripheral to complete the device identification and control settings of the audio module.
  • the host forwards and reverses the connection status identification and the CC behavior.
  • the DFP Downstream Facing Port
  • the UFP Upstream Facing Port
  • Peripheral side device control module indicates the uplink port.
  • two resistors Rp and Rd are introduced to define the behavior of the CC, and there may be changes in practical applications, for example, Rp may be replaced by a current source.
  • DFP CC has Rp pull-up
  • UFP CC has Rd pull-down
  • Power Cable's Vconn pin has Ra pull-down (in some cases pure resistance, some cases are load)
  • UFP passes Sense The voltage of two CC pins (more than 0V is CC) to determine the insertion direction.
  • the host recognizes the resistance of two CC pins, determines whether there is a UFP or Powered Cable connection, and determines the forward and reverse insertion, Debug Accessory Mode connected.
  • the communication signal between the host and the peripheral can be transmitted by USB2.0 data cable.
  • USB2.0 data cable Specifically, when the USB Device Controller is used as the device controller, the D+/D-data cable of USB2.0 is used as the host and the peripheral device.
  • Interactive bus to complete the device identification and control settings of the audio module.
  • the power and ground lines between the host and the peripherals Complete the power transmission between the host and the peripheral, and provide signal mirroring loop of USB, SLIMbus and CC bus.
  • 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. Here, two interaction processes are described.
  • the peripheral side USB Type-C Cable Controller acts as a device controller, externally connects to the CC bus, and internally controls the peripheral AUDIO module through the control bus I2C or SPI, GPIO, and the like. See Figure 12 for the specific interaction process.
  • the ninth step S1109 may further have another manner: the CPU system module issues peripheral configuration information through the CC controller CC bus; the peripheral controller module obtains configuration information from the CC bus, and updates the peripheral AUDIO module settings.
  • step 10 of S1110 becomes: the peripheral controller module informs the host through the CC bus, the peripheral AUDIO module configuration is completed; the CPU system module learns that the peripheral AUDIO module configuration is completed through the CC controller.
  • Step 11 S1111 becomes: SLIMbus channel transfers audio, CC bus transfers peripheral data.
  • USB bus interaction mode flow peripheral device USB Device Controller as device controller, external connection USB Type-C Plug USB D+/D-bus, internal control terminal AUDIO module control bus I2C or SPI, GPIO, etc. See Figure 13 for the specific interaction process.
  • the ninth step S1209 can also have another implementation: use the ⁇ SLIMbus bus to transfer peripheral configuration information> instead of ⁇ USB bus transfer peripheral configuration information>.
  • the host side becomes: the CPU system module issues the peripheral configuration information device controller through the SLIMbus bus; the peripheral side becomes: the device controller obtains configuration information from the SLIMbus bus, and updates the peripheral AUDIO module settings.
  • the corresponding tenth step S1210 is changed from ⁇ USB bus pass peripheral configuration completion> to ⁇ SLIMbus bus transfer peripheral configuration completion>.
  • the peripheral side becomes: the peripheral AUDIO module informs the host through the SLIMbus bus, the peripheral AUDIO module configuration is completed; the host side becomes: the CPU system module learns from the SLIMbus bus that the peripheral AUDIO module configuration is completed.
  • Corresponding step 11 S1211 Transfer audio from ⁇ SLIMbus channel, pass peripheral data on USB bus> to ⁇ SLIMbus channel transfer audio, control, data information>.
  • the present embodiment provides a terminal peripheral device based on a USB interface.
  • the terminal peripheral device includes: a second audio module 140 and a USB plug 142;
  • the second audio module 140 is connected to the USB plug and configured to receive a signal sent by the terminal accessed by the terminal peripheral through the low-power inter-chip serial media bus SLIMbus;
  • a USB plug 142 is configured to be coupled to the USB socket of the terminal and to forward the signal received from the USB socket to the second audio module.
  • the terminal peripheral device may further include: a channel selection module 144 disposed between the second audio module and the USB plug, configured to selectively connect the second audio module And a communication channel between the USB plug and the second audio module and the USB plug being connected through the communication channel.
  • a channel selection module 144 disposed between the second audio module and the USB plug, configured to selectively connect the second audio module And a communication channel between the USB plug and the second audio module and the USB plug being connected through the communication channel.
  • the channel selection module comprises a field programmable gate array FPGA circuit.
  • the terminal peripheral device further includes: a control module (also referred to as a device control module) 146 configured to maintain the terminal peripheral identifier, and to the second The audio module is initialized.
  • a control module also referred to as a device control module
  • the terminal peripheral device further includes: a power supply module, connected to the USB plug, configured to obtain power from the terminal through the USB plug, and supply power to the terminal peripheral .
  • a power supply module connected to the USB plug, configured to obtain power from the terminal through the USB plug, and supply power to the terminal peripheral .
  • the USB plug can be a Micro USB plug.
  • the control module has a USB iBUS bus for connecting the control module and the terminal.
  • the USB plug can also be a USB Type-C plug.
  • the control module is provided with a CC bus interface or a USB bus interface, and the CC bus interface or the USB bus interface is used for connecting with the terminal.
  • the second audio module comprises at least one of the following: a codec CODEC, a microphone digital-to-analog converter MIC DAC, a headphone amplifier, a human-machine interaction device HID, and a speaker.
  • channel 2 is selected (SBU1/SBU2 establishes SLIMbus channel, and device control module uses USB Type C Cable Controller.
  • SBU1/SBU2 establishes SLIMbus channel
  • device control module uses USB Type C Cable Controller.
  • SLIMbus Over USB Type-C architecture earphone is sometimes referred to as SLIMbus USBC earphone.
  • the SLIMbus USBC headset includes the following functional modules:
  • the device controller module uses the USB Type C Cable Controller form, the device identification is a special EMCA electronic tag cable; it has the function of identifying the basic information of the SLIMbus USBC headset.
  • This information includes: This is a SLIMbus bus headset; SLIMbus_CLK is defined in The SUB1 pin, SLIMbus_DATA, is defined in the USB SBU2.
  • 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
  • the power is taken from the VBUS pin of the USB Type-C Plug, converted to the voltage required for each module on the headphone side, and the power-on sequence is managed.
  • Headphone body
  • the physical connection interface between the earphone and the host completes the function of plugging and unplugging the USB Type-C Receptacle of the host.
  • the SLIMbus USBC headset requires host side:
  • the CC controller module supports the USB PD protocol, completes the acquisition of the headset tag and the initialization of the headset AUDIO module.
  • Power management module support USB OTG power supply, with power management capabilities,
  • the forward/reverse channel switching module sends the SLIMbus clock and data signals sent by the host AUDIO module to the SBU1/SBU2 pins, and completes the switching of the channels during forward and reverse insertion.
  • USB Type-C Receptacle the physical connection interface between the host and the headset, finished
  • the CPU system module includes a hardware system platform chip such as an application processor, a baseband processor, a memory, and a radio frequency transceiver, and completes a mobile phone function such as a signal transmission and reception conversion with a mobile network base station.
  • a hardware system platform chip such as an application processor, a baseband processor, a memory, and a radio frequency transceiver, and completes a mobile phone function such as a signal transmission and reception conversion with a mobile network base station.
  • Host AUDIO module including audio CODEC, ADSP, SPEAKER, RECEIVER, audio amplifier, etc. Signal interaction with the channel switching module using the SLIMbus bus.
  • the SLIMbus USBC headset has the following features:
  • the SLIMbus is used to communicate the operation information of the headphone wire control button with the SLIMbus (volume addition, subtraction, hang up, pause, fast forward, etc.);
  • the initialization signal is configured to communicate with the host through the CC bus. For details, refer to the flow shown in Figure 18.
  • the SLIMbus USBC headphone solution has low power consumption, and the SLIMbus low-power bus is used for signal transmission.
  • the control signals, audio signals and data signals all go SLIMbus during operation; compared with the UAC scheme, I2S to USB and USB transfer are saved.
  • the power consumption of the AP not sleeping when I2S and USB work is wasted.
  • the SLIMbus USBC headset solution is low cost.
  • the USB-I2S bridge conversion chip is not required 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; For the analog-to-digital hybrid earphones with channel time division multiplexing, the USB and headphone signal switching switches of the USB port are further eliminated.
  • the SLIMbus 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 omitted, and the audio signal insertion loss caused by the switch is further avoided.
  • the SLIMbus 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 SLIMbus USBC headphone solution of the headset uses the traditional audio architecture.
  • the difficulty of developing the earphone is relatively lower, and the digitalization process of the earphone is more advanced, and the product is more likely to seize the market opportunity.
  • a digital headset design that fully meets the mobile call latency requirements under the UAC architecture.
  • a signal sending method is provided, which may be run on the terminal in Embodiment 1, but is not limited thereto. As shown in FIG. 19, the flow includes steps S1902-S1904:
  • step S1902 the terminal generates a signal to be transmitted; optionally, the signal may be an audio signal, but is not limited thereto.
  • Step S1904 the terminal routes the signal to the USB socket in the terminal through the SLIM bus, and transmits the signal to the terminal peripheral via the USB socket.
  • the USB socket comprises: a Micro USB socket or a USB Type-C socket.
  • the method further includes: sending, by the terminal, configuration information of the terminal peripheral to the terminal peripheral by using the SLIMbus; the terminal is used by a channel controller CC bus The terminal peripheral sends the configuration information.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform.
  • hardware can also be used, but in many cases the former is a better implementation.
  • the technical solution of the present invention 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 cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a signal receiving method is provided. As shown in FIG. 20, the method includes
  • Step S2002 starting a terminal peripheral; wherein the meaning of the startup here may include, but is not limited to, a terminal peripheral access terminal, power-on initialization, and the like.
  • step S2004 the terminal peripheral receives the signal sent by the terminal through the SLIM bus through the USB plug of the terminal peripheral.
  • the USB plug includes but is not limited to: a Micro USB plug or a USB Type-C plug.
  • the embodiment provides a data transmission system based on a USB interface.
  • the system includes a host device 210 and a peripheral device 212 connected through the USB interface, wherein the host device 210 and peripheral devices are The signals are transmitted between the 212s via the SLIMbus bus across the USB interface.
  • the host device includes a baseband processor and an audio chip
  • the SLIMbus bus is configured to transmit a call signal between the baseband processor and the audio chip.
  • the SLIMbus bus includes a clock signal line and a data signal line connected to the USB interface.
  • the host device includes a channel switching module connected to the USB interface, and the channel switching module passes a clock signal line and a data signal line of the SLIM bus to the USB interface.
  • the host device includes a CPU system module, a host audio module, and a channel switching module, and the channel switching module routes a clock signal and a data signal of a USB and a host audio module of the CPU system module to a SLIMbus bus.
  • the USB interface includes a CPU system module, a host audio module, and a channel switching module, and the channel switching module routes a clock signal and a data signal of a USB and a host audio module of the CPU system module to a SLIMbus bus.
  • the host device further includes a channel configuration module connected to the USB interface, the channel configuration module configured to perform signal interaction with the audio peripheral device.
  • the host device further includes a power management module connected to the USB interface, and the power management module is configured to control power supply to the peripheral device or to charge the host device.
  • the audio peripheral device comprises a peripheral audio module, and the peripheral audio module is connected to the USB interface through the SLIMbus bus.
  • the audio peripheral device comprises a peripheral audio module and a peripheral channel selection module
  • the SLIMbus bus is connected to the USB interface through the peripheral channel selection module.
  • the audio peripheral device further includes a device control module connected to the USB interface, the device control module configured to perform signal interaction with the host device.
  • the audio peripheral device further includes a peripheral power supply module connected to the USB interface, and the peripheral power supply module is configured to obtain power from the host device to supply power to each module of the audio peripheral device.
  • the USB interface includes at least one of the following: a Micro USB interface and a USB Type-C interface.
  • the system consists of a host, peripherals, and signal transmission channels between the host and the peripherals.
  • the host side part in addition to the CPU system module and the AUDIO module, must also include a channel configuration module, a power management module, a channel switching module, and a USB Receptacle.
  • the peripheral side part includes the device control module, the peripheral AUDIO module, the peripheral power supply module, and the USB Plug.
  • a channel selection module can also be added. When there is no channel selection module, the SLIMbus bus is directly connected to the USB Plug pin.
  • the interaction signal between the host and the peripheral includes signals carried by one of the following: SLIMbus and USB channels, channel configuration bus, power supply line, and common ground.
  • SLIMbus and USB channels can be shared between SLIMbus and USB, or SLIMbus and USB can be separated.
  • the channel configuration module performs signal handshake interaction with the device control module on the peripheral side to complete the acquisition of the peripheral tag and the initialization of the peripheral AUDIO module.
  • the power management module which is planned according to the USB protocol, has power management capabilities and has the ability to supply power to peripherals.
  • the channel switching module can route the SLIMbus clock and data signals sent by the host AUDIO module to the corresponding pins of the USB.
  • USB Receptacle the physical connection interface between the host and the peripheral, completes the physical connection with the USB plug of the peripheral.
  • the CPU system module includes a hardware system platform chip such as an application processor, a baseband processor, a memory, and a radio frequency transceiver, and completes a mobile phone function such as a signal transmission and reception conversion with a mobile network base station.
  • a hardware system platform chip such as an application processor, a baseband processor, a memory, and a radio frequency transceiver, and completes a mobile phone function such as a signal transmission and reception conversion with a mobile network base station.
  • Host AUDIO module including audio CODEC, ADSP, SPEAKER, RECEIVER, audio amplifier and so on. Signal interaction with the channel switching module using the SLIMbus bus.
  • the SLIMbus bus can be either the audio CODEC or the SLIMbus bridge circuit.
  • the device control module has the function of identifying basic information of the peripheral device, including: this is a peripheral of the SLIMbus bus; the channel and pin definition of the SLIMbus bus. Perform signal handshake interaction with the channel configuration module on the host side to complete the reporting of the peripheral identification information and complete the initialization of the peripheral AUDIO module.
  • Peripheral AUDIO modules including audio CODEC, microphone DAC, audio DAC, audio amplifier, HID (Human Interface Device), SPEAKER, microphone, etc., interact with the channel selection module with SLIMbus bus. Or skip the channel selection module and connect directly to the USB Plug.
  • the peripheral power supply module takes power from the USB Plug (USB plug), converts it to the voltage required by each module on the peripheral side, and manages the power-on sequence.
  • USB Plug USB plug
  • USB Plug the physical connection interface between the peripheral and the host, completes the function of plugging and unplugging with the host's USB Receptacle.
  • the channel selection module mainly completes the peripheral side SLIMbus channel selection function. This module can be omitted and the SLIMbus can be directly connected to the USB Plug available pin.
  • the embodiment of the present application provides a host device having a USB Type-C interface, where the host device includes a host audio module and a USB Type-C interface, wherein the host audio module is connected to the USB Type-C interface through a SLIMbus bus. .
  • the USB Type-C interface includes a first USB 2.0 differential pair pin, a second USB 2.0 differential pair pin, and an SBU1/SBU2 (A8/B8) pin, and the host audio module is selectively connected through a SLIMbus bus.
  • the host audio module is selectively connected through a SLIMbus bus.
  • the SBU1/SBU2 (A8/B8) pin To the first USB 2.0 differential pair pin, the second USB 2.0 differential pair pin, or the SBU1/SBU2 (A8/B8) pin.
  • the host device further includes a channel switching module, where the host audio module selectively connects the SLIM bus bus to the first USB 2.0 differential pair pin and the second USB 2.0 through the channel switching module.
  • Differential pair pin or SBU1/SBU2 (A8/B8) pin.
  • the host device further includes a CPU system module, a controller module, and a power management module.
  • Embodiment 1 the structure of the host device in the embodiment of the present application can be referred to in Embodiment 1.
  • the structure of the host device or terminal is not described here.
  • the embodiment provides a peripheral device having a USB Type-C interface, the peripheral device includes a peripheral audio module and a USB Type-C interface, wherein the peripheral audio module is connected to the USB Type through a SLIMbus bus. -C interface.
  • the USB Type-C interface includes a USB 2.0 differential pair pin, a standard undefined B6/B7 pin, and an SBU1/SBU2 (A8/B8) pin, and the peripheral audio module passes the SLIMbus.
  • the bus selection is connected to the USB 2.0 differential pair pin, the standard undefined B6/B7 pin, or the SBU1/SBU2 (A8/B8) pin.
  • the peripheral device further includes a channel selection module, wherein the peripheral audio module selectively connects the SLIMbus bus to the USB 2.0 differential pair pin, and the standard undefined B6 through the channel selection module. /B7 pin, or SBU1/SBU2 (A8/B8) pin.
  • the peripheral device further includes a peripheral device control module and a peripheral power supply module.
  • the embodiment provides a host device having a USB universal serial bus interface, the host device including a host audio module and a USB universal serial bus interface, wherein the host audio module is connected to the USB universal serial through a SLIMbus bus Bus interface.
  • the USB universal serial bus interface includes a USB 2.0 differential pair pin, and the host audio module is connected to the USB 2.0 differential pair pin through a SLIMbus bus.
  • the host device further includes a channel switching module, where the host audio module connects the SLIMbus bus to the USB 2.0 differential pair pin through the channel switching module.
  • the host device further includes a CPU system module, a controller module, and a power management module.
  • Embodiments of the present invention provide a peripheral device having a universal serial bus interface, the peripheral device including a peripheral audio module and a USB universal serial bus interface, wherein the peripheral audio module is connected to the USBIM bus USB universal serial bus interface.
  • the USB universal serial bus interface includes a USB 2.0 differential pair pin, and the peripheral audio module is connected to the USB 2.0 differential pair pin through a SLIMbus bus.
  • the peripheral device further includes a channel selection module, and the peripheral audio module connects the SLIMbus bus to the USB 2.0 differential pair pin through the channel selection module.
  • the peripheral device further includes a peripheral device control module and a peripheral power supply module.
  • USB universal serial bus interface in this embodiment includes but is not limited to: a Micro USB interface.
  • the structure of the host device in the embodiment of the present application can be referred to the structure of the terminal peripheral device in Embodiment 1, and details are not described herein again.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the signal in the terminal is routed to the USB socket through the SLIMbus to implement the SLIMbus traversal (over) USB interface to connect the terminal peripheral, thereby realizing the signal transmission between the terminal and the terminal peripheral through the SLIMbus.
  • SLIMbus transmits digital signals, it can solve the problem that the signal is susceptible to interference because the signal is an analog signal; since SLIMbus is a low-power bus, it can solve the problem of large power consumption; since SLIMbus is a The audio bus between the internal chips of the terminal, therefore, can reduce the delay and improve the user experience.

Abstract

一种终端、终端外设、信号发送及接收方法、数据传输系统,其中,该终端包括:信道切换模块(20),第一音频模块(22)和USB插座(24);其中,所述信道切换模块(20),通过SLIMbus与所述第一音频模块(22)连接,配置为将所述第一音频模块(22)发送的音频信号路由至所述USB插座(24);第一音频模块(22),配置为产生所述信号;所述USB插座(24),与所述信道切换模块(20)连接,配置为提供所述终端与终端外设之间的物理连接接口。

Description

终端、终端外设、信号发送及接收方法、数据传输系统 技术领域
本发明涉及电子设备领域,具体而言,涉及一种终端、终端外设、信号发送及接收方法、数据传输系统。
背景技术
当前,在基于通用串行总线(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枚举延时,用户会觉察到卡顿,会降低用户对产品的整体体验效果。
针对相关技术中的上述问题,目前尚无有效的解决方案。
发明内容
本发明实施例提供了一种终端、终端外设、信号发送及接收方法、数据传输系统,以至少解决相关技术中终端外设的设计方案中存在信号干扰、信号延迟以及功耗较大等问题。
根据本发明的一个实施例,提供了一种终端,包括:信道切换模块,第一音频(Audio)模块和USB插座;其中,所述信道切换模块,通过低功耗芯片间串行媒体总线(Serial Low-power Inter-chip Media BUS,简称为SLIMbus)与所述第一音频模块连接,配置为将所述第一音频模块发送的音频信号路由至所述USB插座;第一音频模块,配置为产生所述信号;所述USB插座(Receptacle),与所述信道切换模块连接,配置为提供所述终端与终端外设之间的物理连接接口。
所述信道切换模块,所述第一音频模块和所述USB插座在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。
根据本发明的另一个实施例,提供了一种基于USB接口的终端外设,包括:设备控制模块、第二音频模块和USB插头(Plug);其中,第二音频模块,与所述USB插头连接,配置为接收所述终端外设所接入终端通过低 功耗芯片间串行媒体总线SLIMbus发送的信号;所述USB插头,与所述终端的USB插座连接,以及将从所述USB插座接收的所述信号转发至所述第二音频模块。
根据本发明的另一个实施例,提供了一种信号发送方法,包括:终端通过低功耗芯片间串行媒体总线SLIM bus将信号路由至所述终端中的USB插座,并经由该USB插座将所述信号发送至终端外设。
根据本发明的另一个实施例,提供了一种信号接收方法,包括:终端外设通过所述终端外设的USB插头接收来自终端通过低功耗芯片间串行媒体总线SLIM bus发送的信号。
根据本发明的又一个实施例,提供了一种数据传输系统,包括以上任一所述的终端以及终端外设。
通过本发明实施例,由于将终端中的信号通过SLIMbus路由到了USB插座实现了SLIMbus穿越(over)USB接口以连接终端外设,从而实现了通过SLIMbus进行终端与终端外设之间的信号传输。由于SLIMbus传输的是数字信号,因此,可以解决由于信号是模拟信号而导致信号易受干扰的问题;由于SLIMbus是一种低功耗总线,因此,可以解决功耗大的问题;由于SLIMbus是一种终端内部芯片间的音频总线,因此,可以降低时延,提升用户体验。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为根据相关技术中模数混合USB Type-C耳机结构示意图;
图2a为根据本发明实施例的一种终端的结构示意图;
图2b为根据本发明实施例的另一种终端的结构示意图;
图3为根据本发明实施例的一种SLIMbus Over USB接口架构示意图;
图4为根据本发明实施例的一种基于SLIMbus Over USB接口架构的信息交互流程图;
图5为根据本发明实施例的一种基于SLIMbus Over Micro USB接口的耳机架构图;
图6为根据本发明实施例的一种基于SLIMbus Over Micro USB接口的耳机的工作流程示意图;
图7为根据本发明实施例的一种基于SLIMbus Over USB Type-C接口的耳机架构图;
图8为根据本发明实施例的利用耳机插头的USB D+/D-管脚建立SLIMbus信道示意图;
图9为根据本发明实施例的利用USB插头上未定义的B6/B7引脚建立SLIMbus信道示意图;
图10为根据本发明实施例的利用USB插头上SBU1和SBU2管脚建立SLIMbus信道示意图;
图11为根据本发明实施例的主机连接状态识别的电路原理示意图;
图12为根据本发明实施例的终端外设和主机(又称为终端)间使用CC总线进行交互的流程图;
图13为根据本发明实施例的终端外设和主机间使用USB进行交互的流程图;
图14为根据本发明实施例的一种终端外设的结构框图;
图15为根据本发明实施例的另一种终端外设的结构框图;
图16为根据本发明实施例的一种基于SLIMbus Over USB Type-C的耳机结构示意图;
图17为根据本发明实施例的一种基于SLIMbus Over USB Type-C的耳 机转接电路板结构示意图;
图18为根据本发明实施例的耳机和主机间使用CC总线交互流程示意图;
图19为根据本发明实施例的一种基于USB接口的终端外设的结构示意图;
图20为根据本发明实施例的一种信号发送方法的流程图;
图21为根据本发明实施例的一种信号接收方法的流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
为便于理解本实施例,以下将本申请实施例中所涉及的技术术语解释如下:
外设,即外部设备,是指连接在计算机主机以外的硬件设备,对数据和信息起着传输、转送和存储的作用。
低功耗芯片间串行媒体总线(SLIMbus):是移动终端内基带或应用处理器与外设部件间的标准接口。
目前,终端外设在与终端(又称为主机)交互时存在信号干扰、信号延迟、以及功耗较大等技术问题。
针对第1个问题(即模拟信号容易受干扰),采用的方案尽量使传输的信号为数字信号。
针对第2个问题(终端里USB与I2S信号间的打包解包过程、以及USB TYPE C耳机中USB与I2S信号间的打包解包过程,比较耗功耗),所采取的 方案功耗一定要相对较低,最好不要使用USB转接桥方式,使用时AP应用处理器可以睡眠。
要解决第3个问题(枚举时延),方案必须保证在使用过程中不能有模式切换。同时要满足通话时延要求,所采用的方案移动网下的通话时延一定要满足通信规范要求,即通话时延要小。
因此,要解决相关技术中存在的上述问题,采用的方案一定要具有以下特征:数字方式、功耗低、使用过程连贯、通话时延满足要求。
基于上述思想,可以选用SLIMbus总线实现终端与终端外设间
在目前的主流终端平台上,SLIMbus就具有上述特征,它完美的实现了SOC(包括应用处理器AP和基带处理器DBB等)与音频CODEC间的控制信号、音频信号、数据信号的传递。是一种极简洁的芯片间信号传递的方案。
因此,将终端中的SLIMbus与不同模式的USB接口(USB Type-C和Micro USB接口)结合,以解决上述问题。
SLIMbus除了功耗低、通话时延满足要求外,更重要的是,SLIMbus可以挂有多个外设器件。这样可以在主机内部挂一个音频模块(例如编解码器CODEC),主机外部挂一个音频模块(包括但不限于外设侧的CODEC)。
同时作为耳机必须满足USB耳机的基本属性要求:支持热插拔和穿越USB Type-C接口。
SLIMbus虽然主要用于在如移动终端等单个终端内完成通信。然而,根据SLIMbus总线规范中适当协议而产生的系统使用需求,SLIMbus总线设备允许动态的“掉线”和“重新接入”总线。这可以满足USB Type-C耳机的热插拔要求。
并且,SLIMbus作为一种串行总线,它只有两根线:时钟线CLK和数据线DATA,控制信号、音频信号、线控信号都走在这两根线上,容易通过管脚复用或端口扩展的方式穿越USB Type-C接口(即通过管脚复用或端口扩 展的方式将SLIMbus与USB接口产生关联,例如映射或连接)。
以下结合具体实施例详细说明。
实施例1
本实施例提供一种终端,该终端具有通过SILMbus与终端外设进行信号传输的功能(即SLIMbus Over USB),图2a为根据本发明实施例的一种终端的结构示意图。如图2a所示,该终端包括:信道切换模块20,第一音频模块22和USB插座24(即位于主机侧的USB接口);其中,
信道切换模块20,通过SLIMbus与第一音频模块22连接,配置为将上述第一音频模块22发送的信号路由至上述USB插座24;
第一音频模块22,配置为产生上述信号;可选地,上述第一音频模块包括以下至少之一:编译码器CODEC,数字信号处理器、扬声器、音频放大器。
USB插座24,与上述信道切换模块连接,配置为提供上述终端与终端外设之间的物理连接接口。其中,该终端外设可以包括但不限于音频外设,例如耳机等。
如图2b所示,上述终端还可以包括:系统模块(又称为CPU系统模块)26,分别与上述第一音频模块和上述信道切换模块20连接,配置为与网络侧进行信息交互。可选地,该系统模块26可以为系统级芯片或与该系统级芯片相关的电路等,其中,系统级芯片包括但不限于应用处理器、基带处理器、存储器、射频收发器。
可选地,如图2b所示,上述终端还可以包括:通道配置模块28,分别与上述系统模块26和终端外设连接,配置为检测上述USB插座是否有终端外设接入,并将用于指示是否有外设接入的指示信息上报至上述系统模块;
如图2b所示,终端还包括:电源管理模块30,与上述系统模块26连接,接收上述系统模块26发送的通知信息,并在接收到上述通知信息后为终端 外设供电。
在本申请实施例中,上述终端可以根据不同的USB接口类型采用不同的处理方案,例如在上述USB插座为Micro USB插座和USB Type-C插座时可以采用不同的方案,以下便以这两种USB接口类型为例进行说明。
1、对于Micro USB插座
在一个可选实施例中,信道切换模块20包括:至少一个双路单刀双掷开关电路,上述SLIMbus通过上述双路单刀双掷开关电路与上述USB插座的指定引脚相连。其中,双路单刀双掷开关电路包括但不限于单刀双掷开关等元器件。
可选地,上述SLIMbus的CLK引脚和DATA引脚通过上述双路单刀双掷开关电路与上述USB插座中的D+引脚和D-引脚连接。
可选地,上述USB插座为Micro USB插座时,上述通道配置模块为通道配置总线,该通道配置总线为USB iBUS总线。
以下详细说明SLIMbus Over Micro USB的架构及其实现方案
SLIMbus Over Micro USB架构利用SLIMbus总线穿越Micro USB接口,在主机和外设间,用SLIMbus传递音频、数据和控制信号的架构方案,它是SLIMbus Over USB架构下的USB接口使用Micro USB的一种具体化,是SLIMbus Over USB架构的一个子集。
SLIMbus Over Micro USB设备是基于SLIMbus Over Micro USB架构的一种音频外设。这里以耳机外设为例进行说明,即一种SLIMbus Over Micro USB耳机,简称Micro USB耳机。
该Micro USB耳机具有以下特征:
跟主机间通过SLIMbus传递控制信号;
跟主机间通过SLIMbus传递音频信号;
跟主机间通过SLIMbus传递耳机线控按键操作信息(音量加减、接通挂 断、暂停、快进等功能);
SLIMbus的时钟线和数据线复用Micro USB接口的D+/D-数据线。
该耳机利用Micro USB接口的ID信号线,作为通道配置总线,使用USB iBUS单总线协议,传输控制信号。
如图5所示,该Micro USB耳机架构由耳机、主机、及主机跟耳机间的交互信号所使用的传输通道(包括接口)构成。利用SLIMbus穿越Micro USB接口,传递音频、控制、数据信号。
耳机侧部分,包括设备控制模块、耳机AUDIO模块、耳机供电模块、耳机USB Plug。SLIMbus总线直接连USB Plug管脚上。当然,也可以在SLIMbus与USB之间设置一个信道选择模块,该信道选择模块可以通过单刀双掷开关电路实现,该单刀双掷开关电路至少包括一个单刀双掷开关。
主机侧部分,除包括CPU系统模块和AUDIO模块外,还必须包括通道配置模块、电源管理模块、信道切换模块、USB Receptacle。
主机跟耳机间的交互信号:SLIMbus总线,通道配置总线,供电线,共地线。SLIMbus共用了USB的信道即D+/D-。通道配置总线采用USB的iBUS单总线协议。
该Micro USB耳机各模块功能:
1)设备控制模块:
具有标识Micro USB耳机基本信息的功能,这些信息包括:这是一个SLIMbus总线的耳机;SLIMbus_CLK定义在了USB D+管脚,SLIMbus_DATA定义在了USB D-。与主机侧的通道配置模块间,用USB iBUS单总线进行通讯,完成耳机标识信息的上报,并完成耳机AUDIO模块的初始化。
2)耳机AUDIO模块:
包括音频CODEC、MIC DAC、耳机DAC、耳机放大器、耳机线控识别 和编码等,具有I2C接口,具有SLIMbus接口,SLIMbus接口直接连到USB的D+/D-接口上。
3)耳机供电模块:
从Micro USB Plug的VBUS获取电源,转换成耳机侧各模块所需的电压,并进行上电顺序的管理。
4)耳机本体:
包括耳机喇叭、MIC、线控按键、耳机线缆等,即传统3.5mm耳机除了插头外所有部分。
该Micro USB耳机对主机侧的要求:
通道配置模块,与耳机侧的设备控制模块间通过USB iBUS
单总线进行通讯,完成耳机标签的获取和耳机AUDIO模块的初始化。
电源管理模块,支持USB OTG供电,具有电源管理能力,
具有给耳机供电的能力。
信道切换模块,可用一个双路单刀双掷电路来实现,
主机AUDIO模块送出的SLIMbus时钟和数据信号复用USB D+/D-管脚。
Micro USB Receptacle,主机与耳机的物理连接接口,完
成与耳机的Micro USB Plug进行物理连接的功能。
CPU系统模块,包括应用处理器、基带处理器、存储器、
射频收发等硬件系统平台芯片,除完成与移动网络基站间的信号收发转换等功能外,还负责完成主机SLIMbus信道的建立控制及信号交互。
主机AUDIO模块,包括音频CODEC、ADSP、SPEAKER、
RECEIVER、音频放大器等。与信道切换模块间用SLIMbus总线进行信号交互。SLIMbus总线可以是音频CODEC自带,也可通过SLIMbus桥电路转换。
该Micro USB耳机的使用流程:
该Micro USB耳机的使用,参见<图6SLIMbus Over Micro USB耳机使用流程>,对比<图4SLIMbus Over USB接口架构的交互流程图>可以看出,Micro USB耳机的使用流程,几乎跟耳机与主机间交互流程是一样的,只是通道配置总线采用了USB iBUS总线而已。
该Micro USB耳机的技术效果是:
1)该Micro USB耳机方案功耗低,信号传输使用的是SLIMbus低功耗总线,工作时控制信号、音频信号、数据信号都走SLIMbus;相对UAC方案,更省掉了I2S转USB、USB转I2S、USB工作时AP不能睡眠的功耗浪费。
2)该Micro USB耳机方案成本低。耳机侧不需要USB-I2S桥转换芯片;相对模数混合耳机来讲,后级电路无需加双路耳机切换开关芯片;相对通道时分复用的模数混合耳机来讲,更进一步省掉了USB口的前级USB和耳机信号切换开关。
3)该Micro USB耳机HIFI性能更有保障。首先,该方案是纯数字的,数字信号不容易受干扰;其次,相对模数混合耳机来讲,后级电路无需加双路耳机切换开关,避免了开关造成的音频信号插损。相对通道时分复用的模数混合耳机来讲,进一步省掉了USB和耳机信号切换开关,更进一步避免了开关造成的音频信号插损。
4)该Micro USB耳机方案能完全满足移动通话时延要求。音频通路完全跟传统手机一样,自然通话时延也跟传统手机一样。
5)该耳机Micro USB耳机方案,软件上沿用了传统的音频架构,开发耳机难度相对更低,耳机完全数字化进程更提前,产品更容易抢占市场先机。UAC架构下的完全满足移动通话时延要求的数字耳机设计,需等待UAC标准改进,等待主机硬件平台和软件架构优化,假以时日才能实现。
2、USB插座为USB Type-C插座
信道切换模块20包括:第一切换电路,该第一切换电路通过时分复用 的方式在SLIMbus与上述USB Type-C插座之间形成上述终端外设的插头正向插入时的第一通路和上述插头反向插入时的第二通路。
可选地,上述第一通路通过以下方式确定:上述SLIMbus的CLK引脚与上述USB Type-C插座中A6引脚和B6引脚短接后的电路连接,并通过上述A6引脚与上述终端外设连接;以及上述SLIMbus的DATA引脚与上述USBType-C插座中A7引脚和B7引脚短接后的电路连接,并通过上述A7引脚与上述终端外设连接。
可选地,上述第二通路通过以下方式确定:上述SLIMbus的CLK引脚与上述USB Type-C插座中A6引脚和B6引脚短接后的电路连接,并通过上述B6引脚与上述终端外设连接;以及上述SLIMbus的DATA引脚与上述USBType-C插座中A7引脚和B7引脚短接后的电路连接,并通过上述B7引脚与上述终端外设连接。
信道切换模块20包括:第二切换电路,配置为在检测到正向插入时,通过第一切换开关将上述SLIMbus的CLK引脚和DATA引脚分别接入上述USB插座的第一引脚和第二引脚;以及在检测到反向插入时,通过上述第一切换开关(可以为单刀双掷开关)将上述SLIMbus的CLK引脚和DATA引脚分别接入上述USB插座的第三引脚和第四引脚。
可选地,上述第一引脚和上述第二引脚分别包括:上述USB插座的B6引脚和B7引脚;上述第三引脚和上述第四引脚分别包括:上述USB Type-C插座的A6和A7引脚。
可选地,上述信道切换模块包括:
第三切换电路,配置为在检测到正向插入时,通过第二切换开关将上述SLIMbus的CLK引脚和DATA引脚分别接入上述USB插座的第五引脚和第六引脚;以及在检测到反向插入时,通过上述第二切换开关将上述SLIMbus的CLK引脚和DATA引脚分别接入上述USB插座的第六引脚和第 五引脚。
其中,上述第五引脚和第六引脚为上述USB Type-C插座的扩展引脚。
上述第五引脚和第六引脚分别包括:上述USB Type-C插座的A8引脚和B8引脚。
上述终端还包括:通道控制器CC,配置为检测上述终端外设的插头的插入方向,以及通过CC总线与上述终端外设进行信息交互,上述插入方向包括:正向插入和反向插入。
为便于理解本申请实施例,以下结合图4所示流程详细说明主机和外设间的交互流程,如图4所示,该流程包括以下处理步骤:
初始状态:外设未插入,主机通道配置模块监测通道配置总线。
第一步S301,外设插入主机,主机通道配置模块检测到有外设插入。
第二步S302,主机侧,通道配置模块将USB口有外设插入的信息,上报给主机CPU系统模块。
第三步S303,主机CPU系统模块通知电源管理模块输出VBUS电压给插到USB接口的外设供电模块供电;外设供电模块在将VBUS转换成各模块所需的电压。
第四步S304,外设侧,外设电路完成上电初始化后,设备控制模块通过通道配置总线告诉主机侧的通道配置模块SLIMbus外设信息;主机侧通道配置模块将SLIMbus外设信息上报给CPU系统模块。
第五步S305,主机侧CPU系统模块控制<信号切换模块>切换开关SW,将送到Receptacle管脚的SLIMbus时钟和数据线,路由到主机内相应的SLIMbus信号通道。并使能<信号切换模块>EN管脚,使SLIMbus通道打开。
第六步S306,主机CPU系统模块通知通道配置模块SLIMbus通道已贯通,通道配置模块通过通道配置总线,告诉外设主机侧已经准备就绪。
第七步S307,外设侧,设备控制模块初始化外设AUDIO模块,将SLIMbus 路由到USB接口相应管脚,建立外设侧的SLIMbus信道,
第八步S308,外设通过通道配置总线告诉主机侧的通道配置模块,外设SLIMbus总线已准备好,可以传递信号了;主机侧,通道配置模块告诉CPU系统模块,外设侧的SLIMbus通道已准备好。
第九步S309,CPU系统模块通过主机AUDIO模块下发外设配置数据到SLIMbus总线,更新外设AUDIO模块的设置。当然,外设配置数据下发也可通过通道配置总线通路去完成。
第十步S310,外设AUDIO模块通过SLIMbus总线告诉主机,外设AUDIO模块配置完成。当然,S309这一步也可通过通道配置总线通路去完成。
第十一步S311,SLIMbus信道可以正式使用了:要么处于待命状态;要么在外设与主机间传递音频或VOICE信号,听音乐或打电话;要么传递外设人机交互信息给主机,等等。同时,主机通道配置模块监测通道配置总线,监测外设是否拔出。
第十二步S312,主机通道配置模块监测到外设已拔出,关闭VBUS供电通道;复位开关切换信号SW,置SLIMbus通道使能信号EN为Disable,关闭SLIMbus通道。主机再次进入外设未插入状态。
以下详细说明SLIMbus Over USB Type-C架构。
该架构是一种利用SLIMbus总线穿越USB Type-C接口,在主机和外设间,用SLIMbus总线传递音频、数据和控制信号的架构方案,它是SLIMbus Over USB架构下的USB接口使用USB Type-C的一种具体化,是SLIMbus Over USB接口架构的一个子集。
SLIMbus Over USB Type-C设备是基于SLIMbus Over USB Type-C架构的一种音频外设应用。比如说SLIMbus Over USB Type-C耳机等。
SLIMbus Over USB Type-C架构
如图7所示,该架构由主机、外设、及主机跟外设间的交互信号构成。
主机侧部分,包括CC控制器模块、电源管理模块、正反插信道切换模块0和1、USB Type-C Receptacle、CPU系统模块和主机AUDIO模块。
外设侧部分,包括设备控制模块、外设AUDIO模块、外设供电模块、USB Plug、信道选择模块(可选),没信道选择模块时,SLIMbus总线选择通道0,1,2中的一个直接到连USB Type-C Plug管脚上。
主机跟外设间的交互信号:SLIMbus和USB总线,通道配置CC总线,供电线,共地线。
SLIMbus可以时分复用USB Type-C接口的USB D+/D-,也可单独使用USB Type-C Plug未定义管脚B6/B7或SBU1,SBU2的A8/B8管脚。详见<主机跟外设间的交互信号之SLIMbus信道建立>章节。
通道配置有两种形式可以选择:CC总线方式和USB总线方式;当选用CC总线时,外设侧的设备控制模块是USB Type C Cable Controller形式;当选用USB D+/D-总线时,外设侧的设备控制器模块用USB Device控制器形式。
主机侧部分:
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功能,具有给外设供电的能力。
正反插信道切换模块0和1,能将主机AUDIO模块送出的
SLIMbus时钟和数据信号路由到USB Type-C Receptacle相应管脚上。
USB Type-C Receptacle,主机与外设间的物理连接接口,
完成与外设的USB Type-C Plug进行物理连接的功能。
CPU系统模块,包括应用处理器、基带处理器、存储器、射频收发等硬件系统平台芯片,除完成与移动网络基站间的信号收发转换等功能外,还负责完成主机SLIMbus信道的建立控制及信号交互。当外设用USB Device Controller作为设备控制器时,CPU系统模块还直接通过USB总线,完成设备标识获取功能和外设AUDIO模块初始化功能。
主机AUDIO模块,包括音频编解码器(CODEC)、高级数字信号处理器(Advanced Digital Signal Processer,简称为ADSP)、SPEAKER、RECEIVER、音频放大器等。与正发插信道切换模块0和1间用SLIMbus总线进行信号交互。SLIMbus总线可以是音频CODEC自带,也可通过SLIMbus桥电路转换。
外设侧部分:
设备控制模块,具有标识外设基本信息的功能,这些信息包括:用于指示该外设为基于SLIMbus总线的外设的指示信息;SLIMbus总线的通道和管脚定义。该外设与主机间,通过CC总线或USB总线进行信号握手交互,完成外设标识信息的上报;与外设Audio模块间,用初始化总线进行通讯,完成外设AUDIO模块的初始化。
设备控制器模块可以是USB Type C Cable Controller形式,也可以是USB Device控制器形式。当设备控制器模块是Cable Controller形式时,设备标识为一种特殊的EMCA电子标记电缆;当设备控制器模块是USB Device控制器形式时,设备标识为一种特殊的USB Device设备。
外设AUDIO模块,包括音频CODEC、麦克DAC、音频DAC、
音频放大器、HID(Human Interface Device人机交互器件)、SPEAKER、麦克风等,当外设中使用了信号选择模块,与信道选择模块间用SLIMbus 总线进行信号交互。或跳过信道选择模块与USB Plug直接相连。
外设供电模块,从USB Type-C Plug VBUS或VCONN管脚获
取电源,转换成外设侧各模块所需的电压,并进行上电顺序的管理。
USB Type-C Plug,外设与主机间的物理连接接口,完成与
主机的USB Type-C Receptacle进行插拔的功能。
信道选择模块,作为可选项,主要完成外设侧SLIMbus通道
选择功能。该模块可省略,直接将SLIMbus连到USB Plug可用管脚。使用与否,可根据实际设备设计需要来定。
主机跟外设间的交互信号之SLIMbus信道建立
SLIMbus如何穿越USB Type C接口?在SLIMbus Over USB Type-C架构中,有三个通道可以用来建立SLIMbus的信道,参见<图6SLIMbus Over USB Type-C架构图>中SLIMbus通道0,SLIMbus通道1,SLIMbus通道2。图6中x代表外设侧SLIMbus_CLK,y代表外设侧SLIMbus_DATA;X代表主机侧SLIMbus_CLK,Y代表主机侧SLIMbus_DATA;0,1,2代表可选用的通道号。
通道0,SLIMbus时分复用USB通道的两个脚D+/D-。外设侧接USB Type-C Plug的A6/A7。主机侧,正反插信道切换模块0可用时分切换电路,路由SLIMbus的时钟线x0和数据线y0到X0/Y0。主机侧的USB Type-C Receptacle A6管脚和B6管脚短接,A7管脚和B7管脚短接。通道建立示意图参见图8
通道1,SLIMbus外设侧接USB Type-C Plug上未定义的B6/B7管脚。主机侧,正反插信道切换模块0可用空分切换电路,路由SLIMbus的时钟线x1和数据线y1到X1/Y1。图9示出了利用Plug上未定义的B6/B7建立SLIMbus信道的原理。当CC控制器检测到外设正向插时,切换开关SW1往上打,SLIMbus走USB Type-C Receptacle的B6/B7管脚;外设反插时,SW1开关往下打,SLIMbus走USB Type-C Receptacle的A6/A7管脚。使能信号EN1用来 Enable或Disable通道选择器,使信道导通或关断。
通道2,SLIMbus外设侧接Plug的A8,B8管脚,主机侧,正反插信道切换模块可用时分切换电路,路由SLIMbus的时钟x2和数据线y2到X2/Y2。正反插适配信号切换模块可用一个双路单刀双掷开关就可实现。图10示出了利用Plug的SBU1、SBU2管脚建立SLIMbus信道的原理,如图9所示,外设正向插时,切换开关SW2往上掷,使SLIMbus_CLK(X2)接通到USB Receptacle的A8,SLIMbus_DATA(Y2)接通到USB Receptacle的B8。外设反向插时,切换开关SW2往下掷,使SLIMbus_CLK(X2)接通到USB Receptacle的B8,SLIMbus_DATA(Y2)接通到USB Receptacle的A8。
综合看来,通道2是SLIMbus穿越(OVER)USB Type-C的最优通道方案。SBU1/SBU2可自定义属性较强,比较规范,电路结构也相对简单,用一个双路单刀双掷开关就可实现。SLIMbus相对USB D+/D-来讲,信号频率相对低很多,对开关电路的要求自然也低一些,从而电路成本也会低一些。
主机跟外设间的交互信号之通道配置CC总线
CC总线用来完成主机正反插连接状态识别。当用USB Type-C Cable Controller作为设备控制器时,还用CC线作为主机与外设间的交互总线,来完成设备标识和音频模块的控制设置等。
主机正反插连接状态识别和CC行为,图11中,DFP(Downstream Facing Port),表示下行端口,这里可理解为主机CC控制器;UFP(Upstream Facing Port),表示上行端口,这里可理解为外设侧设备控制模块。
如图11所示,本申请实施例为定义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通过 Sense两个CC Pin的电压(超过0V为CC),判别插入方向。
如下表中描述了主机通过感知两个CC管脚的电阻,判别是否有UFP或Powered Cable连接,并判别正反插、Debug Accessory Mode connected。
USB Type-C主机连接状态识别表
Figure PCTCN2016105762-appb-000001
主机跟外设间的交互信号的传输可以采用USB2.0数据线,具体地,当用USB Device Controller作为设备控制器时,用USB2.0的D+/D-数据线作为主机与外设间的交互总线,来完成设备标识和音频模块的控制设置等。
主机跟外设间的供电线和接地线。完成主机给外设间的电源传输,并提供USB、SLIMbus、CC总线的信号镜像回路。
主机跟外设间的交互,可通过两种方式进行,CC总线交互方式和USB总线交互方式,这里以两个交互流程进行说明。
主机跟外设间的交互流程之CC总线交互
CC总线交互方式时,外设侧USB Type-C Cable Controller作为设备控制器,对外连接CC总线,对内通过控制总线I2C或SPI、GPIO等,控制外设AUDIO模块。具体交互流程参见图12所示。
其中,第九步S1109可以还可以有另外的方式:CPU系统模块通过CC控制器CC总线下发外设配置信息;外设控制器模块从CC总线上获得配置信息,更新外设AUDIO模块设置。
相应的第10步S1110变为:外设控制器模块通过CC总线告知主机,外设AUDIO模块配置完成;CPU系统模块通过CC控制器获悉外设AUDIO模块配置完成。第11步S1111变为:SLIMbus通道传递音频、CC总线传递外设数据。
主机跟外设间的交互流程之USB总线交互
USB总线交互方式流程,外设侧USB Device Controller作为设备控制器,对外连接USB Type-C Plug的USB D+/D-总线,对内接外设AUDIO模块的控制总线I2C或SPI、GPIO等。具体交互流程参见图13所示。
其中,第九步S1209还可以有另外的实现方式:用<SLIMbus总线传递外设配置信息>,代替<USB总线传递外设配置信息>。主机侧侧变为:CPU系统模块通过SLIMbus总线下发外设配置信息设备控制器;外设侧变为:设备控制器从SLIMbus总线上获得配置信息,更新外设AUDIO模块设置。
相应的第十步S1210:由<USB总线传递外设配置完成>变为<SLIMbus总线传递外设配置完成>。外设侧变为:外设AUDIO模块通过SLIMbus总线告知主机,外设AUDIO模块配置完成;主机侧变为:CPU系统模块从SLIMbus总线获悉外设AUDIO模块配置完成。
相应的第11步S1211:由<SLIMbus通道传递音频、USB总线传递外设数据>变为<SLIMbus通道传递音频、控制、数据信息>。
实施例2
本实施例提供一种基于USB接口的终端外设,如图14所示,该终端外设包括:第二音频模块140和USB插头142;其中,
第二音频模块140,与所述USB插头连接,配置为接收所述终端外设所接入终端通过低功耗芯片间串行媒体总线SLIMbus发送的信号;
USB插头142,配置为与所述终端的USB插座连接,以及将从所述USB插座接收的所述信号转发至所述第二音频模块。
可选地,如图15所述,所述终端外设还可以包括:信道选择模块144,设置于所述第二音频模块和所述USB插头之间,配置为选择连接所述第二音频模块和所述USB插头之间的通信通道,并通过所述通信通道连接所述第二音频模块和所述USB插头。
可选地,信道选择模块包括现场可编程门阵列FPGA电路。
在一个可选实施例中,如图15所示,所述终端外设还包括:控制模块(又称为设备控制模块)146,配置为维护所述终端外设标识,并对所述第二音频模块进行初始化配置。
可选地,如图15所示,所述终端外设还包括:供电模块,与所述USB插头连接,配置为通过所述USB插头从所述终端获取电源,并为所述终端外设供电。
可选地,USB插头可以为Micro USB插头。此时,所述控制模块具有USB iBUS总线,该USB iBUS总线用于连接所述控制模块和所述终端。
所述USB插头还可以为USB Type-C插头。此时,所述控制模块设置有CC总线接口或USB总线接口,所述CC总线接口或所述USB总线接口用于与所述终端连接。
可选地,所述第二音频模块包括以下至少之一:编译码器CODEC,麦克风数模转换器MIC DAC、耳机放大器、人机交互设备HID、扬声器。
以下以SLIMbus Over USB Type-C架构的耳机为例进行说明。
如图16所示,选择通道2(SBU1/SBU2建立SLIMbus信道,设备控制模块用USB Type C Cable Controller。为叙述方便,SLIMbus Over USB Type-C架构耳机有时简称为SLIMbus USBC耳机。
如图17所示,SLIMbus USBC耳机包括以下功能模块:
1)设备控制模块:
设备控制器模块使用USB Type C Cable Controller形式,设备标识为一种特殊的EMCA电子标记电缆;具有标识SLIMbus USBC耳机基本信息的功能,这些信息包括:这是一个SLIMbus总线的耳机;SLIMbus_CLK定义在了SUB1管脚,SLIMbus_DATA定义在了USB SBU2。与主机侧的通道配置模块间,用CC总线进行通讯,完成耳机标识信息的上报;与耳机Audio模块 间,用I2C总线作为初始化总线进行通讯,完成耳机AUDIO模块的初始化。
EMCA(Electronically Marked Cable Assembly电子标记电缆组件)是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)耳机AUDIO模块:
包括音频CODEC、MIC DAC、耳机DAC、耳机放大器、耳机线控识别和编码等,具有I2C总线,具有SLIMbus总线,SLIMbus总线直接连到USB Type-C Plug的SBU1/SBU2接口上。
3)耳机供电模块:
从USB Type-C Plug的VBUS管脚获取电源,转换成耳机侧各模块所需的电压,并进行上电顺序的管理。
4)耳机本体:
包括耳机喇叭、MIC、线控按键、耳机线缆等,即传统3.5mm耳机除了插头外所有部分。
5)USB Type-C Plug
耳机与主机间的物理连接接口,完成与主机的USB Type-C Receptacle进行插拔的功能。
该SLIMbus USBC耳机对主机侧的要求:
CC控制器模块,支持USB PD协议,完成耳机标签的获取和耳机AUDIO模块的初始化。
电源管理模块,支持USB OTG供电,具有电源管理能力,
具有给耳机供电的能力。
正反插信道切换模块,将主机AUDIO模块送出的SLIMbus时钟和数据信号送到SBU1/SBU2管脚,并完成正反插时信道的切换。
USB Type-C Receptacle,主机与耳机的物理连接接口,完
成与耳机的USB Type-C Plug进行物理连接的功能。
CPU系统模块,包括应用处理器、基带处理器、存储器、射频收发等硬件系统平台芯片,完成与移动网络基站间的信号收发转换等手机功能。
主机AUDIO模块,包括音频CODEC、ADSP、SPEAKER、RECEIVER、音频放大器等。与信道切换模块间用SLIMbus总线进行信号交互。
该SLIMbus USBC耳机具有以下特征:
跟主机间通过SLIMbus传递控制信号;
跟主机间通过SLIMbus传递音频信号;
跟主机间通过SLIMbus传递耳机线控按键操作信息(音量加减、接通挂断、暂停、快进等功能);
跟主机间通过CC总线传递通道配置初始化信号,具体参见图18所示流程;
选择利用Plug的SBU1、SBU2管脚建立SLIMbus信道。
该SLIMbus USBC耳机使用流程参见图18所示,此处不再赘述。
该SLIMbus USBC耳机的技术效果是:
1)该SLIMbus USBC耳机方案功耗低,信号传输使用的是SLIMbus低功耗总线,工作时控制信号、音频信号、数据信号都走SLIMbus;相对UAC方案,更省掉了I2S转USB、USB转I2S、USB工作时AP不能睡眠的功耗浪费。
2)该SLIMbus USBC耳机方案成本低。耳机侧不需要USB-I2S桥转换芯片;相对模数混合耳机来讲,后级电路无需加双路耳机切换开关芯片;相 对通道时分复用的模数混合耳机来讲,更进一步省掉了USB口的前级USB和耳机信号切换开关。
3)该SLIMbus USBC耳机HIFI性能更有保障。首先,该方案是纯数字的,数字信号不容易受干扰;其次,相对模数混合耳机来讲,后级电路无需加双路耳机切换开关,避免了开关造成的音频信号插损。相对通道时分复用的模数混合耳机来讲,进一步省掉了USB和耳机信号切换开关,更进一步避免了开关造成的音频信号插损。
4)该SLIMbus USBC耳机方案能完全满足移动通话时延要求。音频通路完全跟传统手机一样,自然通话时延也跟传统手机一样。
5)该耳机SLIMbus USBC耳机方案,软件上沿用了传统的音频架构,开发耳机难度相对更低,耳机完全数字化进程更提前,产品更容易抢占市场先机。UAC架构下的完全满足移动通话时延要求的数字耳机设计。
实施例3
在本实施例中提供了一种信号发送方法,该方法可以运行于实施例1中所述终端上,但不限于此。如图19所示,该流程包括步骤S1902-S1904:
步骤S1902,终端产生待传输信号;可选地,该信号可以为音频信号,但不限于此。
步骤S1904,终端通过SLIM bus将信号路由至所述终端中的USB插座,并经由该USB插座将所述信号发送至终端外设。
可选地,所述USB插座包括:Micro USB插座或USB Type-C插座。
在一个可选实施例中,所述方法还包括以下之一:所述终端通过所述SLIMbus向所述终端外设发送所述终端外设的配置信息;所述终端通过通道控制器CC总线向所述终端外设发送所述配置信息。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当 然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
实施例4
在本实施例中提供了一种信号接收方法,如图20所示,该方法包括
步骤S2002,启动终端外设;其中,此处启动的含义可以包括但不限于,终端外设接入终端,通电初始化等。
步骤S2004,终端外设通过所述终端外设的USB插头接收来自终端通过SLIM bus发送的信号。
可选地,所述USB插头包括但不限于:Micro USB插头或USB Type-C插头。
实施例5
本实施例提供一种基于USB接口的数据传输系统,如图21所示,所述系统包括通过所述USB接口连接的主机设备210及外设设备212,其中所述主机设备210和外设设备212之间通过SLIMbus总线穿越USB接口传输信号。
可选地,所述主机设备包括基带处理器及音频芯片,所述SLIMbus总线配置为在所述基带处理器与音频芯片之间传输通话信号。
可选地,所述SLIMbus总线包括连接到所述USB接口的时钟信号线和数据信号线。
可选地,所述主机设备包括与所述USB接口连接的信道切换模块,所述信道切换模块将所述SLIMbus总线的时钟信号线和数据信号线路由到所述USB接口。
可选地,所述主机设备包括CPU系统模块、主机音频模块、及信道切换模块,所述信道切换模块将所述CPU系统模块的USB及主机音频模块的SLIMbus总线的时钟信号和数据信号路由到所述USB接口。
可选地,所述主机设备还包括与所述USB接口连接的通道配置模块,所述通道配置模块配置为与所述音频外设设备进行信号交互。
可选地,所述主机设备还包括与所述USB接口连接的电源管理模块,所述电源管理模块配置为控制对所述外设设备进行供电或者对所述主机设备进行充电。
可选地,所述音频外设设备包括外设音频模块,所述外设音频模块通过所述SLIMbus总线与所述USB接口连接。
可选地,所述音频外设设备包括外设音频模块和外设信道选择模块,所述SLIMbus总线通过所述外设信道选择模块连接到所述USB接口。
可选地,所述音频外设设备还包括与所述USB接口连接的设备控制模块,所述设备控制模块配置为与所述主机设备进行信号交互。
可选地,所述音频外设设备还包括与所述USB接口连接的外设供电模块,所述外设供电模块配置为从主机设备获取电源,为所述音频外设设备的各模块供电。
可选地,所述USB接口包括以下至少之一:Micro USB接口、USB Type-C接口。
需要说明的是,本申请实施例中所涉及到的主机设备或音频外设设备的具体结构可以参见实施例1和实施例2中的相关描述,此处不再赘述。
为便于理解,以下结合具体实例详细说明。
该系统由主机、外设、及主机跟外设间的信号传输通道构成。
如图3所示,主机侧部分,除包括CPU系统模块和AUDIO模块外,还必须包括通道配置模块、电源管理模块、信道切换模块、USB Receptacle。
外设侧部分,包括设备控制模块、外设AUDIO模块、外设供电模块、USB Plug。另外还可添加信道选择模块。没信道选择模块时,SLIMbus总线直接连USB Plug管脚上。
主机跟外设间的交互信号包括以下之一所承载的信号:SLIMbus和USB信道,通道配置总线,供电线,共地线。SLIMbus和USB信道可以是SLIMbus和USB共用的,也可是SLIMbus和USB分离的。
主机侧部分:
通道配置模块,与外设侧的设备控制模块间,进行信号握手交互,完成外设标签的获取和外设AUDIO模块的初始化。
电源管理模块,按USB协议规划,具有电源管理能力,具有给外设供电的能力。
信道切换模块,能将主机AUDIO模块送出的SLIMbus时钟和数据信号路由到USB相应管脚上。
USB Receptacle,主机与外设间的物理连接接口,完成与外设的USB Plug进行物理连接的功能。
CPU系统模块,包括应用处理器、基带处理器、存储器、射频收发等硬件系统平台芯片,完成与移动网络基站间的信号收发转换等手机功能。
主机AUDIO模块,包括音频CODEC,ADSP,SPEAKER、RECEIVER,音频放大器等。与信道切换模块间用SLIMbus总线进行信号交互。SLIMbus总线可以是音频CODEC自带,也可通过SLIMbus桥电路转换。
外设侧部分:
设备控制模块,具有标识外设基本信息的功能,这些信息包括:这是一个SLIMbus总线的外设;SLIMbus总线的通道和管脚定义。与主机侧的通道配置模块间,进行信号握手交互,完成外设标识信息的上报,并完成外设AUDIO模块的初始化。
外设AUDIO模块,包括音频CODEC、麦克DAC、音频DAC、音频放大器、HID(Human Interface Device人机交互器件)、SPEAKER、麦克风等,与信道选择模块间用SLIMbus总线进行信号交互。或跳过信道选择模块与USB Plug直接相连。
外设供电模块,从USB Plug(即USB插头)获取电源,转换成外设侧各模块所需的电压,并进行上电顺序的管理。
USB Plug,外设与主机间的物理连接接口,完成与主机的USB Receptacle进行插拔的功能。
信道选择模块,作为可选项,主要完成外设侧SLIMbus通道选择功能。该模块可省略,直接将SLIMbus连到USB Plug可用管脚。
外设与主机间的交互流程可以参见图4所示,此处不再赘述。
实施例6
本申请实施例提供一种具有USB Type-C接口的主机设备,所述主机设备包括主机音频模块及USB Type-C接口,其中所述主机音频模块通过SLIMbus总线连接到所述USB Type-C接口。
所述USB Type-C接口包括第一USB2.0差分对管脚、第二USB2.0差分对管脚、及SBU1/SBU2(A8/B8)管脚,所述主机音频模块通过SLIMbus总线选择连接到所述第一USB2.0差分对管脚、第二USB2.0差分对管脚、或者SBU1/SBU2(A8/B8)管脚。
可选地,所述主机设备还包括信道切换模块,所述主机音频模块通过所述信道切换模块将所述SLIMbus总线选择连接到所述第一USB2.0差分对管脚、第二USB2.0差分对管脚、或者SBU1/SBU2(A8/B8)管脚。
可选地,所述主机设备还包括CPU系统模块、控制器模块及电源管理模块。
需要说明的是,本申请实施例中主机设备的结构可以参见实施例1中的 主机设备或终端的结构,此处不再赘述。
实施例7
本实施例提供一种具有USB Type-C接口的外设设备,所述外设设备包括外设音频模块及USB Type-C接口,其中所述外设音频模块通过SLIMbus总线连接到所述USB Type-C接口。
可选地,所述USB Type-C接口包括USB2.0差分对管脚、标准未定义的B6/B7管脚、及SBU1/SBU2(A8/B8)管脚,所述外设音频模块通过SLIMbus总线选择连接到所述USB2.0差分对管脚管脚、标准未定义的B6/B7管脚、或者SBU1/SBU2(A8/B8)管脚。
可选地,所述外设设备还包括信道选择模块,所述外设音频模块通过所述信道选择模块将所述SLIMbus总线选择连接到所述USB2.0差分对管脚、标准未定义的B6/B7管脚、或者SBU1/SBU2(A8/B8)管脚。
可选地,所述外设设备还包括外设设备控制模块及外设供电模块。
需要说明的是,本申请实施例中主机设备的结构可以参见实施例2中的终端外设的结构,此处不再赘述。
实施例8
本实施例提供一种具有USB通用串行总线接口的主机设备,所述主机设备包括主机音频模块及USB通用串行总线接口,其中所述主机音频模块通过SLIMbus总线连接到所述USB通用串行总线接口。
可选地,所述USB通用串行总线接口包括USB2.0差分对管脚,所述主机音频模块通过SLIMbus总线连接到所述USB2.0差分对管脚。
可选地,所述主机设备还包括信道切换模块,所述主机音频模块通过所述信道切换模块将所述SLIMbus总线连接到所述USB2.0差分对管脚。
可选地,所述主机设备还包括CPU系统模块、控制器模块及电源管理模块。
需要说明的是,本申请实施例中主机设备的结构可以参见实施例1中的主机设备或终端的结构,此处不再赘述。
实施例9
本发明实施例提供一种具有通用串行总线接口的外设设备,所述外设设备包括外设音频模块及USB通用串行总线接口,其中所述外设音频模块通过SLIMbus总线连接到所述USB通用串行总线接口。
可选地,所述USB通用串行总线接口包括USB2.0差分对管脚,所述外设音频模块通过SLIMbus总线连接到USB2.0差分对管脚。
可选地,所述外设设备还包括信道选择模块,所述外设音频模块通过所述信道选择模块将所述SLIMbus总线连接到所述USB2.0差分对管脚。
可选地,所述外设设备还包括外设设备控制模块及外设供电模块。
需要说明的是,本实施例中USB通用串行总线接口包括但不限于:Micro USB接口。
需要说明的是,本申请实施例中主机设备的结构可以参见实施例1中的终端外设的结构,此处不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精 神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明实施例是将终端中的信号通过SLIMbus路由到了USB插座实现了SLIMbus穿越(over)USB接口以连接终端外设,从而实现了通过SLIMbus进行终端与终端外设之间的信号传输。由于SLIMbus传输的是数字信号,因此,可以解决由于信号是模拟信号而导致信号易受干扰的问题;由于SLIMbus是一种低功耗总线,因此,可以解决功耗大的问题;由于SLIMbus是一种终端内部芯片间的音频总线,因此,可以降低时延,提升用户体验。

Claims (36)

  1. 一种终端,包括:信道切换模块,第一音频模块和通用串行总线USB插座;其中,
    所述信道切换模块,通过低功耗芯片间串行媒体总线SLIMbus与所述第一音频模块连接,配置为将所述第一音频模块发送的信号路由至所述USB插座;
    第一音频模块,配置为产生所述信号;
    所述USB插座,与所述信道切换模块连接,配置为提供所述终端与终端外设之间的物理连接接口。
  2. 根据权利要求1所述的终端,其中,所述终端还包括:系统模块,分别与所述第一音频模块和所述信道切换模块连接,配置为与网络侧进行信息交互。
  3. 根据权利要求2所述的终端,其中,所述终端还包括:
    通道配置模块,分别与所述系统模块和终端外设连接,配置为检测所述USB插座是否有终端外设接入,并将用于指示是否有外设接入的指示信息上报至所述系统模块。
  4. 根据权利要求3所述的终端,其中,所述终端还包括:电源管理模块,与所述系统模块连接,接收所述系统模块发送的通知信息,并在接收到所述通知信息后为终端外设供电。
  5. 根据权利要求1所述的终端,其中,所述USB插座为Micro USB插座。
  6. 根据权利要求5所述的终端,其中,所述信道切换模块包括:至少一个双路单刀双掷开关电路,所述SLIMbus通过所述双路单刀双掷开关电路与所述USB插座的指定引脚相连。
  7. 根据权利要求6所述的终端,其中,所述SLIMbus的CLK引脚和DATA引脚通过所述双路单刀双掷开关电路与所述USB插座中的D+引脚和D-引脚 连接。
  8. 根据权利要求3所述的终端,其中,所述USB插座为Micro USB插座时,所述通道配置模块为通道配置总线,该通道配置总线为USB iBUS总线。
  9. 根据权利要求1所述的终端,其中,所述USB插座为USB Type-C插座。
  10. 根据权利要求9所述的终端,其中,所述信道切换模块包括:第一切换电路,该第一切换电路通过时分复用的方式在SLIMbus与所述USB Type-C插座之间形成所述终端外设的插头正向插入时的第一通路和所述插头反向插入时的第二通路。
  11. 根据权利要求10所述的终端,其中,所述第一通路通过以下方式确定:所述SLIMbus的CLK引脚与所述USB Type-C插座中A6引脚和B6引脚短接后的电路连接,并通过所述A6引脚与所述终端外设连接;以及所述SLIMbus的DATA引脚与所述USB Type-C插座中A7引脚和B7引脚短接后的电路连接,并通过所述A7引脚与所述终端外设连接。
  12. 根据权利要求10所述的终端,其中,所述第二通路通过以下方式确定:所述SLIMbus的CLK引脚与所述USB Type-C插座中A6引脚和B6引脚短接后的电路连接,并通过所述B6引脚与所述终端外设连接;以及所述SLIMbus的DATA引脚与所述USB Type-C插座中A7引脚和B7引脚短接后的电路连接,并通过所述B7引脚与所述终端外设连接。
  13. 根据权利要求9所述的终端,其中,所述信道切换模块包括:
    第二切换电路,配置为在检测到正向插入时,通过第一切换开关将所述SLIMbus的CLK引脚和DATA引脚分别接入所述USB插座的第一引脚和第二引脚;以及在检测到反向插入时,通过所述第一切换开关将所述SLIMbus的CLK引脚和DATA引脚分别接入所述USB插座的第三引脚和第四引脚。
  14. 根据权利要求13所述的终端,其中,所述第一引脚和所述第二引脚分别包括:所述USB插座的B6引脚和B7引脚;所述第三引脚和所述第四引脚分别包括:所述USB Type-C插座的A6和A7引脚。
  15. 根据权利要求9所述的终端,其中,所述信道切换模块包括:
    第三切换电路,配置为在检测到正向插入时,通过第二切换开关将所述SLIMbus的CLK引脚和DATA引脚分别接入所述USB插座的第五引脚和第六引脚;以及在检测到反向插入时,通过所述第二切换开关将所述SLIMbus的CLK引脚和DATA引脚分别接入所述USB插座的第六引脚和第五引脚。
  16. 根据权利要求15所述的终端,其中,所述第五引脚和第六引脚为所述USB Type-C插座的扩展引脚。
  17. 根据权利要求16所述的终端,其中,所述第五引脚和第六引脚分别包括:所述USB Type-C插座的A8引脚和B8引脚。
  18. 根据权利要求9至17中任一项所述的终端,其中,所述终端还包括:
    通道控制器CC,配置为检测所述终端外设的插头的插入方向,以及通过CC总线与所述终端外设进行信息交互,所述插入方向包括:正向插入和反向插入。
  19. 根据权利要求2至4中任一项所述的终端,其中,所述系统模块包括以下至少之一:应用处理器、基带处理器、存储器、射频收发器。
  20. 根据权利要求1至17中任一项所述的终端,其中,所述第一音频模块包括以下至少之一:编译码器CODEC,数字信号处理器、扬声器、音频放大器。
  21. 一种基于通用串行总线USB接口的终端外设,包括:第二音频模块和USB插头;其中,
    所述第二音频模块,与所述USB插头连接,配置为接收所述终端外设 所接入终端通过低功耗芯片间串行媒体总线SLIMbus发送的信号;
    所述USB插头,配置为与所述终端的USB插座连接,以及将从所述USB插座接收的所述信号转发至所述第二音频模块。
  22. 根据权利要求21所述的终端外设,其中,所述终端外设还包括:
    信道选择模块,设置于所述第二音频模块和所述USB插头之间,配置为选择连接所述第二音频模块和所述USB插头之间的通信通道,并通过所述通信通道连接所述第二音频模块和所述USB插头。
  23. 根据权利要求22所述的终端外设,其中,所述信道选择模块包括现场可编程门阵列FPGA电路。
  24. 根据权利要求21所述的终端外设,其中,所述终端外设还包括:
    控制模块,配置为维护所述终端外设标识,并对所述第二音频模块进行初始化配置。
  25. 根据权利要求21所述的终端外设,其中,所述终端外设还包括:供电模块,与所述USB插头连接,配置为通过所述USB插头从所述终端获取电源,并为所述终端外设供电。
  26. 根据权利要求21所述的终端外设,其中,USB插头为Micro USB插头。
  27. 根据权利要求23所述的终端外设,其中,在所述USB插头为Micro USB插头时,所述控制模块具有USB iBUS总线,该USB iBUS总线配置为连接所述控制模块和所述终端。
  28. 根据权利要求21所述的终端外设,其中,所述USB插头为USB Type-C插头。
  29. 根据权利要求23所述的终端外设,其中,在所述USB插头为USB Type-C插头时,所述控制模块设置有CC总线接口或USB总线接口,所述CC总线接口或所述USB总线接口配置为与所述终端连接。
  30. 根据权利要求21至29中任一项所述的终端外设,其中,所述第二音 频模块包括以下至少之一:
    编译码器CODEC,麦克风数模转换器MIC DAC、耳机放大器、人机交互设备HID、扬声器。
  31. 一种信号发送方法,包括:
    终端通过低功耗芯片间串行媒体总线SLIM bus将信号路由至所述终端中的通用串行总线USB插座,并经由该USB插座将所述信号发送至终端外设。
  32. 根据权利要求31所述的方法,其中,所述USB插座包括:Micro USB插座或USB Type-C插座。
  33. 根据权利要求31所述的方法,其中,所述方法还包括以下之一:
    所述终端通过所述SLIMbus向所述终端外设发送所述终端外设的配置信息;
    所述终端通过通道控制器CC总线向所述终端外设发送所述配置信息。
  34. 一种信号接收方法,包括:
    终端外设通过所述终端外设的通用串行总线USB插头接收来自终端通过低功耗芯片间串行媒体总线SLIM bus发送的信号。
  35. 根据权利要求34所述的方法,其中,所述USB插头包括:Micro USB插头或USB Type-C插头。
  36. 一种数据传输系统,包括:权利要求1至20中任一项所述的终端,以及权利要求21至30中任一项所述的终端外设。
PCT/CN2016/105762 2016-07-20 2016-11-14 终端、终端外设、信号发送及接收方法、数据传输系统 WO2018014471A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610579247.2 2016-07-20
CN201610579247.2A CN107643994B (zh) 2016-07-20 2016-07-20 终端、终端外设、信号发送及接收方法、数据传输系统

Publications (1)

Publication Number Publication Date
WO2018014471A1 true WO2018014471A1 (zh) 2018-01-25

Family

ID=60991754

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105762 WO2018014471A1 (zh) 2016-07-20 2016-11-14 终端、终端外设、信号发送及接收方法、数据传输系统

Country Status (2)

Country Link
CN (1) CN107643994B (zh)
WO (1) WO2018014471A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177035A (zh) * 2019-12-23 2020-05-19 闻泰通讯股份有限公司 外设处理装置、方法和电子设备
CN112512133A (zh) * 2020-11-18 2021-03-16 努比亚技术有限公司 一种反向投屏音频控制方法、设备及计算机可读存储介质
US11770015B2 (en) 2020-03-27 2023-09-26 Via Labs, Inc. Power management device and method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108430005B (zh) * 2018-04-26 2021-04-09 努比亚技术有限公司 一种音频电路、音频判断方法及移动终端
CN110096468B (zh) * 2019-05-08 2021-02-09 西北大学 一种基于fpga架构手机模块及其与手机的连接方法
WO2022032480A1 (zh) * 2020-08-11 2022-02-17 深圳市大疆创新科技有限公司 基于type-c接口的信号传输方法、装置、系统及存储介质
CN116013379B (zh) * 2021-10-22 2024-04-02 广州开得联智能科技有限公司 录播设备的控制电路及录播设备
TWI817862B (zh) * 2022-12-09 2023-10-01 華碩電腦股份有限公司 電腦組件及其控制方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101449243A (zh) * 2006-05-19 2009-06-03 索尼爱立信移动通讯股份有限公司 分布式音频处理
CN201359725Y (zh) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Usb接口电路及具有所述电路的便携式手持设备
CN104063348A (zh) * 2014-06-17 2014-09-24 武汉天喻信息产业股份有限公司 实现兼容usb通讯与音频通讯的装置及方法
CN104918183A (zh) * 2015-04-09 2015-09-16 深圳天珑无线科技有限公司 左右声道切换电路以及切换方法
CN205139907U (zh) * 2015-08-05 2016-04-06 东莞铭基电子科技集团有限公司 一种USB Type-C数据线

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7668565B2 (en) * 2006-11-07 2010-02-23 Nokia Corporation Multiradio priority control based on modem buffer load
US7749028B2 (en) * 2007-10-19 2010-07-06 Sony Ericsson Mobile Communications Ab Micro USB compatible combo system connector
US9929972B2 (en) * 2011-12-16 2018-03-27 Qualcomm Incorporated System and method of sending data via a plurality of data lines on a bus
US9904652B2 (en) * 2013-11-14 2018-02-27 Qualcomm Incorporated System and method of sending data via additional secondary data lines on a bus
CN105120404B (zh) * 2015-07-31 2018-11-30 华为技术有限公司 一种音频设备、终端设备及电子设备
CN105635885B (zh) * 2016-03-21 2019-05-07 青岛海信移动通信技术股份有限公司 Usb接口复用电路、移动终端和耳机

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101449243A (zh) * 2006-05-19 2009-06-03 索尼爱立信移动通讯股份有限公司 分布式音频处理
CN201359725Y (zh) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Usb接口电路及具有所述电路的便携式手持设备
CN104063348A (zh) * 2014-06-17 2014-09-24 武汉天喻信息产业股份有限公司 实现兼容usb通讯与音频通讯的装置及方法
CN104918183A (zh) * 2015-04-09 2015-09-16 深圳天珑无线科技有限公司 左右声道切换电路以及切换方法
CN205139907U (zh) * 2015-08-05 2016-04-06 东莞铭基电子科技集团有限公司 一种USB Type-C数据线

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177035A (zh) * 2019-12-23 2020-05-19 闻泰通讯股份有限公司 外设处理装置、方法和电子设备
CN111177035B (zh) * 2019-12-23 2024-01-16 闻泰通讯股份有限公司 外设处理装置、方法和电子设备
US11770015B2 (en) 2020-03-27 2023-09-26 Via Labs, Inc. Power management device and method
CN112512133A (zh) * 2020-11-18 2021-03-16 努比亚技术有限公司 一种反向投屏音频控制方法、设备及计算机可读存储介质
CN112512133B (zh) * 2020-11-18 2022-04-19 努比亚技术有限公司 一种反向投屏音频控制方法、设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN107643994A (zh) 2018-01-30
CN107643994B (zh) 2021-11-30

Similar Documents

Publication Publication Date Title
WO2018014471A1 (zh) 终端、终端外设、信号发送及接收方法、数据传输系统
CN108666826B (zh) 一种转接头、终端设备和转接头系统
TWI648635B (zh) 通用串列匯流排集線器及其操作方法
US11403245B2 (en) Terminal, terminal peripheral, signal transmission system and signal sending and receiving method
US9414147B2 (en) Method and device for earphone and USB to share micro-USB interface
US7865629B1 (en) Configurable connector for system-level communication
US10339089B2 (en) Enhanced communications over a universal serial bus (USB) type-C cable
CN109660894B (zh) 终端外设及音频信号的传输方法
US11249936B2 (en) Method of communication between multiple devices using USB type-C interface and electronic device implementing same
WO2018076628A1 (zh) 一种usb接口电路、终端、耳机电路及耳机、存储介质
TW201933129A (zh) 通用串列匯流排裝置及其操作方法
WO2023134341A1 (zh) 无线充电设备
CN116049055B (zh) 电子设备接口的接入识别方法及电子设备
US10042802B2 (en) Inter-device digital audio
JP2016509712A (ja) データ端末、データ送信システム、およびホットスワップ制御方法
CN113778923A (zh) 多功能电子设备
CN111247781B (zh) 一种基于智能终端的音频电路及音频播放系统
US10515025B2 (en) Communication protocol adapter
WO2012175005A1 (zh) 一种音频信号接收装置、音频信号传输系统
CN216086918U (zh) 会议通话设备
CN220855652U (zh) 扩展坞
CN217656710U (zh) 多功能电子设备
CN217134842U (zh) 一种集线器
CN211860198U (zh) 多功能声卡设备
WO2024036539A1 (zh) 一种低功耗无线音频适配器及智能设备

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: 16909398

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16909398

Country of ref document: EP

Kind code of ref document: A1