In-vehicle Bluetooth audio playback method, device, in-vehicle equipment, vehicle and medium

By analyzing the audio file type after the car Bluetooth connection and deciding to disconnect, the problem of indistinguishable and control audio files in car Bluetooth technology is solved, and controlled playback of different types of audio files is achieved, user privacy is protected and improved User experience.

CN116208938BActive Publication Date: 2024-11-19BYD CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202111442809.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-11-19
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

When the existing vehicle Bluetooth technology starts up the connection, it cannot effectively distinguish and process different types of audio files, resulting in the uncontrollable playback of multiple sounds from the smart terminal on the vehicle computer, and non-music audio files may be played automatically, affecting user privacy.

Method used

When receiving the data of the audio file for the first time after Bluetooth connection, use the preset protocol to parse the audio file type, decide whether to disconnect the Bluetooth channel from the terminal device, and adopt different playback methods to avoid non-music audio files on the vehicle computer side Automatic playback.

Benefits of technology

It realizes controlled playback of different types of audio files when connected to the car Bluetooth, avoids uncontrollable output of the sound of the smart terminal, protects user privacy, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208938B_ABST
    Figure CN116208938B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle-mounted Bluetooth audio playback method, device, vehicle-mounted equipment, vehicle and medium, wherein the method comprises: after completing a Bluetooth connection with a terminal device, when receiving audio data of a first audio file sent by the terminal device through a first Bluetooth channel for the first time, corresponding to satisfying a preset condition, determining the type of the first audio file; based on the type of the first audio file, determining whether to disconnect the connection with the first Bluetooth channel of the terminal device. Thus, when starting the vehicle-mounted Bluetooth connection, different playback modes can be adopted for different types of audio files, thereby effectively avoiding the uncontrollable playback of multiple sounds of the smart terminal from the vehicle end, and preventing non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted Bluetooth technology, and in particular to a vehicle-mounted Bluetooth audio playback method, device, vehicle-mounted equipment, vehicle and computer-readable storage medium. Background Art

[0002] Central control multimedia plays an important role in automotive parts. In particular, the emergence of new energy vehicles has brought the concept of smart cockpits to a new level. The integration of new and old technologies and friendly interactive experience in smart cockpits can further enhance the user's operational and practical experience. Among them, the Bluetooth function is one of the important multimedia functions that has always existed in traditional cars. In car multimedia, the two most well-known Bluetooth functions are Bluetooth phone and Bluetooth music, which are frequently used by drivers in car use scenarios.

[0003] However, there are many shortcomings in the relevant technology. Since most Bluetooth connections support automatic connection, the current shortcomings of Bluetooth functions in the cockpit are mainly reflected in the sound. After the smart terminal device (such as a mobile phone) is connected to the car Bluetooth, its sound can be output through the car Bluetooth audio. Bluetooth calls, ringtones, message prompts, Bluetooth music and other sounds can all be output through the car. In other words, once the user starts the vehicle Bluetooth automatic connection, all sounds of the smart terminal will be output on the car. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present invention is to provide a method for playing in-vehicle Bluetooth audio, which can adopt different playing modes for different types of audio files when starting the in-vehicle Bluetooth connection, thereby effectively avoiding the uncontrollable playing of multiple sounds of the smart terminal from the vehicle terminal, and preventing non-music audio files from being automatically played from the vehicle terminal, thereby protecting user privacy.

[0005] A second objective of the present invention is to provide a vehicle-mounted Bluetooth audio player.

[0006] A third object of the present invention is to provide a computer-readable storage medium.

[0007] A fourth objective of the present invention is to provide a vehicle-mounted device.

[0008] A fifth object of the present invention is to provide a vehicle.

[0009] To achieve the above-mentioned objectives, an embodiment of the first aspect of the present invention proposes a vehicle-mounted Bluetooth audio playback method, the method comprising: after completing a Bluetooth connection with a terminal device, when audio data of a first audio file sent by the terminal device through a first Bluetooth channel is received for the first time, in response to meeting a preset condition, determining the type of the first audio file; based on the type of the first audio file, determining whether to disconnect the connection with the first Bluetooth channel of the terminal device.

[0010] According to the in-vehicle Bluetooth audio playback method of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time, in response to meeting a preset condition, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when the in-vehicle Bluetooth connection is started, different playback methods can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of multiple sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0011] According to one embodiment of the present invention, determining the type of the first audio file based on preset conditions includes: parsing the audio data of the first audio file through a preset protocol to obtain music information; if music information is obtained, determining that the first audio file is a music audio file; if music information is not obtained, determining that the first audio file is a non-music audio file.

[0012] According to one embodiment of the present invention, based on the type of the first audio file, determining whether to disconnect from the first Bluetooth channel of the terminal device includes: if the first audio file is a non-music audio file, disconnecting from the first Bluetooth channel of the terminal device to allow the non-music audio file to be played through the terminal device.

[0013] According to one embodiment of the present invention, the method also includes: if the first audio file is a music audio file, reminding the user to play music; receiving music playback feedback information input by the user according to the music playback reminder; when the music playback feedback information allows the music audio file to be played, playing the music audio file; when the music playback feedback information prohibits the music audio file from being played, disconnecting the connection with the first Bluetooth channel of the terminal device to allow the music audio file to be played through the terminal device.

[0014] According to an embodiment of the present invention, the method further includes: if the first audio file is a music audio file and the audio data of the music audio file is not received for the first time after the Bluetooth connection, directly playing the music audio file.

[0015] According to one embodiment of the present invention, the method also includes: determining the type of the current interface; in response to satisfying a preset condition, determining the type of the first audio file, including: if the current interface is a non-Bluetooth music interface, determining the type of the first audio file.

[0016] According to an embodiment of the present invention, the method further includes: if the current interface is a Bluetooth music interface, directly playing the first audio file.

[0017] According to one embodiment of the present invention, directly playing the first audio file includes: if the first audio file is a music audio file, playing the music audio file through the Bluetooth music interface; if the first audio file includes a music audio file and a non-music audio file, playing the music audio file and the non-music audio file at the same time, and the sound of playing the music audio file is smaller than the sound of playing the non-music audio file.

[0018] According to one embodiment of the present invention, during the process of playing a music audio file through a Bluetooth music interface, the method also includes: if it is detected that the current interface is switched to a non-Bluetooth music interface, determining whether it is necessary to pause receiving and playing audio data of the music audio file based on the type of the non-Bluetooth music interface; if it is necessary to pause receiving and playing the music audio file, pausing receiving and playing the music audio file.

[0019] According to one embodiment of the present invention, after pausing the reception and playing of audio data of a music audio file, the method further includes: if the audio data of the music audio file continues to be received, then continuing to play the music audio file; if the audio data of the music audio file continues to be received, then re-determining the type of the received audio file based on preset conditions.

[0020] According to one embodiment of the present invention, during the process of playing a music audio file through a Bluetooth music interface, the method also includes: if a non-music audio file is received from a terminal device sent through a first Bluetooth channel, continuing to play the music audio file, lowering the volume of the music audio file, and playing the non-music audio file until the non-music audio file is finished playing.

[0021] According to one embodiment of the present invention, the method also includes: after completing the Bluetooth connection with the terminal device, if audio data of a second audio file sent by the terminal device through a second Bluetooth channel is received, pausing the reception and playing of the audio data of the first audio file, and playing the second audio file until the playing of the second audio file is finished.

[0022] According to one embodiment of the present invention, the method also includes: after receiving a Bluetooth audio playback function start instruction input by the user, obtaining a preset number of terminal devices that have been successfully connected recently from a historical device list, and attempting to connect, wherein the preset number is greater than or equal to 3 and less than or equal to 5.

[0023] To achieve the above-mentioned objectives, the second aspect of the present invention proposes a vehicle-mounted Bluetooth audio playback device, which includes: a determination module, which is used to determine the type of the first audio file in response to meeting a preset condition when the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time after the Bluetooth connection with the terminal device is completed; and a playback module, which is used to determine whether to disconnect the connection with the first Bluetooth channel of the terminal device based on the type of the first audio file.

[0024] According to the in-vehicle Bluetooth audio playback device of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when the determination module receives the audio data of the first audio file sent by the terminal device through the first Bluetooth channel for the first time, in response to meeting the preset conditions, the type of the first audio file is determined, and the playback module determines whether to disconnect the connection with the first Bluetooth channel of the terminal device based on the type of the first audio file. Therefore, when the in-vehicle Bluetooth connection is started, different playback methods can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of multiple sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0025] To achieve the above objectives, a third aspect of the present invention provides a computer-readable storage medium on which a vehicle-mounted Bluetooth audio playback program is stored. When the vehicle-mounted Bluetooth audio playback program is executed by a processor, the above-mentioned vehicle-mounted Bluetooth audio playback method is implemented.

[0026] According to the computer-readable storage medium of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when receiving the audio data of the first audio file sent by the terminal device through the first Bluetooth channel for the first time, in response to satisfying a preset condition, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when starting the in-vehicle Bluetooth connection, different playback methods can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of multiple sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0027] To achieve the above objectives, the fourth aspect of the present invention proposes a vehicle-mounted device, which includes a memory, a processor, and a vehicle-mounted Bluetooth audio playback program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned vehicle-mounted Bluetooth audio playback method is implemented.

[0028] According to the vehicle-mounted device of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time, in response to meeting the preset conditions, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when the vehicle-mounted Bluetooth connection is started, different playback modes can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of various sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0029] In order to achieve the above-mentioned purpose, a fifth aspect of the present invention proposes a vehicle, including the above-mentioned vehicle-mounted device.

[0030] According to the vehicle of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time, in response to satisfying a preset condition, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when the in-vehicle Bluetooth connection is started, different playback methods can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of various sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0031] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the transmission channel of multimedia Bluetooth sound for current mainstream mobile phones in the related art;

[0033] Figure 2 is a flow chart of a method for playing in-vehicle Bluetooth audio according to an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of the core structure of the AVRCP protocol according to an embodiment of the present invention;

[0035] Figure 4 A schematic diagram of the operation of basic AV / C commands in AVRCP according to an embodiment of the present invention;

[0036] Figure 5 is a flow chart of a method for playing in-vehicle Bluetooth audio according to another embodiment of the present invention;

[0037] Figure 6is a flow chart of a method for playing in-vehicle Bluetooth audio according to yet another embodiment of the present invention;

[0038] Figure 7 It is a schematic diagram of obtaining audio data of a first audio file for the first time after Bluetooth connection according to an embodiment of the present invention;

[0039] Figure 8 is a flow chart of a method for playing in-vehicle Bluetooth audio according to yet another embodiment of the present invention;

[0040] Fig. 9 is a structural block diagram of a vehicle-mounted Bluetooth audio playback device according to an embodiment of the present invention;

[0041] Fig.10 is a structural block diagram of a vehicle-mounted device according to an embodiment of the present invention;

[0042] Fig.11 FIG. 4 is a structural block diagram of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] Embodiments of the present invention are described in detail below, examples of which 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 invention, and should not be construed as limiting the present invention.

[0044] The following describes an in-vehicle Bluetooth audio playback method, an in-vehicle Bluetooth audio playback device, an in-vehicle device, a vehicle, and a computer-readable storage medium provided by embodiments of the present invention with reference to the accompanying drawings.

[0045] It should be noted that different types of smart terminal equipment systems have different Bluetooth sound transmission designs, and the corresponding Bluetooth-related protocols used are also different. Figure 1 This is a schematic diagram of the transmission channel of multimedia Bluetooth sound in current mainstream mobile phones in the relevant technology. Figure 1As shown, the current mainstream mobile phones can include two categories: Android phones and Apple phones. For Android phones, the Bluetooth phone calls the BT_Phone (Bluetooth phone) interface of the system, using HFP (Hands-free Profile, software for Bluetooth devices to control the phone) so that the Bluetooth device can control the phone, such as answering, hanging up, rejecting, voice dialing, etc., and the audio stream is transmitted according to the Bluetooth phone; the Bluetooth music calls the BT_Music (Bluetooth music) interface of the system, using A2DP (Advanced Audio Distribution Profile, Bluetooth audio transmission model protocol), and the audio stream is transmitted according to Bluetooth music; while the transmission channels of other sound sources of the mobile phone are not consistent, and the calling interface is associated with the application itself. For example, WeChat voice calls the BT_Phone interface, and the audio stream is transmitted according to the Bluetooth phone, while QQ voice and key tone call the BT_Music interface, and the audio stream is transmitted according to Bluetooth music. For Apple mobile phones, its Bluetooth phone calls the system's BT_Phone interface, controls the phone through HFP, and transmits the audio stream according to the Bluetooth phone; Bluetooth music calls the system's BT_Music interface, transmits it according to Bluetooth music through the A2DP audio stream; other sound sources of the mobile phone call the system's BT_Music interface, and transmit it according to Bluetooth music through the A2DP audio stream. From the above, it can be seen that when starting the in-vehicle Bluetooth connection, multiple sounds may be output at the same time. Based on this, the present application provides a method for in-vehicle Bluetooth audio playback. When starting the in-vehicle Bluetooth connection, the method can adopt different playback methods for different types of audio files, thereby effectively avoiding the uncontrollable playback of multiple sounds of the smart terminal from the car end, and preventing non-music audio files from automatically playing from the car end, thereby protecting user privacy.

[0046] Figure 2 is a flow chart of a method for playing in-vehicle Bluetooth audio according to an embodiment of the present invention, referring to Figure 2 As shown, the in-vehicle Bluetooth audio playback method may include the following steps:

[0047] Step S101: after completing a Bluetooth connection with a terminal device, when receiving audio data of a first audio file sent by the terminal device through a first Bluetooth channel for the first time, in response to satisfying a preset condition, determining the type of the first audio file.

[0048] Specifically, after the terminal device and the in-vehicle multimedia are successfully connected via Bluetooth, the terminal device sends the audio data of the first audio file to the in-vehicle multimedia via the first Bluetooth channel for the first time. When the in-vehicle multimedia receives the audio data of the first audio file sent by the terminal device, it determines the type of the first audio file in response to meeting the preset conditions. Among them, the first Bluetooth channel can be a Bluetooth music channel; the type of the first audio file can be a music audio file, a phone audio file, a WeChat voice audio file, a QQ voice audio file, and a key tone audio file, etc. In a specific example, the determination of the type of the first audio file can be achieved by parsing the first audio file through the AVRCP (Audio / Video Remote Control Profile) protocol.

[0049] Step S102: Based on the type of the first audio file, determine whether to disconnect the first Bluetooth channel of the terminal device.

[0050] Specifically, after the terminal device and the in-vehicle multimedia are successfully connected via Bluetooth, if the terminal device is playing music at this time, the in-vehicle multimedia can determine that the first audio file it receives is a music audio file, and maintain the connection with the first Bluetooth channel of the terminal device, so that the music audio file can be played on the vehicle side. If the terminal device is playing the audio data of a telephone audio file, a WeChat voice audio file, a QQ voice audio file, or a key tone audio file at this time, the in-vehicle multimedia can determine that the first audio file it receives is a non-music audio file, and disconnect the connection with the first Bluetooth channel of the terminal device, so that the audio data of the non-music audio file continues to be played through the terminal device instead of through the vehicle side. Therefore, when the in-vehicle Bluetooth connection is started, different playback methods can be adopted for different types of first audio files. On the one hand, it can effectively prevent the uncontrollable playback of multiple sounds of the smart terminal from the vehicle side, and on the other hand, it can prevent the Bluetooth phone from automatically playing from the vehicle side and affecting user privacy.

[0051] In one embodiment, determining the type of the first audio file includes: parsing the audio data of the first audio file through a preset protocol to obtain music information; if music information is obtained, determining that the first audio file is a music audio file; if music information is not obtained, determining that the first audio file is a non-music audio file.

[0052] Specifically, when receiving the first audio file sent by the terminal device, the audio data of the first audio file can be parsed through a preset protocol (such as the AVRCP protocol) to determine whether the first audio file is a music audio file or a non-music audio file. In a specific example, if the terminal device plays the audio data of a music file, the audio data can be parsed through the AVRCP protocol after being transmitted to the multimedia terminal, and the ID3 information about the music audio can be obtained. The ID3 information refers to the information located at the beginning or end of the mp3 file, which may include the song name, singer name, album information, playback status and other information of the currently playing track; if the terminal device does not play a music file, but a telephone audio message or a prompt tone message of other applications, then the AVRCP protocol cannot obtain the ID3 related information after parsing, and it is considered that the currently playing audio is not music audio. In a specific example, the AVRCP protocol can acquire the audio data of the audio file for 3 seconds. If the audio data of the first audio file cannot be acquired within 3 seconds, the A2DP is disconnected. In another specific example, when the AVRCP protocol obtains the audio data of the first audio file and analyzes the current first audio file as a non-music audio file, the A2DP channel can be actively disconnected. After disconnecting the A2DP channel, the in-vehicle multimedia terminal cannot receive the audio data of the first audio file of the terminal device, so that the sound of the first audio file is played through the terminal device.

[0053] It should be noted that the AVRCP protocol is used to remotely control audio devices, making the underlying transmission based on the AVRCP transmission protocol. In Bluetooth applications, the AVRCP protocol is mainly used to control Bluetooth music, such as controlling the playback, pause, previous song, next song, and obtaining the playback status of Bluetooth music, and its V1.3 version has added the ability to obtain the current playback status of music and the information of the music being played (including the total duration of the song, the current playback position, the song name, the album name, and the singer, etc.).

[0054] Figure 3 FIG. 1 is a schematic diagram of the core structure of the AVRCP protocol according to an embodiment of the present invention. Figure 3As shown, the AVRCP protocol divides the two ends of the device into Controller Sider and Target Sider. Among them, CT (controller) is a device that initiates transactions by sending command frames to the target device, such as headphones, speakers, and car Bluetooth devices; and TG (target device) is a device that receives command frames sent by the controller and generates corresponding response frames, such as mobile phones. Both Controller Sider and Target Sider include the Bluetooth core protocol layer, AVCTP (Audio / VideoControl Transport Protocol) transport layer, AVRCP protocol layer and application layer. Since the transmission of the AVRCP protocol depends on the AVCTP transport protocol, the connection and interaction of the AVRCP protocol is actually the connection and interaction process of the AVCTP transport protocol.

[0055] For the establishment of AVCTP connection, the establishment of the L2CAP (Logical Link Control and Adaptation Protocol) link for AVCTP control can be initiated by CT or TG, so the L2CAP link is called the control channel. If both devices support the browsing function, that is, the AVRCP version is V1.4 and above, you can also establish a browsing channel after establishing the control channel. When establishing the browsing channel, it should be configured to use the L2CAP enhanced retransmission mode. Similarly, the release of the channel can also be initiated by CT or TG. If there is a browsing channel, it needs to be released before the control channel is disconnected.

[0056] For the basic AV / C commands in AVRCP, the premise for starting the AV / C commands is that the AVCTP connection has been established. In this way, the AV / C process actively triggered by the user or started within the program can operate normally. The flowchart is referenced in Figure 4As shown, the user first triggers CT or the program is started internally, and then, under the premise that CT and TG are connected, CT sends AV / C commands to TG, and TG sends AV / C responses or AV / C temporary responses to CT. Through the control channel interaction of AVCTP, there are two groups of AV / C commands: one group includes Pass Through commands defined in the AV / C specification (common control commands such as play, pause, and song switching belong to Pass Through commands), UNIT and SUBUNIT INFO commands; the other group is AVRCP-specific AV / C commands, including browsing commands for browsing channel interaction established through AVCTP and cover art commands for connection interaction established through OBEX (ObjectExchange). Common unique commands in the AVRCP protocol are shown in Table 1:

[0057] Table 1

[0058]

[0059]

[0060] In one embodiment, based on the type of the first audio file, determining whether to disconnect from the first Bluetooth channel of the terminal device includes: if the first audio file is a non-music audio file, disconnecting from the first Bluetooth channel of the terminal device to allow the non-music audio file to be played through the terminal device.

[0061] That is to say, when the Bluetooth connection with the terminal device is completed and the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time, if it is determined that the type of the first audio file is a non-music audio file, the connection with the first Bluetooth channel of the terminal device is disconnected, so that it continues to be played through the terminal device. Specifically, for the application scenario in which the user enters the car from outside the car while playing QQ voice on the mobile phone, the mobile phone and the in-vehicle multimedia will automatically start the Bluetooth connection. If the relevant technology is adopted, the source will be directly cut, and QQ voice will be played through the car terminal, which will cause the voice content to be automatically disclosed to all passengers in the car, affecting user privacy and reducing user experience; when the in-vehicle Bluetooth audio playback method of the embodiment of the present invention is adopted, the in-vehicle multimedia can recognize that the first audio file is a non-music audio file, and disconnect the connection with the first Bluetooth channel of the mobile phone, so that the first audio file continues to be played through the mobile phone, protecting user privacy and helping to improve user experience.

[0062] In one embodiment, the method also includes: if the first audio file is a music audio file, reminding the user to play music; receiving music playback feedback information input by the user according to the music playback reminder; when the music playback feedback information allows the music audio file to be played, playing the music audio file; when the music playback feedback information prohibits the music audio file from being played, disconnecting the connection with the first Bluetooth channel of the terminal device to allow the music audio file to be played through the terminal device.

[0063] Specifically, in order to make the prompt for Bluetooth music playback more intelligent, after the terminal device and the in-vehicle multimedia are successfully connected via Bluetooth, if the terminal device is playing music at this time, it can remind and ask the user whether to play Bluetooth music through the in-vehicle multimedia, and accept the user's feedback information. When the user feedback allows playback, the audio data of the music audio file is played; when the user feedback prohibits playback, the connection with the first Bluetooth channel of the terminal device is disconnected so that the audio data of the music audio file can be played through the terminal device. In other words, after the in-vehicle Bluetooth is connected, the type of the first audio file received from the terminal device for the first time is determined, and after confirming that it is a music audio file, it is combined with the pop-up prompt mark and the user feedback instruction to decide whether to synchronize the audio data of the music audio file to the in-vehicle multimedia terminal for playback.

[0064] In one embodiment, the method further includes: if the first audio file is a music audio file, and the audio data of the music audio file is received for the first time after the non-Bluetooth connection, directly playing the music audio file.

[0065] That is to say, in order to improve practicality, the first audio file sent by the terminal device when the in-vehicle multimedia receives it for the first time can be set to have a memory function. That is, during each in-vehicle Bluetooth connection process, if the first audio file sent by the terminal device is received for the first time, it can be played according to the method in the above embodiment; if the first audio file is the audio data of the music audio file received for the first time after the non-Bluetooth connection, the music can be played directly. In a specific example, a pop-up prompt flag can be added to the in-vehicle multimedia terminal. When the in-vehicle multimedia terminal Bluetooth is connected each time, the sound synchronization prompt flag will be initialized to 0. After the pop-up prompt, the flag will be modified to 1. After the AVRCP protocol obtains the ID3 information, if the current flag is 0, a pop-up prompt will be displayed. If the current flag is 1, no pop-up prompt will be displayed, but the music will be played directly. Therefore, for the audio data of the music audio file sent by the receiving terminal device, when it is received again later, such as during driving, unnecessary reminders and confirmation links can be omitted.

[0066] In one embodiment, the method further includes: determining the type of the current interface; in response to satisfying a preset condition, determining the type of the first audio file, including: if the current interface is a non-Bluetooth music interface, determining the type of the first audio file.

[0067] Specifically, after the in-vehicle multimedia receives the first audio file sent by the terminal device, before determining the type of the first audio file, it first determines the interface status of the current in-vehicle multimedia terminal. If the current in-vehicle multimedia is not displayed in the Bluetooth music interface, it will not be played directly, that is, the in-vehicle multimedia can parse the type of the first audio file through the AVRCP protocol, and determine whether to play its audio data through the vehicle terminal or the device terminal according to the type of the first audio file.

[0068] Furthermore, if the current interface is a Bluetooth music interface, the first audio file is played directly.

[0069] Specifically, after the in-vehicle multimedia receives the audio data of the first audio file sent by the terminal device, if the interface of the in-vehicle multimedia is already in the Bluetooth music interface, it means that the user is ready to play the audio file through the Bluetooth of the in-vehicle multimedia terminal. Therefore, the audio data of the first audio file can be played directly through the in-vehicle multimedia. Even if the first audio file is a non-music audio file, it can be played directly on the vehicle terminal. This playback can be regarded as Bluetooth playback controlled by the user independently, and will not affect the user's privacy. Therefore, on the one hand, it is convenient for users to operate and more humane; on the other hand, identifying whether to play the audio data of the audio file transmitted by Bluetooth of the terminal device through the Bluetooth music interface is conducive to maintaining the design of the system audio framework and the stability of the audio source. Otherwise, Bluetooth music can be played at will in any interface, which will cause the current interface and the played audio to be mismatched. For example, the current interface is QQ music but the Bluetooth music is played, resulting in a poor user experience.

[0070] Furthermore, directly playing the first audio file includes: if the first audio file is a music audio file, playing the music audio file through the Bluetooth music interface; if the first audio file includes a music audio file and a non-music audio file, playing the music audio file and the non-music audio file at the same time, and the sound of playing the music audio file is smaller than the sound of playing the non-music audio file.

[0071] Specifically, when the current interface is a Bluetooth music interface, the type of the first audio file is determined. If the first audio file only includes music audio files, the music audio file is played through the Bluetooth music interface; if the first audio file includes both music audio files and non-music audio files, the audio data of the music audio files and the non-music audio files are played simultaneously, and the sound of playing the music audio files is made smaller than the sound of playing the non-music audio files, so as to ensure that the music audio files only provide background music, and the user can clearly hear the audio sound of the non-music audio files. In a specific example, when the current interface is a Bluetooth music interface, if the received first audio file includes both music audio and Bluetooth phone prompt tone, the music audio and the Bluetooth phone prompt tone are played simultaneously, and the sound of the music audio is made smaller than the sound of playing the Bluetooth phone prompt tone.

[0072] In one embodiment, during the process of playing music audio files through a Bluetooth music interface, the method also includes: if it is detected that the current interface is switched to a non-Bluetooth music interface, determining whether it is necessary to pause receiving and playing the music audio file based on the type of the non-Bluetooth music interface; if it is necessary to pause receiving and playing the music audio file, pausing receiving and playing the audio data of the music audio file.

[0073] That is to say, during the process of playing music audio files, when the user switches the current Bluetooth music interface to a non-Bluetooth music interface, it can be determined whether it is necessary to pause receiving and playing the audio data of the music audio file based on the type of the non-Bluetooth music interface. For example, when the Bluetooth music interface is switched to the car radio playback interface, the reception and playing of the audio data of the music audio file can be paused.

[0074] Furthermore, after pausing the reception and playing of the audio data of the music audio file, the method also includes: if the audio data of the music audio file continues to be received, then continue to play the music audio file; if the audio data of the music audio file continues to be received, then re-determine the type of the received audio file based on preset conditions.

[0075] Specifically, during the process of playing the audio data of a music audio file, after switching the Bluetooth music interface to the non-Bluetooth music interface, the reception and playback of the audio data of the music audio file will be paused. If the audio data of the music audio file continues to be received, it will continue to be played directly without the need to confirm the type of the audio file. On the contrary, if the audio data of the music audio file is not continued to be received during the process of switching to the non-Bluetooth music interface, the type of the newly received audio file cannot be determined, so the voice source is switched and the file type of the received audio file is re-determined.

[0076] In one embodiment, during the process of playing a music audio file, the method also includes: if a non-music audio file is received from the terminal device through the first Bluetooth channel, continuing to play the music audio file, lowering the volume of the music audio file, and playing the non-music audio file until the non-music audio file is finished playing.

[0077] That is, when playing a music audio file, if a non-music audio file (such as a prompt audio file) is received from the terminal device, the audio data of the music audio file will continue to be played while the audio data of the non-music audio file is played, and the volume of the audio data of the music audio file will be lowered when the audio data of the non-music audio file is played, so as to ensure that the user can clearly hear the non-music audio in the background music. Specifically, Figure 5 is a flowchart of a method for playing Bluetooth audio in a vehicle according to a specific example, referring to Figure 5 As shown, the method in this embodiment may include the following steps:

[0078] Step S201: The terminal device and the vehicle multimedia are successfully connected via Bluetooth, and during the entire Bluetooth connection process, the Bluetooth phone can have a prompt sound in all scenarios and any interface.

[0079] Step S202: Determine whether to enter the Bluetooth music interface, if so, play the Bluetooth music; if not, play some non-Bluetooth phone prompt tones.

[0080] Step S203: Determine whether there is an A2DP message prompt. If so, lower the Bluetooth music volume when the message is played; if not, play the relevant Bluetooth audio file until the connection is ended.

[0081] In one embodiment, the method further includes: after completing the Bluetooth connection with the terminal device, if audio data of a second audio file sent by the terminal device through a second Bluetooth channel is received, pausing the reception and playing of the audio data of the first audio file, and playing the second audio file until the second audio file is finished playing.

[0082] That is, in the process of playing the music audio file, compared with the first audio file sent through the first Bluetooth channel, the second audio file sent through the second Bluetooth channel (which can be a Bluetooth phone channel) has a higher priority, so once the audio data of the second audio file is received, the audio data of the second audio file is played first, and the reception and playback of the audio data of the first audio file are paused. At the same time, in order to facilitate the direct continuation of the playback of the audio data of the first audio file after the playback of the audio data of the second audio file is completed, the audio data of the first audio file is preferentially kept received during the phone audio playback.

[0083] In one embodiment, the in-vehicle Bluetooth audio playback method also includes: after receiving a start instruction of the Bluetooth audio playback function input by the user, obtaining a preset number of terminal devices that have been successfully connected recently from a historical device list, and attempting to connect, wherein the preset number is greater than or equal to 3 and less than or equal to 5.

[0084] Specifically, refer to Figure 6 As shown, the method in this embodiment may include the following steps:

[0085] Step S301: Turn on the Bluetooth switch on the mobile phone.

[0086] Step S302: Determine whether the Bluetooth of the vehicle multimedia terminal is turned on. If so, execute step S303; if not, the connection process ends.

[0087] Step S303: The in-vehicle multimedia system actively initiates a connection request. Based on the memory function of the Bluetooth connection, the three terminal devices that have been successfully connected most recently can be obtained from the historical device list and an attempt can be made to connect.

[0088] Step S304: Determine whether the connection is successful. If so, execute step S305; if not, the connection process ends.

[0089] Step S305: The connection distance may change during the connection period. Determine whether it exceeds the connection distance. If so, try to actively connect again within 10 minutes; if not, the connection process ends.

[0090] The present invention is further explained and illustrated by two specific embodiments below.

[0091] Figure 7 FIG. 1 is a schematic diagram of first acquiring and parsing audio data of a first audio file after Bluetooth connection according to a specific embodiment of the present invention, referring to FIG. Figure 7As shown, the process includes three stages: connection and transmission, audio analysis and sound synchronization prompt, of which the audio analysis and sound synchronization prompt stages are internal behaviors of the vehicle multimedia. In the connection and transmission stage, turn on the Bluetooth switch on the mobile phone and the Bluetooth switch on the vehicle multimedia end, the vehicle multimedia actively initiates a connection request, obtains the terminal device that has been successfully connected recently from the historical device list, and connects. After the connection is successful, it enters the audio analysis stage and the sound synchronization prompt stage. In the audio analysis stage, if the interface of the vehicle multimedia is not a Bluetooth music interface, the vehicle multimedia will parse the relevant additional information of the transmitted audio file through the AVRCP protocol, thereby parsing the type of the first audio file, and judging whether to play through the vehicle multimedia or through the device terminal according to the type of the first audio file. When the vehicle multimedia end Bluetooth is connected each time, the sound synchronization prompt flag will be initialized to 0 first, and after the pop-up prompt, the flag will be modified to 1. After the subsequent AVRCP protocol obtains the ID3 information, if the current flag is 0, a pop-up prompt will be displayed, and if the current flag is 1, no pop-up prompt will be displayed.

[0092] Figure 8 is a flowchart of a method for playing in-vehicle Bluetooth audio according to a specific embodiment of the present invention, referring to Figure 8 As shown, the in-vehicle Bluetooth audio playback method includes the following steps:

[0093] Step S401: determine whether the Bluetooth connection is successful, if so, execute step S402; if not, the process ends.

[0094] Step S402: The prompt flag is initialized to 0.

[0095] Step S403: the in-vehicle multimedia terminal receives the audio data of the first audio file sent by the mobile phone terminal.

[0096] Step S404: Determine whether to enter the Bluetooth music interface, if so, execute step S405; if not, the in-vehicle multimedia terminal does not play temporarily.

[0097] Step S405: directly play the audio data of the first audio file.

[0098] Step S406: Determine whether the AVRCP has acquired the music audio file, if so, execute step S407; if not, execute step S408.

[0099] Step S407: Check whether the pop-up window flag is 1. If so, execute step S409; if not, perform a pop-up window prompt, and update the prompt flag to 1.

[0100] Step S408: Disconnect A2DP to play music on the mobile phone.

[0101] Step S409: Open the Bluetooth music interface and play music.

[0102] Step S410: Determine whether the user selects to play the video on the vehicle. If so, execute step 409; if not, execute step 408.

[0103] Step S411: Determine whether other pages are opened, if so, execute step S412; if not, the process ends.

[0104] Step S412: Determine whether to cut the source, if yes, execute step S413; if not, execute step S414.

[0105] Step S413: Determine whether to perform voice source switching, if yes, execute step S415; if no, execute step S408.

[0106] Step S414: Determine whether the mobile phone has paused playback. If so, the in-vehicle multimedia receives the sound emitted by the mobile phone and returns to step S406; if not, the process ends.

[0107] Step S415: Determine whether to return to the Bluetooth music source, if so, the Bluetooth music continues to play, if not, execute step S413.

[0108] To sum up, according to the in-vehicle Bluetooth audio playback method of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time, in response to meeting the preset conditions, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when the in-vehicle Bluetooth connection is started, different playback methods can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of multiple sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0109] Fig. 9 FIG. 1 is a structural block diagram of a vehicle-mounted Bluetooth audio playback device according to an embodiment of the present invention. Fig. 9 As shown, the in-vehicle Bluetooth audio playback device 500 may include a determination module 501 and a playback module 502 .

[0110] Among them, the determination module 501 is used to determine the type of the first audio file in response to meeting a preset condition when the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time after the Bluetooth connection with the terminal device is completed; the playback module 502 is used to determine whether to disconnect the connection with the first Bluetooth channel of the terminal device based on the type of the first audio file.

[0111] In one embodiment, the determination module 501 is specifically used to: parse the audio data of the first audio file through a preset protocol to obtain music information; if music information is obtained, determine that the first audio file is a music audio file; if music information is not obtained, determine that the first audio file is a non-music audio file.

[0112] In one embodiment, the playing module 502 is specifically used for: if the first audio file is a non-music audio file, disconnecting the first Bluetooth channel of the terminal device so that the non-music audio file can be played through the terminal device.

[0113] In one embodiment, it also includes a reminder module (not shown in the figure), which is used to: if the first audio file is a music audio file, remind the user to play the music; receive music playback feedback information input by the user according to the music playback reminder; when the music playback feedback information allows the music audio file to be played, play the music audio file; when the music playback feedback information prohibits the music audio file from being played, disconnect the connection with the first Bluetooth channel of the terminal device to allow the music audio file to be played through the terminal device.

[0114] In one embodiment, the playing module 502 is further used for: if the first audio file is a music audio file, and the audio data of the music audio file is received for the first time after the non-Bluetooth connection, the music audio file is played directly through the Bluetooth music interface.

[0115] In one embodiment, the playback module 502 is further used to: determine the type of the current interface; in response to satisfying a preset condition, determine the type of the first audio file, including: if the current interface is a non-Bluetooth music interface, determine the type of the first audio file.

[0116] In one embodiment, the playing module 502 is further used to: if the current interface is a Bluetooth music interface, directly play the first audio file.

[0117] In one embodiment, the playing module 502 is specifically used for: if the first audio file is a music audio file, then playing the music audio file through the Bluetooth music interface; if the first audio file includes a music audio file and a non-music audio file, then playing the music audio file and the non-music audio file at the same time, and the sound of playing the music audio file is smaller than the sound of playing the non-music audio file.

[0118] In one embodiment, the playback module 502 is specifically used for: during the process of playing a music audio file through a Bluetooth music interface, if it is detected that the current interface is switched to a non-Bluetooth music interface, determining whether it is necessary to pause receiving and playing the audio data of the music audio file based on the type of the non-Bluetooth music interface; if it is necessary to pause receiving and playing the music audio file, then pausing receiving and playing the music audio file.

[0119] In one embodiment, the playback module 502 is also used to: after pausing the reception and playback of a music audio file, if the audio data of the music audio file continues to be received, continue to play the music audio file; if the audio data of the music audio file continues to be received, redetermine the type of the received audio file based on preset conditions.

[0120] In one embodiment, the playback module 502 is also used for: during the process of playing a music audio file, if a non-music audio file is received from the terminal device through the first Bluetooth channel, the music audio file continues to be played, the volume of the music audio file is lowered, and the non-music audio file is played until the non-music audio file is finished.

[0121] In one embodiment, the playback module 502 is also used to: after completing the Bluetooth connection with the terminal device, if audio data of a second audio file sent by the terminal device through a second Bluetooth channel is received, pause receiving and playing the audio data of the first audio file, and play the second audio file until the second audio file is finished playing.

[0122] In one embodiment, it also includes an acquisition module (not shown in the figure), which is used to: after receiving a start instruction of the Bluetooth audio playback function input by the user, obtain a preset number of terminal devices that have been successfully connected recently from the historical device list, and try to connect, wherein the preset number is greater than or equal to 3 and less than or equal to 5.

[0123] It should be noted that for the description of the in-vehicle Bluetooth audio playback device in this application, please refer to the description of the in-vehicle Bluetooth audio playback method in this application, and the details will not be repeated here.

[0124] According to the in-vehicle Bluetooth audio playback device of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when the determination module receives the audio data of the first audio file sent by the terminal device through the first Bluetooth channel for the first time, in response to meeting the preset conditions, the type of the first audio file is determined, and the playback module determines whether to disconnect the connection with the first Bluetooth channel of the terminal device based on the type of the first audio file. Therefore, when the in-vehicle Bluetooth connection is started, different playback methods can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of multiple sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0125] In one embodiment, a computer-readable storage medium is provided, on which a vehicle-mounted Bluetooth audio playback program is stored. When the vehicle-mounted Bluetooth audio playback program is executed by a processor, the above-mentioned vehicle-mounted Bluetooth audio playback method is implemented.

[0126] According to the computer-readable storage medium of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when receiving the audio data of the first audio file sent by the terminal device through the first Bluetooth channel for the first time, in response to satisfying a preset condition, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when starting the in-vehicle Bluetooth connection, different playback methods can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of multiple sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0127] Fig.10 FIG. 1 is a structural block diagram of a vehicle-mounted device according to an embodiment of the present invention. Fig.10 As shown, the vehicle-mounted device 600 includes a memory 601, a processor 602, and a vehicle-mounted Bluetooth audio playback program stored in the memory 601 and executable on the processor 602. When the processor 602 executes the program, the above-mentioned vehicle-mounted Bluetooth audio playback method is implemented.

[0128] According to the vehicle-mounted device of an embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when the audio data of the first audio file sent by the terminal device through the first Bluetooth channel is received for the first time, in response to meeting the preset conditions, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when the vehicle-mounted Bluetooth connection is started, different playback modes can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of various sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0129] Fig.11 FIG. 1 is a structural block diagram of a vehicle according to an embodiment of the present invention. Fig.11 As shown, the vehicle 1000 includes the above-mentioned vehicle-mounted device 600. According to the vehicle of the embodiment of the present invention, after completing the Bluetooth connection with the terminal device, when receiving the audio data of the first audio file sent by the terminal device through the first Bluetooth channel for the first time, in response to satisfying the preset condition, the type of the first audio file is determined, and based on the type of the first audio file, it is determined whether to disconnect the connection with the first Bluetooth channel of the terminal device. Therefore, when the vehicle-mounted Bluetooth connection is started, different playback modes can be adopted for different types of audio files, which not only effectively avoids the uncontrollable playback of various sounds of the smart terminal from the vehicle end, but also prevents non-music audio files from being automatically played from the vehicle end, thereby protecting user privacy.

[0130] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0131] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable 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, "computer-readable 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 of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more 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), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0132] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of 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.

[0133] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" 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 invention. In this specification, the schematic representation of the above terms does 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 more embodiments or examples in a suitable manner.

[0134] 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 the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0135] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0136] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for playing Bluetooth audio in a vehicle, characterized in that: The method comprises: After completing the Bluetooth connection with the terminal device, when receiving audio data of a first audio file sent by the terminal device through the first Bluetooth channel for the first time, in response to satisfying a preset condition, determining the type of the first audio file; Based on the type of the first audio file, determining whether to disconnect from the first Bluetooth channel of the terminal device; The determining whether to disconnect the first Bluetooth channel of the terminal device based on the type of the first audio file includes: If the first audio file is a non-music audio file, disconnecting the first Bluetooth channel of the terminal device so that the non-music audio file can be played through the terminal device; The method further includes: determining the type of the current interface of the vehicle-mounted multimedia before determining the type of the first audio file; the determining the type of the first audio file in response to satisfying a preset condition includes: if the current interface is a non-Bluetooth music interface, determining the type of the first audio file, and judging whether to play the first audio file through the vehicle terminal or through the device terminal according to the type of the first audio file; If the current in-vehicle multimedia interface is a Bluetooth music interface, the first audio file is played directly.

2. The in-vehicle Bluetooth audio playback method according to claim 1, characterized in that: The determining the type of the first audio file comprises: parsing the audio data of the first audio file through a preset protocol to obtain music information; If the music information is obtained, determining that the first audio file is a music audio file; If the music information is not obtained, it is determined that the first audio file is a non-music audio file.

3. The in-vehicle Bluetooth audio playback method according to claim 1, characterized in that: The method further comprises: If the first audio file is a music audio file, reminding the user to play the music; Receiving music playback feedback information input by the user according to the music playback reminder; When the music playing feedback information indicates that the music audio file is allowed to be played, playing the music audio file; When the music playing feedback information indicates that playing of the music audio file is prohibited, the connection with the first Bluetooth channel of the terminal device is disconnected to allow the music audio file to be played through the terminal device.

4. The in-vehicle Bluetooth audio playback method according to claim 1, characterized in that: The method further comprises: If the first audio file is a music audio file, and it is not the first time that the audio data of the music audio file is received after the Bluetooth connection, the music audio file is played directly.

5. The in-vehicle Bluetooth audio playback method according to claim 1, characterized in that: The directly playing the first audio file comprises: If the first audio file is a music audio file, playing the music audio file through the Bluetooth music interface; If the first audio file includes the music audio file and the non-music audio file, the music audio file and the non-music audio file are played simultaneously, and the sound of playing the music audio file is smaller than the sound of playing the non-music audio file.

6. The in-vehicle Bluetooth audio playback method according to claim 5, characterized in that: In the process of playing the music audio file through the Bluetooth music interface, the method further includes: If it is detected that the current interface is switched to a non-Bluetooth music interface, determining whether it is necessary to pause receiving and playing the audio data of the music audio file based on the type of the non-Bluetooth music interface; If it is necessary to pause receiving and playing the music audio file, then pause receiving and playing the music audio file.

7. The in-vehicle Bluetooth audio playback method according to claim 6, characterized in that: After pausing the reception and playing of the audio data of the music audio file, the method further comprises: If the audio data of the music audio file continues to be received, the music audio file continues to be played; If the audio data of the music audio file is not continuously received, the type of the received audio file is re-determined.

8. The in-vehicle Bluetooth audio playback method according to claim 3, 4 or 5, characterized in that: During the process of playing the music audio file, the method further includes: If a non-music audio file is received from the terminal device through the first Bluetooth channel, the music audio file continues to be played, the volume of the music audio file is lowered, and the non-music audio file is played until the non-music audio file is finished being played.

9. The in-vehicle Bluetooth audio playback method according to claim 1, characterized in that: The method further comprises: After completing the Bluetooth connection with the terminal device, if audio data of a second audio file sent by the terminal device through a second Bluetooth channel is received, receiving and playing the audio data of the first audio file is paused, and playing the second audio file is paused until the second audio file is finished playing.

10. The in-vehicle Bluetooth audio playback method according to claim 1, characterized in that: The method further comprises: After receiving a Bluetooth audio playback function start instruction input by the user, a preset number of terminal devices that have been successfully connected recently are obtained from a historical device list, and an attempt is made to connect, wherein the preset number is greater than or equal to 3 and less than or equal to 5.

11. A car-mounted Bluetooth audio player, characterized in that: The device comprises: a determination module, configured to determine the type of the first audio file in response to satisfying a preset condition when receiving audio data of a first audio file sent by the terminal device through the first Bluetooth channel for the first time after completing the Bluetooth connection with the terminal device; A control module, configured to determine whether to disconnect the first Bluetooth channel of the terminal device based on the type of the first audio file; a playing module, configured to disconnect the connection with the first Bluetooth channel of the terminal device when the first audio file is a non-music audio file, so that the non-music audio file can be played through the terminal device; The playback module is further used to: determine the type of the current interface of the vehicle-mounted multimedia before determining the type of the first audio file; determine the type of the first audio file in response to satisfying a preset condition, including: if the current interface is a non-Bluetooth music interface, determine the type of the first audio file, and determine whether to play the first audio file through the vehicle terminal or through the device terminal according to the type of the first audio file; If the current interface of the in-vehicle multimedia is a Bluetooth music interface, the first audio file is played directly.

12. A computer-readable storage medium, characterized in that: An in-vehicle Bluetooth audio playback program is stored thereon, and when the in-vehicle Bluetooth audio playback program is executed by the processor, the in-vehicle Bluetooth audio playback method according to any one of claims 1-10 is implemented.

13. A vehicle-mounted device, characterized in that: include: A memory, a processor, and a vehicle-mounted Bluetooth audio playback program stored in the memory and executable on the processor. When the processor executes the program, the vehicle-mounted Bluetooth audio playback method according to any one of claims 1 to 10 is implemented.

14. A vehicle, characterized in that: Comprising the vehicle-mounted device according to claim 13.

Citation Information

Patent Citations

  • Call processing method and mobile terminal

    CN108521520A

  • Audio play control method and device as well as storage medium and mobile terminal

    CN108769431A

  • Audio play method, device, electronic device and storage medium

    CN109257500A

  • Method for playing music in vehicle audio system and vehicle audio system to which the method is applied

    CN111354382A

  • Wireless short-distance audio sharing method and electronic device

    CN113169760A