CN105812903A - Bluetooth module control method and device of playback device, and audio and video playback system - Google Patents
Bluetooth module control method and device of playback device, and audio and video playback system Download PDFInfo
- Publication number
- CN105812903A CN105812903A CN201610165508.6A CN201610165508A CN105812903A CN 105812903 A CN105812903 A CN 105812903A CN 201610165508 A CN201610165508 A CN 201610165508A CN 105812903 A CN105812903 A CN 105812903A
- Authority
- CN
- China
- Prior art keywords
- audio
- playback
- bluetooth
- bluetooth module
- signal strength
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/43615—Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及音视频播放技术领域,尤其涉及一种音视频播放系统中的播放设备的蓝牙模块控制方法、装置及音视频播放系统。Embodiments of the present invention relate to the technical field of audio and video playback, and in particular, to a method and device for controlling a Bluetooth module of a playback device in an audio and video playback system, and an audio and video playback system.
背景技术Background technique
目前,播放设备一般都集成了网络通信功能,不同区域的多个播放设备可通过连接网络组成一个音视频播放系统。智能手机等智能终端可通过无线通信技术与音视频播放系统连接,对音视频播放系统进行控制或向音视频播放系统传输音视频数据。常见的一种连接方式是,智能终端与音视频播放系统中的一个播放设备建立蓝牙连接。At present, playback devices generally integrate network communication functions, and multiple playback devices in different regions can form an audio and video playback system by connecting to the network. Smart terminals such as smartphones can be connected to the audio and video playback system through wireless communication technology to control the audio and video playback system or transmit audio and video data to the audio and video playback system. A common connection method is that the smart terminal establishes a Bluetooth connection with a playback device in the audio and video playback system.
音视频播放系统中的播放设备一般均配置有蓝牙模块,蓝牙模块的工作状态包括开启状态和关闭状态。当蓝牙模块处于开启状态时,智能终端可发现该播放设备并与之配对连接;当蓝牙模块处于关闭状态时,智能终端无法发现该播放设备,也就无法与之建立蓝牙连接。The playback devices in the audio and video playback system are generally equipped with a Bluetooth module, and the working status of the Bluetooth module includes an on state and an off state. When the bluetooth module is turned on, the smart terminal can discover the playing device and pair with it; when the bluetooth module is turned off, the smart terminal cannot discover the playing device and cannot establish a bluetooth connection with it.
通常情况下,播放设备中的蓝牙模块是由用户手动设置为开启状态或关闭状态的。当蓝牙模块处于开启状态时,会增加整个音视频播放系统的功耗,且会干扰其他无线设备的通信(特别是干扰2.4GHz频段的通信),当多个播放设备的蓝牙模块同时开启时,上述影响更加显著,且当用户选择待连接的播放设备时,也会给用户造成困扰。但若蓝牙模块处于关闭状态,会导致智能终端无法发现其所属的播放设备,只能由用户手动打开播放设备的蓝牙模块。所以,用户在使用过程中,需要频繁手动切换播放设备的蓝牙模块的工作状态,给用户的使用带来不便。Usually, the Bluetooth module in the playback device is manually set to be on or off by the user. When the Bluetooth module is turned on, it will increase the power consumption of the entire audio and video playback system, and it will interfere with the communication of other wireless devices (especially the communication in the 2.4GHz frequency band). When the Bluetooth modules of multiple playback devices are turned on at the same time, The above-mentioned impact is more significant, and when the user selects a playback device to be connected, it will also cause trouble to the user. However, if the Bluetooth module is turned off, the smart terminal cannot discover the playback device it belongs to, and the user can only manually turn on the Bluetooth module of the playback device. Therefore, the user needs to frequently manually switch the working state of the Bluetooth module of the playback device during use, which brings inconvenience to the user.
发明内容Contents of the invention
本发明实施例提供一种音视频播放系统中的播放设备的蓝牙模块控制方法、装置及音视频播放系统,以解决现有技术中的音视频播放系统中的播放设备的蓝牙模块的工作状态需要用户手动切换的问题。Embodiments of the present invention provide a Bluetooth module control method and device of a playback device in an audio and video playback system, and an audio and video playback system, so as to solve the working state requirements of the Bluetooth module of a playback device in an audio and video playback system in the prior art Problem with manual switching by the user.
第一方面,本发明实施例提供了一种音视频播放系统中的播放设备的蓝牙模块控制方法方法,包括:In a first aspect, an embodiment of the present invention provides a method for controlling a Bluetooth module of a playback device in an audio and video playback system, including:
获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息;Obtain the bluetooth signal strength information of the sound source device whose bluetooth module is in the open state obtained by scanning the playing device in the audio and video playing system;
根据获取到的音源设备的蓝牙信号强度信息控制所述音视频播放系统中的播放设备的蓝牙模块的工作状态,所述工作状态包括开启状态和关闭状态。Control the working state of the bluetooth module of the playback device in the audio and video playback system according to the acquired bluetooth signal strength information of the audio source device, and the working state includes an on state and an off state.
第二方面,本发明实施例还提供了一种音视频播放系统中的播放设备的蓝牙模块控制装置,包括:In the second aspect, the embodiment of the present invention also provides a Bluetooth module control device for a playback device in an audio and video playback system, including:
获取模块,用于获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息;The obtaining module is used to obtain the bluetooth signal strength information of the sound source device whose bluetooth module is in an open state obtained by scanning the playing device in the audio and video playing system;
控制模块,用于根据获取到的音源设备的蓝牙信号强度信息控制所述音视频播放系统中的播放设备的蓝牙模块的工作状态,所述工作状态包括开启状态和关闭状态。The control module is used to control the working state of the bluetooth module of the playing device in the audio and video playing system according to the acquired bluetooth signal strength information of the audio source device, and the working state includes an on state and an off state.
第三方面,本发明实施例还提供了一种音视频播放系统,包括至少两个播放设备,所述至少两个播放设备中的至少一个播放设备中集成有第二方面所述的音视频播放系统中的播放设备的蓝牙模块控制装置。In the third aspect, the embodiment of the present invention also provides an audio and video playback system, including at least two playback devices, at least one of the at least two playback devices is integrated with the audio and video playback described in the second aspect The bluetooth module control device of the playback device in the system.
本发明实施例提供的音视频播放系统中的播放设备的蓝牙模块控制方法、装置及音视频播放系统,获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息后,根据获取到的音源设备的蓝牙信号强度信息控制播放设备的蓝牙模块的开启和关闭,实现了对音视频播放系统中的播放设备的蓝牙模块的工作状态的自动控制,可有效减少用户手动切换播放设备的蓝牙模块的工作状态的次数,提升用户体验。The Bluetooth module control method and device of the playback device in the audio and video playback system provided by the embodiments of the present invention, and the audio and video playback system obtain the Bluetooth of the audio source device whose Bluetooth module is in the open state obtained by scanning the playback device in the audio and video playback system. After the signal strength information is obtained, the Bluetooth module of the playback device is controlled to be turned on and off according to the obtained Bluetooth signal strength information of the audio source device, and the automatic control of the working state of the Bluetooth module of the playback device in the audio and video playback system is realized, which can effectively Reduce the number of times the user manually switches the working state of the Bluetooth module of the playback device to improve user experience.
附图说明Description of drawings
图1是本发明实施例一提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图。FIG. 1 is a schematic flowchart of a Bluetooth module control method of a playback device in an audio and video playback system provided by Embodiment 1 of the present invention.
图2是本发明实施例一提供的音视频播放系统中的播放设备的结构示意图。FIG. 2 is a schematic structural diagram of a playback device in the audio and video playback system provided by Embodiment 1 of the present invention.
图3A是本发明实施例一提供的音视频播放系统的组网的一种实现方式的结构示意图。FIG. 3A is a schematic structural diagram of an implementation manner of networking of an audio and video playback system provided by Embodiment 1 of the present invention.
图3B是本发明实施例一提供的音视频播放系统的组网的另一种实现方式的结构示意图。FIG. 3B is a schematic structural diagram of another implementation manner of networking of the audio and video playback system provided by Embodiment 1 of the present invention.
图4是本发明实施例二提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图。FIG. 4 is a schematic flowchart of a method for controlling a Bluetooth module of a playback device in an audio and video playback system according to Embodiment 2 of the present invention.
图5是本发明实施例三提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图。FIG. 5 is a schematic flowchart of a method for controlling a Bluetooth module of a playback device in an audio and video playback system according to Embodiment 3 of the present invention.
图6是本发明实施例四提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图。FIG. 6 is a schematic flowchart of a method for controlling a Bluetooth module of a playback device in an audio and video playback system according to Embodiment 4 of the present invention.
图7是本发明实施例五提供的音视频播放系统中的播放设备的蓝牙模块控制装置的结构示意图。FIG. 7 is a schematic structural diagram of a bluetooth module control device of a playback device in an audio and video playback system according to Embodiment 5 of the present invention.
具体实施方式detailed description
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solution of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
实施例一Embodiment one
图1是本发明实施例一提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图,该方法可以由音视频播放系统中的播放设备的蓝牙模块控制装置执行,其中该装置可由软件和/或硬件实现,一般可集成在音视频播放系统中的播放设备中。如图1所示,该方法包括:Fig. 1 is a schematic flow chart of the Bluetooth module control method of the playback device in the audio and video playback system provided by Embodiment 1 of the present invention, the method can be executed by the Bluetooth module control device of the playback device in the audio and video playback system, wherein the device can be controlled by Software and/or hardware implementation, generally can be integrated in the playback device in the audio and video playback system. As shown in Figure 1, the method includes:
步骤101、获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息。Step 101: Obtain the Bluetooth signal strength information of the audio source device whose Bluetooth module is turned on obtained by scanning the playback device in the audio and video playback system.
本发明实施例中的播放设备可以用于播放音乐及录音等音视频文件,具体可以为音箱等设备。音源设备是可以输出音频和/或视频数据的设备。The playback device in the embodiment of the present invention can be used to play audio and video files such as music and recording, and can specifically be a speaker and other devices. A source device is a device that can output audio and/or video data.
图2是本发明实施例一提供的音视频播放系统中的播放设备的结构示意图。如图2所示,一个播放设备可以包括以下几个主要功能模块:处理器201、蓝牙模块202、网络接口203、音视频放大模块204、扬声器205和储存器206。其中,处理器201是播放设备的核心,执行控制程序,与周边各功能模块通信,协调和控制各个功能模块的工作;蓝牙模块202用于实现蓝牙通信,使播放设备可以通过蓝牙技术与同样具备蓝牙功能的设备(例如控制终端(如智能手机等智能终端)和音源设备(如MP3等电子终端))建立连接,获取控制数据或音视频数据,蓝牙模块202可将获取得到的控制数据和音视频数据传输给处理器201,也可将处理器201传输过来的控制数据和音视频数据发送给其它蓝牙设备;网络接口203可以是有线网络接口,也可以是符合802.11规范的无线网络接口,处理器201通过网络接口203可以连接到互联网,获取网络流媒体音视频数据,通过网络接口203,特别是无线网络的形式,多个播放设备可以组成一个无线音视频播放系统,实现音视频的同步播放,各个智能终端也可通过如无线保真(WirelessFidelity,WIFI)方式连接入音视频播放系统,对音视频播放系统及音视频播放系统内的播放设备进行操作控制;音视频放大模块204用于将处理器发送过来的模拟音视频信号进行功率放大,以驱动扬声器发声;扬声器205为声音还原部件,其数量可以是一个,也可以是多个;储存器206用于存储处理器201执行的程序,以及音视频播放系统的配置数据(如网络连接数据、音量信息、分组信息以及播放的音视频文件列表等)。FIG. 2 is a schematic structural diagram of a playback device in the audio and video playback system provided by Embodiment 1 of the present invention. As shown in FIG. 2 , a playback device may include the following main functional modules: processor 201 , Bluetooth module 202 , network interface 203 , audio and video amplification module 204 , speaker 205 and storage 206 . Among them, the processor 201 is the core of the playback device, executes the control program, communicates with the surrounding functional modules, coordinates and controls the work of each functional module; the Bluetooth module 202 is used to realize Bluetooth communication, so that the playback device can communicate with the same Bluetooth-enabled devices (such as control terminals (such as smart phones and other smart terminals) and audio devices (such as MP3 and other electronic terminals)) establish a connection to obtain control data or audio and video data, and the Bluetooth module 202 can transfer the acquired control data and audio and video The data is transmitted to the processor 201, and the control data and audio and video data transmitted by the processor 201 can also be sent to other bluetooth devices; the network interface 203 can be a wired network interface, or a wireless network interface that meets the 802.11 specification, and the processor 201 Through the network interface 203, you can connect to the Internet to obtain network streaming audio and video data. Through the network interface 203, especially in the form of a wireless network, multiple playback devices can form a wireless audio and video playback system to realize synchronous playback of audio and video. The smart terminal can also be connected to the audio and video playback system through wireless fidelity (Wireless Fidelity, WIFI), to operate and control the audio and video playback system and the playback equipment in the audio and video playback system; the audio and video amplification module 204 is used to use the processor The analog audio and video signal sent is amplified to drive the speaker to sound; the speaker 205 is a sound restoration component, and its quantity can be one or more; the memory 206 is used to store the program executed by the processor 201, and the audio Configuration data of the video playback system (such as network connection data, volume information, grouping information, and list of audio and video files to be played, etc.).
一个音视频播放系统通常由多个播放器组成,这些播放设备可以通过无线方式自组成一个私有网络,例如可使用无线网格(mesh)网络技术组成私有网络,各个播放设备可以通过该私有网络交换控制数据和音视频数据。其中,一般至少有一个播放设备连接到路由器,该播放设备可以经路由器访问互联网和局域网,并从互联网和局域网获取音视频数据,一般称该播放设备为音视频播放系统的主设备,称其它播放设备为从设备。主设备是音视频播放系统与外界网络连接的桥梁,也是整个音视频播放系统的控制核心。一方面,通过主设备,音视频播放系统可以访问互联网和局域网,可以从互联网和局域网获取音视频数据或音视频文件用于播放;另一方面,控制终端在通过WIFI方式连接到音视频播放系统时,实际上是连接到音视频播放系统的主设备,主设备接收来自控制终端的控制命令,协调和控制整个音视频播放系统的工作,并将音视频播放系统和各个播放设备的状态信息返回给控制终端。主设备与音视频播放系统内的其它从设备通过私有网络交换控制命令和状态信息,主设备通过这些控制命令和状态信息可以实现多台播放设备的同步播放。An audio and video playback system usually consists of multiple players. These playback devices can form a private network wirelessly. For example, a wireless mesh (mesh) network technology can be used to form a private network. Control data and audio and video data. Among them, generally at least one playback device is connected to the router, and the playback device can access the Internet and local area network through the router, and obtain audio and video data from the Internet and local area network. The device is a slave device. The main device is the bridge between the audio and video playback system and the external network, and also the control core of the entire audio and video playback system. On the one hand, through the main device, the audio and video playback system can access the Internet and local area network, and can obtain audio and video data or audio and video files from the Internet and local area network for playback; on the other hand, the control terminal is connected to the audio and video playback system through WIFI , it is actually the main device connected to the audio and video playback system, the main device receives control commands from the control terminal, coordinates and controls the work of the entire audio and video playback system, and returns the status information of the audio and video playback system and each playback device to the controlling terminal. The master device exchanges control commands and status information with other slave devices in the audio and video playback system through a private network, and the master device can realize synchronous playback of multiple playback devices through these control commands and status information.
音视频播放系统内的播放设备可以组成若干个播放组,每个播放组分别播放不同的音乐。如一个音视频播放系统中有A、B、C、D、E、F共6台播放设备,其中,播放设备A和B组成一个播放组1,播放设备C和D组成一个播放组2,播放设备E和F组成一个播放组3。播放组1中的A和B同步播放相同的歌曲,播放组2中的C和D同步播放相同的歌曲,播放组3中的E和F同步播放相同的歌曲,但播放组1、播放组2和播放组3是相互独立的,他们可以播放相同的歌曲,也可以分别播放不同的歌曲。各个播放组可以接受不同控制终端的控制,也可以接受相同控制终端的控制。The playback devices in the audio and video playback system can form several playback groups, and each playback group plays different music respectively. For example, there are 6 playback devices A, B, C, D, E, and F in an audio and video playback system. Among them, playback devices A and B form a playback group 1, and playback devices C and D form a playback group 2. Devices E and F form a playback group 3 . A and B in play group 1 play the same song synchronously, C and D in play group 2 play the same song synchronously, E and F in play group 3 play the same song synchronously, but play group 1, play group 2 Play group 3 is independent of each other, they can play the same song or play different songs respectively. Each playback group can accept the control of different control terminals, and can also accept the control of the same control terminal.
图3A是本发明实施例一提供的音视频播放系统的组网的一种实现方式的结构示意图。如图3A所示,该音视频播放系统中包含了四个播放设备(此处仅作为示意性说明,本实施例对播放设备的具体数目不作限定),其中,主设备301通过有线方式与路由器302进行通信,从设备303、从设备304、从设备305以及主设备301通过组建私有网络(如mesh网络)进行通信。智能终端306(也可称为控制终端)中可装载用于控制音视频播放系统的专用应用软件,并通过WIFI方式连接路由器302,从而可以访问和控制音视频播放系统的私有网络内的播放设备。用户在智能终端306上选择想要播放的歌曲,智能终端306会把这首歌曲的信息(如歌曲名、歌曲存放在的网络音乐服务器和统一资源定位符URL)发送给主设备301,主设备301根据这些歌曲信息,连接到网络音乐服务器,下载歌曲的音视频数据(此时,智能终端306亦作为音源设备来使用)。主设备301解码上述下载的音视频数据用于自身播放外,还可将解码后的音视频数据发送给私有网络内的从设备303、从设备304和从设备305,使四台播放设备同步播放同一首歌曲。FIG. 3A is a schematic structural diagram of an implementation manner of networking of an audio and video playback system provided by Embodiment 1 of the present invention. As shown in Figure 3A, the audio and video playback system includes four playback devices (here is only used as a schematic illustration, and this embodiment does not limit the specific number of playback devices), wherein the main device 301 communicates with the router in a wired manner 302 communicates, and the slave device 303, slave device 304, slave device 305, and master device 301 communicate by establishing a private network (such as a mesh network). The intelligent terminal 306 (also called the control terminal) can be loaded with special application software for controlling the audio and video playback system, and connected to the router 302 through WIFI, so as to access and control the playback equipment in the private network of the audio and video playback system . The user selects the song that wants to play on the intelligent terminal 306, and the intelligent terminal 306 can send the information of this song (such as the network music server and the uniform resource locator URL that song title, song deposits) to main equipment 301, and main equipment 301 connects to the network music server according to these song information, and downloads the audio and video data of the song (at this moment, the intelligent terminal 306 is also used as a sound source device). The master device 301 decodes the downloaded audio and video data for its own playback, and can also send the decoded audio and video data to the slave device 303, slave device 304 and slave device 305 in the private network, so that the four playback devices can play synchronously the same song.
图3B是本发明实施例一提供的音视频播放系统的组网的另一种实现方式的结构示意图。如图3B和图3A所示,与图3A相比,图3B的不同之处主要在于,主设备301与路由器302建立无线连接。FIG. 3B is a schematic structural diagram of another implementation manner of networking of the audio and video playback system provided by Embodiment 1 of the present invention. As shown in FIG. 3B and FIG. 3A , compared with FIG. 3A , the main difference of FIG. 3B is that the main device 301 establishes a wireless connection with the router 302 .
智能终端具体可为智能手机、平板电脑以及笔记本电脑等终端,可通过WIFI方式与音视频播放系统的私有网络建立连接。例如,通过WIFI与音视频播放系统中的主设备所连接的路由器进行连接;也可通过蓝牙与多媒体播放系统中的任意一个播放设备建立连接。例如,用户将自己的智能手机与音视频播放系统内的一台播放设备的蓝牙模块进行配对连接,并设置音视频播放系统内的多台播放设备(如3台播放设备)共同播放音乐,当用户打开智能手机上的QQ音乐并播放歌曲时,上述音视频播放系统内的多台播放设备将同步播放QQ音乐上被选择播放的歌曲。Specifically, the smart terminal can be a smart phone, a tablet computer, a notebook computer and other terminals, and can establish a connection with the private network of the audio and video playback system through WIFI. For example, connect to the router connected to the main device in the audio and video playback system through WIFI; or establish a connection with any playback device in the multimedia playback system through Bluetooth. For example, the user pairs and connects his smart phone with the Bluetooth module of a playback device in the audio and video playback system, and sets multiple playback devices (such as 3 playback devices) in the audio and video playback system to play music together. When the user turns on QQ Music on the smart phone and plays songs, multiple playback devices in the above-mentioned audio and video playback system will simultaneously play the selected songs on QQ Music.
本发明实施例一中所述的音视频播放系统中的播放设备的蓝牙模块控制装置可集成在主设备中,也可集成在从设备中,优选为集成在主设备中。本步骤中获取操作的执行主体(又可称为执行端)为音视频播放系统中集成有播放设备的蓝牙模块控制装置的播放设备,该执行端可以是主设备,也可以是从设备(即:可以是音视频播放系统中的任意一个播放设备)。The Bluetooth module control device of the playback device in the audio and video playback system described in Embodiment 1 of the present invention can be integrated in the master device or in the slave device, preferably integrated in the master device. In this step, the execution subject (also referred to as the execution end) of the acquisition operation is the playback device integrated with the Bluetooth module control device of the playback device in the audio and video playback system, and the execution end can be a master device or a slave device (i.e. : It can be any playback device in the audio and video playback system).
音视频播放系统中的至少一个播放设备(可称为扫描设备)周期性地扫描周边的蓝牙设备,当扫描到蓝牙模块处于开启状态的音源设备后,执行端获取蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息。At least one playback device (which can be called a scanning device) in the audio and video playback system periodically scans the surrounding Bluetooth devices. After scanning the audio source device with the Bluetooth module turned on, the execution end obtains the sound source device with the Bluetooth module turned on. Bluetooth signal strength information.
上述扫描设备可以包含执行端,也可以不包含执行端,当包含执行端时,获取的操作可以具体为:执行端直接获取自身扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息;当不包含执行端时,获取的操作可以具体为:上述扫描设备将各自扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息直接发送给执行端,执行端接收上述蓝牙信号强度信息,或者,上述扫描设备广播各自扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息,执行端获取扫描设备广播的蓝牙信号强度信息。The above-mentioned scanning device may or may not include an execution end. When the execution end is included, the obtained operation may be specifically: the execution end directly obtains the Bluetooth signal strength information of the sound source device whose Bluetooth module is turned on that is scanned by itself; When the execution end is not included, the obtained operation can be specifically: the above-mentioned scanning devices directly send the Bluetooth signal strength information of the sound source device whose Bluetooth module is in the open state obtained by scanning to the execution end, and the execution end receives the above-mentioned Bluetooth signal strength information, Alternatively, the above-mentioned scanning devices broadcast the Bluetooth signal strength information of the sound source devices whose Bluetooth modules are turned on, and the execution end obtains the Bluetooth signal strength information broadcast by the scanning devices.
音源设备具体可为智能手机、平板电脑、笔记本电脑以及MP3等终端。本步骤中扫描得到的音源设备的数量可以是一个,也可以是多个。Specifically, the sound source device may be a terminal such as a smart phone, a tablet computer, a notebook computer, and an MP3 player. The number of audio source devices scanned in this step can be one or more.
可以理解的是,上述扫描设备想要对蓝牙模块处于开启状态的音源设备进行扫描,则:上述扫描设备的蓝牙模块处于开启状态。另外,音视频播放系统中除上述扫描设备之外剩余的各个播放设备的蓝牙模块处于开启状态还是处于关闭状态对本发明实施例一均适用,在此不做限定。优选地,音视频播放系统中除上述扫描设备之外剩余的各个播放设备的蓝牙模块处于关闭状态,能够降低音视频播放系统的功耗。It can be understood that, if the scanning device wants to scan the audio source device whose Bluetooth module is turned on, then: the Bluetooth module of the scanning device is turned on. In addition, whether the Bluetooth modules of the remaining playback devices in the audio and video playback system except the scanning device are turned on or turned off is applicable to Embodiment 1 of the present invention, and is not limited here. Preferably, the bluetooth modules of the remaining playback devices in the audio and video playback system except the scanning device are turned off, which can reduce the power consumption of the audio and video playback system.
步骤102、根据获取到的音源设备的蓝牙信号强度信息控制音视频播放系统中的播放设备的蓝牙模块的工作状态。Step 102: Control the working state of the Bluetooth module of the playback device in the audio and video playback system according to the acquired Bluetooth signal strength information of the audio source device.
其中,工作状态包括开启状态和关闭状态。即:根据获取到的音源设备的蓝牙信号强度信息控制音视频播放系统中的播放设备的蓝牙模块处于开启状态或者关闭状态。Wherein, the working state includes an on state and an off state. That is: according to the acquired Bluetooth signal strength information of the audio source device, the Bluetooth module of the playback device in the audio and video playback system is controlled to be on or off.
假设音视频播放系统包括播放设备1、播放设备2和播放设备3,其中,播放设备1和播放设备2扫描到音源设备,播放设备3未扫描到音源设备,可以控制播放设备1和播放设备2中的任意一个的蓝牙模块的工作状态处于开启状态,以与扫描到的音源设备建立蓝牙连接;控制播放设备3的蓝牙模块的工作状态处于开启状态,以与后续音源设备建立蓝牙连接。Assuming that the audio and video playback system includes playback device 1, playback device 2 and playback device 3, where playback device 1 and playback device 2 scan to the audio source device, playback device 3 does not scan the audio source device, playback device 1 and playback device 2 can be controlled The working state of the bluetooth module of any one of them is in open state, to establish bluetooth connection with the sound source equipment scanned;
执行端在根据获取到的音源设备的蓝牙信号强度信息确定了控制哪些播放设备的蓝牙模块的工作状态处于开启状态后,可确定控制剩余的播放设备的蓝牙模块的工作状态处于关闭状态,以节省音视频播放系统的功耗。蓝牙模块处于开启状态的播放设备可以与音源设备建立连接,音源设备可以将音视频数据传输给蓝牙模块处于开启状态的播放设备,以使音视频播放系统播放上述音视频数据对应的音视频文件。After the execution end determines which Bluetooth modules that control the playback devices are in the on state according to the obtained Bluetooth signal strength information of the audio source device, it can determine that the Bluetooth modules that control the remaining playback devices are in the off state to save Power consumption of the audio and video playback system. The playback device with the bluetooth module in the open state can establish a connection with the audio source device, and the audio source device can transmit audio and video data to the playback device with the bluetooth module in the open state, so that the audio and video playback system plays the audio and video files corresponding to the above audio and video data.
需要说明的是,蓝牙模块处于开启状态的播放设备的数量可以是一个,也可以是多个,优选为一个,能够降低音视频播放系统的功耗。蓝牙模块处于开启状态的播放设备可以包含执行端,也可以不包含执行端。It should be noted that the number of playback devices with the bluetooth module turned on can be one or more, preferably one, which can reduce the power consumption of the audio and video playback system. The playback device whose bluetooth module is turned on may include an execution end, or may not include an execution end.
但是,由于步骤101中扫描得到的音源设备的数量可以为多个,优选地,蓝牙模块处于开启状态的播放设备的数量与音源设备的数量相同。此种设置方式,能够实现音源设备和蓝牙模块处于开启状态的播放设备的一一对应,便于音视频播放系统与扫描到的所有的音源设备均建立蓝牙连接。However, since the number of sound source devices scanned in step 101 may be multiple, preferably, the number of playback devices whose Bluetooth modules are turned on is the same as the number of sound source devices. This setting method can realize the one-to-one correspondence between the audio source device and the playback device with the Bluetooth module turned on, which facilitates the establishment of Bluetooth connections between the audio and video playback system and all scanned audio source devices.
音视频播放系统中的播放设备建立私有网络后,任意两个播放设备之间可以进行通信,以传送数据信息。在确定了每个播放设备的蓝牙模块的工作状态之后,控制播放设备的蓝牙模块的工作状态可以具体为:执行端直接控制自身的蓝牙模块的工作状态,并同时向剩余的播放设备发送相应的蓝牙模块工作状态控制指令,剩余的播放设备接收到蓝牙模块工作状态控制指令后,将各自的蓝牙模块的工作状态调为蓝牙模块工作状态控制指令对应的工作状态。After the playback device in the audio and video playback system establishes a private network, any two playback devices can communicate with each other to transmit data information. After determining the working state of the bluetooth module of each playback device, controlling the working state of the bluetooth module of the playing device can be specifically: the execution end directly controls the working state of its own bluetooth module, and at the same time sends a corresponding message to the rest of the playing devices The bluetooth module working state control command, after the remaining playback devices receive the bluetooth module working state control command, adjust the working state of their respective bluetooth modules to the working state corresponding to the bluetooth module working state control command.
本发明实施例一提供的音视频播放系统中的播放设备的蓝牙模块控制方法,获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息后,根据获取到的音源设备的蓝牙信号强度信息控制播放设备的蓝牙模块的开启和关闭,实现了对音视频播放系统中的播放设备的蓝牙模块的工作状态的自动控制,可有效减少用户手动切换播放设备的蓝牙模块的工作状态的次数,提升用户体验。The Bluetooth module control method of the playback device in the audio and video playback system provided by Embodiment 1 of the present invention, after obtaining the Bluetooth signal strength information of the audio source device whose Bluetooth module is in the open state obtained by the playback device in the audio and video playback system through scanning, according to The acquired Bluetooth signal strength information of the audio source device controls the opening and closing of the Bluetooth module of the playback device, realizing the automatic control of the working status of the Bluetooth module of the playback device in the audio and video playback system, which can effectively reduce the user's manual switching of playback devices The number of working states of the bluetooth module improves user experience.
实施例二Embodiment two
图4是本发明实施例二提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图。本发明实施例二以上述实施例一为基础进行优化,在本发明实施例二中,将获取蓝牙强度信号信号的音源设备优化为连接记录列表中的音源设备。如图4所示,该方法包括:FIG. 4 is a schematic flowchart of a method for controlling a Bluetooth module of a playback device in an audio and video playback system according to Embodiment 2 of the present invention. Embodiment 2 of the present invention is optimized on the basis of Embodiment 1 above. In Embodiment 2 of the present invention, the audio source device that acquires the Bluetooth intensity signal is optimized as the audio source device in the connection record list. As shown in Figure 4, the method includes:
步骤401、周期性地扫描周边的蓝牙设备,得到蓝牙模块处于开启状态的蓝牙开启设备。Step 401 , periodically scan the surrounding Bluetooth devices, and obtain the Bluetooth-enabled devices whose Bluetooth modules are in the enabled state.
扫描设备周期性地扫描周边的蓝牙设备,得到蓝牙模块处于开启状态的蓝牙开启设备。其中,蓝牙开启设备为蓝牙模块处于开启状态的电子设备,蓝牙开启设备的数量可以是一个,也可以是多个。蓝牙开启设备可以包含音源设备,也可以不包含音源设备。The scanning device periodically scans the surrounding Bluetooth devices to obtain the Bluetooth enabled devices whose Bluetooth modules are in an open state. Wherein, the Bluetooth enabling device is an electronic device whose Bluetooth module is turned on, and the number of Bluetooth enabling devices may be one or multiple. A Bluetooth enabled device may or may not contain a sound source device.
步骤402、判断蓝牙开启设备是否为连接记录列表中的音源设备。Step 402, judging whether the Bluetooth enabled device is the audio source device in the connection record list.
如果是,则执行步骤403和步骤404;如果否,则执行步骤401。If yes, execute step 403 and step 404; if no, execute step 401.
执行端判断步骤401中扫描得到的蓝牙开启设备是否为自身存储的连接记录列表中的音源设备。该判断的过程可以具体为:将蓝牙开启设备的信息与连接记录列表中的音源设备的信息进行匹配,如果匹配成功,则蓝牙开启设备是连接记录列表中的音源设备;如果匹配不成功,则蓝牙开启设备不是连接记录列表中的音源设备。The execution end judges whether the Bluetooth enabled device scanned in step 401 is the sound source device in the connection record list stored by itself. The process of this judgment can be specifically: match the information of the Bluetooth enabled device with the information of the audio source device in the connection record list, if the match is successful, then the Bluetooth enabled device is the audio source device in the connection record list; if the match is unsuccessful, then The Bluetooth-enabled device is not a source device in the connection history list.
如果有至少一个蓝牙开启设备是连接记录列表中的音源设备,则执行步骤403和步骤404。如果所有的蓝牙开启设备都不是连接记录列表中的音源设备,则执行步骤401、继续周期性地扫描周边的蓝牙设备。If at least one Bluetooth enabled device is the audio source device in the connection record list, then step 403 and step 404 are performed. If all the bluetooth-enabled devices are not the sound source devices in the connection record list, then step 401 is performed to continue to periodically scan the surrounding bluetooth devices.
连接记录列表可以只存储在执行端,也可以存储在音视频播放系统中的每个播放设备中。连接记录列表可以包括预设时间段内音视频播放系统中的每个播放设备连接的音源设备的信息。音源设备的信息可以包括名称和物理地址等信息。The connection record list can be stored only at the execution end, or can be stored in each playback device in the audio and video playback system. The connection record list may include information about the audio source device connected to each playback device in the audio and video playback system within a preset time period. The information of the audio source device may include information such as name and physical address.
连接记录列表的生成过程可以具体为:音视频播放系统中除任意一个播放设备(该任意一个播放设备可以是执行端,也可以不是执行端,优选为执行端)之外剩余的播放设备将已经连接过的音源设备的信息发送至上述任意一个播放设备,上述任意一个播放设备根据接收到的剩余的播放设备发送的音源设备的信息以及自身连接过的音源设备的信息生成连接记录列表,并发送给需要存储该连接记录列表的播放设备。The generation process of the connection record list can be specifically: in the audio and video playback system, except any playback device (this arbitrary playback device can be the execution end, or not the execution end, preferably the execution end), the remaining playback devices will have been The information of the connected audio source device is sent to any one of the above playback devices, and any one of the above playback devices generates a connection record list based on the received information of the audio source device sent by the remaining playback devices and the information of the audio source device connected to itself, and sends For the playback device that needs to store the connection record list.
步骤403、获取音源设备的蓝牙信号强度信息。Step 403, acquiring the Bluetooth signal strength information of the audio source device.
此处的音源设备既是步骤401中扫描到的蓝牙开启设备,又是自身存储的连接记录列表中的音源设备。The audio source device here is not only the Bluetooth enabled device scanned in step 401, but also the audio source device in the connection record list stored by itself.
经步骤401、步骤402和步骤403实现了获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态、并且包含在存储的连接记录列表中的音源设备的蓝牙信号强度信息。Through step 401, step 402 and step 403, the Bluetooth signal strength information of the audio source device whose Bluetooth module is turned on and included in the stored connection record list obtained by scanning the playback device in the audio and video playback system is realized.
步骤404、根据获取到的音源设备的蓝牙信号强度信息控制音视频播放系统中的播放设备的蓝牙模块的工作状态。Step 404: Control the working state of the Bluetooth module of the playback device in the audio and video playback system according to the acquired Bluetooth signal strength information of the audio source device.
由于获取到的蓝牙信号强度信息对应的音源设备为连接记录列表中的音源设备,假如连接记录列表中存储有播放设备和音源设备建立连接的连接信息,当控制播放设备的蓝牙模块的工作状态处于开启状态后,播放设备能够自动和音源设备建立蓝牙连接。Since the audio source device corresponding to the obtained Bluetooth signal strength information is the audio source device in the connection record list, if the connection information for establishing a connection between the playback device and the audio source device is stored in the connection record list, when the working state of the Bluetooth module controlling the playback device is in After it is turned on, the playback device can automatically establish a Bluetooth connection with the audio source device.
在本实施例二中未详尽描述的内容可参见上述实施例一,在此不再赘述。For details not described in detail in the second embodiment, reference may be made to the first embodiment above, and details are not repeated here.
实施例三Embodiment three
图5是本发明实施例三提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图。本发明实施例三以上述实施例一或实施例二为基础进行优化,在本发明实施例三中,将根据获取到的音源设备的蓝牙信号强度信息进行控制优化为:根据预设规则和获取到的音源设备的蓝牙信号强度信息进行控制。如图5所示,该方法包括:FIG. 5 is a schematic flowchart of a method for controlling a Bluetooth module of a playback device in an audio and video playback system according to Embodiment 3 of the present invention. Embodiment 3 of the present invention is optimized on the basis of Embodiment 1 or Embodiment 2 above. In Embodiment 3 of the present invention, the control optimization based on the obtained Bluetooth signal strength information of the audio source device is as follows: according to the preset rules and the obtained Control the Bluetooth signal strength information of the received audio device. As shown in Figure 5, the method includes:
步骤501、获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息。Step 501: Obtain the bluetooth signal strength information of the sound source device whose bluetooth module is turned on, which is obtained by scanning the playing device in the audio and video playing system.
步骤502、根据预设规则和获取到的音源设备的蓝牙信号强度信息确定目标播放设备。Step 502: Determine the target playback device according to the preset rules and the acquired Bluetooth signal strength information of the sound source device.
执行端不仅仅根据获取到的音源设备的蓝牙信号强度信息来确定目标播放设备,同时还根据预设规则来确定目标播放设备。The execution end not only determines the target playback device based on the acquired Bluetooth signal strength information of the audio source device, but also determines the target playback device according to preset rules.
预设规则可以是音视频播放系统默认的规则,也可以是通过用户自行设置的。用户自行设置预设规则可以具体为:用户通过控制终端设置预设规则。The preset rules can be the default rules of the audio and video playback system, or can be set by the user. The setting of the preset rules by the user may be specifically: the user sets the preset rules through the control terminal.
目标播放设备的数量可以是一个,也可以是多个。The number of target playback devices can be one or more.
步骤503、控制目标播放设备的蓝牙模块处于开启状态,并控制音视频播放系统中的剩余播放设备的蓝牙模块处于关闭状态。Step 503, control the Bluetooth module of the target playback device to be in the on state, and control the Bluetooth modules of the remaining playback devices in the audio and video playback system to be in the off state.
控制目标播放设备的蓝牙模块处于开启状态,目标播放设备可以与音源设备建立蓝牙连接;控制音视频播放系统中的剩余播放设备的蓝牙模块处于关闭状态,能够降低音视频播放系统的功耗。The Bluetooth module controlling the target playback device is in an open state, and the target playback device can establish a Bluetooth connection with the audio source device; the Bluetooth module controlling the remaining playback devices in the audio and video playback system is in an off state, which can reduce the power consumption of the audio and video playback system.
本实施例三中未详尽描述的内容可参见上述实施例一和实施例二,在此不再赘述。For details not described in detail in the third embodiment, reference may be made to the first and second embodiments above, and details are not repeated here.
实施例四Embodiment Four
图6是本发明实施例四提供的音视频播放系统中的播放设备的蓝牙模块控制方法的流程示意图。本发明实施例四以上述实施例三为基础进行优化,在本发明实施例四中,将目标播放设备优化为:确定扫描到同一音源设备的播放设备中、得到的该同一音源设备的蓝牙信号强度值满足预设条件的播放设备。如图6所示,该方法包括:FIG. 6 is a schematic flowchart of a method for controlling a Bluetooth module of a playback device in an audio and video playback system according to Embodiment 4 of the present invention. Embodiment 4 of the present invention is optimized on the basis of Embodiment 3 above. In Embodiment 4 of the present invention, the target playback device is optimized to: determine the bluetooth signal of the same audio source device that is scanned into the playback device of the same audio source device The playback device whose intensity value meets the preset condition. As shown in Figure 6, the method includes:
步骤601、获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息。Step 601: Obtain the Bluetooth signal strength information of the audio source device whose Bluetooth module is turned on, which is obtained by scanning the playback device in the audio and video playback system.
步骤602、根据获取到的音源设备的蓝牙信号强度信息,确定扫描到同一音源设备的播放设备中、得到的该同一音源设备的蓝牙信号强度值满足预设条件的播放设备为目标播放设备。Step 602: According to the acquired Bluetooth signal strength information of the sound source device, determine the playback device scanned to the same sound source device and whose Bluetooth signal strength value of the same sound source device meets the preset condition as the target playback device.
目标播放设备即为需要控制蓝牙模块处于开启状态的播放设备。The target playback device is the playback device that needs to control the Bluetooth module to be turned on.
假设扫描到的音源设备有两个:音源设备A和音源设备B。音视频播放系统中的播放设备1、播放设备2和播放设备3扫描到音源设备A;音视频播放系统中的播放设备1、播放设备4和播放设备5扫描到音源设备B。Suppose there are two scanned audio devices: audio device A and audio device B. The playback device 1, playback device 2 and playback device 3 in the audio and video playback system scan to the audio source device A; the playback device 1, the playback device 4 and the playback device 5 in the audio and video playback system scan to the audio source device B.
假设播放设备2得到的音源设备A的蓝牙信号强度值满足预设条件;假设播放设备5得到的音源设备B的蓝牙信号强度值满足预设条件,则确定播放设备2和播放设备5为目标播放设备。Assuming that the Bluetooth signal strength value of audio source device A obtained by playback device 2 meets the preset conditions; assuming that the Bluetooth signal strength value of audio source device B obtained by playback device 5 meets the preset conditions, then it is determined that playback device 2 and playback device 5 are the target playback equipment.
假设播放设备1得到的音源设备A和音源设备B的蓝牙信号强度值均满足预设条件,则:确定播放设备1为目标播放设备。另:如实施例一中提到的“音源设备的数量与蓝牙模块的工作状态处于开启状态的播放设备的数量相同”,此时,音源设备的数量为2,蓝牙模块的工作状态处于开启状态的播放设备的数量为1,为了使得音源设备的数量与蓝牙模块的工作状态处于开启状态的播放设备的数量相同,需要确定另一个目标播放设备,此处确定另一个目标播放设备可以具体确定满足另一预设条件的播放设备为另一个目标播放设备。Assuming that the bluetooth signal strength values of the audio source device A and the audio source device B obtained by the playback device 1 all meet the preset conditions, then: determine the playback device 1 as the target playback device. In addition: as mentioned in the first embodiment "the number of sound source devices is the same as the number of playback devices whose working state of the Bluetooth module is in the open state", at this time, the number of sound source devices is 2, and the working state of the Bluetooth module is in the open state The number of playback devices is 1. In order to make the number of audio source devices the same as the number of playback devices whose working status of the Bluetooth module is turned on, another target playback device needs to be determined. Here, determining another target playback device can be specifically determined to meet the The playback device of another preset condition is another target playback device.
预设条件可以包括:蓝牙信号强度值为最大值。下面以上述音视频播放系统为例来说明预设条件包括蓝牙信号强度值为最大值时的目标播放设备的确定过程。The preset condition may include: the Bluetooth signal strength value is the maximum value. The following takes the above-mentioned audio and video playback system as an example to illustrate the process of determining the target playback device when the preset condition includes the maximum value of the Bluetooth signal strength.
假设播放设备2得到的音源设备A的蓝牙信号强度值为播放设备1、播放设备2和播放设备3分别得到的音源设备A的蓝牙信号强度值中的最大值;假设播放设备5得到的音源设备B的蓝牙信号强度值为播放设备1、播放设备4和播放设备5分别得到的音源设备B的蓝牙信号强度值中的最大值,则确定播放设备2和播放设备5为目标播放设备。Assume that the Bluetooth signal strength value of audio source device A obtained by playback device 2 is the maximum value among the Bluetooth signal strength values of audio source device A obtained by playback device 1, playback device 2, and playback device 3 respectively; assume that the audio source device obtained by playback device 5 The bluetooth signal strength value of B is the maximum value among the bluetooth signal strength values of the sound source device B obtained by playback device 1, playback device 4 and playback device 5 respectively, then it is determined that playback device 2 and playback device 5 are target playback devices.
假设播放设备1得到的音源设备A和音源设备B的蓝牙信号强度值分别为播放设备1、播放设备2和播放设备3分别得到的音源设备A的蓝牙信号强度值中和播放设备1、播放设备4和播放设备5分别得到的音源设备B的蓝牙信号强度值中的最大值,则:确定播放设备1为目标播放设备。另:为了使得音源设备的数量与蓝牙模块的工作状态处于开启状态的播放设备的数量相同,可选择播放设备2和播放设备3分别得到的音源设备A的蓝牙信号强度值和播放设备4和播放设备5分别得到的音源设备B的蓝牙信号强度值中的最大值对应的播放设备为另一目标播放设备。Assume that the Bluetooth signal strength values of audio source device A and audio source device B obtained by playback device 1 are the bluetooth signal strength values of audio source device A obtained by playback device 1, playback device 2, and playback device 3, respectively, and that of playback device 1, playback device 4 and the playback device 5 respectively obtain the maximum value of the Bluetooth signal strength values of the sound source device B, then: determine the playback device 1 as the target playback device. Another: In order to make the number of audio source devices the same as the number of playback devices whose working state of the Bluetooth module is turned on, you can select the Bluetooth signal strength value of the audio source device A obtained by playback device 2 and playback device 3 and playback device 4 and playback The playback device corresponding to the maximum value among the Bluetooth signal strength values of the sound source device B respectively obtained by device 5 is another target playback device.
步骤603、控制目标播放设备的蓝牙模块处于开启状态,并控制音视频播放系统中的剩余播放设备的蓝牙模块处于关闭状态。Step 603, control the Bluetooth module of the target playback device to be in the on state, and control the Bluetooth modules of the remaining playback devices in the audio and video playback system to be in the off state.
确定蓝牙信号强度值中的最大值,并控制播放设备的蓝牙模块的工作状态可以具体为:播放设备中剩余的播放设备向任意一个播放设备发送各自得到的蓝牙信号强度值,任意一个播放设备根据接收到剩余的播放设备发送的各自得到的蓝牙信号强度值以及自身得到的蓝牙信号强度值,确定蓝牙信号强度值中的最大值,并确定各个播放设备的蓝牙模块的工作状态,控制自身的蓝牙模块的工作状态,并向剩余的播放设备发送蓝牙模块的工作状态控制指令,剩余的播放设备在接收到蓝牙模块的工作状态控制指令后,根据蓝牙模块的工作状态控制指令将各自的蓝牙模块的工作状态调为蓝牙模块的工作状态控制指令对应的蓝牙模块的工作状态。Determine the maximum value in the bluetooth signal strength value, and control the working state of the bluetooth module of the playback device can be specifically: the remaining playback devices in the playback device send the bluetooth signal strength values obtained respectively to any playback device, and any playback device according to Receive the Bluetooth signal strength values obtained by the remaining playback devices and the Bluetooth signal strength values obtained by themselves, determine the maximum value of the Bluetooth signal strength values, and determine the working status of the Bluetooth modules of each playback device, and control their own Bluetooth. The working state of the module, and send the working state control command of the Bluetooth module to the remaining playback devices. After receiving the working state control command of the Bluetooth module, the rest of the The working state is adjusted to the working state of the Bluetooth module corresponding to the working state control instruction of the Bluetooth module.
确定蓝牙信号强度值中的最大值,并控制播放设备的工作状态还可以具体为:每个播放设备广播各自得到的蓝牙信号强度值,每个播放设备根据获取的剩余的播放设备广播的各自得到的蓝牙信号强度值以及自身得到的蓝牙信号强度值,确定自身的蓝牙模块的工作状态,并控制自身的蓝牙模块的工作状态为所需的工作状态。Determining the maximum value of the Bluetooth signal strength value, and controlling the working state of the playback device can also be specifically: each playback device broadcasts the Bluetooth signal strength value obtained separately, and each playback device obtains each according to the acquired remaining playback device broadcasts. The bluetooth signal strength value and the bluetooth signal strength value obtained by itself, determine the working state of its own bluetooth module, and control the working state of its own bluetooth module to the required working state.
本实施例四中未详尽描述的内容可参见上述实施例三,在此不再赘述。For details not described in detail in the fourth embodiment, reference may be made to the third embodiment above, and details are not repeated here.
实施例五Embodiment five
图7是本发明实施例五提供的音视频播放系统中的播放设备的蓝牙模块控制装置的结构示意图。该装置可由软件和/或硬件实现,一般可集成在音视频播放系统中的播放设备中,可通过执行音视频播放系统中的播放设备的蓝牙模块控制方法来对播放设备的蓝牙模块工作状态进行控制。如图7所示,该装置包括:获取模块701和控制模块702。FIG. 7 is a schematic structural diagram of a bluetooth module control device of a playback device in an audio and video playback system according to Embodiment 5 of the present invention. The device can be realized by software and/or hardware, and generally can be integrated in a playback device in an audio and video playback system, and the Bluetooth module working state of the playback device can be checked by executing the Bluetooth module control method of the playback device in the audio and video playback system control. As shown in FIG. 7 , the device includes: an acquisition module 701 and a control module 702 .
其中,获取模块701,用于获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息;控制模块702,用于根据获取到的音源设备的蓝牙信号强度信息控制音视频播放系统中的播放设备的蓝牙模块的工作状态,工作状态包括开启状态和关闭状态。Wherein, the obtaining module 701 is used to obtain the Bluetooth signal strength information of the sound source device whose Bluetooth module is in the open state obtained by the playback device in the audio and video playback system through scanning; the control module 702 is used to obtain the Bluetooth signal of the sound source device according to The intensity information controls the working state of the bluetooth module of the playback device in the audio and video playing system, and the working state includes an on state and an off state.
本发明实施例五提供的音视频播放系统中的播放设备的蓝牙模块控制装置,获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息后,根据获取到的音源设备的蓝牙信号强度信息控制播放设备的蓝牙模块的开启和关闭,实现了对音视频播放系统中的播放设备的蓝牙模块的工作状态的自动控制,可有效减少用户手动切换播放设备的蓝牙模块的工作状态的次数,提升用户体验。Embodiment 5 of the present invention provides the bluetooth module control device of the playback device in the audio and video playback system. The acquired Bluetooth signal strength information of the audio source device controls the opening and closing of the Bluetooth module of the playback device, realizing the automatic control of the working status of the Bluetooth module of the playback device in the audio and video playback system, which can effectively reduce the user's manual switching of playback devices The number of working states of the bluetooth module improves user experience.
在上述方案的基础之上,获取模块701可以包括:获取单元,用于获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态、并且包含在存储的连接记录列表中的音源设备的蓝牙信号强度信息。On the basis of the above solution, the acquisition module 701 may include: an acquisition unit, which is used to acquire the audio source equipment whose bluetooth module is in the open state and is included in the stored connection record list obtained by scanning the playback device in the audio and video playback system Bluetooth signal strength information.
在上述方案的基础之上,连接记录列表包括预设时间段内音视频播放系统中的每个播放设备连接的音源设备的信息。On the basis of the above solution, the connection record list includes the information of the audio source device connected to each playback device in the audio and video playback system within a preset time period.
在上述方案的基础之上,控制模块702可以包括:确定单元和控制单元。On the basis of the above solutions, the control module 702 may include: a determination unit and a control unit.
其中,确定单元,用于根据预设规则和获取到的音源设备的蓝牙信号强度信息确定目标播放设备;控制单元,用于控制目标播放设备的蓝牙模块处于开启状态,并控制音视频播放系统中的剩余播放设备的蓝牙模块处于关闭状态。Wherein, the determination unit is used to determine the target playback device according to the preset rules and the obtained Bluetooth signal strength information of the audio source device; the control unit is used to control the Bluetooth module of the target playback device to be in the open state, and to control the audio and video playback system. The Bluetooth module of the rest of the playback devices is turned off.
在上述方案的基础之上,确定单元可以包括:确定子单元,用于根据获取到的音源设备的蓝牙信号强度信息,确定扫描到同一音源设备的播放设备中、得到的该同一音源设备的蓝牙信号强度值满足预设条件的播放设备为目标播放设备。On the basis of the above solution, the determining unit may include: a determining subunit, configured to determine the Bluetooth signal of the same sound source device scanned into the playback device of the same sound source device and obtained according to the acquired Bluetooth signal strength information of the sound source device. The playback device whose signal strength value satisfies the preset condition is the target playback device.
在上述方案的基础之上,预设条件可以包括:蓝牙信号强度值为最大值。On the basis of the above solution, the preset condition may include: the Bluetooth signal strength value is the maximum value.
在上述方案的基础之上,音源设备的数量与蓝牙模块的工作状态处于开启状态的播放设备的数量相同。On the basis of the above solution, the number of audio source devices is the same as the number of playback devices whose working status of the Bluetooth module is turned on.
实施例六Embodiment six
本发明实施例六提供一种音视频播放系统,该系统包括至少两个播放设备,其中,至少两个播放设备中的至少一个播放设备中集成有本发明实施例五所述的音视频播放系统中的播放设备的蓝牙模块控制装置。Embodiment 6 of the present invention provides an audio and video playback system, the system includes at least two playback devices, wherein at least one of the at least two playback devices is integrated with the audio and video playback system described in Embodiment 5 of the present invention The Bluetooth module control device in the playback device.
本发明实施例六提供的音视频播放系统,获取音视频播放系统中的播放设备通过扫描得到的蓝牙模块处于开启状态的音源设备的蓝牙信号强度信息后,根据获取到的音源设备的蓝牙信号强度信息控制播放设备的蓝牙模块的开启和关闭,实现了对音视频播放系统中的播放设备的蓝牙模块的工作状态的自动控制,可有效减少用户手动切换播放设备的蓝牙模块的工作状态的次数,提升用户体验。In the audio and video playback system provided in Embodiment 6 of the present invention, after obtaining the Bluetooth signal strength information of the audio source device whose Bluetooth module is in the open state obtained by scanning the playback device in the audio and video playback system, according to the obtained Bluetooth signal strength of the audio source device The information controls the opening and closing of the bluetooth module of the playback device, realizes the automatic control of the working state of the bluetooth module of the playback device in the audio and video playback system, and can effectively reduce the number of times the user manually switches the working state of the bluetooth module of the playback device. Improve user experience.
上述实施例五提供的音视频播放系统中的播放设备的蓝牙模块控制装置以及上述实施例六提供的音视频播放系统可执行本发明实施例一至实施例四任一实施例所提供的音视频播放系统中的播放设备的蓝牙模块控制方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例五和实施例六中详尽描述的技术细节,可参见本发明实施例一至实施例四所提供的音视频播放系统中的播放设备的蓝牙模块控制方法。The Bluetooth module control device of the playback device in the audio and video playback system provided in the fifth embodiment and the audio and video playback system provided in the sixth embodiment can perform the audio and video playback provided by any one of the first to fourth embodiments of the present invention. The bluetooth module control method of the playback device in the system has corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the fifth and sixth embodiments above, please refer to the Bluetooth module control method of the playback device in the audio and video playback system provided by the first to fourth embodiments of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610165508.6A CN105812903A (en) | 2016-03-22 | 2016-03-22 | Bluetooth module control method and device of playback device, and audio and video playback system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610165508.6A CN105812903A (en) | 2016-03-22 | 2016-03-22 | Bluetooth module control method and device of playback device, and audio and video playback system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105812903A true CN105812903A (en) | 2016-07-27 |
Family
ID=56453668
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610165508.6A Pending CN105812903A (en) | 2016-03-22 | 2016-03-22 | Bluetooth module control method and device of playback device, and audio and video playback system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105812903A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111050198A (en) * | 2019-11-19 | 2020-04-21 | 青岛海信电器股份有限公司 | Display device and switching method of Bluetooth audio device |
| CN114363811A (en) * | 2019-12-30 | 2022-04-15 | 联想(北京)有限公司 | Information processing method and device and multimedia equipment |
| EP4615003A4 (en) * | 2023-04-11 | 2026-01-14 | Samsung Electronics Co Ltd | METHOD FOR OUTPUTTING AN AUDIO SIGNAL AND ELECTRONIC DEVICE FOR IMPLEMENTING THEM |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104468971A (en) * | 2014-10-30 | 2015-03-25 | 小米科技有限责任公司 | Method and device for connecting playing source |
| CN104575539A (en) * | 2014-12-29 | 2015-04-29 | 广东欧珀移动通信有限公司 | Music playing control method and device |
| CN104620639A (en) * | 2012-08-29 | 2015-05-13 | 三菱电机株式会社 | Communication apparatus and network connection method |
| CN105142010A (en) * | 2015-07-30 | 2015-12-09 | 广东欧珀移动通信有限公司 | Bluetooth connection selection method of multi-play device and main play device |
| CN105187900A (en) * | 2015-07-30 | 2015-12-23 | 广东欧珀移动通信有限公司 | A wireless connection control method and playback device for a playback system |
-
2016
- 2016-03-22 CN CN201610165508.6A patent/CN105812903A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104620639A (en) * | 2012-08-29 | 2015-05-13 | 三菱电机株式会社 | Communication apparatus and network connection method |
| CN104468971A (en) * | 2014-10-30 | 2015-03-25 | 小米科技有限责任公司 | Method and device for connecting playing source |
| CN104575539A (en) * | 2014-12-29 | 2015-04-29 | 广东欧珀移动通信有限公司 | Music playing control method and device |
| CN105142010A (en) * | 2015-07-30 | 2015-12-09 | 广东欧珀移动通信有限公司 | Bluetooth connection selection method of multi-play device and main play device |
| CN105187900A (en) * | 2015-07-30 | 2015-12-23 | 广东欧珀移动通信有限公司 | A wireless connection control method and playback device for a playback system |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111050198A (en) * | 2019-11-19 | 2020-04-21 | 青岛海信电器股份有限公司 | Display device and switching method of Bluetooth audio device |
| CN114363811A (en) * | 2019-12-30 | 2022-04-15 | 联想(北京)有限公司 | Information processing method and device and multimedia equipment |
| CN114363811B (en) * | 2019-12-30 | 2023-01-06 | 联想(北京)有限公司 | Information processing method and device and multimedia equipment |
| EP4615003A4 (en) * | 2023-04-11 | 2026-01-14 | Samsung Electronics Co Ltd | METHOD FOR OUTPUTTING AN AUDIO SIGNAL AND ELECTRONIC DEVICE FOR IMPLEMENTING THEM |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10728647B2 (en) | Data transmitting method and system | |
| CN105139877B (en) | Connection method of multimedia playback equipment, main equipment, control terminal and system | |
| CN103518418B (en) | Method and device for connection between bluetooth devices | |
| CN105072482B (en) | A playback control method and device for a multimedia playback device | |
| CN107911871B (en) | Bluetooth connection control method and device, control equipment and storage medium | |
| CN105812906B (en) | A kind of communication control method and device of playback equipment | |
| CN105142010A (en) | Bluetooth connection selection method of multi-play device and main play device | |
| CN105703805B (en) | Bluetooth module control method, device and the audio-video frequency playing system of playback equipment | |
| CN105682011A (en) | Bluetooth module control method and device of playback device, and audio and video playback system | |
| WO2017035968A1 (en) | Audio playing method and apparatus for multiple playing devices | |
| CN104507005A (en) | Grouping control method and system of wireless loudspeaker box | |
| CN105848225A (en) | Wireless connection switching method and device applied to audio playing system | |
| CN105681886B (en) | Bluetooth connection control method, device and the playback equipment of playback equipment | |
| CN105703806B (en) | Bluetooth module control method, device and the audio-video frequency playing system of playback equipment | |
| CN105812905B (en) | Playing control method and device in audio and video playing system | |
| CN105812185A (en) | A communication connection method for a playback device | |
| CN105812903A (en) | Bluetooth module control method and device of playback device, and audio and video playback system | |
| CN105828253B (en) | Wireless connection control method and device in audio frequency broadcast system | |
| CN107071655B (en) | Method and device for configuring stereo output, audio playing equipment and mobile terminal | |
| CN105656520B (en) | Bluetooth module control method, device and the audio-video frequency playing system of playback equipment | |
| CN105703987B (en) | Audio and video playing system control method and device | |
| CN105680914B (en) | Bluetooth module control method, device and the audio-video frequency playing system of playback equipment | |
| CN106506646A (en) | Playing device control method, device, mobile terminal and playing system | |
| CN105682010B (en) | Bluetooth connection control method and device in audio playing system and playing equipment | |
| CN105812904B (en) | The bluetooth module control method and audio-video frequency playing system of playback equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160727 |
|
| RJ01 | Rejection of invention patent application after publication |