Data Transmission Method, Transmitter, Device, Equipment and Medium
Through the data transmitter, the appropriate transmission channel is identified and selected, and the high-bandwidth Bluetooth communication module is used to solve the problem of low Bluetooth transmission capabilities, realizing the adaptation of low-end devices and high-quality players, and improving the sound quality experience.
Patent Information
- Application Number
- CN202210811792.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-11
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-07-11
AI Technical Summary
Mobile phones with low Bluetooth transmission capabilities cannot adapt to high-quality wireless Bluetooth headsets, resulting in insufficient sound quality.
Connect electronic devices through a data transmitter, identify the transmission channel type, and transmit data signals according to the type, so that electronic devices with low Bluetooth transmission capabilities can adapt to high-sound quality data players and use high-bandwidth Bluetooth communication module for data transmission.
Electronic devices with low Bluetooth transmission capabilities can be adapted to high-sounding data players through high-sounding data transmitters, improving the user experience.
Smart Images

Figure CN115209388B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Bluetooth technology, and particularly to a data transmission method, a transmitter, a device, an apparatus, and a medium. Background Art
[0002] With the growth and popularity of True Wireless Stereo (TWS) earbuds, Bluetooth devices are widely used in work and life.
[0003] During the transmission of audio data, a mobile phone inputs a data signal into a Bluetooth module. The Bluetooth module encodes the data signal into a Bluetooth codec encoding format and sends it to the TWS. The TWS decodes the data signal and plays the audio according to the decoded audio data.
[0004] With the development of technology, the sound quality of TWS is getting higher and higher, and the requirements for the transmission ability of the Bluetooth module are also increasing. Mobile phones with low Bluetooth transmission ability cannot be adapted to high-quality TWS. Summary of the Invention
[0005] Embodiments of this application provide a data transmission method, a transmitter, a device, an apparatus, and a medium, which can enable a mobile phone with low Bluetooth transmission ability to be adapted to high-quality wireless earbuds through a data transmitter. The technical solution is as follows:
[0006] According to one aspect of this application, a data transmission method is provided. The method is executed by an electronic device and includes:
[0007] Connect to a data transmitter;
[0008] Select a transmission channel according to the device information of the data transmitter. The transmission channel includes one of an analog transmission channel, a digital encoding transmission channel, and a digital non-encoding transmission channel;
[0009] Transmit a data signal to the data transmitter according to the transmission channel. The data signal is used to be sent to a data player through the data transmitter.
[0010] According to one aspect of this application, a data transmitter is provided. The data transmitter includes:
[0011] A physical interface for connecting to an electronic device;
[0012] A Bluetooth communication module for sending a data signal to a data player;
[0013] A transmission channel, the first end of the transmission channel is connected to the physical interface, and the second end of the transmission channel is connected to the Bluetooth communication module. The transmission channel is used to transmit the digital data signal sent by the electronic device to the Bluetooth communication module.
[0014] According to one aspect of the present application, a data transmission device is provided, and the device includes:
[0015] A connection module for connecting a data transmitter;
[0016] A selection module for selecting a transmission channel according to the device information of the data transmitter. The transmission channel includes one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel;
[0017] A transmission module for transmitting a data signal to the data transmitter according to the transmission channel. The data signal is used to be sent to a data player through the data transmitter.
[0018] According to one aspect of the present application, an electronic device is provided, and the electronic device includes a memory and a processor;
[0019] At least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the data transmission method as described above.
[0020] According to one aspect of the present application, a computer-readable storage medium is provided, and a computer program is stored in the storage medium. The computer program is used to be executed by a processor to implement the data transmission method as described above.
[0021] According to one aspect of the present application, a chip is provided. The chip includes programmable logic circuits and / or program instructions, which are used to implement the data transmission method as described above when the electronic device installed with the chip runs.
[0022] According to one aspect of the present application, a computer program product is provided. The computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor reads and executes the computer instructions from the computer-readable storage medium to implement the data transmission method as described above.
[0023] The beneficial effects brought by the technical solution provided by the embodiments of the present application at least include:
[0024] By connecting the electronic device to the data transmitter, the electronic device identifies the transmission channel in the data transmitter, and transmits the corresponding data signal according to the type of the transmission channel, so that the electronic device sends the data signal to the data player through the data transmitter, enabling an electronic device with low Bluetooth transmission ability to adapt to a high-fidelity data player through a data transmitter with high Bluetooth transmission ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0026] Figure 1 is a schematic diagram of a Bluetooth data forwarding system provided by an exemplary embodiment of the present application;
[0027] Figure 2 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;
[0028] Figure 3 is a schematic diagram of a data transmitter provided by an exemplary embodiment of the present application;
[0029] Figure 4 is a schematic diagram of a data transmitter provided by an exemplary embodiment of the present application;
[0030] Figure 5 is a schematic diagram of a data transmitter provided by an exemplary embodiment of the present application;
[0031] Figure 6 is a schematic diagram of a data transmitter provided by an exemplary embodiment of the present application;
[0032] Figure 7 is a schematic diagram of a data transmitter provided by an exemplary embodiment of the present application;
[0033] Figure 8 is a schematic diagram of a data transmitter provided by an exemplary embodiment of the present application;
[0034] Figure 9 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;
[0035] Figure 10 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;
[0036] Figure 11 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;
[0037] Figure 12 is a schematic diagram of a data transmission device provided by an exemplary embodiment of the present application;
[0038] Figure 13 is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Detailed implementation manners
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the following will further describe the implementation manners of this application in detail with reference to the accompanying drawings.
[0040] With the growth and popularity of true wireless stereo (TWS) earbuds, Bluetooth devices are widely used in work and life, such as making phone calls, listening to music, etc. In this process, it is necessary to transmit audio data.
[0041] Taking the wireless transmission of audio data among an electronic device, a data transmitter, and a data player as an example, Figure 1 FIG. shows a schematic diagram of data transmission provided by an exemplary embodiment of this application. Among them, a data signal is stored or cached in the electronic device, and the electronic device is used to transmit the data signal to the data transmitter; the data transmitter is used to send the data signal to the data player through a Bluetooth communication module; the data player is used to receive the data signal and play it.
[0042] The user determines the data resource to be played in the electronic device, and the data resource can be at least one of: audio resource, video resource, picture resource, and text resource. The electronic device obtains the data resource and decodes it through Pulse Code Modulation (PCM decoding) to obtain a data signal corresponding to the data resource.
[0043] In an alternative embodiment, the electronic device performs digital-to-analog conversion on the data signal obtained after PCM decoding to obtain an analog data signal, the electronic device transmits the analog data signal to the data transmitter, the data transmitter converts the analog data signal into a digital data signal, and performs Bluetooth codec encoding on the digital data signal to obtain an encoded digital data signal. The data transmitter sends the encoded digital data signal to the data player, the data player performs Bluetooth codec decoding on the encoded digital data signal, performs DA conversion on the decoded digital data signal, and plays the analog data signal obtained after DA conversion.
[0044] In another alternative embodiment, the data signal is a digital data signal, and the electronic device transmits the digital data signal to the data transmitter. The data transmitter performs Bluetooth codec encoding on the digital data signal to obtain an encoded digital data signal. The data transmitter sends the encoded digital data signal to the data player, the data player performs Bluetooth codec decoding on the encoded digital data signal, performs DA conversion on the decoded digital data signal, and plays the analog data signal obtained after DA conversion.
[0045] In another alternative embodiment, the data signal is a digital data signal, and the electronic device encodes the digital data signal through a Bluetooth codec to obtain an encoded digital data signal. The electronic device transmits the encoded digital data signal to a data transmitter, and the data transmitter sends the encoded digital data signal to a data player. The data player decodes the encoded digital data signal through a Bluetooth codec, performs DA conversion on the decoded digital data signal, and plays the analog data signal obtained after DA conversion.
[0046] Among them, the Bluetooth codec includes but is not limited to: Free Lossless Audio Codec (FLAC), SBC (Subband Coding), AAC (Advanced Audio Coding), aptX, LDAC, LHDC (Low-Latency Hi-Definition Audio Codec).
[0047] Schematically, the electronic device and the data transmitter are connected through an interface, or the electronic device and the data transmitter are connected through an adapter cable. Alternatively, the electronic device and the data transmitter are wirelessly connected. For example, the electronic device and the data transmitter are connected through WiFi or a mobile communication network.
[0048] Schematically, the data transmission between the data transmitter and the data player is in a wireless transmission mode. For example, the data transmitter and the data player are connected through Bluetooth, and the data is transmitted between the data transmitter and the data player through Bluetooth.
[0049] The data player receives the data signal sent by the data transmitter through a receiving component, and decodes the data signal through the aforementioned Bluetooth audio codec to play the decoded data signal.
[0050] Subsequently, the data player performs digital-to-analog conversion and power amplification on the decoded data signal to obtain a corresponding analog signal, and plays the analog signal through a playback component. It should be understood that the analog signal corresponds to the determined data resource in the electronic device. Optionally, the digital-to-analog conversion can be implemented through a Digital to Analog Converter (DAC), and the power amplification can be implemented through an AMplifier for Power (AMP).
[0051] Taking the electronic device as a mobile phone, the data transmitter as an external device inserted into the mobile phone, and the data player as a Bluetooth headset as an example, after the data transmitter is inserted into the mobile phone and the data transmitter establishes a communication connection with the Bluetooth headset, the user selects the music to be played on the mobile phone.
[0052] Among them, the mobile phone obtains the data resources corresponding to the music and performs PCM decoding on the data resources to obtain a PCM signal. The mobile phone or the data transmitter encodes the PCM signal into the encoding format of the Bluetooth codec to obtain a data signal. The mobile phone sends the data signal to the receiving component of the data player through the data transmitter.
[0053] The data player decodes the data signal through the Bluetooth codec to obtain a PCM signal, and generates an analog signal corresponding to the PCM signal through the DAC and the AMP. Subsequently, the analog signal is played through the playback component so that the user can hear the selected music through the Bluetooth headset.
[0054] The present application provides a data transmission method for forwarding Bluetooth data signals among an electronic device, a data transmitter, and a data player. Schematically, the data transmission method provided by the embodiments of the present application is applied to a Bluetooth transmission scenario to achieve wireless Bluetooth transmission of data signals. In an alternative implementation scenario, the data transmission method provided by the embodiments of the present application is not limited to the Bluetooth communication scenario and can also be applied to scenarios such as Wi-Fi communication and cellular network communication.
[0055] Figure 2 The flowchart of the data transmission method provided by an exemplary embodiment of the present application is shown. The method is executed by an electronic device and includes the following steps:
[0056] Step 210: Connect to the data transmitter.
[0057] Optionally, the electronic device is wired to the data transmitter. The physical interface on the data transmitter is connected to the corresponding interface of the electronic device. Alternatively, the data transmitter and the electronic device are connected through an adapter cable. For example, the data transmitter has a Type-C interface, and the Type-C interface of the data transmitter is inserted into the Type-C female socket of the electronic device.
[0058] Optionally, the electronic device can also be wirelessly connected to the data transmitter. For example, the electronic device establishes a WiFi connection with the data transmitter. Alternatively, the electronic device establishes a connection to the mobile communication network with the data transmitter. For example, the electronic device and the data transmitter perform data communication through sidelink transmission.
[0059] Exemplarily, the data transmitter is used to receive the data signal sent by the electronic device and forward the data signal to the data player. Exemplarily, the data signal includes at least one of an audio signal, a video signal, an image signal, and a text signal.
[0060] The data transmitter can also be referred to as a Bluetooth data forwarder, a Bluetooth audio forwarder, or a Bluetooth audio-video forwarder.
[0061] Correspondingly, the data player can also be referred to as a Bluetooth data player, a Bluetooth audio player, a Bluetooth audio-video player, a Bluetooth headset, a video player with Bluetooth function, an audio player with Bluetooth function, a projector with Bluetooth function, etc.
[0062] Step 220: Select a transmission channel according to the device information of the data transmitter. The transmission channel includes one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel.
[0063] Optionally, when the data transmitter is wired to the electronic device, when the electronic device detects that a device is inserted, the electronic device performs an insertion detection to detect the device information of the inserted device. Exemplarily, the electronic device detects the device information of the inserted device according to the interface protocol.
[0064] Exemplarily, the data transmitter can also be connected to the electronic device through at least one of the following interfaces: Type-C (USB Type-C), mini USB (mini USB), Micro USB, Lightning (Lightning interface), 3.5mm headphone interface.
[0065] For example, when the data transmitter is inserted into the electronic device through the Type-C interface, the electronic device detects the device information of the data transmitter according to the Type-C protocol.
[0066] Again, for example, when the data transmitter is inserted into the electronic device through the Lightning interface, the electronic device detects the device information of the data transmitter according to the Lightning protocol.
[0067] The device information includes at least one of a device type, a chip identifier, and a chip interface type. Among them, the device type includes an analog device that transmits analog signals and a digital device that transmits digital signals. The chip identifier is the identifier of the chip in the data transmitter. The chip interface type is the type of the chip interface in the Bluetooth audio forwarder.
[0068] The device information is used to assist the electronic device in determining the type of the transmission channel in the data transmitter, so that the electronic device can transmit corresponding data signals to the data transmitter according to the transmission channel type.
[0069] Exemplarily, the electronic device has a display screen, and an application program corresponding to the data transmitter is installed in the electronic device. The device information identified by the electronic device is displayed on the user interface of the application program.
[0070] The electronic device stores data resources, the electronic device performs PCM decoding on the data resources to obtain data signals, and the electronic device transmits the data signals to the data transmitter.
[0071] Exemplarily, the electronic device may be a mobile phone, a smart watch, a vehicle-mounted terminal, a wearable device, a smart TV, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, a desktop computer, etc.
[0072] The electronic device is provided with a physical interface for connecting an external device.
[0073] At this time, the data transmitter is an external device that can access the electronic device through the physical interface on the electronic device. The data transmitter also has a physical interface. When the physical interface on the electronic device matches the physical interface on the data transmitter, the data transmitter can be directly inserted into the electronic device. When the physical interface on the electronic device does not match the physical interface on the data transmitter, the data transmitter can be connected to the electronic device through an adapter cable.
[0074] In an optional embodiment, the data player is a Bluetooth headset, and the data transmitter is the charging case of the Bluetooth headset. After the user takes the Bluetooth headset out of the charging case, the charging case is inserted into the mobile phone so that the mobile phone sends a data signal to the charging case, and the charging case forwards the data signal to the Bluetooth headset. Implementing the data player and the data transmitter as one product enables the Bluetooth transmission ability of the data transmitter to be adapted to the sound quality of the data player, and the two can be used in cooperation to improve the user experience of using high-quality Bluetooth headsets.
[0075] Optionally, in the case where the electronic device is wirelessly connected to the data transmitter, during the process of establishing a wireless connection between the electronic device and the data transmitter, the electronic device can obtain the device information of the data transmitter. Alternatively, after the electronic device establishes a wireless connection with the data transmitter, it sends a data device information acquisition request to the data transmitter, and the data transmitter sends the device information to the electronic device.
[0076] After the electronic device identifies the device information of the data transmitter, it determines the type of transmission channel in the data transmitter according to the device information. The embodiments of the present application provide data transmitters with three types of transmission channels, including: an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel.
[0077] Among them, the data transmitter with an analog transmission channel is used to receive the analog data signal transmitted by the electronic device and convert the analog data signal into a digital data signal and send it out through the Bluetooth communication module.
[0078] The data transmitter with a digital coding transmission channel is used to receive the digital data signal transmitted by the electronic device and perform Bluetooth codec encoding on the digital data signal in the data transmitter, encode it into a digital data signal for Bluetooth transmission, and send it out through the Bluetooth communication module.
[0079] A data transmitter with a digital non-coded transmission channel is used to receive digital data signals transmitted by electronic devices. The digital data signals are digital data signals for Bluetooth transmission obtained after the electronic devices perform Bluetooth codec encoding. The digital data signals do not need to be encoded in the data transmitter and can be directly sent out through the Bluetooth communication module.
[0080] Exemplarily, the digital coding transmission channel has an encoder capable of performing Bluetooth codec encoding, and the electronic device can transmit PCM data (data signal) to the data transmitter, and the PCM data is encoded by Bluetooth codec in the data transmitter.
[0081] Digital non-coded transmission channels do not have an encoder and cannot perform Bluetooth codec encoding. Electronic devices need to encode PCM data into the Bluetooth codec format and then transmit the encoded data signal to the data transmitter.
[0082] After determining the transmission channel in the data transmitter, the electronic device transmits the corresponding data signal to the data transmitter.
[0083] Step 230: Transmitting a data signal to the data transmitter according to the transmission channel, where the data signal is sent to the data player via the data transmitter.
[0084] The electronic device transmits the corresponding data signal to the data transmitter according to the determined transmission channel.
[0085] When the transmission channel is an analog transmission channel, the electronic device transmits an analog data signal to the data transmitter. When the transmission channel is a digitally coded transmission channel, the electronic device transmits a digital data signal that has not been encoded by the Bluetooth codec to the data transmitter. When the transmission channel is a digital non-coded transmission channel, the electronic device transmits a digital data signal that has been encoded by the Bluetooth codec to the data transmitter.
[0086] The data transmitter establishes a Bluetooth communication connection with the data player. After receiving the data signal, the data transmitter sends the data signal to the data player via the Bluetooth communication module.
[0087] In the Bluetooth transmission scenario, the data player can be any Bluetooth playback device, such as at least one of a Bluetooth headset, a Bluetooth speaker, and a car Bluetooth.
[0088] For example, the Bluetooth transmitter has a Bluetooth chip with a high transmission rate (high bandwidth). The method provided in the embodiment of the present application uses a data transmitter to replace the Bluetooth module in the electronic device. Even if the transmission capability of the Bluetooth module in the electronic device is low, the electronic device can improve its Bluetooth transmission capability by connecting an external data transmitter to adapt to a high-quality data player.
[0089] In summary, in the method provided by the embodiments of the present application, by connecting a data transmitter to an electronic device, the electronic device identifies the transmission channels in the data transmitter and transmits corresponding data signals according to the types of the transmission channels, so that the electronic device can send the data signals to a data player through the data transmitter, enabling an electronic device with low Bluetooth transmission capability to adapt to a high-fidelity data player through a data transmitter with high Bluetooth transmission capability.
[0090] The embodiments of the present application also provide a data transmitter.
[0091] Figure 3 Fig. shows a data transmitter provided by an exemplary embodiment of the present application.
[0092] The data transmitter 301 includes a physical interface 302, a transmission channel 306, and a Bluetooth communication module 305.
[0093] Among them, the physical interface can be one of Type-C, mini USB, Micro USB, Lightening, and 3.5 mm headphone jack.
[0094] The physical interface is used to insert into an electronic device or access the electronic device through an adapter cable. One end of the adapter cable is matched with the physical interface of the electronic device, and the other end is matched with the physical interface of the data transmitter. For example, the adapter cable can be a Type-C to Lightening, Type-C to 3.5 mm headphone jack, Lightening to Type-C, Lightening to MicroUSB, etc.
[0095] The electronic device transmits data signals to the data transmitter through the physical interface.
[0096] The first end of the transmission channel is connected to the physical interface, and the second end of the transmission channel is connected to the Bluetooth communication module. The transmission channel is used to transmit the data signals sent by the electronic device to the Bluetooth communication module.
[0097] The first end of the Bluetooth communication module is connected to the transmission channel. The Bluetooth communication module is used to send the data signals transmitted by the transmission channel to a data player.
[0098] Exemplarily, the Bluetooth communication module has a Bluetooth chip with high bandwidth, that is, the transmission bandwidth of the Bluetooth communication module in the data transmitter is higher than that of the Bluetooth communication module in the electronic device.
[0099] In an alternative embodiment, as Figure 4As shown, the data transmitter further includes a wireless communication module 310, and the wireless communication module is connected to the first end of the transmission channel. The wireless communication module can be a WiFi communication module or a mobile communication module. The wireless communication module is used to receive the data signal sent by the electronic device and transmit the data signal to the transmission channel.
[0100] Exemplarily, a wireless communication module and / or a physical interface are included in the data transmitter.
[0101] Exemplarily, the embodiment of the present application provides a data transmitter for transmitting analog data signals and two data transmitters for transmitting digital data signals.
[0102] In an alternative embodiment, as Figure 5 shown, it is a schematic diagram of a Bluetooth data forwarding system provided by the embodiment of the present application.
[0103] This system includes: an Android phone or an IOS phone (electronic device) 401, a transfer cable 402, a BT (Bluetooth) audio forwarding component (data transmitter) 403, and a Bluetooth headset (data player) 404.
[0104] Among them, the physical interface of the BT audio forwarding component is Type-C. When the electronic device is an Android phone, no transfer cable is required. When the electronic device is an IOS phone, the transfer cable is a Lightening-TypeC transfer cable.
[0105] The BT audio forwarding component includes an interface insertion detection module, a data transmission interface conversion module, and a high-bandwidth BT transmission module.
[0106] The interface insertion detection module is used to perform insertion detection according to the Type-C protocol and obtain the device information of the BT audio forwarding component when the BT audio forwarding component is inserted into the phone.
[0107] The high-bandwidth BT transmission module has a Bluetooth chip. The data transmission interface conversion is used to convert the Type-C interface into the input interface of the Bluetooth chip to connect the Type-C (physical interface) and the Bluetooth chip. The high-bandwidth BT transmission module is used to transmit the data signal transmitted by the data transmission interface conversion module.
[0108] The Bluetooth headset receives the data signal transmitted by the BT audio forwarding component, restores the data signal to an analog data signal through the data processing module, and plays the analog data signal through the speaker.
[0109] 1. The data transmitter for the analog transmission channel.
[0110] Figure 6shows a data transmitter with an analog transmission channel provided by an exemplary embodiment of the present application. Based on Figure 3 For the shown data transmitter, the transmission channel 306 includes an analog-to-digital converter (ADC) 303 and a second encoder 304.
[0111] The data transmitter 301 includes a physical interface 302, an ADC 303, a second encoder 304, and a Bluetooth communication module 305.
[0112] The electronic device transmits an analog data signal to the data transmitter through the physical interface.
[0113] The first end of the ADC is connected to the physical interface, and the second end is connected to the second encoder. The ADC is used to convert the analog data signal into a digital data signal.
[0114] The first end of the second encoder is connected to the ADC, and the second end is connected to the Bluetooth communication module. The second encoder is used to encode the digital data signal output by the ADC with a Bluetooth codec and output a digital data signal in the Bluetooth codec encoding format.
[0115] The Bluetooth codec encoding format includes but is not limited to: FLAC, SBC, AAC, aptX, LDAC, LHDC.
[0116] The first end of the Bluetooth communication module is connected to the second encoder. The Bluetooth communication module is used to send the digital data signal output by the second encoder to the data player.
[0117] 2. A data player with a digital encoding transmission channel.
[0118] Figure 7 shows a data transmitter with a digital encoding transmission channel provided by an exemplary embodiment of the present application. Based on Figure 3 For the shown data transmitter, the transmission channel 306 includes a first interface conversion module 307 and a first encoder 308.
[0119] The data transmitter 301 includes a physical interface 302, a first interface conversion module 307, a first encoder 308, and a Bluetooth communication module 305.
[0120] The electronic device transmits a second digital data signal that has not been encoded by a Bluetooth codec to the data transmitter through the physical interface.
[0121] The first end of the first interface conversion module is connected to the physical interface, and the second end of the first interface conversion module is connected to the first encoder.
[0122] The first interface conversion module is used to connect the physical interface and the Bluetooth chip. Depending on the types of the physical interface and the chip interface on the Bluetooth chip, the interfaces converted by the first interface conversion module are different. Taking the physical interface as a USB interface (Type-C) as an example, the first interface conversion module is used to convert the USB (Universal Serial Bus) interface into at least one of the following interfaces: I2S (Inter-IC Sound), PCM, and TDM (Time-Division Multiplexing).
[0123] The first interface conversion module is used to transmit the second digital data signal sent by the electronic device to the first encoder.
[0124] One end of the first encoder is connected to the first interface conversion module, and the other end of the first encoder is connected to the Bluetooth communication module.
[0125] The first encoder is used to encode the second digital data signal into the encoding format of the Bluetooth codec to obtain a third digital data signal.
[0126] The Bluetooth communication module is used to send the third digital data signal to the data player.
[0127] 3. The data player of the digital non-encoded transmission channel.
[0128] Figure 8 Shows a data transmitter with a digital non-encoded transmission channel provided by an exemplary embodiment of the present application. Based on Figure 3 the shown data transmitter, the transmission channel 306 includes a second interface conversion module 309.
[0129] The data transmitter 301 includes a physical interface 302, a second interface conversion module 309, and a Bluetooth communication module 305.
[0130] The electronic device transmits the fifth digital data signal encoded by the Bluetooth codec to the data transmitter through the physical interface.
[0131] One end of the second interface conversion module is connected to the physical interface, and the other end of the second interface conversion module is connected to the Bluetooth communication module.
[0132] The second interface conversion module is used to connect the physical interface and the Bluetooth chip. Depending on the physical interface and the chip interface type on the Bluetooth chip, the interfaces converted by the second interface conversion module are different. Taking the physical interface as a USB interface (Type-C) as an example, the second interface conversion module is used to convert the USB interface into at least one of the following interfaces: USB, SLIM bus (Serial Low-power Inter-chip Media Bus), Sound wire, SPI (Serial Peripheral Interface), UART (Universal Asynchronous Receiver / Transmitter). When the physical interface is the same as the chip interface, the second interface conversion module can be a connecting wire.
[0133] The second interface conversion module is used to transmit the fifth digital data signal sent by the electronic device to the Bluetooth communication module.
[0134] The Bluetooth communication module is used to send the fifth digital data signal to the data player.
[0135] Exemplarily, an exemplary embodiment of an electronic device identifying device information in the case of a wired connection between the electronic device and the data transmitter is given.
[0136] Figure 9 The flowchart of a data transmission method provided by an exemplary embodiment of the present application is shown. This method is executed by an electronic device. The data transmission method provided by the embodiment of the present application includes the following steps:
[0137] Step 501: The electronic device connects to the data transmitter.
[0138] The electronic device connects to the data transmitter through the physical interface. After detecting that the physical interface is connected, insertion detection is performed according to the interface protocol of the physical interface to identify the device type.
[0139] Step 502: The electronic device identifies the device type of the data transmitter. If the device type is an analog device, step 503 is executed; if the device type is a digital device, step 505 is executed; if the identification fails, step 510 is executed.
[0140] Taking the physical interfaces on both the electronic device and the data transmitter as Type-C interfaces as an example, the electronic device identifies the device type of the data transmitter according to the Type-C protocol. The device type is identified according to the level condition on the CC pin of the Type-C interface. When the CC pin is at a high level, it is identified as an analog device; when the CC pin is at a low level (connected to GND), it is identified as a digital device.
[0141] Exemplarily, the electronic device identifies the data transmitter as an analog headset or a digital headset, and transmits a corresponding data signal to the data transmitter according to the identification result.
[0142] When the data transmitter is connected to the electronic device through a Lightning or Type-C interface, according to the Lightning or Type-C protocol, the electronic device automatically identifies the data transmitter as an analog device or a digital device. If it is identified as a digital device, the electronic device automatically selects a digital channel; if it is identified as an analog device, the electronic device automatically selects an analog channel.
[0143] When the data transmitter is connected through other interfaces (including but not limited to a common USB, a common audio interface, etc.), if the electronic device does not respond (fail to successfully identify the device) after the data transmitter is inserted into the electronic device, the user needs to select a transmission channel on the application.
[0144] In this way, when the electronic device plays music, it automatically outputs the data signal to the data transmitter according to the selected transmission channel.
[0145] Step 503: When the device type of the electronic device is an analog device, an analog transmission channel is selected.
[0146] When the electronic device identifies the data transmitter as an analog headset (analog device), the electronic device selects the analog transmission channel as the transmission channel.
[0147] In the case of selecting the analog transmission channel, the electronic device transmits an analog data signal to the data transmitter.
[0148] Exemplarily, a data transmitter with an analog transmission channel is as Figure 6 shown.
[0149] Step 504: When the transmission channel is an analog transmission channel, the electronic device transmits an analog data signal to the data transmitter. The analog data signal is used to perform analog-to-digital conversion and Bluetooth codec encoding through the data transmitter to obtain a first digital data signal, and the first digital data signal is used to be forwarded to the data player through the data transmitter.
[0150] Exemplarily, the electronic device reads the data resource, performs PCM decoding on the data resource to obtain a PCM digital data signal, performs digital-to-analog conversion on the PCM digital data signal to obtain an analog data signal. The electronic device transmits the analog data signal to the data transmitter.
[0151] The data transmitter receives an analog data signal through a physical interface, and then converts the analog data signal into a first digital data signal through an analog-to-digital converter. The first digital data signal is encoded into a Bluetooth codec encoding format through a second encoder to obtain a second digital data signal. The second digital data signal is sent to the data player through a Bluetooth communication module.
[0152] Step 505: When the device type of the electronic device is a digital device, power on the chip of the data transmitter and identify the chip interface type; execute Step 506 when the chip interface type is a first type of interface; execute Step 508 when the chip interface type is a second type of interface.
[0153] If the data transmitter is a digital device, the electronic device powers on the Bluetooth chip in the data transmitter, performs information interaction with the Bluetooth chip, obtains the chip identification and / or chip interface type of the Bluetooth chip, and selects an encoded or non-encoded digital transmission channel according to the chip identification or chip interface type.
[0154] The chip interface type is divided into a first type of interface and a second type of interface.
[0155] The interface of the first type of interface is used to transmit PCM data (PCM digital data signal), and the interface of the first type of interface cannot transmit control information. For example, the interface of the first type of interface includes but is not limited to: I2S, PCM, TDM. I2S, PCM, and TDM are audio buses that support synchronous stream control and are suitable for transmitting PCM data. Generally, control information cannot be transmitted through the bus.
[0156] The interface of the second type of interface includes an audio bus and a communication bus that can transmit control information. The interface of the second type of interface includes but is not limited to: USB, SLIM bus, Sound wire, SPI, UART. Among them, SLIM bus and Sound wire are audio buses that support asynchronous or synchronous stream control, and control information can be transmitted through this bus. USB, SPI, and UART are communication buses and are suitable for transmitting packet data (asynchronous).
[0157] When the chip interface type of the chip in the data transmitter is a first type of interface, the data transmitter can receive a PCM digital data signal and perform Bluetooth codec encoding on the PCM digital data signal.
[0158] When the chip interface type in the data transmitter is a second type of interface, there is no encoder in the data transmitter and Bluetooth codec encoding cannot be performed. At this time, the electronic device needs to perform Bluetooth codec encoding on the PCM digital data signal and transmit the encoded digital data signal to the data transmitter.
[0159] Optionally, the electronic device can also obtain the bit width supported by the data transmitter and select the corresponding bit width to transmit the data signal according to the bit width supported by the data transmitter.
[0160] Step 506: When the device type of the electronic device is a digital device and the chip interface type is the first type of interface, select a digital encoding transmission channel.
[0161] When the electronic device recognizes that the chip interface type of the data transmitter is the first type of interface, it determines that the transmission channel in the data transmitter is a digital encoding transmission channel, and then selects the digital encoding transmission channel to transmit the data signal.
[0162] When selecting the digital encoding transmission channel to transmit the data signal, the electronic device does not need to encode the data signal with a Bluetooth codec, and only needs to transmit the digital data signal obtained after PCM decoding to the data transmitter.
[0163] Exemplarily, a data transmitter with a digital encoding transmission channel is as Figure 7 shown.
[0164] Step 507: When the transmission channel is a digital encoding transmission channel, the electronic device transmits a second digital data signal to the data transmitter. The second digital data signal is used to obtain a third digital data signal through Bluetooth codec encoding by the data transmitter, and the third digital data signal is used to be forwarded to the data player by the data transmitter.
[0165] Exemplarily, the electronic device reads the data resource, performs PCM decoding on the data resource to obtain a PCM digital data signal (the second digital data signal). The electronic device transmits the PCM digital data signal (the second digital data signal) to the data transmitter.
[0166] The data transmitter receives the PCM digital data signal (the second digital data signal) through the physical interface, and then encodes the PCM digital data signal into the Bluetooth codec encoding format through the first encoder to obtain the third digital data signal. The third digital data signal is sent to the data player through the Bluetooth communication module.
[0167] Step 508: When the device type of the electronic device is a digital device and the chip interface type is the second type of interface, select a digital non-encoding transmission channel.
[0168] When the electronic device recognizes that the chip interface type of the data transmitter is the second type of interface, it determines that the transmission channel in the data transmitter is a digital non-encoding transmission channel, and then selects the digital non-encoding transmission channel to transmit the data signal.
[0169] When selecting a digital non-coded transmission channel to transmit a data signal, the electronic device needs to encode the data signal with a Bluetooth codec. The digital data signal obtained after Bluetooth codec encoding is transmitted to a data transmitter.
[0170] Exemplarily, a data transmitter having a digital non-coded transmission channel is as Figure 8 shown.
[0171] Step 509: When the transmission channel of the electronic device is a digital non-coded transmission channel, the fourth digital data signal is encoded into a Bluetooth codec encoding format; the fifth digital data signal is transmitted to the data transmitter, and the fifth digital data signal is used to be forwarded to a data player through the data transmitter.
[0172] Exemplarily, the electronic device reads a data resource, performs PCM decoding on the data resource to obtain a PCM digital data signal (the fourth digital data signal). The electronic device performs Bluetooth codec encoding on the PCM digital data signal (the fourth digital data signal) to obtain a fifth digital data signal. The fifth digital data signal is transmitted to the data transmitter.
[0173] Exemplarily, the electronic device performs Bluetooth codec encoding on the PCM digital data signal through an Audio DSP (Audio Digital Signal Processing) chip to obtain a fifth digital data signal. The fifth digital data signal is transmitted to the data transmitter.
[0174] The data transmitter receives the fifth digital data signal through a physical interface. The fifth digital data signal is sent to the data player through a Bluetooth communication module.
[0175] Step 510: When the electronic device detects that the data transmitter fails, a channel selection control is displayed; according to the selection operation received on the channel selection control, a transmission channel is determined, and the transmission channel includes one of an analog transmission channel, a digital coded transmission channel, and a digital non-coded transmission channel.
[0176] If the electronic device cannot recognize the data transmitter after the data transmitter is inserted into the electronic device, the user can manually select a transmission channel in the application.
[0177] In response to an operation of opening the application, a user interface of the application corresponding to the data transmitter is displayed, and a channel selection control is displayed on the user interface; in response to a channel selection operation received on the channel selection control, a corresponding transmission channel is selected according to the channel selection operation. For example, the user can select one of an analog transmission channel, a digital coded transmission channel, and a digital non-coded transmission channel.
[0178] In the case of selecting an analog transmission channel, the electronic device performs step 504 to transmit an analog data signal to the data transmitter.
[0179] In the case of selecting a digital encoding transmission channel, the electronic device performs step 507 to transmit a second digital data signal (PCM digital data signal) to the data transmitter.
[0180] In the case of selecting a digital non-encoding transmission channel, the electronic device performs step 509 to transmit a fifth digital data signal (digitally encoded data signal after Bluetooth codec encoding) to the data transmitter.
[0181] In an alternative embodiment, when it is recognized that the data transmitter is not successful according to the interface protocol, a bit width selection control is displayed; according to the selection operation received on the bit width selection control, the transmission bit width is determined; and the data signal is transmitted to the data transmitter according to the transmission bit width.
[0182] Exemplarily, if a digital transmission channel (including a digital encoding transmission channel and a digital non-encoding transmission channel) is selected, then further, a bit width selection control can also be displayed on the user interface. In response to the bit width selection operation on the bit width selection control, the corresponding bit width is selected to transmit the data signal. For example, bit widths such as 16 bits (bits) and 24 bits can be selected on the bit width selection control. The electronic device transmits the data signal to the data transmitter according to the selected bit width.
[0183] Exemplarily, the Bluetooth communication module in the data transmitter includes a Bluetooth chip and peripheral circuits, such as an RF FEM (RF Front-End Module, radio frequency front-end module), an antenna, etc. The second encoder in the analog transmission channel can also be in the Bluetooth communication module. The Bluetooth communication module receives the first digital data signal output by the analog-to-digital converter, encodes the first digital data signal into the Bluetooth codec encoding format to obtain the second digital data signal, and sends the second digital data signal to the data player in a wireless transmission form through the peripheral circuit.
[0184] Among them, the Bluetooth communication module can include one Bluetooth communication module, or can include at least two Bluetooth communication modules, and at least two Bluetooth communication modules can work simultaneously.
[0185] Exemplarily, the Bluetooth communication module monitors the frequency or channel currently occupied by the electronic device (for example, the frequency or channel occupied by WiFi (wireless network communication technology) or mobile phone Bluetooth), and updates the available frequency or channel to the frequency hopping list. When sending a data signal to the data player, an available frequency or channel is selected from the frequency hopping list to send the data signal to the data player.
[0186] Exemplarily, the number of data players is not limited and can be one or more.
[0187] Exemplarily, the "digital data signal" in the embodiments of the present application includes, but is not limited to, "digital audio signal", "digital video signal", "digital image signal", "digital text signal"; the "analog data signal" includes, but is not limited to, "analog audio signal", "analog video signal", "analog image signal", "analog text signal". In summary, in the method provided by the embodiments of the present application, the electronic device can automatically identify the transmission channel type in the inserted data transmitter and select the corresponding transmission channel to transmit the data signal. If the electronic device cannot identify the data transmitter, the user can manually select the transmission channel corresponding to the data transmitter so that the electronic device transmits the corresponding data signal to the data transmitter, and the electronic device sends the data signal to the data player through the data transmitter.
[0188] Figure 10 The flowchart of the data transmission method provided by an exemplary embodiment of the present application is shown. This method is executed by an electronic device (mobile phone), a data transmitter, and a data player (Bluetooth headset). The data transmission method provided by the embodiments of the present application includes the following steps:
[0189] Step 601: The mobile phone detects the insertion of the data transmitter and performs insertion detection.
[0190] Insertion detection refers to the detection made by the mobile phone when the data transmitter is inserted into the mobile phone.
[0191] When the data transmitter is connected to the mobile phone through a Lightening or Type-C interface, according to the interface protocol, the mobile phone automatically identifies the data transmitter as an analog device or a digital device. If it is a digital device, the mobile phone automatically selects the digital channel; if it is an analog device, the mobile phone automatically selects the analog channel.
[0192] When the data transmitter is inserted into the mobile phone through other interfaces (including but not limited to a common USB, a common audio interface, etc.) and the mobile phone has no response, the user needs to select the analog channel or the digital channel on the APP.
[0193] In this way, when the mobile phone plays music, it will automatically output the data signal to the data transmitter through the selected transmission channel.
[0194] Step 602: The mobile phone selects a transmission channel according to the detection result of the insertion detection.
[0195] The mobile phone selects the analog channel or the digital channel according to the result of the insertion detection.
[0196] Among them, if it is a digital channel, it is possible to select whether to perform Codec (encoding) in the data transmitter in the application program. Exemplarily, it is default to perform Codec in the data transmitter.
[0197] Step 603: When the mobile phone detects an analog device, it selects transmission channel 01 (analog transmission channel).
[0198] When transmission channel 01 is selected, the mobile phone transmits an analog data signal to the data transmitter. The data transmitter converts the analog data signal into a digital data signal through an ADC, and encodes the digital data signal into the Bluetooth codec encoding format through a second encoder to obtain a first digital data signal.
[0199] Step 604: When the mobile phone detects a digital device, it selects the bit width and determines whether encoding is required in the data transmitter.
[0200] Before signal transmission, the user can select the bit width in the application, for example, 24bit, 16bit, or other bit widths.
[0201] Step 605: If encoding is required, select transmission channel 02 (digital encoding transmission channel).
[0202] When transmission channel 02 is selected, the mobile phone transmits a second digital data signal to the data transmitter. The data transmitter encodes the second digital data signal into the Bluetooth codec encoding format through a first encoder to obtain a third digital data signal.
[0203] Step 606: If encoding is not required, select transmission channel 03 (digital non-encoding transmission channel).
[0204] When transmission channel 03 is selected, the mobile phone transmits a fifth digital data signal to the data transmitter. The data transmitter transmits the fifth digital data signal to the Bluetooth transmission module.
[0205] Step 607: The data transmitter selects a Bluetooth transmission module (Bluetooth communication module). The data transmitter can select one Bluetooth transmission module, or the data transmitter can select two or more Bluetooth transmission modules.
[0206] The data transmitter can send data signals to the Bluetooth headset through one Bluetooth transmission module, or the data transmitter can also send data signals to the Bluetooth headset through multiple Bluetooth transmission modules simultaneously.
[0207] Step 608: The data transmitter selects the transmission frequency / channel.
[0208] The data transmitter removes the frequencies / channels occupied by the mobile phone's WiFi and mobile phone's Bluetooth, updates the available frequencies / channels of the data transmitter to the frequency hopping list. The data transmitter selects a frequency / channel from the frequency hopping list to send data signals to the Bluetooth headset.
[0209] Step 609: The data transmitter transmits a data signal to the Bluetooth headset (depending on the transmission channel, the data signal can be one of the first digital data signal, the third digital data signal, and the fifth digital data signal).
[0210] The Bluetooth headset receives the data signal. The Bluetooth headset can be a TWS, a general Bluetooth headset, or other Bluetooth playback devices. After decoding the data signal, the Bluetooth headset plays the audio through a receiver, a speaker, a loudspeaker, etc.
[0211] Step 610: The mobile phone can transmit a data signal to the data transmitter according to the received play operation, and the mobile phone can stop transmitting the data signal to the audio forwarder according to the received stop operation.
[0212] Exemplarily, the Bluetooth headset can also receive a play operation or a stop operation. The Bluetooth headset sends a play signal or a stop signal to the data transmitter according to the received operation, and the data transmitter transmits the play signal or the stop signal to the mobile phone. The mobile phone plays music or stops playing music according to the received play signal or stop signal.
[0213] In summary, in the method provided by the embodiment of the present application, a data transmitter integrated with a high-bandwidth chip is connected to the mobile phone. The mobile phone identifies the data transmitter as a digital headset or an analog headset, and sends a digital data signal to the Bluetooth headset or other Bluetooth playback devices through the data transmitter, so that a mobile phone with low Bluetooth transmission ability can also adapt to a high-quality Bluetooth headset through the data transmitter.
[0214] Exemplarily, an exemplary embodiment of an electronic device identifying device information in the case of wireless connection with a data transmitter is given.
[0215] Figure 11 The flowchart of a data transmission method provided by an exemplary embodiment of the present application is shown, and this method is executed by an electronic device. The data transmission method provided by the embodiment of the present application includes the following steps:
[0216] Step 501-1: The electronic device wirelessly connects to the data transmitter.
[0217] The electronic device establishes a wireless communication connection with the data transmitter. For example, the electronic device establishes a WiFi connection with the data transmitter, or the electronic device establishes a mobile communication connection with the data transmitter.
[0218] For example, the electronic device sends a connection request to the data transmitter. In response to receiving the connection request, the data transmitter negotiates a connection with the electronic device. After successful negotiation, the electronic device establishes a wireless connection with the data transmitter.
[0219] Step 502-1: The electronic device obtains the device type of the data transmitter. If the device type is an analog device, step 503 is executed; if the device type is a digital device, step 505 is executed; if the identification fails, step 510 is executed.
[0220] The electronic device sends a device information acquisition request to the data transmitter, and the data transmitter sends device information to the electronic device. The device information includes the device type and the chip interface type.
[0221] Step 503: When the device type of the electronic device is an analog device, an analog transmission channel is selected.
[0222] Step 504: When the transmission channel is an analog transmission channel, the electronic device transmits an analog data signal to the data transmitter. The analog data signal is used to perform analog-to-digital conversion and Bluetooth codec encoding through the data transmitter to obtain a first digital data signal, and the first digital data signal is used to be forwarded to the data player through the data transmitter.
[0223] Step 505: When the device type of the electronic device is a digital device, the chip of the data transmitter is powered, and the chip interface type is identified. If the chip interface type is the first type of interface, step 506 is executed; if the chip interface type is the second type of interface, step 508 is executed.
[0224] Step 506: When the device type of the electronic device is a digital device and the chip interface type is the first type of interface, a digital encoding transmission channel is selected.
[0225] Step 507: When the transmission channel is a digital encoding transmission channel, the electronic device transmits a second digital data signal to the data transmitter. The second digital data signal is used to perform Bluetooth codec encoding through the data transmitter to obtain a third digital data signal, and the third digital data signal is used to be forwarded to the data player through the data transmitter.
[0226] Step 508: When the device type of the electronic device is a digital device and the chip interface type is the second type of interface, a digital non-encoding transmission channel is selected.
[0227] Step 509: When the transmission channel is a digital non-encoding transmission channel, the electronic device encodes the fourth digital data signal into the Bluetooth codec encoding format; transmits a fifth digital data signal to the data transmitter, and the fifth digital data signal is used to be forwarded to the data player through the data transmitter.
[0228] Step 510-1: When the electronic device fails to obtain device information successfully, display a channel selection control; determine a transmission channel according to the selection operation received on the channel selection control, where the transmission channel includes one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel.
[0229] If the electronic device does not receive the device information sent by the data transmitter, the user can manually select a transmission channel in the application.
[0230] In response to the operation of opening the application, display the user interface of the application corresponding to the data transmitter, and a channel selection control is displayed on the user interface; in response to receiving the channel selection operation on the channel selection control, select the corresponding transmission channel according to the channel selection operation. For example, the user can select one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel.
[0231] In the case of selecting an analog transmission channel, the electronic device executes Step 504 to transmit an analog data signal to the data transmitter.
[0232] In the case of selecting a digital coding transmission channel, the electronic device executes Step 507 to transmit a second digital data signal (PCM digital data signal) to the data transmitter.
[0233] In the case of selecting a digital non-coding transmission channel, the electronic device executes Step 509 to transmit a fifth digital data signal (digitally encoded data signal after Bluetooth codec encoding) to the data transmitter.
[0234] Exemplarily, if a digital transmission channel (including a digital coding transmission channel and a digital non-coding transmission channel) is selected, then further, a bit width selection control can also be displayed on the user interface. In response to the bit width selection operation on the bit width selection control, select the corresponding bit width to transmit the data signal. For example, bit widths such as 16 bit (bits) and 24 bit can be selected on the bit width selection control. The electronic device transmits the data signal to the data transmitter according to the selected bit width.
[0235] In an optional embodiment, if the electronic device is wirelessly connected to the data transmitter and the electronic device cannot automatically select a transmission channel and / or a transmission bit width according to the device information of the data transmitter, the user can only manually select a transmission channel and / or a transmission bit width. That is, when wirelessly connected to the data transmitter, display a channel selection control; determine a transmission channel according to the selection operation received on the channel selection control, where the transmission channel includes one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel. When wirelessly connected to the data transmitter, display a bit width selection control; determine a transmission bit width according to the selection operation received on the bit width selection control; transmit the data signal to the data transmitter according to the transmission bit width.
[0236] In an alternative embodiment, when the electronic device is wirelessly connected to the data transmitter, the electronic device selects a digital non-encoded transmission channel and sends a digital data signal encoded by a Bluetooth codec to the data transmitter. That is, the method includes: the electronic device is wirelessly connected to the data transmitter; the electronic device selects a digital non-encoded transmission channel; and the data signal is transmitted to the data transmitter according to the digital non-encoded transmission channel.
[0237] In summary, in the method provided by the embodiments of the present application, the electronic device can automatically identify the type of the transmission channel in the inserted data transmitter and select the corresponding transmission channel to transmit the data signal. If the electronic device fails to identify the data transmitter, the user can manually select the transmission channel corresponding to the data transmitter so that the electronic device transmits the corresponding data signal to the data transmitter, and the electronic device sends the data signal to the data player through the data transmitter.
[0238] Those skilled in the art will know that the method steps in the above embodiments can be combined arbitrarily to obtain new embodiments.
[0239] The following is an embodiment of the device of the present application. For details not described in detail in the embodiment of the device, reference can be made to the corresponding records in the above method embodiment, which will not be repeated herein.
[0240] Figure 12 The schematic diagram of a data transmission device provided by an exemplary embodiment of the present application is shown. The device includes:
[0241] A connection module 700 for connecting to the data transmitter;
[0242] A selection module 702 for selecting a transmission channel according to the device information of the data transmitter, where the transmission channel includes one of an analog transmission channel, a digital encoded transmission channel, and a digital non-encoded transmission channel;
[0243] A transmission module 703 for transmitting a data signal to the data transmitter according to the transmission channel, where the data signal is used to be sent to a data player through the data transmitter.
[0244] In an alternative embodiment, the device information includes a device type;
[0245] An identification module 701 for identifying the device type of the inserted data transmitter according to the interface protocol when the data transmitter is connected, where the device type includes one of a digital device and an analog device.
[0246] In an alternative embodiment, the selection module 702 is used to select the analog transmission channel when the device type is the analog device.
[0247] In an alternative embodiment, the device information further includes a chip interface type;
[0248] The identification module 701 is configured to power the data transmitter and obtain the chip interface type of the data transmitter when the device type is the digital device.
[0249] In an alternative embodiment, the selection module 702 is configured to select the digital coding transmission channel when the device type is the digital device and the chip interface type is a first type of interface.
[0250] In an alternative embodiment, the first type of interface includes at least one of the following: Inter-Integrated Circuit Sound bus I2S, Pulse Code Modulation PCM, Time Division Multiplexing TDM.
[0251] In an alternative embodiment, the selection module 702 is configured to select the digital non-coding transmission channel when the device type is the digital device and the chip interface type is a second type of interface.
[0252] In an alternative embodiment, the second type of interface includes at least one of the following: Universal Serial Bus USB, Serial Low Power Inter-Chip Media Bus SLIM bus, Sound wire, Serial Peripheral Interface SPI, Universal Asynchronous Receiver-Transmitter UART.
[0253] In an alternative embodiment, the apparatus further includes:
[0254] A display module 704, configured to display a channel selection control when it is detected that the data transmitter fails;
[0255] An interaction module 705, configured to receive a selection operation on the channel selection control;
[0256] The selection module 702 is configured to determine the transmission channel according to the selection operation received on the channel selection control, where the transmission channel includes one of the analog transmission channel, the digital coding transmission channel, and the digital non-coding transmission channel.
[0257] In an alternative embodiment, the apparatus further includes:
[0258] A display module 704, configured to display a bit width selection control when it fails to identify the data transmitter according to the interface protocol;
[0259] The selection module 702 is configured to determine the transmission bit width according to the selection operation received on the bit width selection control;
[0260] The transmission module 703 is configured to transmit a data signal to the data transmitter according to the transmission bit width.
[0261] In an optional embodiment, the device further includes:
[0262] A display module 704, configured to display a channel selection control when wirelessly connected to the data transmitter;
[0263] The selection module 702 is configured to determine the transmission channel according to a selection operation received on the channel selection control, where the transmission channel includes one of the analog transmission channel, the digital encoded transmission channel, and the digital non-encoded transmission channel.
[0264] In an optional embodiment, the device further includes:
[0265] A display module 704, configured to display a bit width selection control when wirelessly connected to the data transmitter;
[0266] The selection module 702 is configured to determine the transmission bit width according to a selection operation received on the bit width selection control;
[0267] The transmission module 703 is configured to transmit a data signal to the data transmitter according to the transmission bit width.
[0268] In an optional embodiment, when the transmission channel is an analog transmission channel, the transmission module 703 is configured to transmit an analog data signal to the data transmitter, where the analog data signal is used to perform analog-to-digital conversion and Bluetooth codec encoding through the data transmitter to obtain a first digital data signal, and the first digital data signal is used to be forwarded to the data player through the data transmitter.
[0269] In an optional embodiment, when the transmission channel is a digital encoded transmission channel, the transmission module 703 is configured to transmit a second digital data signal to the data transmitter, where the second digital data signal is used to perform Bluetooth codec encoding through the data transmitter to obtain a third digital data signal, and the third digital data signal is used to be forwarded to the data player through the data transmitter.
[0270] In an optional embodiment, the device further includes:
[0271] An encoding module 706, configured to encode a fourth digital data signal into a Bluetooth codec encoding format to obtain a fifth digital data signal when the transmission channel is a digital non-encoded transmission channel;
[0272] The transmission module 703 is configured to transmit the fifth digital data signal to the data transmitter, and the fifth digital data signal is used to be forwarded to the data player through the data transmitter.
[0273] Figure 13 FIG. shows a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application. The electronic device includes: a processor 1101, a receiver 1102, a forwarder 1103, a memory 1104, and a bus 1105.
[0274] The processor 1101 includes one or more processing cores. The processor 1101 executes various functional applications and information processing by running software programs and modules.
[0275] The receiver 1102 and the forwarder 1103 can be implemented as a communication component, and the communication component can be a communication chip.
[0276] The memory 1104 is connected to the processor 1101 through the bus 1105.
[0277] The memory 1104 can be used to store at least one instruction, and the processor 1101 is configured to execute the at least one instruction to implement each step of the data transmission method mentioned in the above method embodiment.
[0278] In addition, the memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage device includes but is not limited to: magnetic disk or optical disk, electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, programmable read-only memory (PROM).
[0279] An embodiment of the present application also provides an electronic device, which includes a memory and a processor; at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the data transmission method as described above.
[0280] An embodiment of the present application further provides a data transmitter, which includes a memory and a processor; at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the data transmission method as described above.
[0281] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and the computer program is used to be executed by a processor to implement the data transmission method as described above.
[0282] An embodiment of the present application further provides a chip, which includes a programmable logic circuit and / or program instructions, and is used to implement the data transmission method as described above when an electronic device installed with the chip runs.
[0283] An embodiment of the present application further provides a computer program product, which includes computer instructions, the computer instructions are stored in a computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement the data transmission method as described above.
[0284] It should be understood that "a plurality of" mentioned herein refers to two or more. " / ", which describes the association relationship of associated objects, indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0285] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a magnetic disk or an optical disc, etc.
[0286] The above are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A data transmission method, characterized in that, The method is executed by an electronic device, and the method includes: Connecting to a data transmitter; Selecting a transmission channel according to the device information of the data transmitter, where the transmission channel includes one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel. The digital non-coding transmission channel is a transmission channel without an encoder, and the device information includes a device type and a chip interface type. Among them, when the device type is an analog device, the analog transmission channel is selected; when the device type is a digital device and the chip interface type is a first type of interface, the digital coding transmission channel is selected; when the device type is the digital device and the chip interface type is a second type of interface, the digital non-coding transmission channel is selected; Transmitting a data signal to the data transmitter according to the transmission channel, where the data signal is used to be sent to a data player through the data transmitter.
2. The method according to claim 1, wherein The method further includes: When being wired-connected to the data transmitter, identifying the device type of the inserted data transmitter according to an interface protocol, where the device type includes one of the digital device and the analog device.
3. The method according to claim 2, wherein The method further includes: When the device type is the digital device, powering the data transmitter and obtaining the chip interface type of the data transmitter.
4. The method according to claim 1, characterized in that, The first type of interface includes at least one of the following: Integrated Circuit Built-in Audio Bus I2S, Pulse Code Modulation PCM, Time Division Multiplexing TDM.
5. The method according to claim 1, characterized in that The second type of interface includes at least one of the following: Universal Serial Bus USB, Serial Low-Power Inter-Chip Media Bus SLIM bus, Sound wire, Serial Peripheral Interface SPI, Universal Asynchronous Receiver-Transmitter UART.
6. The method according to claim 2, wherein The method further includes: When the identification of the data transmitter according to the interface protocol fails, displaying a channel selection control; Determining the transmission channel according to a selection operation received on the channel selection control, where the transmission channel includes one of the analog transmission channel, the digital coding transmission channel, and the digital non-coding transmission channel.
7. The method according to claim 2, wherein The method further includes: When the identification of the data transmitter according to the interface protocol fails, displaying a bit width selection control; Determining a transmission bit width according to a selection operation received on the bit width selection control; Transmitting a data signal to the data transmitter according to the transmission bit width.
8. The method according to claim 1, characterized in that, The method further includes: When being wirelessly connected to the data transmitter, displaying a channel selection control; Determining the transmission channel according to a selection operation received on the channel selection control, where the transmission channel includes one of the analog transmission channel, the digital coding transmission channel, and the digital non-coding transmission channel.
9. The method according to claim 1, wherein The method further includes: When being wirelessly connected to the data transmitter, displaying a bit width selection control; Determining a transmission bit width according to a selection operation received on the bit width selection control; Transmitting a data signal to the data transmitter according to the transmission bit width.
10. The method according to any one of claims 1 to 9, characterized in that, The transmitting the data signal to the data transmitter according to the transmission channel includes: When the transmission channel is an analog transmission channel, an analog data signal is transmitted to the data transmitter. The analog data signal is used to perform analog-to-digital conversion and Bluetooth codec encoding through the data transmitter to obtain a first digital data signal, and the first digital data signal is used to be forwarded to the data player through the data transmitter.
11. The method according to any one of claims 1 to 9, characterized in that The transmitting of the data signal to the data transmitter according to the transmission channel includes: When the transmission channel is a digital coding transmission channel, a second digital data signal is transmitted to the data transmitter. The second digital data signal is used to perform Bluetooth codec encoding through the data transmitter to obtain a third digital data signal, and the third digital data signal is used to be forwarded to the data player through the data transmitter.
12. The method according to any one of claims 1 to 9, characterized in that, The transmitting of the data signal to the data transmitter according to the transmission channel includes: When the transmission channel is a digital non-coding transmission channel, a fourth digital data signal is encoded into a Bluetooth codec encoding format to obtain a fifth digital data signal; The fifth digital data signal is transmitted to the data transmitter, and the fifth digital data signal is used to be forwarded to the data player through the data transmitter.
13. A data transmitter, characterized in that, The data transmitter includes: A physical interface for connecting to an electronic device; A Bluetooth communication module for sending a data signal to a data player; A transmission channel, the first end of the transmission channel is connected to the physical interface, the second end of the transmission channel is connected to the Bluetooth communication module, and the transmission channel is used to transmit the data signal sent by the electronic device to the Bluetooth communication module; Wherein, the electronic device is used to select a transmission channel according to the device information of the data transmitter. The transmission channel includes one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel. The digital non-coding transmission channel is a transmission channel without an encoder. The device information includes a device type and a chip interface type. Wherein, when the device type is an analog device, the analog transmission channel is selected; when the device type is a digital device and the chip interface type is a first type of interface, the digital coding transmission channel is selected; when the device type is the digital device and the chip interface type is a second type of interface, the digital non-coding transmission channel is selected.
14. The data transmitter according to claim 13, wherein The transmission channel includes a first interface conversion module and a first encoder; The first end of the first interface conversion module is connected to the physical interface, and the second end of the first interface conversion module is connected to the first encoder; The first end of the first encoder is connected to the first interface conversion module, and the second end of the first encoder is connected to the Bluetooth communication module; The first interface conversion module is used to transmit the second digital data signal sent by the electronic device to the first encoder; The first encoder is used to encode the second digital data signal into a Bluetooth codec encoding format to obtain a third digital data signal; The Bluetooth communication module is configured to send the third digital data signal to the data player.
15. The data transmitter according to claim 14, wherein The physical interface includes a USB interface; the first interface conversion module is configured to convert the USB interface into at least one of the following interfaces: I2S, PCM, TDM.
16. The data transmitter according to claim 13, wherein The transmission channel includes a second interface conversion module; A first end of the second interface conversion module is connected to the physical interface, and a second end of the second interface conversion module is connected to the Bluetooth communication module; The second interface conversion module is configured to transmit the fifth digital data signal sent by the electronic device to the Bluetooth communication module; The Bluetooth communication module is configured to send the fifth digital data signal to the data player.
17. The data transmitter according to claim 16, characterized in that, The physical interface includes a USB interface; the second interface conversion module is configured to convert the USB interface into at least one of the following interfaces: USB, SLIM bus, Sound wire, SPI, UART.
18. A data transmission device, characterized in that, The apparatus includes: a connection module configured to connect to a data transmitter; a selection module configured to select a transmission channel according to device information of the data transmitter, where the transmission channel includes one of an analog transmission channel, a digital coding transmission channel, and a digital non-coding transmission channel, and the digital non-coding transmission channel is a transmission channel without an encoder, and the device information includes a device type and a chip interface type; wherein, when the device type is an analog device, the analog transmission channel is selected; when the device type is a digital device and the chip interface type is a first type of interface, the digital coding transmission channel is selected; and when the device type is the digital device and the chip interface type is a second type of interface, the digital non-coding transmission channel is selected; a transmission module configured to transmit a data signal to the data transmitter according to the transmission channel, where the data signal is used to be sent to a data player through the data transmitter.
19. An electronic device, characterized in that, The electronic device includes a memory and a processor; At least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the data transmission method according to any one of claims 1 to 12.
20. A computer-readable storage medium, characterized in that, A computer program is stored in the storage medium, and the computer program is used to be executed by a processor to implement the data transmission method according to any one of claims 1 to 12.
21. A chip, characterized in that, The chip includes a programmable logic circuit and / or program instructions, and is configured to implement the data transmission method according to any one of claims 1 to 12 when an electronic device installed with the chip runs.
22. A computer program product, characterized in that, The computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement the data transmission method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Voice interaction method, device and system
CN110895939A