WO2022160312A1 - 一种数据传输方法、装置、电子设备和存储介质 - Google Patents

一种数据传输方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2022160312A1
WO2022160312A1 PCT/CN2021/074551 CN2021074551W WO2022160312A1 WO 2022160312 A1 WO2022160312 A1 WO 2022160312A1 CN 2021074551 W CN2021074551 W CN 2021074551W WO 2022160312 A1 WO2022160312 A1 WO 2022160312A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
audio
data transmission
combination
collection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/074551
Other languages
English (en)
French (fr)
Inventor
马进举
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP21921913.6A priority Critical patent/EP4283891A4/en
Priority to CN202180000255.6A priority patent/CN112703689B/zh
Priority to PCT/CN2021/074551 priority patent/WO2022160312A1/zh
Publication of WO2022160312A1 publication Critical patent/WO2022160312A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
    • B60K35/85Arrangements for transferring vehicle- or driver-related data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K2360/00Indexing scheme associated with groups B60K35/00 or B60K37/00 relating to details of instruments or dashboards
    • B60K2360/148Instrument input by voice
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K2360/00Indexing scheme associated with groups B60K35/00 or B60K37/00 relating to details of instruments or dashboards
    • B60K2360/583Data transfer between instruments

Definitions

  • the present application relates to the field of audio, and specifically discloses a data transmission method, device, electronic device and storage medium.
  • the automotive intelligent cockpit domain controller system has developed from a single infotainment system to today's complex functions such as integrated instrumentation, central control entertainment, driver monitoring and intelligent voice assistants.
  • the human-computer interaction capability carried by it meets the needs of today's automobiles' intelligence and Internet, and the demand for human-computer interaction interfaces and voice transmission has increased sharply.
  • the voice interaction interface of the smart cockpit system such as microphones
  • the voice interaction interface of the smart cockpit system has evolved from a single microphone to meet the call requirements in the past to four (or more) microphone inputs today to meet the needs of complex voice interaction functions such as calls, voice recognition, and noise reduction.
  • the rich voice interface and powerful system on chip (SOC) chip can realize functions such as voice assistant housekeeper, navigation, TTS, sound effect, sound field control, etc. These rich audio functions can affect the audio transmission capability of the entire intelligent cockpit system. , with new requirements.
  • each microphone input device is connected to the SOC chip through an audio interface, so as to realize the transmission of audio data collected by the microphone input device to the SOC chip.
  • the increase of microphone input devices leads to an increase in the number of audio interfaces, and the size of the SOC chip is fixed, so the number of pins used to receive data in the SOC chip is limited. If you want to receive data collected by all microphone input devices, you need to reduce other The number of functional interfaces affects the realization of other functions on the SOC chip.
  • a digital signal processing (Digital Signal Process, DSP) chip is added.
  • the DSP chip obtains the audio data used by many microphone input devices, and transmits each audio data through an audio transmission channel in the audio interface. Transmission, to achieve audio interface multiplexing to reduce the need for the number of audio interfaces.
  • the length of audio data collected by multiple microphone input devices is different due to the different acquisition depths of multiple microphone input devices, while the bandwidth of the data transmission channel is fixed, and the length of the audio data collected by the microphone input device is smaller than that of the data transmission channel. When the bandwidth is limited, it will cause waste of transmission resources and reduce transmission efficiency.
  • the present application provides a data transmission method, apparatus, electronic device and storage medium, which are used to improve transmission efficiency and further reduce the number of data transmission interfaces in the system.
  • an embodiment of the present application provides a data transmission method, which is applied to a sending device, the sending device is connected to multiple data collection interfaces and multiple data transmission channels, and each data collection interface is used to communicate with Corresponding audio capture device connection.
  • the sending device may be a DSP chip. The method specifically includes the following steps:
  • the sending device obtains the audio data collected by the corresponding audio collection device through multiple data collection interfaces; the sending device superimposes the audio data whose length of the audio data is less than the first threshold in the obtained audio data to obtain at least one data combination; at least Each data combination in one data combination includes audio data collected by at least two audio collection devices, the length of each data combination is less than or equal to the first threshold, and the number of the at least one data combination is less than or equal to multiple data transmissions The number of channels; the sending device sends each data combination over one of multiple data transmission channels.
  • the audio data collected by two or more audio collection devices can be superimposed into a data combination,
  • the data combination is transmitted through one data transmission channel, that is, one data transmission channel corresponds to multiple audio acquisition devices, which is beneficial to improve the utilization rate of transmission resources, improve the transmission efficiency of data, and reduce the number of data transmission channels.
  • the number of interfaces is beneficial to further reduce the number of interfaces used by the receiving device to receive audio data.
  • the sending device sends audio data whose length is equal to the first threshold in the acquired audio data through a data transmission channel other than at least one data combination among the multiple data transmission channels.
  • the number of at least one data combination obtained by superposition of the sending device is greater than 1, the data transmission channels used for sending any two data combinations in the at least one data combination are different.
  • the sending device sends each data combination through a data transmission channel, which can improve data transmission efficiency and reduce transmission delay.
  • the sending device when the sending device sends each data combination through one data transmission channel in the at least one data transmission channel, the sending device can also determine each data combination according to the corresponding relationship between the data combination serial number and the data transmission channel serial number. The serial number of the data transmission channel corresponding to the data combination. And send each data combination through the data transmission channel of the corresponding serial number.
  • the data combination can be sent through a specific data transmission channel, and the receiving device connected to the back end can determine whether complete data has been received according to the serial number of the data transmission channel, and determine whether the data combination received in the data transmission channel is in the data combination. contained audio data.
  • the sending device superimposes the audio data whose length of audio data is less than the first threshold in the acquired audio data to obtain at least one data combination, including: based on a preset superposition rule, the sending device will acquire Among the obtained audio data, the audio data whose length is less than the first threshold value are superimposed to obtain at least one data combination.
  • the superposition rule is set according to the collection depth of each audio collection device, and the sampling depth of the audio collection device is one-to-one with the length of the audio data output by the audio collection device.
  • the audio data whose length is less than the first threshold in the acquired audio data can be superimposed into at least one data combination according to the superposition rule set based on the acquisition depth of the audio acquisition device, thereby ensuring that each data combination is The length does not exceed the bandwidth of the data transmission channel, so that each data combination can be sent through a data transmission channel, so that one data transmission channel corresponds to multiple audio acquisition devices.
  • the sending device before the sending device obtains the audio data collected by the corresponding audio collection device through multiple data collection interfaces, it further includes:
  • the sending device receives a first control command from the receiving device through at least one data transmission channel in the plurality of data transmission channels, and the first control command includes a first target parameter for adjusting the collection depth of the corresponding audio collection device; the sending device Send the first control instruction to the corresponding audio collection device through multiple data collection interfaces; the sending device sets the superposition rule based on the first target parameter, and sends the superposition rule to the receiving device through at least one data transmission in the multiple data transmission channels .
  • the acquisition depth of each audio acquisition device can be determined according to the first control instruction sent by the receiving device before the data transmission, and the length of the audio data collected by the audio acquisition device can be pre-calculated according to the acquisition depth of the audio acquisition device, And set the superposition rule according to the pre-calculated length of the audio data collected by each audio collection device.
  • the length of the data combination is not greater than the bandwidth of the data transmission channel, so that one data transmission channel can correspond to multiple audio acquisition devices, and the data transmission efficiency can be further improved.
  • the method before the sending device obtains the audio data collected by the corresponding audio collection device through multiple data collection interfaces, the method further includes:
  • the sending device receives the second control instruction and the superposition rule from the receiving device through at least one data transmission channel in the plurality of data transmission channels; the second control instruction includes a second target parameter for adjusting the acquisition depth of the corresponding audio acquisition device ; The sending device sends the second control instruction to the corresponding audio collection device through a plurality of data collection interfaces.
  • the acquisition depth of the connected audio acquisition device can be controlled according to the second control instruction sent by the receiving device before the data transmission, and the audio data collected by the audio acquisition device whose acquisition depth has been changed can be controlled by using the superposition rule sent by the receiving device.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the audio data to be superimposed.
  • an embodiment of the present application provides a data transmission method.
  • the data transmission method is applied to a receiving device.
  • the receiving device is connected to a sending device through multiple data transmission channels, where the sending device may be an SOC chip.
  • the method specifically includes the following steps:
  • the receiving device receives at least one data combination transmitted by multiple data transmission channels; each data combination in the at least one data combination is transmitted through one data transmission channel in the multiple data transmission channels, and each data combination includes at least two audio captures The audio data collected by the device; the audio collection device is connected to the sending device through the corresponding data collection interface; the receiving device splits at least one data combination received to obtain audio data collected by multiple audio collection devices; The audio data collected by multiple audio collection devices is processed.
  • the audio data collected by two or more audio collection devices can be acquired through one data transmission channel, so that one data transmission channel corresponds to multiple audio collection devices, that is, the multiplexing of data transmission channels is realized.
  • the length of the superimposed data combination is closer to the bandwidth of the data transmission channel, which improves the data transmission efficiency and helps reduce the number of data transmission channels.
  • the receiving device splits the received data combination, including:
  • the receiving device splits the received at least one data combination according to a preset superposition rule.
  • the superposition rule is set according to the collection depth of each audio collection device, and the sampling depth of the audio collection device is one-to-one with the length of the audio data collected by the audio collection device.
  • the receiving device splits the received data combination according to a preset superposition rule, including: using the serial number of the data transmission channel and the corresponding relationship between the serial number of the data combination and the serial number of the data transmission channel to determine each The serial number of the data combination; at least one data combination is split according to the serial number of each data combination and the superposition rule.
  • the sequence number of the data combination received by the data transmission channel can be determined by using the corresponding relationship between the sequence number of the data combination and the sequence number of the data transmission channel, and the sequence number of the data combination can be used to determine the stacking sequence of the audio data in the data combination from the superposition rule. , and split the audio data based on its superposition order to obtain complete audio data.
  • the method before the receiving device receives at least one data combination transmitted by the multiple data transmission channels, the method further includes:
  • the method before the receiving device receives at least one data combination transmitted by the multiple data transmission channels, the method further includes: sending the second control instruction and the overlay to the sending device through at least one data transmission channel in the multiple data transmission channels.
  • the second control instruction includes a second target parameter for adjusting the collection depth of the data collection device connected to the sending device.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the audio data to be superimposed.
  • an embodiment of the present application provides a data transmission device, the data transmission device is connected to multiple data acquisition interfaces and multiple data transmission channels, each data acquisition interface is connected to a corresponding audio acquisition device, and data is exclusively transmitted.
  • the device includes:
  • the acquisition unit is used to acquire the audio data collected by the corresponding audio collection equipment through a plurality of data transmission interfaces; the processing unit is used for the audio data whose length is less than the first threshold value in the audio data acquired by the acquisition unit, to perform At least one data combination is obtained by superposition; each data combination in the at least one data combination includes audio data collected by at least two audio collection devices, the length of each data combination is less than or equal to the first threshold, and the number of at least one data combination is less than or equal to the first threshold. It is equal to the number of multiple data transmission channels; the transmission unit is used to send each data combination through one of the at least one data transmission channel.
  • the transmission unit is further configured to: use the audio data whose length of the audio data is equal to the first threshold in the audio data acquired by the acquisition unit to transmit at least one data combination outside the multiple data transmission channels. data transmission channel.
  • the number of the at least one data combination is greater than 1, and the data transmission channels used for sending out any two data combinations in the at least one data combination are different.
  • the transmission unit is specifically configured to: send each data combination through the data transmission channel of the corresponding serial number according to the corresponding relationship between the serial number of the data combination and the serial number of the data transmission channel.
  • the processing unit is specifically configured to: based on a preset superposition rule, superimpose audio data whose length of audio data is less than the first threshold in the audio data acquired by the acquisition unit to obtain at least one data combination.
  • the superposition rule is set according to the collection depth of each audio collection device, and the collection depth of the audio collection device is one-to-one with the length of the audio data collected by the audio collection device.
  • the processing unit before the acquisition unit acquires the audio data collected by the corresponding audio collection device through the multiple data collection interfaces, the processing unit is further configured to: receive the first control instruction from the receiving device through the transmission unit , the first control instruction includes a first target parameter for adjusting the collection depth of the corresponding audio collection device; the control acquisition unit sends the first control instruction to the corresponding audio collection device; and the superposition rule is set based on the first target parameter, And the superposition rule is sent to the receiving device through the transmission unit.
  • the processing unit before the acquisition unit acquires the audio data acquired by the corresponding audio acquisition device through multiple data acquisition interfaces, the processing unit is further used for:
  • the control acquisition unit sends the second control instruction to multiple audio capture device.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the audio data to be superimposed.
  • an embodiment of the present application provides a data transmission device, the data transmission device is connected to a sending device through a plurality of data transmission channels, and the data transmission device includes:
  • the transceiver unit is used to receive at least one data combination transmitted by multiple data transmission channels; each data combination in the at least one data combination is transmitted through one data transmission channel in the multiple data transmission channels, and each data combination includes at least two data transmission channels.
  • the audio data collected by each audio collection device; the audio collection device is connected to the sending device through the corresponding data collection interface; the splitting unit is used to split at least one data combination received by the transceiver unit to obtain the data collected by the multiple audio collection devices. Audio data; a processing unit for processing the audio data collected by the split multiple audio collection devices.
  • split cells are used specifically to:
  • the receiving device splits at least one data combination received by the transceiver unit according to a preset superposition rule.
  • the superposition rule is set according to the collection depth of each audio collection device, and the sampling depth of the audio collection device is one-to-one with the length of the audio data collected by the audio collection device.
  • the splitting unit is specifically used to: determine the serial number of each data combination by using the corresponding relationship between the serial number of the data combination and the serial number of the data transmission channel; The data combination is split.
  • the processing unit before the transceiver unit receives at least one data combination transmitted by multiple data transmission channels, the processing unit is further configured to: send a first control instruction to the sending device through the transceiver unit; The first target parameter for adjusting the collection depth of the audio collection device connected to the sending device; the transceiver unit is also used for: receiving the superposition rule set based on the first target parameter sent by the sending device.
  • the processing unit before the transceiver unit receives at least one data combination transmitted by the multiple data transmission channels, the processing unit is further configured to: send the second control instruction and the superposition rule to the sending device through the transceiver unit; the second control instruction contains a second target parameter for adjusting the acquisition depth of the audio acquisition device connected to the sending device.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the audio data to be superimposed.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, and instructions are stored in the memory, and when the processor executes the instructions, the device causes the device to execute the first aspect of the embodiment and any possible design The method provided in , or the method provided in the second aspect of the embodiment and any possible design.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a computer, cause the computer to execute the embodiment.
  • FIG. 1 is a schematic structural diagram 1 of an intelligent cockpit system according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a data transmission interface provided by an embodiment of the present application.
  • FIG. 3 is a second schematic structural diagram of an intelligent cockpit system according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 5 is a third schematic structural diagram of a cockpit system according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram 1 of an audio data superimposition provided by an embodiment of the present application.
  • FIG. 7 is a fourth schematic structural diagram of a cockpit system provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram 2 of an audio data superimposition provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram V of a cockpit system according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram 3 of an audio data superimposition provided by an embodiment of the present application.
  • FIG. 11 is a sixth structural schematic diagram of a cockpit system provided by an embodiment of the application.
  • FIG. 12 is a fourth schematic diagram of audio data superposition provided by an embodiment of the present application.
  • FIG. 13 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram 1 of a data transmission apparatus according to an embodiment of the present application.
  • FIG. 15 is a second schematic structural diagram of a data transmission apparatus according to an embodiment of the application.
  • FIG. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • connection in the embodiments of the present application refers to an electrical connection, and the connection of two electrical elements may be a direct or indirect connection between the two electrical elements.
  • connection between A and B can be either a direct connection between A and B, or an indirect connection between A and B through one or more other electrical components, such as the connection between A and B, or the direct connection between A and C, C and B are directly connected, and A and B are connected through C.
  • the intelligent cockpit system mainly includes: a plurality of audio collection devices (8 are taken as an example in FIG. 1 ) and an SOC chip for processing the audio data collected by the audio collection devices.
  • the audio devices connected to the SOC chip may include four first-type audio collection devices for acquiring user voice data, and four second-type audio collection devices for acquiring audio played by the audio playback device.
  • the SOC chip acquires audio data collected by the second type of audio collection device, and performs echo processing on the audio played by the audio playback device based on the acquired audio data.
  • the smart cockpit system provided in the embodiments of the present application also includes other types of audio collection devices for implementing other functions.
  • each audio collection device is connected to the SOC chip through a corresponding data transmission interface.
  • each audio acquisition device needs to be configured with a different data transmission interface, and the SOC chip also needs to be configured with the same number of pins as the audio acquisition device.
  • This pin is connected with the data transmission interface to obtain the audio data collected by all the audio collection devices in the intelligent cockpit system.
  • each data transmission interface includes three interfaces, namely, a transmission clock interface, a synchronous clock interface and a data interface.
  • Each data interface may include at least two data transmission channels.
  • a DSP chip is set between the SOC chip and the audio collection setting.
  • the DSP chip is provided with multiple data acquisition interfaces and multiple data transmission interfaces, and the multiple data acquisition interfaces are connected to multiple audio acquisition devices in a one-to-one correspondence.
  • the SOC chip is connected, and the DSP chip can use the above-mentioned multiple data collection interfaces to obtain audio data collected by multiple audio collection devices, and transmit each collected audio data to the SOC chip through a data transmission channel of the data transmission interface.
  • the above-mentioned data acquisition interface and data transmission interface may be the same type of interface, or may be different types of interfaces.
  • the length of the audio data collected by each data acquisition device may be different, and the bandwidth of each data transmission channel included in the data transmission interface is the same, when the length of the audio data transmitted in the data transmission channel is smaller than the data transmission channel.
  • the bandwidth is limited, the transmission resources of the data transmission channel will be wasted, and the data transmission efficiency will be reduced.
  • the embodiments of the present application provide a data transmission method, which can realize the transmission of audio data collected by a plurality of audio collection devices through a data transmission channel, and realize data transmission in a one-to-many form, thereby improving the performance of data transmission.
  • the data transmission efficiency is improved, and the number of data transmission interfaces in the intelligent cockpit system is reduced.
  • the execution body of the method may be a sending device, and the sending device may be a DSP chip in the above-mentioned intelligent cockpit system, and the DSP chip may include a plurality of A data acquisition interface and at least one data transmission interface, each data transmission channel in the at least one data transmission interface constitutes at least two data transmission channels, and a plurality of audio acquisition interfaces are used to connect with corresponding audio acquisition equipment.
  • the data transmission method may include the following steps:
  • Step 401 The sending device acquires audio data collected by a corresponding audio collection device through multiple data collection interfaces.
  • Step 402 The sending device superimposes the audio data whose length is less than the first threshold in the acquired audio data to obtain at least one data combination.
  • the length of the audio data provided by the embodiment of the present application refers to the number of bytes occupied by the audio data stored.
  • each data combination in the at least one data combination includes audio data collected by at least two audio collection devices, and the length of each data combination is less than or equal to the first threshold.
  • the length of each data combination is the sum of the lengths of the audio data superimposed by the data combination.
  • the first threshold is the bandwidth of the data transmission channel.
  • the number of at least one data combination obtained by superposition of the sending device needs to be less than or equal to the number of multiple data transmission channels.
  • the sending device can assign serial numbers to the data combination and the data transmission channel.
  • the serial number of the data combination and the serial number of the data transmission channel are one-to-one, and the data combination can be transmitted through the data transmission channel corresponding to the serial number. In this way, the data combination According to the fixed data transmission channel transmission, it is ensured that the sending device can transmit all the data combinations, and the subsequent devices can accurately identify the audio data contained in the data combination when receiving the data combination.
  • the DSP chip can set the correspondence between the serial number of the data combination and the serial number of the transmission channel.
  • the serial number of the data combination finds the serial number of the data transmission channel corresponding to the data combination from the above-mentioned correspondence, and transmits the data combination through the corresponding data transmission channel.
  • the sending device may transmit the above at least one data combination. For details, refer to step 403 .
  • Step 403 The sending device sends each data combination through one data transmission channel among the multiple data transmission channels.
  • the data transmission channel used to send any two data combinations in the at least one data combination is not same.
  • part or all of the data combinations can be transmitted through one data transmission in turn, that is, after determining the current data combination transmission After completion, the next data combination continues to be transmitted through the data transmission channel until all data combinations are transmitted.
  • the sending device can send the audio data whose length is equal to the first threshold in the acquired audio data, and the sending device can send the audio data through a data transmission channel other than at least one data combination among the multiple data transmission channels. .
  • the audio data whose data length is smaller than the bandwidth of the data transmission channel can be superimposed to obtain at least one data combination, and each data combination in the at least one data combination can be processed through a data transmission channel.
  • Transmission realizes that one data transmission channel corresponds to multiple audio acquisition devices, that is, realizes data transmission channel multiplexing, further reduces the number of data transmission channels, and is conducive to further reducing the number of data transmission interfaces between the sending device and the receiving device.
  • each data combination is superimposed with audio data collected by at least two audio collection devices, the length of a single data combination is greater than the length of a single audio data. occupied transmission resources, so as to improve the efficiency of data transmission.
  • the premise that the sending device can send each data combination in the at least one data combination through a data transmission channel is that the audio data is superimposed.
  • the sending device superimposes the audio data whose length is less than the first threshold in the acquired audio data based on the preset superposition rule, to obtain at least one data combination.
  • the superposition rule is set according to the collection depth of each audio collection device.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the audio data to be superimposed.
  • the sending device will receive a first control command sent by the connected receiving device before performing data transmission.
  • the sending device After the sending device receives the first control command, it outputs the first control command to each audio capture device through a plurality of data capture interfaces, and the sending device pre-calculates each audio capture device based on the first target parameter.
  • the length of the audio data output by the device under the control of the control instruction, and the sending device sets the superposition rule according to the pre-calculated length of the audio data.
  • the sending device after receiving the superposition rule, sets the correspondence between the data combination serial number and the data transmission channel serial number, and sends the above correspondence and the superposition rule to the receiving device.
  • the sending device and the receiving device can be connected through multiple data transmission channels on the sending device.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the superimposed audio data.
  • the audio data is sequentially superimposed according to the superposition order in the superposition rule by using the superposition rule to obtain at least one data combination.
  • the superposition rule and the above-mentioned corresponding relationship can be sent to the receiving device by adopting the above scheme, and the receiving device can determine whether to receive the complete data when receiving the data combination sent by the transmitting device in the later stage, and to accurately combine the acquired data. Identify and improve transmission accuracy.
  • the first control instruction includes multiple sub-control instructions, and the multiple sub-control instructions are one-to-one with multiple audio collection devices, and each sub-control instruction is used to adjust the collection depth of the corresponding audio collection device.
  • each sub-control instruction is sent to the corresponding audio collection device through the data audio collection interface.
  • the sending device receives a second control instruction and a superposition rule from the receiving device before performing data transmission, where the second control instruction includes a plurality of audio collection devices used to adjust the connection of the sending device After receiving the second control instruction, the sending device outputs the second control instruction to the corresponding audio collection devices through a plurality of data collection interfaces.
  • the sending device receives the second control instruction sent and received by the connection, the superposition rule, and the correspondence between the data combination serial number and the data transmission channel serial number.
  • the intelligent cockpit system includes 8 audio acquisition devices, and the acquisition depth of each audio acquisition device is 2, that is, the length of the audio data collected by the audio acquisition device is 16 bits (binary digit, bit ), there are two data transmission interfaces between the SOC chip and the DSP chip, each data transmission interface includes two data transmission channels, and the bandwidth of each data transmission channel is 32 bits.
  • the sending device directly superimposes the audio data collected by the audio collection devices 1 to 2 into a data combination 1, and the audio collection devices 3 to 2 4.
  • the audio data collected is directly superimposed as data combination 2
  • the audio data collected by audio acquisition devices 5 to 6 is directly superimposed as data combination 3
  • the audio data collected by audio acquisition devices 7 to 8 is directly superimposed as data combination 4.
  • the data transmission channel with sequence number 1 transmits data combination 1
  • the data transmission channel with sequence number 2 transmits data combination 2
  • the data transmission channel with sequence number 3 transmits data combination 3
  • the data transmission channel with sequence number 4 transmits data combination 4.
  • the data transmission channels with the serial numbers 1 and 2 constitute the data transmission interface 1
  • the data transmission channels with the serial numbers of 3 and 4 constitute the data transmission interface 2 .
  • the length of each data combination is the bandwidth of the data transmission channel, and one data transmission channel can be used for transmission, so that a single data transmission channel can transmit the audio data collected by two audio acquisition devices. Therefore, it can meet the transmission requirements.
  • the transmission efficiency is improved, and due to the use of data transmission channel multiplexing, the number of data transmission channels can be reduced by half.
  • the number of audio capture devices is large, it is beneficial to further reduce the data connected between the sending device and the receiving device.
  • the number of transport interfaces is the number of transport interfaces.
  • the intelligent cockpit system includes 8 audio collection devices, the collection depth of audio collection devices 1 to 4 is 1, and the collection depth of audio collection devices 5 to 8 is 3, that is, audio collection devices 1 to 8 have a collection depth of 3. 4
  • the length of the audio data collected is 8bit, and the length of the audio data collected by the audio collection devices 1 to 4 is 24bit.
  • the sending device directly superimposes the audio data collected by the audio collection device 1 and the audio collection device 5 into a data combination 1, and the audio collection
  • the audio data collected by the device 2 and the audio collection device 6 are directly superimposed into the data combination 2
  • the audio data collected by the audio collection device 3 and the audio collection device 7 are directly superimposed into the data combination 3
  • the audio collection device 4 and the audio collection device 8 are collected.
  • the audio data of the The data transmission channel with sequence number 4 transmits data combination 4.
  • the data transmission channels with the serial numbers 1 and 2 constitute the data transmission interface 1
  • the data transmission channels with the serial numbers of 3 and 4 constitute the data transmission interface 2 .
  • the length of each data combination is exactly the bandwidth of the data transmission channel, and one data transmission channel can be used for transmission, so that a single data transmission channel can transmit audio data collected by two audio acquisition devices.
  • the transmission efficiency is improved, and due to the use of data transmission channel multiplexing, the number of data transmission channels can be reduced by half.
  • the number of audio capture devices is large, it is beneficial to further reduce the number of connections between the sending device and the receiving device.
  • the number of data transfer interfaces is the number of data transfer interfaces.
  • the intelligent cockpit system includes 8 audio collection devices, and the collection depth of audio collection devices 1 to 8 is 1, that is, the length of audio data collected by audio collection devices 1 to 8 is 8 bits, and the SOC There are two data transmission interfaces between the chip and the DSP chip, each data transmission interface includes two data transmission channels, and the bandwidth of the data transmission channel is 32 bits.
  • the sending device after the sending device receives the audio data collected by the audio collection devices 1 to 8, the sending device directly superimposes the audio data collected by the audio collection devices 1 to 4 into a data combination 1, and the audio collection device 5
  • the audio data collected to 8 is directly superimposed into a data combination 2
  • the data combination 1 is transmitted through the data transmission channel with the serial number 1
  • the data combination 2 is transmitted through the data transmission channel with the serial number 2.
  • the data transmission channels with the serial numbers 1 and 2 constitute the data transmission interface 1
  • the data transmission channels with the serial numbers of 3 and 4 constitute the data transmission interface 2 .
  • the length of each data combination is exactly the bandwidth of the data transmission channel, and a single data transmission channel can transmit the audio data collected by four audio acquisition devices. Therefore, the transmission efficiency can be improved while meeting the transmission requirements, and Due to the use of data transmission channel multiplexing, the number of data transmission channels can be reduced by three-quarters. When the number of audio acquisition devices is large, it is beneficial to further reduce the number of data transmission interfaces connected between the sending device and the receiving device. quantity.
  • the smart cockpit system includes 8 audio collection devices, the collection depth of audio collection devices 1 to 2 is 1, the collection depth of audio collection devices 3 to 7 is 2, and the collection depth of audio collection device 8 is The depth is 4, that is, the length of the audio data collected by the audio collection devices 1 to 2 is 8 bits, the length of the audio data collected by the audio collection devices 3 to 7 is 16 bits, and the length of the audio data collected by the audio collection device 8 is 32 bits.
  • each data transmission interface includes two data transmission channels, and the bandwidth of the data transmission channel is 32 bits.
  • the sending device after the sending device receives the audio data collected by the audio collection devices 1 to 8, the sending device directly superimposes the audio data collected by the audio collection devices 1 to 3 into a data combination 1, and the audio collection devices 4 to 3
  • the audio data collected by 5 is directly superimposed as data combination 2
  • the audio data collected by audio collection devices 6 to 7 is directly superimposed as data combination 3.
  • the data combination 1 is transmitted through the data transmission channel with the serial number 1
  • the data combination 2 is transmitted through the data transmission channel with the serial number 2
  • the data combination 3 is transmitted through the data transmission channel with the serial number 3
  • the data combination The data transmission channel directly transmits the audio data collected by the audio collection device 8 .
  • the data transmission channels with the serial numbers 1 and 2 constitute the data transmission interface 1
  • the data transmission channels with the serial numbers of 3 and 4 constitute the data transmission interface 2 .
  • the length of each data combination is exactly the bandwidth of the data transmission channel, and a single data transmission channel can transmit audio data collected by two or more audio acquisition devices. Therefore, the transmission efficiency can be improved while meeting the transmission requirements. , and due to the use of data transmission channel multiplexing, when the number of audio collection devices is large, it is beneficial to further reduce the number of data transmission interfaces connected between the sending device and the receiving device.
  • the execution subject of the method may be a receiving device, and the receiving device may be an SOC chip in the above-mentioned smart cockpit system, and the receiving device passes a plurality of data
  • the transmission channel is connected with the sending device, and the method includes the following steps:
  • Step 1301 The receiving device receives at least one data combination transmitted by multiple data transmission channels. Each of the at least one data combination is transmitted through one of the multiple data transmission channels, and each data combination includes audio data collected by at least two audio collection devices. Wherein, the audio collection device is connected with the sending device through the corresponding data collection interface.
  • Step 1302 The receiving device splits the received at least one data combination to obtain audio data collected by multiple audio collecting devices.
  • the receiving device before receiving at least one data combination, the receiving device first sends a first control command to the sending device through multiple data transmission channels, where the first control command includes a plurality of control commands for adjusting the connection with the sending device.
  • the first target parameter of the collection depth of the audio collection device, and the superposition rule sent by the sending device and the correspondence between the data combination serial number and the data transmission channel serial number are received through multiple data transmission channels.
  • the superimposition rule is set by the sending device based on the first target parameter.
  • the receiving device before receiving at least one data combination, sends a second control instruction and a superimposition rule to the sending device through multiple data transmission channels, wherein the second control instruction is used to adjust and communicate with the sending device
  • the sending device may superimpose the received audio data based on the superposition rule to form at least one data combination.
  • the superimposition rule is set by the receiving device based on the second target parameter.
  • the receiving device sets the correspondence between the data combination serial numbers and the data transmission channel serial numbers, and sends the above correspondence to the sending device through multiple data transmission channels.
  • the receiving device receives the correspondence between the data combination sequence numbers sent by the sending device and the data transmission channel sequence numbers through multiple data transmission channels.
  • the receiving device After receiving at least one data combination, the receiving device first determines the serial number of each data combination based on the corresponding relationship between the data combination serial number and the data transmission channel serial number, and determines the audio data superimposed in the data combination from the superposition rule. The sequence and the length of each superimposed audio data are determined, and based on the above-mentioned determination of the sequence of the superimposed audio data and the length of the superimposed audio data, the data combination is split to obtain a plurality of audio data. It should be understood that other data combinations in the at least one data combination may be split by using the above splitting manner, until the splitting of the at least one data combination is completed.
  • the data combination received by the data transmission channel Slot1 the length of the data combination is 32 bits, and the corresponding relationship between the data combination serial number and the data transmission channel serial number is used to determine the data transmission channel Slot1 received data combination
  • the serial number is 1, and the above-mentioned superposition rule is used to determine that in the data combination with the serial number 1, the data collected by the audio collection device 1 is superimposed first, and then the audio data collected by the audio collection device 2 is superimposed, and two of the audio data collected by the audio collection device are superimposed. If the lengths are all 16 bits, when the data combination of serial number 1 is split, the first 16 bits of data in the data combination of serial number 1 are the audio data collected by the audio collection device 1, and the last 16 bits of data are the audio data collected by the audio collection device 2.
  • the receiving device may process the above audio data. For details, refer to step 1303 .
  • Step 1303 The receiving device processes the audio data collected by the split multiple audio collection devices.
  • the receiving device is also connected to a plurality of audio playback devices, and the receiving device can convert the audio data collected by the first type of audio collection device into voice, and send the voice to multiple audio playback devices for later playback, and the receiving device
  • the audio data collected by the second type of audio collection device can be pre-processed to obtain adjustment parameters of multiple audio collection devices, and the adjustment parameters are output to the corresponding audio playback device.
  • audio data collected by two or more audio collection devices can be received through one data transmission channel, and one data transmission channel connected to the receiving device corresponds to multiple audio collection devices, thus realizing the multiplexing of data transmission channels. It is beneficial to reduce the number of SOC chip pins, and because the length of the data combination is greater than the length of a single audio data, the utilization rate of the data transmission channel is improved, thereby improving the data transmission efficiency.
  • the DSP chip can also be connected to an audio playback device for playing audio data sent by the SOC chip.
  • the SOC chip can also be used as a sending device.
  • the data transmission method shown in Figure 4 is used to superimpose the audio transmission to be transmitted into at least one data transmission combination, which is transmitted to the DSP chip through the data transmission channel.
  • the DSP chip can use the data transmission method shown in Figure 13 as the receiving device. , receiving at least one data combination sent by the SOC chip, splitting the received data combination to obtain a plurality of audio data, and outputting it to a corresponding audio playback device through a data interface.
  • FIG. 4 to FIG. 12 describe in detail the data transmission method provided by the present application, and the data transmission apparatus provided by the present application will be described below with reference to FIG. 14 .
  • FIG. 14 is a schematic structural diagram of a data transmission device provided by the application.
  • the data transmission device 1400 can be connected with multiple data acquisition interfaces and multiple data transmission channels, and each data acquisition device is connected to a corresponding audio acquisition device.
  • the data transmission apparatus 1400 specifically includes an acquisition unit 1401, a processing unit 1402 and a transmission unit 1403, specifically:
  • the acquisition unit 1401 is used to acquire the audio data collected by the corresponding audio collection device through the above-mentioned audio collection interface; the processing unit 1402 is used to obtain the audio data whose length is less than the first threshold in the audio data acquired by the acquisition unit, Perform superposition to obtain at least one data combination, each data combination in the at least one data combination includes audio data collected by at least two audio collection devices, the length of each data combination is less than or equal to the first threshold, and the number of at least one data combination is less than or equal to the first threshold. It is equal to the number of multiple data transmission channels; the transmission unit 1403 is configured to send each data combination through one data transmission channel among the multiple data transmission channels.
  • the processing unit 1402 is further configured to: use the audio data whose length of the audio data is equal to the first threshold in the audio data acquired by the acquiring unit 1401 to transmit data other than at least one data combination through multiple data transmission channels. transmission channel.
  • the number of the at least one data combination is greater than 1, the data transmission channels used for sending out any two data combinations in the at least one data combination are different.
  • the transmission unit 1403 is specifically configured to transmit each data combination through the data transmission channel of the corresponding serial number by using the corresponding relationship between the data combination serial number and the data transmission channel serial number.
  • the processing unit 1402 is specifically configured to: based on a preset superposition rule, superimpose the audio data whose length of the audio data is less than the first threshold in the audio data acquired by the acquisition unit 1401 to obtain at least one data combination.
  • the superposition rule is set according to the collection depth of each audio collection device, and the collection depth of the audio collection device is one-to-one with the length of the audio data collected by the audio collection device.
  • the processing unit 1402 is further configured to: receive the first control instruction from the receiving device through the transmitting unit 1403;
  • the first control instruction includes a first target parameter for adjusting the collection depth of the corresponding audio collection device;
  • the control acquisition unit 1401 sends the first control instruction to the corresponding audio collection device; and the superposition rule is set based on the first target parameter, And the superposition rule is sent to the receiving device through the transmission unit 1403 .
  • the processing unit 1402 is further configured to: receive the second control instruction and The superposition rule; the second control instruction includes a second target parameter for adjusting the collection depth of the corresponding audio collection device; the control acquisition unit 1401 sends the second control instruction to the corresponding audio collection device.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the audio data to be superimposed.
  • FIG. 13 describes in detail the data transmission method provided by the present application, and the data transmission apparatus provided by the present application will be described below with reference to FIG. 15 .
  • FIG. 15 is a schematic structural diagram of a data transmission apparatus provided by this application. As shown in the figure, the data transmission apparatus 1500 can be connected to a sending device through multiple data transmission channels.
  • the data transmission apparatus 1500 specifically includes a transceiver unit 1501, a splitter Unit 1502 and processing unit 1503, specifically:
  • the transceiver unit 1501 is configured to receive at least one data combination transmitted by multiple data transmission channels, each data combination in the at least one data combination is transmitted through one data transmission channel in the multiple data transmission channels, and each data combination includes at least one data transmission channel. Audio data collected by two audio collection devices, the audio collection device is connected to the sending device through the corresponding data collection interface; the splitting unit 1502 is used to split at least one data combination received by the transceiver unit 1501 to obtain multiple audio collections The audio data collected by the device; the processing unit 1503 is used for processing the audio data collected by the split multiple audio collection devices.
  • the splitting unit 1502 is specifically configured to: the receiving device splits at least one data combination received by the transceiver unit according to a preset superposition rule.
  • the superposition rule is set according to the collection depth of each audio collection device, and the sampling depth of the audio collection device is one-to-one with the length of the audio data collected by the audio collection device.
  • the splitting unit 1502 is specifically used to: determine the sequence number of each data combination by using the corresponding relationship between the data combination sequence number and the data transmission channel sequence number; split.
  • the processing unit 1503 is further configured to: send a first control instruction to the sending device through the transceiver unit 1501; Adjust the first target parameter of the collection depth of the data collection device connected to the sending device; the transceiver unit 1501 is further configured to: receive the superposition rule set based on the first target parameter sent by the sending device.
  • the processing unit 1503 is further configured to: send the second control instruction and the superposition rule to the sending device through the transceiver unit 1501; in the second control instruction A second target parameter for adjusting the acquisition depth of the data acquisition device connected to the sending device is included.
  • the superimposition rule includes the superimposition sequence of the audio data and the length of the audio data to be superimposed.
  • the data transmission apparatuses 1400 and 1500 in the embodiments of the present application may be implemented by an application-specific integrated circuit (ASIC), or a programmable logic device (PLD), and the above PLD may be Complex Programmable Logical Device (CPLD), Field-Programmable Gate Array (FPGA), Generic Array Logic (GAL) or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • CPLD Complex Programmable Logical Device
  • FPGA Field-Programmable Gate Array
  • GAL Generic Array Logic
  • the data transmission apparatuses 1400 and 1500 may correspond to performing the methods described in the embodiments of the present application, and the above-mentioned and other operations and/or functions of the respective units in the data transmission apparatus 1400 and the data transmission apparatus 1500 are for the purpose of For the sake of brevity, the corresponding processes for implementing each method in FIG. 4 or FIG. 13 are not repeated here.
  • FIG. 16 is a schematic structural diagram of an electronic device according to an embodiment of the application.
  • the electronic device is applied to the smart cockpit system shown in FIG. 1 to implement the data transmission method shown in FIG. 4 or FIG. 13 .
  • the electronic device 1600 may include: a processor 1601 , a memory 1602 and a bus 1603 .
  • the processor 1601 and the memory 1602 communicate through the bus 1603, and the communication can also be realized through other means such as wireless transmission.
  • the memory 1602 is used for storing instructions, and the processor 1601 is used for executing the instructions stored in the memory 1602 .
  • the memory 1602 stores program codes, and the processor 1601 can call the program codes stored in the memory 1602 to execute the data transmission method shown in FIG. 4 ; or the data transmission method shown in FIG. 9 .
  • the electronic device 1600 shown in FIG. 16 further includes a memory 1604 and a communication interface 1605, wherein the memory 1604 can be physically integrated with the processor 1601, or exist in the processor 1601 or in the form of an independent unit.
  • Computer programs may be stored in memory 1604 or storage 1602 .
  • computer program code eg, programs to be debugged, etc. stored to memory 1602 is copied to memory 1604 for execution by processor 1601 .
  • the processor 1601 may be a central processing unit (central processing unit, CPU), and the processor 1601 may also be other general-purpose processors, digital signal processing (digital signal processing, DSPDSP) , application-specific integrated circuit (ASIC), programmable logic device (programmable logic device, PLD); the above PLD can be complex programmable logic device (complex programmable logic device, CPLD), field programmable gate array ( field-programmable gate array, FPGA), general array logic (generic array logic, GAL) or any combination thereof; or the processor 1601 may be other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the memory 1602 may include read-only memory and random access memory, and provides instructions, programs, data, etc. to the processor 1601 .
  • a program may include program code including computer operating instructions.
  • Memory 1602 may also include non-volatile random access memory.
  • memory 1602 may also store information on device type.
  • the memory 1602 may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • Double data rate synchronous dynamic random access memory double data date SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous link dynamic random access memory direct rambus RAM, DR RAM
  • the bus 1603 may also include an address bus, a power bus, a control bus, a status signal bus, and the like.
  • the bus 1603 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc., or a controller area network (CAN), or a It can be in-vehicle Ethernet (Ethernet) or other internal bus to realize the connection of each device/equipment shown in FIG. 16 .
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • CAN controller area network
  • It can be in-vehicle Ethernet (Ethernet) or other internal bus to realize the connection of each device/equipment shown in FIG. 16 .
  • the various buses are designated as bus 1603 in FIG. 16 .
  • only one thick line is shown in FIG. 16, but it does not mean that there is only one bus or one type of bus.
  • the electronic device 1600 may correspond to the data transmission apparatus 1400 in the embodiment of the present application or the data transmission apparatus 1500 in the embodiment of the present application, and may correspond to executing the method shown in FIG. 4 or FIG. 13 .
  • the operation steps of the controller as the main body, and the above-mentioned and other operations and/or functions of the various modules in the electronic device 1600 are respectively in order to realize the corresponding processes of the respective methods in FIG. 4 or FIG. Repeat.
  • the above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination.
  • the above-described embodiments may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains a set of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media.
  • the semiconductor medium may be a solid state drive (SSD).
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the technical solutions of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Stereophonic System (AREA)
  • Communication Control (AREA)

Abstract

本申请公开了一种数据传输方法、装置、电子设备和存储介质,用于提升数据传输效率、且有利于进一步减少系统上数据传输接口的数量,该数据传输方法包括:发送设备通过多个数据采集接口获取对应的音频采集设备采集到的音频数据;发送设备将获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合;至少一个数据组合中的每个数据组合包括至少两个音频采集设备采集到的音频数据,每个数据组合的长度小于或等于第一阈值,至少一个数据组合的数量小于或等于多个数据传输通道的数量;发送设备将每个数据组合通过至少一个数据传输通道中的一个数据传输通道发出。

Description

一种数据传输方法、装置、电子设备和存储介质 技术领域
本申请涉及一种音频领域,并具体公开了一种数据传输方法、装置、电子设备和存储介质。
背景技术
随着汽车电子电气化迅速发展,汽车的智能化、互联网化也越来越受到车载领域开发的重视。汽车智能座舱域控制器系统作为驾驶舱内与人交互最多的电子单元,从单一的信息娱乐系统发展到如今的集成仪表、中控娱乐、驾驶员监控以及智能语音助手等复杂功能于一体,其承载的人机交互能力满足当今汽车智能化,互联网化的需求,人机交互接口及语音传输数量需求骤增。
智能座舱系统语音交互接口如麦克风的需求,已从过去的单麦克风满足通话要求演进到如今四路(或更多)麦克风输入,来满足通话,语音识别,消音消躁等复杂的语音交互功能需求。丰富的语音接口配合强大的片上系统(System on Chip,SOC)芯片,可以实现语音助手管家,导航、TTS、音效,声场控制等功能,这些丰富的音频功能对整个智能座舱系统内部的音频传输能力,提出了新的要求。
传统的智能座舱系统架构中,每一个麦克风输入设备分别通过一个音频接口与SOC芯片连接,来实现将麦克风输入设备采集的音频数据传输给SOC芯片。麦克风输入设备的增加导致音频接口数量也随之增加,而SOC芯片的尺寸固定,因此SOC芯片中用于接收数据的管脚数量有限,若想接收到所有麦克风输入设备采集的数据,需要减少其它功能接口的数量,影响SOC芯片上其它功能的实现。
目前为了解决这一问题,增加了数字信号处理(Digital Signal Process,DSP)芯片,DSP芯片获取多有麦克风输入设备采用的音频数据,并将每一个音频数据通过音频接口中的一个音频传输通道进行传输,实现音频接口复用来减少对音频接口数量的需要。实际使用时,由于多个麦克风输入设备的采集深度不同导致多个麦克风输入设备采集的音频数据的长度不同,而数据传输通道的带宽固定,在麦克风输入设备采集的音频数据的长度小于数据传输通道的带宽时,将会造成传输资源的浪费,降低传输效率。
发明内容
本申请提供一种数据传输方法、装置、电子设备和存储介质,用于提升传输效率、且有利于进一步减少系统中数据传输接口的数量。
第一方面,本申请实施例提供了一种数据传输方法,该数据传输方法应用于发送设备,该发送设备与多个数据采集接口和多个数据传输通道连接,每个数据采集接口用于与对应的音频采集设备连接。其中,该发送设备可以是DSP芯片。该方法具体包括以下步骤:
发送设备通过多个数据采集接口获取对应的音频采集设备采集到的音频数据;发送设备将获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合;至少一个数据组合中的每个数据组合包括至少两个音频采集设备采集到的音频数据,每个数据组合的长度小于或等于第一阈值,所述至少一个数据组合的数量小于或 等于多个数据传输通道的数量;发送设备将每个数据组合通过多个数据传输通道中的一个数据传输通道发出。
采用上述方案,在音频采集设备采集的音频数据的长度小于数据传输通道的带宽(第一阈值)时,可以将两个或两个以上的音频采集设备采集的音频数据进行叠加为一个数据组合,并将该数据组合通过一个数据传输通道传输,即实现了一个数据传输通道对应多个音频采集设备,有利于提升传输资源的利用率,提升了数据的传输效率、且由于减少了数据传输通道的数量,有利于进一步减少接收设备用于接收音频数据的接口数量。
在一种可能的设计中,发送设备将获取到的音频数据中音频数据的长度等于第一阈值的音频数据,通过多个数据传输通道中用于传输至少一个数据组合外的数据传输通道发出。
在一种可能的设计中,若发送设备叠加得到的至少一个数据组合的数量大于1,用于发出所述至少一个数据组合中的任意两个数据组合的数据传输通道并不相同。
采用上述方案,发送设备将每个数据组合分别通过一个数据传输通道发出,可以实现提升数据传输效率以及减少传输时延。
在一种可能的设计中,发送设备将每个数据组合通过至少一个数据传输通道中的一个数据传输通道发出时,发送设备还可以根据数据组合序号与数据传输通道序号的对应关系,确定每个数据组合对应的数据传输通道的序号。并将每个数据组合通过对应序号的数据传输通道发出。
采用上述方案,可以将数据组合按照通过特定的数据传输通道发出,后端连接的接收设备可以根据数据传输通道的序号,确定是否接收到完整的数据,以及确定数据传输通道中接收的数据组合中所包含的音频数据。
在一种可能的设计中,发送设备将获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合,包括:基于预先设置的叠加规则,发送设备将获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合。其中,叠加规则是根据每一个音频采集设备的采集深度设置的、且音频采集设备的采样深度与音频采集设备输出的音频数据的长度一对一。
采用上述方案,可以按照基于音频采集设备的采集深度设置的叠加规则,将获取到的音频数据中音频数据的长度小于第一阈值的音频数据叠加为至少一个数据组合,从而保证每一个数据组合的长度均不超过数据传输通道的带宽,从而可以将每个数据组合通过一个数据传输通道发出,实现一个数据传输通道对应多个音频采集设备。
在一种可能的设计中,发送设备通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,还包括:
发送设备通过多个数据传输通道中的至少一个数据传输通道接收来自接收设备的第一控制指令,第一控制指令中包含用于调整对应的音频采集设备的采集深度的第一目标参数;发送设备通过多个数据采集接口将第一控制指令发送给对应的音频采集设备;发送设备基于第一目标参数设置叠加规则,并将叠加规则通过多个数据传输通道中的至少一个数据传输发送给接收设备。
采用上述方案,可以根据在数据传输之前接收设备发送的第一控制指令,确定每一个音频采集设备的采集深度,并根据音频采集设备的采集深度预先计算该音频采集设备采集的音频数据的长度,并根据预先计算的每一个音频采集设备采集的音频数据的长度设置叠加规则,在后期进行数据传输时,可以直接使用上述设置的叠加规则对获取到的所有音频 数据进行叠加,叠加后的每个数据组合的长度均不大于数据传输通道的带宽,从而可以实现一个数据传输通道对应多个音频采集设备,进一步提升数据传输效率。
在一种可能的设计中,在发送设备通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,还包括:
发送设备通过多个数据传输通道中的至少一个数据传输通道接收来自接收设备的第二控制指令和叠加规则;第二控制指令中包含用于调整对应的音频采集设备的采集深度的第二目标参数;发送设备通过多个数据采集接口将第二控制指令发送给对应的音频采集设备。
采用上述方案,可以根据在数据传输之前接收设备发送的第二控制指令,控制连接的音频采集设备的采集深度,并利用接收设备发送的叠加规则,对更改采集深度的音频采集设备采集的音频数据直接进行叠加,并通过一个数据传输通道传输,从而实现一个数据传输通道对应多个音频采集设备,进一步提升数据传输效率,且有利于了减少发送设备的工作量。
在一种可能的设计中,叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
第二方面,本申请实施例提供了一种数据传输方法,该数据传输方法应用于接收设备,该接收设备通过多个数据传输通道与发送设备连接,其中,该发送设备可以是SOC芯片。该方法具体包括以下步骤:
接收设备接收多个数据传输通道传输的至少一个数据组合;至少一个数据组合中的每个数据组合通过多个数据传输通道中的一个数据传输通道传输,每个数据组合中包括至少两个音频采集设备采集的音频数据;音频采集设备通过对应的数据采集接口与发送设备连接;接收设备对接收的至少一个数据组合进行拆分,得到多个音频采集设备采集的音频数据;接收设备对拆分后的多个音频采集设备采集的音频数据进行处理。
采用上述方法,可以通过一个数据传输通道获取到两个或两个以上的音频采集设备采集的音频数据,实现了一个数据传输通道对应多个音频采集设备,即实现了数据传输通道复用,相比于传输一个音频采集设备采集的音频数据,叠加后的数据组合的长度更接近与数据传输通道的带宽,实现了提升数据传输效率、且有利于减少了数据传输通道的数量。
在一种可能的设计中,接收设备对接收的数据组合进行拆分,包括:
接收设备根据预先设置的叠加规则,对接收的至少一个数据组合进行拆分。其中,叠加规则是根据每一个音频采集设备的采集深度设置的、且音频采集设备的采样深度与音频采集设备采集的音频数据的长度一对一。
在一种可能的设计中,接收设备根据预先设置的叠加规则,对接收的数据组合进行拆分,包括:利用数据传输通道的序号以及数据组合序号与数据传输通道序号的对应关系,确定每个数据组合的序号;根据每个数据组合的序号以及叠加规则,对至少一个数据组合进行拆分。
采用上述方案,可以利用数据组合序号与数据传输通道序号的对应关系,确定该数据传输通道接收的数据组合的序号,并利用数据组合的序号从叠加规则中确定该数据组合中音频数据的叠加顺序,并基于音频数据的叠加顺序对其进行拆分,得到完整的音频数据。
在一种可能的设计中,接收设备接收多个数据传输通道传输的至少一个数据组合之前,还包括:
通过多个数据传输通道中的至少一个数据传输通道向发送设备发送第一控制指令;第一控制指令中包含用于调整与发送设备连接的数据采集设备的采集深度的第一目标参数;通过多个数据传输通道中的至少一个数据传输通道接收发送设备发送的基于第一控制指令设置的叠加规则。
在一种可能的设计中,接收设备接收多个数据传输通道传输的至少一个数据组合之前,还包括:通过多个数据传输通道中的至少一个数据传输通道向发送设备发送第二控制指令和叠加规则;第二控制指令中包含用于调整与发送设备连接的数据采集设备的采集深度的第二目标参数。
在一种可能的设计中,叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
第三方面,本申请实施例提供了一种数据传输装置,该数据传输装置与多个数据采集接口和多个数据传输通道连接,每个数据采集接口与对应的音频采集设备连接,数据专传输装置包括:
获取单元,用于通过多个数据传输接口获取对应的音频采集设备采集到的音频数据;处理单元,用于将获取单元获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合;至少一个数据组合中的每个数据组合包括至少两个音频采集设备采集的音频数据,每个数据组合的长度小于或等于第一阈值,至少一个数据组合的数量小于或等于多个数据传输通道的数量;传输单元,用于将每个数据组合通过至少一个数据传输通道中的一个数据传输通道发出。
在一种可能的设计中,传输单元还用于:将获取单元获取到的音频数据中音频数据的长度等于第一阈值的音频数据,通过多个数据传输通道中用于传输至少一个数据组合外的数据传输通道发出。
在一种可能的设计中,至少一个数据组合的数量大于1,用于发出至少一个数据组合中的任意两个数据组合的数据传输通道不同。
在一种可能的设计中,传输单元具体用于:根据数据组合序号与数据传输通道序号的对应关系,将每个数据组合通过对应序号的数据传输通道发出。
在一种可能的设计中,处理单元具体用于:基于预先设置的叠加规则,将获取单元获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合。其中,叠加规则是根据每一个音频采集设备的采集深度设置的、且音频采集设备的采集深度与音频采集设备采集的音频数据的长度一对一。
在一种可能的设计中,在所述获取单元通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,处理单元还用于:通过传输单元接收来自接收设备的第一控制指令,第一控制指令中包含用于调整对应的音频采集设备的采集深度的第一目标参数;控制获取单元将第一控制指令发送给对应的音频采集设备;以及基于第一目标参数设置叠加规则,并将叠加规则通过传输单元发送给接收设备。
在一种可能的设计中,在所述获取单元通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,处理单元还用于:
通过传输单元接收来自接收设备的第二控制指令和叠加规则;第二控制指令中包含用于调整对应的音频采集设备的采集深度的第二目标参数;控制获取单元将第二控制指令发送给多个音频采集设备。
在一种可能的设计中,叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
第四方面,本申请实施例提供了一种数据传输装置,该数据传输装置通过多个数据传输通道与发送设备连接,数据传输装置包括:
收发单元,用于接收多个数据传输通道传输的至少一个数据组合;至少一个数据组合中的每个数据组合通过多个数据传输通道中的一个数据传输通道传输,每个数据组合中包括至少两个音频采集设备采集的音频数据;音频采集设备通过对应的数据采集接口与发送设备连接;拆分单元,用于对收发单元接收的至少一个数据组合进行拆分,得到多个音频采集设备采集的音频数据;处理单元,用于对拆分后的多个音频采集设备采集的音频数据进行处理。
在一种可能的设计中,拆分单元具体用于:
接收设备根据预先设置的叠加规则,对收发单元接收的至少一个数据组合进行拆分。其中,叠加规则是根据每一个音频采集设备的采集深度设置的、且音频采集设备的采样深度与音频采集设备采集的音频数据的长度一对一。
在一种可能的设计中,拆分单元具体用于:利用数据组合序号与数据传输通道序号的对应关系,确定每个数据组合的序号;根据每个数据组合的序号以及叠加规则,对至少一个数据组合进行拆分。
在一种可能的设计中,在收发单元接收多个数据传输通道传输的至少一个数据组合之前,处理单元还用于:通过收发单元向发送设备发送第一控制指令;第一控制指令中包含用于调整与发送设备连接的音频采集设备的采集深度的第一目标参数;收发单元还用于:接收发送设备发送的基于第一目标参数设置的叠加规则。
在一种可能的设计中,在收发单元接收多个数据传输通道传输的至少一个数据组合之前,处理单元还用于:通过收发单元向发送设备发送第二控制指令和叠加规则;第二控制指令中包含用于调整与发送设备连接的音频采集设备的采集深度的第二目标参数。
在一种可能的设计中,叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,存储器中存储有指令,处理器执行指令时,使得装置执行实施例第一方面以及任一可能的设计中提供的方法,或者实施例第二方面以及任一可能的设计中提供的方法。
第六方面,本申请实施例提供了一种计算器可读存储介质,该计算器可读存储介质存储有计算机程序,计算机程序包括程序指令,程序指令当被计算机执行时,使计算机执行实施例第一方面以及任一可能的设计中提供的方法,或者实施例第二方面以及任一可能的设计中提供的方法。
附图说明
图1为本申请实施例提供的一种智能座舱系统的结构示意图一;
图2为本申请实施例提供的一种数据传输接口的结构示意图;
图3为本申请实施例提供的一种智能座舱系统的结构示意图二;
图4为本申请实施例提供的一种数据传输方法的流程示意图;
图5为本申请实施例提供的一种能座舱系统的结构示意图三;
图6为本申请实施例提供的一种音频数据叠加示意图一;
图7为本申请实施例提供的一种能座舱系统的结构示意图四;
图8为本申请实施例提供的一种音频数据叠加示意图二;
图9为本申请实施例提供的一种能座舱系统的结构示意图五;
图10为本申请实施例提供的一种音频数据叠加示意图三;
图11为本申请实施例提供的一种能座舱系统的结构示意图六;
图12为本申请实施例提供的一种音频数据叠加示意图四;
图13为本申请实施例提供的一种数据传输方法的流程示意图;
图14为本申请实施例提供的一种数据传输装置的结构示意图一;
图15为本申请实施例提供的一种数据传输装置的结构示意图二;
图16为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在本申请的描述中“至少一个”是指一个或多个,其中,多个是指两个或两个以上。鉴于此,本发明实施例中也可以将“多个”理解为“至少两个”。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
需要指出的是,本申请实施例中“连接”指的是电连接,两个电学元件连接可以是两个电学元件之间的直接或间接连接。例如,A与B连接,既可以是A与B直接连接,也可以是A与B之间通过一个或多个其它电学元件间接连接,例如A与B连接,也可以是A与C直接连接,C与B直接连接,A与B之间通过C实现了连接。
本申请实施例提供的数据传输方法以及数据接收方法可以应用于汽车的智能座舱系统中,参见图1,为本申请实施例提供的一种汽车的智能座舱系统的架构示意图。如图1所示,该智能座舱系统主要包括:多个音频采集设备(图1中以8个为例)和用于对音频采集设备采集的音频数据进行处理的SOC芯片。其中,SOC芯片连接的音频设备可以包括4个用于获取用户的语音数据的第一类型音频采集设备,4个用于获取音频播放设备播放的音频的第二类型音频采集设备。其中,SOC芯片获取第二类型音频采集设备采集的音频数据,并基于获取的音频数据对音频播放设备播放的音频进行回音处理。
应理解,本申请实施例提供的智能座舱系统中还包括可以其它类型的音频采集设备,用于实现其它功能。
其中,多个音频采集设备以及SOC芯片通过多个数据传输接口连接。其中,每个音频采集设备通过对应的数据传输接口与SOC芯片连接。
采用图1所示的数据传输接口将采集的音频数据传输给SOC芯片时,每一个音频采集设备均需要配置一个不同的数据传输接口,SOC芯片也需要配置与音频采集设备相同数量的管脚,该管脚与数据传输接口连接以获取智能座舱系统中所有音频采集设备采集的音频数据。采用上述音频数据传输方式,在SOC芯片的管脚数量固定的情况下,若想获取到所 有音频采集设备采集的音频数据,则需要减少SOC芯片其它管脚的数量,可能会导致智能座舱系统其它功能的实现。
基于上述情况,提供了数据传输接口复用的方案,如图2所示,每一个数据传输接口中包括三个接口,分别是传输时钟接口,同步时钟接口以及数据接口。每一个数据接口中可以包括至少两个数据传输通道,为了实现数据传输接口复用,在SOC芯片与音频采集设置之间设置一个DSP芯片。如图3所示,该DSP芯片上设置有多个数据采集接口和多个数据传输接口,多个数据采集接口与多个音频采集设备一对一对应连接,DSP芯片通过多个数据传输接口与SOC芯片连接,DSP芯片可以采用上述多个数据采集接口获取多个音频采集设备采集的音频数据,并将采集的每一个音频数据通过数据传输接口的一个数据传输通道传输给SOC芯片。需要说明的是,上述数据采集接口和数据传输接口可以是相同类型的接口,也可以是不同类型的接口。例如,
实际使用时,每一个数据采集装置采集的音频数据的长度可能不同,而数据传输接口中包含的每一个数据传输通道的带宽相同,当该数据传输通道中传输的音频数据的长度小于数据传输通道的带宽时,则会造成该数据传输通道的传输资源浪费,以及降低了数据传输效率。
上述介绍了智能座舱系统中设置的数据传输接口存在传输资源浪费,数据传输效率低的问题。为解决上述问题,本申请实施例提供一种数据传输方法,该方法可以实现将多个音频采集设备采集的音频数据通过一个数据传输通道进行传输,实现一个对多的形式进行数据传输,从而提升了数据传输效率,并有利于减少智能座舱系统中数据传输接口的数量。
参见图4,为本申请实施例提供的一种数据传输方法的示意图,该方法的执行主体可以是发送设备,该发送设备可以是上述智能座舱系统中的DSP芯片,该DSP芯片可以包括多个数据采集接口和至少一个数据传输接口,至少一个数据传输接口中的每个数据传输通道构成至少两个数据传输通道,多个音频采集接口用于与对应的音频采集设备连接。
具体实现时,该数据传输方法可以包括以下步骤:
步骤401:发送设备通过多个数据采集接口获取对应的音频采集设备采集到的音频数据。
步骤402:发送设备将获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合。需要说明的是,本申请实施例提供的音频数据的长度是指存储该音频数据所占用的字节数。
其中,至少一个数据组合中的每个数据组合中包括至少两个音频采集设备采集到的音频数据、且每个数据组合的长度小于或等于第一阈值。其中,每个数据组合的长度为该数据组合叠加的音频数据的长度的总和。
其中,该第一阈值为数据传输通道的带宽。其中,发送设备叠加得到的至少一个数据组合的数量需要小于或等于多个数据传输通道的数量。基于上述方案,发送设备可以为数据组合以及数据传输通道分配序号,数据组合的序号和数据传输通道的序号一对一,则可以将数据组合通过对应序号的数据传输通道进行传输,如此,数据组合按照固定的数据传输通道传输,保证发送设备可以传输全部的数据组合,以及后续设备在接收该数据组合时,可以准确的识别该数据组合中包含的音频数据。
作为一种可能实现的方式,在上述步骤402中,DSP芯片可以设置数据组合序号与传输通道序号之间的对应关系,在传输数据组合时,首先获取每个数据组合的序号,并根据 每个数据组合的序号从上述对应关系中找到该数据组合对应的数据传输通道的序号,并将该数据组合通过对应的数据传输通道进行传输。
在叠加数据组合以及确定数据组合序号和数据传输通道序号的对应关系之后,发送设备可以对上述至少一个数据组合进行传输,具体可以参见步骤403。
步骤403:发送设备将每个数据组合通过多个数据传输通道中的一个数据传输通道发出。
作为一种可能实现的方式,若至少一个数据组合的数量大于1,为了进一步的提升系统的传输效率以及减少传输时间,用于发出至少一个数据组合中的任意两个数据组合的数据传输通道不相同。
作为一种可能实现的方式,在部分数据传输通道损坏的情况下或者为了进一步提升数据传输通道复用程度,可以将部分或全部数据组合依次通过一个数据传输进行传输,即在确定当前数据组合传输完毕后,将下一个数据组合继续通过该数据传输通道进行传输,直至传输完所有的数据组合。
需要说明的是,发送设备可以将获取到的音频数据中音频数据的长度等于第一阈值的音频数据,发送设备可以通过多个数据传输通道中用于传输至少一个数据组合外的数据传输通道发出。
通过上述步骤401~步骤403提供的方案,可以将数据长度小于数据传输通道带宽的音频数据进行叠加,得到至少一个数据组合,并将至少一个数据组合中的每个数据组合通过一个数据传输通道进行传输,实现了一个数据传输通道对应多个音频采集设备,即实现数据传输通道复用,进一步减少了数据传输通道的数量,有利于进一步减少发送设备与接收设备之间的数据传输接口的数量。
应理解,由于每个数据组合中叠加有至少两个音频采集设备采集的音频数据,因此,单个数据组合的长度要大于单个音频数据的长度,采用上述传输方式传输数据组合时,有利于更有效的占用传输资源,从而实现提升数据传输效率。
需要说明的是,发送设备能够将至少一个数据组合中的每个数据组合通过一个数据传输通道进行发出的前提是音频数据叠加完毕。实际使用时,发送设备是基于预先设置的叠加规则,将获取到的音频数据中音频数据的长度小于第一阈值的音频数据进行叠加,得到至少一个数据组合。其中,叠加规则是根据每一个音频采集设备的采集深度设置的。其中,叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
作为一种可能实现方式,发送设备在进行数据传输之前会接收连接的接收设备发送的第一控制指令,该第一控制指令中包含用于调整发送设备连接的多个音频采集设备的采集深度的第一目标参数,发送设备接收到该第一控制指令后,并将该第一控制指令分别通过多个数据采集接口输出给各个音频采集设备,同时发送设备基于第一目标参数预先计算各个音频采集设备在控制指令控制下输出的音频数据的长度,发送设备根据预先计算的音频数据的长度设置叠加规则。
在一示例中,发送设备接收到叠加规则后,设置数据组合序号和数据传输通道序号之间的对应关系,并将上述对应关系以及叠加规则发送给接收设备。其中,发送设备和接收设备可以通过发送设备上的多个数据传输通道实现连接。其中,该叠加规则中包含音频数据的叠加顺序以及被叠加的音频数据的长度。
具体地,发送设备通过数据采集接口采集到对应的音频数据采集的音频数据之后,利 用叠加规则,将音频数据按照叠加规则中的叠加顺序将音频数据依次叠加,得到至少一个数据组合。
应理解,采用上述方案可以将叠加规则以及上述对应关系发送给接收设备,接收设备在后期接收到发送设备发送的数据组合时,可以确定是否接收到完整的数据,以及准确的对获取的数据组合进行识别,提升传输准确度。
在一示例中,第一控制指令中包含多个子控制指令,多个子控制指令与多个音频采集设备一对一,每一个子控制指令用于调整对应的音频采集设备的采集深度,发送设备在接收到接收设备发送的第一控制指令后,将每个子控制指令通过数据音频采集接口发送给对应的音频采集设备中。
作为另一种可能实现的方式中,发送设备在进行数据传输之前,接收来自接收设备的第二控制指令以及叠加规则,该第二控制指令中包含用于调整发送设备连接的多个音频采集设备的采集深度的第二目标参数,发送设备接收到该第二控制指令后,并将该第二控制指令分别通过多个数据采集接口输出给对应的各个音频采集设备。
在一示例中,发送设备接收连接的接收发送的第二控制指令、叠加规则以及数据组合序号和数据传输通道序号之间的对应关系。
下面,结合以下实施例对音频数据叠加为数据组合的过程进行说明。
场景1:参见图5所示,智能座舱系统中包含8个音频采集设备,每一个音频采集设备的采集深度为2,即音频采集设备采集的音频数据的长度均为16比特(binary digit,bit),SOC芯片与DSP芯片之间存在两个数据传输接口,每一个数据传输接口中包含两个数据传输通道,而每一个数据传输通道的带宽为32bit。
如图6所示,发送设备在接收到音频采集设备1至8的采集的音频数据之后,发送设备将音频采集设备1至2采集的音频数据直接叠加为数据组合1,将音频采集设备3至4采集的音频数据直接叠加为数据组合2,将音频采集设备5至6采集的音频数据直接叠加为数据组合3,将音频采集设备7至8采集的音频数据直接叠加为数据组合4,通过序号为1的数据传输通道传输数据组合1,通过序号为2的数据传输通道传输数据组合2,通过序号为3的数据传输通道传输数据组合3,通过序号为4的数据传输通道传输数据组合4。其中,序号为1和2的数据传输通道构成数据传输接口1,序号为3和4的数据传输通道构成数据传输接口2。
采用上述方案,每一个数据组合的长度为数据传输通道的带宽,可以采用一个数据传输通道进行传输,实现了单个数据传输通道传输两个音频采集设备采集的音频数据,因此,可以在满足传输需求的同时,提升传输效率,且由于采用了数据传输通道复用,可以减少一半的数据传输通道的数量,在音频采集设备数量较多时,有利于进一步减少连接在发送设备和接收设备之间的数据传输接口的数量。
场景二:参见图7所示,智能座舱系统中包含8个音频采集设备,音频采集设备1至4的采集深度为1,音频采集设备5至8的采集深度为3,即音频采集设备1至4采集的音频数据长度均为8bit,音频采集设备1至4采集的音频数据长度均为24bit,SOC芯片与DSP芯片之间存在两个数据传输接口,每一个数据传输接口中包含两个数据传输通道,而每一个数据传输通道的带宽为32bit。
如图8所示,发送设备在接收到音频采集设备1至8的采集的音频数据之后,发送设备将音频采集设备1和音频采集设备5采集的音频数据直接叠加为数据组合1,将音频采 集设备2和音频采集设备6采集的音频数据直接叠加为数据组合2,将音频采集设备3和音频采集设备7采集的音频数据直接叠加为数据组合3,将音频采集设备4和音频采集设备8采集的音频数据直接叠加为数据组合4,通过序号为1的数据传输通道传输数据组合1,通过序号为2的数据传输通道传输数据组合2,通过序号为3的数据传输通道传输数据组合3,通过序号为4的数据传输通道传输数据组合4。其中,序号为1和2的数据传输通道构成数据传输接口1,序号为3和4的数据传输通道构成数据传输接口2。
采用上述方案,每一个数据组合的长度正好为数据传输通道的带宽,可以采用一个数据传输通道进行传输,实现了单个数据传输通道传输两个音频采集设备采集的音频数据,因此,可以在满足传输需求的同时,提升传输效率,且由于采用了数据传输通道复用,可以减少一半的数据传输通道的数量,在音频采集设备数量较多时,有利于进一步减少连接在发送设备和接收设备之间的数据传输接口的数量。
场景三:参见图9所示,智能座舱系统中包含8个音频采集设备,音频采集设备1至8的采集深度均为1,即音频采集设备1至8采集的音频数据长度均为8bit,SOC芯片与DSP芯片之间存在两个数据传输接口,每一个数据传输接口中包含两个数据传输通道,而数据传输通道的带宽为32bit。
如图10所示,发送设备在接收到音频采集设备1至8的采集的音频数据之后,发送设备将音频采集设备1至4采集的音频数据直接叠加为一个数据组合1,将音频采集设备5至8采集的音频数据直接叠加为一个数据组合2,通过序号为1的数据传输通道传输数据组合1,通过序号为2的数据传输通道传输数据组合2。其中,序号为1和2的数据传输通道构成数据传输接口1,序号为3和4的数据传输通道构成数据传输接口2。
采用上述方案,每一个数据组合的长度正好为数据传输通道的带宽,可以实现单个数据传输通道传输四个音频采集设备采集的音频数据,因此,可以在满足传输需求的同时,提升传输效率,且由于采用了数据传输通道复用,可以减少四分之三的数据传输通道的数量,在音频采集设备数量较多的时,有利于进一步减少连接在发送设备和接收设备之间的数据传输接口的数量。
场景四:参见图11所示,智能座舱系统中包含8个音频采集设备,音频采集设备1至2的采集深度为1,音频采集设备3至7的采集深度为2,音频采集设备8的采集深度为4,即音频采集设备1至2采集的音频数据长度为8bit,音频采集设备3至7采集的音频数据长度均为16bit,音频采集设备8采集的音频数据长度为32bit,SOC芯片与DSP芯片之间存在两个数据传输接口,每一个数据传输接口中包含两个数据传输通道,而数据传输通道的带宽为32bit。
如图12所示,发送设备在接收到音频采集设备1至8的采集的音频数据之后,发送设备将音频采集设备1至3采集的音频数据直接叠加为数据组合1,将音频采集设备4至5采集的音频数据直接叠加为数据组合2,音频采集设备6至7采集的音频数据直接叠加为数据组合3。在叠加数据组合之后,通过序号为1的数据传输通道传输数据组合1,通过序号为2的数据传输通道传输数据组合2,通过序号为3的数据传输通道传输数据组合3,通过序号为4的数据传输通道直接传输音频采集设备8采集的音频数据。其中,序号为1和2的数据传输通道构成数据传输接口1,序号为3和4的数据传输通道构成数据传输接口2。
采用上述方案,每一个数据组合的长度正好为数据传输通道的带宽,可以实现单个数 据传输通道传输两个及以上音频采集设备采集的音频数据,因此,可以在满足传输需求的同时,提升传输效率,且由于采用了数据传输通道复用,在音频采集设备数量较多时,有利于进一步减少连接在发送设备和接收设备之间的数据传输接口的数量。
应理解,上述数据传输方案,也可以根据音频采集的采集深度的不同灵活的设置叠加规则,本申请这里不再做详细介绍。
参见图13,为本申请实施例提供的另一种数据传输方法的示意图,该方法的执行主体可以是接收设备,该接收设备可以上述智能座舱系统中的SOC芯片,该接收设备通过多个数据传输通道与发送设备连接,该方法包括以下步骤:
步骤1301:接收设备接收多个数据传输通道传输的至少一个数据组合。其中至少一个数据组合中的每个数据组合通过多个数据传输通道中的一个数据传输通道传输,每个数据组合中包括至少两个音频采集设备采集的音频数据。其中,音频采集设备通过对应的数据采集接口与发送设备连接。
步骤1302:接收设备对接收的至少一个数据组合进行拆分,得到多个音频采集设备采集的音频数据。
作为一种可能实现方式,接收设备在接收至少一个数据组合之前,先通过多个数据传输通道向发送设备发送第一控制指令,该第一控制指令中包含用于调整与发送设备连接的多个音频采集设备的采集深度的第一目标参数,并通过多个数据传输通道接收发送设备发送的叠加规则以及数据组合序号与数据传输通道序号之间的对应关系。其中,叠加规则是发送设备基于第一目标参数设置的。
作为另一种可能实现的方式,接收设备在接收至少一个数据组合之前,通过多个数据传输通道向发送设备发送第二控制指令以及叠加规则,其中,该第二控制指令用于调整与发送设备连接的多个音频采集设备的采集深度的第二目标参数,发送设备可以基于叠加规则对接收的音频数据进行叠加,构成至少一个数据组合。其中,叠加规则是接收设备基于第二目标参数设置的。
在一示例中,接收设备设置数据组合序号和数据传输通道序号之间的对应关系,并将上述对应关系通过多个数据传输通道向发送设备。
在另一示例中,接收设备通过多个数据传输通道接收发送设备发送的数据组合序号和数据传输通道序号之间的对应关系。
实际使用时,接收设备接收到至少一个数据组合后,先基于数据组合序号与数据传输通道序号的对应关系,确定每个数据组合的序号,从叠加规则中确定该数据组合中叠加的音频数据的顺序以及被叠加的每个音频数据的长度,并基于上述确定叠加的音频数据的顺序以及被叠加的音频数据的长度,对该数据组合进行拆分,得到多个音频数据。应理解,采用上述拆分方式可以对至少一个数据组合中的其它数据组合进行拆分,直至对至少一个数据组合拆分完毕。
下面,结合图2,对本申请实施例中的数据组合的拆分过程进行说明。
例如,如图2所示的数据传输通道Slot1接收到的数据组合,该数据组合的长度为32bit,利用数据组合序号与数据传输通道序号之间的对应关系,确定数据传输通道Slot1接收的数据组合的序号为1,利用上述叠加规则确定序号为1的数据组合中先叠加音频采集设备1采集的数据,再叠加音频采集设备2采集的音频数据,且两个被音频采集设备采集的音频数据的长度均为16bit,则对序号1的数据组合进行拆分时,序号为1的数据组合中前 16bit数据为音频采集设备1采集的音频数据,后16bit数据为音频采集设备2采集的音频数据。
在拆分数据组合得到所有音频采集设备采集的音频数据之后,接收设备可以对上述音频数据进行处理,具体可以参见步骤1303。
步骤1303:接收设备对拆分后的多个音频采集设备采集的音频数据进行处理。
在一示例中,接收设备还与多个音频播放设备连接,接收设备可以将第一类型音频采集设备采集的音频数据转换为语音,并发给该语音发送给多个音频播放设备后期播放,接收设备可以将第二类型的音频采集设备采集的音频数据进行预设处理,得到多个音频采集设备的调整参数,并将该调整参数输出给对应的音频播放设备。
通过上述步骤1301~步骤1303可以通过一个数据传输通道接收两个及两个以上音频采集设备采集的音频数据,接收设备连接的一个数据传输通道对应多个音频采集设备,实现了数据传输通道的复用,有利于减少SOC芯片管脚的数量、且由于数据组合的长度要大于单个音频数据的长度,提升了数据传输通道的利用率,从而实现了提升数据传输效率。
应理解,图1所示的智能座舱系统中,DSP芯片还可以与音频播放设备连接,用于播放SOC芯片发送的音频数据,在SOC芯片的管脚数量有限时,SOC芯片作为发送设备也可以采用图4所示的数据传输方法将待传输的音频传输叠加为至少一个数据传输组合,并通过数据传输通道传输给DSP芯片,此时DSP芯片作为接收设备可以采用图13所示的数据传输方法,接收SOC芯片发送的至少一个数据组合,对接收的数据组合进行拆分,得到多个音频数据,并通过数据接口输出给对应的音频播放设备。
图4至图12详细描述了本申请所提供的数据传输的方法,下面将结合图14描述本申请所提供的数据传输装置。
图14为本申请提供的一种数据传输装置的结构示意图,如图所示,数据传输装置1400可以与多个数据采集接口和多个数据传输通道连接,每个数据采集设备与对应的音频采集设备连接,该数据传输装置1400具体包括获取单元1401、处理单元1402和传输单元1403,具体的:
获取单元1401,用于通过上述音频采集接口获取对应的音频采集设备采集到的音频数据;处理单元1402,用于将获取单元获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合,至少一个数据中的每个数据组合包括至少两个音频采集设备采集的音频数据,每个数据组合的长度小于或等于第一阈值,至少一个数据组合的数量小于或等于多个数据传输通道的数量;传输单元1403,用于将每个数据组合通过多个数据传输通道中的一个数据传输通道发出。
可选地,处理单元1402还用于:将获取单元1401获取到的音频数据中音频数据的长度等于第一阈值的音频数据,通过多个数据传输通道中用于传输至少一个数据组合外的数据传输通道发出。
应理解,若至少一个数据组合的数量大于1,用于发出至少一个数据组合中的任意两个数据组合的数据传输通道不相同。
可选地,传输单元1403具体用于:利用数据组合序号与数据传输通道序号的对应关系中,将每个数据组合通过对应序号的数据传输通道传输。
可选地,处理单元1402具体用于:基于预先设置的叠加规则,将获取单元1401获取 到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合。其中,叠加规则是根据每一个音频采集设备的采集深度设置的、且音频采集设备的采集深度与音频采集设备采集的音频数据的长度一对一。
可选地,在所述获取单元1401通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,处理单元1402还用于:通过传输单元1403接收来自接收设备的第一控制指令;第一控制指令中包含用于调整对应的音频采集设备的采集深度的第一目标参数;控制获取单元1401将第一控制指令发送给对应的音频采集设备;以及基于第一目标参数设置叠加规则,并将叠加规则通过传输单元1403发送给接收设备。
可选地,在所述获取单元1401通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,处理单元1402还用于:通过传输单元1403接收来自接收设备的第二控制指令和叠加规则;第二控制指令中包含用于调整对应的音频采集设备的采集深度的第二目标参数;控制获取单元1401将第二控制指令发送给对应的音频采集设备。
可选地,叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
图13详细描述了本申请所提供的数据传输的方法,下面将结合图15描述本申请所提供的数据传输装置。
图15为本申请提供的一种数据传输装置的结构示意图,如图所示,数据传输装置1500可以通过多个数据传输通道与发送设备连接,该数据传输装置1500具体包括收发单元1501、拆分单元1502和处理单元1503,具体的:
收发单元1501,用于接收多个数据传输通道传输的至少一个数据组合,至少一个数据组合中的每个数据组合通过多个数据传输通道中的一个数据传输通道传输,每个数据组合中包括至少两个音频采集设备采集的音频数据,音频采集设备通过对应的数据采集接口与发送设备连接;拆分单元1502,用于对收发单元1501接收的至少一个数据组合进行拆分,得到多个音频采集设备采集的音频数据;处理单元1503,用于对拆分后的多个音频采集设备采集的音频数据进行处理。
可选地,拆分单元1502具体用于:接收设备根据预先设置的叠加规则,对收发单元接收的至少一个数据组合进行拆分。其中,叠加规则是根据每一个音频采集设备的采集深度设置的、且音频采集设备的采样深度与音频采集设备采集的音频数据的长度一对一。
可选地,拆分单元1502具体用于:利用数据组合序号与数据传输通道序号的对应关系,确定每个数据组合的序号;根据每个数据组合的序号以及叠加规则,对至少一个数据组合进行拆分。
可选地,在收发单元1501接收多个数据传输通道传输的至少一个数据组合之前,处理单元1503还用于:通过收发单元1501向发送设备发送第一控制指令;第一控制指令中包含用于调整与发送设备连接的数据采集设备的采集深度的第一目标参数;收发单元1501还用于:接收发送设备发送的基于第一目标参数设置的叠加规则。
可选地,在收发单元1501接收多个数据传输通道传输的至少一个数据组合之前,处理单元1503还用于:通过收发单元1501向发送设备发送第二控制指令和叠加规则;第二控制指令中包含用于调整与发送设备连接的数据采集设备的采集深度的第二目标参数。
可选地,叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
应理解的是,本申请实施例的数据传输装置1400和1500可以通过专用集成电路(application-specific integrated circuit,ASIC)实现,或可编程逻辑器件(programmable logic  device,PLD)实现,上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD),现场可编程门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。也可以通过软件实现图4或图13所示数据传输方法时,数据传输装置1400和1500及其各个模块也可以为软件模块。
根据本申请实施例的数据传输装置1400和1500可对应于执行本申请实施例中描述的方法,并且数据传输装置1400和数据传输装置1500中的各个单元的上述和其它操作和/或功能分别为了实现图4或图13中的各个方法的相应流程,为了简洁,在此不再赘述。
图16为本申请实施例提供的一种电子设备的结构示意图,电子设备应用于如图1所示的智能座舱系统中,用于实现如图4或图13所示的数据传输方法。参阅图16所示,电子设备1600可以包括:处理器1601、存储器1602和总线1603。其中,处理器1601和存储器1602通过总线1603进行通信,也可以通过无线传输等其他手段实现通信。该存储器1602用于存储指令,该处理器1601用于执行该存储器1602存储的指令。该存储器1602存储程序代码,且处理器1601可以调用存储器1602中存储的程序代码执行图4所示的数据传输方法;或者执行图9所示的数据传输方法。
可选地,图16所示的电子设备1600还包括内存1604和通信接口1605,其中,内存1604可以与处理器1601物理集成在一起,或在处理器1601内或以独立单元形式存在。计算机程序可以存储至内存1604或存储器1602。可选地,存储至存储器1602的计算机程序代码(例如,要调试的程序等)被复制到内存1604,进而由处理器1601执行。
应理解,在本申请实施例中,该处理器1601可以是中央处理器(central processing unit,CPU),该处理器1601还可以是其他通用处理器、数字信号处理器(digital signal processing,DSPDSP)、专用集成电路(application-specific integrated circuit,ASIC)、可编程逻辑器件(programmable logic device,PLD);上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合;或者该处理器1601可以是其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者是任何常规的处理器等。
该存储器1602可以包括只读存储器和随机存取存储器,并向处理器1601提供指令、程序和数据等。例如,程序可以包括程序代码,该程序代码包括计算机操作指令。存储器1602还可以包括非易失性随机存取存储器。例如,存储器1602还可以存储设备类型的信息。
该存储器1602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data date SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct  rambus RAM,DR RAM)。
该总线1603除包括数据总线之外,还可以包括地址总线、电源总线、控制总线和状态信号总线等。该总线1603可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended Industry standard architecture,EISA)总线等,也可以是控制区域网络(controller area network,CAN),还可以是车载以太(Ethernet),或者其他内部总线实现图16所示的各个器件/设备的连接。但是为了清楚说明起见,在图16中将各种总线都标为总线1603。为便于表示,图16中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
应理解,根据本申请实施例的电子设备1600可对应于本申请实施例中的数据传输装置1400或本申请实施例中的数据传输装置1500,并可以对应于执行图4或图13所示方法中的控制器作为主体的操作步骤,并且电子设备1600中的各个模块的上述和其它操作和/或功能分别为了实现图4或图13中的各个方法的相应流程,为了简洁,在此不再赘述。
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘(solid state drive,SSD)。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请的技术方案的目的。
以上,仅为本申请的具体实施方式。熟悉本技术领域的技术人员根据本申请提供的具体实施方式,可想到变化或替换,都应涵盖在本申请的保护范围之内。

Claims (30)

  1. 一种数据传输方法,其特征在于,应用于发送设备,所述发送设备分别与多个数据采集接口和多个数据传输通道连接,每个数据采集接口用于与对应的音频采集设备连接,所述方法包括:
    所述发送设备通过所述多个数据采集接口获取对应的音频采集设备采集到的音频数据;
    所述发送设备将获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合,所述至少一个数据组合中的每个数据组合包括至少两个音频采集设备采集到的音频数据,所述每个数据组合的长度小于或等于所述第一阈值,所述至少一个数据组合的数量小于或等于所述多个数据传输通道的数量;
    所述发送设备将所述每个数据组合通过所述多个数据传输通道中的一个数据传输通道发出。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    所述发送设备将获取到的音频数据中音频数据的长度等于所述第一阈值的音频数据,通过所述多个数据传输通道中用于传输所述至少一个数据组合外的数据传输通道发出。
  3. 如权利要求1或2所述的方法,其特征在于,所述至少一个数据组合的数量大于1,用于发出所述至少一个数据组合中的任意两个数据组合的数据传输通道不相同。
  4. 如权利要求1-3中任一项所述的方法,其特征在于,在所述发送设备将所述每个数据组合通过所述多个数据传输通道中的一个数据传输通道发出,包括:
    根据数据组合序号与数据传输通道序号的对应关系,将所述每个数据组合通过对应序号的数据传输通道发出。
  5. 如权利要求1-4中任一项所述的方法,其特征在于,所述发送设备将获取到的音频数据中音频数据的长度小于第一阈值的音频数据,进行叠加得到至少一个数据组合,包括:
    基于预先设置的叠加规则,所述发送设备将获取到的音频数据中音频数据的长度小于所述第一阈值的音频数据,进行叠加得到所述至少一个数据组合。
  6. 如权利要求5所述的方法,其特征在于,在所述发送设备通过所述多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,还包括:
    所述发送设备通过所述多个数据传输通道中的至少一个数据传输通道接收来自接收设备的第一控制指令,所述第一控制指令中包含用于调整对应的音频采集设备的采集深度的第一目标参数;
    所述发送设备通过所述多个数据采集接口将所述第一控制指令发送给对应的音频采集设备;
    所述发送设备基于所述第一目标参数设置所述叠加规则,并将所述叠加规则通过所述多个数据传输通道中的至少一个数据传输发送给所述接收设备。
  7. 如权利要求5所述的方法,其特征在于,在所述发送设备通过所述多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,还包括:
    所述发送设备通过所述多个数据传输通道中的至少一个数据传输通道接收来自接收设备的第二控制指令和所述叠加规则,所述第二控制指令中包含用于调整对应的音频采集设备的采集深度的第二目标参数;
    所述发送设备通过所述多个数据采集接口将所述第二控制指令发送给对应的音频采集设备。
  8. 如权利要求5-7中任一项所述的方法,其特征在于,所述叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
  9. 一种数据传输方法,其特征在于,应用于接收设备,所述接收设备通过多个数据传输通道与发送设备连接,包括:
    所述接收设备接收所述多个数据传输通道传输的至少一个数据组合;所述至少一个数据组合中的每个数据组合通过所述多个数据传输通道中的一个数据传输通道传输,所述每个数据组合中包括至少两个音频采集设备采集的音频数据;所述音频采集设备通过对应的数据采集接口与所述发送设备连接;
    所述接收设备对接收的所述至少一个数据组合进行拆分,得到多个音频采集设备采集的音频数据;
    所述接收设备对拆分后的多个音频采集设备采集的音频数据进行处理。
  10. 如权利要求9所述的方法,其特征在于,所述接收设备对接收的所述至少一个数据组合进行拆分,包括:
    所述接收设备根据预先设置的叠加规则,对接收的所述至少一个数据组合进行拆分。
  11. 如权利要求10所述的方法,其特征在于,所述接收设备根据预先设置的叠加规则,对接收的所述至少一个数据组合进行拆分,包括:
    利用数据组合序号与数据传输通道序号的对应关系,确定所述每个数据组合的序号;
    根据所述每个数据组合的序号以及所述叠加规则,对所述至少一个数据组合进行拆分。
  12. 如权利要求10或11所述的方法,其特征在于,所述接收设备接收所述多个数据传输通道传输的至少一个数据组合之前,还包括:
    通过所述多个数据传输通道中的至少一个数据传输通道向所述发送设备发送第一控制指令;所述第一控制指令中包含用于调整与所述发送设备连接的音频采集设备的采集深度的第一目标参数;
    通过所述多个数据传输通道中的至少一个数据传输通道接收所述发送设备发送的基于所述第一目标参数设置的叠加规则。
  13. 如权利要求10或11所述的方法,其特征在于,所述接收设备接收所述多个数据传输通道传输的至少一个数据组合之前,还包括:
    通过所述多个数据传输通道中的至少一个数据传输通道向所述发送设备发送第二控制指令和所述叠加规则;所述第二控制指令中包含用于调整所述多个数据采集设备的采集深度的第二目标参数。
  14. 如权利要求10-13中任一项所述的方法,其特征在于,所述叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
  15. 一种数据传输装置,其特征在于,所述数据传输装置与多个数据采集接口和多个数据传输通道连接,每个数据采集接口与对应的音频采集设备连接,所述数据传输装置包括:
    获取单元,用于通过多个数据采集接口获取对应的音频采集设备采集到的音频数据;
    处理单元,用于将所述获取单元获取到的音频数据中音频数据的长度小于所述第一阈值的音频数据,进行叠加得到至少一个数据组合;所述至少一个数据组合中的每个数据组 合包括至少两个音频采集设备采集到的音频数据,所述每个数据组合的长度小于或等于所述第一阈值,所述至少一个数据组合的数量小于或等于所述多个数据传输通道的数量;
    传输单元,用于将所述每个数据组合通过多个数据传输通道中的一个数据传输通道发出。
  16. 如权利要求15所述的装置,其特征在于,所述传输单元还用于:将所述获取单元获取到的音频数据中音频数据的长度等于所述第一阈值的音频数据,通过所述多个数据传输通道中用于传输所述至少一个数据组合外的数据传输通道发出。
  17. 如权利要求15或16所述的装置,其特征在于,所述至少一个数据组合的数量大于1,用于发出所述至少一个数据组合中的任意两个数据组合的数据传输通道不相同。
  18. 如权利要求15-17中任一项所述的装置,其特征在于,所述传输单元还用于:
    根据数据组合序号与数据传输通道序号的对应关系,将所述每个数据组合通过对应序号的数据传输通道发出。
  19. 如权利要求15-18中任一项所述的装置,其特征在于,所述处理单元具体用于:
    基于预先设置的叠加规则,将所述获取单元获取到的音频数据中音频数据的长度小于所述第一阈值的音频数据,进行叠加得到至少一个数据组合。
  20. 如权利要求19所述的装置,其特征在于,在所述获取单元通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,所述处理单元还用于:
    通过所述传输单元接收来自接收设备的第一控制指令;所述第一控制指令中包含用于调整对应的音频采集设备的采集深度的第一目标参数;
    控制所述获取单元将所述第一控制指令发送给对应的音频采集设备;以及
    基于所述第一目标参数设置所述叠加规则,并将所述叠加规则通过所述传输单元发送给所述接收设备。
  21. 如权利要求19所述的装置,其特征在于,在所述获取单元通过多个数据采集接口获取对应的音频采集设备采集到的音频数据之前,所述处理单元还用于:
    通过所述传输单元接收来自接收设备的第二控制指令和所述叠加规则;所述第二控制指令中包含用于控制对应的音频采集设备的采集深度的第二目标参数;
    控制所述获取单元将所述第二控制指令发送给对应的音频采集设备。
  22. 如权利要求19-21中任一项所述的装置,其特征在于,所述叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
  23. 一种数据传输装置,其特征在于,所述数据传输装置通过所述多个数据传输通道与发送设备连接,包括:
    收发单元,用于接收所述多个数据传输通道传输的至少一个数据组合;所述至少一个数据组合中的每个数据组合通过多个数据传输通道中的一个数据传输通道传输,所述每个数据组合中包括至少两个音频采集设备采集的音频数据;所述音频采集设备通过对应的数据采集接口与所述发送设备连接;
    拆分单元,用于对所述收发单元接收的所述至少一个数据组合进行拆分,得到多个音频采集设备采集的音频数据;
    处理单元,用于对拆分后的多个音频采集设备采集的音频数据进行处理。
  24. 如权利要求23所述的装置,其特征在于,所述拆分单元具体用于:
    根据预先设置的叠加规则,对所述收发单元接收的至少一个数据组合进行拆分。
  25. 如权利要求24所述的装置,其特征在于,所述拆分单元具体用于:利用数据组合序号与数据传输通道序号的对应关系,确定所述每个数据组合的序号;
    根据所述每个数据组合的序号以及所述叠加规则,对所述至少一个数据组合进行拆分。
  26. 如权利要求24或25所述的装置,其特征在于,在所述收发单元接收所述多个数据传输通道传输的至少一个数据组合之前,所述处理单元还用于:
    通过所述收发单元向所述发送设备发送第一控制指令;所述第一控制指令中包含用于调整与所述发送设备连接的音频采集设备的采集深度的第一目标参数;
    所述收发单元还用于:接收所述发送设备发送的基于所述第一控制指令设置的叠加规则。
  27. 如权利要求24或25所述的装置,其特征在于,在所述收发单元接收所述多个数据传输通道传输的至少一个数据组合之前,所述处理单元还用于:
    通过所述收发单元向所述发送设备发送第二控制指令和所述叠加规则;所述第二控制指令中包含用于调整与所述发送设备连接的音频采集设备的采集深度的第二目标参数。
  28. 如权利要求23-27中任一项所述的装置,其特征在于,所述叠加规则中包括音频数据的叠加顺序以及被叠加的音频数据的长度。
  29. 一种电子设备,其特征在于,包括处理器和存储器,所述存储器中存储有指令,所述处理器执行所述指令时,使得所述装置执行权利要求1-8中任一项所述的方法,或者权利要求9-14中任一项所述的方法。
  30. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被计算机执行时,使所述计算机执行如权利要求1-8任一项所述的方法或者如权利要求9-14任一项所述的方法。
PCT/CN2021/074551 2021-01-30 2021-01-30 一种数据传输方法、装置、电子设备和存储介质 Ceased WO2022160312A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP21921913.6A EP4283891A4 (en) 2021-01-30 2021-01-30 Data transmission method and apparatus, and electronic device and storage medium
CN202180000255.6A CN112703689B (zh) 2021-01-30 2021-01-30 一种数据传输方法、装置、电子设备和存储介质
PCT/CN2021/074551 WO2022160312A1 (zh) 2021-01-30 2021-01-30 一种数据传输方法、装置、电子设备和存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/074551 WO2022160312A1 (zh) 2021-01-30 2021-01-30 一种数据传输方法、装置、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2022160312A1 true WO2022160312A1 (zh) 2022-08-04

Family

ID=75515760

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/074551 Ceased WO2022160312A1 (zh) 2021-01-30 2021-01-30 一种数据传输方法、装置、电子设备和存储介质

Country Status (3)

Country Link
EP (1) EP4283891A4 (zh)
CN (1) CN112703689B (zh)
WO (1) WO2022160312A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116467096A (zh) * 2023-04-21 2023-07-21 无锡车联天下信息技术有限公司 一种核间通信的数据传输方法、系统以及通信内核
CN119603154A (zh) * 2024-11-22 2025-03-11 广东电网有限责任公司 一种基于边缘集群体系下动态扩容的前置采集方法及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890712A (zh) * 2021-10-14 2022-01-04 微位(深圳)网络科技有限公司 数据传输方法、装置、电子设备及可读存储介质
CN114978356B (zh) * 2022-04-29 2023-08-29 歌尔股份有限公司 基于音频进行多频道数据传输方法、设备及存储介质
CN115150373A (zh) * 2022-05-31 2022-10-04 深圳市东微智能科技股份有限公司 音频传输方法、终端设备及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204406122U (zh) * 2015-02-15 2015-06-17 科大讯飞股份有限公司 音频信号处理装置
CN105261365A (zh) * 2015-09-15 2016-01-20 北京云知声信息技术有限公司 一种音频输出方法及装置
WO2019094497A1 (en) * 2017-11-07 2019-05-16 Qualcomm Incorporated Audio output diagnostic circuit
CN110349584A (zh) * 2019-07-31 2019-10-18 北京声智科技有限公司 一种音频数据传输方法、装置和语音识别系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN209314031U (zh) * 2019-03-01 2019-08-27 科立讯通信股份有限公司 音频复用电路

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204406122U (zh) * 2015-02-15 2015-06-17 科大讯飞股份有限公司 音频信号处理装置
CN105261365A (zh) * 2015-09-15 2016-01-20 北京云知声信息技术有限公司 一种音频输出方法及装置
WO2019094497A1 (en) * 2017-11-07 2019-05-16 Qualcomm Incorporated Audio output diagnostic circuit
CN110349584A (zh) * 2019-07-31 2019-10-18 北京声智科技有限公司 一种音频数据传输方法、装置和语音识别系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4283891A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116467096A (zh) * 2023-04-21 2023-07-21 无锡车联天下信息技术有限公司 一种核间通信的数据传输方法、系统以及通信内核
CN116467096B (zh) * 2023-04-21 2024-05-31 无锡车联天下信息技术有限公司 一种核间通信的数据传输方法、系统以及通信内核
CN119603154A (zh) * 2024-11-22 2025-03-11 广东电网有限责任公司 一种基于边缘集群体系下动态扩容的前置采集方法及系统

Also Published As

Publication number Publication date
CN112703689A (zh) 2021-04-23
EP4283891A4 (en) 2024-03-06
EP4283891A1 (en) 2023-11-29
CN112703689B (zh) 2022-07-19

Similar Documents

Publication Publication Date Title
WO2022160312A1 (zh) 一种数据传输方法、装置、电子设备和存储介质
CN105786736A (zh) 一种多芯片级联的方法、芯片和装置
EP2985699B1 (en) Memory access method and memory system
CN112732636A (zh) 基于多fpga的芯片原型验证系统的配置方法、装置和设备
CN204406122U (zh) 音频信号处理装置
CN113870912A (zh) 一种录音方法、装置、设备及存储介质
WO2020087276A1 (zh) 大数据运算加速系统和芯片
WO2016192211A1 (zh) 片间互联的发送、接收装置及发送、接收方法及系统
CN115687220B (zh) 多服务器标识的识别电路、识别方法、电子设备、存储介质
CN214586880U (zh) 一种信息处理设备
CN105389156A (zh) 一种基于dma技术降低声音输入至输出延迟的方法和系统
CN111274193A (zh) 数据处理装置及方法
EP3772212B1 (en) Data access method and apparatus, and electronic device
CN115134427B (zh) 通信协议协调方法、装置、计算机设备和存储介质
CN110362347B (zh) 一种实时优先级多通道处理器及控制方法
US7526595B2 (en) Data path master/slave data processing device apparatus and method
WO2023016407A1 (zh) 数据传输方法、系统、装置及设备
JPH02219151A (ja) コンピユータ入出力システムおよびそのチャネル診断方法
US12284503B2 (en) Audio latency calibration method, electronic device and computer-readable storage medium
US20250123981A1 (en) Communication method performed on network-on-chip
CN115811448B (zh) 一种axi总线与emif总线时序转换连接方法
CN105206282B (zh) 一种噪音采集方法及装置
CN115226000B (zh) 扬声器信号处理方法、装置、计算机设备及存储介质
WO2020087278A1 (zh) 大数据运算加速系统及方法
CN1645347B (zh) 动态调整高速周边元件连接接口的根端口传输资料的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21921913

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2021921913

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021921913

Country of ref document: EP

Effective date: 20230825