WO2022089088A1 - Display device, mobile terminal, screen-casting data transmission method, and transmission system - Google Patents

Display device, mobile terminal, screen-casting data transmission method, and transmission system Download PDF

Info

Publication number
WO2022089088A1
WO2022089088A1 PCT/CN2021/119051 CN2021119051W WO2022089088A1 WO 2022089088 A1 WO2022089088 A1 WO 2022089088A1 CN 2021119051 W CN2021119051 W CN 2021119051W WO 2022089088 A1 WO2022089088 A1 WO 2022089088A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
display device
screen
application
casting
Prior art date
Application number
PCT/CN2021/119051
Other languages
French (fr)
Chinese (zh)
Inventor
马晓燕
宋子全
张敬坤
肖成创
庞秀娟
程志
郑鹏
Original Assignee
海信视像科技股份有限公司
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
Priority claimed from CN202011163037.8A external-priority patent/CN112367543B/en
Priority claimed from CN202011517483.4A external-priority patent/CN114286165B/en
Priority claimed from CN202110175799.8A external-priority patent/CN112954419B/en
Application filed by 海信视像科技股份有限公司 filed Critical 海信视像科技股份有限公司
Publication of WO2022089088A1 publication Critical patent/WO2022089088A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • 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)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

Disclosed in some embodiments of the present application are a display device, a mobile terminal, a screen-casting data transmission method, and a transmission system. In practical applications, a display device can receive a screen-casting connection request sent by a mobile terminal, and after the screen-casting connection request is obtained, the type of screen-casting applications is detected, so that when the type of screen-casting applications is a third-party application, the mobile terminal is connected by means of a Bluetooth module to receive an audio data stream in the mobile terminal. The display device can obtain an audio signal of the mobile terminal by means of Bluetooth connection when the third-party screen-casting application cannot acquire the audio data stream from the mobile terminal, and synchronously play the audio signal.

Description

显示设备、移动终端、投屏数据传输方法及传输系统Display device, mobile terminal, screen projection data transmission method and transmission system
本申请要求于2020年10月27日提交的、申请号为202011163037.8;于2020年12月21日提交的、申请号为202011517483.4;于2021年2月9日提交的、申请号为202110175799.8的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires a Chinese patent filed on October 27, 2020 with application number 202011163037.8; filed on December 21, 2020 with application number 202011517483.4; and filed on February 9, 2021 with application number 202110175799.8 priority to the application, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及显示设备技术,具体而言,涉及显示设备、移动终端、投屏数据传输方法及传输系统。The present application relates to display device technology, and in particular, to a display device, a mobile terminal, a screen projection data transmission method, and a transmission system.
背景技术Background technique
智能电视等显示设备可以通过连接手机等移动终端,采用投屏方式以展示移动终端中的内容。例如,DLNA(英文全称)推送是将手机上的多媒体以URL的形式推送到智能电视上进行播放,不支持镜像投屏;AirPlay屏幕镜像适用于iOS和Mac系统的无线投屏;Miracast多屏互动适用于Android系统的无线投屏;WiDi投屏适用于Windows系统的无线投屏。这三种投屏方式都需要保证投屏设备为同一厂商或者拥有同一特定版本的操作系统,才能够完成投屏。为了实现非同一厂商或非相同操作系统的手机与智能电视之间进行投屏,通常采用APP投屏软件完成。其中,APP投屏软件是通过在手机安装投屏软件客户端,将屏幕镜像推送到智能电视上进行播放。但投屏软件客户端通常没有音频数据的获取权限,导致通过APP投屏软件完成的投屏过程只能传递视频数据,不能传递音频数据,降低用户体验。Display devices such as smart TVs can be connected to mobile terminals such as mobile phones to display the content in the mobile terminal by using a screen projection method. For example, DLNA (full name in English) pushes the multimedia on the mobile phone to the smart TV in the form of URL for playback, and does not support mirror projection; AirPlay screen mirroring is suitable for wireless projection of iOS and Mac systems; Miracast multi-screen interaction It is suitable for wireless screen projection of Android system; WiDi screen is suitable for wireless screen projection of Windows system. All three screencasting methods need to ensure that the screencasting device is of the same manufacturer or has the same specific version of the operating system to complete the screencasting. In order to realize screen projection between mobile phones and smart TVs of different manufacturers or different operating systems, APP screen projection software is usually used. Among them, the APP screen mirroring software is to install the screen mirroring software client on the mobile phone, and push the screen image to the smart TV for playback. However, the screencasting software client usually does not have access to audio data, so the screencasting process completed by the APP screencasting software can only transmit video data, but not audio data, which reduces the user experience.
发明内容SUMMARY OF THE INVENTION
本申请一些实施例提供一种显示设备,包括显示器、通信器、蓝牙模块以及控制器。其中,所述显示器用于显示用户界面以及显示投屏视频画面;通信器被配置为与移动终端建立投屏连接;蓝牙模块被配置为传递音频数据流。控制器被配置为执行以下程序步骤:接收移动终端发送的投屏连接请求;响应于所述投屏连接请求,检测投屏应用类型;如果所述投屏应用类型为第三方应用,通过所述蓝牙模块连接所述移动终端,以获取音频数据流。Some embodiments of the present application provide a display device including a display, a communicator, a Bluetooth module, and a controller. Wherein, the display is used to display a user interface and a screen-cast video image; the communicator is configured to establish a screen-cast connection with the mobile terminal; and the Bluetooth module is configured to transmit an audio data stream. The controller is configured to perform the following program steps: receiving a screen-casting connection request sent by the mobile terminal; in response to the screen-casting connection request, detecting a screen-casting application type; if the screen-casting application type is a third-party application, through the screen-casting application type The bluetooth module is connected to the mobile terminal to obtain the audio data stream.
本申请一些实施例还提供一种移动终端,包括:显示单元、通信单元、蓝牙电路以及处理器。其中,所述显示单元被配置为显示用户界面以执行用户交互;通信单元被配置为与显示设备建立投屏连接;蓝牙电路被配置为传输音频数据流。处理器被配置为执行以下程序步骤:获取用户输入的用于建立投屏连接的控制指令;应于所述控制指令,通过所述通信单元向所述显示设备发送投屏连接请求;检测投屏应用类型;如果所述投屏应用类型为第三方应用,通过蓝牙电路连接所述显示设备,以发送音频数据流。Some embodiments of the present application further provide a mobile terminal, including: a display unit, a communication unit, a Bluetooth circuit, and a processor. The display unit is configured to display a user interface to perform user interaction; the communication unit is configured to establish a screen projection connection with the display device; and the Bluetooth circuit is configured to transmit audio data streams. The processor is configured to execute the following program steps: obtaining a control instruction input by a user for establishing a screen-casting connection; sending a screen-casting connection request to the display device through the communication unit in response to the control instruction; detecting screen-casting Application type; if the screen projection application type is a third-party application, connect the display device through a Bluetooth circuit to send an audio data stream.
本申请一些实施例还提供一种投屏数据传输方法,应用于投屏数据传输系统,所述投屏数据传输系统包括移动终端和显示设备,所述方法包括:移动终端获取用户输入的用于建立投屏连接的控制指令,以及根据所述控制指令向显示设备发送投屏连接 请求;显示设备接收所述投屏连接请求;以及根据所述投屏连接请求与所述移动终端建立投屏连接;移动终端和/或显示设备检测投屏应用类型;如果所述投屏应用类型为第三方应用,在所述移动终端与所述显示设备之间建立蓝牙连接,以传递音频数据流。Some embodiments of the present application further provide a screen projection data transmission method, which is applied to a screen projection data transmission system, where the screen projection data transmission system includes a mobile terminal and a display device, and the method includes: the mobile terminal obtains a user input for A control instruction for establishing a screencasting connection, and sending a screencasting connection request to the display device according to the control instruction; the display device receives the screencasting connection request; and establishing a screencasting connection with the mobile terminal according to the screencasting connection request ; The mobile terminal and/or the display device detect the screencasting application type; if the screencasting application type is a third-party application, establish a Bluetooth connection between the mobile terminal and the display device to transmit audio data streams.
本申请一些实施例提供一种投屏数据传输系统,包括移动终端和显示设备;其中,所述移动终端内置通信单元和蓝牙电路;所述显示设备内置通信器和蓝牙模块;所述移动终端被配置为:获取用户输入的用于建立投屏连接的控制指令,以及根据所述控制指令向显示设备发送投屏连接请求;所述显示设备被配置为:接收所述投屏连接请求;以及根据所述投屏连接请求与所述移动终端建立投屏连接;所述移动终端和/或所述显示设备还被配置为:检测投屏应用类型;如果所述投屏应用类型为第三方应用,在所述移动终端与所述显示设备之间建立蓝牙连接,以传递音频数据流。Some embodiments of the present application provide a screen projection data transmission system, including a mobile terminal and a display device; wherein the mobile terminal has a built-in communication unit and a Bluetooth circuit; the display device has a built-in communicator and a Bluetooth module; the mobile terminal is is configured to: obtain a control instruction input by the user for establishing a screen-casting connection, and send a screen-casting connection request to a display device according to the control instruction; the display device is configured to: receive the screen-casting connection request; and according to the control instruction The screen-casting connection request establishes a screen-casting connection with the mobile terminal; the mobile terminal and/or the display device are further configured to: detect a screen-casting application type; if the screen-casting application type is a third-party application, A Bluetooth connection is established between the mobile terminal and the display device to transfer audio data streams.
本申请一些实施例提供一种显示设备,包括:接收模块,用于接收传输指令;驱动模块,用于根据所述传输指令确定显示设备所处的传输模式;其中,所述传输模式为网络传输为主的模式或投屏传输为主的模式;所述网络传输和所述投屏传输均通过所述显示设备中的同一无线通讯模块进行数据传输;还用于根据所述显示设备所处的传输模式确定传输时长调整指令并将所述传输时长调整指令发送至无线通讯固件;显示屏,用于显示所述网络传输和/或所述投屏传输的内容。在一些实施例中,本申请实施例提供一种显示设备,包括:Some embodiments of the present application provide a display device, including: a receiving module for receiving a transmission instruction; a driving module for determining a transmission mode in which the display device is located according to the transmission instruction; wherein the transmission mode is network transmission The main mode or the screen-casting transmission-based mode; the network transmission and the screen-casting transmission both perform data transmission through the same wireless communication module in the display device; The transmission mode determines the transmission duration adjustment instruction and sends the transmission duration adjustment instruction to the wireless communication firmware; the display screen is used to display the content of the network transmission and/or the screen projection transmission. In some embodiments, the embodiments of the present application provide a display device, comprising:
本申请一些实施例提供一种显示设备,包括显示屏,用于显示图像;与所述显示屏连接的控制器,所述控制器被配置为:接收移动终端广播的设备搜索消息;向所述移动终端发送基于所述设备搜索消息生成的反馈消息,所述反馈消息中包括所述显示设备的投屏匹配码与设备地址;接收所述移动终端发送的投屏连接请求,并根据所述投屏连接请求与所述移动终端建立投屏连接,所述投屏连接请求为所述移动终端的投屏匹配码与所述显示设备的投屏匹配码相同时,所述移动终端根据所述显示设备的设备地址生成的。Some embodiments of the present application provide a display device, including a display screen for displaying images; a controller connected to the display screen, the controller being configured to: receive a device search message broadcast by a mobile terminal; The mobile terminal sends a feedback message generated based on the device search message, where the feedback message includes the screencasting matching code and device address of the display device; receives the screencasting connection request sent by the mobile terminal, and sends the screencasting connection request according to the A screen connection request establishes a screen-casting connection with the mobile terminal. When the screen-casting connection request is that the screen-casting matching code of the mobile terminal is the same as the screen-casting matching code of the display device, the mobile terminal will perform screencasting according to the display The device address of the device is generated.
本申请一些实施例提供一种移动终端,包括:近场通信(Near Field Communication,简称NFC)响应组件,用于对满足预设距离的NFC卡进行响应;与所述NFC响应组件连接的控制器,所述控制器被配置为:当所述NFC响应组件响应于NFC卡时,在所述移动终端当前接入的局域网内广播设备搜索消息;接收显示设备基于所述设备搜索消息发送的反馈消息,所述反馈消息中包括所述显示设备的投屏匹配码与设备地址;获取所述移动终端的投屏匹配码,当所述移动终端的投屏匹配码与所述显示设备的投屏匹配码相同时,根据所述设备地址与所述显示设备建立投屏连接。Some embodiments of the present application provide a mobile terminal, including: a near field communication (Near Field Communication, NFC for short) response component for responding to an NFC card that meets a preset distance; a controller connected to the NFC response component , the controller is configured to: when the NFC response component responds to the NFC card, broadcast a device search message in the local area network currently accessed by the mobile terminal; receive a feedback message sent by the display device based on the device search message , the feedback message includes the screencasting matching code and device address of the display device; obtain the screencasting matching code of the mobile terminal, when the screencasting matching code of the mobile terminal matches the screencasting of the display device When the codes are the same, a screen-casting connection is established with the display device according to the device address.
附图说明Description of drawings
图1为根据本申请一个或多个实施例的显示设备的使用场景的示意图;1 is a schematic diagram of a usage scenario of a display device according to one or more embodiments of the present application;
图2为根据本申请一个或多个实施例中显示设备200的硬件配置框图;FIG. 2 is a block diagram of a hardware configuration of a display device 200 according to one or more embodiments of the present application;
图3为根据本申请一个或多个实施例的显示设备200中软件配置示意图;FIG. 3 is a schematic diagram of software configuration in a display device 200 according to one or more embodiments of the present application;
图4为根据本申请一个或多个实施例的显示设备200中应用程序的图标控件界面显示示意图;FIG. 4 is a schematic diagram of displaying an icon control interface of an application in a display device 200 according to one or more embodiments of the present application;
图5为根据本申请一个或多个实施例的移动终端300的结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal 300 according to one or more embodiments of the present application;
图6为根据本申请一个或多个实施例的移动终端300的软件结构框图;6 is a block diagram of a software structure of a mobile terminal 300 according to one or more embodiments of the present application;
图7为根据本申请一个或多个实施例的移动终端的用户界面示意图;7 is a schematic diagram of a user interface of a mobile terminal according to one or more embodiments of the present application;
图8a-8c为根据本申请一个或多个实施例的投屏交互示意图;8a-8c are schematic diagrams of screen projection interaction according to one or more embodiments of the present application;
图9a-9b为根据本申请一个或多个实施例的音频传输示意图;9a-9b are schematic diagrams of audio transmission according to one or more embodiments of the present application;
图10为根据本申请一个或多个实施例的判断应用类型的流程示意图;10 is a schematic flowchart of judging an application type according to one or more embodiments of the present application;
图11a-11b为根据本申请一个或多个实施例的蓝牙连接示意图;11a-11b are schematic diagrams of Bluetooth connections according to one or more embodiments of the present application;
图12a-12b为根据本申请一个或多个实施例的投屏连接示意图;12a-12b are schematic diagrams of screen projection connections according to one or more embodiments of the present application;
图13为根据本申请一个或多个实施例的显示设备同步流程示意图;FIG. 13 is a schematic diagram of a synchronization flowchart of a display device according to one or more embodiments of the present application;
图14为根据本申请一个或多个实施例的显示设备投屏连接结构示意图;14 is a schematic diagram of a screen projection connection structure of a display device according to one or more embodiments of the present application;
图15为根据本申请一个或多个实施例的移动终端投屏连接结构示意图;FIG. 15 is a schematic diagram of a screen projection connection structure of a mobile terminal according to one or more embodiments of the present application;
图16a-图16b为根据本申请一个或多个实施例的建立投屏连接的场景示意图一;16a-16b are schematic diagrams of a first scenario of establishing a screen projection connection according to one or more embodiments of the present application;
图17为根据本申请一个或多个实施例的移动终端在播放视频时的一种显示界面示意图;17 is a schematic diagram of a display interface of a mobile terminal when playing a video according to one or more embodiments of the present application;
图18为根据本申请一个或多个实施例的建立投屏连接的场景示意图二;FIG. 18 is a second scenario diagram of establishing a screen projection connection according to one or more embodiments of the present application;
图19为根据本申请一个或多个实施例的建立投屏连接的场景示意图三;FIG. 19 is a third scenario diagram of establishing a screen projection connection according to one or more embodiments of the present application;
图20为根据本申请一个或多个实施例的设置显示设备的投屏匹配码的场景示意图;20 is a schematic diagram of a scenario of setting a screen projection matching code of a display device according to one or more embodiments of the present application;
图21为根据本申请一个或多个实施例的设置移动终端的投屏匹配码的场景示意图;21 is a schematic diagram of a scenario of setting a screencasting matching code of a mobile terminal according to one or more embodiments of the present application;
图22为根据本申请一个或多个实施例的提供的一种建立投屏连接的方法的流程示意图;22 is a schematic flowchart of a method for establishing a screen projection connection according to one or more embodiments of the present application;
图23为根据本申请一个或多个实施例的一种视频流的帧序列示意图;23 is a schematic diagram of a frame sequence of a video stream according to one or more embodiments of the present application;
图24为根据本申请一个或多个实施例的提供的一种防止投屏过程中出现花屏的方法的流程示意图;FIG. 24 is a schematic flowchart of a method for preventing a blurry screen from appearing in a screen projection process provided according to one or more embodiments of the present application;
图25为根据本申请一个或多个实施例的一种可能的P2P的设备发现流程;25 is a possible P2P device discovery process according to one or more embodiments of the present application;
图26为根据本申请一个或多个实施例的在以网络传输为主的模式中一种时长的调整流程;26 is a process for adjusting a duration in a network transmission-based mode according to one or more embodiments of the present application;
图27为根据本申请一个或多个实施例的在以投屏传输为主的模式中一种时长的调整流程;FIG. 27 is a process for adjusting a duration in a mode based on screen projection transmission according to one or more embodiments of the present application;
图28为根据本申请一个或多个实施例的一种可能的P2P的设备发现流程。FIG. 28 is a possible P2P device discovery process according to one or more embodiments of the present application.
具体实施方式Detailed ways
为使本申请的目的、实施方式和优点更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,所描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。In order to make the objectives, implementations and advantages of the present application clearer, the exemplary embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the exemplary embodiments of the present application. Obviously, the exemplary embodiments described It is only a part of the embodiments of the present application, but not all of the embodiments.
基于本申请描述的示例性实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请所附权利要求保护的范围。此外,虽然本申请中公开内容按照示范性一个或几个实例来介绍,但应理解,可以就这些公开内容的各个方面也可以单独构成一个完整实施方式。需要说明的是,本申请中对于术语的简要说明,仅是为了方便理解接下来描述的实施方式,而不是意图限定本申请的实施方式。除非另有说明,这些术语应当按照其普通和通常的含义理解。Based on the exemplary embodiments described in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the appended claims of this application. Furthermore, although the disclosures in this application have been presented in terms of illustrative example or instances, it should be understood that various aspects of this disclosure may also constitute a complete embodiment in isolation. It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the embodiments described below, rather than intended to limit the embodiments of the present application. Unless otherwise specified, these terms are to be understood according to their ordinary and ordinary meanings.
图1为根据本申请一个或多个实施例的显示设备的使用场景的示意图。如图1所 示,显示设备200还与服务器400进行数据通信,用户可通过移动终端300或控制装置100操作显示设备200。在一些实施例中,控制装置100可以是遥控器,遥控器和显示设备的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式中的至少一种,通过无线或有线方式来控制显示设备200。在一些实施例中,移动终端300可以包括手机、平板电脑、计算机、笔记本电脑,AR/VR设备等中的任意一种。也可以使用移动终端300和显示设备进行数据的通信。在一些实施例中,显示设备200还可以采用除了控制装置100和移动终端300之外的方式进行控制;显示设备200还与服务器400进行数据通信。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。服务器400可以向显示设备200提供各种内容和互动。服务器400可以是一个集群,也可以是多个集群,可以包括一类或多类服务器。FIG. 1 is a schematic diagram of a usage scenario of a display device according to one or more embodiments of the present application. As shown in FIG. 1 , the display device 200 also performs data communication with the server 400, and the user can operate the display device 200 through the mobile terminal 300 or the control device 100. In some embodiments, the control device 100 may be a remote control, and the communication between the remote control and the display device includes at least one of infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display is controlled wirelessly or wiredly. device 200. In some embodiments, the mobile terminal 300 may include any one of a mobile phone, a tablet computer, a computer, a notebook computer, an AR/VR device, and the like. Communication of data may also be performed using the mobile terminal 300 and the display device. In some embodiments, the display device 200 may also be controlled in a manner other than the control apparatus 100 and the mobile terminal 300 ; the display device 200 also performs data communication with the server 400 . The display device 200 may be allowed to communicate via local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display device 200 . The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
图2为根据本申请一个或多个实施例中显示设备200的硬件配置框图。如图2所示显示设备200包括调谐解调器210、通信器220、检测器230、外部装置接口240、控制器250、显示器260、音频输出接口270、存储器、供电电源、用户接口280中的至少一种。控制器包括中央处理器,视频处理器,音频处理器,图形处理器,RAM,ROM,用于输入/输出的第一接口至第n接口。显示器260可为液晶显示器、OLED显示器、触控显示器以及投影显示器中的至少一种,还可以为一种投影装置和投影屏幕。调谐解调器210通过有线或无线接收方式接收广播电视信号,以及从多个无线或有线广播电视信号中解调出音视频信号,如以及EPG数据信号。检测器230用于采集外部环境或与外部交互的信号。控制器250和调谐解调器210可以位于不同的分体设备中,即调谐解调器210也可在控制器250所在的主体设备的外置设备中,如外置机顶盒等。FIG. 2 is a block diagram of a hardware configuration of a display device 200 according to one or more embodiments of the present application. As shown in FIG. 2, the display device 200 includes a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. at least one. The controller includes a central processing unit, a video processing unit, an audio processing unit, a graphics processing unit, a RAM, a ROM, and a first interface to an nth interface for input/output. The display 260 may be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and may also be a projection device and a projection screen. The tuner-demodulator 210 receives broadcast television signals through wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals. The detector 230 is used to collect external environment or external interaction signals. The controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
在一些实施例中,控制器250,通过存储在存储器上中各种软件控制程序,来控制显示设备的工作和响应用户的操作。控制器250控制显示设备200的整体操作。用户可在显示器260上显示的图形用户界面(GUI)输入用户命令,则用户输入接口通过图形用户界面(GUI)接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户输入接口通过传感器识别出声音或手势,来接收用户输入命令。In some embodiments, the controller 250, through various software control programs stored on the memory, controls the operation of the display device and responds to user operations. The controller 250 controls the overall operation of the display apparatus 200 . A user may input a user command on a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.
在一些实施例中,“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(Graphic User Interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素中的至少一种。In some embodiments, a "user interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, which enables conversion between an internal form of information and a form acceptable to the user. The commonly used form of user interface is Graphical User Interface (GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, wherein the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. at least one of the visual interface elements.
图3为根据本申请一个或多个实施例的显示设备200中软件配置示意图,如图3所示,将系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),安卓运行时(Android runtime)和系统库层(简称“系统运行库层”),以及内核层。内核层至少包含以下驱动中的至少一种:音频驱动、显示驱动、蓝牙驱动、摄像头驱动、WIFI驱动、USB驱动、HDMI驱动、传感器驱动(如指纹传感器,温度传感器,压力传感器等)、以及电源驱动等。FIG. 3 is a schematic diagram of software configuration in the display device 200 according to one or more embodiments of the present application. As shown in FIG. 3 , the system is divided into four layers. Layer"), the Application Framework layer (referred to as the "framework layer"), the Android runtime (Android runtime) and the system library layer (referred to as the "system runtime layer"), and the kernel layer. The kernel layer contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply drive etc.
图4为根据本申请一个或多个实施例的显示设备200中应用程序的图标控件界面显示示意图,如图4中所示,应用程序层包含至少一个应用程序可以在显示器中显示对应的图标控件,如:直播电视应用程序图标控件、视频点播应用程序图标控件、媒体中心应用程 序图标控件、应用程序中心图标控件、游戏应用图标控件等。直播电视应用程序,可以通过不同的信号源提供直播电视。视频点播应用程序,可以提供来自不同存储源的视频。不同于直播电视应用程序,视频点播提供来自某些存储源的视频显示。媒体中心应用程序,可以提供各种多媒体内容播放的应用程序。应用程序中心,可以提供储存各种应用程序。。FIG. 4 is a schematic diagram showing an icon control interface of an application program in a display device 200 according to one or more embodiments of the present application. As shown in FIG. 4 , the application program layer includes at least one application program that can display a corresponding icon control on the display. , such as: live TV application icon control, video on demand application icon control, media center application icon control, application center icon control, game application icon control, etc. Live TV app that can provide live TV from different sources. Video-on-demand application that can provide video from different storage sources. Unlike live TV applications, video-on-demand provides a display of video from certain storage sources. A media center application that can provide a variety of multimedia content playback applications. The application center can provide storage of various applications. .
图5为根据本申请一个或多个实施例的移动终端300的结构示意图。下面以移动终端300为例对实施例进行具体说明。应该理解的是,图5所示移动终端300仅是一个范例,并且移动终端300可以具有比图5中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。如图5所示,移动终端300包括:射频(radio frequency,RF)电路310、存储器320、显示单元330、摄像头340、传感器350、音频电路360、无线保真(Wireless Fidelity,Wi-Fi)电路370、处理器380、蓝牙电路381、以及电源390等部件。FIG. 5 is a schematic structural diagram of a mobile terminal 300 according to one or more embodiments of the present application. The embodiment will be described in detail below by taking the mobile terminal 300 as an example. It should be understood that the mobile terminal 300 shown in FIG. 5 is only an example, and the mobile terminal 300 may have more or less components than those shown in FIG. 5, two or more components may be combined, or Different component configurations are possible. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits. As shown in FIG. 5 , the mobile terminal 300 includes: a radio frequency (RF) circuit 310, a memory 320, a display unit 330, a camera 340, a sensor 350, an audio circuit 360, and a Wireless Fidelity (Wi-Fi) circuit 370, the processor 380, the Bluetooth circuit 381, and the power supply 390 and other components.
RF电路310可用于在收发信息或通话过程中信号的接收和发送,可以接收基站的下行数据后交给处理器380处理;可以将上行数据发送给基站。存储器320可用于存储软件程序及数据。处理器380通过运行存储在存储器320的软件程序或数据,从而执行移动终端300的各种功能以及数据处理。显示单元330可用于接收输入的数字或字符信息,产生与移动终端300的用户设置以及功能控制有关的信号输入。显示单元330还可用于显示由用户输入的信息或提供给用户的信息以及移动终端300的各种菜单的图形用户界面(graphical user interface,GUI)。摄像头340可用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给处理器380转换成数字图像信号。移动终端300还可以包括至少一种传感器350。音频电路360、扬声器361、麦克风362可提供用户与移动终端300之间的音频接口。处理器380是移动终端300的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器320内的软件程序,以及调用存储在存储器320内的数据,执行移动终端300的各种功能和处理数据。在一些实施例中,处理器380可包括一个或多个处理单元;蓝牙电路381,用于通过蓝牙协议来与其他具有蓝牙电路的蓝牙设备进行信息交互。移动终端300还包括给各个部件供电的电源390(比如电池)。电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电以及功耗等功能。移动终端300还可配置有电源按钮,用于终端的开机和关机,以及锁屏等功能。The RF circuit 310 can be used for receiving and sending signals during sending and receiving information or during a call, can receive downlink data from the base station and then hand it over to the processor 380 for processing; and can send uplink data to the base station. Memory 320 may be used to store software programs and data. The processor 380 executes various functions and data processing of the mobile terminal 300 by running software programs or data stored in the memory 320 . The display unit 330 may be configured to receive input numerical or character information, and generate signal input related to user settings and function control of the mobile terminal 300 . The display unit 330 may also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the mobile terminal 300. Camera 340 may be used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the processor 380 for conversion into a digital image signal. The mobile terminal 300 may also include at least one sensor 350 . The audio circuit 360 , the speaker 361 , and the microphone 362 may provide an audio interface between the user and the mobile terminal 300 . The processor 380 is the control center of the mobile terminal 300, uses various interfaces and lines to connect various parts of the entire terminal, and executes the mobile terminal by running or executing the software programs stored in the memory 320 and calling the data stored in the memory 320. 300 various functions and processing data. In some embodiments, the processor 380 may include one or more processing units; the Bluetooth circuit 381 is used to exchange information with other Bluetooth devices having Bluetooth circuits through the Bluetooth protocol. The mobile terminal 300 also includes a power source 390 (eg, a battery) for powering the various components. The power supply can be logically connected to the processor 380 through a power management system, so that functions such as managing charging, discharging, and power consumption are implemented through the power management system. The mobile terminal 300 may also be configured with a power button, which is used to power on and off the terminal, and lock the screen and other functions.
图6为根据本申请一个或多个实施例的移动终端300的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。FIG. 6 is a block diagram of a software structure of a mobile terminal 300 according to one or more embodiments of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer. The application layer can include a series of application packages.
下面结合捕获拍照场景,示例性说明移动终端300软件以及硬件的工作流程。当触摸屏331接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在 内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头340捕获静态图像或视频。在一些具体实施中,图7为根据本申请一个或多个实施例的移动终端的用户界面示意图,如图7所示,用户通过触摸用户界面上的应用图标可以打开相应的应用程序,或者通过触摸用户界面上的文件夹图标可以打开相应的文件夹。The workflow of the software and hardware of the mobile terminal 300 is exemplarily described below in conjunction with the capturing and photographing scene. When the touch screen 331 receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Camera 340 captures still images or video. In some specific implementations, FIG. 7 is a schematic diagram of a user interface of a mobile terminal according to one or more embodiments of the present application. As shown in FIG. 7 , a user can open a corresponding application by touching an application icon on the user interface, or by touching an application icon on the user interface. Touch a folder icon on the user interface to open the corresponding folder.
基于上述显示设备200和移动终端300,可以通过建立投屏连接,使显示设备200播放显示移动终端300中的内容。图8a-8c为根据本申请一个或多个实施例的投屏交互示意图,如图8a所示。在一些实施例中,如图8b所示,为了建立投屏连接关系,用户可以通过移动终端300发出投屏连接请求,并通过WiFi网络将投屏连接请求发送给显示设备200。显示设备200再根据投屏连接请求完成传输协议配置,从而与移动终端300之间建立投屏数据的传输通道。Based on the above-mentioned display device 200 and the mobile terminal 300 , the display device 200 can play and display the content in the mobile terminal 300 by establishing a screen projection connection. 8a-8c are schematic diagrams of screen projection interaction according to one or more embodiments of the present application, as shown in FIG. 8a. In some embodiments, as shown in FIG. 8b , in order to establish a screen-casting connection relationship, the user may send a screen-casting connection request through the mobile terminal 300 , and send the screen-casting connection request to the display device 200 through a WiFi network. The display device 200 then completes the configuration of the transmission protocol according to the screen projection connection request, thereby establishing a transmission channel for the screen projection data with the mobile terminal 300 .
显示设备200还可以通过不同连接方式实现与移动终端300之间的投屏连接。例如,在显示设备200和移动终端300接入同一个无线局域网时,可以基于WiFi网络建立投屏连接。又例如,在显示设备200和移动终端300上均设有NFC(Near Field Communication,近场通信)组件时,可以通过NFC组件建立投屏连接关系。显然,显示设备200与移动终端300之间还可以采用其他有线或无线连接方式,从而建立投屏连接关系,例如RF射频连接、红外连接、蜂窝网络以及本领域技术人员在上述实施例提供的连接方式基础上所能够联想到的其他连接方式。The display device 200 can also realize the screen projection connection with the mobile terminal 300 through different connection manners. For example, when the display device 200 and the mobile terminal 300 access the same wireless local area network, a screen projection connection may be established based on a WiFi network. For another example, when both the display device 200 and the mobile terminal 300 are provided with an NFC (Near Field Communication, near field communication) component, a screen projection connection relationship can be established through the NFC component. Obviously, other wired or wireless connection methods may also be used between the display device 200 and the mobile terminal 300 to establish a screen projection connection relationship, such as RF radio frequency connection, infrared connection, cellular network, and connections provided by those skilled in the art in the above embodiments Other connection methods that can be thought of on the basis of the method.
在建立投屏连接后,显示设备200可以通过投屏数据通道接收移动终端300的相关数据,从而在显示设备200中播放相关内容。在不同的投屏数据传输协议下,显示设备200获取的投屏数据形式不同。例如,在DLNA(Digital Living Network Alliance,数字生活网络联盟)协议下,显示设备200可以通过投屏数据通道获取移动终端300中某一资源的链接地址,并通过访问该链接地址获取媒资内容数据,从而播放该媒资数据。同时显示设备200还可以在播放媒资数据时,通过投屏数据通道获取移动终端300发送的控制指令,如快进、暂停、停止投屏等。例如,通过通讯协议建立好连接后,手机等移动终端300与显示设备200会进行设备功能与网络条件的协商,以选择适合的影音传输格式。建立影音串流的联机协议(Session)后,再通过一连串的实时串流协议(RTSP)控制命令,以控制影音串流的播放及终止。After the screen projection connection is established, the display device 200 can receive the relevant data of the mobile terminal 300 through the screen projection data channel, so as to play the relevant content in the display device 200 . Under different screen projection data transmission protocols, the screen projection data acquired by the display device 200 is in different forms. For example, under the DLNA (Digital Living Network Alliance) protocol, the display device 200 can obtain the link address of a resource in the mobile terminal 300 through the screen projection data channel, and obtain the media asset content data by accessing the link address. , so as to play the media asset data. At the same time, the display device 200 may also acquire control instructions sent by the mobile terminal 300 through the screen projection data channel, such as fast-forward, pause, and stop projection, when playing the media asset data. For example, after the connection is established through the communication protocol, the mobile terminal 300 such as the mobile phone and the display device 200 will negotiate the device function and network conditions to select a suitable video and audio transmission format. After establishing the connection protocol (Session) of the audio and video stream, a series of real-time streaming protocol (RTSP) control commands are used to control the playback and termination of the audio and video stream.
而在Miracast投屏、Airplay投屏、NFC镜像投屏、乐播投屏等其他投屏连接协议下,显示设备200可以直接从移动终端300获取视频数据流。该视频数据流可以是移动终端300的显示单元310最终显示画面对应的视频数据流,即该视频数据流中包括移动终端300中的媒资内容画面、UI界面以及其他可在显示单元310中显示的视频画面内容。视频数据流也可以仅为移动终端300中可被获取视频数据,如正在播放的媒资视频数据等。此时,移动终端300可以作为显示设备200的一个信号源,显示设备200可以通过投屏数据通道不断获取视频数据,并实时显示在显示器275中,实现与移动终端300同步显示的效果。Under other screencasting connection protocols such as Miracast screencasting, Airplay screencasting, NFC mirror screencasting, and LeBao screencasting, the display device 200 can directly obtain the video data stream from the mobile terminal 300 . The video data stream may be the video data stream corresponding to the final display screen of the display unit 310 of the mobile terminal 300 , that is, the video data stream includes the media content screen, UI interface and other contents of the mobile terminal 300 that can be displayed in the display unit 310 content of the video screen. The video data stream may also be only video data that can be acquired in the mobile terminal 300, such as the video data of the media asset being played. At this time, the mobile terminal 300 can be used as a signal source of the display device 200, and the display device 200 can continuously obtain video data through the screen projection data channel and display it on the display 275 in real time to achieve the effect of synchronous display with the mobile terminal 300.
移动终端300根据不同的投屏协议能够获取不同的投屏数据。例如,对于系统应用或直接在系统层级进行投屏,移动终端300可以采用Miracast投屏、Airplay投屏或 WiDi投屏协议建立投屏数据通道。The mobile terminal 300 can acquire different screen projection data according to different screen projection protocols. For example, for system applications or direct screen projection at the system level, the mobile terminal 300 may use Miracast screen projection, Airplay screen projection or WiDi screen projection protocol to establish a screen projection data channel.
其中,Miracast投屏是由Wi-Fi联盟制定,以Wi-Fi直连为基础的无线显示标准。Miracast投屏可适用于Android设备,即Android设备可通过Miracast投屏的方式分享视频画面。通常,Android5.0以上的智能设备内置Miracast协议,因此可以在无需安装任何软件的情况下直接通过投屏设备与接收端设备WiFi网卡间的WiFiP2P功能进行直接无线投屏。此外,Miracast投屏还支持音视频同步传输。但是,由于Android设备太多太杂,Miracast不能完全兼容所有Android设备,并且基于Miracast的投屏没有投屏码功能,不能阻止恶意或者误投屏。Among them, Miracast screen projection is a wireless display standard based on Wi-Fi direct connection developed by the Wi-Fi Alliance. Miracast screencasting can be applied to Android devices, that is, Android devices can share video images through Miracast screencasting. Generally, smart devices with Android 5.0 and above have built-in Miracast protocol, so you can directly perform wireless screen projection through the WiFiP2P function between the screen-casting device and the WiFi network card of the receiving device without installing any software. In addition, Miracast screencasting also supports simultaneous transmission of audio and video. However, because there are too many Android devices, Miracast cannot be fully compatible with all Android devices, and Miracast-based screencasting does not have a screencasting code function, which cannot prevent malicious or mistaken screencasting.
Airplay投屏是由苹果公司推出的一种无线播放技术,适用于iOS和Mac系统的无线投屏。苹果系列设备内置Airplay投屏功能,配合支持AirPlay server服务的投屏器使用,效果清晰稳定,协议自带投屏码功能。但是,需保证苹果设备与投屏器在同一个局域网下(同网段)使用,不能跨网段、跨VLAN使用。Airplay screen projection is a wireless playback technology launched by Apple, which is suitable for wireless screen projection of iOS and Mac systems. Apple series devices have built-in Airplay screen projection function. When used in conjunction with screen projection devices that support AirPlay server services, the effect is clear and stable. The protocol has its own screen projection code function. However, it is necessary to ensure that the Apple device and the screen caster are used in the same local area network (same network segment), and cannot be used across network segments or VLANs.
WiDi投屏是Intel主导的一种无线播放技术,也基于WiFi Direct直连技术。Windows8/10笔记本电脑原生支持WiDi投屏,可以无需安装任何软件直接投屏,并且支持USB反向控制功能。WiDi screen projection is a wireless playback technology dominated by Intel and is also based on WiFi Direct technology. Windows 8/10 laptops natively support WiDi screen projection, which can be directly projected without installing any software, and supports USB reverse control function.
上述三种投屏协议不仅能够获取移动终端300中的视频数据流,而且能够获取移动终端300中的音频数据流,从而可以将视频数据和音频数据同步发送给显示设备200,使显示设备200能够同步播放视频和音频。由于上述Miracast投屏协议和Airplay投屏协议需要系统级应用权限,因此Miracast投屏协议和Airplay投屏协议通常仅适用于系统应用,或者同一厂商的显示设备200和移动终端300通过操作系统内置规则直接建立投屏连接。The above three screen projection protocols can not only acquire the video data stream in the mobile terminal 300, but also acquire the audio data stream in the mobile terminal 300, so that the video data and audio data can be synchronously sent to the display device 200, so that the display device 200 can Simultaneous playback of video and audio. Since the above-mentioned Miracast screencasting protocol and Airplay screencasting protocol require system-level application permissions, the Miracast screencasting protocol and Airplay screencasting protocol are usually only applicable to system applications, or the display device 200 and the mobile terminal 300 of the same manufacturer pass the built-in rules of the operating system Directly establish a screencasting connection.
由于移动终端300的声音只有系统级别的应用才能够获取到,或者需要发送(Source)端与接收(Sink)端同一厂商内部进行一些相关的系统层面的修改才能传递声音,如NFC镜像投屏的时候,移动终端300可以同时将视频和音频流同时传递给显示设备200。而如果移动终端300应用非当前厂商开发的应用,只能将视频流传递给显示设备200进行播放,无法传递声音数据。即对于部分第三方应用没有系统层权限,无法使用Miracast投屏协议或Airplay投屏协议,只能采用其他投屏协议建立投屏连接关系。例如,NFC镜像应用采用NFC投屏协议等。这些投屏协议由于没有系统级应用权限,导致其在建立投屏连接关系后,不能直接获取移动终端300的音频数据,因此,在使用第三方应用进行投屏时,会出现只投屏视频,无法传递音频的问题。Because the sound of the mobile terminal 300 can only be obtained by system-level applications, or some related system-level modifications are required within the same manufacturer of the sender (Source) and the receiver (Sink) to transmit the sound, such as NFC mirroring At the same time, the mobile terminal 300 can transmit the video and audio streams to the display device 200 at the same time. However, if the mobile terminal 300 uses an application not developed by the current manufacturer, it can only transmit the video stream to the display device 200 for playback, and cannot transmit audio data. That is, some third-party applications do not have system-level permissions and cannot use the Miracast or Airplay projection protocol, and can only use other projection protocols to establish a projection connection. For example, the NFC mirroring application adopts the NFC screen mirroring protocol and so on. Since these screencasting protocols do not have system-level application permissions, they cannot directly obtain the audio data of the mobile terminal 300 after the screencasting connection is established. Therefore, when a third-party application is used for screencasting, only screencasting video will appear. The problem of not being able to pass audio.
为了传递音频数据,如图8c所示,在本申请的部分实施例中,提供一种投屏数据传输系统,所述系统包括显示设备200和移动终端300。其中,显示设备200包括显示器275、通信器220、蓝牙模块以及控制器250;移动终端300包括显示单元330、通信单元、蓝牙电路381以及处理器380。In order to transmit audio data, as shown in FIG. 8c , in some embodiments of the present application, a screen projection data transmission system is provided, and the system includes a display device 200 and a mobile terminal 300 . The display device 200 includes a display 275 , a communicator 220 , a Bluetooth module and a controller 250 ; the mobile terminal 300 includes a display unit 330 , a communication unit, a Bluetooth circuit 381 and a processor 380 .
实际应用中,用户可以通过移动终端300执行交互操作,以输入各种用途的控制指令。例如,输入的控制指令可用于建立投屏连接。移动终端300可以根据交互原理不同,通过多种方式输入用于建立投屏连接的控制指令。例如,移动终端300的显示单元330中包括触控组件,用户通过触控组件输入触控指令进行交互,以进入投屏应用,并在点击投屏按钮后,建立投屏连接。In practical applications, the user may perform interactive operations through the mobile terminal 300 to input control instructions for various purposes. For example, input control commands can be used to establish a screencasting connection. The mobile terminal 300 can input the control instruction for establishing the screen projection connection in various ways according to different interaction principles. For example, the display unit 330 of the mobile terminal 300 includes a touch control component, and the user interacts by inputting touch commands through the touch control component to enter the screen casting application, and after clicking the screen casting button, a screen casting connection is established.
其中,所述投屏应用是指安装在移动终端300中的应用程序,可以是系统应用, 也可以是第三方应用。通常,系统应用为移动终端300出厂自带的应用程序,在正常的操作模式下,不能被卸载。需要说明的是,本实施例中,系统应用具有广义性,不仅包括开发者为系统运营商的应用程序,还包括具有系统级数据获取权限的其他应用。The screen projection application refers to an application program installed in the mobile terminal 300, which may be a system application or a third-party application. Usually, the system application is an application program that comes with the mobile terminal 300 from the factory, and cannot be uninstalled in a normal operation mode. It should be noted that, in this embodiment, the system application has a broad sense, including not only application programs whose developers are system operators, but also other applications having system-level data acquisition rights.
而第三方应用是指能够安装在移动终端300中,并在移动终端300中运行,实现某些特定功能的应用。例如,媒资播放应用、游戏应用等。同理,所述第三方应用也具有广义性,不仅包括非系统运营商开发的应用程序,而且包括由系统运营商开发,但不具有系统级数据获取权限的应用。The third-party application refers to an application that can be installed in the mobile terminal 300 and run in the mobile terminal 300 to realize some specific functions. For example, media asset playback applications, game applications, and the like. Similarly, the third-party applications also have a generality, including not only applications developed by non-system operators, but also applications developed by system operators but without system-level data acquisition rights.
此外,用户还可以通过其他方式输入用于建立投屏连接的控制指令。例如,对于内置智能语音系统的移动终端300,用户可以通过输入控制语音,如“开始投屏”、“启动乐播投屏”的方式,输入用于建立投屏连接的控制指令。在用户输入上述控制语音后,移动终端300可以自动启动投屏应用,并与显示设备200建立投屏连接关系,实现在显示设备200上显示移动终端300中的内容。In addition, the user can also input control instructions for establishing a screen-casting connection in other ways. For example, for the mobile terminal 300 with a built-in intelligent voice system, the user can input control commands for establishing a screencasting connection by inputting control voices, such as "start screencasting" and "start music broadcast screencasting". After the user inputs the above control voice, the mobile terminal 300 can automatically start the screen projection application and establish a screen projection connection relationship with the display device 200 to display the content in the mobile terminal 300 on the display device 200 .
需要说明的是,本实施例中提供的投屏数据传输系统,其投屏连接关系可以双向建立,即用户可以通过移动终端300输入控制指令,以使移动终端300主动向显示设备200发起投屏连接。用户还可以通过显示设备200输入控制指令,具体的控制指令输入方式与移动终端300的方式相似,不再赘述。在输入控制指令后,显示设备200还可以向移动终端300发起投屏连接,从而在移动终端300上投屏显示所述显示设备200中的内容。It should be noted that, in the screen projection data transmission system provided in this embodiment, the screen projection connection relationship can be established in both directions, that is, the user can input control commands through the mobile terminal 300, so that the mobile terminal 300 can actively initiate screen projection to the display device 200. connect. The user may also input a control instruction through the display device 200 , and the specific control instruction input manner is similar to that of the mobile terminal 300 , which will not be repeated here. After the control instruction is input, the display device 200 may also initiate a screen projection connection to the mobile terminal 300 , so that the content in the display device 200 is displayed on the mobile terminal 300 by screen projection.
在获取用于建立投屏连接的控制指令后,移动终端300可以响应于该控制指令,通过通信单元向显示设备发送投屏连接请求,以建立投屏连接。投屏连接请求可以被显示设备200读取,并根据投屏连接请求中的具体内容,做出回应动作,以便在移动终端300与显示设备200之间建立投屏数据传输通道。After acquiring the control instruction for establishing the screen-casting connection, the mobile terminal 300 may, in response to the control instruction, send a screen-casting connection request to the display device through the communication unit to establish the screen-casting connection. The screen projection connection request can be read by the display device 200 , and a response action is made according to the specific content in the screen projection connection request, so as to establish a screen projection data transmission channel between the mobile terminal 300 and the display device 200 .
为此,投屏连接请求中,需要包括与建立投屏数据传输通道相关的信息。例如,传输通道的连接形式、协议以及移动终端300的地址等。显示设备200在接收到投屏连接请求以后,从投屏连接请求中解析连接形式、协议以及移动终端300的地址等信息,并通过所传递的协议对应的方式进行连接信息协商,以在协商完成后建立数据传输通道。To this end, the screencasting connection request needs to include information related to establishing a screencasting data transmission channel. For example, the connection form of the transmission channel, the protocol, the address of the mobile terminal 300, and the like. After receiving the screen-casting connection request, the display device 200 parses information such as the connection form, protocol, and address of the mobile terminal 300 from the screen-casting connection request, and negotiates the connection information in a manner corresponding to the transmitted protocol, so as to complete the negotiation after the negotiation is completed. Then establish a data transmission channel.
在建立数据传输通道以后,投屏应用可以实时获取移动终端300的视频数据流,并将视频数据流通过投屏数据传输通道发送给显示设备200,显示设备200在接收到视频数据流以后,可以在其显示器275上实时进行显示,实现对视频内容的投屏显示。显然,由于显示设备200的显示器275显示区域形状与移动终端300的显示单元显示区域之间存在着一定的差异,因此在显示设备200对投屏视频画面进行显示的过程中,还需要对显示状态进行调整。例如,对视频画面比例进行缩放,以使投屏视频画面能够完整的显示在显示器275中。此外,显示设备200还可以对投屏视频数据执行进一步优化处理,例如,对投屏视频数据执行插值算法等,以获得更好的显示效果。After the data transmission channel is established, the screen projection application can acquire the video data stream of the mobile terminal 300 in real time, and send the video data stream to the display device 200 through the screen projection data transmission channel. After receiving the video data stream, the display device 200 can Real-time display is performed on its display 275 to realize screen projection display of video content. Obviously, since there is a certain difference between the shape of the display area of the display 275 of the display device 200 and the display area of the display unit of the mobile terminal 300, when the display device 200 displays the projected video image, it is also necessary to check the display state. make adjustments. For example, the scale of the video picture is scaled, so that the projected video picture can be completely displayed on the display 275 . In addition, the display device 200 may also perform further optimization processing on the screen projection video data, for example, perform an interpolation algorithm on the screen projection video data, etc., to obtain a better display effect.
由于通过部分第三方投屏应用进行投屏数据传递时,投屏应用没有音频数据的获取权限,通过建立的投屏数据传输通道只能传递视频信号,因此,为了传递声音信号,在建立投屏连接后,移动终端300还可以检测投屏应用类型,确定当前进行投屏操作所采用的投屏应用是系统应用还是第三方应用。Since the screencasting application does not have access to audio data when transferring screencasting data through some third-party screencasting applications, only video signals can be transmitted through the established screencasting data transmission channel. After the connection, the mobile terminal 300 can also detect the type of the screen projection application, and determine whether the screen projection application currently used for the screen projection operation is a system application or a third-party application.
根据投屏应用类型的检测结果,可以确定不同的投屏数据传递方式。如果投屏应 用类型为系统应用,即当前投屏应用具有获取音频数据流的权限,可以直接通过投屏数据传输通道向显示设备200发送音频数据流,从而实现在显示设备200中同步播放视频画面和音频信号。如果投屏应用类型为第三方应用,即当前投屏应用不具有获取音频数据流的权限,通过投屏数据传输通道只能传递视频数据,不能传递音频数据。因此可以通过蓝牙电路连接显示设备200,以发送音频数据流。According to the detection result of the screen-casting application type, different screen-casting data transmission methods can be determined. If the screencasting application type is a system application, that is, the current screencasting application has the right to obtain the audio data stream, it can directly send the audio data stream to the display device 200 through the screencasting data transmission channel, so as to realize the synchronous playback of video images in the display device 200 and audio signal. If the screencasting application type is a third-party application, that is, the current screencasting application does not have the permission to obtain the audio data stream, and only video data, but not audio data, can be transmitted through the screencasting data transmission channel. Therefore, the display device 200 can be connected through the Bluetooth circuit to transmit the audio data stream.
可见,通过在显示设备200与移动终端300之间蓝牙连接,将显示设备200作为蓝牙连接的接收端(sink端),将移动终端300作为蓝牙连接的发送端(source端),即显示设备200作为移动终端300音频播放设备,从而实时输出移动终端300中的声音,实现对视频数据和音频数据的同步播放。It can be seen that through the Bluetooth connection between the display device 200 and the mobile terminal 300, the display device 200 is used as the receiving end (sink end) of the Bluetooth connection, and the mobile terminal 300 is used as the sending end (source end) of the Bluetooth connection, that is, the display device 200 As the audio playback device of the mobile terminal 300, the sound in the mobile terminal 300 is output in real time, and the synchronous playback of video data and audio data is realized.
在一些实施例中,建立投屏连接时还可以由显示设备200对投屏应用类型进行检测,即显示设备200可以在接收到移动终端300发送的投屏连接请求后,响应于投屏连接请求,检测投屏应用类型。如果所述投屏应用类型为第三方应用,通过蓝牙模块连接移动终端300,以获取音频数据流。即在本实施例中,可以通过显示设备200对投屏应用类型进行检测,从而无需对移动终端300进行额外配置,使不同厂商的移动终端300和显示设备200之间实施上述投屏数据的传输方式。In some embodiments, the display device 200 may also detect the screen-casting application type when establishing the screen-casting connection, that is, the display device 200 may respond to the screen-casting connection request after receiving the screen-casting connection request sent by the mobile terminal 300 . to detect the screencasting application type. If the type of the screen projection application is a third-party application, the mobile terminal 300 is connected through a Bluetooth module to obtain an audio data stream. That is, in this embodiment, the screen projection application type can be detected by the display device 200, so that no additional configuration is required for the mobile terminal 300, so that the above-mentioned screen projection data transmission is implemented between the mobile terminals 300 of different manufacturers and the display device 200. Way.
根据上述实施例,在建立投屏连接时,可以根据投屏应用类型确定相关数据的发送方式,对于第三方应用可以采用蓝牙连接传输音频数据,以缓解第三方应用只能传递视频数据,无法传递音频数据的问题。而对于系统应用,由于其具有音频数据流的获取权限,因此可以直接通过建立的投屏连接关系传输音频数据。图9a-9b为根据本申请一个或多个实施例的音频传输示意图,如图9a、图9b所示,在一些实施例中,如果投屏应用类型为系统应用,可以通过系统投屏协议与移动终端300建立投屏连接,以传递视频数据流和音频数据流。According to the above-mentioned embodiment, when a screen-casting connection is established, the sending method of relevant data can be determined according to the type of screen-casting application, and for third-party applications, a Bluetooth connection can be used to transmit audio data, so as to alleviate the problem that third-party applications can only transmit video data and cannot transmit them. Problems with audio data. For system applications, since they have access rights to audio data streams, they can directly transmit audio data through the established screen-casting connection relationship. Figures 9a-9b are schematic diagrams of audio transmission according to one or more embodiments of the present application. As shown in Figures 9a and 9b, in some embodiments, if the screen projection application type is a system application, it can communicate with The mobile terminal 300 establishes a screen projection connection to transmit the video data stream and the audio data stream.
例如,当应用需要获取Android系统的音频流录制权限时,可以首先获得声音获取权限,而该权限属于系统权限不允许第三方App使用,如果属于系统应用,可以通过接口进行音频流的获取,应用层面增加系统权限,同时进行签名验证,这样系统应用即可利用接口进行音频流获取。对于系统应用,可以仍然采用原数据传输方式直接传递视频数据流和音频数据流,这样的数据传递方式可以降低数据处理量,并且可以缓解蓝牙传输音频数据时偶尔产生的传输延迟,有利于保持音画同步。For example, when an application needs to obtain the audio stream recording permission of the Android system, it can first obtain the sound acquisition permission, and this permission belongs to the system permission and does not allow third-party apps to use it. If it belongs to the system application, it can obtain the audio stream through the interface. The system authority is increased at the level, and the signature verification is performed at the same time, so that the system application can use the interface to obtain the audio stream. For system applications, the original data transmission method can still be used to directly transmit the video data stream and audio data stream. This data transmission method can reduce the amount of data processing, and can alleviate the occasional transmission delay when Bluetooth transmits audio data, which is conducive to maintaining audio Drawing synchronization.
为了检测投屏应用类型,在本申请的部分实施例中,图10为根据本申请一个或多个实施例的判断应用类型的流程示意图,如图10所示,显示设备200或者移动终端300可以先获取投屏应用的包名信息,再从包名信息中提取判断属性值。从而根据判断属性值确定当前投屏应用的类型,如果判断属性值等于0,标记投屏应用为第三方应用;如果判断属性值不等于0,标记投屏应用为系统应用。In order to detect the type of screencasting application, in some embodiments of the present application, FIG. 10 is a schematic flowchart of judging the application type according to one or more embodiments of the present application. As shown in FIG. 10 , the display device 200 or the mobile terminal 300 may First obtain the package name information of the screencasting application, and then extract the judgment attribute value from the package name information. Thus, the type of the current screencasting application is determined according to the judgment attribute value. If the judgment attribute value is equal to 0, the screencasting application is marked as a third-party application; if the judgment attribute value is not equal to 0, the screencasting application is marked as a system application.
通过投屏应用建立投屏连接后,如果投屏应用是第三方应用,还需要在显示设备200与移动终端300之间建立蓝牙连接。图11a-11b为根据本申请一个或多个实施例的蓝牙连接示意图,如图11a、图11b所示,在一些实施例中,显示设备200通过蓝牙模块连接移动终端300的步骤还包括:通过应用投屏协议向移动终端300发送显示设备200的地址信息,以使移动终端300根据所述地址信息执行蓝牙配对;再接收移动终端300通过蓝牙传输协议发送的配对请求;以及响应于配对请求,设置蓝牙模块为接收模式,与移动终端200建立蓝牙连接。After the screen-casting connection is established through the screen-casting application, if the screen-casting application is a third-party application, a Bluetooth connection needs to be established between the display device 200 and the mobile terminal 300 . 11a-11b are schematic diagrams of Bluetooth connection according to one or more embodiments of the present application. As shown in FIGS. 11a and 11b, in some embodiments, the step of connecting the display device 200 to the mobile terminal 300 through a Bluetooth module further includes: Sending the address information of the display device 200 to the mobile terminal 300 by applying the screen projection protocol, so that the mobile terminal 300 performs Bluetooth pairing according to the address information; then receiving the pairing request sent by the mobile terminal 300 through the Bluetooth transmission protocol; and in response to the pairing request, The Bluetooth module is set to receive mode, and a Bluetooth connection is established with the mobile terminal 200 .
为了实现在显示设备200与移动终端300之间建立蓝牙连接关系,在检测到投屏应用的应用类型为第三方应用后,显示设备200可以向移动终端300发送当前设备地址信息,如显示设备200的蓝牙Mac地址为:94:17:00:xx:64:8c,以使移动终端300可以通过接收到的地址信息执行蓝牙配对,自动与94:17:00:xx:64:8c的蓝牙地址设备建立蓝牙连接。由于此时显示设备200与移动终端300之间没有建立蓝牙连接关系,因此可以通过投屏应用对应的协议将显示设备200的地址信息发送给移动终端300。In order to establish a Bluetooth connection between the display device 200 and the mobile terminal 300, after detecting that the application type of the screencasting application is a third-party application, the display device 200 can send the current device address information to the mobile terminal 300, such as the display device 200 The Bluetooth Mac address is: 94:17:00:xx:64:8c, so that the mobile terminal 300 can perform Bluetooth pairing through the received address information, automatically with the Bluetooth address of 94:17:00:xx:64:8c The device establishes a Bluetooth connection. Since there is no Bluetooth connection relationship established between the display device 200 and the mobile terminal 300 at this time, the address information of the display device 200 may be sent to the mobile terminal 300 through a protocol corresponding to the screen projection application.
在一些实施例中,显示设备200发送的地址信息还可以包括控制指令,如用于控制移动终端进行信任验证的控制指令,对移动终端300进行控制,以使移动终端300在接收到地址信息后,通过蓝牙传输协议发送配对请求,而显示设备200可以响应于该配对请求,设置蓝牙模块为接收模式,以及与移动终端300建立蓝牙连接。In some embodiments, the address information sent by the display device 200 may further include a control instruction, such as a control instruction used to control the mobile terminal to perform trust verification, to control the mobile terminal 300 so that after the mobile terminal 300 receives the address information , a pairing request is sent through the Bluetooth transmission protocol, and the display device 200 can set the Bluetooth module to receive mode in response to the pairing request, and establish a Bluetooth connection with the mobile terminal 300 .
在接收到地址信息后,移动终端300还可以对地址信息进行本地管理,以供后续建立蓝牙连接时直接调用。例如,移动终端300进行扫描列表与接收到Sink端的蓝牙Mac地址进行匹配(即与显示设备200进行匹配),如协商一致,则可以进行蓝牙的配对以及连接工作。在镜像投屏时,通过投屏连接可以将视频数据传递给显示设备200,同时通过蓝牙连接将音频数据传递给显示设备200,实现视频和音频的同步传递。After receiving the address information, the mobile terminal 300 can also perform local management on the address information for direct calling when establishing a Bluetooth connection subsequently. For example, the mobile terminal 300 matches the scan list with the Bluetooth Mac address received from the sink (ie, matches with the display device 200 ), and if it is negotiated, Bluetooth pairing and connection can be performed. When mirroring the screen, the video data can be transmitted to the display device 200 through the screen projection connection, and the audio data can be transmitted to the display device 200 through the Bluetooth connection to realize synchronous transmission of video and audio.
为了便于在移动终端300和显示设备200之间建立蓝牙连接关系,本申请的部分实施例中还提供一种蓝牙配对方法,该配对方法可以在用户无感知的情况下自动建立蓝牙连接,既保证安全性,又无须用户手动点击确认,减少用户交互次数。In order to facilitate the establishment of a Bluetooth connection relationship between the mobile terminal 300 and the display device 200, some embodiments of the present application also provide a Bluetooth pairing method, which can automatically establish a Bluetooth connection without the user's perception, which ensures that both Security, and no need for users to manually click to confirm, reducing the number of user interactions.
所述蓝牙配对连接方法,可以先在接收端(sink端)显示设备200中设置服务(server),负责监听接收端蓝牙信息,同步接收发送端(source端)移动终端300的蓝牙请求信息。由于显示设备200和移动终端300之间已建立网络通信(如投屏连接),因此移动终端300可以通过协议层将相关的信息传递给显示设备200,且显示设备200可以同步将设备相关信息传递给移动终端300。In the Bluetooth pairing connection method, a server can be set in the display device 200 of the receiver (sink) first, which is responsible for monitoring the Bluetooth information of the receiver and synchronously receiving the Bluetooth request information of the mobile terminal 300 of the transmitter (source). Since network communication (such as a screen-casting connection) has been established between the display device 200 and the mobile terminal 300, the mobile terminal 300 can transmit relevant information to the display device 200 through the protocol layer, and the display device 200 can transmit the device-related information synchronously to the mobile terminal 300 .
在通过协议层传递相关信息的过程中,可以在显示设备200和移动终端300之间建立设备互信标记,用于表示显示设备200和移动终端300是安全的,可以用来实现无感知的蓝牙配对连接。即在分别记录了互信标记后,如果移动终端300和显示设备200建立蓝牙连接关系,则可以通过检测该互信标记进行信任验证,从而在通过信任验证后,直接进行蓝牙配对以及直接连接。In the process of transmitting relevant information through the protocol layer, a device mutual trust flag can be established between the display device 200 and the mobile terminal 300 to indicate that the display device 200 and the mobile terminal 300 are safe, and can be used to implement non-perceptual Bluetooth pairing connect. That is, after the mutual trust mark is recorded respectively, if the mobile terminal 300 and the display device 200 establish a Bluetooth connection, trust verification can be performed by detecting the mutual trust mark, so that after passing the trust verification, Bluetooth pairing and direct connection can be performed directly.
例如,在移动终端300与显示设备200建立投屏连接后,可以在显示设备200和移动终端300中分别记录可信任设备的相关信息,即在移动终端300中记录当前显示设备200是可信任设备,在显示设备200中记录当前移动终端300为可信任设备。在移动终端300向显示设备200发起蓝牙连接请求时,显示设备200可以在接收到蓝牙连接请求后进行信任设备的判断。如果发起蓝牙连接请求的移动终端300对应信息与记录的可信任设备信息相同,则可以直接进行蓝牙配对连接。For example, after the screen projection connection is established between the mobile terminal 300 and the display device 200, the relevant information of the trusted device may be recorded in the display device 200 and the mobile terminal 300 respectively, that is, the current display device 200 may be recorded in the mobile terminal 300 as a trusted device. , record in the display device 200 that the current mobile terminal 300 is a trusted device. When the mobile terminal 300 initiates a Bluetooth connection request to the display device 200, the display device 200 may determine the trusted device after receiving the Bluetooth connection request. If the corresponding information of the mobile terminal 300 that initiates the Bluetooth connection request is the same as the recorded trusted device information, the Bluetooth pairing connection can be directly performed.
同理,在显示设备200向移动终端300发起蓝牙连接请求时,移动终端300在接收到蓝牙连接请求后,也可以对显示设备200进行可信任设备验证。当显示设备200对应的设备信息与记录的可信任设备信息之一相同时,确定当前显示设备200通过信任验证,因此可以直接建立蓝牙连接关系,无需用户手动确认配对码等信息。Similarly, when the display device 200 initiates a Bluetooth connection request to the mobile terminal 300, the mobile terminal 300 may also perform trusted device verification on the display device 200 after receiving the Bluetooth connection request. When the device information corresponding to the display device 200 is the same as one of the recorded trusted device information, it is determined that the current display device 200 has passed the trust verification, so the Bluetooth connection relationship can be established directly without the need for the user to manually confirm the pairing code and other information.
可见,在本实施例中,通过记录信任设备信息,可以在显示设备200和移动终端 300建立蓝牙连接时,直接在系统层面进行配对连接,无需用户手动操作,在保证安全性的前提下,减少用户交互次数,使显示设备200和移动终端300之间能够快速传递视频数据和音频数据,便于实现音画同步传递。It can be seen that in this embodiment, by recording the trusted device information, when the display device 200 and the mobile terminal 300 establish a Bluetooth connection, the pairing connection can be directly performed at the system level, without the need for manual operation by the user, and on the premise of ensuring security, reducing The number of user interactions enables rapid transfer of video data and audio data between the display device 200 and the mobile terminal 300, which facilitates the synchronous transfer of audio and video.
在一些实施例中,为了能够在显示设备200和移动终端300中记录信任设备信息,可以在显示设备200和移动终端300中分别创建可信任设备列表,并在显示设备200和移动终端300建立投屏连接后,将显示设备200和移动终端300的设备信息均保存到可信任设备列表中。In some embodiments, in order to be able to record the trusted device information in the display device 200 and the mobile terminal 300 , a list of trusted devices can be created in the display device 200 and the mobile terminal 300 respectively, and the trust device list can be established in the display device 200 and the mobile terminal 300 respectively. After the screen is connected, the device information of the display device 200 and the mobile terminal 300 are both saved in the trusted device list.
例如,对于显示设备200,可以先在其中建立可信任设备列表,可信任列表可以包括设备名称、设备网络地址以及设备的蓝牙mac地址等表项,如下表:For example, for the display device 200, a trusted device list can be established in it first, and the trusted list can include table items such as the device name, the device network address, and the device's Bluetooth mac address, as shown in the following table:
设备名称device name 网络地址website address 蓝牙mac地址bluetooth mac address
××的手机1xx mobile phone 1 Fe80::6917:ff:xxxx:8984Fe80::6917:ff:xxxx:8984 94:17:00:xx:64:0194:17:00:xx:64:01
××的手机2xx mobile phone 2 Fe80::6917:ff:xxxx:8985Fe80::6917:ff:xxxx:8985 94:17:00:xx:64:8c94:17:00:xx:64:8c
……... ……... ……...
当显示设备200与移动终端300建立投屏连接等网络通信连接时,显示设备200可以通过建立投屏连接时的设备信息中,提取移动终端300相关的设备名称、设备网络地址以及设备的蓝牙mac地址等信息,并添加到可信任列表中,完成对可信任设备信息的记录。由于在建立网络通信连接时已经对设备的安全性进行了验证,即能够建立网络通信连接的显示设备200和移动终端300彼此之间已经满足安全性要求,因此再进行其他形式的连接时可以不再进行安全性验证,直接进行配对即可。When the display device 200 establishes a network communication connection such as a screen projection connection with the mobile terminal 300, the display device 200 can extract the device name, the device network address and the Bluetooth mac of the device related to the mobile terminal 300 from the device information when the screen projection connection is established. address and other information, and add it to the trusted list to complete the recording of trusted device information. Since the security of the device has been verified when the network communication connection is established, that is, the display device 200 and the mobile terminal 300 that can establish the network communication connection have already met the security requirements, so other forms of connection may not be used when connecting. Then perform security verification and pair directly.
在一些实施例中,为了实现显示设备200和移动终端300之间的信任验证,在接收到蓝牙连接请求后,显示设备200和移动终端300可以根据蓝牙连接请求中包含的设备信息,在记录的可信任设备列表中进行匹配,从而确定当前发起蓝牙连接请求的设备是否为可信任设备。In some embodiments, in order to realize the trust verification between the display device 200 and the mobile terminal 300, after receiving the Bluetooth connection request, the display device 200 and the mobile terminal 300 may, according to the device information included in the Bluetooth connection request, The trusted device list is matched to determine whether the device that currently initiates the Bluetooth connection request is a trusted device.
例如,显示设备200在接收到移动终端300发送的蓝牙连接请求时,显示设备200可以在蓝牙连接请求中提取移动终端300的设备信息,包括设备名称、设备网络地址以及设备的蓝牙mac地址等。再将提取的设备信息在可信任设备列表中进行匹配,当设备名称、设备网络地址以及设备的蓝牙mac地址等信息全部或部分记录在可信任设备列表中时,确定当前移动终端300设备信息通过信任验证,因此可以直接响应该蓝牙连接请求,自动完成蓝牙连接配对,而无需用户手动完成配对操作。For example, when the display device 200 receives the Bluetooth connection request sent by the mobile terminal 300, the display device 200 can extract the device information of the mobile terminal 300 in the Bluetooth connection request, including the device name, the device network address, and the device's Bluetooth mac address. The extracted device information is then matched in the trusted device list, and when all or part of the information such as the device name, the device network address, and the device's Bluetooth mac address are recorded in the trusted device list, it is determined that the current mobile terminal 300 device information passes through. Trust verification, so the Bluetooth connection request can be directly responded to, and the Bluetooth connection pairing can be automatically completed without the need for the user to manually complete the pairing operation.
同理,对于移动终端300,可以采用相同的方式在可信任设备列表中记录显示设备200的设备信息,并在显示设备200向移动终端300发送蓝牙连接请求时,根据显示设备200的设备信息在可信任设备列表中进行匹配,从而在匹配命中任一表项时,确定当前显示设备200为可信任设备,从而自动完成蓝牙连接配对,无需用户手动完成配对操作。Similarly, for the mobile terminal 300, the device information of the display device 200 can be recorded in the trusted device list in the same way, and when the display device 200 sends a Bluetooth connection request to the mobile terminal 300, according to the device information of the display device 200 Matching is performed in the trusted device list, so that when the match hits any entry, it is determined that the current display device 200 is a trusted device, so that the Bluetooth connection pairing is automatically completed, and the user does not need to manually complete the pairing operation.
另外,为了实现用户的无感知蓝牙配对操作,在显示设备200或移动终端300的信任验证通过后,移动终端300或显示设备200可以在直接在系统层面完成配对连接。其中,系统层面的配对连接是指在当前应用具有系统层蓝牙连接的权限后,直接在系统层完成蓝牙配对,而无需通过应用层调用显示对话框等处理过程。In addition, in order to realize the user's non-sensing Bluetooth pairing operation, after the trust verification of the display device 200 or the mobile terminal 300 is passed, the mobile terminal 300 or the display device 200 can directly complete the pairing connection at the system level. Among them, the pairing connection at the system level means that after the current application has the permission of the Bluetooth connection at the system layer, the Bluetooth pairing is directly completed at the system layer, without calling the display dialog box through the application layer and other processing processes.
例如,可以在显示设备200中内置系统服务,当显示设备200与移动终端300建立投屏连接后,显示设备200可以通过该系统服务监听蓝牙状态的变化,注册蓝牙状 态的相关广播信息。当监听到“扫描”信息后,进行蓝牙设备列表的检索,与信任设备进行匹配。当监听到配对请求“配对请求”信息后,进行广播信息的处理,对信任的设备进行系统层面的配对,整个过程不会调用应用层显示配对界面,也就无须用户主动点击确认,即可进行蓝牙设备的配对连接。For example, a system service can be built into the display device 200. After the display device 200 establishes a screen projection connection with the mobile terminal 300, the display device 200 can monitor the change of the Bluetooth state through the system service, and register the relevant broadcast information of the Bluetooth state. After listening to the "scanning" information, it searches the list of Bluetooth devices and matches with trusted devices. After listening to the pairing request "pairing request" information, the broadcast information is processed, and the trusted device is paired at the system level. The whole process will not call the application layer to display the pairing interface, and the user does not need to actively click to confirm. Pairing connection of bluetooth devices.
在一些实施例中,显示设备200和移动终端300建立投屏连接的过程中,还可以对对方设备的安全性执行验证。例如,显示设备200在接收移动终端300发送的投屏连接请求后,可以响应于该投屏连接请求,对移动终端300执行安全性验证。安全性验证的具体方式可以为:通过内置的安全性验证程序,对移动终端300的硬件信息、网络信息以及数据传递权限等信息进行提取,并与安全数据库中存储的数据规则进行匹配,如果移动终端300对应的信息不在黑名单中,或者移动终端300对应的信息没有被恶意篡改,则可以确定移动终端300通过安全性验证。In some embodiments, during the process of establishing the screen projection connection between the display device 200 and the mobile terminal 300, the security verification of the other party's device may also be performed. For example, after receiving the screen projection connection request sent by the mobile terminal 300, the display device 200 may perform security verification on the mobile terminal 300 in response to the screen projection connection request. The specific method of security verification can be as follows: through the built-in security verification program, the hardware information, network information and data transmission authority of the mobile terminal 300 are extracted and matched with the data rules stored in the security database. If the information corresponding to the terminal 300 is not in the blacklist, or the information corresponding to the mobile terminal 300 has not been maliciously tampered with, it can be determined that the mobile terminal 300 has passed the security verification.
对于通过安全性验证的移动终端300,显示设备200在通过执行网络通信连接配对,完成地址匹配、协议配置等操作,从而在显示设备200与移动终端300之间建立网络通信连接。例如,显示设备200可以针对通过安全性验证的移动终端300配置投屏协议,即根据投屏应用配置投屏协议,经移动终端300与显示设备200之间的多次握手,形成投屏数据传输通道。For the mobile terminal 300 that has passed the security verification, the display device 200 completes operations such as address matching and protocol configuration by performing network communication connection pairing, thereby establishing a network communication connection between the display device 200 and the mobile terminal 300 . For example, the display device 200 may configure a screencasting protocol for the mobile terminal 300 that has passed the security verification, that is, configure the screencasting protocol according to the screencasting application, and form screencasting data transmission through multiple handshakes between the mobile terminal 300 and the display device 200 . aisle.
需要说明的是,在建立投屏连接的过程中,图12a-12b为根据本申请一个或多个实施例的投屏连接示意图,如图12a、图12b所示,还可以通过移动终端300对投屏应用类型进行检测,从而在检测到投屏应用为第三方应用时,主动执行蓝牙设备搜索以获取到所有可连接的蓝牙设备列表。再根据显示设备200反馈的蓝牙Mac等信息,在蓝牙设备列表中进行匹配,确定建立投屏连接的显示设备200,从而直接向显示设备200发起蓝牙连接配对。It should be noted that, in the process of establishing a screen projection connection, FIGS. 12a-12b are schematic diagrams of screen projection connections according to one or more embodiments of the present application. As shown in FIGS. 12a and 12b , the mobile terminal 300 The screen-casting application type is detected, so that when it is detected that the screen-casting application is a third-party application, a Bluetooth device search is actively performed to obtain a list of all connectable Bluetooth devices. Then, according to the Bluetooth Mac and other information fed back by the display device 200, matching is performed in the Bluetooth device list to determine the display device 200 for which the screen projection connection is established, so as to directly initiate a Bluetooth connection pairing to the display device 200.
在进行蓝牙配对连接时,由于在部分使用场景下,显示设备200或者移动终端300的蓝牙功能开关未处于开启状态,此时将造成显示设备200或者移动终端300无法使用蓝牙功能,以建立蓝牙连接关系。因此,在一些实施例中,蓝牙模块连接移动终端的步骤中,控制器被进一步配置为:When performing a Bluetooth pairing connection, in some usage scenarios, the Bluetooth function switch of the display device 200 or the mobile terminal 300 is not turned on. At this time, the display device 200 or the mobile terminal 300 cannot use the Bluetooth function to establish a Bluetooth connection. relation. Therefore, in some embodiments, in the step of connecting the Bluetooth module to the mobile terminal, the controller is further configured to:
检测蓝牙模块的开关状态。如果开关状态为开启,执行获取地址信息的步骤;如果开关状态为关闭,向蓝牙模块发送开启指令,以启用蓝牙模块。例如,显示设备200和移动终端300可以通过蓝牙接口,设置当前设备的蓝牙状态,从而在打开蓝牙后,进行蓝牙设备的搜索。Detect the switch status of the Bluetooth module. If the switch state is on, perform the step of acquiring address information; if the switch state is off, send an on command to the Bluetooth module to enable the Bluetooth module. For example, the display device 200 and the mobile terminal 300 can set the Bluetooth state of the current device through the Bluetooth interface, so as to search for the Bluetooth device after turning on the Bluetooth.
在建立投屏连接和蓝牙连接后,显示设备200可以实时从移动终端300获取视频数据和音频数据,并通过显示器275和扬声器对视频数据和音频数据进行播放,实现投屏。图13为根据本申请一个或多个实施例的显示设备同步流程示意图,如图13所示,在一些实施例中,通过所述蓝牙模块连接所述移动终端的步骤还包括:通过蓝牙模块获取移动终端中的音频数据流,以及通过通信器获取移动终端中的视频数据流。在获取音频数据流和视频数据流后,同步播放音频数据流和视频数据流。After the screen projection connection and the Bluetooth connection are established, the display device 200 can acquire video data and audio data from the mobile terminal 300 in real time, and play the video data and audio data through the display 275 and speakers to realize screen projection. FIG. 13 is a schematic diagram of a synchronization process of a display device according to one or more embodiments of the present application. As shown in FIG. 13 , in some embodiments, the step of connecting the mobile terminal through the Bluetooth module further includes: obtaining through the Bluetooth module The audio data stream in the mobile terminal, and the video data stream in the mobile terminal obtained through the communicator. After acquiring the audio data stream and the video data stream, play the audio data stream and the video data stream synchronously.
实际应用中,显示设备200可以在建立投屏连接和蓝牙连接后,通过投屏数据通道获取视频数据,并在显示器275中对视频数据内容进行显示。同时,通过蓝牙连接,显示设备200可以作为移动终端300的音频输出装置,从而通过显示设备200的音频输出装置,如扬声器,输出移动终端300中的声音。由于通过蓝牙连接进行音频输出 的过程中,显示设备200可以直接播放声音信号,因此在投屏应用不具备音频数据获取权限的情况下,也能够实时播放移动终端300中所播放的内容。In practical applications, the display device 200 may acquire video data through the screen projection data channel after establishing the screen projection connection and the Bluetooth connection, and display the content of the video data on the display 275 . Meanwhile, through the Bluetooth connection, the display device 200 can be used as an audio output device of the mobile terminal 300, thereby outputting the sound in the mobile terminal 300 through the audio output device of the display device 200, such as a speaker. Since the display device 200 can directly play the sound signal in the process of audio output through the Bluetooth connection, it can also play the content played in the mobile terminal 300 in real time even if the screen projection application does not have the right to acquire audio data.
需要说明的是,由于蓝牙连接的音频输出方式会由于蓝牙数据传输延迟而出现音画不同步的问题,因此在同步播放音频数据流和视频数据流的过程中,移动终端可以对视频数据流和音频数据流进行标记,例如,标记起始播放时间等。在显示设备200接收到音频数据流和视频数据流后,可以先对音频数据流和视频数据流进行缓存,并对标记进行识别,并按照标记时间开始播放,保证音画同步。It should be noted that due to the audio output mode of the Bluetooth connection, the audio and video are not synchronized due to the delay of the Bluetooth data transmission. Therefore, in the process of synchronously playing the audio data stream and the video data stream, the mobile terminal can The audio data stream is marked, for example, marking the start playing time and so on. After the display device 200 receives the audio data stream and the video data stream, it can first buffer the audio data stream and the video data stream, identify the mark, and start playing according to the mark time to ensure the synchronization of audio and video.
由以上技术方案可知,上述实施例中提供的投屏数据传输系统,包括显示设备200和移动终端300。其中,所述移动终端300内置通信单元和蓝牙电路381;显示设备200内置通信器220和蓝牙模块,并且所述移动终端300被配置为:获取用户输入的用于建立投屏连接的控制指令,以及根据控制指令向显示设备200发送投屏连接请求。显示设备200被配置为:接收投屏连接请求;以及根据投屏连接请求与移动终端300建立投屏连接;移动终端和/或显示设备还被配置为:检测投屏应用类型;如果投屏应用类型为第三方应用,在移动终端与显示设备之间建立蓝牙连接,以传递音频数据流。It can be known from the above technical solutions that the screen projection data transmission system provided in the above embodiments includes a display device 200 and a mobile terminal 300 . Wherein, the mobile terminal 300 has a built-in communication unit and a bluetooth circuit 381; the display device 200 has a built-in communicator 220 and a bluetooth module, and the mobile terminal 300 is configured to: obtain a control command input by the user for establishing a screen-casting connection, and sending a screen projection connection request to the display device 200 according to the control instruction. The display device 200 is configured to: receive a screen-casting connection request; and establish a screen-casting connection with the mobile terminal 300 according to the screen-casting connection request; the mobile terminal and/or the display device are further configured to: detect the screen-casting application type; The type is a third-party application that establishes a Bluetooth connection between the mobile terminal and the display device to transmit audio data streams.
所述投屏数据传输系统可以在显示设备200与移动终端300通过投屏应用建立投屏连接时,对投屏应用类型进行检测。并在投屏应用没有移动终端音频数据获取权限时,通过蓝牙连接传递音频数据流,使显示设备200能够同步播放移动终端中的图像和音频,解决投屏连接无法传递音频数据的问题。The screen-casting data transmission system may detect the type of screen-casting application when the display device 200 and the mobile terminal 300 establish a screen-casting connection through the screen-casting application. And when the screencasting application does not have the right to acquire audio data of the mobile terminal, the audio data stream is transmitted through the Bluetooth connection, so that the display device 200 can synchronously play the image and audio in the mobile terminal, solving the problem that the screencasting connection cannot transmit audio data.
显示设备200可以接收移动终端300发送的投屏连接请求,并在获取到投屏连接请求后,对投屏应用类型进行检测,从而在投屏应用类型为第三方应用时,通过蓝牙模块连接移动终端,以接收移动终端中的音频数据流。所述显示设备可以在投屏应用不能从移动终端获取音频数据流时,通过蓝牙连接获取移动终端的音频信号,并同步播放。所述显示设备可以在与移动终端非同一厂商时,传递音频数据,提高用户体验。The display device 200 can receive the screencasting connection request sent by the mobile terminal 300, and after acquiring the screencasting connection request, detect the screencasting application type, so that when the screencasting application type is a third-party application, connect the mobile phone through a Bluetooth module. terminal to receive the audio data stream in the mobile terminal. The display device can acquire the audio signal of the mobile terminal through the Bluetooth connection when the screen-casting application cannot acquire the audio data stream from the mobile terminal, and play it synchronously. The display device can transmit audio data when it is not of the same manufacturer as the mobile terminal to improve user experience.
基于上述投屏数据传输系统,图14为根据本申请一个或多个实施例的显示设备投屏连接结构示意图,如图14所示,本申请的部分实施例中还提供一种显示设备200,包括显示器275、通信器220、蓝牙模块以及控制器250。其中,显示器275用于显示用户界面以及显示投屏视频画面;通信器220被配置为与移动终端300建立投屏连接;蓝牙模块被配置为传递音频数据流。控制器250被配置为执行以下程序步骤:接收移动终端300发送的投屏连接请求;响应于投屏连接请求,检测投屏应用类型;如果投屏应用类型为第三方应用,通过蓝牙模块连接移动终端,以获取音频数据流。Based on the above-mentioned screen projection data transmission system, FIG. 14 is a schematic diagram of a screen projection connection structure of a display device according to one or more embodiments of the present application. As shown in FIG. 14 , a display device 200 is also provided in some embodiments of the present application. A display 275, a communicator 220, a Bluetooth module, and a controller 250 are included. Wherein, the display 275 is used for displaying the user interface and displaying the screen-casting video image; the communicator 220 is configured to establish a screen-casting connection with the mobile terminal 300; and the Bluetooth module is configured to transmit the audio data stream. The controller 250 is configured to perform the following program steps: receiving a screen-casting connection request sent by the mobile terminal 300; in response to the screen-casting connection request, detecting a screen-casting application type; if the screen-casting application type is a third-party application, connecting the mobile terminal through a Bluetooth module terminal to obtain the audio data stream.
可见,本实施例提供的显示设备200包括:显示器275、通信器220、蓝牙模块以及控制器250。实际应用中,显示设备200可以接收移动终端300发送的投屏连接请求,并在获取到投屏连接请求后,对投屏应用类型进行检测,从而在投屏应用类型为第三方应用时,通过蓝牙模块连接移动终端,以接收移动终端300中的音频数据流。所述显示设备200可以在投屏应用不能从移动终端获取音频数据流时,通过蓝牙连接获取移动终端的音频信号,并同步播放。所述显示设备可以在与移动终端非同一厂商时,传递音频数据,提高用户体验。It can be seen that the display device 200 provided in this embodiment includes: a display 275 , a communicator 220 , a Bluetooth module, and a controller 250 . In practical applications, the display device 200 may receive a screen-casting connection request sent by the mobile terminal 300, and after acquiring the screen-casting connection request, detect the screen-casting application type, so that when the screen-casting application type is a third-party application, the The Bluetooth module is connected to the mobile terminal to receive the audio data stream in the mobile terminal 300 . The display device 200 can acquire the audio signal of the mobile terminal through a Bluetooth connection when the screen-casting application cannot acquire the audio data stream from the mobile terminal, and play it synchronously. The display device can transmit audio data when it is not of the same manufacturer as the mobile terminal to improve user experience.
图15为根据本申请一个或多个实施例的移动终端投屏连接结构示意图,如图15所示,在一些实施例中,投屏应用类型可以由移动终端300进行检测,并根据检测结果确定音频数据流的投屏方式。为此,本申请的部分实施例中还提供一种移动终端300, 包括:显示单元330、通信单元、蓝牙电路381以及处理器380。其中,所述显示单元330被配置为显示用户界面以执行用户交互;通信单元被配置为与显示设备200建立投屏连接;蓝牙电路381被配置为传输音频数据流。处理器380被配置为执行以下程序步骤:获取用户输入的用于建立投屏连接的控制指令,并响应于控制指令,通过通信单元向显示设备发送投屏连接请求。通过检测投屏应用类型,如果投屏应用类型为第三方应用,通过蓝牙电路381连接显示设备200,以发送音频数据流。FIG. 15 is a schematic diagram of a screen projection connection structure of a mobile terminal according to one or more embodiments of the present application. As shown in FIG. 15 , in some embodiments, the type of screen projection application can be detected by the mobile terminal 300 and determined according to the detection result. The screen projection method of the audio data stream. To this end, some embodiments of the present application further provide a mobile terminal 300 , including: a display unit 330 , a communication unit, a Bluetooth circuit 381 and a processor 380 . The display unit 330 is configured to display a user interface to perform user interaction; the communication unit is configured to establish a screen projection connection with the display device 200; the Bluetooth circuit 381 is configured to transmit audio data streams. The processor 380 is configured to perform the following program steps: acquiring a control instruction for establishing a screen-casting connection input by a user, and in response to the control instruction, sending a screen-casting connection request to the display device through the communication unit. By detecting the screen projection application type, if the screen projection application type is a third-party application, the display device 200 is connected through the Bluetooth circuit 381 to send an audio data stream.
可见,本申请实施例中提供的移动终端300可以在获取用户输入的控制指令后,向显示设备200发起投屏连接,同时对当前投屏应用类型进行检测,从而在投屏应用类型为第三方应用时,与移动终端300建立蓝牙连接关系,以发送音频数据流。所述移动终端300可以通过投屏应用完成与显示设备200的投屏连接,并在投屏应用没有音频数据获取权限时,通过蓝牙连接发送音频数据,解决非系统应用无法传递音频数据的问题。It can be seen that the mobile terminal 300 provided in the embodiment of the present application can initiate a screen projection connection to the display device 200 after acquiring the control instruction input by the user, and at the same time detect the current screen projection application type, so that the screen projection application type is a third party During application, a Bluetooth connection relationship is established with the mobile terminal 300 to send audio data streams. The mobile terminal 300 can complete the screen-casting connection with the display device 200 through the screen-casting application, and when the screen-casting application does not have the right to acquire audio data, send the audio data through the Bluetooth connection, so as to solve the problem that the non-system application cannot transmit the audio data.
在一些实施例中,当通过移动终端300检测投屏应用类型时,通过蓝牙电路381连接显示设备200的步骤中,处理器380被进一步配置为:先通过应用投屏协议接收显示设备200地址信息,并执行设备扫描,例如,移动终端300通过蓝牙接口,设置当前的蓝牙状态,打开蓝牙后,进行蓝牙设备的检索,以生成扫描列表。再根据地址信息在扫描列表中查找目标显示设备200,通过设置蓝牙电路381为发送模式,以及通过蓝牙传输协议向目标显示设备200发送配对请求。In some embodiments, in the step of connecting the display device 200 through the Bluetooth circuit 381 when the screen projection application type is detected by the mobile terminal 300, the processor 380 is further configured to: first receive the address information of the display device 200 through the application screen projection protocol , and perform device scanning. For example, the mobile terminal 300 sets the current Bluetooth state through the Bluetooth interface, and after turning on Bluetooth, searches for Bluetooth devices to generate a scan list. Then search the target display device 200 in the scan list according to the address information, set the Bluetooth circuit 381 to the sending mode, and send a pairing request to the target display device 200 through the Bluetooth transmission protocol.
本实施例中,显示设备200可以在接收到移动终端300发送的投屏连接请求后,向移动终端300反馈地址信息,使得移动终端300在执行设备扫描过程中,可以直接根据反馈的地址信息执行蓝牙连接匹配操作,使移动终端300可以通过蓝牙连接方式与显示设备200建立连接关系,从而向显示设备200发送音频数据流。In this embodiment, the display device 200 may feed back address information to the mobile terminal 300 after receiving the screencast connection request sent by the mobile terminal 300, so that the mobile terminal 300 can directly execute the process according to the feedback address information during the device scanning process. The Bluetooth connection matching operation enables the mobile terminal 300 to establish a connection relationship with the display device 200 through a Bluetooth connection, so as to send an audio data stream to the display device 200 .
在本申请的部分实施例中,还提供一种投屏数据传输方法,应用于投屏数据传输系统,所述投屏数据传输系统包括移动终端300和显示设备200,所述方法包括以下步骤:移动终端300获取用户输入的用于建立投屏连接的控制指令,以及根据控制指令向显示设备200发送投屏连接请求。显示设备200接收投屏连接请求;以及根据投屏连接请求与移动终端300建立投屏连接;移动终端300和/或显示设备200检测投屏应用类型;如果投屏应用类型为第三方应用,在移动终端300与显示设备200之间建立蓝牙连接,以传递音频数据流。In some embodiments of the present application, a screen projection data transmission method is also provided, which is applied to a screen projection data transmission system. The screen projection data transmission system includes a mobile terminal 300 and a display device 200, and the method includes the following steps: The mobile terminal 300 acquires a control instruction input by the user for establishing a screen-casting connection, and sends a screen-casting connection request to the display device 200 according to the control instruction. The display device 200 receives the screen-casting connection request; and establishes a screen-casting connection with the mobile terminal 300 according to the screen-casting connection request; the mobile terminal 300 and/or the display device 200 detect the screen-casting application type; if the screen-casting application type is a third-party application, in the A Bluetooth connection is established between the mobile terminal 300 and the display device 200 to transmit audio data streams.
本实施例中,所述投屏数据传输方法可以在使用投屏应用进行投屏连接时,通过移动终端300和/或显示设备200检测投屏应用类型,如果投屏应用类型为第三方应用,在移动终端300与显示设备200之间建立蓝牙连接,用来从移动终端300向显示设备200传递音频数据流,从而实现在显示设备200中同步显示移动终端300显示内容的同时,同步播放移动终端300的声音,解决投屏连接无法传递音频数据的问题。In this embodiment, the method for transmitting the screen projection data may detect the type of the screen projection application through the mobile terminal 300 and/or the display device 200 when the screen projection application is used for the screen projection connection. If the type of the screen projection application is a third-party application, A Bluetooth connection is established between the mobile terminal 300 and the display device 200 to transmit the audio data stream from the mobile terminal 300 to the display device 200, so that the display device 200 can simultaneously display the displayed content of the mobile terminal 300 and simultaneously play the mobile terminal 300 sound, to solve the problem that the screen casting connection cannot transmit audio data.
下面以NFC投屏为例,介绍移动终端和显示设备如何建立连接。参照图16a与图16b,图16a与图16b为根据本申请一个或多个实施例的建立投屏连接的场景示意图一。假设上述局域网中同时连接有四台显示设备,这四台显示设备的设备名称分别为显示设备A、显示设备B、显示设备C、显示设备D,且这四台显示设备均支持投屏。则如图16a所示,移动终端100经过搜索之后,移动终端100的显示界面以列表的方式显示上述四台显示设备的设备名称:显示设备A、显示设备B、显示设备C、显示设备D。图16b所示,当用 户需要将移动终端100中的视频投屏到显示设备C时,用户即可在移动终端100的显示界面中选择点击“显示设备C”,即可与显示设备C建立投屏连接。The following uses NFC screen projection as an example to introduce how to establish a connection between a mobile terminal and a display device. Referring to FIG. 16a and FIG. 16b, FIG. 16a and FIG. 16b are schematic diagrams of scenario 1 of establishing a screen projection connection according to one or more embodiments of the present application. Assuming that there are four display devices connected to the above local area network at the same time, the device names of the four display devices are display device A, display device B, display device C, and display device D, and these four display devices all support screen projection. As shown in FIG. 16a, after the mobile terminal 100 searches, the display interface of the mobile terminal 100 displays the device names of the above four display devices in a list: display device A, display device B, display device C, and display device D. As shown in FIG. 16b , when the user needs to project the video in the mobile terminal 100 to the display device C, the user can select and click “display device C” in the display interface of the mobile terminal 100 to establish a project with the display device C. screen connection.
在一些实施方式中,参照图17,图17为根据本申请一个或多个实施例的移动终端在播放视频时的一种显示界面示意图。如图17所示,当移动终端100在观看视频时,可以在移动终端100的显示界面中显示用于触发投屏的控件701。当移动终端100在检测到控件701被触发之后,在当前接入的局域网内自动搜索可以进行投屏的显示设备,然后在移动终端701的显示界面以列表的方式展示各个可以投屏的显示设备的设备名称。用户根据实际投屏需要,在移动终端100的显示界面中选择点击需要投屏的显示设备的设备名称后,移动终端100即可与用户点击选择的显示设备建立投屏连接。In some embodiments, referring to FIG. 17 , FIG. 17 is a schematic diagram of a display interface when a mobile terminal plays a video according to one or more embodiments of the present application. As shown in FIG. 17 , when the mobile terminal 100 is watching a video, a control 701 for triggering screen projection may be displayed on the display interface of the mobile terminal 100 . When the mobile terminal 100 detects that the control 701 is triggered, it automatically searches the currently accessed local area network for a display device that can perform screen projection, and then displays each display device that can perform screen projection in a list on the display interface of the mobile terminal 701 device name. After the user selects and clicks the device name of the display device to be projected on the display interface of the mobile terminal 100 according to actual screen projection needs, the mobile terminal 100 can establish a screen projection connection with the display device selected by the user.
在本申请一些实施例中,移动终端可支持NFC功能,而支持投屏的显示设备会配发一张特定的NFC卡,该NFC卡可放置到显示设备的遥控器内。其中,上述NFC卡内存储有上述显示设备的P2P MAC地址,在进行投屏时,用户将移动终端靠近需要投屏的显示设备的NFC卡,或者将需要投屏的显示设备的NFC卡靠近移动终端,移动终端在检测到该NFC卡时,从该NFC卡中读取存储的P2P MAC地址,然后根据该P2P MAC地址与上述需要投屏的显示设备建立投屏连接。在移动终端与显示设备连接投屏连接之后,移动终端便可以将移动终端上播放的视频发送到该显示设备上,实现在该显示设备上观看移动终端中的视频。In some embodiments of the present application, the mobile terminal can support the NFC function, and the display device supporting screen projection will distribute a specific NFC card, and the NFC card can be placed in the remote control of the display device. The P2P MAC address of the display device is stored in the NFC card. When performing screen projection, the user moves the mobile terminal close to the NFC card of the display device that needs to be mirrored, or moves the NFC card of the display device that needs to be mirrored close to the mobile terminal. The terminal, when the mobile terminal detects the NFC card, reads the stored P2P MAC address from the NFC card, and then establishes a screen projection connection with the above-mentioned display device that needs to be screened according to the P2P MAC address. After the mobile terminal is connected to the display device for screen projection, the mobile terminal can send the video played on the mobile terminal to the display device, so that the video in the mobile terminal can be viewed on the display device.
在一些实施例中,参照图18,图18为根据本申请一个或多个实施例的建立投屏连接的场景示意图二。在图18中,假设显示设备200对应的NFC卡设置于显示设备200对应的控制装置300(如遥控器)内,则在进行投屏时,用户将移动终端100靠近控制装置300,读取控制装置300内的NFC卡存储的P2P MAC地址,然后根据该P2P MAC地址与显示设备200建立投屏连接。In some embodiments, referring to FIG. 18 , FIG. 18 is a second scenario diagram of establishing a screencasting connection according to one or more embodiments of the present application. In FIG. 18 , it is assumed that the NFC card corresponding to the display device 200 is set in the control device 300 (such as a remote controller) corresponding to the display device 200 , then when performing screen projection, the user moves the mobile terminal 100 close to the control device 300 to read the control The P2P MAC address stored in the NFC card in the device 300, and then establishes a screen projection connection with the display device 200 according to the P2P MAC address.
在本申请一些实施例中,移动终端支持NFC功能,支持投屏的显示设备会配置一张特定的NFC卡。在显示设备启动一个无线热点时,该NFC卡会存储显示设备的无线热点信息,该无线热点信息是当显示设备启动无线热点时,由显示设备的操作系统写入到NFC卡的。当用户需要通过移动终端进行投屏时,可以将移动终端靠近显示设备上的NFC卡,移动终端检测到显示设备上的NFC卡时,从显示设备上的NFC卡读取显示设备的无线热点信息,并基于该无线热点信息连接显示设备的无线热点,连接成功后,移动终端即可与该显示设备建立投屏连接。在移动终端与显示设备连接投屏连接之后,移动终端便可以将移动终端上播放的视频发送到该显示设备上,实现在该显示设备上观看移动终端中的视频。In some embodiments of the present application, the mobile terminal supports the NFC function, and a display device that supports screen projection is configured with a specific NFC card. When the display device starts a wireless hotspot, the NFC card stores the wireless hotspot information of the display device, and the wireless hotspot information is written to the NFC card by the operating system of the display device when the display device starts the wireless hotspot. When the user needs to cast the screen through the mobile terminal, the mobile terminal can be close to the NFC card on the display device. When the mobile terminal detects the NFC card on the display device, the wireless hotspot information of the display device is read from the NFC card on the display device. , and connect to the wireless hotspot of the display device based on the wireless hotspot information. After the connection is successful, the mobile terminal can establish a screen projection connection with the display device. After the mobile terminal is connected to the display device for screen projection, the mobile terminal can send the video played on the mobile terminal to the display device, so that the video in the mobile terminal can be viewed on the display device.
在一些实施例中,参照图19,图19为根据本申请一个或多个实施例的建立投屏连接的场景示意图三。在图19中,假设显示设备200对应的NFC卡设置于显示设备200的左下角,则在进行投屏时,用户将移动终端100靠近显示设备200的左下角,读取显示设备200对应的NFC卡中存储的无线热点信息,并基于该无线热点信息连接显示设备200的无线热点,连接成功后,移动终端100即可与显示设备200建立投屏连接。需要说明的是,显示设备200对应的NFC卡还可以设置于显示设备200的其它任意位置,本申请实施例中不做限定。In some embodiments, referring to FIG. 19 , FIG. 19 is a third scenario diagram of establishing a screen projection connection according to one or more embodiments of the present application. In FIG. 19 , assuming that the NFC card corresponding to the display device 200 is set in the lower left corner of the display device 200 , when performing screen projection, the user moves the mobile terminal 100 to the lower left corner of the display device 200 to read the NFC corresponding to the display device 200 The wireless hotspot information stored in the card is connected to the wireless hotspot of the display device 200 based on the wireless hotspot information. After the connection is successful, the mobile terminal 100 can establish a screen projection connection with the display device 200 . It should be noted that, the NFC card corresponding to the display device 200 may also be set at any other position of the display device 200, which is not limited in this embodiment of the present application.
在一些实施例中,本申请提供了一种移动终端,该移动终端包括NFC响应组件,用于对满足预设距离的NFC卡进行响应;以及与NFC响应组件连接的控制器,该控制器被配置为:当NFC响应组件响应于NFC卡时,在移动终端当前接入的局域网内广播设备搜索 消息;接收显示设备基于设备搜索消息发送的反馈消息,该反馈消息中包括显示设备的投屏匹配码与设备地址;获取移动终端的投屏匹配码,当移动终端的投屏匹配码与显示设备的投屏匹配码相同时,根据上述显示设备的设备地址与上述显示设备建立投屏连接。In some embodiments, the present application provides a mobile terminal, the mobile terminal includes an NFC response component for responding to an NFC card that meets a preset distance; and a controller connected with the NFC response component, the controller is It is configured to: when the NFC response component responds to the NFC card, broadcast a device search message in the local area network currently accessed by the mobile terminal; receive a feedback message sent by the display device based on the device search message, where the feedback message includes the screen projection matching of the display device code and device address; obtain the screencasting matching code of the mobile terminal, when the screencasting matching code of the mobile terminal is the same as the screencasting matching code of the display device, establish a screencasting connection with the above-mentioned display device according to the device address of the above-mentioned display device.
在一些实施方式中,上述NFC响应组件可以采用具有NFC卡感应功能的NFC读写组件,当有NFC卡与该NFC响应组件的距离小于预设距离时,该NFC响应组件便可以感应到NFC卡,并做出响应。上述NFC卡可以是公交卡、门禁卡等具有NFC功能的任意卡片。In some embodiments, the above-mentioned NFC response component can use an NFC read-write component with an NFC card sensing function. When the distance between an NFC card and the NFC response component is less than a preset distance, the NFC response component can sense the NFC card. , and respond. The above-mentioned NFC card may be any card with NFC function, such as a bus card and an access control card.
在一些实施方式中,为了确保将移动终端中显示的内容能够准确投屏至需要投屏的显示设备,移动终端在检测到任意NFC卡时,先在当前接入的局域网内广播设备搜索消息;显示设备在接收到该设备搜索消息后,向移动终端发送反馈消息,该反馈消息中包括显示设备的投屏匹配码与设备地址;移动终端在接收到显示设备发送的反馈消息后,确定移动终端本地保存的投屏匹配码与显示设备反馈的投屏匹配码是否相同,若相同,则移动终端根据上述显示设备的设备地址与上述显示设备建立投屏连接,从而即可将移动终端中显示的内容准确投屏至上述显示设备。例如,假设某一用户家内安装有两台电视机,分别安装在卧室与客厅,当用户需要将移动终端中显示的内容投屏至卧室中的电视机时,可以预先将移动终端中存储的投屏匹配码设置为卧室中电视机预存的投屏匹配码,然后使用任意NFC卡片靠近移动终端,此时,移动终端便会自动向卧室与客厅中的电视机分别发送设备搜索消息,然后接收卧室与客厅中的电视机分别反馈的投屏匹配码与设备地址,由于卧室中电视机的投屏匹配码与移动终端中当前存储的投屏匹配码相同,因此移动终端会自动根据卧室中电视机的设备地址,与卧室中的电视机建立投屏连接。In some embodiments, in order to ensure that the content displayed in the mobile terminal can be accurately projected to the display device that needs to be projected, when the mobile terminal detects any NFC card, it first broadcasts a device search message in the currently accessed local area network; After receiving the device search message, the display device sends a feedback message to the mobile terminal, and the feedback message includes the screen projection matching code and device address of the display device; after receiving the feedback message sent by the display device, the mobile terminal determines that the mobile terminal Whether the screencasting matching code saved locally and the screencasting matching code fed back by the display device are the same, if they are the same, then the mobile terminal establishes a screencasting connection with the above-mentioned display device according to the device address of the above-mentioned display device, so that the screen displayed in the mobile terminal can be displayed. The content is accurately projected to the above display devices. For example, suppose a user has two TVs installed in his home, one in the bedroom and the other in the living room. When the user needs to project the content displayed in the mobile terminal to the TV in the bedroom, the projections stored in the mobile terminal can be projected in advance. The screen matching code is set to the screen matching code pre-stored by the TV in the bedroom, and then use any NFC card to approach the mobile terminal. At this time, the mobile terminal will automatically send a device search message to the TV in the bedroom and the living room respectively, and then receive the bedroom. The projection matching code and device address respectively fed back by the TV in the living room, since the projection matching code of the TV in the bedroom is the same as the projection matching code currently stored in the mobile terminal, the mobile terminal will automatically , and establish a screen projection connection with the TV in the bedroom.
可以理解的是,若用户后续一直选择卧室中的电视机作为需要投屏的电视机时,则在后续的投屏过程中,用户只需要使用任意NFC卡片靠近移动终端,移动终端便可以自动与卧室中的电视机连接投屏连接,不需要用户再进行其它任何操作。It is understandable that if the user keeps selecting the TV in the bedroom as the TV that needs to be projected, in the subsequent projection process, the user only needs to use any NFC card to approach the mobile terminal, and the mobile terminal can automatically communicate with the mobile terminal. The TV in the bedroom is connected to the screen projection connection, and the user does not need to perform any other operations.
在本申请一些实施例中,在显示设备第一次启动投屏应用时,用户可以通过触发预设的配置操作,配置显示设备的投屏匹配码,并保存。或者,在显示设备第一次启动时,显示设备随机生成一个投屏匹配码,并保存。In some embodiments of the present application, when the display device starts the screen-casting application for the first time, the user can configure and save the screen-casting matching code of the display device by triggering a preset configuration operation. Alternatively, when the display device is started for the first time, the display device randomly generates a screen projection matching code and saves it.
在一些实施例中,用户还可以通过显示设备的设置界面随时修改显示设备的投屏匹配码并保存。参照图20,图20为根据本申请一个或多个实施例的设置显示设备的投屏匹配码的场景示意图。在图20中,用户可以在显示设备200的投屏匹配码设置界面中设置显示设备200的投屏匹配码为“1234”,然后进行保存。In some embodiments, the user can also modify and save the screen projection matching code of the display device at any time through the setting interface of the display device. Referring to FIG. 20 , FIG. 20 is a schematic diagram of a scenario in which a screen projection matching code of a display device is set according to one or more embodiments of the present application. In FIG. 20 , the user can set the screencasting matching code of the display device 200 as "1234" in the screencasting matching code setting interface of the display device 200, and then save it.
当移动终端需要与某一个显示设备建立投屏连接时,用户可以先查看需要投屏的显示设备的投屏匹配码,然后将移动终端的投屏匹配码设置为该显示设备的投屏匹配码。例如,参照图21,图21为根据本申请一个或多个实施例的设置移动终端的投屏匹配码的场景示意图。在图21中,当移动终端100需要投屏的显示设备200的投屏匹配码为“1234”时,则用户可以通过移动终端100的投屏匹配码设置界面,将移动终端100的投屏匹配码也设置为“1234”。When the mobile terminal needs to establish a screencasting connection with a certain display device, the user can first check the screencasting matching code of the display device to be screencasted, and then set the screencasting matching code of the mobile terminal as the screencasting matching code of the display device . For example, referring to FIG. 21 , FIG. 21 is a schematic diagram of a scenario of setting a screencasting matching code of a mobile terminal according to one or more embodiments of the present application. In FIG. 21 , when the screencasting match code of the display device 200 to which the mobile terminal 100 needs to screencast is “1234”, the user can match the screencasting of the mobile terminal 100 through the screencasting matching code setting interface of the mobile terminal 100 The code is also set to "1234".
在设置好移动终端与显示设备的投屏匹配码之后,若用户需要将移动终端中的视频投屏至显示设备,则可以使用任意NFC卡触发移动终端的NFC响应组件,移动终端即可自动搜寻能够进行投屏的显示设备,然后根据移动终端本地预先保存的投屏匹配码与搜寻到的显示设备预先保存的投屏匹配码,来从搜寻到的显示设备中确定需要进行投屏的显示设备,并自动与需要进行投屏的显示设备建立投屏连接,不需要用户进行其它操作,从而可 以有效简化建立投屏连接的过程,提升建立投屏连接的效率。After setting the screen projection matching code between the mobile terminal and the display device, if the user needs to project the video in the mobile terminal to the display device, he can use any NFC card to trigger the NFC response component of the mobile terminal, and the mobile terminal can automatically search A display device capable of screencasting, and then according to the screencasting matching code pre-saved locally on the mobile terminal and the screencasting matching code pre-saved by the searched display device to determine the display device that needs to be screened from the searched display devices , and automatically establish a screen-casting connection with the display device that needs to perform screen-casting, without requiring the user to perform other operations, which can effectively simplify the process of establishing a screen-casting connection and improve the efficiency of establishing a screen-casting connection.
在以下实施例中,参照图22,图22为根据本申请一个或多个实施例的提供的一种建立投屏连接的方法的流程示意图。上述建立投屏连接的方法包括:1201.使用任意NFC卡与移动终端进行触碰。其中,上述NFC卡可以是公交卡、门禁卡等具有NFC功能的任意卡片,其内部不需要存储如何有关显示设备的信息。在本实施例中,上述NFC卡只用于启动移动终端内的投屏应用程序。In the following embodiments, referring to FIG. 22 , FIG. 22 is a schematic flowchart of a method for establishing a screen projection connection according to one or more embodiments of the present application. The above method for establishing a screen projection connection includes: 1201. Use any NFC card to touch the mobile terminal. Wherein, the above-mentioned NFC card may be any card with NFC function, such as a bus card, an access control card, etc., and it is not necessary to store information about the display device in the card. In this embodiment, the above-mentioned NFC card is only used to start the screen projection application in the mobile terminal.
1202.当移动终端的NFC响应组件响应于NFC卡时,在移动终端当前接入的局域网内广播设备搜索消息。1202. When the NFC response component of the mobile terminal responds to the NFC card, broadcast a device search message in the local area network currently accessed by the mobile terminal.
1203.显示设备在接收到移动终端广播的设备搜索消息后,获取自己的设备信息,并从相关文件中读取预先保存的投屏匹配码,然后将自己的设备信息与投屏匹配码组装为反馈消息后发送至移动终端。在一些实施例中,上述设备地址可以为显示设备的IP地址。假设显示设备的IP地址为192.168.1.100,投屏匹配码为1234,则上述反馈消息可以组装为:ip_192.168.1.100#deviceinfo_1234#。1203. After receiving the device search message broadcast by the mobile terminal, the display device obtains its own device information, reads the pre-saved screencasting matching code from the relevant file, and then assembles its own device information and the screencasting matching code as The feedback message is sent to the mobile terminal. In some embodiments, the above-mentioned device address may be the IP address of the display device. Assuming that the IP address of the display device is 192.168.1.100 and the projection matching code is 1234, the above feedback message can be assembled as: ip_192.168.1.100#deviceinfo_1234#.
1204.移动终端接收显示设备发送的反馈消息,从该反馈消息解析出显示设备的投屏匹配码与设备信息,然后确定移动终端的投屏匹配码与显示设备的投屏匹配码是否相同。1204. The mobile terminal receives the feedback message sent by the display device, parses the screen-casting matching code and device information of the display device from the feedback message, and then determines whether the screen-casting matching code of the mobile terminal and the screen-casting matching code of the display device are the same.
1205.当移动终端的投屏匹配码与显示设备的投屏匹配码相同时,移动终端根据解析出的显示设备的设备信息,向显示设备发送投屏连接请求,以与显示设备建立投屏连接。1205. When the screencasting matching code of the mobile terminal is the same as the screencasting matching code of the display device, the mobile terminal sends a screencasting connection request to the display device according to the parsed device information of the display device to establish a screencasting connection with the display device .
在一些实施例中,当移动终端接收到两个或两个以上显示设备发送的反馈消息时,可以分别确定接收到的各个反馈消息中的投屏匹配码是否与移动终端的投屏匹配码相同;若当前接收到的目标反馈消息中的投屏匹配码与移动终端的投屏匹配码相同,则获取目标反馈消息中的目标设备地址,并与该目标设备地址对应的显示设备建立投屏连接。例如,假设移动终端接入的局域网内接入有三台显示设备,分别为:显示设备A,IP地址为:192.168.1.100,投屏码为1234;显示设备B,IP地址为:192.168.1.101,投屏码为1135;显示设备C,IP地址为:192.168.1.102,投屏码为1136。移动终端向局域网广播发送设备搜索信息“搜索镜像设备”后;马上会接收到上述三台显示设备发送过来的反馈消息,分别为:ip_192.168.1.100#deviceinfo_1234;ip_192.168.1.101#deviceinfo_1135;ip_192.168.1.102#deviceinfo_1136。In some embodiments, when the mobile terminal receives feedback messages sent by two or more display devices, it can respectively determine whether the screencasting matching code in each received feedback message is the same as the screencasting matching code of the mobile terminal ; If the screencasting matching code in the currently received target feedback message is the same as the mobile terminal's screencasting matching code, obtain the target device address in the target feedback message, and establish a screencasting connection with the display device corresponding to the target device address . For example, suppose that there are three display devices connected to the local area network accessed by the mobile terminal, namely: display device A, whose IP address is: 192.168.1.100, and the screen projection code is 1234; display device B, whose IP address is: 192.168.1.101, The screencasting code is 1135; the IP address of display device C is: 192.168.1.102, and the screencasting code is 1136. After the mobile terminal broadcasts the device search information "Search mirror device" to the local area network, it will immediately receive the feedback messages sent by the above three display devices, which are: ip_192.168.1.100#deviceinfo_1234; ip_192.168.1.101#deviceinfo_1135; ip_192.168.1.102#deviceinfo_1136.
其中,假设移动终端预先保存的投屏匹配码为1234,则当移动终端在接收到反馈消息“ip_192.168.1.100#deviceinfo_1234”时,由于解析出的投屏匹配码为“1234”,与移动终端预先保存的投屏绑定码相同,因此移动终端便利用解析出的IP地址“192.168.1.100”与显示设备A建立投屏连接。而当移动终端接收到反馈消息“ip_192.168.1.101#deviceinfo_1135”或“ip_192.168.1.102#deviceinfo_1136”时,由于解析出的投屏匹配码与移动终端预先保存的投屏绑定码不相同,因此移动终端便不会与显示设备B或显示设备C建立投屏连接。Among them, it is assumed that the screencasting match code pre-stored by the mobile terminal is 1234, then when the mobile terminal receives the feedback message "ip_192.168.1.100#deviceinfo_1234", the screencasting match code parsed out is "1234", which is different from that of the mobile terminal. The screencasting binding code saved in advance by the terminal is the same, so the mobile terminal uses the resolved IP address "192.168.1.100" to establish a screencasting connection with display device A. However, when the mobile terminal receives the feedback message "ip_192.168.1.101#deviceinfo_1135" or "ip_192.168.1.102#deviceinfo_1136", the parsed screencasting matching code is different from the screencasting binding code pre-saved by the mobile terminal. , so the mobile terminal will not establish a screen projection connection with display device B or display device C.
本申请提供的建立投屏连接的方法,当移动终端搜索到多台可以投屏的显示设备时,不需要用户从搜索到的显示设备中选择需要进行投屏的显示设备,移动终端可以自动与需要进行投屏的显示设备建立投屏连接,从而可以有效简化建立投屏连接的过程,提升建立投屏连接的效率。In the method for establishing a screen-casting connection provided by the present application, when the mobile terminal searches for multiple display devices capable of screen-casting, the user does not need to select the display device that needs to be screen-casted from the searched display devices, and the mobile terminal can automatically connect with the screen-casting display device. The display device that needs to perform screen projection establishes a screen projection connection, which can effectively simplify the process of establishing a screen projection connection and improve the efficiency of establishing a screen projection connection.
在一些实施例中,在移动终端与显示设备处于投屏连接状态时,若移动终端接收到其它显示设备发送的反馈消息,则可不做处理。可以理解的是,在移动终端与显示设备进行投屏的过程中,由于移动终端和显示设备之间的数据传输是通过无线网络进行传输,而且 大多数都是通过用户数据报协议(User Datagram Protocol,UDP)这种不保证数据传输质量的网络协议进行数据交换,所以会不可避免地出现网络数据丢包的问题,从而会引起显示设备出现花屏的现象。In some embodiments, when the mobile terminal and the display device are in a screen-casting connection state, if the mobile terminal receives a feedback message sent by another display device, it may not perform processing. It can be understood that in the process of screen projection between the mobile terminal and the display device, the data transmission between the mobile terminal and the display device is transmitted through the wireless network, and most of them are transmitted through the User Datagram Protocol (User Datagram Protocol). , UDP), a network protocol that does not guarantee the quality of data transmission, exchanges data, so the problem of network data packet loss will inevitably occur, which will cause the display device to appear blurry.
其中,投屏过程中最常用的编码及传输方式为:在关键帧(I帧)之间插入P帧(前向预测编码帧)的形式进行传输,例如移动终端可以发送类型为“IPPPPIPPPPIPPPP”的图像序列给显示设备。其中,显示设备在对I帧进行解码时,不需要与其它帧进行比较,就可以解码出一个整的画面;当对P帧进行解码时,需要与它之前的I帧或P帧进行比较,计算它们之间的差值,才解码出一个完整的画面。Among them, the most commonly used encoding and transmission methods in the screen projection process are: inserting P frames (forward predictive coding frames) between key frames (I frames) for transmission. For example, a mobile terminal can send a type of "IPPPPIPPPPIPPPP". Image sequence to display device. Among them, when the display device decodes the I frame, it can decode a whole picture without comparing it with other frames; when decoding the P frame, it needs to compare it with the previous I frame or P frame, Calculate the difference between them to decode a complete picture.
为了防止显示设备在解码时出现花屏,本申请一些实施例中,移动终端与显示设备建立投屏连接之后,移动终端基于预设的采集频率采集移动终端中显示的图像数据,并将采集到的图像数据依次发送至显示设备。其中,上述图像数据中包括序列号,且移动终端当前发送的图像数据的序列号与上一次发送的图像数据的序列号之间满足预设条件。In order to prevent the display device from having a blurry screen during decoding, in some embodiments of the present application, after the mobile terminal establishes a screen projection connection with the display device, the mobile terminal collects image data displayed in the mobile terminal based on a preset collection frequency, and collects the collected image data. The image data is sequentially sent to the display device. Wherein, the image data includes a serial number, and a preset condition is satisfied between the serial number of the image data currently sent by the mobile terminal and the serial number of the image data sent last time.
显示设备在接收到上述图像数据时,若当前接收到的图像数据的序列号与上一次接收到的图像数据的序列号之间不满足所述预设条件,则确定当前接收到的图像数据的类型是否为P帧;在当前接收到的图像数据的类型为P帧时,向移动终端发送I帧请求消息。移动终端在接收到显示设备发送的I帧请求消息时,采集类型为I帧的图像数据,并发送至显示设备。显示设备在接收到的类型为I帧的图像数据后,对该类型为I帧的图像数据进行解码。When the display device receives the above-mentioned image data, if the serial number of the currently received image data and the serial number of the last received image data do not satisfy the preset condition, then determine the Whether the type is P frame; when the type of the currently received image data is P frame, send an I frame request message to the mobile terminal. When receiving the I-frame request message sent by the display device, the mobile terminal collects image data whose type is I-frame and sends it to the display device. After receiving the image data of the type I frame, the display device decodes the image data of the type I frame.
可以理解的是,当解码一个P帧时,如果它前面的一个I帧或P帧丢掉了,那么它依赖的参数帧会变成它前面其它的I帧或P帧,这时就会出现花屏现象。It is understandable that when decoding a P frame, if an I frame or P frame in front of it is lost, then the parameter frame it depends on will become the other I frame or P frame in front of it, and then there will be a blurry screen. Phenomenon.
参照图23,图23为根据本申请一个或多个实施例的一种视频流的帧序列示意图。在图23中,假设第4帧由于网络原因没有接收到,那么对显示设备对第5帧进行解码时,只能参考第3帧,这样显示设备在显示第5帧时就会出现花屏。同时由于第5帧解码出来的图像是花屏,所以在解码第6帧以及之后的P帧时,都会出现花屏,直至解码至第n+1帧时,由于n+1帧为I帧,所以花屏现象才会消失。因此,显示设备根据当前接收到的图像数据的序列号与上一次接收到的图像数据的序列号之间是否满足预设条件,以及当前接收到的图像数据的类型是否为P帧,即可确定出数据网络是否出现丢包。Referring to FIG. 23, FIG. 23 is a schematic diagram of a frame sequence of a video stream according to one or more embodiments of the present application. In Figure 23, assuming that the 4th frame is not received due to network reasons, when decoding the 5th frame by the display device, it can only refer to the 3rd frame, so that the display device will appear blurry when displaying the 5th frame. At the same time, because the decoded image of the 5th frame is a blurry screen, when the sixth frame and the subsequent P frames are decoded, there will be a blurry screen, until the n+1th frame is decoded, since the n+1 frame is an I frame, so the screen is blurred. phenomenon will disappear. Therefore, the display device can determine whether a preset condition is satisfied between the serial number of the currently received image data and the serial number of the last received image data, and whether the type of the currently received image data is a P frame. Whether there is packet loss on the outgoing data network.
在一些实施例中,上述预设条件为显示设备当前接收到的图像数据的序列号与上一次接收到的图像数据的序列号之差为1。参照图24,图24为根据本申请一个或多个实施例的提供的一种防止投屏过程中出现花屏的方法的流程示意图。In some embodiments, the above preset condition is that the difference between the serial number of the image data currently received by the display device and the serial number of the image data received last time is 1. Referring to FIG. 24 , FIG. 24 is a schematic flowchart of a method for preventing a blurry screen from appearing during screen projection according to one or more embodiments of the present application.
在一些实施例中,上述防止投屏过程中出现花屏的方法:In some embodiments, the above-mentioned method for preventing smudged screens from appearing during screen projection:
1401.移动终端与所述显示设备建立投屏连接之后,基于预设的采集频率采集移动终端中显示的图像数据,并实时进行多媒体编码,封装成TS流存到一个数据缓存buffer中,buffer中包含该数据包的序列号seqNo和TS流数据。1401. After the mobile terminal establishes a screen projection connection with the display device, collects image data displayed in the mobile terminal based on a preset collection frequency, performs multimedia encoding in real time, encapsulates it into a TS stream and stores it in a data cache buffer, and the buffer Contains the sequence number seqNo and TS stream data of the packet.
1402.移动终端通过建立的UDP数据通道将上述,buffer中包含的数据发送到显示设备。其中,每发送一个buffer,buffer中的序列号seqNo就进行加1。1402. The mobile terminal sends the above-mentioned data contained in the buffer to the display device through the established UDP data channel. Among them, each time a buffer is sent, the sequence number seqNo in the buffer is incremented by 1.
1403.显示设备接收移动终端发送的图像数据,并从接收到的图像数据中获取其序列号,确定当前接收到的图像数据的序列号与上一次接收到的图像数据的序列号之差是否等于1。1403. The display device receives the image data sent by the mobile terminal, and obtains its serial number from the received image data, and determines whether the difference between the serial number of the currently received image data and the serial number of the last received image data is equal to 1.
1404.若显示设备确定当前接收到的图像数据的序列号与上一次接收到的图像数据的序列号之差大于1,则说明当前接收到的图像数据和上一次接收到的图像数据之间有部分 图像数据丢失了。此时,确定当前接收到的图像数据的类型是否为P帧。1404. If the display device determines that the difference between the serial number of the currently received image data and the serial number of the last received image data is greater than 1, it means that there is a difference between the currently received image data and the last received image data. Part of the image data is lost. At this time, it is determined whether the type of the currently received image data is a P frame.
1405.显示设备在当前接收到的图像数据的类型为P帧时,向移动终端发送I帧请求消息。1405. When the type of the currently received image data is P frame, the display device sends an I frame request message to the mobile terminal.
其中,显示设备在当前接收到的图像数据的类型为I帧数据时,那么前面的数据丢失不会影响该帧数据的解码,因此可以直接对该帧图像数据进行解码。Wherein, when the type of image data currently received by the display device is I-frame data, the loss of previous data will not affect the decoding of the frame of data, so the frame of image data can be directly decoded.
在一些实施例中,显示设备丢弃已接收到的图像数据,直至接收到移动终端发送的类型为I帧的图像数据。In some embodiments, the display device discards the received image data until the image data of type I frame sent by the mobile terminal is received.
1406.移动终端在接收到显示设备发送的I帧请求消息后,立刻采集类型为I帧的图像数据。1406. After receiving the I-frame request message sent by the display device, the mobile terminal immediately collects image data whose type is I-frame.
1407.移动终端将采集到的类型为I帧的图像数据发送至显示设备。1407. The mobile terminal sends the collected image data of type I frame to the display device.
1408.显示设备基于接收到的类型为I帧的图像数据进行解码。1408. The display device decodes based on the received image data of type I frame.
即本申请实施例中,显示设备能够通过图像数据的序列号来判断投屏连接是否出现丢包,当出现丢包时,通过向移动终端请求类型为I帧的图像数据,即可有效避免在投屏过程中出现花屏。That is, in the embodiment of the present application, the display device can judge whether the screen projection connection has packet loss through the serial number of the image data. A blurry screen appears during projection.
当一个智能设备A有多网卡使用时,或者说智能设备A可以同时工作在多个网络时,上述智能设备之间的交互方法只能使智能设备A在一个默认的网络中工作。例如,智能设备A开启了热点,该智能设备A就同时存在有线网络和热点网络,如果在有线网络和热点网络中分别连接了智能设备B和智能设备C,该智能设备A就只能与智能设备B和智能设备C之中的一个正常交互,不能与智能设备B和智能设备C同时进行交互。可见,目前的智能设备交互方法在智能设备为多网卡设备时,难以保证智能设备在全部连接的网络中均能实现正常交互,因此,目前的这种智能设备交互方法具有一定的局限性。When a smart device A uses multiple network cards, or in other words, when the smart device A can work on multiple networks at the same time, the above interaction method between smart devices can only make the smart device A work in a default network. For example, if smart device A enables a hotspot, the smart device A has both a wired network and a hotspot network. If smart device B and smart device C are connected to the wired network and the hotspot network respectively, the smart device A can only communicate with the smart device. One of device B and smart device C interacts normally, and cannot interact with smart device B and smart device C at the same time. It can be seen that when the smart device is a multi-NIC device, it is difficult to ensure that the smart device can interact normally in all connected networks. Therefore, the current smart device interaction method has certain limitations.
下面以P2P(Peer To Peer,点对点)投屏为例,介绍无线网络资源分配。当采用WiFi连接时,将移动终端和显示设备接入同一个无线网络,采用P2P服务来实现投屏,同时还要保证正常的WLAN功能,此时,会出现P2P抢占WLAN资源的问题,导致正常的WLAN功能受限制,丢包率上升问题。The following takes P2P (Peer To Peer, peer-to-peer) screen projection as an example to introduce wireless network resource allocation. When using WiFi connection, connect the mobile terminal and display device to the same wireless network, use P2P service to realize screen projection, and at the same time ensure the normal WLAN function. The WLAN function is limited, and the packet loss rate increases.
在一些实施例中,图25为根据本申请一个或多个实施例的一种可能的P2P的设备发现流程,如图25所示,在进行P2P配对的设备发现阶段,P2P的移动终端100A和显示设备200要不停的在1、6、11信道进行扫描和监听的切换,当移动终端100A和显示设备200恰巧处于同一个信道,且移动终端100A为扫描也就是发送了探测请求,同时显示设备200为监听,监听到了移动终端100A发来的探测请求时候,显示设备200响应了该探测请求回复了探测回复才算是完成了设备的发现过程(该过程也可以是同一信道下显示设备200做扫描,移动终端100A做监听)。基于上述发现设备阶段的流程要求,若要实现用户随时的进行投屏,就需要显示设备200的后台在不停的进行P2P的扫描和监听,这样会导致信道不停的在1、6、11切换,极大的影响了WLAN端口的正常使用,不仅占用了天线资源同时频繁切换信道也会增加网络延时,使网络变得更加卡顿。为此提出如下解决方案,设置多种工作模式,根据不同的情况选择相应的工作模式。In some embodiments, FIG. 25 is a possible P2P device discovery process according to one or more embodiments of the present application. As shown in FIG. 25 , in the device discovery phase of P2P pairing, the P2P mobile terminal 100A and The display device 200 should constantly switch between scanning and monitoring on channels 1, 6, and 11. When the mobile terminal 100A and the display device 200 happen to be in the same channel, and the mobile terminal 100A scans, that is, sends a detection request, and displays the When the device 200 monitors the detection request sent by the mobile terminal 100A, the display device 200 responds to the detection request and replies to the detection response to complete the device discovery process (this process can also be performed by the display device 200 under the same channel). scanning, the mobile terminal 100A monitors). Based on the above process requirements of the device discovery stage, if the user is to perform screen projection at any time, the background of the display device 200 needs to continuously perform P2P scanning and monitoring, which will cause the channel to keep on 1, 6, 11. Switching greatly affects the normal use of WLAN ports. It not only occupies antenna resources, but also frequently switches channels, which increases network latency and makes the network more stuck. To this end, the following solutions are proposed, multiple working modes are set, and corresponding working modes are selected according to different situations.
在一些实施例中,图26为根据本申请一个或多个实施例的在以网络传输为主的模式中一种时长的调整流程,如图26所示,当一些依赖网络的应用如下载应用、音频应用、视频应用等进行网络数据的请求时,网络数据请求经由框架层和核心层传输至驱动模块,驱动模块由此确定显示设备所处的传输模式为以网络为主的模式,并发送第一传输时长调 整指令至无线通讯固件如WiFi固件。In some embodiments, FIG. 26 is a process of adjusting a duration in a network transmission-based mode according to one or more embodiments of the present application. As shown in FIG. 26 , when some network-dependent applications such as download applications , audio applications, video applications, etc. request network data, the network data request is transmitted to the driver module through the framework layer and the core layer, and the driver module determines that the transmission mode of the display device is the network-based mode, and sends The first transmission duration adjustment command is sent to wireless communication firmware such as WiFi firmware.
在一些实施例中,第一传输时长调整指令可以为具体的时长分配指令,也可为如图8中所示的△t调整指令,△t为网络传输和投屏传输所占的时间片的差值。以无线通讯模块提供的传输时间片为1s为例,当第一传输时长调整指令为△t=800时,WiFi固件根据第一传输时长调整指令确定为网络传输提供传输服务的第一传输时长为900ms,为投屏传输提供传输服务的第二传输时长为100ms。因此在每一秒钟的900ms内进行网络传输,WLAN端口进行数据包的收发,数据包经由驱动模块、核心层和框架层传输至网络应用。In some embodiments, the first transmission duration adjustment instruction may be a specific duration allocation instruction, or may be a Δt adjustment instruction as shown in FIG. 8 , where Δt is the difference between the time slice occupied by network transmission and screencast transmission. difference. Taking the transmission time slice provided by the wireless communication module as 1s as an example, when the first transmission duration adjustment command is Δt=800, the WiFi firmware determines the first transmission duration to provide transmission services for network transmission according to the first transmission duration adjustment command: 900ms, and the second transmission duration for providing transmission services for screencast transmission is 100ms. Therefore, network transmission is performed within 900ms of each second, and the WLAN port transmits and receives data packets, and the data packets are transmitted to the network application through the driver module, the core layer and the framework layer.
在一些实施例中,显示设备还包括检测模块225,用于检测网络传输质量并根据传输质量触发驱动模块。在以网络传输为主的模式时,检测模块为驱动模块。当网络环境变差,检测模块检测到WiFi丢包率变高,延时高于预设阈值时,并将丢包命令发送至驱动模块,驱动模块可通过第三传输时长调整指令对△t大小进行强制调整,逐步调节△t,例如以10ms为单位逐步增加△t的绝对值,通过不断的比对WLAN的延时,直到调整到满足WLAN基本收发包的水平(例如延时低于200ms),同时保证P2P占用天线的时间不会影响到P2P的正常监听,例如不低于50ms/1s。例如,当驱动模块检测到延时高于预设阈值时,调整△t=810,则WiFi固件确定为网络传输提供传输服务的第一传输时长为905ms,为投屏传输提供传输服务的第二传输时长为95ms。若延时依然高于预设阈值,则调整△t=820,依此类推。In some embodiments, the display device further includes a detection module 225 for detecting network transmission quality and triggering the driving module according to the transmission quality. In the network transmission-based mode, the detection module is the drive module. When the network environment deteriorates, the detection module detects that the WiFi packet loss rate becomes higher and the delay is higher than the preset threshold, it sends the packet loss command to the driver module, and the driver module can adjust the command to the size of Δt through the third transmission duration Make mandatory adjustment and gradually adjust Δt, for example, gradually increase the absolute value of Δt in units of 10ms, and continuously compare the delay of WLAN until it is adjusted to the level that satisfies the basic sending and receiving packets of WLAN (for example, the delay is lower than 200ms) , and at the same time ensure that the time that P2P occupies the antenna will not affect the normal monitoring of P2P, for example, not less than 50ms/1s. For example, when the driver module detects that the delay is higher than the preset threshold and adjusts Δt=810, the WiFi firmware determines that the first transmission duration for network transmission is 905ms, and the second transmission duration for screencast transmission is determined to be 905ms. The transmission time is 95ms. If the delay is still higher than the preset threshold, adjust Δt=820, and so on.
在一些实施例中,图27为根据本申请一个或多个实施例的一种可能的P2P的设备发现流程,如图27所示,结合显示设备的使用场景,因此将显示设备的P2P发现设备阶段的扫描和监听更改为只在固定信道(如1、6、11中选一)进行监听,这样可以减少信道切换导致的天线资源占用,同时由于显示设备一直处于监听状态,所以也可以提高P2P发现设备的效率。In some embodiments, FIG. 27 is a possible P2P device discovery process according to one or more embodiments of the present application. As shown in FIG. 27 , combined with the usage scenario of the display device, the P2P device discovery device of the display device is The scanning and monitoring of the stage is changed to monitoring only on fixed channels (such as 1, 6, and 11), which can reduce the occupation of antenna resources caused by channel switching. At the same time, because the display device is always in the monitoring state, it can also improve the P2P discovery. equipment efficiency.
在一些实施例中,图28为根据本申请一个或多个实施例的在以投屏传输为主的模式中一种时长的调整流程,如图28所示,在为投屏传输提供传输服务的第二传输时长内,如在投屏应用发起P2P监听时,监听命令经由框架层、适配层和驱动模块传输至WiFi固件,WiFi固件切换到监听信道如信道6进行监听。In some embodiments, FIG. 28 is a process of adjusting a duration in a mode mainly based on screen projection transmission according to one or more embodiments of the present application. As shown in FIG. 28 , when providing transmission services for screen projection transmission Within the second transmission duration of , for example, when the screen-casting application initiates P2P monitoring, the monitoring command is transmitted to the WiFi firmware via the framework layer, the adaptation layer and the driver module, and the WiFi firmware switches to the monitoring channel such as channel 6 for monitoring.
在一些实施例中,WiFi固件监听时,收到了P2P的探测请求,将探测请求发送至驱动模块,驱动模块从中解析出包含P2P IE信息的报文,由此确定显示设备所处的传输模式为投屏为主的模式。In some embodiments, when the WiFi firmware is monitoring, a P2P detection request is received, and the detection request is sent to the driver module, and the driver module parses the message containing the P2P IE information, thereby determining that the transmission mode of the display device is Screen-based mode.
在一些实施例中,驱动模块确定显示设备所处的传输模式为投屏为主的模式后,发送第二传输时长调整指令至WiFi固件。在一些实施例中,第二传输时长调整指令可以为具体的时长分配指令,也可为△t调整指令,△t为网络传输和投屏传输所占的时间片的差值。以无线通讯模块提供的传输时间片为1s为例,第二传输时长调整指令为△t=-600时,WiFi固件根据时长调整指令确定为网络传输提供传输服务的第一传输时长为200ms,为投屏传输提供传输服务的第二传输时长为800ms。In some embodiments, the driving module sends a second transmission duration adjustment instruction to the WiFi firmware after determining that the transmission mode in which the display device is located is the screen-casting mode. In some embodiments, the second transmission duration adjustment instruction may be a specific duration allocation instruction, or may be an Δt adjustment instruction, where Δt is the difference between the time slices occupied by network transmission and screen projection transmission. Taking the transmission time slice provided by the wireless communication module as 1s as an example, when the second transmission duration adjustment command is Δt=-600, the WiFi firmware determines the first transmission duration to provide transmission services for network transmission according to the duration adjustment command to be 200ms, which is The second transmission duration for the screencast transmission to provide the transmission service is 800ms.
因此在每一秒钟的800ms内进行投屏传输,P2P端口进行数据包的收发,数据包经由驱动模块、适配层和框架层传输至投屏应用。如果是视频数据,则可通过投屏应用进行播放。Therefore, the screen projection transmission is performed within 800ms of each second, and the P2P port sends and receives data packets, and the data packets are transmitted to the screen projection application through the driver module, the adaptation layer and the framework layer. If it is video data, it can be played through the screen casting application.
在一些实施例中,在以投屏传输为主的模式时,检测模块为投屏应用。当投屏应用检测到P2P丢包率变高,超过预设阈值,例如丢包数量超过100包,此时投屏会表现出花瓶 卡顿问题。投屏应用会将丢包命令发送至驱动模块,驱动模块可通过第三传输时长调整指令对△t大小进行强制调整,逐步调节△t,例如以10ms为单位逐步增加△T的绝对值,通过不断的比对投屏的丢包率,直到调整到满足P2P基本收发包的水平,同时保证WLAN占用天线的时间不会影响到网络传输的正常进行,例如不低于50ms/1s。上述实施例以P2P投屏为例,也可应用至其他投屏技术,对此不作限制。In some embodiments, the detection module is a screen-casting application when the screen-casting transmission is the main mode. When the screencasting application detects that the P2P packet loss rate has increased and exceeds the preset threshold, for example, the number of lost packets exceeds 100 packets, the screencasting will show a vase freeze problem. The screen-casting application will send the packet loss command to the driver module, and the driver module can forcefully adjust the size of Δt through the third transmission duration adjustment command, and gradually adjust Δt, for example, gradually increase the absolute value of ΔT in units of 10ms, and pass Constantly compare the packet loss rate of the screen projection until it is adjusted to the level that meets the basic P2P sending and receiving packets, and at the same time ensure that the time that the WLAN occupies the antenna will not affect the normal progress of network transmission, for example, not less than 50ms/1s. The above embodiment takes P2P screen projection as an example, and can also be applied to other screen projection technologies, which is not limited thereto.
通过对网络传输和投屏传输划分时间片,使网络传输和投屏传输在各自的时间片工作,从而解决了二者互相争抢资源的问题,保证了网络传输和投屏的有序性的同时,提高了显示设备的工作效率。By dividing the network transmission and screen projection transmission into time slices, the network transmission and the screen projection transmission work in their respective time slices, thus solving the problem of competition between the two for resources and ensuring the orderly and orderly network transmission and screen projection. At the same time, the working efficiency of the display device is improved.
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述在一些实施例中讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理以及实际的应用,从而使得本领域技术人员更好的使用实施方式以及适于具体使用考虑的各种不同的变形的实施方式。For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above discussion in some embodiments is not intended to be exhaustive or to limit implementations to the specific forms disclosed above. Numerous modifications and variations are possible in light of the above teachings. The above embodiments have been chosen and described to better explain the principles and practical applications, so as to enable those skilled in the art to better utilize the embodiments and various modified embodiments suitable for specific use considerations.

Claims (10)

  1. 一种显示设备,包括:A display device comprising:
    显示器;monitor;
    通信器,被配置为与移动终端建立投屏连接;a communicator, configured to establish a screen-casting connection with the mobile terminal;
    蓝牙模块,被配置为传递音频数据流;a Bluetooth module, configured to pass audio data streams;
    控制器,被配置为:Controller, configured as:
    接收移动终端发送的投屏连接请求;Receive a screencast connection request sent by the mobile terminal;
    响应于所述投屏连接请求,检测投屏应用类型;In response to the screen-casting connection request, detecting the screen-casting application type;
    如果所述投屏应用类型为第三方应用,通过所述蓝牙模块连接所述移动终端,以获取音频数据流。If the type of the screen projection application is a third-party application, connect the mobile terminal through the Bluetooth module to obtain an audio data stream.
  2. 根据权利要求1所述的显示设备,所述控制器被进一步配置为:The display device of claim 1, the controller is further configured to:
    检测投屏应用类型的步骤中,如果所述投屏应用类型为系统应用,通过系统投屏协议与所述移动终端建立投屏连接,以传递视频数据流和音频数据流;In the step of detecting the screen-casting application type, if the screen-casting application type is a system application, a screen-casting connection is established with the mobile terminal through the system screen-casting protocol to transmit the video data stream and the audio data stream;
    如果所述投屏应用类型为第三方应用,通过应用投屏协议与所述移动终端建立投屏连接,以传递视频数据流。If the type of the screen-casting application is a third-party application, a screen-casting connection is established with the mobile terminal through an application screen-casting protocol to transmit the video data stream.
  3. 根据权利要求1所述的显示设备,所述控制器被进一步配置为:The display device of claim 1, the controller is further configured to:
    检测投屏应用类型的步骤中,获取所述投屏应用的包名信息;In the step of detecting the screen-casting application type, obtain the package name information of the screen-casting application;
    从所述包名信息中提取判断属性值;Extract the judgment attribute value from the package name information;
    如果所述判断属性值等于0,标记所述投屏应用为第三方应用;If the judging attribute value is equal to 0, marking the screen-casting application as a third-party application;
    如果所述判断属性值不等于0,标记所述投屏应用为系统应用。If the judgment attribute value is not equal to 0, the screen projection application is marked as a system application.
  4. 根据权利要求1所述的显示设备,所述控制器被进一步配置为:The display device of claim 1, the controller is further configured to:
    通过所述蓝牙模块连接所述移动终端的步骤中,通过应用投屏协议向所述移动终端发送显示设备地址信息,以使所述移动终端根据所述地址信息执行蓝牙配对;In the step of connecting the mobile terminal through the bluetooth module, the display device address information is sent to the mobile terminal through the application screen projection protocol, so that the mobile terminal performs bluetooth pairing according to the address information;
    接收所述移动终端通过蓝牙传输协议发送的配对请求;receiving a pairing request sent by the mobile terminal through the Bluetooth transmission protocol;
    响应于所述配对请求,设置所述蓝牙模块为接收模式,以及与所述移动终端建立蓝牙连接。In response to the pairing request, the Bluetooth module is set to receive mode, and a Bluetooth connection is established with the mobile terminal.
  5. 根据权利要求4所述的显示设备,所述控制器被进一步配置为:The display device of claim 4, the controller is further configured to:
    过所述蓝牙模块连接所述移动终端的步骤中,检测所述蓝牙模块的开关状态;In the step of connecting the mobile terminal through the bluetooth module, the switch state of the bluetooth module is detected;
    如果所述开关状态为开启,执行所述获取地址信息的步骤;If the switch state is on, execute the step of acquiring address information;
    如果所述开关状态为关闭,向所述蓝牙模块发送开启指令,以启用所述蓝牙模块。If the switch state is off, an on command is sent to the bluetooth module to enable the bluetooth module.
  6. 根据权利要求1所述的显示设备,所述控制器被进一步配置为:The display device of claim 1, the controller is further configured to:
    通过所述蓝牙模块连接所述移动终端的步骤后,通过所述蓝牙模块获取所述移动终端中的音频数据流;After the step of connecting the mobile terminal through the bluetooth module, obtain the audio data stream in the mobile terminal through the bluetooth module;
    通过所述通信器获取所述移动终端中的视频数据流;Obtain the video data stream in the mobile terminal through the communicator;
    同步播放所述音频数据流和所述视频数据流。The audio data stream and the video data stream are played synchronously.
  7. 一种移动终端,包括:A mobile terminal, comprising:
    显示单元;Display unit;
    通信单元,被配置为与显示设备建立投屏连接;a communication unit, configured to establish a screen projection connection with the display device;
    蓝牙电路,被配置为传输音频数据流;Bluetooth circuitry configured to transmit audio data streams;
    处理器,被配置为:The processor, configured as:
    获取用户输入的用于建立投屏连接的控制指令;Obtain the control command input by the user for establishing a screen-casting connection;
    响应于所述控制指令,通过所述通信单元向所述显示设备发送投屏连接请求;In response to the control instruction, send a screen projection connection request to the display device through the communication unit;
    检测投屏应用类型;Detect the type of screencasting application;
    如果所述投屏应用类型为第三方应用,通过蓝牙电路连接所述显示设备,以发送音频数据流。If the type of the screen projection application is a third-party application, connect the display device through a Bluetooth circuit to send an audio data stream.
  8. 根据权利要求7所述的移动终端,所述处理器被进一步配置为:The mobile terminal of claim 7, the processor is further configured to:
    通过蓝牙电路连接所述显示设备的步骤中,通过应用投屏协议接收显示设备地址信息;In the step of connecting the display device through the Bluetooth circuit, receiving the address information of the display device through the application screen projection protocol;
    执行设备扫描,以生成扫描列表;perform a device scan to generate a scan list;
    根据所述地址信息在所述扫描列表中查找目标显示设备;Find a target display device in the scan list according to the address information;
    设置所述蓝牙电路为发送模式,以及通过蓝牙传输协议向所述目标显示设备发送配对请求。The bluetooth circuit is set to a sending mode, and a pairing request is sent to the target display device through a bluetooth transmission protocol.
  9. 一种投屏数据传输方法,包括:A method for transmitting screen projection data, comprising:
    移动终端获取用户输入的用于建立投屏连接的控制指令,以及根据所述控制指令向显示设备发送投屏连接请求;The mobile terminal acquires a control instruction input by the user for establishing a screen-casting connection, and sends a screen-casting connection request to the display device according to the control instruction;
    显示设备接收所述投屏连接请求;以及根据所述投屏连接请求与所述移动终端建立投屏连接;The display device receives the screen projection connection request; and establishes a screen projection connection with the mobile terminal according to the screen projection connection request;
    移动终端和/或显示设备检测投屏应用类型;The mobile terminal and/or display device detects the type of screencasting application;
    如果所述投屏应用类型为第三方应用,在所述移动终端与所述显示设备之间建立蓝牙连接,以传递音频数据流。If the type of the screen-casting application is a third-party application, a Bluetooth connection is established between the mobile terminal and the display device to transmit an audio data stream.
  10. 一种投屏数据传输系统,包括移动终端和显示设备;其中,所述移动终端内置通信单元和蓝牙电路;所述显示设备内置通信器和蓝牙模块;A screen projection data transmission system, comprising a mobile terminal and a display device; wherein, the mobile terminal has a built-in communication unit and a Bluetooth circuit; the display device has a built-in communicator and a Bluetooth module;
    所述移动终端被配置为:获取用户输入的用于建立投屏连接的控制指令,以及根据所述控制指令向显示设备发送投屏连接请求;The mobile terminal is configured to: obtain a control instruction input by the user for establishing a screen-casting connection, and send a screen-casting connection request to the display device according to the control instruction;
    所述显示设备被配置为:接收所述投屏连接请求;以及根据所述投屏连接请求与所述移动终端建立投屏连接;The display device is configured to: receive the screen-casting connection request; and establish a screen-casting connection with the mobile terminal according to the screen-casting connection request;
    所述移动终端和/或所述显示设备还被配置为:检测投屏应用类型;如果所述投屏应用类型为第三方应用,在所述移动终端与所述显示设备之间建立蓝牙连接,以传递音频数据流。The mobile terminal and/or the display device are further configured to: detect a screen-casting application type; if the screen-casting application type is a third-party application, establish a Bluetooth connection between the mobile terminal and the display device, to pass the audio data stream.
PCT/CN2021/119051 2020-10-27 2021-09-17 Display device, mobile terminal, screen-casting data transmission method, and transmission system WO2022089088A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202011163037.8A CN112367543B (en) 2020-10-27 2020-10-27 Display device, mobile terminal, screen projection method and screen projection system
CN202011163037.8 2020-10-27
CN202011517483.4 2020-12-21
CN202011517483.4A CN114286165B (en) 2020-12-21 2020-12-21 Display equipment, mobile terminal, and screen-throwing data transmission method and system
CN202110175799.8 2021-02-09
CN202110175799.8A CN112954419B (en) 2021-02-09 2021-02-09 Display device and display method

Publications (1)

Publication Number Publication Date
WO2022089088A1 true WO2022089088A1 (en) 2022-05-05

Family

ID=81381879

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119051 WO2022089088A1 (en) 2020-10-27 2021-09-17 Display device, mobile terminal, screen-casting data transmission method, and transmission system

Country Status (1)

Country Link
WO (1) WO2022089088A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598414A (en) * 2022-05-09 2022-06-07 荣耀终端有限公司 Time slice configuration method and electronic equipment
CN114979756A (en) * 2022-05-13 2022-08-30 北京字跳网络技术有限公司 Method, device and equipment for realizing one-to-many independent screen projection display and interaction
CN115442653A (en) * 2022-07-27 2022-12-06 苏州华启智能科技有限公司 Wireless screen projection method and device and electronic equipment
CN115460442A (en) * 2022-08-11 2022-12-09 北京罗克维尔斯科技有限公司 Screen projection switching method and device, electronic equipment, readable storage medium and vehicle
CN115550498A (en) * 2022-08-03 2022-12-30 阿波罗智联(北京)科技有限公司 Screen projection method, device, equipment and storage medium
CN116208796A (en) * 2022-12-30 2023-06-02 深圳创维-Rgb电子有限公司 Screen projection control method, screen projection control device, processor and screen projection system
WO2023116545A1 (en) * 2021-12-22 2023-06-29 杭州逗酷软件科技有限公司 Device interconnection method, and apparatuses, terminal devices and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160188279A1 (en) * 2014-12-27 2016-06-30 Intel Corporation Mode-switch protocol and mechanism for hybrid wireless display system with screencasting and native graphics throwing
CN108337667A (en) * 2018-02-12 2018-07-27 武汉卡比特信息有限公司 Mobile phone is throwing the device and method for shielding connection status bluetooth automatic matching and connecting with vehicle-mounted display terminal
CN109275130A (en) * 2018-09-13 2019-01-25 锐捷网络股份有限公司 A kind of throwing screen method, apparatus and storage medium
CN110996019A (en) * 2019-12-25 2020-04-10 深圳市创维群欣安防科技股份有限公司 Screen projection method and system based on wireless transmission and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160188279A1 (en) * 2014-12-27 2016-06-30 Intel Corporation Mode-switch protocol and mechanism for hybrid wireless display system with screencasting and native graphics throwing
CN108337667A (en) * 2018-02-12 2018-07-27 武汉卡比特信息有限公司 Mobile phone is throwing the device and method for shielding connection status bluetooth automatic matching and connecting with vehicle-mounted display terminal
CN109275130A (en) * 2018-09-13 2019-01-25 锐捷网络股份有限公司 A kind of throwing screen method, apparatus and storage medium
CN110996019A (en) * 2019-12-25 2020-04-10 深圳市创维群欣安防科技股份有限公司 Screen projection method and system based on wireless transmission and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116545A1 (en) * 2021-12-22 2023-06-29 杭州逗酷软件科技有限公司 Device interconnection method, and apparatuses, terminal devices and computer-readable storage medium
CN114598414A (en) * 2022-05-09 2022-06-07 荣耀终端有限公司 Time slice configuration method and electronic equipment
CN114598414B (en) * 2022-05-09 2022-09-27 荣耀终端有限公司 Time slice configuration method and electronic equipment
CN114979756A (en) * 2022-05-13 2022-08-30 北京字跳网络技术有限公司 Method, device and equipment for realizing one-to-many independent screen projection display and interaction
CN115442653A (en) * 2022-07-27 2022-12-06 苏州华启智能科技有限公司 Wireless screen projection method and device and electronic equipment
CN115550498A (en) * 2022-08-03 2022-12-30 阿波罗智联(北京)科技有限公司 Screen projection method, device, equipment and storage medium
CN115550498B (en) * 2022-08-03 2024-04-02 阿波罗智联(北京)科技有限公司 Screen projection method, device, equipment and storage medium
CN115460442A (en) * 2022-08-11 2022-12-09 北京罗克维尔斯科技有限公司 Screen projection switching method and device, electronic equipment, readable storage medium and vehicle
CN115460442B (en) * 2022-08-11 2024-02-20 北京罗克维尔斯科技有限公司 Screen switching method and device, electronic equipment, readable storage medium and vehicle
CN116208796A (en) * 2022-12-30 2023-06-02 深圳创维-Rgb电子有限公司 Screen projection control method, screen projection control device, processor and screen projection system

Similar Documents

Publication Publication Date Title
WO2022089088A1 (en) Display device, mobile terminal, screen-casting data transmission method, and transmission system
US10205914B2 (en) Wireless video camera and connection methods including multiple video or audio streams
EP3799404B1 (en) Device capable of notifying operation state change thereof through network and communication method of the device
US20230039861A1 (en) Projection Connection Control Method And Electronic Device
US20220239718A1 (en) Communication Protocol Switching Method, Apparatus, and System
US10659535B2 (en) Methods, systems, and devices for multiplexing service information from sensor data
CN111984215A (en) Multimedia data playing method, terminal and storage medium
US20140075039A1 (en) Networking method, server device, client device, and network system
US9813753B2 (en) Core device, audio/video control system, portable terminal device, audio/video control program, and audio/video control method
CN114286165B (en) Display equipment, mobile terminal, and screen-throwing data transmission method and system
CN105100848A (en) Intelligent equipment, and intelligent equipment control system and realization method thereof
CN111818669A (en) Mobile terminal and data transmission method thereof
CN111050198A (en) Display device and switching method of Bluetooth audio device
JP2009130876A (en) Terminal cooperation continuation viewing-and-listening system, terminal, server, and method
CN105187871A (en) NFC-based data transmission method for mobile terminal and television terminal and system thereof
CN108605057B (en) Display device, user terminal device, system, and control method thereof
JP2009065305A (en) Terminal cooperation system for seamless viewing and listening, terminal, server, and method
CN113691790A (en) Multimedia data processing method and device, electronic equipment and storage medium
EP2787740A1 (en) Control of a multimedia output device by a multimedia communication apparatus connected via a router
WO2022242328A1 (en) Method for playback in split screen and display device
WO2022088899A1 (en) Display device, communication method between display device and external loudspeaker, and audio output method for external loudspeaker
US11954401B2 (en) Method for selecting audio output device, and display apparatus
US20240146996A1 (en) Display device and control method therefor
CN111448784B (en) Information processing apparatus, information processing method, and information processing system
JP2017062791A (en) Display device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21884818

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21884818

Country of ref document: EP

Kind code of ref document: A1