Audio transmission method, device and equipment, computer readable storage medium and vehicle

By sending configuration request information to the main control chip in new energy vehicles to obtain and process audio data, it solves the problem of the main control chip lacking an I2S audio bus interface, reduces costs and avoids dependence on professional audio DSP signal processors.

CN118733512APending Publication Date: 2024-10-01BYD CO LTD

Patent Information

Application Number
CN202411205711.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The main control chip of new energy vehicles lacks an I2S audio bus interface, which requires the use of a professional audio DSP signal processor for sound processing, which increases the cost and only utilizes a small part of its functions.

Method used

By sending configuration request information to the vehicle's main control chip, the audio data of the audio data bus is obtained, and the target audio data is determined according to the configuration protocol, and is sent to the main control chip using the second protocol to avoid the use of a professional audio DSP signal processor. .

Benefits of technology

It reduces the cost of controlling vehicle motor sound and avoids the use of expensive audio DSP signal processors while only utilizing a small part of its functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733512A_ABST
    Figure CN118733512A_ABST
Patent Text Reader

Abstract

The invention relates to an audio transmission method, device and equipment, a computer readable storage medium and a vehicle, and the method is applied to the vehicle, and comprises the steps: sending configuration request information to a main control chip of the vehicle, so as to request the configuration information of the main control chip; the configuration information comprises a first protocol; acquiring audio data sent by an audio data bus of the vehicle; determining target audio data from the audio data according to a first protocol; and sending the target audio data to the main control chip through a second protocol. The high cost caused by using a professional audio DSP signal processor is avoided, and only a small part of functions of the audio DSP signal processor are utilized, so that the cost for controlling the sound production of the vehicle motor is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of audio transmission, and in particular to an audio transmission method, apparatus, device, computer-readable storage medium and vehicle. Background Art

[0002] With the increasing development of new energy vehicles, technological innovations emerge in an endless stream. The principle of using motors to make sounds has gradually been recognized and applied to new energy vehicles. However, the main control chip of new energy vehicles does not provide an I2S audio bus interface, so other devices are needed to receive audio data for sound processing and make the motors make sounds.

[0003] Currently, professional audio DSP signal processors are usually used so that the main control chip of new energy vehicles can receive audio data for sound processing and make the motor sound. However, the use of professional audio DSP signal processors is expensive and only a small part of the functions of the audio DSP signal processor is utilized, resulting in a high cost for controlling the sound of the vehicle motor. Summary of the invention

[0004] The embodiment of the present application provides an audio transmission method, which can reduce the cost of controlling the sound of a vehicle motor to solve the above-mentioned technical problems.

[0005] In order to achieve the above object, according to a first aspect of the present application, there is provided an audio transmission method, which is applied to a vehicle and comprises: Sending configuration request information to a main control chip of a vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; Acquiring audio data sent by an audio data bus of the vehicle; determining target audio data from the audio data according to the first protocol; The target audio data is sent to the main control chip through a second protocol.

[0006] Optionally, the obtaining the audio data sent by the audio data bus of the vehicle includes: Capturing the falling edge of a synchronization frame signal in an audio data bus of the vehicle; the synchronization frame signal and the audio signal are transmitted in the audio data bus, and the falling edge of the synchronization frame signal is used to indicate the starting time of each audio channel in the audio signal; Based on the falling edge of the synchronization frame signal, audio data corresponding to the audio signal is acquired.

[0007] Optionally, the configuration information further includes an audio channel and a data bit width, and determining target audio data from the audio data according to the first protocol includes: According to the first protocol, audio data corresponding to the first protocol is obtained from the audio data According to the audio channel, acquiring audio data corresponding to the audio channel from the audio data corresponding to the first protocol; According to 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 target audio data.

[0008] Optionally, the configuration information also includes a communication baud rate, and the sending of the target audio data to the main control chip through the 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, and the audio transmission clock signal is generated according to the communication baud rate.

[0009] Optionally, based on the audio transmission clock signal, converting the target audio data into an audio signal through a second protocol and sending it to the main control chip includes: Based on the audio transmission clock signal and the audio transmission sequence, the target audio data is converted into an audio signal through a 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 numbers corresponding to the target audio data.

[0010] Optionally, before sending configuration request information to the main control chip of the vehicle to request configuration information of the main control chip, the method includes: If the initialization completion information sent by the main control chip of the vehicle is received, the step of sending configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip is executed.

[0011] Optionally, before sending the target audio data to the main control chip through the second protocol, the method includes: If it is determined that the configuration information includes a target protocol, the target audio data is sent to the main control chip through the target protocol; the target protocol is a protocol type specified by the main control chip for sending the target audio data; If it is determined that the configuration information does not include the target protocol, the step of sending the target audio data to the main control chip through the second protocol is executed.

[0012] According to a second aspect of the present application, an audio transmission device is provided, the audio transmission device comprising: A request unit, configured to send configuration request information to a main control chip of a vehicle to request configuration information of the main control chip; the configuration information includes an audio channel and a first protocol; A request unit, configured to send configuration request information to a main control chip of a vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; an acquisition unit, configured to acquire audio data sent by an audio data bus of the vehicle; a determining unit, configured to determine target audio data from the audio data according to the first protocol; The sending unit is used to send the target audio data to the main control chip through a second protocol.

[0013] According to a third aspect of the present application, an electronic device is also provided, the electronic device comprising a processor and a memory, the memory storing a computer program; when the computer program is executed by the processor, the processor executes the steps of the above-mentioned audio transmission method.

[0014] According to the fourth aspect of the present application, an embodiment of the present application also provides a computer-readable storage medium, which stores multiple computer programs. The computer programs are suitable for loading by a processor to execute the steps of any audio transmission method provided in the embodiment of the present application.

[0015] According to the fifth aspect of the present application, an embodiment of the present application also provides a computer program product, including a computer program or a computer program, which implements the steps of any audio transmission method provided in the embodiment of the present application when the computer program or the computer program is executed by a processor.

[0016] According to a sixth aspect of the present application, a vehicle is also provided, the vehicle including an audio transmission device and / or an electronic device.

[0017] The audio transmission method of the embodiment of the present application sends configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip; the configuration information includes a first protocol; the audio data sent by the audio data bus of the vehicle is obtained; the target audio data is determined according to the first protocol audio data; the target audio data is sent to the main control chip through the second protocol. The expensive cost of using a professional audio DSP signal processor is avoided, and only a small part of the functions of the audio DSP signal processor is used, thereby reducing the cost of controlling the sound of the vehicle motor.

[0018] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0019] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings.

[0020] Figure 1 This is a schematic diagram of the first embodiment of the audio transmission method provided by the present application; Figure 2 It is a flowchart of a second embodiment of the audio transmission method provided by the present application; Figure 3 It is a schematic diagram of the flow chart of the third embodiment of the audio transmission method provided by the present application; Figure 4 It is a schematic diagram of the connection relationship between a main control chip, an audio data bus and an editable logic device provided by the present application; Figure 5 is a structural schematic diagram of an audio transmission device provided in an embodiment of the present application; Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0022] Embodiments of the present application provide an audio transmission method, apparatus, device, computer-readable storage medium, and vehicle.

[0023] The audio transmission method provided in the embodiment of the present application can be applied to a vehicle, which may be a fuel vehicle, a plug-in hybrid vehicle, a new energy vehicle, etc., and the present disclosure does not make any specific limitations on this.

[0024] The following is a detailed description of the embodiments in conjunction with the accompanying drawings. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.

[0025] Please refer to Figure 1 , a first embodiment of the audio transmission method is proposed, and the audio transmission method of the first embodiment includes the following steps: Step 101, sending configuration request information to a main control chip of a vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; In this step, after the vehicle is powered on and the main control chip of the vehicle is initialized, the vehicle sends configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip; the configuration information includes a first protocol. The configuration information is determined by the main control chip according to the audio sounding requirements of the application, and the first protocol is used to characterize which protocol types of audio data the application needs to transmit in the audio data bus of the vehicle.

[0026] For example, when a car owner uses a music player application on the vehicle's computer, the music player application sends configuration information to the main control chip, and the vehicle requests the configuration information from the main control chip.

[0027] Step 102, obtaining audio data sent by the audio data bus of the vehicle; In this step, the vehicle obtains audio data sent by the audio data bus of the vehicle. It should be noted that the vehicle will obtain all audio data sent by the audio data bus of the vehicle, and the audio data bus will send audio data including multiple protocols.

[0028] Exemplarily, the audio data bus of the vehicle is an I2S protocol bus, wherein the protocol types of the transmitted audio data include: standard I2S protocol, Left-Justified I2S (left-justified I2S protocol), Right-Justified I2S (right-justified I2S protocol), etc.

[0029] Step 103, determining target audio data from the audio data according to the first protocol; In this step, after the vehicle obtains all the audio data sent by the audio data bus of the vehicle, the vehicle obtains 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 understandable that, usually, the audio data of multiple protocol types will be transmitted in the audio data bus of the vehicle, and the vehicle can accurately obtain the audio data corresponding to the first protocol sent by the audio data bus of the vehicle according to the first protocol.

[0030] Exemplarily, the vehicle's audio data bus is an I2S protocol bus, where the transmitted protocol types include: standard I2S protocol, Left-Justified I2S (left-aligned I2S protocol), Right-Justified I2S (right-aligned I2S protocol), etc. When the vehicle requests the configuration information of the main control chip and determines that the first protocol is the standard I2S protocol, the audio data corresponding to the standard I2S protocol is obtained in the vehicle's audio data bus and determined as the target audio data.

[0031] Step 104: Send the target audio data to the main control chip via a second protocol.

[0032] In this step, after determining the target audio data, the vehicle sends the target audio data to the main control chip through the second protocol. It should be noted that the second protocol is a preset protocol type.

[0033] Exemplarily, the target audio data acquired by the vehicle is audio data of 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.

[0034] The vehicle of this embodiment sends configuration request information to the main control chip of the vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; the audio data sent by the audio data bus of the vehicle is obtained; the target audio data is determined from the audio data according to the first protocol; the target audio data is sent to the main control chip through the second protocol. The expensive cost of using a professional audio DSP signal processor is avoided, and only a small part of the functions of the audio DSP signal processor is used, thereby reducing the cost of controlling the sound of the vehicle motor.

[0035] In one embodiment, the step of obtaining the audio data sent by the audio data bus of the vehicle includes: Step 1021, capturing the falling edge of a synchronization frame signal in an audio data bus of the vehicle; the audio data bus transmits a synchronization frame signal and an audio signal, and the falling edge of the synchronization frame signal is used to indicate the starting time of each audio channel in the audio signal; In this step, the audio data bus of the vehicle includes a line for transmitting a synchronization frame signal and a line for transmitting an audio signal, and the vehicle captures the falling edge of the synchronization frame signal in the audio data bus of the vehicle. The synchronization frame signal is a periodic signal with alternating high and low levels, and the starting time of the low level of the falling edge of the synchronization frame signal is used to indicate when to start receiving the data in the audio signal; the audio signal is also a periodic signal with alternating high and low levels, and the high level of the audio signal indicates that there is an audio channel in the signal and there is audio data in the audio channel. The high and low levels of the synchronization frame signal and the audio signal appear at the same time, so the falling edge of the synchronization frame signal can be used to indicate the starting time of each audio channel in the audio signal.

[0036] Step 1022, based on the falling edge of the synchronization frame signal, obtaining audio data corresponding to the audio signal; In this step, the vehicle obtains 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, and each time the vehicle captures the falling edge of the synchronization frame signal, it can obtain the audio data corresponding to an audio channel in the audio signal. After the synchronization frame signal and the audio signal are transmitted, all the audio data carried in the audio signal can be obtained to obtain the audio data set.

[0037] The vehicle of this embodiment obtains the audio data set corresponding to the audio signal based on the falling edge of the synchronization frame signal, which can ensure that the starting time of the time period in which the audio data exists in the audio signal can be accurately located, and the audio data is obtained from the starting time, which can ensure the integrity of the obtained audio data; then, according to the first protocol, the audio data corresponding to the first protocol is obtained from the audio data set, so that the audio data that conforms to the configuration information of the main control chip can be accurately obtained from all the received audio data.

[0038] In one embodiment, the configuration information further includes an audio channel and a data bit width, and the determining target audio data from the audio data according to the first protocol includes: Step 1031: According to the first protocol, obtain audio data corresponding to the first protocol from the audio data.

[0039] In this step, after the vehicle obtains all audio data sent by the vehicle's audio data bus, it obtains the protocol type corresponding to each audio data in the audio data set, and compares the protocol type corresponding to each audio data with the first protocol, and obtains audio data corresponding to the first protocol from the audio data.

[0040] Step 1032: acquiring audio data corresponding to the audio channel from audio data corresponding to the first protocol according to the audio channel; In this step, the vehicle obtains audio data corresponding to the first protocol from the audio data according to the first protocol, and obtains 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 indicate which channels in the audio data bus of the vehicle the application needs to transmit audio data. Specifically, the vehicle can obtain the number of each audio channel contained in the audio data corresponding to the first protocol and the number of the audio channel in the configuration information, and obtain the audio data having the same channel number as the number of the audio channel in the configuration information in the audio data corresponding to the first protocol.

[0041] Exemplarily, 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, and 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 audio data corresponding to the first protocol as the target audio data.

[0042] Step 1033: extract audio data corresponding to the data bit width from the audio data corresponding to the audio channel according to the data bit width to obtain target audio data.

[0043] In this step, after acquiring the audio data corresponding to the audio channel, the vehicle intercepts the audio data of the corresponding data bit width from the audio data corresponding to the audio channel according to the data bit width, and determines it as the target audio data.

[0044] The vehicle of this embodiment obtains audio data corresponding to the first protocol from audio data according to the first protocol; obtains audio data corresponding to the audio channel from audio data corresponding to the first protocol according to the audio channel; extracts audio data corresponding to the data bit width from audio data corresponding to the audio channel according to the data bit width to obtain 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 target audio data can reach the audio quality required by the main control chip after being subsequently sent to the main control chip.

[0045] In one embodiment, the configuration information further includes a communication baud rate, and the sending of the target audio data to the main control chip through the second protocol includes: Step 1041: based on the audio transmission clock signal, convert the target audio data into an audio signal through a second protocol and send it to the main control chip, wherein the audio transmission clock signal is generated according to the communication baud rate.

[0046] In this step, after the vehicle requests the configuration information of the main control chip, the configuration information obtained also includes the communication baud rate. The vehicle generates an audio transmission clock signal according to the communication baud rate. It can be understood that the baud rate is a unit used to measure the data transmission rate, indicating the number of symbols or bits transmitted per second. In serial communication, the baud rate determines the number of data changes in each clock cycle. For example, a baud rate of 9600 means that 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 transmitter and receiver parse the data at the same frequency and timing. Although the baud rate and the clock signal are not directly corresponding, the baud rate can affect the selection and generation of the clock signal: the baud rate determines the rate of data transmission, so a sufficiently high clock frequency needs to be selected to support the required baud rate. For example, for serial communication with a high baud rate, a high-frequency clock signal is required to ensure the accuracy and stability of data transmission. In actual 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 frequency of the clock signal must be high enough to ensure that each data bit is sampled and transmitted at the appropriate time.

[0047] After determining the audio transmission clock signal, the vehicle converts the target audio data into an audio signal through a second protocol, and sends the audio signal after the conversion protocol to the main control chip based on the audio transmission clock signal.

[0048] Further, step 1041 includes: 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 a 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 numbers corresponding to the target audio data.

[0049] In this step, the target audio data determined by the vehicle generally includes audio data in multiple audio channels. At this time, the vehicle obtains the audio channel number corresponding to each target audio data, sorts the target audio data in order from small to large, and determines the audio transmission sequence. Based on the audio transmission clock signal and the audio transmission sequence, the vehicle converts the target audio data into an audio signal through the second protocol and sends it to the main control chip. Exemplarily, 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 reaches a high level, the audio data with channel number 2 is first converted into an audio signal through the second protocol and sent to the main control chip. When the audio transmission clock signal reaches the next high level, the audio data with channel number 10 is converted into an audio signal through the second protocol and sent to the main control chip. By analogy, until the audio data with channel numbers 18 and 26 are converted into an audio signal through the second protocol and sent to the main control chip, the sending is stopped.

[0050] The vehicle of this embodiment 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 through the second protocol and sent to the main control chip, which can ensure that the audio signal is transmitted correctly and stably, avoiding transmission errors.

[0051] Further, refer to Figure 2 , a second embodiment of the present application is proposed. The difference between the second embodiment and the first embodiment is that before sending configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip, the second embodiment includes: Step a: If the initialization completion information sent by the main control chip of the vehicle is received, the following steps are executed: sending configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip.

[0052] In this step, before the vehicle sends a configuration request message to the main control chip of the vehicle to request the configuration information of the main control chip, it first detects whether the initialization completion message sent by the main control chip of the vehicle is received. It should be noted that after the vehicle is powered on, the main control chip needs to be initialized, and the main control chip will give the initialization completion message.

[0053] If the vehicle receives the initialization completion information sent by the main control chip of the vehicle, it sends configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip.

[0054] If the vehicle does not receive the initialization completion information sent by the vehicle's main control chip, it continues to receive initialization completion information until the vehicle receives the initialization completion information sent by the vehicle's main control chip, and then sends configuration request information to the vehicle's main control chip to request the configuration information of the main control chip.

[0055] The vehicle of this embodiment detects whether it has received the initialization completion information sent by the main control chip of the vehicle; if it has received the initialization completion information sent by the main control chip of the vehicle, it sends configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip. The vehicle sends the configuration request information to the main control chip after determining that the initialization of the main control chip is completed, which can avoid blindly sending the configuration request information before the initialization of the main control chip is completed, and can save communication resources.

[0056] Further, refer to Figure 3 , a third embodiment of the present application is proposed. The difference between the third embodiment and the first embodiment and the second embodiment is that before sending the target audio data to the main control chip through the second protocol, it includes: Step b, if it is determined that the configuration information includes a target protocol, the target audio data is sent to the main control chip through the target protocol; the target protocol is a protocol type specified by the main control chip for sending the target audio data; Step c: if it is determined that the configuration information does not include the target protocol, execute the step of sending the target audio data to the main control chip through the second protocol.

[0057] In step b to step c, the configuration information of the main control chip may also include a target protocol, which is a protocol type specified by the main control chip for sending target audio data. After the vehicle sends configuration request information to the main control chip of the vehicle, it is detected whether the configuration information of the main control chip includes the target protocol.

[0058] If the vehicle determines that the configuration information includes the target protocol, it means that the main control chip has specified the protocol. At this time, the vehicle sends the target audio data to the main control chip through the target protocol.

[0059] If the vehicle determines that the configuration information does not include the target protocol, it means that the main control chip has not specified a protocol. At this time, the vehicle sends the target audio data to the main control chip through a preset second protocol.

[0060] In this embodiment, the vehicle detects whether the configuration information includes the target protocol; if the configuration information includes the target protocol, the target audio data is sent to the main control chip through the target protocol; if the configuration information does not include the target protocol, the step of sending the target audio data to the main control chip through the second protocol is executed. This can make audio transmission applicable to more protocol types and improve the practicality of audio transmission.

[0061] In the feasible specific implementation process, refer to Figure 4, a programmable logic device (CPLD) is set in advance between the main control chip (MCU) and the audio data bus (I2S bus) in the vehicle, and the programmable logic device can execute a specific audio transmission method.

[0062] Wherein, sending configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip includes: sending configuration request information to the main control chip of the vehicle through the editable logic device to request the configuration information of the main control chip; wherein, sending the target audio data to the main control chip through the second protocol includes: using the editable logic device to send the target audio data to the main control chip through the second protocol.

[0063] Among them, Figure 4 As shown in the figure, there are three signals transmitted between the audio data bus (I2S bus) and the programmable logic device (CPLD), BCLK: bit clock signal, SDATA: audio data signal, WS: synchronization frame signal. There are five signals transmitted between the main control chip (MCU) and the programmable logic device (CPLD), READY: main control chip initialization completion signal, CLK: SPI clock signal, MOSI: master-out slave-in signal, CS: target audio data signal, MISO: master-in slave-out signal.

[0064] In a specific execution process, the editable logic device receives an audio signal of the I2S protocol of the audio data bus, and the editable logic device sends an audio signal of the SPI protocol to the MCU.

[0065] When the vehicle is powered on, the main control chip will give a high-level READY signal after initialization. When the editable logic device detects that the READY signal is at a high level, the editable logic device uses the default communication baud rate to communicate with the MCU and obtains the MCU's demand request information, which includes the communication baud rate, audio channel, data bit width, and I2S protocol type requested by the main control chip. After the editable logic device obtains the demand request information of the main control chip, the editable logic device starts to synchronize with the audio data bus and receives the audio data in all channels, and extracts the target audio data from all the audio data according to the audio channel, data bit width, and I2S protocol type requested by the main control chip, and sends the target audio data to the main control chip based on the SPI protocol.

[0066] Specifically, in order to obtain the demand request information of the MCU, the editable logic device CPLD sends a read command code 0x01 to the MCU, and the MCU implements the corresponding slave program according to the protocol to send the required communication baud rate to the editable logic device; the CPLD sends a read command code 0x02 to the MCU, and the MCU implements the corresponding slave program according to the protocol to send the required I2S audio channel to the editable logic device; the CPLD sends a read command code 0x03, and the MCU implements the corresponding slave program according to the protocol to send the required data bit width to the editable logic device; the CPLD sends a read command code 0x04, and the MCU implements the corresponding slave program according to the protocol to send the required I2S protocol type to the editable logic device.

[0067] Specifically, the editable 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.

[0068] Specifically, the editable logic device determines a target audio channel among all audio channels corresponding to the audio data according to the audio channel required by the MCU; and extracts audio data of 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.

[0069] Specifically, the editable 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 through the SPI protocol and sent to the main control chip.

[0070] Accordingly, reference Figure 5 The present application also provides an audio transmission device, the audio transmission device comprising: The request unit 1001 is used to send configuration request information to the main control chip of the vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; An acquisition unit 1002 is used to acquire audio data sent by the audio data bus of the vehicle; A determining unit 1003, configured to determine target audio data from the audio data according to the first protocol; The sending unit 1004 is used to send the target audio data to the main control chip through the second protocol.

[0071] Optionally, the acquisition unit is further configured to: Capturing the falling edge of a synchronization frame signal in an audio data bus of the vehicle; the synchronization frame signal and the audio signal are transmitted in the audio data bus, and the falling edge of the synchronization frame signal is used to indicate the starting time of each audio channel in the audio signal; Based on the falling edge of the synchronization frame signal, audio data corresponding to the audio signal is acquired.

[0072] Optionally, the determination unit is further configured to: According to the first protocol, acquiring audio data corresponding to the first protocol from the audio data; According to the audio channel, acquiring audio data corresponding to the audio channel from the audio data corresponding to the first protocol; According to 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 target audio data.

[0073] Optionally, the sending unit is further configured to: 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, and the audio transmission clock signal is generated according to the communication baud rate.

[0074] Optionally, the sending unit is further configured to: Based on the audio transmission clock signal and the audio transmission sequence, the target audio data is converted into an audio signal through a 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 numbers corresponding to the target audio data.

[0075] Optionally, the audio transmission device further includes a receiving unit, and the receiving unit is used to: If the initialization completion information sent by the main control chip of the vehicle is received, the step of sending configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip is executed.

[0076] Optionally, the receiving unit is further configured to: If it is determined that the configuration information includes a target protocol, the target audio data is sent to the main control chip through the target protocol; the target protocol is a protocol type specified by the main control chip for sending the target audio data; If it is determined that the configuration information does not include the target protocol, the step of sending the target audio data to the main control chip through the second protocol is executed.

[0077] This embodiment sends configuration request information to the main control chip of the vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; obtains audio data sent by the audio data bus of the vehicle; determines target audio data from the audio data according to the first protocol; and sends the target audio data to the main control chip through a second protocol. The high cost of using a professional audio DSP signal processor is avoided, and only a small part of the functions of the audio DSP signal processor is used, thereby reducing the cost of controlling the sound of the vehicle motor.

[0078] Accordingly, an embodiment of the present application further provides an electronic device, which is arranged in a vehicle, such as Figure 6 As shown, Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1100 includes a processor 1101 having one or more processing cores, a memory 1102 having one or more computer-readable storage media, and a computer program stored in the memory 1102 and executable on the processor. The processor 1101 is electrically connected to the memory 1102. It will be understood by those skilled in the art that the vehicle structure shown in the figure does not constitute a limitation on the vehicle, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0079] The processor 1101 is the control center of the electronic device 1100, and uses various interfaces and lines to connect various parts of the entire electronic device 1100. By running or loading software programs and / or units stored in the memory 1102, and calling data stored in the memory 1102, the processor 1101 executes various functions of the electronic device 1100 and processes data, thereby monitoring the electronic device 1100 as a whole. The processor 1101 can be a processor CPU, a graphics processor GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.

[0080] In an embodiment of the present application, the processor 1101 in the electronic device 1100 will load the computer program corresponding to the process of one or more applications into the memory 1102 according to the following steps, and the processor 1101 will run the application stored in the memory 1102 to execute the audio transmission method.

[0081] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0082] Optional, such as Figure 6As shown, the electronic device 1100 further includes: a touch screen 1103, a radio frequency circuit 1104, an audio circuit 1105, an input unit 1106, and a power supply 1107. The processor 1101 is electrically connected to the touch screen 1103, the radio frequency circuit 1104, the audio circuit 1105, the input unit 1106, and the power supply 1107, respectively. Those skilled in the art can understand that Figure 6 The vehicle structure shown in the figure does not constitute a limitation on the vehicle, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0083] The touch display screen 1103 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1103 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the vehicle, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), etc. The touch panel can be used to collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1101, and can receive the command sent by the processor 1101 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1101 to determine the type of touch event, and then the processor 1101 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1103 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1103 can also be used as a part of the input unit 1106 to realize the input function.

[0084] The RF circuit 1104 may be used to send and receive RF signals to establish wireless communication with network devices or other vehicles through wireless communication, and to send and receive signals with network devices or other vehicles.

[0085] The audio circuit 1105 can be used to provide an audio interface between the user and the vehicle through a speaker and a microphone. The audio circuit 1105 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1105 and converted into audio data, and then the audio data is output to the processor 1101 for processing, and then sent to another vehicle through the radio frequency circuit 1104, or the audio data is output to the memory 1102 for further processing. The audio circuit 1105 may also include an earphone jack to provide communication between an external headset and the vehicle.

[0086] The input unit 1106 may be configured to receive input numbers, character information, or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0087] The power supply 1107 is used to supply power to various components of the electronic device 1100. Optionally, the power supply 1107 can be logically connected to the processor 1101 through a power management device, so as to manage charging, discharging, and power consumption through the power management device. The power supply 1107 can also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0088] although Figure 6 Not shown, the electronic device 1100 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0089] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0090] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0091] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0092] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0093] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.

[0094] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. Although the present application has been described in examples with different focuses on the description of each embodiment, for the parts not described in detail in a certain embodiment, reference can be made to the relevant effective embodiments of other embodiments. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. An audio transmission method, characterized in that: The method is applied to a vehicle, and comprises: Sending configuration request information to a main control chip of a vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; Acquiring audio data sent by an audio data bus of the vehicle; determining target audio data from the audio data according to the first protocol; The target audio data is sent to the main control chip through a second protocol.

2. The audio transmission method according to claim 1, characterized in that: The obtaining of audio data sent by the audio data bus of the vehicle comprises: Capturing the falling edge of a synchronization frame signal in an audio data bus of the vehicle; the synchronization frame signal and the audio signal are transmitted in the audio data bus, and the falling edge of the synchronization frame signal is used to indicate the starting time of each audio channel in the audio signal; Based on the falling edge of the synchronization frame signal, audio data corresponding to the audio signal is acquired.

3. The audio transmission method according to claim 1, characterized in that: The configuration information further includes an audio channel and a data bit width, and the determining target audio data from the audio data according to the first protocol includes: According to the first protocol, acquiring audio data corresponding to the first protocol from the audio data; According to the audio channel, acquiring audio data corresponding to the audio channel from the audio data corresponding to the first protocol; According to 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 target audio data.

4. The audio transmission method according to claim 1, characterized in that: The configuration information also includes a communication baud rate, and the sending of the target audio data to the main control chip through the 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, and the audio transmission clock signal is generated according to the communication baud rate.

5. The audio transmission method according to claim 4, characterized in that: The method of converting the target audio data into an audio signal through a second protocol based on the audio transmission clock signal and sending the audio signal to the main control chip includes: Based on the audio transmission clock signal and the audio transmission sequence, the target audio data is converted into an audio signal through a 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 numbers corresponding to the target audio data.

6. The audio transmission method according to claim 1, characterized in that: Before sending configuration request information to the main control chip of the vehicle to request configuration information of the main control chip, the method includes: If the initialization completion information sent by the main control chip of the vehicle is received, the step of sending configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip is executed.

7. The audio transmission method according to any one of claims 1 to 6, characterized in that: Before sending the target audio data to the main control chip through the second protocol, the method includes: If it is determined that the configuration information includes a target protocol, the target audio data is sent to the main control chip through the target protocol; the target protocol is a protocol type specified by the main control chip for sending the target audio data; If it is determined that the configuration information does not include the target protocol, the step of sending the target audio data to the main control chip through the second protocol is executed.

8. The audio transmission method according to claim 1, characterized in that: The vehicle includes an editable logic device, and sending configuration request information to the main control chip of the vehicle to request the configuration information of the main control chip includes: sending configuration request information to the main control chip of the vehicle through the editable logic device to request the configuration information of the main control chip; sending the target audio data to the main control chip through the second protocol includes: using the editable logic device to send the target audio data to the main control chip through the second protocol.

9. An audio transmission device, characterized in that: The audio transmission device comprises: A request unit, configured to send configuration request information to a main control chip of a vehicle to request configuration information of the main control chip; the configuration information includes a first protocol; an acquisition unit, configured to acquire audio data sent by an audio data bus of the vehicle; a determining unit, configured to determine target audio data from the audio data according to the first protocol; The sending unit is used to send the target audio data to the main control chip through a second protocol.

10. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program; when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of computer programs, and the computer programs are suitable for being loaded by a processor to execute the steps of the method according to any one of claims 1 to 8.

12. A vehicle, characterized in that: The vehicle comprises: the audio transmission device according to claim 9, and / or the electronic device according to claim 10.

Citation Information

Patent Citations

  • Audio output device

    CN104615403A

  • Data conversion system and method for intelligent manufacturing equipment and external voice frequency collecting equipment

    CN108197051A

  • 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

  • Vehicle active sound production control method, device and equipment and storage medium

    CN118528961A

Cited By

  • Audio transmission method and apparatus, device, computer-readable storage medium, and vehicle

    WO2026045647A1