Audio transmission method and apparatus, device, computer-readable storage medium, and vehicle
By sending configuration request information to the main control chip in new energy vehicles, obtaining audio data and converting the protocol, the problem of the main control chip lacking an I2S audio bus interface is solved, thereby reducing the cost of motor sound generation.
Patent Information
- Application Number
- PCT/CN2025/106057
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-30
- Filing Date
- 2025-06-30
- Publication Date
- 2026-03-05
AI Technical Summary
The lack of an I2S audio bus interface in the main control chip of new energy vehicles necessitates the use of expensive professional audio DSP signal processors to control the motor's sound output, resulting in high costs and insufficient utilization of functionality.
By sending a configuration request to the main control chip, the audio data of the audio data bus is obtained, and the target audio data is determined according to the first protocol. Then, it is sent to the main control chip through the second protocol, thus avoiding the use of a professional audio DSP signal processor.
This reduces the cost of controlling the sound produced by the vehicle's motor, avoiding the high cost of using expensive audio DSP signal processors and utilizing only a small portion of their functionality.
Smart Images

Figure CN2025106057_05032026_PF_FP_ABST
Abstract
Description
Audio transmission methods, apparatus, devices, computer-readable storage media, and vehicles
[0001] This application claims priority to Chinese Application No. 202411205711.2, filed on August 30, 2024, entitled "Audio Transmission Method, Apparatus, Device, Computer-Readable Storage Medium and Vehicle", the entire contents of which are incorporated herein by reference. Technical Field
[0002] The embodiments of this application relate to, but are not limited to, the field of audio transmission technology, and particularly relate to an audio transmission method, apparatus, device, computer-readable storage medium, and vehicle. Background Technology
[0003] With the rapid development of new energy vehicles, technological innovations are emerging one after another. The principle of using motors to generate sound is gradually being recognized and applied in new energy vehicles. However, the main control chip of new energy vehicles does not provide an I2S audio bus interface, so it is necessary to use other devices to receive audio data, process the sound effects, and make the motor produce sound.
[0004] Currently, professional audio DSP signal processors are typically used, enabling the main control chip of new energy vehicles to receive audio data, process sound effects, and make the motor produce sound. However, using professional audio DSP signal processors is expensive and only utilizes a small portion of the functions of the audio DSP signal processor, resulting in high costs for controlling the vehicle motor to produce sound. Technical solutions
[0005] This application provides an audio transmission method that can reduce the cost of controlling the sound output of a vehicle motor.
[0006] To achieve the above objectives, according to a first aspect of this application, an audio transmission method is provided, the method being applied to a vehicle, the method comprising:
[0007] A configuration request message is sent to the vehicle's main control chip to request configuration information from the main control chip; the configuration information includes a first protocol.
[0008] Acquire the audio data transmitted by the vehicle's audio data bus;
[0009] Target audio data is determined from the audio data according to the first protocol; and
[0010] The target audio data is sent to the main control chip via the second protocol.
[0011] According to a second aspect of this application, an audio transmission device is provided, the audio transmission device comprising:
[0012] A requester is used to send configuration request information to the vehicle's main control chip to request configuration information from the main control chip; the configuration information includes an audio channel and a first protocol;
[0013] A requester is used to send configuration request information to the vehicle's main control chip to request configuration information from the main control chip; the configuration information includes a first protocol;
[0014] Acquirer, used to acquire audio data transmitted by the vehicle's audio data bus;
[0015] Determiner, configured to determine target audio data from the audio data according to the first protocol;
[0016] A transmitter is used to send the target audio data to the main control chip via a second protocol.
[0017] According to a third aspect of this application, an electronic device is also provided, the electronic device including a processor and a memory, the memory storing computer instructions; when the computer instructions are executed by the processor, the processor performs the steps of the above-described audio transmission method.
[0018] According to a fourth aspect of this application, embodiments of this application also provide a computer-readable storage medium storing a plurality of computer instructions adapted for loading by a processor to perform the steps of any of the audio transmission methods provided in embodiments of this application.
[0019] According to a fifth aspect of this application, embodiments of this application also provide a computer instruction product, including computer instructions or computer commands, which, when executed by a processor, implement the steps in any of the audio transmission methods provided in embodiments of this application.
[0020] According to a sixth aspect of this application, a vehicle is also provided, the vehicle including an audio transmission device and / or electronic equipment.
[0021] The audio transmission method of this application embodiment sends configuration request information to the vehicle's main control chip to request configuration information from the main control chip; the configuration information includes a first protocol; it acquires audio data transmitted by the vehicle's audio data bus; it determines target audio data according to the audio data of the first protocol; and it sends the target audio data to the main control chip through a second protocol. This avoids the high cost of using a professional audio DSP signal processor and utilizes only a small portion of the audio DSP signal processor's functionality, thus reducing the cost of controlling the vehicle's motor sound output.
[0022] Other features and advantages of this application will be described in detail in the following detailed description section. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] To gain a more complete understanding of this application and its beneficial effects, the following description will be provided in conjunction with the accompanying drawings.
[0025] Figure 1 is a schematic flowchart of an embodiment of the audio transmission method provided in this application;
[0026] Figure 2 is a schematic flowchart of another embodiment of the audio transmission method provided in this application;
[0027] Figure 3 is a schematic flowchart of another embodiment of the audio transmission method provided in this application;
[0028] Figure 4 is a schematic diagram of the connection relationship between a main control chip, an audio data bus and a programmable logic device provided in this application.
[0029] Figure 5 is a schematic diagram of the structure of an audio transmission device provided in an embodiment of this application;
[0030] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0031] Implementation methods of this application
[0032] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the protection scope of this application.
[0033] This application provides an audio transmission method, apparatus, device, computer-readable storage medium, and vehicle.
[0034] The audio transmission method provided in this application can be applied to vehicles, such as gasoline vehicles, plug-in hybrid electric vehicles, or new energy vehicles, etc. This disclosure does not specifically limit the application.
[0035] The following is a detailed description in conjunction with the accompanying drawings. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the drawings.
[0036] Please refer to Figure 1, which presents a first embodiment of the audio transmission method. The audio transmission method of the first embodiment includes the following steps:
[0037] Step 101: Send a configuration request message to the vehicle's main control chip to request the configuration information of the main control chip; the configuration information includes a first protocol;
[0038] In this step, after the vehicle is powered on and the vehicle's main control chip is initialized, the vehicle sends a configuration request to the main control chip to request its configuration information; the configuration information includes a first protocol. The configuration information is determined by the main control chip based on the application's audio output requirements, and the first protocol characterizes which protocol types of audio data the application needs to be transmitted on the vehicle's audio data bus.
[0039] For example, when a car owner uses a music playback application on the vehicle's infotainment system, the music playback application sends configuration information to the main control chip, and the vehicle requests the configuration information from the main control chip.
[0040] Step 102: Obtain the audio data transmitted by the vehicle's audio data bus;
[0041] In this step, the vehicle acquires audio data sent by the vehicle's audio data bus. It should be noted that the vehicle acquires all audio data sent by the vehicle's audio data bus, which sends audio data including multiple protocols.
[0042] For example, the vehicle's audio data bus is an I2S protocol bus, wherein the protocol types for transmitting audio data include: standard I2S protocol, Left-Justified I2S, Right-Justified I2S, etc.
[0043] Step 103: Determine the target audio data from the audio data according to the first protocol;
[0044] In this step, after the vehicle acquires all the audio data transmitted by the vehicle's audio data bus, it retrieves the audio data corresponding to the first protocol from all the audio data according to the first protocol in the configuration information, and determines it as the target audio data. It is understood that, typically, the vehicle's audio data bus transmits audio data of multiple protocol types, and the vehicle can accurately retrieve the audio data corresponding to the first protocol transmitted by the vehicle's audio data bus according to the first protocol.
[0045] For example, the vehicle's audio data bus is an I2S protocol bus, wherein the transmission protocol types include: standard I2S protocol, Left-Justified I2S, Right-Justified I2S, etc. When the vehicle requests configuration information from the main control chip and determines that the first protocol is the standard I2S protocol, the corresponding standard I2S protocol audio data is obtained from the vehicle's audio data bus and determined as the target audio data.
[0046] Step 104: Send the target audio data to the main control chip via the second protocol.
[0047] In this step, after determining the target audio data, the vehicle sends the target audio data to the main control chip via the second protocol. It should be noted that the second protocol is a preset protocol type.
[0048] For example, the target audio data acquired by the vehicle is audio data in the standard I2S protocol, and the second protocol is the SPI protocol. The vehicle converts the target audio data from the standard I2S protocol to the SPI protocol, and then sends the converted target audio data to the main control chip.
[0049] In this embodiment, the vehicle sends a configuration request to the vehicle's main control chip to request configuration information from the main control chip. The configuration information includes a first protocol; acquiring audio data transmitted by the vehicle's audio data bus; determining target audio data from the audio data according to the first protocol; and sending the target audio data to the main control chip via a second protocol. This avoids the high cost of using a dedicated audio DSP signal processor and utilizes only a small portion of the audio DSP signal processor's functionality, thus reducing the cost of controlling the vehicle's motor sound output.
[0050] In one embodiment, acquiring the audio data transmitted by the vehicle's audio data bus includes:
[0051] Step 1021: Capture the falling edge of the synchronization frame signal in the audio data bus of the vehicle; the audio data bus transmits the synchronization frame signal and the audio signal, and the falling edge of the synchronization frame signal is used to indicate the start time of each audio channel in the audio signal;
[0052] In this step, the vehicle's audio data bus includes lines for transmitting synchronization frame signals and lines for transmitting audio signals. The vehicle captures the falling edge of the synchronization frame signal in the vehicle's audio data bus. The synchronization frame signal is a periodic signal that alternates between high and low levels. The start time of the low level of the falling edge of the synchronization frame signal indicates when data reception from the audio signal begins. The audio signal is also a periodic signal that alternates between high and low levels. A high level in the audio signal indicates the presence of an audio channel and the presence of audio data within that channel. Since the high and low levels of the synchronization frame signal and the audio signal occur at the same times, the falling edge of the synchronization frame signal can be used to indicate the start time of each audio channel in the audio signal.
[0053] Step 1022: Based on the falling edge of the synchronization frame signal, obtain the audio data corresponding to the audio signal;
[0054] In this step, the vehicle acquires the audio data set corresponding to the audio signal based on the falling edge of the synchronization frame signal. It can be understood that the synchronization frame signal is a periodic signal; each time the vehicle captures the falling edge of the synchronization frame signal, it can acquire the audio data corresponding to one audio channel in the audio signal. After the synchronization frame signal and the audio signal have finished transmitting, all the audio data carried in the audio signal can be obtained, resulting in the audio data set.
[0055] In this embodiment, the vehicle acquires the audio data set corresponding to the audio signal based on the falling edge of the synchronization frame signal. This ensures that the start time of the audio data time period in the audio signal can be accurately located. Acquiring audio data from the start time ensures the integrity of the acquired audio data. Then, according to the first protocol, the audio data corresponding to the first protocol is acquired from the audio data set. This allows the audio data that conforms to the configuration information of the main control chip to be accurately obtained from all the received audio data.
[0056] In one embodiment, the configuration information further includes audio channels and data bit width, and the step of determining the target audio data from the audio data according to the first protocol includes:
[0057] Step 1031: According to the first protocol, obtain the audio data corresponding to the first protocol from the audio data.
[0058] In this step, after the vehicle acquires all the audio data sent by the vehicle's audio data bus, it acquires the protocol type corresponding to each audio data in the audio data set, compares the protocol type corresponding to each audio data with the first protocol, and retrieves the audio data corresponding to the first protocol from the audio data.
[0059] Step 1032: Based on the audio channel, obtain the audio data corresponding to the audio channel from the audio data corresponding to the first protocol;
[0060] In this step, the vehicle retrieves audio data corresponding to the first protocol from the audio data according to the first protocol, and retrieves audio data corresponding to the audio channel in the audio data corresponding to the first protocol according to the audio channel in the configuration information; the audio channel is used to characterize which channels in the vehicle's audio data bus the application needs to transmit audio data. In one embodiment, the vehicle can retrieve the number of each audio channel contained in the audio data corresponding to the first protocol, as well as the number of the audio channel in the configuration information, and retrieve audio data in the audio data corresponding to the first protocol whose channel number is the same as the number of the audio channel in the configuration information.
[0061] For example, the audio data of the first protocol is transmitted using TDM32 technology, that is, the audio data of the first protocol contains 32 audio channels. The audio channels in the configuration information obtained by the vehicle are channel 2, channel 10, channel 18 and channel 26. At this time, the vehicle obtains the audio data in channel 2, channel 10, channel 18 and channel 26 in the corresponding audio data of the first protocol as the target audio data.
[0062] Step 1033: Based on the data bit width, extract the audio data corresponding to the data bit width from the audio data corresponding to the audio channel to obtain the target audio data.
[0063] In this step, after acquiring the audio data corresponding to the audio channel, the vehicle extracts audio data of the corresponding data bit width from the audio data of the corresponding audio channel and determines it as the target audio data.
[0064] In this embodiment, the vehicle obtains audio data corresponding to the first protocol from the audio data according to the first protocol; according to the audio channel, it obtains audio data corresponding to the audio channel from the audio data corresponding to the first protocol; and according to the data bit width, it extracts audio data of the corresponding data bit width from the audio data of the corresponding audio channel to obtain the target audio data. The target audio data can be determined according to the first protocol, audio channel, and data bit width required by the main control chip to ensure that the audio quality required by the main control chip is achieved after the target audio data is sent to the main control chip.
[0065] In one embodiment, the configuration information further includes a communication baud rate, and the step of sending the target audio data to the main control chip via a second protocol includes:
[0066] Step 1041: Based on the audio transmission clock signal, the target audio data is converted into an audio signal through the second protocol and sent to the main control chip. The audio transmission clock signal is generated according to the communication baud rate.
[0067] In this step, after requesting configuration information from the main control chip, the vehicle receives configuration information including the communication baud rate. Based on this baud rate, the vehicle generates an audio transmission clock signal. It's understood that baud rate is a unit used to measure data transmission rate, representing the number of symbols or bits transmitted per second. In serial communication, the baud rate determines the number of data changes per clock cycle. For example, a baud rate of 9600 means 9600 symbols or bits will be transmitted per second. The clock signal is a periodic signal used to synchronize the timing of data transmission; it determines the sampling time of each data bit and the data transmission rate. In digital communication, the clock signal ensures that the transmitting and receiving ends parse data at the same frequency and timing. Although baud rate and clock signal are not directly correlated, the baud rate can affect the selection and generation of the clock signal: the baud rate determines the data transmission rate, therefore a sufficiently high clock frequency needs to be selected to support the required baud rate. For example, for high-baud-rate serial communication, a high-frequency clock signal is required to ensure the accuracy and stability of data transmission. In practical communication systems, the frequency of the clock signal is usually selected and generated based on the baud rate. The baud rate determines the number of bits transmitted per second, and the clock signal frequency must be high enough to ensure sampling and transmission at the appropriate time between each data bit.
[0068] After determining the audio transmission clock signal, the vehicle converts the target audio data into an audio signal through the second protocol, and sends the converted audio signal to the main control chip based on the audio transmission clock signal.
[0069] In one embodiment, step 1041 includes:
[0070] Step 10411: Based on the audio transmission clock signal and the audio transmission sequence, the target audio data is converted into an audio signal through the second protocol and sent to the main control chip. The audio transmission sequence is obtained by sorting the target audio data according to the audio channel number corresponding to the target audio data.
[0071] In this step, the target audio data determined by the vehicle typically includes audio data from multiple audio channels. The vehicle then obtains the audio channel number corresponding to each target audio data point and sorts the target audio data in ascending order of the channel number to determine the audio transmission sequence. Based on the audio transmission clock signal and the audio transmission sequence, the vehicle converts the target audio data into audio signals using a second protocol and sends them to the main control chip. For example, if the target audio data includes audio data with channel numbers 2, 10, 18, and 26, when the vehicle detects that the audio transmission clock signal has reached a high level, it first converts the audio data with channel number 2 into an audio signal using the second protocol and sends it to the main control chip. When the audio transmission clock signal reaches the next high level, it converts the audio data with channel number 10 into an audio signal using the second protocol and sends it to the main control chip, and so on, until the audio data with channel numbers 18 and 26 have been converted into audio signals using the second protocol and sent to the main control chip, at which point transmission stops.
[0072] In this embodiment, the vehicle generates an audio transmission clock signal according to the communication baud rate required by the main control chip. Based on the audio transmission clock signal, the target audio data is converted into an audio signal via a second protocol and sent to the main control chip. This ensures that the audio signal is transmitted correctly and stably, avoiding transmission errors.
[0073] In one embodiment, referring to FIG2, a second embodiment of this application is proposed. The difference between the second embodiment and the first embodiment is that, before sending configuration request information to the vehicle's main control chip to request the configuration information of the main control chip, the following steps are included:
[0074] Step a: If an initialization completion message is received from the vehicle's main control chip, then the following step is executed: Send a configuration request message to the vehicle's main control chip to request the configuration information of the main control chip.
[0075] In this step, before sending a configuration request to the vehicle's main control chip to request configuration information, the vehicle first checks whether it has received an initialization completion message from the main control chip. It should be noted that after the vehicle is powered on, the main control chip needs to initialize, and then it will provide an initialization completion message.
[0076] If the vehicle receives an initialization completion message from the vehicle's main control chip, it sends a configuration request message to the main control chip to request the chip's configuration information.
[0077] If the vehicle does not receive the initialization completion information from the vehicle's main control chip, it will continue to receive the initialization completion information until the vehicle receives the initialization completion information from the vehicle's main control chip. Then, it will send a configuration request information to the vehicle's main control chip to request the configuration information from the main control chip.
[0078] In this embodiment, the vehicle detects whether it has received initialization completion information from the vehicle's main control chip. If it does receive initialization completion information from the vehicle's main control chip, it sends a configuration request to the main control chip to request its configuration information. By sending the configuration request information to the main control chip only after confirming that the main control chip has completed initialization, the vehicle avoids blindly sending the configuration request information before the main control chip has completed initialization, thus saving communication resources.
[0079] In one embodiment, referring to FIG3, a third embodiment of this application is proposed. The difference between the third embodiment and the first and second embodiments is that, before sending the target audio data to the main control chip via the second protocol, the following steps are included:
[0080] Step b: If it is determined that the configuration information includes a target protocol, then the target audio data is sent to the main control chip through the target protocol; the target protocol is the protocol type specified by the main control chip for sending the target audio data.
[0081] Step c: If it is determined that the configuration information does not include the target protocol, then the following step is executed: send the target audio data to the main control chip through the second protocol.
[0082] In steps b to c, the configuration information of the main control chip may also include a target protocol, which is the protocol type specified by the main control chip for sending target audio data. After the vehicle sends a configuration request to the vehicle's main control chip, it checks whether the received configuration information of the main control chip includes the target protocol.
[0083] If the vehicle configuration information includes a target protocol, it means that the main control chip has specified the protocol. At this time, the vehicle will send the target audio data to the main control chip through the target protocol.
[0084] If the vehicle's configuration information does not include the target protocol, it means that the main control chip has not specified a protocol. In this case, the vehicle will send the target audio data to the main control chip through the preset second protocol.
[0085] In this embodiment, the vehicle detection configuration information includes a target protocol. If the configuration information includes a target protocol, the target audio data is sent to the main control chip via the target protocol. If the configuration information does not include a target protocol, the following step is executed: the target audio data is sent to the main control chip via a second protocol. This allows audio transmission to be applicable to more protocol types, improving the practicality of audio transmission.
[0086] In a feasible implementation, referring to Figure 4, a programmable logic device (CPLD) is pre-set between the main control chip (MCU) and the audio data bus (I2S bus) in the vehicle. This programmable logic device can execute specific audio transmission methods.
[0087] The step of sending configuration request information to the vehicle's main control chip to request the configuration information of the main control chip includes:
[0088] The programmable logic device sends a configuration request to the vehicle's main control chip to request the main control chip's configuration information.
[0089] The step of sending the target audio data to the main control chip via the second protocol includes:
[0090] The target audio data is sent to the main control chip via a second protocol using the programmable logic device.
[0091] As shown in Figure 4, the transmission between the audio data bus (I2S bus) and the programmable logic device (CPLD) includes three types of signals: BCLK (bit clock signal), SDATA (audio data signal), and WS (synchronization frame signal). The transmission between the master control chip (MCU) and the CPLD includes five types of signals: READY (master control chip initialization complete signal), CLK (SPI clock signal), MOSI (master-slave input / output signal), CS (target audio data signal), and MISO (master-slave output / output signal).
[0092] In actual execution, the programmable logic device receives audio signals via the I2S protocol of the audio data bus, and sends audio signals via the SPI protocol to the MCU.
[0093] When the vehicle is powered on, the main control chip will send a READY signal with a high level after completing initialization;
[0094] When the programmable logic device (PLD) detects a high level READY signal, it communicates with the MCU using the default communication baud rate to obtain the MCU's request information. This request information includes the communication baud rate, audio channel, data bit width, and I2S protocol type requested by the main control chip. After obtaining the request information, the PLD synchronizes with the audio data bus and receives audio data from all channels. Based on the audio channel, data bit width, and I2S protocol type requested by the main control chip, it extracts the target audio data from all the audio data and sends it to the main control chip via the SPI protocol.
[0095] In one embodiment, to obtain the MCU's request information, the CPLD sends a read command code 0x01 to the MCU, and the MCU, according to the protocol, implements the corresponding slave program to send the required communication baud rate to the CPLD; the CPLD sends a read command code 0x02 to the MCU, and the MCU, according to the protocol, implements the corresponding slave program to send the required I2S audio channel to the CPLD; the CPLD sends a read command code 0x03, and the MCU, according to the protocol, implements the corresponding slave program to send the required data bit width to the CPLD; the CPLD sends a read command code 0x04, and the MCU, according to the protocol, implements the corresponding slave program to send the required I2S protocol type to the CPLD.
[0096] In one embodiment, the programmable logic device captures the falling edge of the synchronization frame signal in the audio data bus, obtains the corresponding audio data set in the audio data bus based on the falling edge of the synchronization frame signal, and obtains the corresponding audio data from the audio data set according to the type of I2S protocol required by the MCU.
[0097] In one embodiment, the programmable logic device determines the target audio channel from all audio channels corresponding to the audio data according to the audio channel required by the MCU; and extracts the audio data with the corresponding data bit width from the target audio channel according to the data bit width required by the MCU to obtain the target audio data.
[0098] In one embodiment, the programmable logic device generates an SPI clock signal according to the communication baud rate required by the MCU; based on the SPI clock signal, the target audio data is converted into an audio signal via the SPI protocol and sent to the main control chip.
[0099] Accordingly, referring to Figure 5, this application embodiment also provides an audio transmission device, the audio transmission device comprising:
[0100] The requester 1001 is used to send configuration request information to the vehicle's main control chip to request configuration information of the main control chip; the configuration information includes a first protocol;
[0101] Acquirer 1002 is used to acquire audio data transmitted by the vehicle's audio data bus;
[0102] Determiner 1003 is configured to determine target audio data from the audio data according to the first protocol;
[0103] Transmitter 1004 is used to send the target audio data to the main control chip via a second protocol.
[0104] In one embodiment, the acquirer is further configured to:
[0105] The falling edge of a synchronization frame signal in the vehicle's audio data bus is captured; the audio data bus transmits a synchronization frame signal and an audio signal, the falling edge of which is used to indicate the start time of each audio channel in the audio signal.
[0106] Based on the falling edge of the synchronization frame signal, the audio data corresponding to the audio signal is obtained.
[0107] In one embodiment, the determiner is further configured to:
[0108] According to the first protocol, obtain the audio data corresponding to the first protocol from the audio data;
[0109] Based on the audio channel, obtain the audio data corresponding to the audio channel from the audio data corresponding to the first protocol;
[0110] Based on the data bit width, audio data corresponding to the data bit width is extracted from the audio data corresponding to the audio channel to obtain the target audio data.
[0111] In one embodiment, the transmitter is further configured to:
[0112] Based on the audio transmission clock signal, the target audio data is converted into an audio signal through a second protocol and sent to the main control chip. The audio transmission clock signal is generated according to the communication baud rate.
[0113] In one embodiment, the transmitter is further configured to:
[0114] Based on the audio transmission clock signal and the audio transmission sequence, the target audio data is converted into an audio signal through the second protocol and sent to the main control chip. The audio transmission sequence is obtained by sorting the target audio data according to the audio channel number corresponding to the target audio data.
[0115] In one embodiment, the audio transmission device further includes a receiver, the receiver being used for:
[0116] If an initialization completion message is received from the vehicle's main control chip, the following steps are executed: send a configuration request message to the vehicle's main control chip to request the configuration information of the main control chip.
[0117] In one embodiment, the receiver is further configured to:
[0118] If it is determined that the configuration information includes a target protocol, then the target audio data is sent to the main control chip via the target protocol; the target protocol is the protocol type specified by the main control chip for sending the target audio data.
[0119] If it is determined that the configuration information does not include the target protocol, then the following step is performed: send the target audio data to the main control chip through the second protocol.
[0120] This embodiment sends a configuration request to the vehicle's main control chip to request its configuration information. The configuration information includes a first protocol; it acquires audio data transmitted from the vehicle's audio data bus; it determines target audio data from the audio data according to the first protocol; and it sends the target audio data to the main control chip via a second protocol. This avoids the high cost of using a dedicated audio DSP signal processor and utilizes only a small portion of the audio DSP signal processor's functionality, thus reducing the cost of controlling the vehicle's motor sound output.
[0121] Accordingly, this application also provides an electronic device disposed in a vehicle, as shown in FIG6, which is a schematic diagram of the structure of the electronic device provided in this application embodiment. The electronic device 1100 includes a processor 1101 with one or more processing cores, a memory 1102 with one or more computer-readable storage media, and computer instructions stored in the memory 1102 and executable on the processor. The processor 1101 and the memory 1102 are electrically connected. Those skilled in the art will understand that the vehicle structure shown in the figures does not constitute a limitation on the vehicle and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0122] The processor 1101 is the control center of the electronic device 1100. It connects various parts of the electronic device 1100 via various interfaces and lines. By running or loading software programs and / or processors stored in the memory 1102, and by calling data stored in the memory 1102, it executes various functions of the electronic device 1100 and processes data, thereby providing overall monitoring of the electronic device 1100. The processor 1101 can be a CPU, GPU, network processor (NP), etc., and can implement or execute the methods, steps, and logic diagrams disclosed in the embodiments of this application.
[0123] In this embodiment of the application, the processor 1101 in the electronic device 1100 loads the computer instructions corresponding to the processes of one or more applications into the memory 1102 according to the following steps, and the processor 1101 runs the applications stored in the memory 1102 to execute the audio transmission method.
[0124] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0125] Optionally, as shown in Figure 6, the electronic device 1100 further includes: a touch screen display 1103, a radio frequency circuit 1104, an audio circuit 1105, an input device 1106, and a power supply 1107. The processor 1101 is electrically connected to the touch screen display 1103, the radio frequency circuit 1104, the audio circuit 1105, the input device 1106, and the power supply 1107. Those skilled in the art will understand that the vehicle structure shown in Figure 6 does not constitute a limitation on the vehicle and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0126] The touch display screen 1103 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 1103 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the vehicle. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 1101. It can also receive and execute commands from the processor 1101. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 1101 to determine the type of touch event. Subsequently, the processor 1101 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 1103 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 1103 can be used as two independent components to achieve input and output functions. That is, the touch display screen 1103 can also be used as part of the input device 1106 to achieve input functions.
[0127] The radio frequency circuit 1104 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other vehicles, and to transmit and receive signals with network devices or other vehicles.
[0128] Audio circuit 1105 can be used to provide an audio interface between the user and the vehicle via a speaker and a microphone. Audio circuit 1105 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 1105, converted back into audio data, and processed by processor 1101 before being transmitted via radio frequency circuit 1104 to, for example, another vehicle, or output to memory 1102 for further processing. Audio circuit 1105 may also include an earphone jack to provide communication between external headphones and the vehicle.
[0129] The input device 1106 can be used to receive input numbers, character information or user characteristic information (such as fingerprints, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0130] Power supply 1107 is used to supply power to various components of electronic device 1100. Optionally, power supply 1107 can be logically connected to processor 1101 through a power management device, thereby enabling functions such as charging, discharging, and power consumption management through the power management device. Power supply 1107 may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0131] Although not shown in Figure 6, the electronic device 1100 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.
[0132] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0133] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by computer instructions, or by controlling related hardware with computer instructions. The computer instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0134] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0135] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0136] The embodiments, implementation methods, and related technical features of this application can be combined and substituted for each other without conflict.
[0137] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although the descriptions of each embodiment have different focuses, and the parts not described in detail in a certain embodiment can be referred to the relevant equivalent embodiments in other embodiments, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of this application without departing from the content of the technical solution of this application shall still fall within the scope of the technical solution of this application.
Claims
1. An audio transmission method, wherein, The method is applied to a vehicle, and the method includes: A configuration request message is sent to the vehicle's main control chip to request configuration information from the main control chip; the configuration information includes a first protocol. Acquire the audio data transmitted by the vehicle's audio data bus; Target audio data is determined from the audio data according to the first protocol; and The target audio data is sent to the main control chip via the second protocol.
2. The audio transmission method according to claim 1, wherein, The acquisition of audio data transmitted by the vehicle's audio data bus includes: Capture the falling edge of the synchronization frame signal in the vehicle's audio data bus; The audio data bus transmits synchronization frame signals and audio signals; The falling edge of the synchronization frame signal is used to indicate the start time of each audio channel in the audio signal; and Based on the falling edge of the synchronization frame signal, the audio data corresponding to the audio signal is obtained.
3. The audio transmission method according to claim 1, wherein, The configuration information also includes audio channels and data bit width, and the step of determining the target audio data from the audio data according to the first protocol includes: According to the first protocol, obtain the audio data corresponding to the first protocol from the audio data; Based on the audio channel, obtain the audio data corresponding to the audio channel from the audio data corresponding to the first protocol; and Based on the data bit width, audio data corresponding to the data bit width is extracted from the audio data corresponding to the audio channel to obtain the target audio data.
4. The audio transmission method according to claim 1, wherein, The configuration information also includes a communication baud rate, and the step of sending the target audio data to the main control chip via a second protocol includes: Based on the audio transmission clock signal, the target audio data is converted into an audio signal through a second protocol and sent to the main control chip. The audio transmission clock signal is generated according to the communication baud rate.
5. The audio transmission method according to claim 4, wherein, The step of converting the target audio data into an audio signal and sending it to the main control chip via a second protocol based on the audio transmission clock signal includes: Based on the audio transmission clock signal and audio transmission sequence, the target audio data is converted into an audio signal through the second protocol and sent to the main control chip; The audio transmission sequence is obtained by sorting the target audio data according to the audio channel number corresponding to the target audio data.
6. The audio transmission method according to claim 1, wherein, Before sending a configuration request to the vehicle's main control chip to request the chip's configuration information, the process includes: In response to receiving initialization completion information from the vehicle's main control chip, the following steps are performed: sending configuration request information to the vehicle's main control chip to request configuration information from the main control chip.
7. The audio transmission method according to any one of claims 1-6, wherein, Before sending the target audio data to the main control chip via the second protocol, the following steps are included: In response to determining that the configuration information includes a target protocol, the target audio data is sent to the main control chip via the target protocol; the target protocol is a protocol type specified by the main control chip for sending target audio data; and In response to determining that the configuration information does not include the target protocol, the following steps are performed: the target audio data is sent to the main control chip via the second protocol.
8. The audio transmission method according to any one of claims 1-7, wherein, The vehicle includes programmable logic devices, and the step of sending configuration request information to the vehicle's main control chip to request configuration information from the main control chip includes: The programmable logic device sends a configuration request to the vehicle's main control chip to request configuration information from the main control chip; and The step of sending the target audio data to the main control chip via the second protocol includes: The target audio data is sent to the main control chip via a second protocol using the programmable logic device.
9. An audio transmission device, wherein, The audio transmission device includes: A requester is used to send configuration request information to the vehicle's main control chip to request configuration information from the main control chip; the configuration information includes a first protocol; Acquirer, used to acquire audio data transmitted by the vehicle's audio data bus; A determiner is configured to determine target audio data from the audio data according to the first protocol; and A transmitter is used to send the target audio data to the main control chip via a second protocol.
10. An electronic device, wherein, It includes a processor and a memory, the memory storing computer instructions; when the computer instructions are executed by the processor, the processor causes the processor to perform the steps of any of the methods described in claims 1-8.
11. A computer-readable storage medium applicable to the method of claim 1, wherein, The computer-readable storage medium stores a plurality of computer instructions adapted for loading by a processor to perform the steps of the method as described in any one of claims 1-8.
12. A vehicle used in the method of claim 1, wherein, The vehicle includes: the audio transmission device as claimed in claim 9, and / or the electronic device as claimed in claim 10.
Citation Information
Patent Citations
Audio output device
CN104615403A
Sound production method and device of automobile motor, storage medium and automobile motor
CN115158032A
In-vehicle audio processing method and system, electronic equipment and storage medium
CN115278462A
Audio playing method and system and vehicle
CN118544976A
Audio transmission method, device and equipment, computer readable storage medium and vehicle
CN118733512A