Data transmission method and device, chip, electronic equipment and traffic equipment
By implementing inter-core communication and audio track management on multi-core heterogeneous chips, the problem of real-time audio transmission between different hardware domains in the car cockpit is solved, and low-latency and efficient audio sharing is achieved.
Patent Information
- Application Number
- CN202411216072.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-02-07
AI Technical Summary
Between independent hardware domains in the cabin, existing audio projection technology has the problem of insufficient real-time transmission and high latency, and it is difficult to achieve real-time audio transmission across domains.
By implementing the data transmission method on a multi-core heterogeneous chip, using inter-core communication between the first processor core and the second processor core, audio tracks are created and their properties are configured to determine the transmission channel of the target output device, and directly Transfer audio data stream to the target output device.
Real-time audio transmission between different hardware domains is realized, which reduces latency and improves the real-time and efficiency of audio sharing.
Smart Images

Figure CN119396356A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission, and in particular to a data transmission method, device, chip, electronic equipment and transportation equipment. Background Art
[0002] There are multiple seats in the car cockpit. In addition to the driver's seat, other passenger seats may also be equipped with independent screens and headphones. When a passenger needs to share an interesting audio or video content with other passengers, audio projection technology is needed. At present, the implementation of audio projection technology is to transmit audio through Bluetooth devices or the Internet. Transmitting audio and video through these methods often has problems such as insufficient real-time transmission and high latency, and audio can often only be transmitted between different devices. The independent screens and headphones in the car cockpit are connected to different systems, and these systems run in different hardware domains. Therefore, how to perform real-time audio transmission in different hardware domains is an urgent problem that needs to be solved. Summary of the invention
[0003] The present application provides a data transmission method, device, chip, electronic equipment and transportation equipment.
[0004] On the one hand, an embodiment of the present application provides a data transmission method, the method is applied to a multi-core heterogeneous chip including a first processor core and at least one second processor core, each processor core of the multi-core heterogeneous chip and the hardware resources connected to the processor core constitute a hardware domain, there is physical isolation between the hardware domains, the first processor core and the at least one second processor core both run a system and there is at least one corresponding output device, the system includes at least one application and an audio service component, the method includes:
[0005] The first processor core determines a target application and a target output device in response to a first operation of a user, wherein the target application is determined from at least one application in the first processor core system based on the first operation, and the target output device is determined from output devices corresponding to the at least one second processor core based on the first operation;
[0006] The first processor core creates an audio track based on the audio data stream of the target application, and configures properties of the audio track;
[0007] The first processor core determines, through the audio service component, a transmission channel corresponding to the target output device based on the attribute of the audio track;
[0008] The first processor core transmits the audio data stream in the audio track to the target output device through the transmission channel, and the audio data stream is used to be played through the target output device.
[0009] The attributes of the audio track include at least an audio type, and the first processor core creates an audio track based on the audio data stream of the target application and configures the attributes of the audio track, including:
[0010] If it is detected that the target application includes a preset identifier, an audio track is created based on the audio data stream of the target application, and the audio type of the audio track is configured as an output device identifier, wherein the preset identifier is generated by the target application based on the first operation, and the output device identifier is used to indicate the target output device.
[0011] The first processor core determines the transmission channel corresponding to the target output device based on the attribute of the audio track through the audio service component, including:
[0012] determining a target output device based on the output device identifier;
[0013] A corresponding transmission channel is determined based on the target output device.
[0014] The method further comprises:
[0015] The second processor core to which the target output device belongs generates an instruction based on the second operation in response to a second operation of the user, and sends the instruction to the first processor core through inter-core communication, wherein the instruction is used to perform a target operation, and the target operation at least includes modifying the property of the audio track;
[0016] The first processor core receives the instruction sent by the second processor core, and performs the target operation on the audio track based on the instruction.
[0017] The method further comprises:
[0018] The first processor core sends a shared audio instruction to a second processor core to which the target output device belongs;
[0019] The second processor core receives the shared audio instruction sent by the first processor core, and determines a playback decision based on the audio priority data and the attribute of at least one audio track in the second processor core;
[0020] The second processor core sends the play decision to the target output device, where the play decision is used to instruct the target output device to play or not play the audio data stream transmitted by the first processor.
[0021] Another aspect of the present application provides a data transmission device, the device comprising:
[0022] A processing module, configured to determine, in response to a first operation of a user, a target application and a target output device, wherein the target application is determined from at least one application in a first processor core system based on the first operation, and the target output device is determined from output devices corresponding to at least one second processor core based on the first operation; create an audio track based on an audio data stream of the target application, and configure properties of the audio track; and determine, through an audio service component, a transmission channel corresponding to the target output device based on the properties of the audio track;
[0023] The transmission module is used to transmit the audio data stream in the audio track to the target output device through the transmission channel, and the audio data stream is used to be played through the target output device.
[0024] Another aspect of the present application provides a chip, the chip comprising a processor, and the processor can execute the data transmission method.
[0025] Another aspect of the present application provides an electronic device, the electronic device includes a component, the component includes a chip, and the chip can execute the data transmission method.
[0026] Another aspect of the present application provides a traffic device, which includes a chip, and the chip can execute the data transmission method.
[0027] On the other hand, the present application provides a computer-readable storage medium storing executable instructions for implementing the data transmission method when executed by a processor.
[0028] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:
[0030] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0031] Figure 1 A schematic diagram of a car cabin according to an embodiment of the present application is shown;
[0032] Figure 2 A schematic diagram of a multi-core heterogeneous chip according to an embodiment of the present application is shown;
[0033] Figure 3A flow chart of a data transmission method according to an embodiment of the present application is shown;
[0034] Figure 4 A flow chart of a data transmission method according to another embodiment of the present application is shown;
[0035] Figure 5 A flow chart of a data transmission method according to another embodiment of the present application is shown;
[0036] Figure 6 A flow chart of a data transmission method according to another embodiment of the present application is shown;
[0037] Figure 7 A schematic diagram of the structure of a data transmission device according to an embodiment of the present application is shown;
[0038] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0039] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0040] In order to realize real-time audio transmission in different hardware domains, an embodiment of the present application provides a data transmission method, which is applied to a multi-core heterogeneous chip including a first processor core and at least one second processor core, each processor core of the multi-core heterogeneous chip and the hardware resources connected to the processor core constitute a hardware domain, and there is physical isolation between the hardware domains. The first processor core and the at least one second processor core both run a system and have at least one corresponding output device, and the system includes at least one application and an audio service component.
[0041] Multi-core heterogeneous chips include multiple hardware domains that are isolated from each other. The processor cores in each hardware domain are divided into large cores and small cores. The large core hardware set is suitable for running high-performance operating systems, while the small core is suitable for running low-performance, fast and more secure operating systems. Information is transmitted between different hardware domains through inter-core communication channels.
[0042] For example, Figure 1 As shown, Figure 1A car cockpit including a main speaker, a co-seat headset, a left rear seat headset, and a right rear seat headset is shown, wherein the driver is sitting in the main driver's seat. Passenger 1 is sitting in the co-seat, wearing co-seat headsets. Passenger 2 is sitting in the left rear seat, wearing left rear seat headsets. Passenger 3 is sitting in the right rear seat, wearing right rear seat headsets. Figure 2 As shown, the multi-core heterogeneous chip in the car cabin includes at least four processor cores, and each of the four processor cores runs a system, wherein the system run by one processor core is responsible for managing and controlling the main speaker, the system run by one processor core is responsible for managing and controlling the co-seat earphone, the system run by one processor core is responsible for managing and controlling the left rear seat earphone, and the system run by one processor core is responsible for managing and controlling the right rear seat earphone. When the driver is listening to the audio played by the main speaker and wants to share the audio with the passenger, the audio needs to be sent to the co-seat earphone for playback. However, the co-seat earphone and the main speaker are not in the same system, so they cannot be transmitted in the usual way.
[0043] In this embodiment, systems are running in both the first processor core and the second processor core, each system has at least one corresponding output device, and each system has at least one application and audio service component running.
[0044] In this embodiment, the system may be Android Auto (a Linux-based car system), CarLife (a Linux-based car system), AliOS (a Linux-based car system), etc. In other implementations, any other system may be used.
[0045] In this embodiment, the application running in the system may be a music player application, a radio application, a streaming media application, a voice assistant application, etc. In other implementations, the application may be any other application that can play or share audio data.
[0046] In this embodiment, the audio service component running in the Android Auto system is Android AudioFramework (the audio subsystem of Android Auto, which includes Audio Flinger, which is an audio service). The audio service component running in the CarLife system is the CarLife audio framework. The audio service component running in the AliOS system is the AliOS audio framework. In other implementations, the audio service component is generally determined based on the system.
[0047] like Figure 3 As shown, the method includes:
[0048] Step 101: The first processor core determines a target application and a target output device in response to a first operation of a user, wherein the target application is determined from at least one application in the first processor core system based on the first operation, and the target output device is determined from output devices corresponding to the at least one second processor core based on the first operation.
[0049] For the sake of accurate description, the processor core to which the target application belongs is described as the first processor core (sharer) throughout the text, and the processor core to which the target output device belongs is described as the second processor core (shared party).
[0050] For example, the user opens a target application in the first processor core system, and selects a shared target output device in the target application.
[0051] It should be noted that the present application does not limit the specific steps of the first operation, as long as the first operation can determine the target application and the target output device.
[0052] Step 102: The first processor core creates an audio track based on the audio data stream of the target application, and configures properties of the audio track.
[0053] Before sharing, you need to create a corresponding audio track based on the audio data stream to be shared, and configure the properties of the audio track. An audio track is an independent audio channel that contains sound content when recording, producing, or playing audio. In the system, you can manage and control the properties and playback of audio through audio tracks, and you can also identify audio and audio types through the properties of audio tracks.
[0054] Step 103: The first processor core determines, through the audio service component, a transmission channel corresponding to the target output device based on the attributes of the audio track.
[0055] Since there are multiple preset transmission channels, some transmission channels transmit audio data to the output device corresponding to the first processor core, and some transmission channels transmit audio data to the transmission devices corresponding to other processor cores. Therefore, when configuring the properties of the audio track, you can create a new property or modify the value of the old property to mark the transmission channel corresponding to the audio track. After receiving the audio track, the audio service component can determine the transmission channel corresponding to the target output device based on the properties of the audio track.
[0056] For example, when configuring the properties of an audio track, modify the "AudioUsage" (audio type, a preset property in the Android Auto audio service component) property of the audio track to "front passenger earphones". After receiving the audio track, the audio service component determines that the corresponding transmission channel is the transmission channel for transmitting audio data to the front passenger earphones through the value of the "AudioUsage" property.
[0057] For another example, when configuring the properties of an audio track, a new property "audio track sharing device" is created in the properties of the audio track, and the value of the property is set to "left rear seat earphone". After receiving the audio track, the audio service component determines the corresponding transmission channel as the transmission channel for transmitting audio data to the left rear seat earphone through the value of the "audio track sharing device" property.
[0058] It should be noted that if the user selects multiple target output devices through the first operation, it is necessary to create multiple corresponding audio tracks, configure the properties of the audio tracks respectively, determine the corresponding transmission channels respectively, and transmit them to the multiple target output devices respectively through these transmission channels.
[0059] For example, the user selects the target application through the first operation, and the target output devices are the front passenger earphone and the left rear seat earphone. Create track A based on the audio data stream of the target application, and modify the "AudioUsage" property of track A to "front passenger earphone". Create track B based on the audio data stream of the target application, and modify the "AudioUsage" property of the track to "left rear seat earphone". The audio service component receives track A, and determines that the target output device is the front passenger earphone based on the "AudioUsage" property of track A, determines the transmission channel A corresponding to the front passenger earphone, and transmits the audio data stream in track A to the front passenger earphone through transmission channel A for playback. The audio service component receives track B, and determines that the target output device is the left rear seat earphone based on the "AudioUsage" property of track B, determines the transmission channel B corresponding to the left rear seat earphone, and transmits the audio data stream in track B to the left rear seat earphone through transmission channel B for playback.
[0060] Step 104: The first processor core transmits the audio data stream in the audio track to the target output device through the transmission channel, and the audio data stream is used to be played through the target output device.
[0061] After determining the corresponding transmission channel, the audio service component transmits the audio data stream in the audio track to the target output device through the transmission channel. After receiving the audio data stream, the target output device plays the audio based on the audio data stream. It should be pointed out that the technical solution of the present application is not implemented by cross-domain data transmission, but by directly transmitting the audio data applied in the first processor core system to the target output device through the transmission channel (such as directly transmitting the audio data to the codec (codec) for decoding, and then the player plays the decoded audio data) for playback, thereby realizing cross-domain audio sharing.
[0062] In the above scheme, after the user selects the target application and the target output device, by creating the audio track of the target application audio data stream and configuring the properties of the audio track, the audio service component can determine which output device the audio track needs to be shared with based on the properties of the audio track and determine the corresponding transmission channel. Finally, the audio data stream in the audio track is transmitted to the target output device through the corresponding transmission channel, and the shared audio is played through the target output device, realizing real-time audio transmission in different hardware domains.
[0063] In an example of the present application, a data transmission method is also provided, wherein the attributes of the audio track include at least an audio type, and the first processor core creates an audio track based on the audio data stream of the target application and configures the attributes of the audio track, including:
[0064] If it is detected that the target application includes a preset identifier, an audio track is created based on the audio data stream of the target application, and the audio type of the audio track is configured as an output device identifier, wherein the preset identifier is generated by the target application based on the first operation, and the output device identifier is used to indicate the target output device.
[0065] Through the user's first operation, the target application can know that its own audio data stream needs to be shared with output devices in other hardware domains, so the target application will mark itself with a preset identifier. After detecting that the target application contains the preset identifier, the system will create an audio track based on the audio data stream of the target application and configure the audio type of the audio track as the output device identifier, which can indicate the target output device.
[0066] For example, when configuring the properties of an audio track, modify the "AudioUsage" (audio type, a preset property in the Android Auto audio service component) property of the audio track to "front passenger earphones". The value of the "AudioUsage" property (output device identifier) indicates that the target output device is the front passenger earphones.
[0067] In the above solution, when creating the audio track of the target application audio data stream, the audio type of the audio track is configured to indicate the output device identifier of the target output device. This enables the audio service component to determine which output device the audio track needs to be shared with based on the audio type of the audio track, and then determine the corresponding transmission channel. Moreover, this solution does not need to create new audio track attributes, and can achieve cross-domain audio sharing without modifying the application code, which reduces the complexity of development and the amount of data.
[0068] In an example of the present application, a data transmission method is also provided, such as Figure 4 As shown, the first processor core determines the transmission channel corresponding to the target output device based on the attribute of the audio track through the audio service component, including:
[0069] Step 201: determine a target output device based on the output device identifier.
[0070] For example, after receiving the audio track, the audio service component determines that the value of the "AudioUsage" attribute of the audio track is "passenger driver's earphones", and then determines that the target output device is the passenger driver's earphones.
[0071] Step 202: determining a corresponding transmission channel based on the target output device.
[0072] Following the above example, after determining that the target output device is the front passenger earphone, the transmission channel corresponding to the front passenger earphone is determined as the corresponding transmission channel.
[0073] In the above solution, the audio service component can determine the target output device through the value of the audio type attribute in the audio track (ie, the output device identifier), and then determine the corresponding transmission channel, thereby achieving real-time audio transmission in different hardware domains.
[0074] In an example of the present application, a data transmission method is also provided, such as Figure 5 As shown, the method also includes:
[0075] Step 301: The second processor core to which the target output device belongs generates an instruction based on a second operation of the user in response to the second operation, and sends the instruction to the first processor core through inter-core communication, wherein the instruction is used to execute the target operation, and the target operation at least includes modifying the properties of the audio track.
[0076] If the shared user needs to operate the audio, a second operation may be performed in the system of the second processor core to which the target output device belongs.
[0077] For example, the second operation is that the user modifies the volume of the shared audio in the system, and the second processor core generates an instruction based on the operation.
[0078] Likewise, the present application does not limit the specific steps of the second operation, as long as the second operation can determine the user's purpose.
[0079] After generating the instruction, the second processor core sends the instruction to the first processor core through inter-core communication.
[0080] The target operation is designated to be performed, and the target operation at least includes modifying the properties of the audio track. In this embodiment, modifying the properties of the audio track may be modifying the volume, progress, pause, resume, stop, etc. of the audio in the audio track. In other implementations, any property of the audio track may be modified, and the specific setting may be based on demand.
[0081] Step 302: The first processor core receives the instruction sent by the second processor core, and performs the target operation on the audio track based on the instruction.
[0082] Although the audio properties and playback can be managed and controlled through the audio track, after sharing, the audio track needs to be managed and controlled in the system of the first processor core.
[0083] In the above solution, the user performs the second operation in the system of the second processor core to which the target output device belongs, generates a corresponding instruction, and then sends the instruction to the first processor core through inter-core communication, so that the target operation is performed based on the instruction. In this way, the properties and playback of the audio are managed and controlled in the system of the second processor core.
[0084] In an example of the present application, a data transmission method is also provided, such as Figure 6 As shown, the method also includes:
[0085] Step 401: The first processor core sends a shared audio instruction to the second processor core to which the target output device belongs.
[0086] After determining to share the audio with the target output device, the first processor core sends a sharing audio instruction to the second processor core to which the target output device belongs.
[0087] Step 402: The second processor core receives the shared audio instruction sent by the first processor core, and determines a playback decision based on the audio priority data and the attributes of at least one audio track in the second processor core.
[0088] Since at least one audio track may exist in the system of the second processor core and is being played through the target output device, when the system of the first processor core shares audio with the target output device, a shared audio instruction needs to be sent to the system of the second processor core to which the target output device belongs. After receiving the shared audio instruction, the system of the second processor core determines a playback decision based on the audio priority data and the attributes of at least one audio track in the system of the second processor core.
[0089] For example, the system of the second processor core has audio track A and audio track B, the audio type of audio track A is navigation, the audio type of audio track B is music, and the audio type of the audio shared by the first processor core is shared. Based on the audio priority data, the audio type of navigation has a higher priority than the other two types, so the playback decision is determined to play the audio in audio track A.
[0090] Step 403: The second processor core sends the play decision to the target output device, where the play decision is used to instruct the target output device to play or not play the audio data stream transmitted by the first processor.
[0091] In the above scheme, when audio is shared, there may be existing audio tracks in the system of the shared second processor core, and they are being played through the target output device. These audio tracks may be navigation, prompt sounds, music and other audios. In the car system, these different types of audio have different priorities. Therefore, it is necessary to sort these audios based on the audio priority data, and then play the audio with a higher priority to prevent the audio with a high priority (such as navigation or prompt sounds, etc.) from being covered by the audio with a low priority, so that the user ignores important information.
[0092] It should be noted that, for the same output device, not only one audio can be played at the same time. If the audio priority data indicates that multiple audios can coexist, the multiple audios can be played simultaneously through the output device.
[0093] In order to implement the above data transmission method, Figure 7 As shown, an example of the present application provides a data transmission device, including:
[0094] The processing module 10 is used to determine a target application and a target output device in response to a first operation of a user, wherein the target application is determined from at least one application in a first processor core system based on the first operation, and the target output device is determined from output devices corresponding to at least one second processor core based on the first operation; create an audio track based on an audio data stream of the target application, and configure properties of the audio track; and determine a transmission channel corresponding to the target output device based on the properties of the audio track through an audio service component;
[0095] The transmission module 20 is used to transmit the audio data stream in the audio track to the target output device through the transmission channel, and the audio data stream is used to be played through the target output device.
[0096] Among them, the processing module 10 is also used to detect that the target application contains a preset identifier, then create an audio track based on the audio data stream of the target application, and configure the audio type of the audio track as an output device identifier, the preset identifier is generated by the target application based on the first operation, and the output device identifier is used to indicate the target output device.
[0097] The processing module 10 is further configured to determine a target output device based on the output device identifier; and determine a corresponding transmission channel based on the target output device.
[0098] Among them, the transmission module 20 is also used to respond to the user's second operation, generate an instruction based on the second operation, and send the instruction to the first processor core through inter-core communication, the instruction is used to perform a target operation, and the target operation at least includes modifying the properties of the audio track; and receive the instruction sent by the second processor core, and perform the target operation on the audio track based on the instruction.
[0099] Among them, the transmission module 20 is also used to send a shared audio instruction to the second processor core to which the target output device belongs; receive the shared audio instruction sent by the first processor core, and determine a playback decision based on the audio priority data and the attributes of at least one audio track in the second processor core; and send the playback decision to the target output device, and the playback decision is used to instruct the target output device to play or not play the audio data stream transmitted by the first processor.
[0100] The hardware structure diagram of the chip provided in the embodiment of the present application is as follows: Figure 8 As shown, the chip 500 includes at least one processor 510, a user interface 530, a memory 550 and a bus 540; the various components in the chip 500 are coupled together through the bus 540. It can be understood that the bus 540 is used to realize the connection and communication between these components. In addition to the data bus, the bus 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus 540.
[0101] The processor 510 can be built into a system on chip or an application specific integrated circuit (ASIC), or the processor 510 can be located on an independent semiconductor chip and has signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), a microprocessor, a microcontroller unit (MCU), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0102] The user interface 530 is used for interacting and exchanging information with the user.
[0103] The memory 550 stores executable instructions for implementing the data transmission method provided in the embodiment of the present application; the memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drive, optical disk drive, etc. The memory 550 may optionally include one or more storage devices that are physically far away from the processor 510.
[0104] In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof.
[0105] In some embodiments, the chip 500 may further include:
[0106] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, application layer, etc., for implementing various basic services and processing hardware-based tasks;
[0107] The network communication module 552 is used to reach other computing devices via one or more (wired or wireless) network interfaces 620. Exemplary network interfaces 520 include: Bluetooth, Wireless LAN (WiFi), and Universal Serial Bus (USB).
[0108] An embodiment of the present application also provides an electronic device, the electronic device includes components, the components include a chip, and the chip can execute the data transmission method provided by the embodiment of the present application.
[0109] In some optional embodiments, the component may be a chassis, a door, a main board, a dashboard, etc.
[0110] An embodiment of the present application also provides a transportation device, which includes a chip, and the chip can execute the data transmission method provided in the embodiment of the present application.
[0111] An embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the data transmission method provided by the embodiment of the present application.
[0112] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0113] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0114] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0115] An embodiment of the present application provides a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the data transmission method described in the present application is implemented.
[0116] The above are only embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A data transmission method, the method being applied to a multi-core heterogeneous chip including a first processor core and at least one second processor core, each processor core of the multi-core heterogeneous chip and the hardware resources connected to the processor core constitute a hardware domain, and there is physical isolation between the hardware domains, the first processor core and the at least one second processor core both run a system and have at least one corresponding output device, the system includes at least one application and an audio service component, and the method comprises: The first processor core determines a target application and a target output device in response to a first operation of a user, wherein the target application is determined from at least one application in the first processor core system based on the first operation, and the target output device is determined from output devices corresponding to the at least one second processor core based on the first operation; The first processor core creates an audio track based on the audio data stream of the target application, and configures properties of the audio track; The first processor core determines, through the audio service component, a transmission channel corresponding to the target output device based on the attribute of the audio track; The first processor core transmits the audio data stream in the audio track to the target output device through the transmission channel, and the audio data stream is used to be played through the target output device.
2. The method according to claim 1, wherein the attributes of the audio track at least include an audio type, and the first processor core creates an audio track based on the audio data stream of the target application and configures the attributes of the audio track, comprising: If it is detected that the target application includes a preset identifier, an audio track is created based on the audio data stream of the target application, and the audio type of the audio track is configured as an output device identifier, wherein the preset identifier is generated by the target application based on the first operation, and the output device identifier is used to indicate the target output device.
3. The method according to claim 2, wherein the first processor core determines the transmission channel corresponding to the target output device based on the attribute of the audio track through the audio service component, comprising: determining a target output device based on the output device identifier; A corresponding transmission channel is determined based on the target output device.
4. The method according to claim 1, further comprising: The second processor core to which the target output device belongs generates an instruction based on the second operation in response to a second operation of the user, and sends the instruction to the first processor core through inter-core communication, wherein the instruction is used to perform a target operation, and the target operation at least includes modifying the property of the audio track; The first processor core receives the instruction sent by the second processor core, and performs the target operation on the audio track based on the instruction.
5. The method according to claim 1, further comprising: The first processor core sends a shared audio instruction to a second processor core to which the target output device belongs; The second processor core receives the shared audio instruction sent by the first processor core, and determines a playback decision based on the audio priority data and the attribute of at least one audio track in the second processor core; The second processor core sends the play decision to the target output device, where the play decision is used to instruct the target output device to play or not play the audio data stream transmitted by the first processor.
6. A data transmission device, comprising: a processing module, configured to determine, in response to a first operation of a user, a target application and a target output device, wherein the target application is determined from at least one application in a first processor core system based on the first operation, and the target output device is determined from output devices corresponding to at least one second processor core based on the first operation; create an audio track based on an audio data stream of the target application, and configure properties of the audio track; and determining, through an audio service component, a transmission channel corresponding to the target output device based on the properties of the audio track; The transmission module is used to transmit the audio data stream in the audio track to the target output device through the transmission channel, and the audio data stream is used to be played through the target output device.
7. A chip, comprising a processor, wherein the processor is capable of executing the data transmission method according to any one of claims 1 to 5.
8. An electronic device, comprising a component, wherein the component comprises a chip, and the chip can execute the data transmission method according to any one of claims 1 to 5.
9. A transportation device, comprising a chip, wherein the chip can execute the data transmission method according to any one of claims 1 to 5.
10. A computer-readable storage medium storing executable instructions for implementing the data transmission method according to any one of claims 1 to 5 when executed by a processor.