WO2022247495A1 - Audio focus control method and related apparatus - Google Patents

Audio focus control method and related apparatus Download PDF

Info

Publication number
WO2022247495A1
WO2022247495A1 PCT/CN2022/086102 CN2022086102W WO2022247495A1 WO 2022247495 A1 WO2022247495 A1 WO 2022247495A1 CN 2022086102 W CN2022086102 W CN 2022086102W WO 2022247495 A1 WO2022247495 A1 WO 2022247495A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
mobile terminal
application
focus
terminal
Prior art date
Application number
PCT/CN2022/086102
Other languages
French (fr)
Chinese (zh)
Inventor
谢东
方贇
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022247495A1 publication Critical patent/WO2022247495A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Abstract

Provided in the present application are an audio focus control method and a related apparatus. The method comprises the steps: a mobile terminal receiving a first instruction input by a user, wherein the first instruction is used for requesting the playing of audio information in a first application in the mobile terminal; the mobile terminal sending audio focus request information to an in-vehicle terminal, wherein the audio focus request information is used for requesting an audio focus of an acoustic device on the in-vehicle terminal, and an operating system of the mobile terminal and an operating system of the in-vehicle terminal constitute a distributed operating system; the mobile terminal receiving audio focus request response information sent by the in-vehicle terminal, wherein the audio focus request response information is used for indicating whether the mobile terminal successfully requests the audio focus of the acoustic device; and when the mobile terminal successfully requests the audio focus of the acoustic device, the mobile terminal sending the audio information in the first application to the in-vehicle terminal. By means of the technical solution, the problem of conflict between audio focuses under a distributed operating system is solved, thereby improving the user experience.

Description

音频焦点的控制方法及相关装置Audio focus control method and related device
本申请要求于2021年05月27日提交中国专利局、申请号为202110587251.4、申请名称为“音频焦点的控制方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110587251.4 and the application name "Audio Focus Control Method and Related Devices" submitted to the China Patent Office on May 27, 2021, the entire contents of which are incorporated in this application by reference middle.
技术领域technical field
本申请涉及无线通信技术领域,尤其涉及音频焦点的控制方法及相关装置。The present application relates to the technical field of wireless communication, and in particular to a method for controlling audio focus and related devices.
背景技术Background technique
随着网络技术的发展,万物互联成为新的发展方向,分布式系统也逐渐发展起来。在分布式系统中,多个终端设备,例如手机、平板、智能穿戴、智慧屏、车机等共用一套音频设备,当多个终端设备中的导航、音乐播放和通讯等音频类的应用同时调用这套音频设备时,就会产生音频设备使用的冲突问题,影响用户体验。With the development of network technology, the Internet of Everything has become a new development direction, and distributed systems have gradually developed. In a distributed system, multiple terminal devices, such as mobile phones, tablets, smart wearables, smart screens, and car machines, share a set of audio equipment. When audio applications such as navigation, music playback, and communication in multiple terminal devices are simultaneously When calling this set of audio equipment, there will be conflicts in the use of audio equipment, which will affect the user experience.
发明内容Contents of the invention
本申请提供的音频焦点的控制方法和相关装置,可以解决多个终端的操作系统构成分布式操作系统时的音频焦点冲突的问题。The audio focus control method and related device provided in the present application can solve the problem of audio focus conflict when the operating systems of multiple terminals form a distributed operating system.
第一方面,本申请提供一种音频焦点的控制方法。所述方法包括:移动终端接收用户输入的第一指令,所述第一指令用于请求播放所述移动终端中的第一应用中的音频信息;所述移动终端向车机终端发送音频焦点请求信息,所述音频焦点请求信息用于请求所述车机终端上的音响设备的音频焦点,所述移动终端的操作系统与所述车机终端的操作系统构成分布式操作系统;所述移动终端接收所述车机终端发送的音频焦点请求响应信息,所述音频焦点请求响应信息用于指示所述移动终端是否成功请求所述音响设备的音频焦点;所述移动终端成功请求所述音响设备的音频焦点的情况下,所述移动终端向所述车机终端发送所述第一应用中的音频信息。In a first aspect, the present application provides a method for controlling audio focus. The method includes: the mobile terminal receives a first instruction input by a user, and the first instruction is used to request to play audio information in a first application in the mobile terminal; the mobile terminal sends an audio focus request to the car-machine terminal information, the audio focus request information is used to request the audio focus of the audio equipment on the car-machine terminal, the operating system of the mobile terminal and the operating system of the car-machine terminal constitute a distributed operating system; the mobile terminal receiving the audio focus request response information sent by the vehicle-machine terminal, the audio focus request response information being used to indicate whether the mobile terminal successfully requests the audio focus of the audio device; the mobile terminal successfully requests the audio focus of the audio device In the case of audio focus, the mobile terminal sends the audio information in the first application to the vehicle-machine terminal.
本申请的方法中,当移动终端和车机终端组成分布式操作系统后,移动终端申请车机终端上的音响设备的音频焦点时,车机终端可以将音响设备的音频焦点提供给移动终端用,从而可以避免车机终端和移动终端同时申请音响设备的音频焦点时,车机终端设备的音响设备的音频焦点不知道应该分配给那个设备的音频焦点冲突问题。In the method of the present application, after the mobile terminal and the car-machine terminal form a distributed operating system, and the mobile terminal applies for the audio focus of the audio equipment on the car-machine terminal, the car-machine terminal can provide the audio focus of the audio equipment to the mobile terminal. Therefore, when the car-machine terminal and the mobile terminal apply for the audio focus of the audio device at the same time, the audio focus of the car-machine terminal device's audio device does not know the audio focus conflict that should be assigned to that device.
在一些实现方式中,所述移动终端接收用户输入的第一指令之前,所述车机终端的所述音响设备播放所述移动终端上第三应用的音频信息。In some implementation manners, before the mobile terminal receives the first instruction input by the user, the audio device of the vehicle-machine terminal plays the audio information of the third application on the mobile terminal.
也就是说,构成分布式系统的移动终端的第三应用使用音响设备的音频焦点时,若移动终端上的第二应用申请该音响设备的音频焦点,则车机终端可以将该音频焦点分配给后申请的第二应用,从而可以避免移动终端上的多个应用同时申请同一个音频焦点所产生的音频焦点冲突的问题。That is to say, when the third application of the mobile terminal constituting the distributed system uses the audio focus of the audio device, if the second application on the mobile terminal applies for the audio focus of the audio device, the car-machine terminal can assign the audio focus to The second application that is applied for later can avoid the problem of audio focus conflict caused by multiple applications on the mobile terminal applying for the same audio focus at the same time.
在一些实现方式中,所述移动终端接收用户输入的第一指令之前,所述移动终端的操 作系统本次与所述车机系统的操作系统构成分布式操作系统之后,所述移动终端未通过所述音响设备播放过音频信息。In some implementations, before the mobile terminal receives the first instruction input by the user, after the operating system of the mobile terminal forms a distributed operating system with the operating system of the vehicle-machine system this time, the mobile terminal fails to pass the The audio equipment has played audio information.
在一些实现方式中,所述方法还包括:所述移动终端接收来自所述车机终端的音频焦点变换请求信息,所述音频焦点变换请求信息用于请求将所述音响设备的音频焦点从所述移动终端变换至所述车机终端;所述移动终端降低所述第一应用中的音频信息的音量。In some implementations, the method further includes: the mobile terminal receiving audio focus change request information from the vehicle-machine terminal, the audio focus change request information is used to request to change the audio focus of the audio device from the The mobile terminal is switched to the car-machine terminal; the mobile terminal reduces the volume of the audio information in the first application.
该实现方式中解决了移动终端使用音频焦点的过程中,与该移动终端构成分布式操作系统的车机终端发起音频焦点的请求时,如何分配该音频焦点的问题,而且有助于保证用户不漏掉移动终端上的音频信息。This implementation method solves the problem of how to allocate the audio focus when the car-machine terminal that forms a distributed operating system with the mobile terminal initiates a request for the audio focus during the process of using the audio focus by the mobile terminal, and helps to ensure that the user does not Miss audio information on mobile terminals.
在一些可能的实现方式中,所述方法还包括:所述移动终端接收用户输入的第二指令,所述第二指令用于请求停止播放所述第一应用中的音频信息;所述移动终端停止向所述车机终端发送所述第一应用中的音频信息。In some possible implementations, the method further includes: the mobile terminal receiving a second instruction input by the user, the second instruction being used to request to stop playing the audio information in the first application; the mobile terminal Stop sending the audio information in the first application to the vehicle-machine terminal.
在一些可能的实现方式中,所述方法还包括:所述移动终端向所述车机终端发送音频焦点释放请求,所述音频焦点释放请求用于指示所述车机终端所述移动终端已释放所述音响设备的音频焦点。In some possible implementations, the method further includes: the mobile terminal sending an audio focus release request to the vehicle-machine terminal, where the audio focus release request is used to indicate that the vehicle-machine terminal has released the mobile terminal The audio focus of the sound device.
该实现方式使得车机终端能够获知移动终端不再需要占用音频焦点,以便于车机终端上的应用请求音频焦点时,不需要向移动终端请求变更音频焦点,可以节省通信资源来为该应用分配音频焦点。This implementation enables the car-machine terminal to know that the mobile terminal no longer needs to occupy the audio focus, so that when the application on the car-machine terminal requests the audio focus, it does not need to request the mobile terminal to change the audio focus, which can save communication resources for the application. Audio focus.
在一些可能的实现方式中,所述方法还包括:所述移动终端接收来自所述车机终端的音频焦点变换请求信息,所述音频焦点变换请求信息用于请求将所述音响设备的音频焦点从所述移动终端变换至所述车机终端;所述移动终端停止向所述车机终端发送所述第一应用中的音频信息。In some possible implementation manners, the method further includes: the mobile terminal receiving audio focus change request information from the vehicle-machine terminal, where the audio focus change request information is used to request that the audio focus of the audio device Switching from the mobile terminal to the vehicle-machine terminal; the mobile terminal stops sending the audio information in the first application to the vehicle-machine terminal.
该实现方式中,在车机终端请求音频焦点时,移动终端停止占用音频焦点,以便于车机终端可以占用该音频焦点,从而可以解决移动终端使用音频焦点的过程中,与该移动终端构成分布式操作系统的车机终端发起音频焦点的请求时,如何分配该音频焦点的问题。并且,移动终端停止播放音频信息,与移动终端降低音量相比,可以节省移动终端与车机终端之间的通信资源以及可以节省移动终端的功耗。In this implementation, when the vehicle-machine terminal requests the audio focus, the mobile terminal stops occupying the audio focus, so that the vehicle-machine terminal can occupy the audio focus, thereby solving the problem of forming a distribution with the mobile terminal during the process of using the audio focus. How to allocate the audio focus when the vehicle-machine terminal of the system-based operating system initiates a request for the audio focus. Moreover, the mobile terminal stops playing audio information, compared with the mobile terminal reducing the volume, it can save communication resources between the mobile terminal and the vehicle-machine terminal and save power consumption of the mobile terminal.
第二方面,本申请提供一种音频焦点的控制方法。所述方法包括:车机终端接收来自移动终端的音频焦点请求信息,所述音频焦点请求信息用于请求所述车机终端上的音响设备的音频焦点,所述移动终端的操作系统与所述车机终端的操作系统构成分布式操作系统;所述车机终端向所述移动终端发送音频焦点请求响应信息,所述音频焦点请求响应信息用于指示所述移动终端是否成功请求所述音响设备的音频焦点;所述移动终端成功请求所述音响设备的音频焦点的情况下,所述车机终端接收来自所述移动终端的第一应用中的音频信息;所述车机终端通过所述音响设备播放所述第一应用中的音频信息。In a second aspect, the present application provides a method for controlling audio focus. The method includes: the car-machine terminal receives audio focus request information from a mobile terminal, the audio focus request information is used to request the audio focus of the audio equipment on the car-machine terminal, the operating system of the mobile terminal is connected to the The operating system of the vehicle-machine terminal constitutes a distributed operating system; the vehicle-machine terminal sends audio focus request response information to the mobile terminal, and the audio focus request response information is used to indicate whether the mobile terminal successfully requests the audio device audio focus of the audio device; when the mobile terminal successfully requests the audio focus of the audio device, the car-machine terminal receives audio information from the first application of the mobile terminal; The device plays the audio information in the first application.
该实现方式中,在移动终端请求音频焦点时,车机终端停止占用音频焦点,并让移动终端占用该音频焦点,从而可以解决车机终端使用音频焦点的过程中,与该车机终端构成分布式操作系统的移动终端发起音频焦点的请求时,如何分配该音频焦点的问题。In this implementation, when the mobile terminal requests the audio focus, the car-machine terminal stops occupying the audio focus and allows the mobile terminal to occupy the audio focus, thus solving the problem of forming a distribution with the car-machine terminal when the car-machine terminal uses the audio focus. How to allocate the audio focus when a mobile terminal with a mobile operating system with a standard operating system initiates a request for the audio focus.
在一些实现方式中,所述车机终端通过所述音响设备播放所述第一应用中的音频信息之前,所述车机终端通过所述音响设备播放所述车机终端上的音频信息。In some implementation manners, before the car-machine terminal plays the audio information in the first application through the audio device, the car-machine terminal plays the audio information on the car-machine terminal through the audio device.
车机终端停止播放音频信息,与车机终端降低音量相比,可以节省车机终端的功耗。The car-machine terminal stops playing audio information, which can save the power consumption of the car-machine terminal compared with reducing the volume of the car-machine terminal.
在一些实现方式中,所述车机终端通过所述音响设备播放所述第一应用中的音频信息之前,所述移动终端的操作系统本次与所述车机系统的操作系统构成分布式操作系统之后,所述车机终端未通过所述音响设备播放过音频信息。In some implementations, before the car-machine terminal plays the audio information in the first application through the audio equipment, the operating system of the mobile terminal and the operating system of the car-machine system form a distributed operation this time. After the system, the vehicle-machine terminal has never played audio information through the audio equipment.
在一些实现方式中,所述车机终端通过所述音响设备播放所述第一应用中的音频信息之前,所述车机终端通过所述音响设备播放所述车机终端上的第二应用中的音频信息。In some implementations, before the car-machine terminal plays the audio information in the first application through the audio device, the car-machine terminal plays the audio information in the second application on the car-machine terminal through the audio device. audio information.
所述方法还包括:所述车机终端降低所述第二应用中的音频信息的音量。The method further includes: the car-machine terminal reducing the volume of the audio information in the second application.
该实现方式不仅可以解决车机终端使用音频焦点的过程中,与该车机终端构成分布式操作系统的移动终端发起音频焦点的请求时,如何分配该音频焦点的问题,而且有助于保证用户不漏掉车机终端上的音频信息。This implementation method can not only solve the problem of how to allocate the audio focus when the mobile terminal that forms a distributed operating system with the vehicle-machine terminal initiates a request for the audio focus during the process of using the audio focus of the vehicle-machine terminal, but also helps to ensure that the user Do not miss the audio information on the car terminal.
在一些实现方式中,所述车机终端通过所述音响设备播放所述第一应用中的音频信息之前,所述车机终端通过所述音响设备播放所述车机终端上的第二应用中的音频信息。所述方法还包括:所述车机终端停止播放所述第二应用中的音频信息。该方式可以节省车机终端的功能。In some implementations, before the car-machine terminal plays the audio information in the first application through the audio device, the car-machine terminal plays the audio information in the second application on the car-machine terminal through the audio device. audio information. The method further includes: the vehicle-machine terminal stops playing the audio information in the second application. This method can save the functions of the car-machine terminal.
在一些实现方式中,所述方法还包括:所述车机终端接收用户输入的第三指令,所述第三指令用于请求播放所述车机终端上的第三应用中的音频信息;所述车机终端向所述移动终端发送音频焦点变换请求信息,所述音频焦点变换请求信息用于请求将所述音响设备的音频焦点从所述移动终端变换至所述车机终端;所述车机终端通过所述音响设备播放所述第三应用中的音频信息。In some implementations, the method further includes: the in-vehicle terminal receiving a third instruction input by a user, the third instruction being used to request to play audio information in a third application on the in-vehicle terminal; The vehicle-machine terminal sends audio focus change request information to the mobile terminal, and the audio focus change request information is used to request to change the audio focus of the audio device from the mobile terminal to the vehicle-machine terminal; The mobile terminal plays the audio information in the third application through the audio equipment.
第三方面,本申请提供了一种移动终端,包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述移动终端执行如第一方面、第一方面任一种可能的实施方式提供的控制方法。In a third aspect, the present application provides a mobile terminal, including: one or more processors, one or more memories; the one or more memories are coupled to the one or more processors, and the one or more A plurality of memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the mobile terminal executes any one of the first aspect and the first aspect. A control method provided by a possible implementation manner.
第四方面,本申请提供了一种车机终端,包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述移动终端执行如第二方面、第二方面任一种可能的实施方式提供的控制方法。In a fourth aspect, the present application provides an in-vehicle terminal, including: one or more processors, one or more memories; the one or more memories are coupled to the one or more processors, and the one or more or a plurality of memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the mobile terminal executes any of the second aspect and the second aspect. A control method provided in a possible implementation manner.
第五方面,本申请提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在移动终端上运行时,使得所述移动终端执行如第一方面、第一方面任一种可能的实施方式提供的控制方法。In a fifth aspect, the present application provides a computer storage medium, including computer instructions. When the computer instructions are run on a mobile terminal, the mobile terminal is made to perform any possible implementation of the first aspect and the first aspect. The control method provided by the method.
第六方面,本申请提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在车机终端上运行时,使得所述车机终端执行如第二方面、第二方面任一种可能的实施方式提供的控制方法。In the sixth aspect, the present application provides a computer storage medium, including computer instructions. When the computer instructions are run on the vehicle-machine terminal, the vehicle-machine terminal can be executed according to any one of the second aspect and the second aspect. The control method provided by the embodiment.
第七方面,本申请提供一种计算机程序产品,所述计算机程序产品中包括计算机程序代码,其特征在于,当所述计算机程序代码在计算机上运行时,使得计算机实现如第一方面、第一方面任一种可能的实施方式提供的控制方法。In a seventh aspect, the present application provides a computer program product, the computer program product includes computer program code, and it is characterized in that, when the computer program code is run on a computer, the computer implements the first aspect, the first The control method provided in any possible implementation manner of the aspect.
第八方面,本申请提供一种计算机程序产品,所述计算机程序产品中包括计算机程序代码,其特征在于,当所述计算机程序代码在计算机上运行时,使得计算机实现如第二方 面、第二方面任一种可能的实施方式提供的控制方法。In the eighth aspect, the present application provides a computer program product, the computer program product includes computer program code, and it is characterized in that, when the computer program code runs on the computer, the computer realizes the second aspect, the second The control method provided in any possible implementation manner of the aspect.
附图说明Description of drawings
图1为本申请一个实施例的音频焦点控制系统示意图;FIG. 1 is a schematic diagram of an audio focus control system according to an embodiment of the present application;
图2为本申请一个实施例的电子设备的硬件结构示意图;FIG. 2 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
图3为本申请一个实施例的电子设备的软件结构示意图;FIG. 3 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application;
图4为本申请另一个实施例的电子设备的软件结构示意图;FIG. 4 is a schematic diagram of a software structure of an electronic device according to another embodiment of the present application;
图5为本申请一个实施例的音频焦点的控制方法的示例性流程图;FIG. 5 is an exemplary flow chart of an audio focus control method according to an embodiment of the present application;
图6为本申请另一个实施例的音频焦点的控制方法的示例性流程图;FIG. 6 is an exemplary flow chart of an audio focus control method according to another embodiment of the present application;
图7为本申请另一个实施例的音频焦点的控制方法的示例性流程图;FIG. 7 is an exemplary flowchart of an audio focus control method according to another embodiment of the present application;
图8为本申请一个实施例提供的音频焦点的控制装置的结构示意图;FIG. 8 is a schematic structural diagram of an audio focus control device provided by an embodiment of the present application;
图9为本申请另一个实施例提供的音频焦点的控制装置的结构示意图;FIG. 9 is a schematic structural diagram of an audio focus control device provided in another embodiment of the present application;
图10为本申请另一个实施例提供的音频焦点的控制装置的结构示意图。FIG. 10 is a schematic structural diagram of an audio focus control device provided by another embodiment of the present application.
具体实施方式Detailed ways
图1为本申请一个实施例的音频焦点控制系统示意图。如图1所示,该系统包括移动终端110和车机终端120。FIG. 1 is a schematic diagram of an audio focus control system according to an embodiment of the present application. As shown in FIG. 1 , the system includes a mobile terminal 110 and a vehicle-machine terminal 120 .
移动终端110上的操作系统与车机终端120上的操作系统构成分布式操作系统。分布式操作系统(distributed operating systems)是属于分布式软件系统(distributed software systems)的一部分,需要安装在整个分布系统里面,主要负责管理分布式处理系统资源和控制分布式程序运行,它和集中式操作系统的区别在于资源管理、进程通信和系统结构等方面。分布式操作系统的基本功能包括:提供有力的通信手段,让运行在不同计算机上的进程可以通过通信来交换数据;提供访问它机资源的功能,使得用户可以访问位于它机上的资源;提供某种程序设计语言,使用户可编写分布式程序,该程序可在系统中多个节点上并行运行;高效的控制和网络资源管理,对用户具有透明性。The operating system on the mobile terminal 110 and the operating system on the vehicle-machine terminal 120 constitute a distributed operating system. Distributed operating systems (distributed operating systems) are part of distributed software systems and need to be installed in the entire distributed system. They are mainly responsible for managing distributed processing system resources and controlling the operation of distributed programs. It is similar to centralized Operating systems differ in terms of resource management, process communication, and system architecture. The basic functions of a distributed operating system include: providing a powerful means of communication so that processes running on different computers can exchange data through communication; providing the function of accessing resources on other computers so that users can access resources on other computers; A programming language that enables users to write distributed programs that can run in parallel on multiple nodes in the system; efficient control and network resource management are transparent to users.
本申请中的移动终端110可以包括用户可以随身携带的电子设备,例如可以包括手机、可折叠电子设备、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备中的至少一种。本申请实施例对该移动终端110的具体类型不作特殊限制。The mobile terminal 110 in this application may include electronic devices that users can carry with them, such as mobile phones, foldable electronic devices, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, super mobile personal computers ( ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (augmented reality, AR) device, virtual reality (virtual reality, VR) device, artificial intelligence (artificial intelligence) , AI) equipment, at least one of wearable equipment. The embodiment of the present application does not specifically limit the specific type of the mobile terminal 110 .
本实施例中的车机终端120可以包括部署在车辆上的电子设备。本申请实施例对该车机终端120的具体类型不作特殊限制。The vehicle-machine terminal 120 in this embodiment may include electronic equipment deployed on the vehicle. The embodiment of the present application does not specifically limit the specific type of the vehicle-machine terminal 120 .
图2为本申请一个实施例的电子设备的硬件结构示意图。移动终端110或车机终端120的示意性硬件结构可以如图2所示。FIG. 2 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. A schematic hardware structure of the mobile terminal 110 or the vehicle-machine terminal 120 may be shown in FIG. 2 .
电子设备100可以包括处理器110、内部存储器121、USB接头130、电源管理模块141、天线1、天线2、移动通信模块150、无线通信模块160、音频设备170、显示屏194等。The electronic device 100 may include a processor 110, an internal memory 121, a USB connector 130, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio device 170, a display screen 194, and the like.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬 件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor can generate an operation control signal according to the instruction opcode and the timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110用过或使用频率较高的指令或数据。如果处理器110需要使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 may be a cache memory. The memory may store instructions or data used by the processor 110 or used frequently. If the processor 110 needs to use the instruction or data, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。处理器110可以通过以上至少一种接口连接触摸传感器、音频模块、无线通信模块、显示器、摄像头等模块。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc. The processor 110 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, and a camera through at least one of the above interfaces.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
USB接头130是一种符合USB标准规范的接口,可以用于连接电子设备100和外围设备,具体可以是Mini USB接头,Micro USB接头,USB Type C接头等。USB接头130可以用于连接充电器,实现充电器为该电子设备100充电,也可以用于连接其他电子设备,实现电子设备100与其他电子设备之间传输数据。也可以用于连接耳机,通过耳机输出电子设备中存储的音频。该接头还可以用于连接其他电子设备,例如VR设备等。在一些实施例中,通用串行总线的标准规范可以为USB1.x、USB2.0、USB3.x和USB4。The USB connector 130 is an interface conforming to the USB standard specification, and can be used to connect the electronic device 100 and peripheral devices, specifically, it can be a Mini USB connector, a Micro USB connector, a USB Type C connector, and the like. The USB connector 130 can be used to connect to a charger to charge the electronic device 100 , and can also be used to connect to other electronic devices to transfer data between the electronic device 100 and other electronic devices. It can also be used to connect headphones to output audio stored in electronic devices through the headphones. This connector can also be used to connect other electronic devices, such as VR devices, etc. In some embodiments, the standard specifications of the Universal Serial Bus may be USB1.x, USB2.0, USB3.x and USB4.
电源管理模块141用于连接电源与处理器110。电源管理模块141接收电源(例如内部电池或外部电源)的输入,为处理器110、内部存储器121、显示屏194、移动通信模块150和无线通信模块160等供电。The power management module 141 is used for connecting the power supply and the processor 110 . The power management module 141 receives power input (such as an internal battery or an external power supply), and supplies power to the processor 110, the internal memory 121, the display screen 194, the mobile communication module 150, the wireless communication module 160, and the like.
电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 .
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1 复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as the diversity antenna of the WLAN. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),蓝牙低功耗(bluetooth low energy,BLE),超宽带(ultra wide band,UWB),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), bluetooth low power consumption (bluetooth low energy, BLE), ultra wide band (UWB), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络和其他电子设备通信。该无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。该GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS can include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou satellite navigation system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100可以通过GPU、显示屏194以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 may implement a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶 显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),微型发光二极管(micro light emitting diode,Micro LED),微型有机发光二极管(micro organic light-emitting diode,Micro OLED),量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或多个显示屏194。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), micro light-emitting diode (micro light emitting diode, Micro LED), micro organic light-emitting diode (micro organic light-emitting diode, Micro OLED), quantum Quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194 .
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能方法或数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional methods or data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
作为一种示例,本实施例的电子设备100的处理器110可以通过移动通信模块150和天线1,或通过无线通信模块160和天线2,或通过USB接头130从应用市场下载集成有图标更新SDK的应用程序,并调用应用程序中的图标更新SDK通过移动通信模块150和天线1,或通过无线通信模块160和天线2,或通过USB接头130与应用图标管理平台交互,以完成应用程序图标的更新或替换,然后通过显示屏显示更新后的应用程序图标。As an example, the processor 110 of the electronic device 100 of this embodiment may download the integrated icon update SDK from the application market through the mobile communication module 150 and the antenna 1, or through the wireless communication module 160 and the antenna 2, or through the USB connector 130. application program, and call the icon update SDK in the application program through the mobile communication module 150 and antenna 1, or through the wireless communication module 160 and antenna 2, or interact with the application icon management platform through the USB connector 130 to complete the update of the application icon Update or replace, and then display the updated application icon through the display.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的系统为例,结合图3,示例性说明电子设备100的软件结构。例如,电子设备100的软件系统为分层架构的Android系统时,其软件结构示意图如图3所示。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In this embodiment of the present application, a system with a layered architecture is taken as an example, and a software structure of the electronic device 100 is exemplarily described with reference to FIG. 3 . For example, when the software system of the electronic device 100 is an Android system with a layered architecture, its software structure diagram is shown in FIG. 3 .
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(android runtime,ART)和原生C/C++库,硬件抽象层(hardware abstract layer,HAL)以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into five layers, which are application program layer, application program framework layer, Android runtime (android runtime, ART) and native C/C++ library, hardware abstraction layer (hardware) from top to bottom. abstract layer, HAL) and the kernel layer.
应用程序层可以包括一系列应用程序包。如图3所示,应用程序包可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等应用程序。The application layer can consist of a series of application packages. As shown in FIG. 3 , the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括窗口管理器、内容提供器、视图系统、资源管理器、通知管理器、活动管理器、输入管理器等。As shown in Figure 3, the application framework layer may include window managers, content providers, view systems, resource managers, notification managers, activity managers, input managers, and so on.
窗口管理器提供窗口管理服务(window manager service,WMS),WMS可以用于窗口管理、窗口动画管理、表面(surface)管理以及作为输入系统的中转站。The window manager provides a window management service (window manager service, WMS), and WMS can be used for window management, window animation management, surface management, and as a transfer station for input systems.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。该数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示 界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
活动管理器可以提供活动管理服务(activity manager service,AMS),AMS可以用于系统组件(例如活动、服务、内容提供者、广播接收器)的启动、切换、调度以及应用进程的管理和调度工作。The activity manager can provide activity management service (activity manager service, AMS), AMS can be used for system components (such as activities, services, content providers, broadcast receivers) start, switch, schedule, and manage and schedule application processes .
输入管理器可以提供输入管理服务(input manager service,IMS),IMS可以用于管理系统的输入,例如触摸屏输入、按键输入、传感器输入等。IMS从输入设备节点取出事件,通过和WMS的交互,将事件分配至合适的窗口。The input manager can provide an input management service (input manager service, IMS), and the IMS can be used to manage system input, such as touch screen input, key input, sensor input, and the like. IMS fetches events from input device nodes, and distributes events to appropriate windows through interaction with WMS.
安卓运行时包括核心库和安卓运行时。安卓运行时负责将源代码转换为机器码。安卓运行时主要包括采用提前(ahead or time,AOT)编译技术和及时(just in time,JIT)编译技术。The Android runtime includes the core library and the Android runtime. The Android runtime is responsible for converting source code into machine code. The Android runtime mainly includes the use of ahead of time (ahead or time, AOT) compilation technology and just in time (just in time, JIT) compilation technology.
核心库主要用于提供基本的Java类库的功能,例如基础数据结构、数学、IO、工具、数据库、网络等库。核心库为用户进行安卓应用开发提供了API。The core library is mainly used to provide basic Java class library functions, such as basic data structure, mathematics, IO, tools, database, network and other libraries. The core library provides APIs for users to develop Android applications.
原生C/C++库可以包括多个功能模块。例如:表面管理器(surface manager),媒体框架(media framework),libc,OpenGL ES、SQLite、Webkit等。A native C/C++ library can include multiple functional modules. For example: surface manager (surface manager), media framework (media framework), libc, OpenGL ES, SQLite, Webkit, etc.
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:动态图像专家组(moving picture experts group,MPEG)4、H.264、MP3、高级音频编码(advanced audio coding,AAC)、自适应多码率(adaptive multi-rate,AMR)、JPG、可移植网络图形格式(portable network graphic format,PNG)等。OpenGL ES提供应用程序中2D图形和3D图形的绘制和操作。SQLite为电子设备100的应用程序提供轻量级关系型数据库。Among them, the surface manager is used to manage the display subsystem, and provides the fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of various commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video coding formats, such as: moving picture experts group (moving picture experts group, MPEG) 4, H.264, MP3, advanced audio coding (advanced audio coding, AAC), adaptive multi-bit rate ( adaptive multi-rate, AMR), JPG, portable network graphic format (portable network graphic format, PNG), etc. OpenGL ES provides the drawing and manipulation of 2D graphics and 3D graphics in applications. SQLite provides a lightweight relational database for applications of the electronic device 100 .
硬件抽象层运行于用户空间(user space),对内核层驱动进行封装,向上层提供调用接口。硬件抽象层至少包含显示模块,摄像头模块,音频模块,传感器模块。The hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a call interface to the upper layer. The hardware abstraction layer includes at least a display module, a camera module, an audio module, and a sensor module.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
可选地,如图4所示,本申请实施例中,移动终端110除了可以包含图3所示的结构,其框架层还可以包括车机应用焦点代理和音频管理器(audio manager);车机终端120除了可以包含图3所示的结构,其框架层还可以包括手机应用焦点代理、音频管理器和南向接口,该南向接口包括用于调用音频设备的标准接口。Optionally, as shown in FIG. 4, in the embodiment of the present application, in addition to the structure shown in FIG. 3, the mobile terminal 110 can also include a vehicle-machine application focus agent and an audio manager (audio manager); In addition to the structure shown in FIG. 3 , the mobile terminal 120 can also include a mobile phone application focus agent, an audio manager, and a southbound interface at its framework layer. The southbound interface includes a standard interface for invoking audio devices.
音频管理器可以用于实现以下一个或多个功能:存储自定义的音频配置;更名、编辑与删除音频配置;建立音频配置的桌面快捷方式;支持超过多种以上语言;自动恢复与更新功能;通过显示面板显示音量。The audio manager can be used to implement one or more of the following functions: store custom audio configurations; rename, edit and delete audio configurations; create desktop shortcuts for audio configurations; support more than one language; automatic recovery and update functions; The volume is displayed via the display panel.
可选地,如图4所示,本申请的移动终端110还可以包括智慧车应用,车机终端120还可以包括智慧车应用。作为一种示例,智慧车应用可以为
Figure PCTCN2022086102-appb-000001
的“HiCar”应用。
Optionally, as shown in FIG. 4 , the mobile terminal 110 of the present application may also include a smart car application, and the vehicle-machine terminal 120 may also include a smart car application. As an example, a smart car application could be
Figure PCTCN2022086102-appb-000001
"HiCar" application.
智慧车应用具有以下一种或多种功能:将移动终端上的应用投屏到车机终端中控屏幕上使用;通过移动终端和车机终端之间的连接,基于三层标准与能力,构建移动终端和车机终端的互助资源池,把移动终端的服务生态延伸到车机内,实现“移动终端+车机终端”人机交互最优体验。The smart car application has one or more of the following functions: project the application on the mobile terminal to the central control screen of the car-machine terminal for use; through the connection between the mobile terminal and the car-machine terminal, build The mutual assistance resource pool of mobile terminals and car-machine terminals extends the service ecology of mobile terminals to car-machine terminals, and realizes the optimal experience of "mobile terminal + car-machine terminal" human-computer interaction.
例如,车机终端通过音频设备播放歌曲,且移动终端通过移动终端上的音频装置播放歌曲时,通过智能车应用可自动无缝切换至车机终端进行播放;移动终端的全球定位系统(global position system,GPS)信号弱时,智慧车应用可叠加车辆/手机GPS信号,使得定位更准确;停车后,车辆外置摄像头自动拍照记录停车位等功能。For example, when the car-machine terminal plays songs through audio equipment, and the mobile terminal plays songs through the audio device on the mobile terminal, the smart car application can automatically and seamlessly switch to the car-machine terminal for playback; system, GPS) signal is weak, the smart car application can superimpose the GPS signal of the vehicle/mobile phone to make the positioning more accurate; after parking, the external camera of the vehicle will automatically take pictures and record the parking space and other functions.
针对图1所示的系统架构中,本申请提出了一种音频焦点的控制方法。该方法中,将多个操作系统设备看成一个整体,全局维护一个音频焦点,在每个操作系统中部署应用焦点代理,提供分布式的音频管理能力和分布式音频焦点的管理接口,当应用申请和释放音频焦点后,应用开发者则无需处理分布式操作系统中各个单独的操作系统之间的音频焦点的冲突问题,由分布式操作系统处理即可,极大的简化了分布式操作系统的音频焦点处理难度,系统解决了分布式场景音频的焦点体验。For the system architecture shown in FIG. 1 , the present application proposes an audio focus control method. In this method, multiple operating system devices are regarded as a whole, an audio focus is maintained globally, and an application focus agent is deployed in each operating system to provide distributed audio management capabilities and a management interface for distributed audio focus. When the application After applying for and releasing the audio focus, application developers do not need to deal with the conflict of audio focus between individual operating systems in the distributed operating system, which can be handled by the distributed operating system, which greatly simplifies the distributed operating system The difficulty of audio focus processing, the system solves the focus experience of distributed scene audio.
本申请提供的控制方法中,在车机终端占用音响设备播放音频信息的过程中,当之前并未播放音频信息的移动终端请求音响设备的音频焦点来播放移动终端上的音频信息时,或当移动终端请求音响设备的音频焦点从移动终端上的一个应用切换至另一个应用,即从播放一个应用中的音频信息切换至播放另一个应用中的音频信息时,移动终端向车机终端发送音频焦点请求信息,以请求所述车机终端上的音响设备的音频焦点,其中,该移动终端的操作系统与该车机终端的操作系统已构成分布式操作系统。In the control method provided by the present application, when the vehicle-machine terminal occupies the audio equipment to play audio information, when the mobile terminal that has not played audio information before requests the audio focus of the audio equipment to play the audio information on the mobile terminal, or when The mobile terminal requests that the audio focus of the audio device be switched from one application on the mobile terminal to another application, that is, when switching from playing audio information in one application to playing audio information in another application, the mobile terminal sends audio to the car-machine terminal The focus request information is used to request the audio focus of the audio equipment on the vehicle-mounted terminal, wherein the operating system of the mobile terminal and the operating system of the vehicle-mounted terminal have constituted a distributed operating system.
车机终端接收到移动终端的音频焦点请求信息之后,向移动终端提供该音频焦点。例如,车机终端可以向移动终端发送音频焦点请求响应信息,移动终端接收车机终端发送的音频焦点请求响应信息,音频焦点请求响应信息用于指示移动终端是否成功请求所述音响设备的音频焦点。After receiving the audio focus request information from the mobile terminal, the vehicle-machine terminal provides the audio focus to the mobile terminal. For example, the car-machine terminal may send audio focus request response information to the mobile terminal, and the mobile terminal receives the audio focus request response information sent by the car-machine terminal. The audio focus request response information is used to indicate whether the mobile terminal successfully requests the audio focus of the audio device. .
移动终端成功请求所述音响设备的音频焦点的情况下,移动终端向车机终端发送应用中的音频信息,以便于音响设备播放该应用中的音频信息。移动终端请求所述音响设备的音频焦点失败的情况下,移动终端可以记录申请日志和申请结果,并丢弃待播放的音频信息。When the mobile terminal successfully requests the audio focus of the audio device, the mobile terminal sends the audio information in the application to the vehicle-machine terminal, so that the audio device can play the audio information in the application. When the mobile terminal fails to request the audio focus of the audio device, the mobile terminal may record the application log and application result, and discard the audio information to be played.
可选地,车机终端将音频焦点移交给移动终端之后,车机终端可以降低所播放的音频信息的音量或者可以停止音频信息的播放。Optionally, after the car-machine terminal hands over the audio focus to the mobile terminal, the car-machine terminal may lower the volume of the played audio information or may stop playing the audio information.
可选地,移动终端向车机终端发送音频焦点请求信息之前,车机终端也可以处于未占用音频焦点的状态,即处于未播放音频信息的状态。Optionally, before the mobile terminal sends the audio focus request information to the vehicle-machine terminal, the vehicle-machine terminal may also be in a state of not occupying the audio focus, that is, in a state of not playing audio information.
可选地,移动终端停止播放音频信息,例如用户输入指令,指示移动终端停止播放音频信息时,移动终端可以释放音频焦点,并通知车机终端“移动终端已释放音频焦点”。车机终端接收到指示移动终端已释放音频焦点的信息之后,可以请求音频焦点,并继续播放之前暂停的音频信息或者回复之前播放的音频信息的音量。Optionally, when the mobile terminal stops playing the audio information, for example, when the user inputs an instruction to instruct the mobile terminal to stop playing the audio information, the mobile terminal can release the audio focus and notify the vehicle terminal that "the mobile terminal has released the audio focus". After receiving the information indicating that the mobile terminal has released the audio focus, the car-machine terminal may request the audio focus, and continue to play the previously paused audio information or restore the volume of the previously played audio information.
本申请提出的技术方案中,当移动终端占用音响设备的音频焦点播放音频信息的过程 中,车机终端请求音频焦点来播放车机终端上的应用中的音频信息时,车机终端可以向移动终端发送音频焦点变化请求信息,移动终端接收来自车机终端的音频焦点变换请求信息,音频焦点变换请求信息用于请求将所述音响设备的音频焦点从移动终端变换至车机终端。In the technical solution proposed by this application, when the mobile terminal occupies the audio focus of the audio equipment to play audio information, and the car-machine terminal requests the audio focus to play the audio information in the application on the car-machine terminal, the car-machine terminal can move to the The terminal sends audio focus change request information, and the mobile terminal receives the audio focus change request information from the car-machine terminal. The audio focus change request message is used to request to change the audio focus of the audio device from the mobile terminal to the car-machine terminal.
车机终端请求音频焦点之后,可以通过音响设备播放车机终端上的应用中的音频信息。并且,移动终端接收到音频焦点变换请求信息之后,可以降低移动终端上的应用中的音频信息的音量或停止播放音频信息,以便于车机终端使用音频焦点。After the car-machine terminal requests the audio focus, the audio information in the application on the car-machine terminal can be played through the audio equipment. Moreover, after the mobile terminal receives the audio focus change request information, it can reduce the volume of the audio information in the application on the mobile terminal or stop playing the audio information, so that the car-machine terminal can use the audio focus.
可选地,车机终端停止播放音频信息,例如用户输入指令,指示车机终端停止播放音频信息时,车机终端可以释放音频焦点,并通知移动终端“车机终端已释放音频焦点”。移动终端接收到指示车机终端已释放音频焦点的信息之后,可以请求音频焦点,并继续播放之前暂停的音频信息或者回复之前播放的音频信息的音量。Optionally, the car-machine terminal stops playing audio information, for example, when the user inputs an instruction to instruct the car-machine terminal to stop playing audio information, the car-machine terminal can release the audio focus and notify the mobile terminal that "the car-machine terminal has released the audio focus". After receiving the information indicating that the vehicle-machine terminal has released the audio focus, the mobile terminal can request the audio focus, and continue to play the previously paused audio information or restore the volume of the previously played audio information.
本申请提供的技术方案中,当移动终端和车机终端组成分布式操作系统后,移动终端申请或释放的音频焦点的状态会同步到车机终端,同理,车机终端申请音频焦点或释放音频焦点的状态也会同步到手机,并且,当移动终端和车机终端同时播放音乐时,可以基于请求音频焦点的终端类型和/或请求音频焦点的先后顺序决定哪个终端占用音频焦点来播放音频,从而可疑避免音频焦点出现占用冲突的问题。In the technical solution provided by this application, when the mobile terminal and the car-machine terminal form a distributed operating system, the status of the audio focus applied or released by the mobile terminal will be synchronized to the car-machine terminal. The state of the audio focus will also be synchronized to the mobile phone, and when the mobile terminal and the car terminal play music at the same time, it can be determined which terminal occupies the audio focus to play the audio based on the type of terminal requesting the audio focus and/or the order in which the audio focus is requested , so as to avoid the problem of audio focus occupation conflict.
下面以车机终端的应用播放过程中,移动终端播放或切换音频应用为例,结合图5对本申请的一个实施例的音频焦点的控制方法进行介绍。如图5所示,该方法包括S501至S518。In the following, an audio focus control method according to an embodiment of the present application will be introduced by taking a mobile terminal playing or switching an audio application during the application playing process of the car-machine terminal as an example, and referring to FIG. 5 . As shown in Fig. 5, the method includes S501 to S518.
S501,用户启动手机终端的“HiCar”应用。S501, the user starts the "HiCar" application on the mobile phone terminal.
S502,车机应用焦点代理向手机终端的音频管理器注册音频焦点监听器。S502. The vehicle-machine application focus agent registers the audio focus listener with the audio manager of the mobile terminal.
其中,车机应用焦点代理是部署在“HiCar”应用中的,“HiCar”应用启动时,车机应用焦点代理向音频管理器注册音频焦点监听器,以监测手机终端的音频焦点变化情况。Among them, the car-machine application focus agent is deployed in the "HiCar" application. When the "HiCar" application is started, the car-machine application focus agent registers an audio focus monitor with the audio manager to monitor changes in the audio focus of the mobile terminal.
S503,用户启动手机应用。S503, the user starts the mobile phone application.
S504,手机应用向手机终端的音频管理器发送音频焦点请求。S504. The mobile application sends an audio focus request to the audio manager of the mobile terminal.
S505,手机终端的音频管理器向手机应用返回音频焦点请求响应。S505. The audio manager of the mobile terminal returns an audio focus request response to the mobile application.
其中,音频焦点请求响应包括请求成功或请求失败。Wherein, the audio focus request response includes request success or request failure.
S506,车机应用焦点代理检测到音频焦点发生变化,判断是否需要申请音频焦点。S506. The on-board application focus agent detects that the audio focus has changed, and determines whether to apply for the audio focus.
若之前未申请过音频焦点或者焦点类型变化,则执行步骤S507。If the audio focus has not been applied for before or the focus type changes, step S507 is executed.
若之前申请过音频焦点或者焦点类型未变化,则不执行下述步骤。If the audio focus has been applied for before or the focus type has not changed, the following steps will not be performed.
S507,车机应用焦点代理向手机应用焦点代理发送音频焦点请求。S507. The vehicle-machine application focus agent sends an audio focus request to the mobile phone application focus agent.
S508,手机应用焦点代理调用三方厂商提供的标准接口向车机终端的音频管理器发送音频焦点请求,代理申请音频焦点。S508, the mobile phone application focus agent calls the standard interface provided by the third-party manufacturer to send an audio focus request to the audio manager of the car terminal, and the agent applies for the audio focus.
S509,车机应用正在播放。S509, the in-vehicle application is playing.
S510,车机终端的音频管理器向车机应用发送音频焦点变化通知。S510. The audio manager of the car-machine terminal sends an audio focus change notification to the car-machine application.
S511,车机应用暂停播放或者压低音量。S511, the in-car application pauses playback or lowers the volume.
S512,车机终端的音频管理器调用三方厂商提供的标准接口向手机应用焦点代理返回音频焦点请求结果响应。S512. The audio manager of the car-machine terminal invokes the standard interface provided by the third-party manufacturer to return an audio focus request result response to the mobile phone application focus agent.
S513,手机应用焦点代理向车机应用焦点代理返回音频焦点请求结果,车机应用焦点代理记录该请求结果。S513. The mobile phone application focus agent returns an audio focus request result to the car-machine application focus agent, and the car-machine application focus agent records the request result.
S514,手机应用输出音频流给车机应用焦点代理。S514. The mobile phone application outputs the audio stream to the car machine application focus agent.
车机应用焦点代理收到应用音频流,根据焦点申请结果进行处理,若申请成功,则执行S516,若申请失败,则执行S515。The in-vehicle application focus agent receives the application audio stream and processes it according to the result of the focus application. If the application is successful, execute S516; if the application fails, execute S515.
S515,车机应用焦点代理丢弃音频,打印日志。S515. The car machine application focus agent discards the audio and prints a log.
S516,车机应用焦点代理传输音频流给手机应用焦点代理。S516. The car machine application focus agent transmits the audio stream to the mobile phone application focus agent.
S517,手机应用焦点代理调用三方厂商提供的标准接口,播放音频。S517, the mobile phone application focus agent calls the standard interface provided by the third-party manufacturer to play the audio.
S518,手机应用焦点代理通过车机音频设备输出音频。S518, the mobile phone application focus agent outputs audio through the car audio device.
下面以手机终端的应用播放过程中,车机终端播放或切换音频应用为例,结合图6对本申请的另一个实施例的音频焦点的控制方法进行介绍。如图6所示,该方法包括S601至S628。In the following, an audio focus control method according to another embodiment of the present application will be introduced with reference to FIG. 6 by taking the car-machine terminal playing or switching audio applications during the application playing process of the mobile terminal as an example. As shown in FIG. 6, the method includes S601 to S628.
S601,用户启动手机终端的“HiCar”应用。S601, the user starts the "HiCar" application of the mobile terminal.
S602,车机应用焦点代理向手机终端的音频管理器注册音频焦点监听器。S602. The in-vehicle application focus agent registers the audio focus listener with the audio manager of the mobile terminal.
S603,用户启动车机终端的“HiCar”应用。S603, the user starts the "HiCar" application of the car-machine terminal.
S604,手机应用焦点代理调用三方厂商提供的标准接口向车机终端的音频管理器注册音频焦点监听器。S604, the mobile phone application focus agent calls the standard interface provided by the third-party manufacturer to register the audio focus listener with the audio manager of the car terminal.
S605,用户启动手机应用。S605. The user starts the mobile phone application.
S606,手机应用向手机终端的音频管理器发送音频焦点请求。S606. The mobile application sends an audio focus request to the audio manager of the mobile terminal.
S607,手机终端的音频管理器向手机应用返回音频焦点请求响应。S607. The audio manager of the mobile terminal returns an audio focus request response to the mobile application.
其中,音频焦点请求响应包括请求成功或请求失败。Wherein, the audio focus request response includes request success or request failure.
S608,车机应用焦点代理检测到音频焦点发生变化,判断是否需要申请音频焦点。S608. The on-board application focus agent detects that the audio focus has changed, and determines whether to apply for the audio focus.
若之前未申请过音频焦点或者焦点类型变化,则执行步骤S609。If the audio focus has not been applied for before or the focus type changes, step S609 is executed.
若之前申请过音频焦点或者焦点类型未变化,则不执行下述步骤。If the audio focus has been applied for before or the focus type has not changed, the following steps will not be performed.
S609,车机应用焦点代理向手机应用焦点代理发送音频焦点请求。S609. The vehicle-machine application focus agent sends an audio focus request to the mobile phone application focus agent.
S610,手机应用焦点代理调用三方厂商提供的标准接口向车机终端的音频管理器发送音频焦点请求,代理申请音频焦点。S610, the mobile phone application focus agent invokes the standard interface provided by the third-party manufacturer to send an audio focus request to the audio manager of the car terminal, and the agent applies for the audio focus.
S611,车机终端的音频管理器调用三方厂商提供的标准接口向手机应用焦点代理返回音频焦点请求结果响应。S611. The audio manager of the car-machine terminal invokes the standard interface provided by the third-party manufacturer to return an audio focus request result response to the mobile phone application focus agent.
S612,手机应用焦点代理向车机应用焦点代理返回音频焦点申请结果,车机应用焦点代理记录该申请结果。S612, the mobile phone application focus agent returns the audio focus application result to the car machine application focus agent, and the car machine application focus agent records the application result.
S613,手机应用输出音频流给车机应用焦点代理。S613. The mobile phone application outputs the audio stream to the car machine application focus agent.
车机应用焦点代理收到应用音频流,根据焦点申请结果进行处理,若申请成功,则执行S614,若申请失败,则执行S615。The in-vehicle application focus agent receives the application audio stream and processes it according to the focus application result. If the application is successful, execute S614, and if the application fails, execute S615.
S614,车机应用焦点代理丢弃音频,打印日志。S614. The car machine application focus agent discards the audio and prints a log.
S615,车机应用焦点代理传输音频流给手机应用焦点代理。S615. The car machine application focus agent transmits the audio stream to the mobile phone application focus agent.
S616,手机应用焦点代理调用三方厂商提供的标准接口,播放音频。S616. The mobile phone application focus agent calls the standard interface provided by the third-party manufacturer to play the audio.
S617,通过车机音频设备输出音频。S617, output audio through the car audio equipment.
S618,用户启动车机终端的车机应用。S618, the user starts the car-machine application of the car-machine terminal.
S619,车机应用向车机终端的音频管理器发送音频焦点请求。S619, the car-machine application sends an audio focus request to the audio manager of the car-machine terminal.
S620,车机终端的音频管理器向车机应用返回音频焦点请求响应。S620, the audio manager of the car-machine terminal returns an audio focus request response to the car-machine application.
其中,音频焦点请求响应包括请求成功或请求失败。Wherein, the audio focus request response includes request success or request failure.
S621,车机终端的音频管理器通过调用三方厂商提供的标准接口,向手机应用焦点代理通知音频焦点发生变化。S621. The audio manager of the car-machine terminal notifies the mobile phone application focus agent that the audio focus has changed by invoking the standard interface provided by the third-party manufacturer.
S622,手机应用焦点代理转发音频焦点变化事情给车机应用焦点代理。S622. The mobile phone application focus agent forwards the audio focus change event to the car machine application focus agent.
S623,车机应用焦点代理向手机终端的音频管理器申请音频焦点。S623, the vehicle-machine application focus agent applies for the audio focus to the audio manager of the mobile terminal.
S624,手机终端的音频管理器向车机应用焦点代理返回音频焦点申请结果。S624. The audio manager of the mobile terminal returns an audio focus application result to the car machine application focus agent.
若焦点申请成功,则执行S626,若申请失败,则执行S625。If the focus application is successful, execute S626, and if the application fails, execute S625.
S625,车机应用焦点代理记录日志。S625. The in-vehicle application focus agent records a log.
S626,手机终端的音频管理器向手机应用发送音频焦点变化通知。S626. The audio manager of the mobile terminal sends an audio focus change notification to the mobile application.
S627,手机应用停止播放或者压低音量。S627, the mobile phone application stops playing or lowers the volume.
S628,车机应用通过车机音频设备输出音频。S628, the in-vehicle application outputs audio through the in-vehicle audio device.
下面以用户主动停止手机终端应用为例,结合图7对本申请的另一个实施例的音频焦点的控制方法进行介绍。如图7所示,该方法包括S701至S713。Taking the user actively stopping the mobile phone terminal application as an example, the audio focus control method according to another embodiment of the present application will be introduced with reference to FIG. 7 . As shown in FIG. 7, the method includes S701 to S713.
S701,用户启动手机终端的“HiCar”应用。S701, the user starts the "HiCar" application of the mobile terminal.
S702,车机应用焦点代理向手机终端的音频管理器注册音频焦点监听器。S702. The vehicle-machine application focus agent registers the audio focus listener with the audio manager of the mobile terminal.
S703,用户主动停止手机应用。S703, the user actively stops the mobile phone application.
S704,手机应用向手机终端的音频管理器申请释放音频焦点。S704. The mobile application applies to the audio manager of the mobile terminal for releasing the audio focus.
S705,手机终端的音频管理器向手机应用返回释放音频焦点响应。S705. The audio manager of the mobile terminal returns a response of releasing the audio focus to the mobile application.
S706,手机终端的音频管理器向车机应用焦点代理发送音频焦点释放通知。S706. The audio manager of the mobile terminal sends an audio focus release notification to the car-machine application focus agent.
S707,车机应用焦点代理向手机应用焦点代理发送释放音频焦点请求。S707. The vehicle-machine application focus agent sends a request for releasing the audio focus to the mobile phone application focus agent.
S708,手机应用焦点代理调用三方厂商提供的标准接口向车机终端的音频管理器发送释放音频焦点请求。S708, the mobile phone application focus agent calls the standard interface provided by the third-party manufacturer to send a request for releasing the audio focus to the audio manager of the car-machine terminal.
S709,车机终端的音频管理器调用三方厂商提供的标准接口向手机应用焦点代理返回音频焦点请求响应。S709, the audio manager of the car-machine terminal invokes the standard interface provided by the third-party manufacturer to return an audio focus request response to the mobile phone application focus agent.
S710,手机应用焦点代理向车机应用焦点代理返回音频焦点请求响应。S710, the mobile phone application focus proxy returns an audio focus request response to the vehicle-machine application focus proxy.
其中,音频焦点请求响应可以为成功或失败。Wherein, the audio focus request response can be success or failure.
若请求失败,则执行S711。If the request fails, execute S711.
S711,车机应用焦点代理通过日志记录音频焦点申请结果。S711. The in-vehicle application focus agent records an audio focus application result through a log.
S712,车机终端的音频管理器向车机应用发送音频焦点变化通知。S712. The audio manager of the car-machine terminal sends an audio focus change notification to the car-machine application.
S713,车机应用恢复播放或者增大音量。S713, the in-vehicle application resumes playing or increases the volume.
图8为本申请一个实施例提供的音频焦点的控制装置的结构示意图。图8所示的装置可以用于执行图5或图6或图7任一所述的方法。如图8所示,本实施例的音频焦点的控制装置800可以包括:接收模块801、发送模块802。Fig. 8 is a schematic structural diagram of an audio focus control device provided by an embodiment of the present application. The apparatus shown in FIG. 8 may be used to execute the method described in any one of FIG. 5 or FIG. 6 or FIG. 7 . As shown in FIG. 8 , the apparatus 800 for controlling audio focus in this embodiment may include: a receiving module 801 and a sending module 802 .
例如,接收模块801可以用于执行图5或图6或图7任一所述的方法中与接收相关的功能。For example, the receiving module 801 may be configured to perform functions related to receiving in any of the methods described in FIG. 5 or FIG. 6 or FIG. 7 .
例如,发送模块802可以用于执行图5或图6或图7任一所述的方法中与发送相关的功能。For example, the sending module 802 may be configured to execute functions related to sending in any of the methods described in FIG. 5 or FIG. 6 or FIG. 7 .
可选地,装置800还可以包括降低音量模块,以实现图5或图6或图7所示方法中相关功能。例如,降低音量模块可以用于实现图5或图6或图7任一所述方法中与降低音量 相关的功能。Optionally, the device 800 may further include a volume down module, so as to implement related functions in the method shown in FIG. 5 or FIG. 6 or FIG. 7 . For example, the volume reduction module can be used to implement functions related to volume reduction in any of the methods described in Figure 5 or Figure 6 or Figure 7 .
图9为本申请另一个实施例提供的音频焦点的控制装置的结构示意图。图9所示的装置可以用于执行图5或图6或图7任一所述的方法。如图9所示,本实施例的音频焦点的控制装置1000可以包括:接收模块901、发送模块902、播放模块903。FIG. 9 is a schematic structural diagram of an audio focus control device provided by another embodiment of the present application. The device shown in FIG. 9 may be used to execute the method described in any one of FIG. 5 or FIG. 6 or FIG. 7 . As shown in FIG. 9 , the apparatus 1000 for controlling audio focus in this embodiment may include: a receiving module 901 , a sending module 902 , and a playing module 903 .
例如,接收模块901可以用于执行图5或图6或图7任一所述的方法中与接收相关的功能。For example, the receiving module 901 may be configured to perform functions related to receiving in any of the methods described in FIG. 5 or FIG. 6 or FIG. 7 .
例如,发送模块902可以用于执行图5或图6或图7任一所述的方法中与发送相关的功能。For example, the sending module 902 may be configured to execute functions related to sending in any of the methods described in FIG. 5 or FIG. 6 or FIG. 7 .
例如,播放模块903可以用于执行图5或图6或图7任一所述的方法中与播放音频信息相关的功能。For example, the playing module 903 may be configured to perform functions related to playing audio information in any of the methods described in FIG. 5 or 6 or 7 .
可选地,装置900还可以包括降低音量模块,以实现图5或图6或图7所示方法中相关功能。例如,降低音量模块可以用于实现图5或图6或图7任一所述方法中与降低音量相关的功能。Optionally, the device 900 may further include a volume down module, so as to implement related functions in the method shown in FIG. 5 or FIG. 6 or FIG. 7 . For example, the volume reduction module may be used to implement functions related to volume reduction in any one of the methods described in FIG. 5 or FIG. 6 or FIG. 7 .
可选地,装置900还可以包括停止播放模块,以实现图5或图6或图7所示方法中相关功能。例如,停止播放模块可以用于实现图5或图6或图7任一所述方法中与停止播放相关的功能。Optionally, the apparatus 900 may further include a playback stop module, so as to realize related functions in the method shown in FIG. 5 or FIG. 6 or FIG. 7 . For example, the playback stop module may be used to implement functions related to playback stop in any of the methods described in FIG. 5 or FIG. 6 or FIG. 7 .
图10为本申请另一个实施例提供的音频焦点的控制装置的结构示意图。图10所示的装置可以用于执行前述任意一个实施例所述的音频焦点的控制方法。FIG. 10 is a schematic structural diagram of an audio focus control device provided by another embodiment of the present application. The device shown in FIG. 10 may be used to implement the audio focus control method described in any one of the foregoing embodiments.
如图10所示,本实施例的装置1000包括:存储器1001、处理器1002、通信接口1003以及总线1004。其中,存储器1001、处理器1002、通信接口1003通过总线1004实现彼此之间的通信连接。As shown in FIG. 10 , the apparatus 1000 of this embodiment includes: a memory 1001 , a processor 1002 , a communication interface 1003 and a bus 1004 . Wherein, the memory 1001 , the processor 1002 , and the communication interface 1003 are connected to each other through a bus 1004 .
存储器1001可以是只读存储器(read only memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(random access memory,RAM)。存储器1001可以存储程序,当存储器1001中存储的程序被处理器1002执行时,处理器1002用于执行图5或图6或图7任一所述的方法的各个步骤。The memory 1001 may be a read only memory (read only memory, ROM), a static storage device, a dynamic storage device or a random access memory (random access memory, RAM). The memory 1001 may store a program, and when the program stored in the memory 1001 is executed by the processor 1002, the processor 1002 is configured to execute each step of the method described in any one of FIG. 5 or FIG. 6 or FIG. 7 .
处理器1002可以采用通用的中央处理器(central processing unit,CPU),微处理器,应用专用集成电路(application specific integrated circuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现本申请方法实施例的音频焦点的控制方法。The processor 1002 may adopt a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits, for executing related programs to The audio focus control method of the method embodiment of the present application is implemented.
处理器1002还可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,本申请实施例的音频焦点的控制方法的各个步骤可以通过处理器1002中的硬件的集成逻辑电路或者软件形式的指令完成。The processor 1002 may also be an integrated circuit chip with signal processing capability. During implementation, each step of the method for controlling the audio focus in the embodiment of the present application may be implemented by an integrated logic circuit of hardware in the processor 1002 or instructions in the form of software.
上述处理器1002还可以是通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The above-mentioned processor 1002 can also be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an application-specific integrated circuit (ASIC), a ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, Discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储 介质中。该存储介质位于存储器1001,处理器1002读取存储器1001中的信息,结合其硬件完成本申请音频焦点的控制装置包括的单元所需执行的功能,例如,可以执行图5或图6或图7任一所示实施例的各个步骤/功能。The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 1001, and the processor 1002 reads the information in the memory 1001, and combines its hardware to complete the functions required to be performed by the units included in the audio focus control device of this application, for example, it can execute Figure 5 or Figure 6 or Figure 7 Individual steps/functions of any of the illustrated embodiments.
通信接口1003可以使用但不限于收发器一类的收发装置,来实现装置1000与其他设备或通信网络之间的通信。The communication interface 1003 may use, but is not limited to, a transceiver device such as a transceiver to implement communication between the device 1000 and other devices or communication networks.
总线1004可以包括在装置1000各个部件(例如,存储器1001、处理器1002、通信接口1003)之间传送信息的通路。The bus 1004 may include a pathway for transferring information between various components of the apparatus 1000 (eg, the memory 1001, the processor 1002, the communication interface 1003).
应理解,本申请实施例所示的装置1000可以是电子设备,或者,也可以是配置于电子设备中的芯片。It should be understood that the apparatus 1000 shown in the embodiment of the present application may be an electronic device, or may also be a chip configured in the electronic device.
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令或计算机程序。在计算机上加载或执行所述计算机指令或计算机程序时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘。The above-mentioned embodiments may be implemented in whole or in part by software, hardware, firmware or other arbitrary combinations. When implemented using software, the above-described embodiments may be implemented in whole or in part in the form of computer program products. The computer program product comprises one or more computer instructions or computer programs. When the computer instruction or computer program is loaded or executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in 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, computer, server or data center Transmission to another website site, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center that includes one or more sets of available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media. The semiconductor medium may be a solid state drive.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系,但也可能表示的是一种“和/或”的关系,具体可参考前后文进行理解。It should be understood that the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B may mean: A exists alone, and A and B exist at the same time , there are three cases of B alone, where A and B can be singular or plural. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship, but it may also indicate an "and/or" relationship, which can be understood by referring to the context.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (13)

  1. 一种音频焦点的控制方法,其特征在于,所述方法包括:A control method for audio focus, characterized in that the method comprises:
    移动终端接收用户输入的第一指令,所述第一指令用于请求播放所述移动终端中的第一应用中的音频信息;The mobile terminal receives a first instruction input by a user, and the first instruction is used to request to play audio information in a first application in the mobile terminal;
    所述移动终端向车机终端发送音频焦点请求信息,所述音频焦点请求信息用于请求所述车机终端上的音响设备的音频焦点,所述移动终端的操作系统与所述车机终端的操作系统构成分布式操作系统;The mobile terminal sends audio focus request information to the car-machine terminal, the audio focus request information is used to request the audio focus of the audio equipment on the car-machine terminal, the operating system of the mobile terminal is connected with the car-machine terminal The operating system constitutes a distributed operating system;
    所述移动终端接收所述车机终端发送的音频焦点请求响应信息,所述音频焦点请求响应信息用于指示所述移动终端是否成功请求所述音响设备的音频焦点;The mobile terminal receives the audio focus request response information sent by the vehicle-machine terminal, and the audio focus request response information is used to indicate whether the mobile terminal successfully requests the audio focus of the audio device;
    所述移动终端成功请求所述音响设备的音频焦点的情况下,所述移动终端向所述车机终端发送所述第一应用中的音频信息。When the mobile terminal successfully requests the audio focus of the audio device, the mobile terminal sends the audio information in the first application to the vehicle-machine terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    所述移动终端接收来自所述车机终端的音频焦点变换请求信息,所述音频焦点变换请求信息用于请求将所述音响设备的音频焦点从所述移动终端变换至所述车机终端;The mobile terminal receives audio focus change request information from the vehicle-machine terminal, the audio focus change request information is used to request to change the audio focus of the audio equipment from the mobile terminal to the vehicle-machine terminal;
    所述移动终端降低所述第一应用中的音频信息的音量。The mobile terminal reduces the volume of the audio information in the first application.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that the method further comprises:
    所述移动终端接收用户输入的第二指令,所述第二指令用于请求停止播放所述第一应用中的音频信息;The mobile terminal receives a second instruction input by the user, and the second instruction is used to request to stop playing the audio information in the first application;
    所述移动终端停止向所述车机终端发送所述第一应用中的音频信息。The mobile terminal stops sending the audio information in the first application to the vehicle-machine terminal.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, further comprising:
    所述移动终端向所述车机终端发送音频焦点释放请求,所述音频焦点释放请求用于指示所述车机终端所述移动终端已释放所述音响设备的音频焦点。The mobile terminal sends an audio focus release request to the vehicle-machine terminal, where the audio focus release request is used to indicate to the vehicle-machine terminal that the mobile terminal has released the audio focus of the audio device.
  5. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that the method further comprises:
    所述移动终端接收来自所述车机终端的音频焦点变换请求信息,所述音频焦点变换请求信息用于请求将所述音响设备的音频焦点从所述移动终端变换至所述车机终端;The mobile terminal receives audio focus change request information from the vehicle-machine terminal, the audio focus change request information is used to request to change the audio focus of the audio equipment from the mobile terminal to the vehicle-machine terminal;
    所述移动终端停止向所述车机终端发送所述第一应用中的音频信息。The mobile terminal stops sending the audio information in the first application to the vehicle-machine terminal.
  6. 一种音频焦点的控制方法,其特征在于,所述方法包括:A control method for audio focus, characterized in that the method comprises:
    车机终端接收来自移动终端的音频焦点请求信息,所述音频焦点请求信息用于请求所述车机终端上的音响设备的音频焦点,所述移动终端的操作系统与所述车机终端的操作系统构成分布式操作系统;The car-machine terminal receives audio focus request information from the mobile terminal, the audio focus request information is used to request the audio focus of the audio equipment on the car-machine terminal, the operating system of the mobile terminal is related to the operation of the car-machine terminal The system constitutes a distributed operating system;
    所述车机终端向所述移动终端发送音频焦点请求响应信息,所述音频焦点请求响应信息用于指示所述移动终端是否成功请求所述音响设备的音频焦点;The vehicle-machine terminal sends audio focus request response information to the mobile terminal, and the audio focus request response information is used to indicate whether the mobile terminal successfully requests the audio focus of the audio device;
    所述移动终端成功请求所述音响设备的音频焦点的情况下,所述车机终端接收来自所述移动终端的第一应用中的音频信息;When the mobile terminal successfully requests the audio focus of the audio device, the vehicle-machine terminal receives audio information from the first application of the mobile terminal;
    所述车机终端通过所述音响设备播放所述第一应用中的音频信息。The vehicle-machine terminal plays the audio information in the first application through the audio equipment.
  7. 根据权利要求6所述的方法,其特征在于,所述车机终端通过所述音响设备播放所述第一应用中的音频信息之前,所述车机终端通过所述音响设备播放所述车机终端上的第二应用中的音频信息;The method according to claim 6, characterized in that, before the car-machine terminal plays the audio information in the first application through the audio device, the car-machine terminal plays the car-machine terminal through the audio device audio information in the second application on the terminal;
    所述方法还包括:The method also includes:
    所述车机终端降低所述第二应用中的音频信息的音量。The car-machine terminal reduces the volume of the audio information in the second application.
  8. 根据权利要求6所述的方法,其特征在于,所述车机终端通过所述音响设备播放所述第一应用中的音频信息之前,所述车机终端通过所述音响设备播放所述车机终端上的第二应用中的音频信息;The method according to claim 6, characterized in that, before the car-machine terminal plays the audio information in the first application through the audio device, the car-machine terminal plays the car-machine terminal through the audio device audio information in the second application on the terminal;
    所述方法还包括:The method also includes:
    所述车机终端停止播放所述第二应用中的音频信息。The vehicle-machine terminal stops playing the audio information in the second application.
  9. 根据权利要求6至8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 6 to 8, wherein the method further comprises:
    所述车机终端接收用户输入的第三指令,所述第三指令用于请求播放所述车机终端上的第三应用中的音频信息;The vehicle-machine terminal receives a third instruction input by the user, and the third instruction is used to request to play audio information in a third application on the vehicle-machine terminal;
    所述车机终端向所述移动终端发送音频焦点变换请求信息,所述音频焦点变换请求信息用于请求将所述音响设备的音频焦点从所述移动终端变换至所述车机终端;The vehicle-machine terminal sends audio focus change request information to the mobile terminal, and the audio focus change request information is used to request to change the audio focus of the audio equipment from the mobile terminal to the vehicle-machine terminal;
    所述车机终端通过所述音响设备播放所述第三应用中的音频信息。The vehicle-machine terminal plays the audio information in the third application through the audio equipment.
  10. 一种电子设备,其特征在于,包括:一个或多个处理器、一个或多个存储器;An electronic device, characterized by comprising: one or more processors, one or more memories;
    所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述电子设备执行如权利要求1至9中任一项所述控制方法。The one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, when the one or more processors When executing the computer instructions, the electronic device executes the control method according to any one of claims 1-9.
  11. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端上运行,使得所述终端执行如权利要求1至9中任一项所述的控制方法。A computer storage medium, characterized in that it includes computer instructions, and when the computer instructions are run on a terminal, the terminal executes the control method according to any one of claims 1 to 9.
  12. 一种计算机程序产品,所述计算机程序产品中包括计算机程序代码,其特征在于,当所述计算机程序代码在计算机上运行时,使得计算机实现如权利要求1至9中任一项所述的控制方法。A computer program product, the computer program product comprising computer program code, characterized in that, when the computer program code is run on a computer, the computer is made to realize the control described in any one of claims 1 to 9 method.
  13. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,通信装置的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得通信装置实施如权利要求1-5任意一项所述的方法或者如权利要求6-9任意一项所述的方法。A program product, characterized in that the program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of a communication device can read the computer program from the readable storage medium The at least one processor executes the computer program so that the communication device implements the method according to any one of claims 1-5 or the method according to any one of claims 6-9.
PCT/CN2022/086102 2021-05-27 2022-04-11 Audio focus control method and related apparatus WO2022247495A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110587251.4A CN115407961A (en) 2021-05-27 2021-05-27 Control method of audio focus and related device
CN202110587251.4 2021-05-27

Publications (1)

Publication Number Publication Date
WO2022247495A1 true WO2022247495A1 (en) 2022-12-01

Family

ID=84156388

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086102 WO2022247495A1 (en) 2021-05-27 2022-04-11 Audio focus control method and related apparatus

Country Status (2)

Country Link
CN (1) CN115407961A (en)
WO (1) WO2022247495A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974508A (en) * 2023-06-30 2023-10-31 荣耀终端有限公司 Audio focus control method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020103554A1 (en) * 2001-01-29 2002-08-01 Hewlett-Packard Company Interactive audio system
CN109996099A (en) * 2019-04-16 2019-07-09 百度在线网络技术(北京)有限公司 Audio focus control method, system and the onboard system of onboard system
CN110673964A (en) * 2019-09-10 2020-01-10 沈阳中科创达软件有限公司 Audio playing control method and device of vehicle-mounted system
CN112637412A (en) * 2019-10-09 2021-04-09 上海博泰悦臻电子设备制造有限公司 Audio management method and device and computer storage medium
CN112799631A (en) * 2021-01-22 2021-05-14 中汽创智科技有限公司 Optimization system and optimization method for controlling DSP (digital signal processor) on android system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020103554A1 (en) * 2001-01-29 2002-08-01 Hewlett-Packard Company Interactive audio system
CN109996099A (en) * 2019-04-16 2019-07-09 百度在线网络技术(北京)有限公司 Audio focus control method, system and the onboard system of onboard system
CN110673964A (en) * 2019-09-10 2020-01-10 沈阳中科创达软件有限公司 Audio playing control method and device of vehicle-mounted system
CN112637412A (en) * 2019-10-09 2021-04-09 上海博泰悦臻电子设备制造有限公司 Audio management method and device and computer storage medium
CN112799631A (en) * 2021-01-22 2021-05-14 中汽创智科技有限公司 Optimization system and optimization method for controlling DSP (digital signal processor) on android system

Also Published As

Publication number Publication date
CN115407961A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
EP4002108B1 (en) Application start method and electronic device
WO2021023220A1 (en) Content continuation method and system, and electronic device
WO2021121052A1 (en) Multi-screen cooperation method and system, and electronic device
WO2023065916A1 (en) Notification processing method, chip, electronic device, and computer readable storage medium
US20240073978A1 (en) Method for monitoring link and terminal device
WO2022083465A1 (en) Electronic device screen projection method, medium thereof, and electronic device
WO2021104259A1 (en) Method and terminal for data sharing between fast application and native application
WO2022247495A1 (en) Audio focus control method and related apparatus
WO2022121445A1 (en) Widget adding method, apparatus, and computer-readable storage medium
WO2021169379A1 (en) Permission reuse method, permission reuse-based resource access method, and related device
CN115348630B (en) Multi-device cooperation method and related device
CN113760192B (en) Data reading method, data reading apparatus, storage medium, and program product
EP4191409A1 (en) Shared library multiplexing method and electronic device
WO2021238376A1 (en) Function pack loading method and apparatus, and server and electronic device
WO2022228035A1 (en) Application icon update method and related apparatus
WO2023174322A1 (en) Layer processing method and electronic device
WO2024022119A1 (en) Data synchronization method, electronic device and system
WO2024022257A1 (en) Content display method, device, and system
WO2024099212A1 (en) Spatial position determination method and system, and device therefor
WO2023030057A1 (en) Screen recording method, electronic device, and computer readable storage medium
WO2023071590A1 (en) Input control method and electronic device
WO2022252805A1 (en) Display method and electronic device
WO2023066036A1 (en) Cross-device file display method and system, and device
WO2023061014A1 (en) Task management method and apparatus
CN116700660B (en) Audio playing method and electronic equipment

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: 22810228

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE