CN110087215B - Information broadcasting method and device based on Bluetooth connection, terminal and storage medium - Google Patents

Information broadcasting method and device based on Bluetooth connection, terminal and storage medium Download PDF

Info

Publication number
CN110087215B
CN110087215B CN201910370857.5A CN201910370857A CN110087215B CN 110087215 B CN110087215 B CN 110087215B CN 201910370857 A CN201910370857 A CN 201910370857A CN 110087215 B CN110087215 B CN 110087215B
Authority
CN
China
Prior art keywords
user terminal
link
terminal
vehicle
synchronous link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910370857.5A
Other languages
Chinese (zh)
Other versions
CN110087215A (en
Inventor
杨超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910370857.5A priority Critical patent/CN110087215B/en
Publication of CN110087215A publication Critical patent/CN110087215A/en
Application granted granted Critical
Publication of CN110087215B publication Critical patent/CN110087215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6075Portable telephones adapted for handsfree use adapted for handsfree use in a vehicle
    • H04M1/6083Portable telephones adapted for handsfree use adapted for handsfree use in a vehicle by interfacing with the vehicle audio system
    • H04M1/6091Portable telephones adapted for handsfree use adapted for handsfree use in a vehicle by interfacing with the vehicle audio system including a wireless interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses an information broadcasting method, an information broadcasting device, a terminal and a storage medium based on Bluetooth connection, wherein the method comprises the following steps: responding to the soundless broadcast of the vehicle-mounted terminal, and switching the Bluetooth link to the synchronous link; setting an audio mode of an audio manager on a user terminal as a call mode; and sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal through the synchronous link for broadcasting. According to the embodiment of the invention, when the broadcasting problem occurs in the vehicle machine, the guidance broadcasting is continued by switching to the synchronous link, so that the user can normally receive the guidance information under the condition that the guidance information cannot be broadcasted due to the vehicle machine fault. And the induction information is broadcasted through the synchronous link, so that the user can answer the phone at the same time, and the driving safety is improved.

Description

Information broadcasting method and device based on Bluetooth connection, terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of wireless communication, in particular to an information broadcasting method, an information broadcasting device, an information broadcasting terminal and a storage medium based on Bluetooth connection.
Background
With the development of the car networking and intelligent terminal technology, a user can generally connect the own intelligent mobile phone with the car-mounted terminal through Bluetooth in the process of driving a vehicle, so that the user can answer a call or listen to a navigation report through the car-mounted terminal without operating the mobile phone, and convenience is brought to the user.
However, the bluetooth devices in the market have eight brands, the quality of the car machine is also uneven, and if the car machine has a playing problem, navigation guidance information cannot be played, so that the navigation effect is directly influenced; and if the user can only directly broadcast through the mobile phone by disconnecting the Bluetooth due to the fact that the user can not broadcast the induction information through the Bluetooth connection vehicle, the induction information can not be received through the vehicle machine when the mobile phone is in a call, and driving safety of the user is greatly influenced.
Disclosure of Invention
The embodiment of the invention provides an information broadcasting method, an information broadcasting device, a terminal and a storage medium based on Bluetooth connection, and aims to solve the technical problem that induced information cannot be broadcasted due to vehicle machine faults in the prior art.
In a first aspect, an embodiment of the present invention provides an information broadcasting method based on bluetooth connection, which is applied to a user terminal, where the user terminal is connected to a vehicle-mounted terminal through bluetooth, and the method includes:
responding to the soundless broadcast of the vehicle-mounted terminal, and switching the Bluetooth link to the synchronous link;
setting an audio mode of an audio manager on a user terminal as a call mode;
and sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal through the synchronous link for broadcasting.
In a second aspect, an embodiment of the present invention further provides an information broadcasting device based on bluetooth connection, where the information broadcasting device is configured in a user terminal, and the user terminal is connected to a vehicle-mounted terminal through bluetooth, where the device includes:
the link switching module is used for responding to the soundless broadcast of the vehicle-mounted terminal and switching the Bluetooth link to the synchronous link;
the first mode setting module is used for setting the audio mode of an audio manager on the user terminal as a call mode;
and the broadcast sending module is used for sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal for broadcast through the synchronous link.
In a third aspect, an embodiment of the present invention further provides a terminal, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the information broadcasting method based on bluetooth connection according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an information broadcasting method based on bluetooth connection according to any embodiment of the present invention.
According to the information broadcasting method, the information broadcasting device, the information broadcasting terminal and the information broadcasting storage medium based on the Bluetooth connection, when the vehicle-mounted terminal broadcasts soundless information, the user terminal switches the Bluetooth link connected with the vehicle-mounted terminal to the synchronous link according to the Bluetooth connection setting request of the user, and sets the audio mode of the audio manager to be the call mode, so that the voice data of the current application software on the user terminal is sent to the vehicle-mounted terminal through the synchronous link for broadcasting. Therefore, the user can normally receive the guidance information under the condition that the guidance information cannot be reported due to the vehicle machine fault. And the induction information is broadcasted through the synchronous link, so that the user can simultaneously take the answering of the call into consideration, and the driving safety is improved.
Drawings
Fig. 1 is a schematic flowchart of an information broadcasting method based on bluetooth connection according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an information broadcasting method based on bluetooth connection according to a second embodiment of the present invention;
fig. 3a is a schematic flowchart of a process of switching a bluetooth link connecting a vehicle-mounted terminal to a synchronous link according to a third embodiment of the present invention;
fig. 3b is a schematic flowchart of closing the synchronous link according to the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an information broadcasting device based on bluetooth connection according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an information broadcasting method based on bluetooth connection according to an embodiment of the present invention, where the embodiment is applicable to a situation where a user terminal is connected to a vehicle through bluetooth, but induced information cannot be broadcasted due to a vehicle failure, and the method may be executed by a corresponding information broadcasting device based on bluetooth connection, where the device may be implemented in a software and/or hardware manner and may be configured on the user terminal.
As shown in fig. 1, the information broadcasting method based on bluetooth connection provided in the embodiment of the present invention may include:
and S101, responding to the soundless broadcast of the vehicle-mounted terminal, and switching the Bluetooth link to the synchronous link.
The bluetooth link is mainly used for transmitting data communication with high requirement on time, the bluetooth link types include two types, namely Synchronous link (SCO) and Asynchronous link (ACL), the Synchronous link is mainly used for Synchronous voice transmission, and the ACL link is mainly used for packet data transmission.
Specifically, the connections of the synchronous link are symmetrical connections, and the reserved time slots are used for transmitting data packets. After the connection is established, the master device and the slave device may send the synchronization link data packet without being selected. The synchronization link data packet may carry either voice or data, but is used to retransmit only the corrupted portion of the data as it is being transmitted.
Asynchronous links are directed packets that support both symmetric and asymmetric connections (either one-to-one or one-to-many). The master is responsible for controlling the link bandwidth and deciding how much bandwidth each slave in the piconet can occupy and the symmetry of the connection. The slave device can only transfer data if it is selected. The asynchronous link also supports the reception of broadcast messages from the master device to all slave devices in the piconet.
The use of bluetooth for playing inducement information (e.g. music or navigation voice) is based on the A2DP (Advanced Audio Distribution Profile) protocol, where the A2DP protocol is a high quality Audio protocol running on an asynchronous link that defines the protocol and procedures for transmitting high quality Audio information, such as mono or stereo, over the asynchronous link. Therefore, the guidance information played by the vehicle-mounted terminal is transmitted to the vehicle-mounted terminal by the user terminal through the asynchronous link. And when the A2DP protocol has problems, the vehicle terminal is caused to play the silence. Therefore, for this situation, the user can manually trigger the bluetooth device broadcast control on the user terminal, and then the user terminal switches the bluetooth link connecting the vehicle-mounted terminal to the synchronous link in response to the bluetooth connection setting request when the vehicle-mounted terminal is broadcasted to be silent.
Further, since the synchronous link is mainly used for answering a call, in order to avoid that normal conversation is affected due to abnormal sound channels caused by link switching, when the bluetooth link connected with the vehicle-mounted terminal is switched to the synchronous link, whether the user terminal is in conversation is judged at first. If the Bluetooth link is not in the call, the Bluetooth link connected with the vehicle-mounted terminal can be directly switched to the synchronous link; if the vehicle-mounted terminal is in the call, and when the call is monitored to be ended, after delaying a first preset time, switching a Bluetooth link connected with the vehicle-mounted terminal to a synchronous link, wherein the first preset time is 2 seconds as an example. The purpose of the delay is also to ensure that the call has been completely ended, and avoid the occurrence of channel abnormality.
Specifically, the link switching process at least includes: detecting whether a synchronous link is started, and if so, switching to the synchronous link; if not, further judging whether the user terminal supports the synchronous link, if so, starting the synchronous link connection to switch to the synchronous link.
Further, after the bluetooth link connected with the vehicle-mounted terminal is switched to the synchronous link, the successful switching message is fed back to the user terminal in a broadcast mode.
S102, setting the audio mode of an audio manager on the user terminal as a call mode.
Because the voice is transmitted through the synchronous link in the normal call state, and the Audio mode (i.e., Audio mode) of the Audio manager on the user terminal is also automatically set to the call mode during the call, the embodiment of the invention broadcasts the guidance information by using the synchronous link when the broadcast is silent, but the Audio mode is not actually in the call state, so the guidance information can be transmitted by using the synchronous link only by actively setting the Audio mode to the call mode. It should be noted here that, due to different configuration capabilities of the user terminals, the set call modes may also be different. For example, the MODE _ IN _ COMMUNICATION MODE may be used, and the MODE _ IN _ CALL MODE may be used. The embodiment of the present invention is not limited thereto.
And S103, sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal for broadcasting through the synchronous link.
The voice data of the current application software is also the guidance information, such as music or navigation voice, and after the voice data of the current application software on the user terminal is sent to the vehicle-mounted terminal through the synchronous link, the vehicle-mounted terminal broadcasts the received voice data. It should be noted here that sending the voice data of the current application software on the user terminal by using the synchronous link does not affect the user to answer the call, and when the call comes, the user can answer the call and listen to the guidance information at the same time, thereby ensuring that the user can listen to the call while listening to the guidance broadcast.
In the embodiment of the invention, when the vehicle-mounted terminal is silent in broadcasting, the user terminal switches the Bluetooth link connected with the vehicle-mounted terminal to the synchronous link according to the Bluetooth connection setting request of the user, and sets the audio mode of the audio manager to be the call mode, so that the voice data of the current application software on the user terminal is sent to the vehicle-mounted terminal through the synchronous link for broadcasting. Therefore, the condition that the induction broadcast cannot be played due to the vehicle machine fault is ensured, and the user can normally receive the induction information broadcast by the vehicle-mounted terminal. And the induction information is broadcasted through the synchronous link, the answering of the call can be considered at the same time, and the driving safety is improved.
Example two
Fig. 2 is a schematic flowchart of an information broadcasting method based on bluetooth connection according to a second embodiment of the present invention. The present embodiment is further optimized based on the above embodiments, and the volume setting and the related operation of closing the synchronous link are increased.
As shown in fig. 2, the information broadcasting method based on bluetooth connection provided in the embodiment of the present invention may include:
s201, responding to the soundless broadcast of the vehicle-mounted terminal, and switching the Bluetooth link to the synchronous link.
S202, setting the audio mode of an audio manager on the user terminal as a call mode.
S203, the audio stream type of the media player on the user terminal is set as the audio stream for music playing.
The audio STREAM type (StreamType) includes a calling sound (STREAM _ VOICE _ CALL), a SYSTEM sound (STREAM _ SYSTEM), a telephone RING (STREAM _ RING), a MUSIC playing sound (STREAM _ MUSIC), a warning sound (STREAM _ ALARM), and the like, and when a certain type is set, the audio STREAM type (StreamType) is adjusted only for the sound volume of the certain type, so that the influence on the sound volumes of other types can be avoided. For example, if the sound tone is set to be large after STREAM _ MUSIC is set, the volume at the time of the next call is not affected.
In this embodiment, the sound type of the guidance information belongs to MUSIC playing sound, so that before the voice data of the current application software on the user terminal is sent to the vehicle-mounted terminal through the synchronous link for broadcasting, the audio STREAM type of the media player on the user terminal is set to STREAM _ MUSIC, so that it can be ensured that the user can adjust the volume of the broadcast through the volume key of the user terminal.
And S204, sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal for broadcasting through the synchronous link.
In this embodiment, after determining that the guidance information does not need to be continuously broadcasted, the user may trigger the current application software to quit sending the voice data, for example, quit the navigation interface and return to the main interface of the navigation application. And the user terminal executes S205-S206 to finish quitting the induced broadcast according to the monitored user triggering operation.
S205, if the current application software is monitored to quit the operation of sending the voice data, closing the synchronous link.
And when the current application software exits the operation of sending the voice data, closing the synchronous link and recovering to a default channel. Furthermore, in the process of closing the SCO, a phenomenon that some terminals swallow words can occur, so that the broadcast is blocked, and therefore a mute strategy is adopted in the process of closing the synchronous link.
Specifically, if the current audio stream is in the synchronous link, the synchronous link is closed after the volume of the current audio stream type is set to be mute; after keeping silent for a second preset time, which is 2 seconds as an example, the volume of the current audio stream type is restored to avoid silence abnormality.
S206, setting the audio mode of the audio manager on the user terminal to be the original mode.
After the synchronous link is closed and the default channel is recovered, the message of successful switching is fed back to the user terminal in a broadcast mode. The user terminal sets the audio MODE of the audio manager from the call MODE to the original MODE (MODE _ IN _ NORMAL).
Further, after the synchronization link is closed, the type of the audio STREAM of the media player on the user terminal may be set as an audio STREAM for MUSIC playing, that is, set as STREAM _ MUSIC. Thereby ensuring that the volume key can normally adjust the volume.
Further, since there is a situation that the speaker of the terminal is turned off due to a failure of the terminal or the software system, it is necessary to detect whether the speaker of the user terminal is turned off after the synchronous link is turned off in order to ensure that the user uses the terminal normally. If it is detected that the speaker on the user terminal is turned off, the speaker is turned on.
In this embodiment, after switching to the synchronous link, the audio stream type is set to an audio stream for music playing, so as to adjust the volume of the broadcast. And in the process of closing the synchronous link, a mute strategy is adopted, and the phenomenon of broadcasting card pause caused by the word swallowing phenomenon is eliminated. In addition, after the synchronous link is closed, the state of the terminal loudspeaker is detected, and the normal use of the terminal is further ensured.
EXAMPLE III
The present embodiment is based on the above-described embodiments, and details the process of switching to the synchronous link and closing the synchronous link. Fig. 3a is a schematic flowchart illustrating a process of switching to a synchronous link according to an embodiment of the present invention, where the process includes:
and S301, responding to the soundless broadcast of the vehicle-mounted terminal, detecting whether the user terminal is in the call, if so, executing S302, and otherwise, executing S303.
And S302, when the end of the call is monitored, after delaying the first preset time, executing S303.
S303, detecting whether the synchronous link is opened, and if not, executing S304.
S304, judging whether the user terminal supports the synchronous link connection, if so, executing S305, otherwise, determining the switching failure.
S305, starting the synchronous link connection.
S306, detecting whether the synchronous link connection is successful, if so, executing S307 and S308, otherwise, determining that the switching is failed.
S307, the Audio MODE of the user terminal is set to be the MODE _ IN _ COMMUNICATION MODE.
S308, set the audio STREAM type (StreamType) to STREAM _ MUSIC.
Through the operation, the user terminal switches the Bluetooth link connected with the vehicle-mounted terminal to the synchronous link, and correspondingly sets the Audio mode and the Audio stream type, so that the user terminal can normally transmit the induction information to broadcast through the synchronous link under the condition that the induction information cannot be broadcast due to the vehicle machine fault, and meanwhile, the adjustment of the volume of the induction information broadcast can be supported.
Fig. 3b shows a schematic flowchart of closing the synchronous link, which specifically includes:
s310, whether a synchronous link is started or not is detected, if yes, S320 is executed, and if not, the operation is finished.
S320, detecting whether the sound is muted or not, if so, executing S340, and if not, executing S330;
and S330, executing S340 after the mute is turned on, and restoring the volume after the preset time is delayed.
And S340, closing the synchronous link.
And S350, detecting whether the closing is successful, if so, executing S360 and S370, and if not, ending.
And S360, setting the Audio MODE of the user terminal to MODE _ IN _ NORMAL.
S370, set the audio STREAM type (StreamType) to STREAM _ MUSIC, and restore the volume.
In the process of closing the synchronous link, a mute strategy is adopted to eliminate the pause in broadcasting caused by the word swallowing phenomenon.
Example four
Fig. 4 is a schematic structural diagram of an information broadcasting device based on bluetooth connection according to a fourth embodiment of the present invention, where the device is configured in a user terminal, and the user terminal is connected to a vehicle-mounted terminal through bluetooth. As shown in fig. 4, the apparatus includes:
the link switching module 401 is configured to switch the bluetooth link to the synchronous link in response to the soundless broadcast of the vehicle-mounted terminal;
a first mode setting module 402, configured to set an audio mode of an audio manager on a user terminal as a call mode;
and the broadcast sending module 403 is configured to send the voice data of the current application software on the user terminal to the vehicle-mounted terminal through the synchronous link for broadcast.
In the embodiment of the invention, when the vehicle-mounted terminal is silent in broadcasting, the user terminal switches the Bluetooth link connected with the vehicle-mounted terminal to the synchronous link according to the Bluetooth connection setting request of the user, and sets the audio mode of the audio manager to be the call mode, so that the voice data of the current application software on the user terminal is sent to the vehicle-mounted terminal through the synchronous link for broadcasting. Therefore, the condition that the induction broadcast cannot be played due to the vehicle machine fault is ensured, and the user can normally receive the induction information broadcast by the vehicle-mounted terminal. And the induction information is broadcasted through the synchronous link, the answering of the telephone can be considered at the same time, and the driving safety is improved.
On the basis of the above embodiment, the apparatus further includes:
and the first audio stream type setting module is used for setting the audio stream type of the media player on the user terminal as an audio stream for music playing before the broadcast sending module sends the voice data.
On the basis of the above embodiment, the link switching module includes:
the judging unit is used for judging whether the user terminal is in a call;
and the time delay switching unit is used for switching the Bluetooth link connected with the vehicle-mounted terminal to the synchronous link after delaying the first preset time when the user terminal is judged to be in the call and the call is monitored to be ended.
On the basis of the above embodiment, the apparatus further includes:
a closing module, configured to close the synchronous link if it is monitored that the current application software exits the operation of sending voice data;
and the second mode setting module is used for setting the audio mode of the audio manager on the user terminal to be the original mode.
On the basis of the above embodiment, the shutdown module is specifically configured to:
if the current audio stream is in the synchronous link, the volume of the current audio stream type is set to be mute, and then the synchronous link is closed;
and after keeping mute for a second preset time, restoring the volume of the current audio stream type.
On the basis of the above embodiment, the apparatus further includes:
and the second audio stream type setting module is used for setting the audio stream type of the media player on the user terminal as an audio stream for music playing after the synchronous link is closed by the closing module.
On the basis of the above embodiment, the apparatus further includes:
and the loudspeaker opening module is used for opening the loudspeaker if the loudspeaker on the user terminal is closed.
The information broadcasting device based on Bluetooth connection provided by the embodiment of the invention can execute the information broadcasting method based on Bluetooth connection provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention. The terminal is a user terminal such as a smart phone and a PAD, and the user terminal is connected with the vehicle-mounted terminal through bluetooth. Fig. 5 illustrates a block diagram of an exemplary terminal 12 suitable for use in implementing embodiments of the present invention. The terminal 12 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the terminal 12 is embodied in the form of a general purpose computing device. The components of the terminal 12 may include, but are not limited to: one or more processors or processors 16, a memory 28, and a bus 18 that connects the various system components (including the memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by terminal 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The terminal 12 can further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The terminal 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the terminal 12, and/or any devices (e.g., network card, modem, etc.) that enable the terminal 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the terminal 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the terminal 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing by running the program stored in the memory 28, for example, implementing the information broadcasting method based on bluetooth connection provided by the embodiment of the present invention, including:
responding to the soundless broadcast of the vehicle-mounted terminal, and switching the Bluetooth link to the synchronous link;
setting an audio mode of an audio manager on a user terminal as a call mode;
and sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal through the synchronous link for broadcasting.
EXAMPLE six
The embodiment of the invention provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used for executing an information broadcasting method based on Bluetooth connection when being executed by a computer processor, and are applied to a user terminal, the user terminal is connected with a vehicle-mounted terminal through Bluetooth, and the method comprises the following steps:
responding to the soundless broadcast of the vehicle-mounted terminal, and switching the Bluetooth link to the synchronous link;
setting an audio mode of an audio manager on a user terminal as a call mode;
and sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal through the synchronous link for broadcasting.
Of course, the storage medium provided in the embodiments of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the information broadcasting method based on bluetooth connection provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. An information broadcasting method based on Bluetooth connection is applied to a user terminal, and the user terminal is connected with a vehicle-mounted terminal through Bluetooth, and is characterized in that the method comprises the following steps:
responding to the soundless broadcast of the vehicle-mounted terminal, and switching the Bluetooth link to the synchronous link; the silent broadcast of the vehicle-mounted terminal is caused by the problem of the advanced audio transmission model protocol when the user terminal transmits the induction information to the vehicle-mounted terminal through the asynchronous link;
setting an audio mode of an audio manager on a user terminal as a call mode;
and sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal through the synchronous link for broadcasting.
2. The method according to claim 1, before sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal for broadcasting through the synchronous link, the method further comprises:
the audio stream type of the media player on the user terminal is set as an audio stream for music playing.
3. The method of claim 1, wherein switching the bluetooth link to the synchronous link comprises:
judging whether the user terminal is in a call;
if the mobile terminal is in the call, when the call is monitored to be ended, the mobile terminal is switched to the synchronous link after delaying the first preset time.
4. The method according to claim 1, wherein after the voice data of the current application software on the user terminal is sent to the vehicle-mounted terminal for broadcasting through the synchronous link, the method further comprises the following steps:
if the current application software quits the operation of sending the voice data, closing the synchronous link;
the audio mode of the audio manager on the user terminal is set to the original mode.
5. The method of claim 4, wherein closing the synchronization link comprises:
if the current audio stream is in the synchronous link, the volume of the current audio stream type is set to be mute, and then the synchronous link is closed;
and after keeping mute for a second preset time, restoring the volume of the current audio stream type.
6. The method of claim 4, wherein after closing the synchronization link, the method further comprises:
the audio stream type of the media player on the user terminal is set as an audio stream for music playing.
7. The method of claim 4, wherein after closing the synchronization link, the method further comprises:
if the speaker on the user terminal is off, the speaker is turned on.
8. The utility model provides an information broadcast device based on bluetooth is connected, disposes in user terminal, user terminal passes through the bluetooth and is connected with vehicle terminal, its characterized in that, the device includes:
the link switching module is used for responding to the soundless broadcast of the vehicle-mounted terminal and switching the Bluetooth link to the synchronous link; the silent broadcast of the vehicle-mounted terminal is caused by the problem of the advanced audio transmission model protocol when the user terminal transmits the induction information to the vehicle-mounted terminal through the asynchronous link;
the first mode setting module is used for setting the audio mode of an audio manager on the user terminal as a call mode;
and the broadcast sending module is used for sending the voice data of the current application software on the user terminal to the vehicle-mounted terminal for broadcast through the synchronous link.
9. The apparatus of claim 8, further comprising:
and the first audio stream type setting module is used for setting the audio stream type of the media player on the user terminal into an audio stream for music playing before the broadcast sending module sends the voice data, so as to adjust the broadcast volume.
10. The apparatus of claim 8, wherein the link switching module comprises:
the judging unit is used for judging whether the user terminal is in a call;
and the time delay switching unit is used for switching the Bluetooth link connected with the vehicle-mounted terminal to the synchronous link after delaying the first preset time when the user terminal is judged to be in the call and the call is monitored to be ended.
11. The apparatus of claim 8, further comprising:
a closing module, configured to close the synchronous link if it is monitored that the current application software exits the operation of sending voice data;
and the second mode setting module is used for setting the audio mode of the audio manager on the user terminal to be the original mode.
12. The apparatus according to claim 11, wherein the shutdown module is specifically configured to:
if the current audio stream is in the synchronous link, the volume of the current audio stream type is set to be mute, and then the synchronous link is closed;
and after keeping mute for a second preset time, restoring the volume of the current audio stream type.
13. The apparatus of claim 11, further comprising:
and the second audio stream type setting module is used for setting the audio stream type of the media player on the user terminal as an audio stream for music playing after the synchronous link is closed by the closing module.
14. A terminal, comprising:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the information broadcasting method based on bluetooth connection according to any one of claims 1 to 7.
15. A computer-readable storage medium on which a computer program is stored, the program implementing the information broadcasting method based on bluetooth connection according to any one of claims 1 to 7 when being executed by a processor.
CN201910370857.5A 2019-05-06 2019-05-06 Information broadcasting method and device based on Bluetooth connection, terminal and storage medium Active CN110087215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910370857.5A CN110087215B (en) 2019-05-06 2019-05-06 Information broadcasting method and device based on Bluetooth connection, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910370857.5A CN110087215B (en) 2019-05-06 2019-05-06 Information broadcasting method and device based on Bluetooth connection, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110087215A CN110087215A (en) 2019-08-02
CN110087215B true CN110087215B (en) 2022-05-13

Family

ID=67418723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910370857.5A Active CN110087215B (en) 2019-05-06 2019-05-06 Information broadcasting method and device based on Bluetooth connection, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110087215B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709691B (en) * 2020-05-19 2024-04-02 百度在线网络技术(北京)有限公司 Audio data playing method, device, equipment and storage medium
CN112752218A (en) * 2020-12-30 2021-05-04 展讯半导体(成都)有限公司 Vehicle addressing method, vehicle, terminal and storage medium
CN112948207B (en) * 2021-02-23 2024-06-18 中国工商银行股份有限公司 Information transfer method, device, electronic equipment and medium
CN113225691B (en) * 2021-04-02 2022-07-08 北京小米移动软件有限公司 Audio processing method, device and storage medium
CN113691678B (en) * 2021-07-14 2022-10-25 荣耀终端有限公司 Call control method, electronic device, computer readable storage medium and chip system
CN115175131B (en) * 2022-06-29 2024-08-27 Oppo广东移动通信有限公司 Bluetooth transmission control method and device, mobile terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101129025A (en) * 2005-02-25 2008-02-20 诺基亚公司 Method and system for VoIP over WLAN to bluetooth headset using ACL link and sniff for alighed eSCO transmission
CN101536479A (en) * 2006-10-31 2009-09-16 摩托罗拉公司 Methods and devices for dual mode bidirectional audio communication
CN103594100A (en) * 2012-08-13 2014-02-19 上海博泰悦臻电子设备制造有限公司 Method and apparatus for playing music in mobile terminal through bluetooth

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100390508B1 (en) * 2001-05-30 2003-07-07 엘지전자 주식회사 Direct communication method for bluetooth terminal
JP4179552B2 (en) * 2003-12-18 2008-11-12 本田技研工業株式会社 Bluetooth terminal
KR20110024465A (en) * 2009-09-02 2011-03-09 삼성전자주식회사 Apparatus and method for improving bluetooth performance in portable terminal
CN101984728B (en) * 2010-10-22 2013-10-02 惠州Tcl移动通信有限公司 Method and visual communication terminal for achieving visual conversation based on bluetooth earphone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101129025A (en) * 2005-02-25 2008-02-20 诺基亚公司 Method and system for VoIP over WLAN to bluetooth headset using ACL link and sniff for alighed eSCO transmission
CN101536479A (en) * 2006-10-31 2009-09-16 摩托罗拉公司 Methods and devices for dual mode bidirectional audio communication
CN103594100A (en) * 2012-08-13 2014-02-19 上海博泰悦臻电子设备制造有限公司 Method and apparatus for playing music in mobile terminal through bluetooth

Also Published As

Publication number Publication date
CN110087215A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110087215B (en) Information broadcasting method and device based on Bluetooth connection, terminal and storage medium
CN108184164B (en) Audio playing method, smart television and computer readable storage medium
CN111447603A (en) Data transmission method and device
US8977202B2 (en) Communication apparatus having a unit to determine whether a profile is operating
US20230069230A1 (en) Switching between multiple earbud architectures
CN110196708B (en) Audio management method applied to android vehicle-mounted multimedia system
WO2023087793A1 (en) Audio service processing method and apparatus, electronic device, and storage medium
WO2022228569A1 (en) Method and apparatus for bluetooth device to control transmission and electronic device
CN114245328B (en) Voice call transfer method and electronic equipment
CN104767868A (en) Conversation control method and terminal
CN113573172A (en) Dual-device audio playing method and device, electronic device and storage medium
CN113438367A (en) Call control method, device, medium and electronic equipment based on vehicle system
US20240211202A1 (en) Audio playing control method and audio output device
CN111049709B (en) Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
US20060044120A1 (en) Car audio system and method combining with MP3 player
CN112565876B (en) Screen projection method, device, equipment, system and storage medium
CN106949902B (en) Navigation voice fault solving method, device, equipment and storage medium
JP2015002394A (en) Information processing apparatus and computer program
CN114268911B (en) Communication method and device, readable storage medium and TWS system
CN116321084A (en) Bluetooth communication method, bluetooth communication device, electronic equipment and computer readable medium
CN101951560B (en) Method and system for controlling say status in trunking communication
CN113709691B (en) Audio data playing method, device, equipment and storage medium
US11006205B1 (en) Acoustic device
CN106341795B (en) Voice processing method and device for high-priority call
CN109818979A (en) A kind of method, apparatus that realizing audio return, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant