Method and apparatus for automatically selecting audio input / output device of application
By establishing a wireless communication connection between the mobile terminal and the on-board system, and automatically selecting the audio input/output device in response to preset events, the convenience and privacy protection of device selection when the mobile terminal leaves the vehicle or starts a new application is solved, and an efficient and convenient user experience is achieved.
Patent Information
- Application Number
- CN202311133071.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2025-03-04
AI Technical Summary
When establishing a wireless communication connection between the mobile terminal and the on-board system, how to automatically select an audio input/output device, especially when the mobile terminal leaves the vehicle or when a new application is started, ensure that the automatic switching of the audio input/output device is convenient and meets user privacy needs.
By establishing a wireless communication connection between the mobile terminal and the on-board system, the audio input/output device is automatically selected in response to preset events (such as the mobile terminal leaving the vehicle or the new application is started). Specific measures include activate the input and output preferred strategy, determine that the currently running application is a privacy application or a non-private application, and automatically selecting a mobile terminal or an on-board system as an audio input/output device.
It realizes automatic audio input/output device selection when the mobile terminal maintains wireless communication connection with the on-board system, improves operation convenience, ensures user privacy, and significantly improves user experience.
Smart Images

Figure CN119562002A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of electronic technology, and more particularly, to a method and apparatus for automatically selecting an audio input / output device of an application. Background Art
[0002] With the development of science and technology, transportation tools such as mobile terminals (such as smart phones, tablet computers, etc.) and vehicles are becoming more and more popular. At present, most vehicles can achieve wireless communication connection between the vehicle system and the mobile terminal through wireless communication methods such as Bluetooth. By establishing a wireless communication connection between the mobile terminal and the vehicle system, it can bring a lot of convenience to the driver or passengers. For example, when the driver uses the mobile terminal to make a call, the audio system of the vehicle system can be used as an audio input / output device to achieve hands-free calling. For another example, the driver can play audio content (such as music, navigation sound, etc.) through the vehicle system. However, as more and more applications with audio input / output functions are installed on mobile terminals, the control demand for various applications to select mobile terminals and / or vehicle systems as audio input / output devices is increasing. Summary of the invention
[0003] Embodiments of the present disclosure provide a method and apparatus for automatically selecting an audio input / output device for an application, which can realize automatic selection of an audio input / output device for an application with an audio input / output function between a mobile terminal and a vehicle-mounted system.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for automatically selecting an audio input / output device of an application is provided, the method comprising: establishing a wireless communication connection between a mobile terminal and an in-vehicle system of a vehicle; in response to an occurrence of a preset event, automatically selecting an audio input / output device of an application on the mobile terminal according to preset rules, wherein the preset event comprises: the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the in-vehicle system, or a new application on the mobile terminal is started after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the in-vehicle system.
[0005] Optionally, when the preset event is that the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the audio input / output device of the application on the mobile terminal is selected according to preset rules, including: determining one or more applications with audio input / output functions currently running on the mobile terminal as target applications; automatically selecting the mobile terminal as the audio input / output device for the privacy application in the target application, and selecting the vehicle-mounted system as the audio input / output device for the non-privacy application in the target application.
[0006] Optionally, the privacy application is an application that meets at least one of the following preset conditions: having an audio input function and being preset by a user.
[0007] Optionally, the method also includes: in response to the mobile terminal leaving the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, starting an input / output preference strategy to allow the audio input / output device of the application on the mobile terminal to be selected according to preset rules; in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system or returning to the vehicle, shutting down the input / output preference strategy to prohibit the selection of the audio input / output device of the application on the mobile terminal according to preset rules.
[0008] Optionally, when the preset event is that a new application is started on the mobile terminal after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the audio input / output device of the application on the mobile terminal is selected according to preset rules, including: in response to the new application being an application with audio input / output function, determining the setting state of the input / output priority policy; in response to the input / output priority policy having been started, automatically selecting the audio input / output device of the new application based on the startup method of the new application.
[0009] Optionally, the audio input / output device of the new application is selected based on the startup method of the new application, including: in response to the new application being started through a mobile terminal, automatically selecting the mobile terminal as the audio input / output device of the new application; in response to the new application being started through a vehicle system, automatically selecting the vehicle system as the audio input / output device of the new application.
[0010] Optionally, the method also includes: in response to the mobile terminal returning to the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, automatically selecting the vehicle-mounted system as the audio input / output device of the application on the mobile terminal; or in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system, automatically selecting the mobile terminal as the audio input / output device of the application on the mobile terminal.
[0011] According to a second aspect of an embodiment of the present disclosure, a device for automatically selecting an audio input / output device of an application is provided, the device comprising: a wireless communication connection establishing unit, configured to: establish a wireless communication connection between a mobile terminal and an onboard system of a vehicle; an input / output device selecting unit, configured to: in response to an occurrence of a preset event, automatically select an audio input / output device of an application on the mobile terminal according to preset rules, wherein the preset event comprises: the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the onboard system, or a new application on the mobile terminal is started after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the onboard system.
[0012] Optionally, when the preset event is that the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the input / output device selection unit is configured to: determine one or more applications with audio input / output functions currently running on the mobile terminal as target applications; automatically select the mobile terminal as the audio input / output device for the privacy application in the target application, and select the vehicle-mounted system as the audio input / output device for the non-privacy application in the target application.
[0013] Optionally, the privacy application is an application that meets at least one of the following preset conditions: having an audio input function and being preset by a user.
[0014] Optionally, the input / output device selection unit is further configured to: in response to the mobile terminal leaving the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, start the input / output preferred strategy to allow the audio input / output device of the application on the mobile terminal to be selected according to the preset rules; in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system or returning to the vehicle, shut down the input / output preferred strategy to prohibit the audio input / output device of the application on the mobile terminal from being selected according to the preset rules. Optionally, in the case where the preset event is that a new application on the mobile terminal is started after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the input / output device selection unit is configured to: in response to the new application being an application with an audio input / output function, determine the setting state of the input / output preferred strategy; in response to the input / output preferred strategy being started, automatically select the audio input / output device of the new application based on the startup method of the new application.
[0015] Optionally, the input / output device selection unit is also configured to: in response to the new application being started through the mobile terminal, automatically select the mobile terminal as the audio input / output device of the new application; in response to the new application being started through the vehicle system, automatically select the vehicle system as the audio input / output device of the new application.
[0016] Optionally, the input / output device selection unit is further configured to: in response to the mobile terminal returning to the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, automatically select the vehicle-mounted system as the audio input / output device of the application on the mobile terminal; or in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system, automatically select the mobile terminal as the audio input / output device of the application on the mobile terminal.
[0017] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium storing a computer program is provided. When the computer program is executed by a processor, the method as described above is implemented.
[0018] According to a fourth aspect of an embodiment of the present disclosure, a mobile terminal is provided, comprising: at least one processor; and at least one memory storing a computer program, wherein when the computer program is executed by the at least one processor, the method as described above is implemented.
[0019] According to a fifth aspect of an embodiment of the present disclosure, a mobile terminal is provided, comprising: a connector; a wireless communication circuit; and at least one processor operably connected to the connector and the wireless communication circuit, wherein the at least one processor is configured to: control the wireless communication circuit to establish a wireless communication connection between the mobile terminal and an onboard system of a vehicle; and in response to an occurrence of a preset event, automatically select an audio input / output device of an application on the mobile terminal according to preset rules, wherein the preset event comprises: the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the onboard system, or a new application on the mobile terminal is started after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the onboard system.
[0020] According to the method and apparatus, medium and mobile terminal for automatically selecting the audio input / output device of an application in an embodiment of the present disclosure, when the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the mobile terminal or the vehicle-mounted system can be automatically selected as the audio input / output device of the application based on the privacy of the application with audio input / output function or the startup method of the application. This not only improves the convenience of operation of the mobile terminal, but also ensures the user's privacy needs, and can significantly improve the user experience.
[0021] Additional aspects and / or advantages of the present general inventive concept will be set forth in part in the following description and in part will be apparent from the description or may be learned through practice of the present general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects and features of the exemplary embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, in which:
[0023] Figure 1 is a flow chart showing a method for selecting an audio input / output device of an application when a mobile terminal leaves a vehicle while maintaining a wireless communication connection with an in-vehicle system;
[0024] Figure 2 is a flowchart illustrating a method of automatically selecting an audio input / output device of an application according to an embodiment of the present disclosure;
[0025] Figure 3is a flowchart showing an example of a method for automatically selecting an audio input / output device of an application on a mobile terminal according to a preset rule according to an embodiment of the present disclosure;
[0026] Figure 4 is a flowchart showing another example of a method for automatically selecting an audio input / output device of an application on a mobile terminal according to a preset rule according to an embodiment of the present disclosure;
[0027] Figure 5 is a block diagram illustrating an apparatus for automatically selecting an audio input / output device for an application according to an embodiment of the present disclosure;
[0028] Figure 6 is a block diagram illustrating a mobile terminal according to an embodiment of the present disclosure;
[0029] Figure 7 is a block diagram illustrating a mobile terminal according to another embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Hereinafter, various embodiments of the present disclosure are described with reference to the accompanying drawings, wherein the same reference numerals are used to represent the same or similar elements, features and structures. However, it is not intended that the present disclosure be limited to specific embodiments by the various embodiments described herein, and it is intended that: the present disclosure covers all modifications, equivalents and / or substitutes of the present disclosure, as long as they are within the scope of the attached claims and their equivalents. The terms and words used in the following specification and claims are not limited to their dictionary meanings, but are only used to enable a clear and consistent understanding of the present disclosure. Therefore, it should be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only, and not for the purpose of limiting the present disclosure defined by the attached claims and their equivalents.
[0031] It should be understood that the singular includes the plural unless the context clearly indicates otherwise.The terms "include", "comprising" and "having" used herein indicate the presence of disclosed functions, operations or elements, but do not exclude other functions, operations or elements.
[0032] For example, the expression "A or B" or "A and / or B" may indicate A and B, A or B. For example, the expression "A or B" or "A and / or B" may indicate (1) A, (2) B, or (3) both A and B. In an embodiment of the present disclosure, " / " means "and / or".
[0033] In various embodiments of the present disclosure, it is intended that when a component (e.g., a first component) is referred to as being "coupled" or "connected" to another component (e.g., a second component) or being "coupled" or "connected" to another component (e.g., the second component), the component may be directly connected to the other component or may be connected through another component (e.g., a third component). In contrast, when a component (e.g., a first component) is referred to as being "directly coupled" or "directly connected" to another component (e.g., the second component) or being directly coupled to or directly connected to another component (e.g., the second component), there is no other component (e.g., the third component) between the component and the other component.
[0034] The expression "configured to" used in describing various embodiments of the present disclosure may be used interchangeably with expressions such as "suitable for", "having the ability to", "designed to", "suitable for", "manufactured to", and "capable of", for example, depending on the circumstances. The term "configured to" may not necessarily indicate that it is "specially designed to" in terms of hardware. On the contrary, the expression "a device configured to..." in some cases may indicate that the device and another device or part "can..." For example, the expression "a processor configured to perform A, B, and C" may indicate a dedicated processor (e.g., an embedded processor) for performing the corresponding operations or a general-purpose processor (e.g., a central processing unit CPU or an application processor (AP)) for performing the corresponding operations by executing at least one software program stored in a memory.
[0035] The terms used herein are to describe certain embodiments of the present disclosure, but are not intended to limit the scope of other embodiments. Unless otherwise noted herein, all terms used herein (including technical or scientific terms) may have the same meaning as those generally understood by those skilled in the art. Typically, the terms defined in the dictionary should be considered to have the same meaning as the contextual meaning in the relevant field, and, unless clearly defined herein, should not be understood differently or understood to have an overly formal meaning. In any case, the terms defined in the present disclosure are not intended to be interpreted as excluding embodiments of the present disclosure.
[0036] Below, several special situations that may occur when a mobile terminal (such as a smart phone, tablet computer, etc.) maintains a wireless communication connection with the vehicle-mounted system are first described.
[0037] When the vehicle is driving, the driver's mobile terminal is wirelessly connected to the vehicle system (for example, wirelessly connected to the vehicle system by Bluetooth, radio frequency (RF), etc.) and plays music through the vehicle system, and the driver and passengers enjoy the music played at the same time. If the driver stops temporarily and leaves the vehicle with the mobile terminal without turning off the vehicle, goes shopping or sends and receives express delivery, etc., since the distance between the mobile terminal and the vehicle (i.e., the vehicle system) does not exceed the wireless communication distance, the mobile terminal and the vehicle system can maintain a wireless communication connection. At this time, if the mobile terminal receives an incoming call (for example, but not limited to a phone call, WeChat call, etc.), and the driver operates the mobile terminal to answer the call, the following two situations may occur. In one case, since the mobile terminal and the vehicle system still maintain a wireless communication connection, the mobile terminal will not output sound, and the sound will be output through the vehicle system, and the vehicle system stops playing music. At this time, the driver needs to manually disconnect the wireless communication connection between the mobile terminal and the vehicle system to answer the call normally, but the passengers will not be able to enjoy the music at this time. Another situation is that the mobile terminal automatically switches the audio input / output device to the mobile terminal when leaving the vehicle, and the driver can answer calls normally, but when the driver leaves the vehicle, the vehicle system will interrupt the music playback, so that the passengers will not be able to enjoy the music.
[0038] On the other hand, when the vehicle is driving, the driver's mobile terminal is wirelessly connected to the vehicle system and plays music through the vehicle system, and the driver and passengers enjoy the music played at the same time. If the mobile terminal receives an incoming call and the driver chooses to answer it, the vehicle system will interrupt the music playback and output the incoming call. At this time, if the driver finds that the incoming call is very important and it is inconvenient to continue the call in the vehicle (that is, he does not want the passengers to hear it), but needs to be handled immediately. The driver will stop the car temporarily, leave the vehicle, and continue the call. At this time, the following two situations may occur. In one case, the driver manually disconnects the wireless communication connection between the mobile terminal and the vehicle system in order to answer the call normally. In another case, the audio input / output device is automatically switched to the mobile terminal when the mobile terminal leaves the vehicle, and the driver can answer the call normally. However, in both cases, the vehicle system will interrupt the music playback, so that the passengers will not be able to enjoy the music.
[0039] Figure 1 The present invention is a flowchart showing a method for selecting an audio input / output device of an application when a mobile terminal leaves a vehicle while maintaining a wireless communication connection with an in-vehicle system.
[0040] Reference Figure 1In step S101, a wireless communication connection (such as but not limited to Bluetooth connection, RF connection, etc.) is established between the mobile terminal and the vehicle-mounted system of the vehicle. For example, when the driver carries the mobile terminal into the vehicle and the wireless connection function of the mobile terminal is turned on, the wireless terminal can establish a wireless communication connection with the vehicle-mounted system. In this case, the applications with audio input / output functions running in the wireless terminal are all input / output through the vehicle-mounted system as an audio input / output device.
[0041] In step S102, the mobile terminal leaves the vehicle and maintains a wireless communication connection with the vehicle-mounted system. Here, the mobile terminal can detect whether it has left the vehicle by, for example, but not limited to, UWB positioning technology. In addition, the mobile terminal maintains a wireless communication connection with the vehicle-mounted system, which means that the distance between the mobile terminal and the vehicle-mounted system does not exceed the wireless communication distance.
[0042] In step S103, the mobile terminal disconnects the wireless communication connection with the in-vehicle system according to the user operation, thereby switching the audio input / output device of the application with audio input / output function to the mobile terminal.
[0043] In step S104, applications with audio input / output functions perform audio input / output through the mobile terminal, while the in-vehicle system does not perform audio input / output.
[0044] according to Figure 1 In the method of selecting the audio input / output device of the application shown, when the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, if the wireless communication connection between the mobile terminal and the vehicle-mounted system is not manually disconnected, the application cannot perform audio input / output through the mobile terminal. If the wireless communication connection between the mobile terminal and the vehicle-mounted system is disconnected, the audio input / output of the application is all performed through the mobile terminal, and the vehicle-mounted system cannot perform audio input / output. As a result, the user of the mobile terminal needs to manually switch the audio input / output device, which is very inconvenient and cannot provide a good experience for the passengers in the car.
[0045] To this end, an embodiment of the present disclosure provides a method for automatically selecting an audio input / output device for an application. When a mobile terminal leaves a vehicle while maintaining a wireless communication connection with an in-vehicle system, the audio input / output device for an application with an audio input / output function is automatically selected according to the following preset rules: (1) When the mobile terminal leaves the vehicle, an input / output priority policy is initiated to determine the privacy applications and non-privacy applications among multiple applications with audio input / output functions currently running in the mobile terminal, and the mobile terminal is automatically selected as the audio input / output device for the privacy application; (2) When a new application with an audio input / output function is started in the mobile terminal, it is determined whether the input / output priority policy has been enabled, and if the input / output priority policy has been enabled, the operating device (e.g., the mobile terminal or the in-vehicle system) that starts the new application is automatically selected as the audio input / output device for the new application.
[0046] Below, refer to Figures 2 to 7 A method and apparatus, a medium, and a mobile terminal for automatically selecting an audio input / output device of an application according to an embodiment of the present disclosure are described in detail.
[0047] Figure 2 1 is a flow chart showing a method for automatically selecting an audio input / output device of an application according to an embodiment of the present disclosure. The method may be executed by a CPU of a mobile terminal, but is not limited thereto. For example, the method may be executed by other processors provided in the mobile terminal.
[0048] like Figure 2 As shown, in step S201, a wireless communication connection is established between the mobile terminal and the vehicle-mounted system of the vehicle. As described above, when the driver carries the mobile terminal into the vehicle and the wireless connection function of the mobile terminal is turned on, the wireless terminal can establish a wireless communication connection (for example, but not limited to Bluetooth connection, RF connection, etc.) with the vehicle-mounted system. The wireless terminal may include a smart phone, a tablet computer, etc., and may run multiple applications (Apps), such as phone, WeChat, navigation, SMS, address book, etc.
[0049] In step S202, in response to the occurrence of a preset event, the audio input / output device of the application on the mobile terminal is automatically selected according to a preset rule. According to an embodiment of the present disclosure, the preset event may include: the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle system, or a new application on the mobile terminal is started after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle system. Alternatively, as described above, whether the mobile terminal leaves the vehicle may be detected by, for example, but not limited to, UWB positioning technology.
[0050] According to an embodiment of the present disclosure, the audio input / output device of the application on the mobile terminal can be selected based on the two rules as described above. Figure 3 and Figure 4 This is described in detail.
[0051] Figure 3 1 is a flowchart showing an example of a method for automatically selecting an audio input / output device of an application on a mobile terminal according to a preset rule according to an embodiment of the present disclosure. In this embodiment, the preset event is that the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system.
[0052] Reference Figure 3 In step S301, one or more applications with audio input / output functions currently running on the mobile terminal may be determined as target applications. Here, a list of all applications currently running on the mobile terminal may be first obtained, and then one or more applications with audio input / output functions may be determined from the obtained list of all applications. Generally speaking, there must be an application with audio input / output functions running on the mobile terminal. For example, when the mobile terminal establishes a wireless communication connection with the vehicle-mounted system, a music application may be started, and audio input / output may be performed through the vehicle-mounted system as an audio input / output device. However, the present disclosure is not limited thereto. If no application with audio input / output functions is running on the mobile terminal, the program may be exited. Figure 3 The method shown.
[0053] Next, in step S302, the mobile terminal may be automatically selected as the audio input / output device of the privacy application in the target application, and the vehicle system may be selected as the audio input / output device of the non-privacy application in the target application. In this way, on the one hand, it is possible to prevent passengers in the vehicle from understanding the audio output content of the privacy application, and prohibit passengers in the vehicle from participating in the audio input of the privacy application, thereby ensuring the security of the privacy application; on the other hand, passengers in the vehicle can still understand the audio output content of the non-privacy application, for example, passengers in the vehicle can still enjoy the audio output of the music application which is a non-privacy application.
[0054] According to an embodiment of the present disclosure, a privacy application may be an application that satisfies at least one of the following preset conditions: having an audio input function; being pre-set by the user. Examples of applications with an audio input function may include WeChat, a phone, etc., which are in a voice call. Pre-set privacy applications may include whitelist applications that are the default of the mobile terminal and privacy-preserving applications that are pre-set by the user. In this way, the user may freely set applications that require privacy protection to improve the security of the application.
[0055] In addition, if Figure 3The method shown may also include the following steps: in response to the mobile terminal leaving the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, starting the input / output preference strategy to allow the audio input / output device of the application on the mobile terminal to be selected according to the preset rules; in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system or returning to the vehicle, closing the input / output preference strategy to prohibit the audio input / output device of the application on the mobile terminal from being selected according to the preset rules. For example, before determining the target application, the input / output preference strategy may be started, and the input / output forced switching flag may be set; after the mobile terminal is automatically selected as the audio input / output device of the privacy application and / or after the vehicle-mounted system is selected as the audio input / output device of the non-privacy application, the input / output forced switching flag may be cleared. On the other hand, if the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, but when the mobile terminal disconnects the wireless communication connection with the vehicle-mounted system (for example, the distance between the mobile terminal and the vehicle-mounted system exceeds the wireless communication distance, or the user manually disconnects the wireless communication connection) or returns to the vehicle (for example, detected by UWB positioning technology), the input / output preference strategy may be closed. By enabling / disabling the input / output preference strategy, the switching of the audio input / output device of the application can be avoided when it is not necessary, thereby ensuring the reliability of selecting the audio input / output device. On the other hand, by setting / clearing the input / output forced switching flag, the conflict between the two rules described above can be avoided.
[0056] Further, when the input / output preference strategy is started and the input / output forced switching flag is set, in step S302, in response to the input / output forced switching flag being set, the mobile terminal can be automatically selected as the audio input / output device of the privacy application, and the vehicle-mounted system can be selected as the audio input / output device of the non-privacy application. That is, when the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the input / output preference strategy can be automatically started, and then the input / output forced switching flag can be set to true, and then the automatic selection of the audio input / output device of the privacy application is allowed, which can ensure the reliability of the switching of the audio input / output device of the application and avoid conflicts between different rules. Optionally, clearing the input / output forced switching flag means setting the forced switching flag to false, indicating that the automatic selection of the audio input / output devices for the privacy application and the non-privacy application (including the case where there is no privacy application) has been completed. In this case, if Figure 3 The method shown can end. Thereafter, the audio input / output device of the application can be controlled based on other rules, and the audio input / output device of the application can be prevented from being used in conjunction with the audio input / output device of the application. Figure 3 The methods shown conflict.
[0057] The following takes answering a call on a mobile terminal as an example to describe how Figure 3 Application scenarios of the method shown.
[0058] When a wireless communication connection is established between the mobile terminal and the vehicle-mounted system, and music is played through the vehicle-mounted system, the mobile terminal receives an incoming call. During the call, the driver finds that the incoming call is very important and it is inconvenient to continue the call in the vehicle (i.e., he does not want the passengers to hear it). Therefore, the driver temporarily stops the car and leaves the vehicle. In this case, it will be detected that the mobile terminal leaves the vehicle. At the moment when the mobile terminal leaves the vehicle, the input and output preferred strategy is started, and optionally, the input and output forced switching flag is set to true. Then, a list of all applications currently running on the mobile terminal can be obtained, and one or more applications with audio input / output functions can be determined as target applications from the list of all applications obtained. Next, it can be determined whether there is a privacy application in the target application. In this example, the phone application is an application with an audio input function (the phone application also has an audio output function) and will be determined as a privacy application. At this time, since the input and output preferred strategy has been started, and optionally, the input and output forced switching flag has been set to true, and the phone application belongs to a privacy application, the mobile terminal can be automatically selected (i.e., switched) as the audio input / output device of the phone application. On the other hand, the music application is not a privacy application, so the vehicle system can be automatically selected (i.e., maintained) as the audio input / output device of the music application. In this way, on the one hand, the driver can answer the phone through the mobile terminal, and personal privacy can be protected. On the other hand, the passenger can enjoy music through the vehicle system, and the user experience can be guaranteed. In addition, after automatically selecting the mobile terminal as the audio input / output device of the phone application and / or selecting the vehicle system as the audio input / output device of the music application, the input and output forced switching flag can be set to false. When the driver returns to the vehicle, it will be detected that the mobile terminal has returned to the vehicle, and the input and output preference strategy can be turned off at this time. In this case, if the driver is still answering the phone, the vehicle system can be automatically selected as the audio input / output device of the phone application.
[0059] Figure 4 FIG. 1 is a flowchart showing another example of a method for automatically selecting an audio input / output device of an application on a mobile terminal according to a preset rule according to an embodiment of the present disclosure. Figure 4 The method shown can be used in Figure 3 The method shown is then executed, and can also be independent of Figure 3 In this embodiment, the preset event is that a new application on the mobile terminal is started after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system.
[0060] Reference Figure 4In step S401, in response to the new application being an application with an audio input / output function, the setting state of the input / output preferred strategy is determined. As described above, when the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the input / output preferred strategy is activated, and the input / output preferred strategy remains in the on-board state when the mobile terminal does not disconnect the wireless communication connection with the vehicle-mounted system or does not return to the vehicle. Next, in step S402, in response to the input / output preferred strategy being activated, the audio input / output device of the new application is automatically selected based on the startup mode of the new application. In this way, after the driver leaves the vehicle with the mobile terminal, when the new application is started, the mobile terminal can be conveniently used as an audio input / output device without performing manual switching, thereby improving the convenience of the operation of the mobile terminal. According to an embodiment of the present disclosure, step S402 may specifically include: in response to the new application being started by the mobile terminal, the mobile terminal can be automatically selected as the audio input / output device of the new application; in response to the new application being started by the vehicle-mounted system, the vehicle-mounted system can be automatically selected as the audio input / output device of the new application. In this way, it is convenient for the driver to use the mobile terminal as an audio input / output device, and it is convenient for the passenger to use the vehicle-mounted system as an audio input / output device, thereby significantly improving the user experience.
[0061] As described above, when the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the input / output priority strategy can be activated, and when the mobile terminal disconnects the wireless communication connection with the vehicle-mounted system or returns to the vehicle, the input / output priority strategy can be deactivated. Figure 4 The method shown in Figure 3 When the method shown in the figure is executed later, when the audio input / output device of the privacy application is selected as the mobile terminal, or when the audio input / output device of the non-privacy application is selected as the vehicle system, the input / output forced switching flag can be cleared. Figure 4 The method shown is independent of Figure 3 In the case where the method shown is executed, when a new application is running in the mobile terminal, the input / output forced switching flag can be cleared. In this way, by starting / stopping the input / output preference strategy, it is possible to avoid automatic selection (or switching) of the audio input / output device of the application in unnecessary situations, thereby ensuring the reliability of automatic selection of the audio input / output device. On the other hand, by setting / clearing the input / output forced switching flag, it is possible to avoid automatic selection (or switching) of the audio input / output device of the application in unnecessary situations. Figure 3 The method shown and Figure 4 There is a conflict between the methods shown. That is, there is no need to determine whether the application is a privacy application.
[0062] The following describes how to receive a call after leaving the vehicle using the mobile terminal as an example. Figure 4 Application scenarios of the method shown.
[0063] When a wireless communication connection is established between the mobile terminal and the vehicle-mounted system, the driver temporarily stops the car and takes the mobile terminal away from the vehicle to go shopping, and the mobile terminal will be detected to have left the vehicle. At the moment when the mobile terminal is detected to have left the vehicle, the input-output preferred strategy can be activated, and optionally, the input-output forced switching flag can be cleared (i.e., the input-output forced switching flag is set to false). At this time, if the mobile terminal receives an incoming call and connects the incoming call, it will be determined whether the input-output preferred strategy is activated. If the mobile terminal always maintains a wireless communication connection with the vehicle-mounted system (i.e., the distance between the mobile terminal and the vehicle does not exceed the wireless communication distance, and the driver does not manually disconnect the wireless communication connection), the input-output preferred strategy always remains activated. When it is determined that the input-output preferred strategy has been activated, since the input-output forced switching flag is false and the phone application is started through the mobile terminal, the mobile terminal can be automatically selected as the audio input / output device of the phone application. On the other hand, if the passenger starts the music application (in the mobile terminal) through the vehicle-mounted system, since the input-output forced switching flag is false and the music application is started through the vehicle-mounted system, the vehicle-mounted system can be automatically selected as the audio input / output device of the music application. In this way, on the one hand, the driver can answer the phone through the mobile terminal, and personal privacy can be protected. On the other hand, the passengers can enjoy music through the in-vehicle system, and the user experience can be guaranteed. In addition, when the driver returns to the vehicle, it will be detected that the mobile terminal has returned to the vehicle, and the input and output priority strategy can be turned off. In this case, if the driver is still answering the phone, the in-vehicle system can be automatically selected as the audio input / output device of the phone application, that is, the audio input / output device of the phone application can be switched to the in-vehicle system.
[0064] Return to reference Figure 2 According to the embodiment of the present disclosure, the method for automatically selecting the audio input / output device of the application may also include the following steps. In step S203, in response to the mobile terminal returning to the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the vehicle-mounted system is automatically selected as the audio input / output device of the application on the mobile terminal, or in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system, the mobile terminal is automatically selected as the audio input / output device of the application on the mobile terminal. In this way, on the one hand, driving safety can be ensured, and on the other hand, forced switching of the audio input / output device of the application can be achieved, thereby meeting the diverse requirements of users.
[0065] Figure 51 is a block diagram showing an apparatus for automatically selecting an audio input / output device for an application according to an embodiment of the present disclosure. The apparatus may be implemented as a CPU of a mobile terminal, but is not limited thereto. For example, the apparatus may be implemented as other processors provided in the mobile terminal.
[0066] Reference Figure 5 According to an embodiment of the present disclosure, the apparatus 500 for automatically selecting an audio input / output device of an application includes a wireless communication connection establishing unit 501 and an input / output device selecting unit 502. The wireless communication connection establishing unit 501 can establish a wireless communication connection between a mobile terminal and an in-vehicle system of a vehicle, and the input / output device selecting unit 502 can automatically select an audio input / output device of an application on the mobile terminal according to a preset rule in response to a preset event. Here, the preset event may include: the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the in-vehicle system, or after the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the in-vehicle system, a new application on the mobile terminal is started.
[0067] According to an embodiment of the present disclosure, when the preset event is that the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the input / output device selection unit 502 may determine one or more applications with audio input / output functions currently running on the mobile terminal as target applications; then automatically select the mobile terminal as the audio input / output device of the privacy application in the target application, and select the vehicle-mounted system as the audio input / output device of the non-privacy application in the target application. Here, the privacy application is an application that meets at least one of the following preset conditions: having an audio input function, and being preset by the user.
[0068] According to an embodiment of the present disclosure, when a preset event is that a new application on a mobile terminal is started after leaving the vehicle while the mobile terminal maintains a wireless communication connection with the vehicle-mounted system, the input / output device selection unit 502 can determine the setting state of the input / output preference policy in response to the new application being an application with an audio input / output function; in response to the input / output preference policy being started, the audio input / output device of the new application is automatically selected based on the startup mode of the new application. Further, the input / output device selection unit 502 can automatically select the mobile terminal as the audio input / output device of the new application in response to the new application being started through the mobile terminal; and automatically select the vehicle-mounted system as the audio input / output device of the new application in response to the new application being started through the vehicle-mounted system.
[0069] Optionally, in response to the mobile terminal leaving the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the input / output device selection unit 502 may activate the input / output preference policy to allow the audio input / output device of the application on the mobile terminal to be selected according to preset rules; and, in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system or returning to the vehicle, the input / output device selection unit 502 may deactivate the input / output preference policy to prohibit the audio input / output device of the application on the mobile terminal from being selected according to preset rules.
[0070] According to an embodiment of the present disclosure, the input / output device selection unit 502 may automatically select the vehicle-mounted system as the audio input / output device of the application running on the mobile terminal in response to the mobile terminal returning to the vehicle while maintaining a wireless communication connection with the vehicle-mounted system; or the input / output device selection unit 502 may automatically select the mobile terminal as the audio input / output device of the application running on the mobile terminal in response to the mobile terminal disconnecting the wireless communication connection with the vehicle-mounted system.
[0071] The method for automatically selecting an audio input / output device for an application according to an embodiment of the present disclosure can be written as a computer program and stored on a computer-readable storage medium. When the computer program is executed by a processor, the method for automatically selecting an audio input / output device for an application as described above can be implemented. Examples of computer-readable storage media include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer program and any associated data, data files and data structures in a non-transitory manner and provide the computer program and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. In one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0072] Figure 6 is a block diagram illustrating a mobile terminal according to an embodiment of the present disclosure.
[0073] Reference Figure 6 The mobile terminal 600 may include a memory 601 and a processor 602. The memory 601 stores a computer program, and when the computer program is executed by the processor 602, the automatic selection of the audio input / output device of the application according to the embodiment of the present disclosure is implemented.
[0074] As an example, the mobile terminal 600 may be a smart phone, a tablet device, a personal digital assistant, or other mobile electronic device capable of executing the above-mentioned computer program. In the mobile terminal 600, the processor 602 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not a limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc. The processor 602 may run instructions or codes stored in the memory 601, wherein the memory 601 may also store data. Instructions and data may also be sent and received through a network via a network interface device, wherein the network interface device may use any known transmission protocol. The memory 601 may be integrated with the processor 602, for example, a RAM or flash memory is arranged within an integrated circuit microprocessor, etc. In addition, the memory 601 may include an independent device, such as an external disk drive, a storage array, or other storage devices that can be used by any database system. The memory 601 and the processor 602 may be operatively coupled or may be in communication with each other, such as through an I / O port, a network connection, etc., so that the processor 602 can read files stored in the memory.
[0075] In addition, the mobile terminal 600 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a touch input device, etc.) All components of the mobile terminal 600 may be connected to each other via a bus and / or a network.
[0076] Figure 7 is a block diagram illustrating a mobile terminal according to another embodiment of the present disclosure.
[0077] Reference Figure 7 , the mobile terminal 700 may include a connector 710 , a wireless communication circuit 720 , and at least one processor 730 . Optionally, the mobile terminal 700 may further include a memory 740 and a touch screen display 750 .
[0078] The connector 710 may be a connection port for connecting the mobile terminal 700 to an external device. For example, the connector 710 may connect the mobile terminal 700 to a vehicle-mounted system by wire to establish a wired connection between the mobile terminal 700 and the vehicle-mounted system. The connector 710 may be, for example, a USB-C type connector or the like.
[0079] The wireless communication circuit 720 may be used to allow the mobile terminal 700 to communicate wirelessly with an external server, an external device, etc., such as Bluetooth communication, RF communication, WIFI communication, etc. For example, the wireless communication circuit 720 may wirelessly connect the mobile terminal 700 to a vehicle-mounted system to establish a wireless communication connection between the mobile terminal 700 and the vehicle-mounted system.
[0080] At least one processor 730 is operably connected to the connector 710 and the wireless communication circuit 720, and can execute instructions stored in the memory 740 to implement automatic selection of an audio input / output device of an application according to an embodiment of the present disclosure. For example, at least one processor 730 can control the wireless communication circuit 720 to establish a wireless communication connection between the mobile terminal 700 and the vehicle's in-vehicle system, and can automatically select an audio input / output device of an application on the mobile terminal 700 according to a preset rule in response to a preset event. Here, the preset event may include: the mobile terminal 700 leaves the vehicle while maintaining a wireless communication connection with the in-vehicle system, or after the mobile terminal 700 leaves the vehicle while maintaining a wireless communication connection with the in-vehicle system, a new application on the mobile terminal 700 is started.
[0081] The memory 740 may be electrically connected to the at least one processor 730, and may store instructions executed by the at least one processor 730. For example, the memory 740 may store various operating systems (OS) for driving the mobile terminal 700, and may store various software or applications for operating the mobile terminal 700. In addition, the memory 740 may also store various data generated during the operation of the mobile terminal 700. The memory 740 may include a volatile memory and / or a non-volatile memory.
[0082] The touch screen display 750 may display a main screen content (eg, a desktop) and interfaces of various applications, and may be used as a user interaction interface.
[0083] According to the method and apparatus, medium and mobile terminal for automatically selecting the audio input / output device of an application in an embodiment of the present disclosure, when the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, the mobile terminal or the vehicle-mounted system can be automatically selected as the audio input / output device of the application based on the privacy of the application with audio input / output function or the startup method of the application. This not only improves the convenience of operation of the mobile terminal, but also ensures the user's privacy needs, and can significantly improve the user experience.
[0084] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0085] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for automatically selecting an audio input / output device for an application, characterized in that: The method comprises: Establishing a wireless communication connection between the mobile terminal and the vehicle's onboard system; In response to a preset event, an audio input / output device of an application on the mobile terminal is automatically selected according to a preset rule. The preset events include: The mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, or After leaving the vehicle while the mobile terminal maintains wireless communication connection with the vehicle-mounted system, a new application on the mobile terminal is started.
2. The method according to claim 1, characterized in that When the preset event is that the mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, selecting an audio input / output device of an application on the mobile terminal according to a preset rule includes: Determine one or more applications with audio input / output functions currently running on the mobile terminal as target applications; The mobile terminal is automatically selected as the audio input / output device of the privacy application in the target application, and the vehicle system is selected as the audio input / output device of the non-privacy application in the target application.
3. The method according to claim 2, characterized in that The privacy application is an application that meets at least one of the following preset conditions: having an audio input function and being preset by a user.
4. The method according to claim 1, characterized in that The method further comprises: In response to the mobile terminal leaving the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, starting an input / output preference strategy to allow an audio input / output device of an application on the mobile terminal to be selected according to a preset rule; In response to the mobile terminal disconnecting the wireless communication connection with the vehicle system or returning to the vehicle, the input / output preference strategy is turned off to prohibit the selection of the audio input / output device of the application on the mobile terminal according to the preset rule.
5. The method according to claim 1, characterized in that When the preset event is that a new application on the mobile terminal is started after the mobile terminal leaves the vehicle while the mobile terminal maintains a wireless communication connection with the vehicle-mounted system, selecting an audio input / output device of the application on the mobile terminal according to a preset rule includes: In response to the new application being an application having an audio input / output function, determining a setting state of an input / output preference policy; In response to the input / output preference policy being activated, an audio input / output device of the new application is automatically selected based on the startup mode of the new application.
6. The method according to claim 5, characterized in that Selecting an audio input / output device for the new application based on the startup mode of the new application includes: In response to the new application being started by the mobile terminal, automatically selecting the mobile terminal as an audio input / output device for the new application; In response to the new application being started through the in-vehicle system, the in-vehicle system is automatically selected as the audio input / output device of the new application.
7. The method according to claim 1, characterized in that The method further comprises: In response to the mobile terminal returning to the vehicle while maintaining a wireless communication connection with the in-vehicle system, automatically selecting the in-vehicle system as an audio input / output device for an application on the mobile terminal; or In response to the mobile terminal disconnecting the wireless communication connection with the in-vehicle system, the mobile terminal is automatically selected as an audio input / output device for an application on the mobile terminal.
8. A device for automatically selecting an audio input / output device for an application, characterized in that: The device comprises: The wireless communication connection establishing unit is configured to: establish a wireless communication connection between the mobile terminal and the vehicle's onboard system; The input / output device selection unit is configured to: in response to a preset event, automatically select an audio input / output device of an application on the mobile terminal according to a preset rule, The preset events include: The mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, or After leaving the vehicle while the mobile terminal maintains wireless communication connection with the vehicle-mounted system, a new application on the mobile terminal is started.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A mobile terminal, characterized in that: The mobile terminal comprises: at least one processor; At least one memory stores a computer program, and when the computer program is executed by the at least one processor, the method according to any one of claims 1 to 7 is implemented.
11. A mobile terminal, characterized in that: The mobile terminal comprises: Connectors; Wireless communication circuits; at least one processor operably connected to the connector and the wireless communication circuitry, Wherein, the at least one processor is configured to: Controlling the wireless communication circuit to establish a wireless communication connection between the mobile terminal and the vehicle's onboard system; In response to a preset event, an audio input / output device of an application on the mobile terminal is automatically selected according to a preset rule. The preset events include: The mobile terminal leaves the vehicle while maintaining a wireless communication connection with the vehicle-mounted system, or After leaving the vehicle while the mobile terminal maintains wireless communication connection with the vehicle-mounted system, a new application on the mobile terminal is started.