Source-switching-free playing method and system based on vehicle-mounted Bluetooth music and vehicle
By setting the Bluetooth music channel and monitoring the playback status, music can be played in the car without manually opening the Bluetooth application, which solves the problem of poor user experience in the existing technology and improves system efficiency and security.
Patent Information
- Application Number
- CN202410802527.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-23
AI Technical Summary
The existing car system requires the user to manually open the Bluetooth application in the car to play Bluetooth music, and when the in-car Bluetooth application is not turned on, the sound cannot be played in the vehicle in real time, resulting in a poor user experience.
By obtaining the audio management policy, set the Bluetooth music channel to the music audio channel, and monitor the playback status uploaded by the Bluetooth service. When the switch-free application mode is detected, apply for short audio focus, and send the target audio to the driver through the music audio channel to drive The speaker plays music without disconnecting the Bluetooth connection.
It realizes that music can be played in the car in real time without manually opening the Bluetooth application, which improves the user experience, solves potential safety hazards during driving, and improves system efficiency and performance.
Smart Images

Figure CN118540404A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle Bluetooth communication technology, and in particular to a method, system, vehicle and computer-readable storage medium for playing vehicle-mounted Bluetooth music without switching sources. Background Art
[0002] All current smartphones have Bluetooth function, and the Bluetooth function of the car system is also a basic capability. Although a large part of the car systems on the market currently have vehicle network functions and can use the in-car music application to listen to music, the car system traffic is limited. When the user traffic is used up, it is inevitable to use the mobile phone to connect to the in-car Bluetooth to play Bluetooth music in the car; most of the car systems on the market currently have to open the Bluetooth music application in the car to play Bluetooth music normally from the car. If you click to play on the mobile phone after connecting to Bluetooth, since the application is not opened on the car, it will result in unsuccessful playback and silent playback or the sound is played from the mobile phone. If you need to use the car to play, you need to open the application on the car side before it can be played from the car, which causes trouble for users.
[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0004] The main purpose of this application is to provide a method, system, vehicle and computer-readable storage medium for playing car-based Bluetooth music without switching sources, aiming to solve the problem in the prior art that users need to manually open the Bluetooth application on the vehicle side, and the car-based Bluetooth application is not turned on, so the sound cannot be played in real time in the vehicle.
[0005] The first aspect of the present application provides a method for switching-free playback of in-vehicle Bluetooth music, comprising the following steps: obtaining an audio management strategy, and setting the audio channel of the Bluetooth music of a mobile terminal to a music audio channel according to the audio management strategy; when it is detected that the current playback mode is a switching-free application mode, setting the music audio channel to be normally open, and monitoring the Bluetooth music playback status uploaded by the Bluetooth service; if the Bluetooth music playback status is the Bluetooth music start playback status, applying for a short audio focus, processing the short audio focus to obtain the target audio, and sending the target audio to the driver through the music audio channel to drive the speaker to play music.
[0006] According to the above-mentioned technical means, the embodiment of the present application can first set the Bluetooth music channel as the music audio channel. When the free-switch application mode is detected, the Bluetooth music playback status is monitored. If it is in the start playback status, a short audio focus is applied for, and the target audio is sent to the driver to drive the speaker to play music. There is no need to disconnect the Bluetooth connection to provide a solution for real-time playback on the vehicle side. This eliminates the need for users to manually open the Bluetooth music application (switch source) on the vehicle side, and can take into account the user's need to use the car computer for playback, while solving the safety hazards that exist during driving.
[0007] Optionally, in one embodiment of the present application, when it is detected that the current playback mode is the switch-free application mode, the music audio channel is set to be normally open, and the Bluetooth music playback status uploaded by the Bluetooth service is monitored, specifically including: determining whether the current playback mode is the switch-free application mode; if the current playback mode is the switch-free application mode, setting the music audio channel to be normally open, and monitoring the playback status uploaded by the Bluetooth service according to the music audio channel to obtain the Bluetooth music playback status.
[0008] According to the above-mentioned technical means, the embodiment of the present application can determine whether the current playback mode is a switching-free application mode, and can control the music audio channel of the Bluetooth media to be always open through the sound source management module, and the media APP monitors the Bluetooth music playback status of the music audio uploaded by the Bluetooth service. By determining whether the current playback mode is a switching-free application mode, the music audio channel is set to be always open and the playback status uploaded by the Bluetooth service is monitored, thereby achieving the purpose of timely obtaining the Bluetooth music playback status. Such operation can ensure that the system can respond quickly and adjust the audio channel, thereby improving the efficiency and performance of the system, while also enhancing the user experience and making audio management more intelligent and convenient.
[0009] Optionally, in one embodiment of the present application, the determination of whether the current playback mode is a switch-free application mode further includes: pre-setting a telephone audio channel and a control channel, and if it is detected that the current playback mode is a non-switch-free application mode, disconnecting the link between the music audio channel and the control channel, and controlling the telephone audio channel to remain connected; when playing Bluetooth music, obtaining a long audio focus, and simultaneously requesting the Bluetooth service to reconnect the link between the music audio channel and the control channel, and playing the Bluetooth music according to the long audio focus.
[0010] According to the above-mentioned technical means, the embodiment of the present application can disconnect the music audio channel and the control channel link in the non-free switching application mode, and keep the telephone audio channel connected; when playing Bluetooth music, obtain a long audio focus, request to reconnect the music audio channel and the control channel, and realize Bluetooth music playback. By pre-setting the telephone audio channel and the control channel, the vehicle system can effectively manage the communication connection in the non-free switching application mode; when playing Bluetooth music, obtain a long audio focus and reconnect the audio channel to realize seamless audio switching. This strategy improves communication stability, ensures the continuity of audio playback, brings users a smoother audio experience, and at the same time improves the level of intelligent management of the system.
[0011] Optionally, in one embodiment of the present application, if the Bluetooth music playback state is the Bluetooth music start playback state, then apply for a short audio focus, process the short audio focus to obtain the target audio, and send the target audio to the driver through the music audio channel to drive the speaker to play music, specifically including: if the Bluetooth music playback state is the Bluetooth music start playback state, then apply for a short audio focus, allocate the short audio focus to the media APP according to the audio management strategy, and recycle the focus of other applications to obtain the allocated audio of the media APP, and set the allocated audio as the target audio; send the target audio to the driver through the music audio channel based on the Bluetooth protocol stack to drive the speaker to play music.
[0012] According to the above-mentioned technical means, the embodiment of the present application can apply for a short audio focus when Bluetooth music starts playing, assign the short audio focus to the media APP, recycle other application focuses, obtain the media APP audio and set it as the target audio; send the target audio to the music audio channel through the Bluetooth protocol stack, drive the speaker to play music, thereby ensuring smooth audio switching and improving user experience, while effectively managing audio resources to make the music playback process more stable and efficient. Furthermore, effective management of audio resources can avoid resource waste and conflicts, making the music playback process more stable and reliable, reducing interruptions and delays, thereby improving the overall efficiency and performance of the system, and bringing users a smoother and more enjoyable music experience.
[0013] Optionally, in one embodiment of the present application, when it is detected that the current playback mode is the free-switch application mode, the music audio channel is set to be normally open, and the Bluetooth music playback status uploaded by the Bluetooth service is monitored, and then it also includes: if the Bluetooth music playback status is the Bluetooth music end playback status, then it is determined whether the Bluetooth music end playback status is a pause actively triggered by the user; if the Bluetooth music end playback status is a pause actively triggered by the user, then the short audio focus is controlled not to be returned.
[0014] According to the above-mentioned technical means, in the embodiment of the present application, when the Bluetooth music finishes playing, it can be determined whether the user actively pauses; if the user actively pauses, the short audio focus is maintained and not returned, thereby avoiding frequent switching of focus when the user actively pauses, improving the intelligence level of audio management, further effectively reducing unnecessary system resource consumption, maintaining the continuity of audio playback, and at the same time improving the user experience and convenience of operation, bringing users a smoother and more stable music playback experience.
[0015] Optionally, in one embodiment of the present application, the determination of whether the end playback state of the Bluetooth music is a pause actively triggered by the user further includes: if the end playback state of the Bluetooth music is a pause not actively triggered by the user, the short audio focus is returned through the media APP, and other applications are controlled to continue playing.
[0016] According to the above-mentioned technical means, in the embodiment of the present application, when the Bluetooth music finishes playing and is not actively paused by the user, the media APP will return the short audio focus to allow other applications to continue playing. By returning the short audio focus and continuing to play other applications, the vehicle can effectively manage audio resources and avoid resource waste, while maintaining the continuity of audio playback, improving user experience, and ensuring stable and efficient system operation.
[0017] Optionally, in one embodiment of the present application, the source-free playback method based on in-vehicle Bluetooth music also includes: during the music playback process, when a Bluetooth call is received, the music playback is paused and the Bluetooth call is answered through the telephone audio channel in priority, and the music continues to play when the Bluetooth call ends.
[0018] According to the above-mentioned technical means, in the embodiment of the present application, when a Bluetooth call is received during music playing, the system pauses the music playback and gives priority to answering the call through the telephone audio channel; music playback is resumed after the call ends, so that the user can pause the music in time when answering a Bluetooth call to ensure the call quality; music playback is resumed after the call ends, which improves the user experience and effectively manages audio resources to ensure stable and efficient operation of the vehicle system.
[0019] The second aspect of the present application provides a source-free playback system based on in-vehicle Bluetooth music, and the source-free playback system based on in-vehicle Bluetooth music includes: an audio channel setting module, which is used to obtain an audio management strategy, and set the audio channel of the Bluetooth music of the mobile terminal to a music audio channel according to the audio management strategy; an audio channel monitoring module, which is used to set the music audio channel to be normally open when it is detected that the current playback mode is a switch-free application mode, and monitor the Bluetooth music playback status uploaded by the Bluetooth service; a Bluetooth music playback module, which is used to apply for a short audio focus if the Bluetooth music playback status is the Bluetooth music start playback status, obtain the target audio after processing the short audio focus, and send the target audio to the driver through the music audio channel to drive the speaker to play music.
[0020] Optionally, in one embodiment of the present application, the audio channel monitoring module includes: a source-free judgment unit, used to judge whether the current playback mode is a switch-free application mode; a source-free starting unit, used to set the music audio channel to be normally open if the current playback mode is a switch-free application mode, and monitor the playback status uploaded by the Bluetooth service according to the music audio channel to obtain the Bluetooth music playback status.
[0021] Optionally, in one embodiment of the present application, the audio channel monitoring module also includes: a non-source-free startup unit, used to pre-set the telephone audio channel and the control channel. If it is detected that the current playback mode is a non-source-free application mode, the link between the music audio channel and the control channel is disconnected, and the telephone audio channel is controlled to remain connected; a music playback control unit, used to obtain a long audio focus when playing Bluetooth music, and at the same time request the Bluetooth service to reconnect the link between the music audio channel and the control channel, and play the Bluetooth music according to the long audio focus.
[0022] Optionally, in one embodiment of the present application, the Bluetooth music playback module includes: an audio allocation unit, for applying for a short audio focus if the Bluetooth music playback state is the Bluetooth music start playback state, and allocating the short audio focus to the media APP according to the audio management strategy, and recycling the focus of other applications to obtain the allocated audio of the media APP, and setting the allocated audio as the target audio; a speaker driving unit, for sending the target audio to the driver through the music audio channel based on the Bluetooth protocol stack to drive the speaker to play music.
[0023] Optionally, in one embodiment of the present application, the source-free playback system based on in-vehicle Bluetooth music also includes: an abnormal judgment module, which is used to determine whether the Bluetooth music playback status is a pause actively triggered by the user if the Bluetooth music playback status is a pause actively triggered by the user; and an active trigger module, which is used to control the short audio focus not to be returned if the Bluetooth music playback status is a pause actively triggered by the user.
[0024] Optionally, in one embodiment of the present application, the source-free playback system based on in-vehicle Bluetooth music also includes: a short audio focus return module, which is used to return the short audio focus through the media APP if the Bluetooth music ends playback in a pause state not actively triggered by the user, and control other applications to continue playback.
[0025] Optionally, in one embodiment of the present application, the source-free playback system based on in-vehicle Bluetooth music also includes: a telephone audio channel priority playback module, which is used to pause music playback when a Bluetooth call is received during music playback and to answer the Bluetooth call through the telephone audio channel in priority, and continue playing music when the Bluetooth call ends.
[0026] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a source-free playback program based on in-vehicle Bluetooth music stored in the memory and executable on the processor, wherein the source-free playback program based on in-vehicle Bluetooth music, when executed by the processor, implements the steps of the source-free playback method based on in-vehicle Bluetooth music as described in the above embodiment.
[0027] The fourth aspect of the present application provides a computer-readable storage medium, which stores a source-free playback program based on in-vehicle Bluetooth music. When the source-free playback program based on in-vehicle Bluetooth music is executed by a processor, the steps of the source-free playback method based on in-vehicle Bluetooth music as described in the above embodiment are implemented.
[0028] Beneficial effects of this application:
[0029] (1) In the embodiment of the present application, the Bluetooth music channel can be first set as the music audio channel. When the free-switch application mode is detected, the Bluetooth music playback status is monitored. If it is in the start playback status, a short audio focus is applied, and the target audio is sent to the driver to drive the speaker to play music. There is no need to disconnect the Bluetooth connection, and a solution can be provided for real-time playback on the vehicle side. This eliminates the need for users to manually open the Bluetooth music application (switch source) on the vehicle side, and can take into account the user's need to use the vehicle computer for playback, while solving the safety hazards that exist during driving.
[0030] (2) The embodiment of the present application can determine whether the current playback mode is a switch-free application mode, and can control the music audio channel of the Bluetooth media to be always open through the sound source management module, and the media APP monitors the Bluetooth music playback status of the music audio uploaded by the Bluetooth service. By determining whether the current playback mode is a switch-free application mode, the music audio channel is set to be always open and the playback status uploaded by the Bluetooth service is monitored, thereby achieving the purpose of timely obtaining the Bluetooth music playback status. Such operation can ensure that the system can respond quickly and adjust the audio channel, thereby improving the efficiency and performance of the system, while also enhancing the user experience and making audio management more intelligent and convenient.
[0031] (3) In the embodiment of the present application, in the non-free-switch application mode, the music audio channel and the control channel are disconnected, and the telephone audio channel is kept connected; when playing Bluetooth music, a long audio focus is obtained, and a request is made to reconnect the music audio channel and the control channel to achieve Bluetooth music playback. By pre-setting the telephone audio channel and the control channel, the vehicle system can effectively manage the communication connection in the non-free-switch application mode; when playing Bluetooth music, a long audio focus is obtained and the audio channel is reconnected to achieve seamless audio switching. This strategy improves communication stability, ensures the continuity of audio playback, brings users a smoother audio experience, and improves the level of intelligent management of the system.
[0032] (4) In the embodiment of the present application, when Bluetooth music starts to play, a short audio focus is applied for, the short audio focus is assigned to the media APP, other application focuses are recovered, the media APP audio is obtained and set as the target audio; the target audio is sent to the music audio channel through the Bluetooth protocol stack, and the speaker is driven to play music, thereby ensuring smooth audio switching and improving user experience. At the same time, audio resources are effectively managed to make the music playback process more stable and efficient. Furthermore, effective management of audio resources can avoid resource waste and conflicts, making the music playback process more stable and reliable, reducing interruptions and delays, thereby improving the overall efficiency and performance of the system and bringing users a smoother and more enjoyable music experience.
[0033] (5) In the embodiment of the present application, when the Bluetooth music ends playing, it can be determined whether the user actively pauses; if the user actively pauses, the short audio focus is maintained without returning, thereby avoiding frequent switching of focus when the user actively pauses, improving the intelligence level of audio management, further effectively reducing unnecessary system resource consumption, maintaining the continuity of audio playback, and at the same time improving user experience and convenience of operation, bringing users a smoother and more stable music playback experience.
[0034] (6) In the embodiment of the present application, when the Bluetooth music ends playing and is not actively paused by the user, the media APP returns the short audio focus to allow other applications to continue playing. By returning the short audio focus and continuing to play other applications, the vehicle can effectively manage audio resources and avoid resource waste, while maintaining the continuity of audio playback, improving user experience, and ensuring stable and efficient system operation.
[0035] (7) In the embodiment of the present application, when a Bluetooth call is received during music playing, the system pauses the music playback and gives priority to answering the call through the telephone audio channel; music playback is resumed after the call ends. This allows the user to pause the music in time when answering a Bluetooth call to ensure call quality; music playback is resumed after the call ends, thereby improving the user experience and effectively managing audio resources to ensure stable and efficient operation of the vehicle system.
[0036] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 This is the first flow chart of a preferred embodiment of the method for playing car Bluetooth music without switching the source;
[0039] Figure 2 This is a schematic diagram of the overall system architecture of a preferred embodiment of the in-vehicle Bluetooth music-free source switching playback system of the present application;
[0040] Figure 3 This is a second flow chart of a preferred embodiment of the method for playing car Bluetooth music without switching the source;
[0041] Figure 4 It is a structural schematic diagram of a preferred embodiment of the in-vehicle Bluetooth music-free source switching playback system of the present application;
[0042] Figure 5 This is a schematic structural diagram of a preferred embodiment of the vehicle of the present application.
[0043] Among them, 10-a source-free playback system based on in-vehicle Bluetooth music; 100-an audio channel setting module, 200-an audio channel monitoring module and 300-a Bluetooth music playback module; 501-a memory, 502-a processor and 503-a communication interface. DETAILED DESCRIPTION
[0044] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0045] The following describes the free-source-cutting playback method and related equipment based on the in-vehicle Bluetooth music of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the user needs to manually open the Bluetooth application on the vehicle side in the related technology mentioned in the above background technology, and the in-vehicle Bluetooth application is not turned on at the same time, and the sound cannot be played in the vehicle in real time, the present application provides a free-source-cutting playback method based on in-vehicle Bluetooth music, in which the Bluetooth music channel can be first set as the music audio channel, and when the free-switch application mode is detected, the Bluetooth music playback state is monitored, and if it is the start playback state, a short audio focus is applied, and the target audio is sent to the driver to drive the speaker to play music, and the solution can be played in real time on the vehicle side without disconnecting the Bluetooth connection, while eliminating the user's manual operation of opening the Bluetooth music application (cutting the source) on the vehicle side, and taking into account the user's need to use the car machine to play, and at the same time, the safety hazards existing in the driving process can be solved. Thus, the technical problem that the user needs to manually open the Bluetooth application on the vehicle side in the related technology, and the in-vehicle Bluetooth application is not turned on at the same time, and the sound cannot be played in the vehicle in real time is solved.
[0046] In this application, an audio management strategy is obtained, and the audio channel of the Bluetooth music of the mobile terminal is set to the music audio channel according to the audio management strategy; when it is detected that the current playback mode is the application mode without switching, the music audio channel is set to normally open, and the Bluetooth music playback status uploaded by the Bluetooth service is monitored; if the Bluetooth music playback status is the Bluetooth music start playback status, a short audio focus is applied, and the target audio is obtained after processing the short audio focus, and the target audio is sent to the driver through the music audio channel to drive the speaker to play music. This application eliminates the need for users to manually open the Bluetooth music application (switch source) on the vehicle side, and can take into account the needs of users to use the car computer for playback, while solving the potential safety hazards during driving.
[0047] Specifically, Figure 1 A flowchart of a method for playing car Bluetooth music without switching sources provided in an embodiment of the present application.
[0048] like Figure 1 and Figure 2 As shown, the method for playing car-mounted Bluetooth music without switching the source includes the following steps:
[0049] In step S1, an audio management policy is obtained, and an audio channel of the Bluetooth music of the mobile terminal is set as a music audio channel according to the audio management policy.
[0050] like Figure 2 As shown, a system architecture for source-free playback based on in-vehicle Bluetooth music provided in the present invention includes a mobile phone (a mobile phone is a type of mobile terminal, including a media APP and a Bluetooth communication function. The media APP can send the audio playback status and audio files of the mobile phone to the vehicle computer through the Bluetooth communication function), a vehicle speaker (used for vibration and sound generation), a Bluetooth protocol stack (transparently transmitted to the upper-layer Bluetooth music + audio + control instructions of the phone according to the Bluetooth standard protocol), an audio channel and a speaker driver (providing audio channel capabilities, which can transmit audio and drive the speaker), a Bluetooth service (transparently transmitted to the Bluetooth status returned by the phone APP and the media APP protocol stack), an audio source management (controlling the opening and closing of the audio channels of Bluetooth music and phone, managing the focus allocation of the phone, media APP and the entire vehicle computer system application functions), a media APP (including the switch of the source-free function, the switching of the playback status, and the operations of the previous and next song), and a phone APP (including a dialing interface, a phone book, and an interface provided when a call is incoming for the user to operate to answer / hang up).
[0051] It can be understood that in the embodiment of the present application, an audio management strategy is obtained, and the audio channel of the Bluetooth music of the mobile terminal is set to the music audio channel according to the audio management strategy (the mobile phone and the car computer Bluetooth are always connected, and the audio management strategy of the car computer makes the Bluetooth phone and the Bluetooth music audio channel independent, and the audio channel of the phone has a higher priority than the music audio channel, so as to ensure that the call can be answered first when there is an incoming call, wherein the audio channel of the phone is understood to be a Bluetooth phone, and the music audio channel is not only a Bluetooth music audio channel, but also includes the media audio of the car computer itself, and the music audio channel is the channel from the car computer to the speaker to play sound).
[0052] The embodiment of the present application can adjust the audio channel setting of the mobile terminal according to the needs through the audio management strategy, set the audio channel of the Bluetooth music to the music audio channel, ensure that when using Bluetooth music playback, the audio output quality is higher and the user experience is better, and realize more intelligent and personalized audio management. Through the audio management strategy, the audio channel of the mobile terminal is adjusted to the music audio channel according to the needs, ensuring that the sound quality is better when Bluetooth music is played. This intelligent design improves the user experience, realizes more personalized audio management, enables users to enjoy higher quality audio output when using Bluetooth music, and improves user satisfaction.
[0053] In step S2, when it is detected that the current playing mode is the non-switching application mode, the music audio channel is set to be normally open, and the Bluetooth music playing status uploaded by the Bluetooth service is monitored.
[0054] It can be understood that in the embodiment of the present application, it is determined whether the current playback mode is the free-switch application mode; (the sound source management module and the media APP module determine the current playback mode); if the current playback mode is the free-switch application mode, the music audio channel (A2DP channel) is set to be normally open, and the playback status uploaded by the Bluetooth service is monitored according to the music audio channel (A2DP channel) to obtain the Bluetooth music playback status (because if it is in the free-switch source mode, the sound source management module controls the A2DP channel of the Bluetooth media to be normally open, and the media APP monitors the OnBluetoothMusic status of the A2DP uploaded by the Bluetooth service). state); pre-set the telephone audio channel and the control channel. If it is detected that the current playback mode is not the free-switch application mode, disconnect the link between the music audio channel and the control channel, and control the telephone audio channel to remain connected; when playing Bluetooth music, obtain the long audio focus, and at the same time request the Bluetooth service to reconnect the link between the music audio channel and the control channel, and play the Bluetooth music according to the long audio focus (if it is in the non-free-switch source mode, the Bluetooth service controls the Bluetooth phone audio channel and the control channel to be disconnected, but the Bluetooth phone's phone audio channel remains connected. When Bluetooth music needs to be played, Media A PP reacquires the long audio focus, and at the same time requests the Bluetooth service to reconnect the phone audio channel and the control channel. The Bluetooth service transmits downward, and finally the Bluetooth protocol stack establishes a link with the mobile phone). If the Bluetooth music playback status is the Bluetooth music end playback status, it is determined whether the Bluetooth music end playback status is a pause actively triggered by the user; if the Bluetooth music end playback status is a pause actively triggered by the user, the short audio focus is controlled not to be returned (it is considered to be a pause actively triggered by the user, and the media APP will not release the focus to the sound source management module. In order to avoid the Bluetooth transmission delay causing the process to return to the Bluetooth music start playback status, the media APP needs to delay 1 .2 seconds, and then the UI is switched, that is, the interface switches to show whether it is currently in the playing state or the paused state); if the Bluetooth music ends playing in a paused state that is not actively triggered by the user, the short audio focus is returned through the media APP, and other applications are controlled to continue playing (at this time, the media APP will release the short audio focus and return it to the sound source management module. The sound source management module will reallocate the focus based on the application that used the focus last, to ensure that other applications can be interrupted and continued to play); during music playback, when a Bluetooth call is received, the music playback is paused and the Bluetooth call is answered through the phone audio channel first, and the music continues to play when the Bluetooth call ends.
[0055] The embodiment of the present application can disconnect the music audio channel and the control channel link according to the non-free switching application mode, and keep the telephone audio channel connected; when playing Bluetooth music, obtain a long audio focus, request to reconnect the music audio channel and the control channel, and realize Bluetooth music playback. By pre-setting the telephone audio channel and the control channel, the vehicle system can effectively manage the communication connection in the non-free switching application mode; when playing Bluetooth music, obtain a long audio focus and reconnect the audio channel to realize seamless audio switching. This strategy improves communication stability, ensures the continuity of audio playback, brings a smoother audio experience to users, and improves the level of intelligent management of the system.
[0056] In step S3, if the Bluetooth music playing state is the Bluetooth music starting playing state, a short audio focus is applied for, the short audio focus is processed to obtain the target audio, and the target audio is sent to the driver through the music audio channel to drive the speaker to play music.
[0057] It can be understood that in an embodiment of the present application, if the Bluetooth music playback state is the Bluetooth music start playback state, a short audio focus is applied for, and the short audio focus is allocated to the media APP according to the audio management strategy, and the focus of other applications is recycled to obtain the allocated audio of the media APP, and the allocated audio is set as the target audio; based on the Bluetooth protocol stack, the target audio is sent to the driver through the music audio channel to drive the speaker to play music (at this time, the media APP applies for a short audio focus from the sound source management module, and the sound source management module allocates a short audio focus to the media APP according to the audio strategy, and recycles other focuses with the same priority; at the same time, the Bluetooth protocol stack gives the received audio to the driver through the music audio channel, thereby driving the speaker to make sound).
[0058] The embodiment of the present application can apply for a short audio focus when Bluetooth music starts playing, assign the short audio focus to the media APP, reclaim the focus of other applications, obtain the media APP audio and set it as the target audio; send the target audio to the music audio channel through the Bluetooth protocol stack, drive the speaker to play music, thereby ensuring smooth audio switching and improving user experience, while effectively managing audio resources to make the music playback process more stable and efficient. Furthermore, effective management of audio resources can avoid resource waste and conflicts, make the music playback process more stable and reliable, reduce interruptions and delays, thereby improving the overall efficiency and performance of the system, and bringing users a smoother and more enjoyable music experience.
[0059] Specifically, Figure 3 As shown, the method for playing car-mounted Bluetooth music without switching the source of the present invention specifically includes the following process:
[0060] Step S101, start.
[0061] Step S102, determine whether it is Bluetooth free source switching mode; if so, execute step S103; if not, execute step S104.
[0062] Step S103: Set the music audio channel (A2DP channel) to be normally open, monitor the playback status uploaded by the Bluetooth service according to the music audio channel, and obtain the Bluetooth music playback status (OnBluetoothMusic).
[0063] Step S104: the mobile phone media audio is played on the mobile phone itself, and the phone audio can be played on the vehicle.
[0064] Step S105, determining whether the Bluetooth music playing state is the Bluetooth music starting playing state (OnBluetoothMusicStart); if it is the Bluetooth music starting playing state (OnBluetoothMusicStart), executing step 106; if it is the Bluetooth music ending playing state (OnBluetoothMusicStop), executing step 107.
[0065] Step S106, apply for a short audio focus, allocate the short audio focus to the media APP according to the audio management strategy, and recycle the focus of other applications to obtain the allocated audio of the media APP, set the allocated audio as the target audio, and send the target audio to the driver through the music audio channel based on the Bluetooth protocol stack to drive the speaker to play music (pause other playing audio and play mobile phone audio).
[0066] Step S107, if the Bluetooth music playback state is the Bluetooth music end playback state, determine whether the Bluetooth music end playback state is a pause actively triggered by the user, if it is a pause actively triggered by the user (True), execute step 108; if it is a pause not actively triggered by the user (not True), execute step 109.
[0067] Step S108, controlling the short audio focus not to be returned (it is considered that the user does not want to listen to music at this time, and other audio is played without releasing the focus).
[0068] Step S109: return the short audio focus through the media APP, and control other applications to continue playing (the car computer needs to allow other media in the car to continue playing to ensure user experience).
[0069] Step S110, end.
[0070] In summary, the embodiment of the present application can obtain an audio management strategy, and according to the audio management strategy, the audio channel of the Bluetooth music of the mobile terminal is set to the music audio channel; when it is detected that the current playback mode is a switch-free application mode, the music audio channel is set to normally open, and the Bluetooth music playback status uploaded by the Bluetooth service is monitored; if the Bluetooth music playback status is the Bluetooth music start playback status, a short audio focus is applied, and the target audio is obtained after processing the short audio focus, and the target audio is sent to the driver through the music audio channel to drive the speaker to play music. The present application can first set the Bluetooth music channel as a music audio channel, and when the switch-free application mode is detected, the Bluetooth music playback status is monitored. If it is the start playback status, a short audio focus is applied, and the target audio is sent to the driver to drive the speaker to play music. There is no need to disconnect the Bluetooth connection, and a solution for real-time playback on the vehicle side can be provided, which eliminates the need for users to manually open the Bluetooth music application (cut source) on the vehicle side, and can take into account the needs of users to use the vehicle machine for playback, and can solve the safety hazards existing during driving.
[0071] Next, a source-free playback system based on in-vehicle Bluetooth music proposed according to an embodiment of the present application will be described with reference to the accompanying drawings.
[0072] Figure 4 It is a block diagram of a source-free playback system based on in-vehicle Bluetooth music according to an embodiment of the present application.
[0073] like Figure 4 As shown, the in-vehicle Bluetooth music-free source switching playback system 10 includes: an audio channel setting module 100 , an audio channel monitoring module 200 and a Bluetooth music playback module 300 .
[0074] Specifically, the audio channel setting module 100 is used to obtain an audio management policy, and set the audio channel of the Bluetooth music of the mobile terminal as a music audio channel according to the audio management policy.
[0075] The audio channel monitoring module 200 is used to set the music audio channel to be normally open and monitor the Bluetooth music playing status uploaded by the Bluetooth service when it is detected that the current playing mode is the free-switch application mode.
[0076] The Bluetooth music playing module 300 is used to apply for a short audio focus if the Bluetooth music playing state is the Bluetooth music starting playing state, obtain the target audio after processing the short audio focus, and send the target audio to the driver through the music audio channel to drive the speaker to play music.
[0077] Optionally, in one embodiment of the present application, the audio channel monitoring module 200 includes: a non-free-source switching starting unit and a music playing control unit.
[0078] Among them, the non-free-source switching startup unit is used to pre-set the telephone audio channel and the control channel. If it is detected that the current playback mode is a non-free-source switching application mode, the link between the music audio channel and the control channel is disconnected, and the telephone audio channel is controlled to remain connected.
[0079] The music playing control unit is used to obtain the long audio focus when playing Bluetooth music, and at the same time request the Bluetooth service to reconnect the link between the music audio channel and the control channel, and play the Bluetooth music according to the long audio focus.
[0080] Optionally, in one embodiment of the present application, the in-vehicle Bluetooth music-based source-free playback system 10 includes: an abnormality determination module, an active trigger module, a short audio focus return module and a telephone audio channel priority playback module.
[0081] The abnormality determination module is used to determine whether the Bluetooth music playback state is a pause actively triggered by the user if the Bluetooth music playback state is a Bluetooth music playback end state.
[0082] The active trigger module is used to control the short audio focus not to return if the Bluetooth music ends playing in a pause state actively triggered by the user.
[0083] The short audio focus return module is used to return the short audio focus through the media APP if the Bluetooth music ends playing in a pause state not actively triggered by the user, and control other applications to continue playing.
[0084] The telephone audio channel priority playback module is used to pause music playback when a Bluetooth call is received during music playback and answer the Bluetooth call through the telephone audio channel first, and continue playing music when the Bluetooth call ends.
[0085] Optionally, in one embodiment of the present application, the Bluetooth music playing module 300 includes: an audio distribution unit and a speaker driving unit.
[0086] Among them, the audio allocation unit is used to apply for a short audio focus if the Bluetooth music playback state is the Bluetooth music start playback state, allocate the short audio focus to the media APP according to the audio management strategy, and recycle the focus of other applications to obtain the allocated audio of the media APP, and set the allocated audio as the target audio.
[0087] The speaker driving unit is used to send the target audio to the driver through the music audio channel based on the Bluetooth protocol stack, so as to drive the speaker to play music.
[0088] It should be noted that the aforementioned explanation of the embodiment of the method for playing car-mounted Bluetooth music without switching the source is also applicable to the system for playing car-mounted Bluetooth music without switching the source in this embodiment, and will not be repeated here.
[0089] According to the in-vehicle Bluetooth music-free source switching playback system proposed in the embodiment of the present application, an audio management strategy can be obtained, and the audio channel of the Bluetooth music of the mobile terminal is set to the music audio channel according to the audio management strategy; when it is detected that the current playback mode is the free switching application mode, the music audio channel is set to be normally open, and the Bluetooth music playback status uploaded by the Bluetooth service is monitored; if the Bluetooth music playback status is the Bluetooth music start playback status, a short audio focus is applied, and the target audio is obtained after processing the short audio focus, and the target audio is sent to the driver through the music audio channel to drive the speaker to play music. The Bluetooth music channel can be first set as the music audio channel, and when the free switching application mode is detected, the Bluetooth music playback status is monitored. If it is the start playback status, a short audio focus is applied, and the target audio is sent to the driver to drive the speaker to play music. There is no need to disconnect the Bluetooth connection, and a solution for real-time playback on the vehicle side can be provided, which can avoid the user manually opening the Bluetooth music application (source switching) on the vehicle side, and can take into account the user's need to use the vehicle machine for playback, and can solve the safety hazards existing during driving.
[0090] This solves the technical problem in the related art that the user needs to manually open the Bluetooth application on the vehicle side, and the in-vehicle Bluetooth application is not turned on, so the sound cannot be played in the vehicle in real time.
[0091] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0092] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0093] When the processor 502 executes the program, the source-free playing method based on in-vehicle Bluetooth music provided in the above embodiment is implemented.
[0094] Furthermore, the vehicle also includes:
[0095] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0096] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0097] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0098] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EIS) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0099] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0100] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0101] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method for playing car-mounted Bluetooth music without switching sources is implemented.
[0102] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0103] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0104] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0105] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer memory.
[0106] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0107] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0108] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0109] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0110] It should be understood that the application of the present application is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to this application.
Claims
1. A method for playing car-mounted Bluetooth music without switching sources. It is characterized in that The method for playing car-mounted Bluetooth music without switching sources includes: Obtain an audio management policy, and set the audio channel of the Bluetooth music of the mobile terminal to the music audio channel according to the audio management policy; when it is detected that the current playback mode is the non-switching application mode, set the music audio channel to be always open, and monitor the Bluetooth music playback status uploaded by the Bluetooth service; If the Bluetooth music playing state is the Bluetooth music starting playing state, a short audio focus is applied for, the short audio focus is processed to obtain the target audio, and the target audio is sent to the driver through the music audio channel to drive the speaker to play music.
2. According to claim 1, the method for playing car-mounted Bluetooth music without switching the source, It is characterized in that When it is detected that the current playback mode is the non-switching application mode, the music audio channel is set to be normally open, and the Bluetooth music playback status uploaded by the Bluetooth service is monitored, specifically including: Determine whether the current playback mode is the non-switching application mode; If the current playing mode is the non-switching application mode, the music audio channel is set to be normally open, and the playing status uploaded by the Bluetooth service is monitored according to the music audio channel to obtain the Bluetooth music playing status.
3. According to claim 2, the method for playing car-mounted Bluetooth music without switching the source, It is characterized in that The step of determining whether the current playback mode is a switch-free application mode further includes: Pre-set a telephone audio channel and a control channel, and if it is detected that the current playback mode is not a switch-free application mode, disconnect the link between the music audio channel and the control channel, and control the telephone audio channel to remain connected; When playing Bluetooth music, a long audio focus is obtained, and at the same time, a request is made to the Bluetooth service to reconnect the links between the music audio channel and the control channel, and the Bluetooth music is played according to the long audio focus.
4. According to claim 1, the method for playing car-mounted Bluetooth music without switching the source, It is characterized in that If the Bluetooth music playing state is the Bluetooth music starting playing state, applying for a short audio focus, processing the short audio focus to obtain a target audio, and sending the target audio to the driver through the music audio channel to drive the speaker to play music, specifically includes: If the Bluetooth music playing state is the Bluetooth music starting playing state, apply for a short audio focus, allocate the short audio focus to the media APP according to the audio management strategy, and recycle the focus of other applications to obtain the allocated audio of the media APP, and set the allocated audio as the target audio; The target audio is sent to the driver through the music audio channel based on the Bluetooth protocol stack to drive the speaker to play music.
5. According to claim 1, the method for playing car-mounted Bluetooth music without switching the source, It is characterized in that When it is detected that the current playback mode is the non-switching application mode, the music audio channel is set to be normally open, and the Bluetooth music playback status uploaded by the Bluetooth service is monitored, and then the following is further included: If the Bluetooth music playing state is the Bluetooth music ending state, determining whether the Bluetooth music ending state is a pause actively triggered by the user; If the Bluetooth music end playback state is a pause actively triggered by the user, the short audio focus is controlled not to be returned.
6. According to claim 5, the method for playing car-mounted Bluetooth music without switching the source, It is characterized in that The step of determining whether the Bluetooth music playback end state is a pause actively triggered by a user further includes: If the Bluetooth music ends playing in a state where the pause is not actively triggered by the user, the short audio focus is returned through the media APP, and other applications are controlled to continue playing.
7. According to claim 3, the method for playing car Bluetooth music without switching sources, It is characterized in that The method for playing the in-vehicle Bluetooth music without switching the source further includes: During the music playing process, when a Bluetooth call is received, the music playing is paused and the Bluetooth call is answered preferentially through the telephone audio channel, and the music continues to play when the Bluetooth call ends.
8. A source-free playback system based on in-car Bluetooth music. It is characterized in that The in-vehicle Bluetooth music-free source switching playback system comprises: An audio channel setting module, used to obtain an audio management policy, and set the audio channel of the Bluetooth music of the mobile terminal to the music audio channel according to the audio management policy; The audio channel monitoring module is used to set the music audio channel to be normally open and monitor the Bluetooth music playing status uploaded by the Bluetooth service when it is detected that the current playing mode is the non-switching application mode; The Bluetooth music playback module is used to apply for a short audio focus if the Bluetooth music playback state is the Bluetooth music start playback state, obtain the target audio after processing the short audio focus, and send the target audio to the driver through the music audio channel to drive the speaker to play music.
9. A vehicle, It is characterized in that The vehicle includes: a memory, a processor, and a source-free playback program based on in-vehicle Bluetooth music stored in the memory and executable on the processor. When the source-free playback program based on in-vehicle Bluetooth music is executed by the processor, the steps of the source-free playback method based on in-vehicle Bluetooth music as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a source-free playback program based on in-vehicle Bluetooth music. When the source-free playback program based on in-vehicle Bluetooth music is executed by the processor, the steps of the source-free playback method based on in-vehicle Bluetooth music as described in any one of claims 1-7 are implemented.
Citation Information
Cited By
Vehicle-mounted audio processing method, vehicle-mounted audio processing system and vehicle
CN120526791A
In-vehicle music playback control method and apparatus, vehicle, medium, and program
WO2026097916A1
