Connection interface, control method and device of connection interface, electronic equipment and storage medium

By connecting to the audio encoder via a Type-C connector, the audio data is processed by the CPU and then directly output, solving the instability and high cost problems of existing audio output methods, and realizing high-quality multi-channel audio playback and control feedback.

CN115942189BActive Publication Date: 2026-05-08BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-08-27
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing audio output methods suffer from problems such as unstable Bluetooth transmission, signal distortion, and high peripheral costs. In particular, Bluetooth cannot support stereo playback, and USB transmission has high requirements for peripherals, which increases costs.

Method used

A connection interface is provided, which connects to an audio encoder via a Type-C connector. The CPU's audio data processing capability is used to encode the data and then output it directly. Peripherals only need to amplify the audio for playback. Multi-channel output is supported, and control and feedback are provided through GPIO and USB functions.

Benefits of technology

It reduces the cost of peripherals, achieves high-quality audio playback, supports multi-channel output, and provides volume control and playback status feedback through GPIO and USB functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115942189B_ABST
    Figure CN115942189B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a connection interface, a control method and device of the connection interface, an electronic device and a storage medium. The connection interface comprises: an interface connector provided with connection pins, the connection pins comprising audio pins and charging pins, the audio pins being connected with audio data output ends of an audio encoder; the charging pins being used to support charging and / or communication functions of a connection object; and an interface part having a first interface for docking with other interfaces, the first interface being electrically connected with the connection pins. The present disclosure makes full use of the audio data processing capability of a CPU in an electronic device, encodes the output audio data, and then outputs the encoded audio data to an external device through an interface, so that the external device does not need to have audio encoding and decoding processing capability and can also realize audio playing, thereby the external device can play audio by docking with the interface provided by the embodiment of the present disclosure, greatly reducing the cost of the external device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to audio output technology for connection interfaces in electronic devices, and more particularly to a connection interface, a control method and apparatus for the connection interface, an electronic device, and a storage medium. Background Technology

[0002] Currently, there are several solutions for audio playback using peripherals: Playback via Bluetooth, such as Bluetooth speakers and headphones. However, Bluetooth wireless transmission is susceptible to interference, leading to sudden disconnections or static. Additionally, Bluetooth does not support stereo playback, only mono. Audio can be played through headphones, including plugging in headphones or connecting to speakers. However, this audio output method has obvious drawbacks. Headphones transmit analog signals with very low amplitude. When the audio signal is output through speakers, amplification inevitably amplifies the background noise and causes audio signal distortion. Audio can also be transmitted via USB, using USB D+ / D- to transmit the raw audio signal. The disadvantage is that it places higher demands on the peripherals, requiring them to have both USB decoding and audio decoding capabilities, significantly increasing the cost of the peripherals. Summary of the Invention

[0003] This disclosure provides a connection interface, a control method and apparatus for the connection interface, an electronic device, and a storage medium.

[0004] According to a first aspect of the present disclosure, a connection interface is provided, comprising:

[0005] The interface connector is provided with connection pins, including an audio pin and a charging pin. The audio pin is connected to the audio data output terminal of the audio encoder; the charging pin is used to support the charging and / or communication functions of the connected object.

[0006] The interface section has a first interface for interfacing with other interfaces, and the first interface is electrically connected to the connection pin.

[0007] Optionally, the connection interface further includes:

[0008] The switching unit has one end connected to the processor's USB interface and general purpose input / output (GPIO) respectively, and the other end connected to the connection pin.

[0009] When the switching unit connects the USB interface to the connection pin, the first interface supports USB functionality.

[0010] When the switching unit connects the GPIO and the connection pin, the first interface supports GPIO functionality.

[0011] Optionally, the connection pins may further include:

[0012] Feedback pins are used to receive status information from the audio data output and / or output control information for the audio data.

[0013] Optionally, the interface connector includes a Type-C connector;

[0014] The audio pins include SBU1 pin and SBU2 pin;

[0015] The switching unit connects the processor's D+ and D- interfaces to the first pair of D+ and D- interfaces of the Type-C connector, respectively.

[0016] Optionally, the switching unit connects the GPIO and the connection pin, including:

[0017] The switching unit connects the processor's first GPIO and second GPIO to the second pair of D+ and D- interfaces of the Type-C connector, respectively.

[0018] According to a second aspect of the present disclosure, a method for controlling a connection interface is provided, comprising:

[0019] When it is detected that the connection interface is connected to other interfaces, and it is determined that the device connected to the connection interface through the other interfaces supports audio output function, the connection interface outputs the audio data output by the audio encoder connected to it to the device through the other interfaces.

[0020] Optionally, the connection interface includes a Type-C connection interface;

[0021] The SBU1 and SBU2 pins of the Type-C interface are connected to the audio clock CLK signal and audio data DAT signal of the audio encoder, respectively.

[0022] Optionally, the method further includes:

[0023] When the GPIO of the processor is detected to be connected to the connection interface, and the GPIO is connected to the device through the other interfaces, the control command for sending audio data to the device is sent through the connection channel between the GPIO and the other interfaces, and the information of the audio data playback result sent by the device is received; the control command is used to adjust the output state of the audio data.

[0024] Optionally, the method further includes:

[0025] The device decodes and converts audio signals, amplifies and plays them, and then transmits the audio signals. During this process, it can achieve multi-channel output through external devices.

[0026] According to a third aspect of the present disclosure, a control device for a connection interface is provided, comprising:

[0027] The detection unit is used to detect whether the connection interface is connected to other interfaces.

[0028] A determining unit is configured to determine, when the detection unit detects that the connection interface is connected to the other interface, whether the device that is connected to the connection interface through the other interface supports audio output function.

[0029] The processing unit is configured to, when the device in the determining unit supports audio output function, cause the connection interface to output the audio data output by the audio encoder connected to it to the device through the other interface.

[0030] Optionally, the processing unit is further configured to, when the detection unit detects that the connection interface is connected to the processor's GPIO and the GPIO is connected to the device through the other interface, send control commands for audio data to the device through the connection channel between the GPIO and the other interface, and receive information on the audio data playback result sent by the device; the control commands are used to adjust the output state of the audio data.

[0031] According to a fourth aspect of the present disclosure, an electronic device is provided having the connection interface described in the first aspect; the electronic device further includes: a processor and a memory for storing processor-executable instructions, wherein the processor is configured to execute the control method of the connection interface when the executable instructions in the memory are invoked.

[0032] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the control method of the connection interface.

[0033] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0034] In the embodiments of this disclosure, the connection interface is directly connected to the audio signal of the audio encoder. After the CPU processes the audio data, it sends it to the audio encoder, which encodes the audio data and then outputs it directly to the peripheral device through the interface. Thus, the peripheral device can amplify the audio data to achieve audio playback. This embodiment of the disclosure fully utilizes the audio data processing capability of the CPU in the electronic device, encoding the output audio data before outputting it to the peripheral device through the interface. This eliminates the need for the peripheral device to have audio encoding / decoding capabilities to play audio. Therefore, the peripheral device can play audio simply by connecting to the interface provided in this embodiment, significantly reducing the cost of the peripheral device.

[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0037] Figure 1 This is a schematic diagram illustrating the structural composition of the connection interface according to an embodiment of this disclosure;

[0038] Figure 2 This is a schematic flowchart illustrating the control method of the connection interface in an embodiment of this disclosure;

[0039] Figure 3 This is a schematic diagram illustrating an application example of the connection interface in an embodiment of this disclosure;

[0040] Figure 4 This is a schematic diagram illustrating another application example of the connection interface according to an embodiment of this disclosure;

[0041] Figure 5 This is a schematic diagram of the composition structure of the control device for the connection interface according to an embodiment of the present disclosure;

[0042] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0043] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0044] Figure 1 This is a schematic diagram of the structural composition of the connection interface shown in an embodiment of this disclosure, as follows: Figure 1 As shown, the connection interface in this embodiment includes:

[0045] The interface connector 10 is provided with connection pins, including an audio pin and a charging pin. The audio pin is connected to the audio data output terminal of the audio encoder (audio codec) 20; the charging pin is used to support the charging and / or communication functions of the connected object; the input terminal of the audio encoder 20 is connected to the audio output interface of the CPU 40. The CPU 40 outputs the audio data to be output to the audio encoder 20, the audio encoder 20 encodes the audio data, and plays the audio data to a peripheral device that interfaces with the interface unit through the interface unit of this embodiment. In this embodiment, the CPU 40 can be a processor in an electronic device, and general processors have audio data processing capabilities.

[0046] The interface section (not shown in the figure) has a first interface for interfacing with other interfaces, and the first interface is electrically connected to the connection pin.

[0047] like Figure 1 As shown, the connection interface in this embodiment of the disclosure further includes:

[0048] The switching unit 30 has one end connected to the processor (CPU)'s USB interface and general-purpose input / output (GPIO) respectively, and the other end connected to the connection pin.

[0049] When the switching unit 30 connects the USB interface to the connection pin, the first interface supports USB functionality.

[0050] When the switching unit 30 connects the GPIO and the connection pin, the first interface supports GPIO functionality.

[0051] In this embodiment of the disclosure, the switching unit 30 can connect both the USB interface and the connection pin, as well as the GPIO and the connection pin.

[0052] In this embodiment of the disclosure, the USB interface of the CPU 40 includes a D+ interface and a D- interface; the GPIO of the CPU 40 includes a first GPIO and a second GPIO.

[0053] like Figure 1 As shown, the interface connector 10 in this embodiment of the present disclosure includes a Type-C connector;

[0054] The audio pins of the interface connector 10 include an SBU1 pin and an SBU2 pin. The SBU1 pin and SBU2 pin respectively correspond to... Figure 1 Pins A8 and B8.

[0055] In this embodiment of the disclosure, the switching unit 30 connects the USB interface and the connection pin, including:

[0056] The switching unit 30 connects the processor's D+ and D- interfaces to the first pair of D+ and D- interfaces of the Type-C connector, respectively. The Type-C connector has two reserved pairs of D+ and D- interfaces to support USB functionality, wherein A6 and B6 are one pair of D+ and D- interfaces, and A7 and B7 are the other pair of D+ and D- interfaces.

[0057] The switching unit 30 connects the GPIO and the connection pin, including:

[0058] The switching unit 30 connects the processor's first GPIO and second GPIO to the second pair of D+ and D- interfaces of the Type-C connector, respectively.

[0059] In this embodiment of the present disclosure, the switch unit 30 can connect the USB function and GPIO function of the connection interface separately, or it can connect the USB function and GPIO function of the connection interface simultaneously.

[0060] In this embodiment of the disclosure, the audio pin is connected to the audio data output terminal of the audio encoder, including:

[0061] The SBU1 and SBU2 pins of the Type-C connector are connected to the audio clock CLK signal and audio data DAT signal of the audio encoder, respectively.

[0062] The processor of an electronic device outputs an audio signal that needs to be played by an external device. This signal is then encoded into an audio signal by a codec and amplified by a power amplifier (PA) for playback. In traditional audio playback methods, mobile devices output the audio information via the D+ and D- pins of a USB port. The CPU's integrated USB encoder compiles this information into USB data before outputting it. External playback devices, such as external speakers, first need to have the audio playback information parsed by a USB decoder, then converted into an audio signal by a codec (audio encoder), and finally amplified for output. In this embodiment, when the audio signal is played through an external device, the electronic device directly transmits the digital audio signal, compiled by the codec, to the external audio device (peripheral) via the SBU1 and SBU2 pins of the Type-C interface. The external audio playback device can then directly receive and amplify the signal for playback.

[0063] In this embodiment of the disclosure, the device decodes and converts the audio signal, amplifies and plays it, and then transmits the audio signal, enabling multi-channel output via external devices. Specifically, the audio playback device directly decodes and converts the audio signal, and then amplifies and plays it, allowing for almost lossless audio signal transmission. This maximizes the ability of external devices to provide high-quality playback. Furthermore, the audio bus signal itself can contain multiple signals, allowing for virtually unlimited output of two-channel, four-channel, eight-channel, sixteen-channel, etc., via external devices.

[0064] In this embodiment, a typical electronic device inherently possesses a processor (CPU) and a codec (audio encoder), and usually has extremely strong processing capabilities. Given a suitable audio source, it can compile a very high-quality audio signal. After passing through the codec, the audio signal bus includes two lines: a CLK signal and a DATA signal. As an example, the audio signal bus in this embodiment can be the MIPI (Mobile Industry Processor Interface) alliance's SLIM (Serial Low-power Inter-chip Media) BUS, but is not limited to SLIM BUS. In this embodiment, the audio signal bus needs to simultaneously possess basic communication functions and audio signal transmission functions. When the connection interface in this embodiment detects an external device, it first performs a communication handshake with the external audio device through the audio bus to identify whether the peripheral device's model supports audio playback. If the peripheral device supports audio playback, it then switches to transmitting the audio signal to be played.

[0065] like Figure 1As shown, the connection interface in this embodiment of the present disclosure is further provided with a switch unit (SWITC) 30 to switch between USB signals and ordinary GPIO signals. When connected to the USB interface, the interface supports USB transmission function. When connected to the GPIO port, the interface can be used to control communication with external playback devices, such as for controlling some auxiliary functions. External audio devices generally do not support playback status feedback. The mobile device only transmits audio signals and is unaware of whether the peripheral has played successfully or cannot control the playback volume. However, when the two GPIO ports of the CPU are connected to the connection interface, the GPIO of the connection interface can be used for volume control and playback information feedback. For example, the CPU sends a low-level signal to the peripheral through GPIO, and the audio playback volume of the peripheral decreases by one level, thus controlling the volume. Alternatively, the peripheral can use GPIO to notify the processor of its own playback status. For example, if there is an abnormal status, a low-level signal is sent to notify the processor that the peripheral cannot play audio normally. The processor can determine the possible cause of the playback abnormality and output it to the user. In this embodiment of the present disclosure, the two GPIOs of the CPU can also be configured as I2C or other buses for real-time communication to synchronize the status between the peripheral and the processor. At this time, GPIO is enabled as a feedback pin, receiving status information of the audio data output and / or outputting control information for the audio data.

[0066] In this embodiment of the present disclosure, without the switch unit (SWITC) 30, the connection interface of this embodiment only occupies the SBU1 and SBU2 pins of the Type-C interface, which will not affect the identification and communication of the charging protocol. It can support fast charging of QC (Quick Charge) protocol and PD (Power Delivery) protocol. If the switch unit (SWITC) 30 is included, because the D+ and D- pins are occupied, the connection interface of this embodiment does not support the QC protocol, but supports the PD protocol, and can normally perform PD protocol identification and fast charging.

[0067] Figure 2 This is a schematic flowchart illustrating the control method of the connection interface in an embodiment of this disclosure, as shown below. Figure 2 As shown, the control method for the connection interface in this embodiment includes the following processing steps:

[0068] S11. Detecting that the connection interface is connected to other interfaces, determine whether the device connected to the connection interface through the other interfaces supports audio output function.

[0069] In the embodiments of this disclosure, when the connection interface is connected to other interfaces, it is necessary to determine whether the external device connected to the connection interface supports audio output function. If it does, the audio data can be encoded by the codec and then output to the external device through the connection interface. The external device can then play the audio data after amplifying it through its own PA.

[0070] In this embodiment of the disclosure, the device decodes and converts the audio signal, amplifies and plays it, and then transmits the audio signal, enabling multi-channel output via external devices. Specifically, the audio playback device directly decodes and converts the audio signal, and then amplifies and plays it, allowing for almost lossless audio signal transmission. This maximizes the ability of external devices to provide high-quality playback. Furthermore, the audio bus signal itself can contain multiple signals, allowing for virtually unlimited output of two-channel, four-channel, eight-channel, sixteen-channel, etc., via external devices.

[0071] In embodiments of this disclosure, the connection interface includes a Type-C connection interface; the SBU1 and SBU2 pins of the Type-C connection interface are correspondingly connected to the audio clock CLK signal and the audio data DAT signal of the audio encoder. The interface structure of this disclosure embodiment is described above. Figure 1 As shown. When the connection interface of this embodiment detects an external device, it first establishes a communication handshake with the external audio device via the audio bus to identify whether the peripheral device model supports audio playback. If the peripheral device supports audio playback, it then switches to transmitting the audio signal to be played. Specifically, the level signal changes of the CLK bus and DAT bus are used to detect whether the peripheral device has audio playback functionality.

[0072] S12. The connection interface outputs the audio data from the audio encoder connected to it to the device through the other interfaces.

[0073] In this embodiment, the processor sends the audio data to be output to the codec, the codec encodes the audio data, and then transmits it to the peripheral device through the CLK bus, DAT bus, and connection interface. After receiving the audio data, the peripheral device amplifies the audio data and plays it.

[0074] In this embodiment, the connection interface also supports connectivity to the processor's GPIO and USB. When the connection interface is detected to be connected to the processor's GPIO, causing the GPIO to connect to the device through other interfaces, control commands for audio data are sent to the device via the connection channel between the GPIO and the other interfaces, and information on the playback result of the audio data sent by the device is received; the control commands are used to adjust the output state of the audio data. For example, GPIO can be used for the control of some auxiliary functions. External audio devices generally do not support playback status feedback. The mobile device only transmits audio signals and is unaware of whether the peripheral has successfully played the audio, nor can it control the playback volume. However, when the CPU's two GPIO ports are connected to the connection interface, the GPIO of the connection interface can be used for volume control and playback information feedback; for example, the CPU sends a low-level signal to the peripheral via GPIO, causing the peripheral's audio playback volume to decrease by one level, thus controlling the volume; or the peripheral uses GPIO to notify the processor of its own playback status, such as sending a low-level signal to notify the processor that the peripheral cannot play audio normally if there is an abnormal state. The processor can then determine the possible cause of the playback abnormality and output it to the user.

[0075] In this embodiment of the disclosure, when it is detected that the peripheral device does not support audio output capability, it can connect to the USB function, or it can connect to GPIO, or it can connect to both the USB function and GPIO.

[0076] based on Figure 1 The connection interface structure shown in this disclosure supports two typical application examples. For example... Figure 3 As shown, external audio playback devices connected to mobile devices, such as speakers, process audio data through a codec. The processed audio signal is then transmitted to the audio playback device via a connection interface. The audio playback device directly amplifies and plays the audio signal, resulting in better playback performance. Furthermore, if the electronic device supports OTG (On-The-Go) functionality, the connection interface in this embodiment can also output a voltage to power the audio playback device via a USB VBUS port, eliminating the need for an additional power supply for the audio playback device.

[0077] like Figure 4As shown, an electronic device connects to a peripheral similar to a game controller. The game controller integrates audio playback devices such as a power amplifier (PA) and connects to the electronic device via a Type-C connector. It can also charge the electronic device via a Type-C cable. Furthermore, when the user is playing a game, the electronic device internally encodes the output audio signal, resulting in excellent audio quality from the game controller. The game controller only amplifies the audio signal to achieve high-quality audio output. This does not interfere with charging the electronic device. The application of this embodiment is not limited to game controllers; it can also be used with other devices that have audio playback capabilities.

[0078] Figure 5 This is a schematic diagram illustrating the structural composition of a control device for a connection interface according to an embodiment of this disclosure, such as... Figure 5 As shown, the control device for the connection interface in this embodiment includes:

[0079] The detection unit 500 is used to detect whether the connection interface is connected to other interfaces.

[0080] The determining unit 510 is used to determine, when the detection unit detects that the connection interface is connected to the other interface, whether the device that is connected to the connection interface through the other interface supports audio output function.

[0081] The processing unit 520 is configured to, when the device in the determining unit supports the audio output function, cause the connection interface to output the audio data output by the audio encoder connected to it to the device through the other interface.

[0082] Optionally, the connection interface includes a Type-C connection interface;

[0083] The SBU1 and SBU2 pins of the Type-C interface are connected to the audio clock CLK signal and audio data DAT signal of the audio encoder, respectively.

[0084] Optionally, the processing unit 520 is further configured to, when the detection unit 500 detects that the connection interface is connected to the processor's GPIO and the GPIO is connected to the device through the other interface, send control commands for audio data to the device through the connection channel between the GPIO and the other interface, and receive information on the audio data playback result sent by the device; the control commands are used to adjust the output state of the audio data.

[0085] In an exemplary embodiment, the detection unit 500, the determination unit 510, the processing unit 520, etc., may be implemented by one or more central processing units (CPUs), graphics processing units (GPUs), baseband processors (BPs), application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components.

[0086] In this embodiment of the disclosure, Figure 5 The specific manner in which each unit in the control device of the connection interface performs its operation has been described in detail in the embodiments of the control method for the connection interface, and will not be elaborated here.

[0087] Figure 6 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment, such as... Figure 6 As shown, the electronic device 800 supports multi-screen output. The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816. The input / output (I / O) interface 812 may be the connection interface described in the foregoing embodiments.

[0088] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the control method for the aforementioned connection interface. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0089] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0090] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.

[0091] Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0092] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0093] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0094] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0095] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as Wi-Fi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0096] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the control method of the aforementioned connection interface.

[0097] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to complete the control method of the connection interface described in the above embodiment. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0098] This disclosure also describes a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is able to perform a control method, the method comprising:

[0099] When it is detected that the connection interface is connected to other interfaces, and it is determined that the device connected to the connection interface through the other interfaces supports audio output function, the connection interface outputs the audio data output by the audio encoder connected to it to the device through the other interfaces.

[0100] Optionally, the connection interface includes a Type-C connection interface;

[0101] The SBU1 and SBU2 pins of the Type-C interface are connected to the audio clock CLK signal and audio data DAT signal of the audio encoder, respectively.

[0102] Optionally, the method further includes:

[0103] When the GPIO of the processor is detected to be connected to the connection interface, and the GPIO is connected to the device through the other interfaces, the control command for sending audio data to the device is sent through the connection channel between the GPIO and the other interfaces, and the information of the audio data playback result sent by the device is received; the control command is used to adjust the output state of the audio data.

[0104] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0105] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A connection interface, characterized in that, The connection interface includes: The interface connector is provided with connection pins, including an audio pin and a charging pin. The audio pin is connected to the audio data output terminal of the audio encoder; the charging pin is used to support charging and / or communication functions for different connected objects; the input terminal of the audio encoder is connected to the audio output interface of the processor. The interface section has a first interface for interfacing with other interfaces, and the first interface is electrically connected to the connection pin. The connection pins also include a pair of D+ and D- interfaces; the connection interface also includes: The switching unit has one end connected to the processor's USB interface and general purpose input / output (GPIO) respectively, and the other end connected to the paired D+ and D- interfaces. When the switching unit connects the GPIO with the paired D+ and D- interfaces, the paired D+ and D- interfaces are used as feedback pins to output control information for audio data and / or receive audio data playback status information.

2. The connection interface according to claim 1, characterized in that, When the switching unit connects the USB interface to the paired D+ and D- interfaces, the first interface supports USB functionality.

3. The connection interface according to claim 1 or 2, characterized in that, The interface connector includes a Type-C connector; The audio pins include SBU1 pin and SBU2 pin; The switching unit connects the D+ and D- interfaces of the processor's USB interface to the first pair of D+ and D- interfaces of the Type-C connector, respectively.

4. The connection interface according to claim 3, characterized in that, The switching unit connects the GPIO and the connection pin, including: The switching unit connects the processor's first GPIO and second GPIO to the second pair of D+ and D- interfaces of the Type-C connector, respectively.

5. A control method for the connection interface according to any one of claims 1 to 4, characterized in that, The method includes: When it is detected that the connection interface is connected to other interfaces, and it is determined that the device that is connected to the connection interface through the other interfaces supports audio output function, the connection interface outputs the audio data output by the audio encoder connected to it to the device through the other interfaces; When the paired D+ and D- interfaces in the connection interface are detected to be connected to the processor's GPIO, and the GPIO is connected to the device through the other interfaces, control commands for sending audio data to the device are sent through the connection channel between the GPIO and the other interfaces, and information on the playback result of the audio data sent by the device is received; the control commands are used to adjust the output state of the audio data.

6. The method according to claim 5, characterized in that, When the connection interface includes a Type-C connection interface, the SBU1 pin and SBU2 pin of the Type-C connection interface are connected to the audio clock CLK signal and the audio data DAT signal of the audio encoder respectively.

7. The method according to claim 5, characterized in that, The method further includes: The device decodes and converts audio signals, amplifies and plays them, and then transmits the audio signals. During this process, it can achieve multi-channel output through external devices.

8. A control device for the connection interface according to any one of claims 1 to 4, characterized in that, The device includes: The detection unit is used to detect whether the connection interface is connected to other interfaces; A determining unit is configured to determine, when the detection unit detects that the connection interface is connected to the other interface, whether the device that is connected to the connection interface through the other interface supports audio output function. The processing unit is configured to, when the determining unit determines that the device supports audio output function, cause the connection interface to output the audio data output by the audio encoder connected to it to the device through the other interface; The processing unit is further configured to, when the detection unit detects that the paired D+ and D- interfaces in the connection interface are connected to the processor's GPIO, and the GPIO is connected to the device through the other interfaces, send control commands for audio data to the device through the connection channel between the GPIO and the other interfaces, and receive information on the audio data playback result sent by the device; the control commands are used to adjust the output state of the audio data.

9. An electronic device, characterized in that, The electronic device has a connection interface as described in any one of claims 1 to 4; the electronic device further includes: a processor and a memory for storing processor-executable instructions, wherein the processor is configured to execute a control method of the connection interface as described in any one of claims 5 to 7 when the executable instructions in the memory are invoked.

10. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a control method for a connection interface as described in any one of claims 5 to 7.

Citation Information

Patent Citations

  • Charging and audio data processing method and terminal

    CN107145331A

  • Electronic equipment and accessory with quick charging and audio transmission functions

    CN110944076A

  • Method and electronic device for transceiving audio signal

    US20200310999A1