[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

TWI826203B - Computer device and display device - Google Patents

Computer device and display device Download PDF

Info

Publication number
TWI826203B
TWI826203B TW111149730A TW111149730A TWI826203B TW I826203 B TWI826203 B TW I826203B TW 111149730 A TW111149730 A TW 111149730A TW 111149730 A TW111149730 A TW 111149730A TW I826203 B TWI826203 B TW I826203B
Authority
TW
Taiwan
Prior art keywords
portable electronic
electronic device
display
software package
screen
Prior art date
Application number
TW111149730A
Other languages
Chinese (zh)
Other versions
TW202427216A (en
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
Application filed by 技嘉科技股份有限公司 filed Critical 技嘉科技股份有限公司
Application granted granted Critical
Publication of TWI826203B publication Critical patent/TWI826203B/en
Publication of TW202427216A publication Critical patent/TW202427216A/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • 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
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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 stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43632Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Position Input By Displaying (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A computer device is provided, which includes a storage device and a processing unit. The storage device stores a screen-mirroring program. The processing unit executes the screen-mirroring program to perform the following steps: in response to detecting that a portable electronic device is connected to the computer device, pushing a software archive to the portable electronic device for automatic execution; receiving a video stream from the portable electronic device, wherein the video stream includes a screen image of the portable electronic device; decoding the video stream and performing image rendering on the decoded image to obtain the screen image that is displayed on the display device; receiving an input command from an input device connected to the computer device, and converting the input command to a control command used by the portable electronic device according to a key setting interface corresponding to an application executed by the portable electronic device.

Description

電腦裝置及顯示裝置Computer devices and display devices

本發明係有關於螢幕鏡像技術,特別是有關於一種電腦裝置及顯示裝置。The present invention relates to screen mirroring technology, and in particular to a computer device and a display device.

因為科技進步,市面上已有許多手機畫面投射軟體以供使用者將其可攜式電子裝置的螢幕畫面投射至顯示器或電視上。然而,傳統的手機畫面投射軟體需要使用者在其可攜式電子裝置上安裝相關的應用程式,此方式除了使用者需進行複雜的操作步驟之外,還有應用程式版本更新的問題。此外,傳統的手機畫面投射軟體需完成功能調用同步,造成訊號傳輸未完成時,軟體會一直等待訊號到來,進而造成指令操作上的延遲。Due to the advancement of technology, there are many mobile phone screen projection software on the market that allow users to project the screen of their portable electronic devices onto a monitor or TV. However, traditional mobile phone screen projection software requires users to install related applications on their portable electronic devices. In addition to complicated operating steps, this method also has the problem of updating application versions. In addition, traditional mobile phone screen projection software needs to complete function call synchronization. As a result, when the signal transmission is not completed, the software will wait for the signal to arrive, thus causing a delay in command operations.

再者,傳統的手機畫面投射軟體僅支援訊號傳輸,且使用者無法自行定義鍵盤及滑鼠的操作功能映射,對於以觸控點擊為主的手機遊戲無法完整對應。Furthermore, traditional mobile phone screen projection software only supports signal transmission, and users cannot define their own keyboard and mouse operation function mapping, which cannot fully support mobile games that are mainly touch and click.

有鑑於此,本發明係提供一種電腦裝置及顯示裝置以解決上述問題。In view of this, the present invention provides a computer device and a display device to solve the above problems.

本發明係提供一種電腦裝置,包括:一儲存裝置及一處理單元。該儲存裝置用以儲存一螢幕鏡像程式。該處理單元用以執行該螢幕鏡像程式以執行下列步驟:因應於偵測到一可攜式電子裝置連接至該電腦裝置,推送一軟體包至該可攜式電子裝置以在該可攜式電子裝置自動執行該軟體包;從該可攜式電子裝置接收一視訊流,其中該視訊流包括該可攜式電子裝置之螢幕畫面;解碼該視訊流並對解碼所得到的影像進行渲染處理以得到該螢幕畫面,並將該螢幕畫面在一顯示裝置上播放;以及接收連接至該電腦裝置之輸入裝置之輸入指令,並依據該可攜式電子裝置所執行之一應用程式相應的按鍵設定介面將該輸入指令轉換為該可攜式電子裝置所使用的控制指令。The invention provides a computer device, which includes a storage device and a processing unit. The storage device is used to store a screen mirroring program. The processing unit is used to execute the screen mirroring program to perform the following steps: in response to detecting that a portable electronic device is connected to the computer device, pushing a software package to the portable electronic device to perform the following steps on the portable electronic device: The device automatically executes the software package; receives a video stream from the portable electronic device, wherein the video stream includes a screen image of the portable electronic device; decodes the video stream and renders the decoded image to obtain the screen image, and playing the screen image on a display device; and receiving input commands from the input device connected to the computer device, and according to the corresponding key setting interface of an application executed by the portable electronic device. The input command is converted into a control command used by the portable electronic device.

在一些實施例中,該可攜式電子裝置之通用序列匯流排(USB)偵錯模式開啟,且該可攜式電子裝置係透過USB連線以連接至該電腦裝置。In some embodiments, the universal serial bus (USB) debug mode of the portable electronic device is enabled, and the portable electronic device is connected to the computer device through a USB connection.

在一些實施例中,該可攜式電子裝置所執行的該軟體包從該可攜式電子裝置之播放影像緩衝器取得該螢幕畫面,並將該螢幕畫面編碼為該視訊流。In some embodiments, the software package executed by the portable electronic device obtains the screen image from the playback image buffer of the portable electronic device and encodes the screen image into the video stream.

在一些實施例中,該輸入指令包括按鍵碼、文字碼、滑鼠信號、捲動信號及觸控信號。In some embodiments, the input instructions include key codes, text codes, mouse signals, scroll signals and touch signals.

在一些實施例中,該可攜式電子裝置所執行的該軟體包係將該控制指令傳送至該可攜式電子裝置的觸屏檔以模擬該輸入指令相關的觸控操作,並且在該應用程式執行該觸控操作。In some embodiments, the software package executed by the portable electronic device transmits the control command to the touch screen of the portable electronic device to simulate the touch operation related to the input command, and in the application The program performs the touch operation.

在一些實施例中,當該可攜式電子裝置偵測到該可攜式電子裝置與該電腦裝置之連接斷開時,該可攜式電子裝置係自動刪除該軟體包。In some embodiments, when the portable electronic device detects that the connection between the portable electronic device and the computer device is disconnected, the portable electronic device automatically deletes the software package.

本發明更提供一種顯示裝置,包括:一顯示模組;一通用序列匯流排(USB)集線器,連接至一或多個輸入設備;以及一顯示控制器,用以執行下列步驟:因應於偵測到一可攜式電子裝置連接至該USB集線器,透過該USB集線器推送一軟體包至該可攜式電子裝置以在該可攜式電子裝置自動執行該軟體包;透過該USB集線器從該可攜式電子裝置接收一視訊流,其中該視訊流包括該可攜式電子裝置之螢幕畫面;解碼該視訊流並對解碼所得到的影像進行渲染處理以得到該螢幕畫面,並將該螢幕畫面在該顯示模組上播放;以及透過該USB集線器接收該輸入裝置之輸入指令,並依據該可攜式電子裝置所執行之一應用程式相應的按鍵設定介面將該輸入指令轉換為該可攜式電子裝置所使用的控制指令。The present invention further provides a display device, including: a display module; a universal serial bus (USB) hub connected to one or more input devices; and a display controller for performing the following steps: in response to detection Connect a portable electronic device to the USB hub, push a software package to the portable electronic device through the USB hub to automatically execute the software package on the portable electronic device; download the software package from the portable electronic device through the USB hub The portable electronic device receives a video stream, wherein the video stream includes a screen image of the portable electronic device; decodes the video stream and renders the decoded image to obtain the screen image, and displays the screen image on the portable electronic device. Play on the display module; and receive the input command from the input device through the USB hub, and convert the input command into the portable electronic device according to the corresponding key setting interface of an application executed by the portable electronic device. The control instructions used.

在一些實施例中,該可攜式電子裝置之通用序列匯流排(USB)偵錯模式開啟,且該可攜式電子裝置係透過USB連線以連接至該顯示裝置。In some embodiments, the universal serial bus (USB) debug mode of the portable electronic device is turned on, and the portable electronic device is connected to the display device through a USB connection.

在一些實施例中,該可攜式電子裝置所執行的該軟體包從該可攜式電子裝置之播放影像緩衝器取得該螢幕畫面,並將該螢幕畫面編碼為該視訊流。In some embodiments, the software package executed by the portable electronic device obtains the screen image from the playback image buffer of the portable electronic device and encodes the screen image into the video stream.

在一些實施例中,該輸入指令包括按鍵碼、文字碼、滑鼠信號、捲動信號及觸控信號。In some embodiments, the input instructions include key codes, text codes, mouse signals, scroll signals and touch signals.

在一些實施例中,該可攜式電子裝置所執行的該軟體包係將該控制指令傳送至該可攜式電子裝置的觸屏檔以模擬該輸入指令相關的觸控操作,並且在該應用程式執行該觸控操作。In some embodiments, the software package executed by the portable electronic device transmits the control command to the touch screen of the portable electronic device to simulate the touch operation related to the input command, and in the application The program performs the touch operation.

在一些實施例中,當該可攜式電子裝置偵測到該可攜式電子裝置與該電腦裝置之連接斷開時,該可攜式電子裝置係自動刪除該軟體包。In some embodiments, when the portable electronic device detects that the connection between the portable electronic device and the computer device is disconnected, the portable electronic device automatically deletes the software package.

為使本發明之上述目的、特徵和優點能更明顯易懂,下文特舉一較佳實施例,並配合所附圖式,作詳細說明如下。In order to make the above-mentioned objects, features and advantages of the present invention more clearly understandable, a preferred embodiment is given below and described in detail with reference to the accompanying drawings.

第1圖為依據本發明一實施例中之電子系統的方塊圖。電子系統1包括一電腦系統10及一可攜式電子裝置30。電腦系統10例如可為配備有顯示裝置的個人電腦或伺服器。如第1圖所示,電腦系統10包括一電腦裝置20及一顯示裝置40,其中電腦裝置20係訊號連接至顯示裝置40。電腦裝置20例如包括一處理單元110、一圖形處理單元120、一記憶體單元130、一儲存裝置140、傳輸介面150及160、鍵盤171及滑鼠172。處理單元110、圖形處理單元120、記憶體單元130、儲存裝置140、傳輸介面150、鍵盤171及滑鼠172係透過系統匯流排111而互相耦接。處理單元110例如可為中央處理器(CPU)、一般用途處理器(general-purpose processor)等等,但本發明並不限於此。圖形處理單元120例如可為一顯示卡上的圖形處理單元或是整合至處理單元110中之圖形處理單元。Figure 1 is a block diagram of an electronic system according to an embodiment of the present invention. The electronic system 1 includes a computer system 10 and a portable electronic device 30 . The computer system 10 may be, for example, a personal computer or a server equipped with a display device. As shown in FIG. 1 , the computer system 10 includes a computer device 20 and a display device 40 , wherein the computer device 20 is connected to the display device 40 via signals. The computer device 20 includes, for example, a processing unit 110, a graphics processing unit 120, a memory unit 130, a storage device 140, transmission interfaces 150 and 160, a keyboard 171 and a mouse 172. The processing unit 110 , the graphics processing unit 120 , the memory unit 130 , the storage device 140 , the transmission interface 150 , the keyboard 171 and the mouse 172 are coupled to each other through the system bus 111 . The processing unit 110 may be, for example, a central processing unit (CPU), a general-purpose processor, or the like, but the invention is not limited thereto. The graphics processing unit 120 may be, for example, a graphics processing unit on a display card or a graphics processing unit integrated into the processing unit 110 .

記憶體單元130為一隨機存取記憶體,例如是動態隨機存取記憶體(DRAM)或靜態隨機存取記憶體(SRAM),但本發明並不限於此。儲存裝置140為一非揮發性記憶體(non-volatile memory),例如可為一硬碟機(hard disk drive)、一固態硬碟(solid-state disk)、一快閃記憶體(flash memory)、或一唯讀記憶體(read-only memory),但本發明並不限於此。The memory unit 130 is a random access memory, such as a dynamic random access memory (DRAM) or a static random access memory (SRAM), but the invention is not limited thereto. The storage device 140 is a non-volatile memory, such as a hard disk drive, a solid-state disk, or a flash memory. , or a read-only memory, but the invention is not limited thereto.

傳輸介面160可包括有線傳輸介面及/或無線傳輸介面,其中有線傳輸介面可包括:高解析度多媒體介面(High Definition Multimedia Interface,HDMI)、顯示埠(DisplayPort,DP)介面、嵌入式顯示埠(embedded DisplayPort,eDP)、介面通用序列匯流排(Universal Serial Bus,USB)介面、USB Type-C介面、雷靂(Thunderbolt)介面、數位視訊介面(DVI)、視訊圖形陣列(VGA)介面、一般用途輸入輸出(GPIO)介面、通用非同步收發傳輸器(UART)介面、序列周邊介面(SPI)介面、積體電路匯流排(I2C)介面、或其組合,且無線傳輸介面可包括:藍芽(Bluetooth)、WiFi、近場通訊(NFC)介面等等,但本發明並不限於此。周邊裝置160例如包括:鍵盤、滑鼠、觸控板等輸入裝置,但本發明並不限於此。The transmission interface 160 may include a wired transmission interface and/or a wireless transmission interface, where the wired transmission interface may include: a High Definition Multimedia Interface (HDMI), a DisplayPort (DP) interface, an embedded display port ( embedded DisplayPort (eDP), Universal Serial Bus (USB) interface, USB Type-C interface, Thunderbolt (Thunderbolt) interface, Digital Video Interface (DVI), Video Graphics Array (VGA) interface, general purpose Input and output (GPIO) interface, Universal Asynchronous Transceiver and Transmitter (UART) interface, Serial Peripheral Interface (SPI) interface, Integrated Circuit Bus (I2C) interface, or a combination thereof, and the wireless transmission interface may include: Bluetooth ( Bluetooth), WiFi, near field communication (NFC) interface, etc., but the invention is not limited thereto. Peripheral devices 160 include, for example, input devices such as keyboards, mice, and touch pads, but the invention is not limited thereto.

舉例來說,儲存裝置140可儲存螢幕鏡像程式141及作業系統142(例如可為Windows、Linux、MacOS等等),且處理單元110係將螢幕鏡像程式141及作業系統142讀取至記憶體單元130並執行。圖形處理單元120例如可進行處理單元110所執行之應用程式的繪圖處理以產生包括一或多張影像的一影像信號,並透過傳輸介面160將影像信號傳送至顯示裝置40進行播放。顯示裝置40例如可為平面顯示器、電視、投影機、電腦螢幕等裝置,但本發明並不限於此。For example, the storage device 140 can store the screen mirroring program 141 and the operating system 142 (such as Windows, Linux, MacOS, etc.), and the processing unit 110 reads the screen mirroring program 141 and the operating system 142 into the memory unit. 130 and execute. For example, the graphics processing unit 120 can perform graphics processing on the application program executed by the processing unit 110 to generate an image signal including one or more images, and transmit the image signal to the display device 40 for playback through the transmission interface 160 . The display device 40 may be, for example, a flat-panel display, a television, a projector, a computer screen, etc., but the invention is not limited thereto.

可攜式電子裝置30包括處理單元210、觸控面板220、記憶體單元230、儲存裝置240及傳輸介面250。處理單元210例如可為中央處理器(CPU)、一般用途處理器(general-purpose processor)等等,但本發明並不限於此。觸控面板220例如可包含顯示面板221及觸控模組222。顯示面板221例如為一液晶顯示面板、發光二極體顯示面板或有機發光二極體顯示面板,但本發明並不限於此。觸控模組222例如可為一觸控單元陣列,其可與顯示面板221整合為觸控面板220。The portable electronic device 30 includes a processing unit 210, a touch panel 220, a memory unit 230, a storage device 240 and a transmission interface 250. The processing unit 210 may be, for example, a central processing unit (CPU), a general-purpose processor, or the like, but the invention is not limited thereto. The touch panel 220 may include a display panel 221 and a touch module 222, for example. The display panel 221 is, for example, a liquid crystal display panel, a light emitting diode display panel or an organic light emitting diode display panel, but the invention is not limited thereto. The touch module 222 can be, for example, a touch unit array, which can be integrated with the display panel 221 to form the touch panel 220 .

記憶體單元230為一隨機存取記憶體,例如是動態隨機存取記憶體(DRAM)或靜態隨機存取記憶體(SRAM),但本發明並不限於此。在一實施例中,記憶體單元230之一部分可做為播放影像緩衝器(display image buffer)231,其可暫存處理單元210所執行之應用程式241所產生的播放影像。The memory unit 230 is a random access memory, such as a dynamic random access memory (DRAM) or a static random access memory (SRAM), but the invention is not limited thereto. In one embodiment, a part of the memory unit 230 can be used as a display image buffer (display image buffer) 231, which can temporarily store display images generated by the application program 241 executed by the processing unit 210.

儲存裝置240為一非揮發性記憶體(non-volatile memory),例如可為一快閃記憶體(flash memory)或一唯讀記憶體(read-only memory),但本發明並不限於此。儲存裝置240例如儲存作業系統241(例如為Android作業系統)及應用程式242(例如為手機遊戲),但本發明並不限於此。The storage device 240 is a non-volatile memory, such as a flash memory or a read-only memory, but the invention is not limited thereto. The storage device 240 stores, for example, an operating system 241 (such as an Android operating system) and an application 242 (such as a mobile game), but the invention is not limited thereto.

在一實施例中,傳輸介面150及250例如均為USB Type-C介面,且電腦裝置20之傳輸介面150可透過USB資料線11以連接至可攜式電子裝置30之傳輸介面250。因此,電腦裝置20及可攜式電子裝置30可透過USB資料線11以互相傳送控制指令及視頻流,其細節將詳述於後。In one embodiment, the transmission interfaces 150 and 250 are both USB Type-C interfaces, for example, and the transmission interface 150 of the computer device 20 can be connected to the transmission interface 250 of the portable electronic device 30 through the USB data cable 11 . Therefore, the computer device 20 and the portable electronic device 30 can transmit control commands and video streams to each other through the USB data cable 11, the details of which will be described in detail later.

在一些實施例中,可攜式電子裝置30上所運作的作業系統241例如為Android作業系統,且電腦裝置20會執行螢幕鏡像程式141(亦可稱為手遊助手程式)。此外,假設作業系統241上的USB偵錯(debugging)模式已開啟,當使用者將USB資料線11連接至電腦裝置20之傳輸介面150及可攜式電子裝置30之傳輸介面250時,電腦裝置20上運作的螢幕鏡像程式141即會偵測到可攜式電子裝置30,且螢幕鏡像程式141會透過USB資料線11以將軟體包232推送(push)至可攜式電子裝置30,以使可攜式電子裝置30之處理單元210自動將該軟體包232載入記憶體單元230並執行。In some embodiments, the operating system 241 running on the portable electronic device 30 is, for example, the Android operating system, and the computer device 20 executes the screen mirroring program 141 (which can also be called a mobile game assistant program). In addition, assuming that the USB debugging mode on the operating system 241 is turned on, when the user connects the USB data cable 11 to the transmission interface 150 of the computer device 20 and the transmission interface 250 of the portable electronic device 30, the computer device The screen mirroring program 141 running on 20 will detect the portable electronic device 30, and the screen mirroring program 141 will push the software package 232 to the portable electronic device 30 through the USB data cable 11 to use The processing unit 210 of the portable electronic device 30 automatically loads the software package 232 into the memory unit 230 and executes it.

因為作業系統241之USB偵錯模式已開啟,故軟體包232可不必取得作業系統241之超級使用者(super user)或是根(root)使用者的權限即可取得播放影像緩衝器231之螢幕畫面,其中上述螢幕畫面例如為處理單元210執行應用程式242(例如可為一手機遊戲)所產生的遊戲畫面。接著,軟體包232係將取得的螢幕畫面編碼為視訊流(例如可透過FFmpeg工具程式),並透過USB資料線11以將視訊流傳送至電腦裝置20。Since the USB debugging mode of the operating system 241 is enabled, the software package 232 can obtain the screen of the video buffer 231 without obtaining the super user or root user rights of the operating system 241 The screen, for example, is a game screen generated by the processing unit 210 executing the application 242 (for example, a mobile game). Then, the software package 232 encodes the obtained screen image into a video stream (for example, through the FFmpeg tool program), and transmits the video stream to the computer device 20 through the USB data cable 11 .

當電腦裝置20接收到來自可攜式電子裝置30的視訊流後,處理單元110(或繪圖處理單元120)可對該視訊流進行解碼(例如可同樣使用FFmpeg工具程式)並對解碼所得的影像進行渲染處理(例如可使用OpenGL協定)以得到顯示影像。處理單元110並將上述顯示影像透過傳輸介面160傳送至顯示裝置40進行播放。After the computer device 20 receives the video stream from the portable electronic device 30, the processing unit 110 (or the graphics processing unit 120) can decode the video stream (for example, the FFmpeg tool program can also be used) and generate the decoded image. Perform rendering processing (for example, using the OpenGL protocol) to obtain a display image. The processing unit 110 transmits the above display image to the display device 40 through the transmission interface 160 for playback.

在一些實施例中,當可攜式電子裝置30所執行的軟體包232偵測到該可攜式電子裝置30與電腦裝置20之間的連結(例如為USB連線)斷開,可攜式電子裝置30會自動刪除軟體包232。In some embodiments, when the software package 232 executed by the portable electronic device 30 detects that the connection (such as a USB connection) between the portable electronic device 30 and the computer device 20 is disconnected, the portable electronic device 30 The electronic device 30 will automatically delete the software package 232 .

第2圖為依據本發明一實施例中之鍵盤及滑鼠的輸入指令轉換為相應的控制指令的示意圖。請同時參考第1圖及第2圖。Figure 2 is a schematic diagram of converting keyboard and mouse input commands into corresponding control commands according to an embodiment of the present invention. Please refer to Figure 1 and Figure 2 at the same time.

在一實施例,當可攜式電子裝置30正在運行軟體包232時,使用者亦可透過電腦裝置20上的鍵盤171及滑鼠172以控制在可攜式電子裝置30上的輸入操作或觸控操作。舉例來說,螢幕鏡像程式141可偵測並擷取在系統匯流排111上與鍵盤171、滑鼠172或其他輸入裝置(例如觸控螢幕)有關的輸入指令,並將上述輸入指令轉換為控制指令。舉例來說,上述輸入指令可包括按鍵碼(keycode)、文字碼(text)、滑鼠信號(mouse)、捲動信號(scroll)、觸控信號(touch),且螢幕鏡像程式141可將上述各類型的周邊裝置輸入信號分別轉換為控制指令201~205,如第2圖所示。In one embodiment, when the portable electronic device 30 is running the software package 232, the user can also control input operations or touch operations on the portable electronic device 30 through the keyboard 171 and mouse 172 on the computer device 20. control operation. For example, the screen mirroring program 141 can detect and capture input commands related to the keyboard 171, mouse 172, or other input devices (such as a touch screen) on the system bus 111, and convert the input commands into controls. instruction. For example, the above-mentioned input command may include keycode (keycode), text code (text), mouse signal (mouse), scroll signal (scroll), and touch signal (touch), and the screen mirroring program 141 may convert the above-mentioned Input signals from various types of peripheral devices are converted into control instructions 201 to 205, as shown in Figure 2.

舉例來說,按鍵碼相應的控制指令201包括類型(type)(例如類型=0)、安卓按鍵碼(AndroidKeycode)及安卓超狀態(AndroidMetaState)。文字碼相應的控制指令202包括類型(例如類型=1)、長度(len)及文字等欄位。滑鼠信號相應的控制指令203包括類型(例如類型=2)、安卓移動事件按鍵(AndroidMotionEventButtons)、X軸座標(x)、Y軸座標(y)、寬度(w)及高度(h)。捲動信號相應的控制指令204包括類型(例如類型=3)、X軸座標(x)、Y軸座標(y)、寬度(w)、高度(h)、水平捲動(hScroll)及垂直捲動(vScroll)。觸控信號相應的控制指令205包括類型(例如類型=5)、辨識符(id)、動作(action)、X軸座標(x)、Y軸座標(y)、寬度(w)、高度(h)等等。在上述控制指令中,各個欄位的數量例可用相應的位元組(byte)數量表示,例如控制指令203中的長度(len)欄位可用兩個位元組表示,文字(text)欄位則可用五個位元組表示,依此類推。For example, the control instruction 201 corresponding to the key code includes type (for example, type=0), Android key code (AndroidKeycode), and Android super state (AndroidMetaState). The control instruction 202 corresponding to the text code includes fields such as type (for example, type=1), length (len), and text. The control instructions 203 corresponding to the mouse signal include type (for example, type=2), AndroidMotionEventButtons, X-axis coordinate (x), Y-axis coordinate (y), width (w), and height (h). The control instructions 204 corresponding to the scroll signal include type (for example, type = 3), X-axis coordinate (x), Y-axis coordinate (y), width (w), height (h), horizontal scroll (hScroll), and vertical scroll. Move (vScroll). The control instruction 205 corresponding to the touch signal includes type (for example, type=5), identifier (id), action (action), X-axis coordinate (x), Y-axis coordinate (y), width (w), height (h) )etc. In the above control instructions, the quantity of each field can be represented by the corresponding number of bytes. For example, the length (len) field in the control instruction 203 can be represented by two bytes, and the text (text) field can be represented by two bytes. It can be represented by five bytes, and so on.

接著,處理單元110透過傳輸介面150及USB資料線11以將控制指令傳送至可攜式電子裝置30。當可攜式電子裝置30上運作的軟體包232接收到上述控制指令後,軟體包232可將上述控制指令模擬為在可攜式電子裝置30之的觸控螢幕260上的輸入操作或觸控操作(例如手指的點擊、滑動等操作)。詳細而言,軟體包232可將上述控制指令傳送至可攜式電子裝置30的觸屏檔(例如位於/dev/input/event目錄下)以模擬相應的觸控操作。Then, the processing unit 110 transmits the control command to the portable electronic device 30 through the transmission interface 150 and the USB data cable 11 . When the software package 232 running on the portable electronic device 30 receives the control command, the software package 232 can simulate the control command as an input operation or touch on the touch screen 260 of the portable electronic device 30 Operations (such as finger clicks, slides, etc.). Specifically, the software package 232 can transmit the above control instructions to the touch screen file (for example, located in the /dev/input/event directory) of the portable electronic device 30 to simulate the corresponding touch operation.

第3圖為依據本發明一實施例中之顯示系統的方塊圖。Figure 3 is a block diagram of a display system according to an embodiment of the present invention.

在一實施例中,顯示系統50包括顯示裝置300及電腦裝置450。顯示裝置300例如包括顯示控制器310、顯示模組320、儲存單元330、影像緩衝器340、傳輸介面350、輸入介面360及通用序列匯流排(USB)集線器370。顯示控制器310例如可為一應用導向積體電路(application-specific integrated circuit)、一晶片系統(System-on-chip)、一處理器、或一微控制器(microcontroller),但本發明並不限於此。In one embodiment, the display system 50 includes a display device 300 and a computer device 450 . The display device 300 includes, for example, a display controller 310, a display module 320, a storage unit 330, an image buffer 340, a transmission interface 350, an input interface 360 and a universal serial bus (USB) hub 370. The display controller 310 may be, for example, an application-specific integrated circuit, a system-on-chip, a processor, or a microcontroller, but the present invention does not Limited to this.

在一實施例中,顯示控制器310係包括一影像縮放器(image scaler)311及一時序控制器(timing controller)312。顯示控制器310係透過傳輸介面350以接收來自電腦裝置450或是可攜式電子裝置30的影像信號,且影像縮放器311可將所接收之影像信號中的影像進行影像縮放處理及/或影像疊合處理以符合顯示模組320之解析度,並將經過影像縮放處理後的影像(例如稱為輸出影像)儲存至影像緩衝器340。時序控制器312則控制顯示模組320從影像緩衝器340讀取輸出影像並播放。In one embodiment, the display controller 310 includes an image scaler 311 and a timing controller 312. The display controller 310 receives an image signal from the computer device 450 or the portable electronic device 30 through the transmission interface 350, and the image scaler 311 can perform image scaling and/or image scaling on the image in the received image signal. The overlay process is performed to match the resolution of the display module 320 , and the image after image scaling (for example, called an output image) is stored in the image buffer 340 . The timing controller 312 controls the display module 320 to read the output image from the image buffer 340 and play it.

在另一實施例中,顯示控制器310可包括時序控制器312,且來自電腦裝置450或是可攜式電子裝置30的影像信號的解析度係符合顯示模組320的解析度,故顯示控制器310接收到來自電腦裝置450或是可攜式電子裝置30的影像信號後可不必經過影像縮放處理就將影像信號儲存於影像緩衝器340中。時序控制器320可由從影像緩衝器340讀取輸出影像,並控制顯示模組320以播放輸出影像。In another embodiment, the display controller 310 may include a timing controller 312, and the resolution of the image signal from the computer device 450 or the portable electronic device 30 is consistent with the resolution of the display module 320, so the display control After receiving the image signal from the computer device 450 or the portable electronic device 30, the processor 310 can store the image signal in the image buffer 340 without undergoing image scaling processing. The timing controller 320 can read the output image from the image buffer 340 and control the display module 320 to play the output image.

顯示模組320例如可為一液晶(liquid crystal)面板(含背光模組)、一發光二極體(light-emitting diode)面板、一有機發光二極體(organic light-emitting diode)面板、一陰極射線管(cathode ray tube)、電子墨水(E-Ink)顯示模組、電致發光(electroluminescent)顯示模組、電漿(Plasma)顯示模組、投影(projection)顯示模組、量子點(Quantum Dot)顯示模組、但本發明並不限於此。The display module 320 may be, for example, a liquid crystal panel (including a backlight module), a light-emitting diode panel, an organic light-emitting diode panel, a Cathode ray tube (cathode ray tube), electronic ink (E-Ink) display module, electroluminescent (electroluminescent) display module, plasma (Plasma) display module, projection (projection) display module, quantum dot ( Quantum Dot) display module, but the invention is not limited thereto.

儲存單元330例如可為一非揮發性記憶體,例如唯讀記憶體(ROM)、可抹除可編程唯讀記憶體(EPROM)、電子抹除式可編程唯讀記憶體(EEPROM)。儲存單元330例如可在顯示控制器310之外部、或是可整合至顯示控制器310中。儲存單元330係用以儲存顯示裝置300相關的韌體331、韌體332及螢幕上顯示(OSD)介面333。The storage unit 330 may be, for example, a non-volatile memory, such as a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or an electronically erasable programmable read-only memory (EEPROM). The storage unit 330 may be external to the display controller 310 , or may be integrated into the display controller 310 . The storage unit 330 is used to store the firmware 331, firmware 332 and on-screen display (OSD) interface 333 related to the display device 300.

影像緩衝器340例如可為一揮發性記憶體(例如動態隨機存取記憶體)或一非揮發性記憶體(例如快閃記憶體),其係用以儲存欲在顯示模組320上播放的輸出影像。The image buffer 340 may be, for example, a volatile memory (such as a dynamic random access memory) or a non-volatile memory (such as a flash memory), which is used to store images to be played on the display module 320 Output images.

傳輸介面350可包括有線傳輸介面及/或無線傳輸介面,其中有線傳輸介面可包括:高解析度多媒體介面(High Definition Multimedia Interface,HDMI)、顯示埠(DisplayPort,DP)介面、嵌入式顯示埠(embedded DisplayPort,eDP)、雷靂(Thunderbolt)介面、數位視訊介面(DVI)、視訊圖形陣列(VGA)介面、一般用途輸入輸出(GPIO)介面、通用非同步收發傳輸器(UART)介面、序列周邊介面(SPI)介面、積體電路匯流排(I2C)介面、或其組合,且無線傳輸介面可包括:藍芽(Bluetooth)、WiFi、近場通訊(NFC)介面等等,但本發明並不限於此。The transmission interface 350 may include a wired transmission interface and/or a wireless transmission interface, where the wired transmission interface may include: a High Definition Multimedia Interface (HDMI), a DisplayPort (DP) interface, an embedded display port ( embedded DisplayPort (eDP), Thunderbolt interface, digital video interface (DVI), video graphics array (VGA) interface, general purpose input and output (GPIO) interface, universal asynchronous transceiver transmitter (UART) interface, serial peripherals interface (SPI) interface, integrated circuit bus (I2C) interface, or a combination thereof, and the wireless transmission interface may include: Bluetooth, WiFi, near field communication (NFC) interface, etc., but the present invention does not Limited to this.

韌體331例如包括顯示裝置300的螢幕上顯示介面之顯示設定及延伸顯示能力識別資料(Extended Display Identification Data,EDID)、顯示設定。延伸顯示能力識別資料例如包括顯示裝置300的製造廠商、產品名稱、解析度、每秒顯示幀數等等。顯示設定例如包括顯示裝置300之亮度、對比、銳利度、色溫等設定。The firmware 331 includes, for example, display settings of the on-screen display interface of the display device 300 and extended display capability identification data (Extended Display Identification Data, EDID) and display settings. The extended display capability identification information includes, for example, the manufacturer, product name, resolution, display frames per second, etc. of the display device 300 . Display settings include, for example, settings such as brightness, contrast, sharpness, and color temperature of the display device 300 .

在一實施例中,顯示控制器310可透過一匯流排(例如I2C匯流排)以讀取儲存於儲存單元330中之韌體331及OSD介面333之程式碼,並據以設定相關的顯示參數。此外,顯示控制器310更可讀取在儲存單元330中的韌體332以執行手機畫面投影操作。韌體332例如包含手機畫面投影的相關程式碼及軟體包。In one embodiment, the display controller 310 can read the firmware 331 and the OSD interface 333 code stored in the storage unit 330 through a bus (such as an I2C bus), and set relevant display parameters accordingly. . In addition, the display controller 310 can further read the firmware 332 in the storage unit 330 to perform the mobile phone screen projection operation. The firmware 332 includes, for example, related program codes and software packages for mobile phone screen projection.

在一些實施例中,顯示裝置300係電性連接至電腦裝置450,例如可透過USB連線或是其他影像傳輸協定(例如HDMI、DisplayPort等等)。此外,顯示控制器310亦可透過傳輸介面350(例如可為影像傳輸通道或資料傳輸通道)以將顯示裝置300的延伸顯示能力識別資料傳送至電腦裝置450,以供電腦裝置450設定所要輸出的影像信號之解析度及相關的同步信號。螢幕上顯示介面333例如包括螢幕上顯示選單(OSD Menu)及選項、資訊顯示介面(information dashboard)、計時器、計數器、準星(crosshair)、特定符號、特定顏色、特定文字、或其組合,但本發明並不限於此。In some embodiments, the display device 300 is electrically connected to the computer device 450, for example, through a USB connection or other image transmission protocols (such as HDMI, DisplayPort, etc.). In addition, the display controller 310 can also transmit the extended display capability identification data of the display device 300 to the computer device 450 through the transmission interface 350 (for example, it can be an image transmission channel or a data transmission channel), so that the computer device 450 can set the output to be output. The resolution of the image signal and the related synchronization signal. The on-screen display interface 333 includes, for example, an on-screen display menu (OSD Menu) and options, an information display interface (information dashboard), a timer, a counter, a crosshair, a specific symbol, a specific color, a specific text, or a combination thereof, but The present invention is not limited to this.

輸入介面360係用以控制顯示裝置300之螢幕上顯示選單。輸入介面360例如可由一五向控制桿362或是由五個實體按鈕361所實現,藉以實現上、下、左、右、及確認等指令。The input interface 360 is used to control the on-screen display menu of the display device 300 . The input interface 360 may be implemented by, for example, a five-way joystick 362 or five physical buttons 361 to implement instructions such as up, down, left, right, and confirmation.

在一實施例中,電腦裝置450可透過USB資料線13連接至顯示裝置300的USB集線器370,以與顯示裝置300互相進行資料傳輸。鍵盤371及滑鼠372例如可插設至USB集線器370,且顯示控制器310可將所接收之鍵盤371及滑鼠372的輸入信號透過USB集線器370及USB資料線13以傳送至電腦裝置450以進行相關的輸入操作。In one embodiment, the computer device 450 can be connected to the USB hub 370 of the display device 300 through the USB data cable 13 to transmit data to and from the display device 300 . For example, the keyboard 371 and the mouse 372 can be plugged into the USB hub 370, and the display controller 310 can transmit the received input signals of the keyboard 371 and the mouse 372 to the computer device 450 through the USB hub 370 and the USB data cable 13. Perform relevant input operations.

在另一實施例中,顯示裝置300並未電性連接至電腦裝置450,意即顯示裝置300係與可攜式電子裝置30一同進行螢幕鏡像操作。舉例來說,可攜式電子裝置30可透過USB資料線12以連接至顯示裝置300的USB集線器370。In another embodiment, the display device 300 is not electrically connected to the computer device 450 , which means that the display device 300 performs screen mirroring operations together with the portable electronic device 30 . For example, the portable electronic device 30 can be connected to the USB hub 370 of the display device 300 through the USB data cable 12 .

類似於第1圖之實施例,當顯示控制器310所執行的韌體332(例如包含手機畫面投影的相關程式碼及軟體包232)判斷可攜式電子裝置30透過USB資料線12連接至顯示裝置300的USB集線器370,顯示控制器310係透過USB集線器370及USB資料線12以將軟體包232推送至可攜式電子裝置30,以使可攜式電子裝置30自動執行軟體包232。上述軟體包232之細節可參考第1圖之實施例,故於此不再贅述。Similar to the embodiment of FIG. 1 , when the firmware 332 executed by the display controller 310 (for example, including the relevant program code and software package 232 for mobile phone screen projection) determines that the portable electronic device 30 is connected to the display through the USB data cable 12 The USB hub 370 of the device 300 and the display controller 310 push the software package 232 to the portable electronic device 30 through the USB hub 370 and the USB data cable 12, so that the portable electronic device 30 automatically executes the software package 232. The details of the above software package 232 can be referred to the embodiment in Figure 1, and therefore will not be described again here.

因此,可攜式電子裝置30所執行的軟體包232可取得播放影像緩衝器231之螢幕畫面,其中上述螢幕畫面例如為處理單元210執行應用程式242(例如可為一手機遊戲)所產生的遊戲畫面。接著,軟體包232係將取得的螢幕畫面編碼為視訊流(例如可透過FFmpeg工具程式),並透過USB資料線12以將視訊流傳送至顯示裝置300。當顯示裝置300接收到來自可攜式電子裝置30的視訊流後,顯示控制器310可對該視訊流進行解碼(例如可同樣使用FFmpeg工具程式)並對解碼所得的影像進行渲染處理(例如可使用OpenGL協定)以得到顯示影像。顯示控制器310並將上述顯示影像於顯示模組320上進行播放。Therefore, the software package 232 executed by the portable electronic device 30 can obtain the screen image of the playback image buffer 231 , wherein the screen image is, for example, a game generated by the processing unit 210 executing the application program 242 (for example, a mobile game). picture. Then, the software package 232 encodes the obtained screen image into a video stream (for example, through the FFmpeg tool program), and transmits the video stream to the display device 300 through the USB data cable 12 . After the display device 300 receives the video stream from the portable electronic device 30, the display controller 310 can decode the video stream (for example, the FFmpeg tool program can also be used) and render the decoded image (for example, can Use the OpenGL protocol) to get the display image. The display controller 310 plays the above display image on the display module 320 .

此外,顯示控制器310所執行的韌體332可將來自鍵盤371及滑鼠372的輸入指令轉換為相應的控制指令,並將該控制指令傳送至可攜式電子裝置30。在可攜式電子裝置30運作的軟體包232則可將上述控制指令模擬為在可攜式電子裝置30之的觸控螢幕220上與該特定功能按鍵位置有關的輸入操作或觸控操作(例如手指的點擊、滑動等操作)。In addition, the firmware 332 executed by the display controller 310 can convert the input commands from the keyboard 371 and the mouse 372 into corresponding control commands, and transmit the control commands to the portable electronic device 30 . The software package 232 running on the portable electronic device 30 can simulate the above control instructions as input operations or touch operations related to the position of the specific function button on the touch screen 220 of the portable electronic device 30 (for example, Finger clicks, slides, etc.).

在一些實施例中,當可攜式電子裝置30所執行的軟體包232偵測到該可攜式電子裝置30與顯示裝置300之間的連結(例如為USB連線)斷開,可攜式電子裝置30會自動刪除軟體包232。In some embodiments, when the software package 232 executed by the portable electronic device 30 detects that the connection (such as a USB connection) between the portable electronic device 30 and the display device 300 is disconnected, the portable electronic device 30 The electronic device 30 will automatically delete the software package 232 .

第4圖為依據本發明一實施例中螢幕鏡像程式在特定應用程式之按鍵設定介面的示意圖。請同時參考第1圖及第4圖。Figure 4 is a schematic diagram of a key setting interface of a screen mirroring program in a specific application according to an embodiment of the present invention. Please refer to Figure 1 and Figure 4 at the same time.

當使用第1圖中的硬體配置,可攜式電子裝置30的螢幕畫面均可投射至顯示裝置40進行顯示,且使用者同樣可透過連接至電腦裝置20的鍵盤171及滑鼠172以對可攜式電子裝置30所執行的應用程式242進行輸入操作或觸控操作。When using the hardware configuration in Figure 1, the screen of the portable electronic device 30 can be projected to the display device 40 for display, and the user can also view the screen through the keyboard 171 and mouse 172 connected to the computer device 20. The application program 242 executed by the portable electronic device 30 performs input operations or touch operations.

舉例來説,螢幕鏡像程式141可針對可攜式電子裝置30所執行的應用程式242以設定相應的按鍵設定介面400,且不同的應用程式242係對應於不同的按鍵設定介面400。按鍵設定介面400例如包括複數個功能按鍵、方向鍵等等,其均已標示相應的鍵盤按鍵文字。當使用者按下鍵盤171上的特定按鍵或是操縱滑鼠172的游標以在特定功能按鍵上進行點擊(click),螢幕鏡像程式141則可將上述輸入指令轉換為相應的控制指令,並將該控制指令傳送至可攜式電子裝置30。在可攜式電子裝置30運作的軟體包232則可將上述控制指令模擬為在可攜式電子裝置30之的觸控螢幕220上與該特定功能按鍵位置有關的輸入操作或觸控操作(例如手指的點擊、滑動等操作)。For example, the screen mirroring program 141 can set a corresponding key setting interface 400 for the application program 242 executed by the portable electronic device 30 , and different application programs 242 correspond to different key setting interfaces 400 . The key setting interface 400 includes, for example, a plurality of function keys, direction keys, etc., all of which are marked with corresponding keyboard key text. When the user presses a specific button on the keyboard 171 or manipulates the cursor of the mouse 172 to click on a specific function button, the screen mirroring program 141 can convert the above input command into a corresponding control command, and The control command is sent to the portable electronic device 30 . The software package 232 running on the portable electronic device 30 can simulate the above control instructions as input operations or touch operations related to the position of the specific function button on the touch screen 220 of the portable electronic device 30 (for example, Finger clicks, slides, etc.).

當使用第3圖的硬體配置,顯示裝置300係與可攜式電子裝置30一同進行螢幕鏡像操作。舉例來說,可攜式電子裝置30可透過USB資料線12以連接至顯示裝置300的USB集線器370。在此使用情境中,當使用者按下鍵盤371上的特定按鍵或是操縱滑鼠372的游標以在特定功能按鍵上進行點擊(click),顯示控制器310所執行的韌體332可將上述輸入指令轉換為相應的控制指令,並將該控制指令傳送至可攜式電子裝置30。在可攜式電子裝置30運作的軟體包232則可將上述控制指令模擬為在可攜式電子裝置30之的觸控螢幕220上與該特定功能按鍵位置有關的輸入操作或觸控操作(例如手指的點擊、滑動等操作)。When using the hardware configuration in Figure 3, the display device 300 and the portable electronic device 30 perform screen mirroring operations together. For example, the portable electronic device 30 can be connected to the USB hub 370 of the display device 300 through the USB data cable 12 . In this usage scenario, when the user presses a specific button on the keyboard 371 or manipulates the cursor of the mouse 372 to click on a specific function button, the firmware 332 executed by the display controller 310 can change the above The input command is converted into a corresponding control command, and the control command is transmitted to the portable electronic device 30 . The software package 232 running on the portable electronic device 30 can simulate the above control instructions as input operations or touch operations related to the position of the specific function button on the touch screen 220 of the portable electronic device 30 (for example, Finger clicks, slides, etc.).

綜上所述,本發明係提供一種電腦裝置及顯示裝置,其可在可攜式電子裝置進行連接時自動推送軟體包至可攜式電子裝置以自動執行,因此使用者並不需在可攜式電子裝置上事先安裝相關程式,藉以確保可攜式電子裝置所安裝執行的軟體包版本是對應於電腦裝置/顯示裝置上螢幕鏡像程式的版本。可攜式電子裝置所執行的軟體包可用以擷取可攜式電子裝置之螢幕畫面以編碼成視訊流,且電腦裝置(或顯示裝置)具有將視訊流解碼及進行影像渲染之能力以得到可攜式電子裝置之螢幕畫面並於顯示裝置上播放,或是顯示裝置可於本身的顯示模組上播放上述螢幕畫面。當可攜式電子裝置所執行的軟體包偵測到該可攜式電子裝置30與電腦裝置(或顯示裝置)之間的連結(例如為USB連線)斷開,可攜式電子裝置會自動刪除軟體包,故使用者可以更方便地使用螢幕鏡像功能。To sum up, the present invention provides a computer device and a display device that can automatically push a software package to the portable electronic device for automatic execution when the portable electronic device is connected. Therefore, the user does not need to Relevant programs must be installed on the portable electronic device in advance to ensure that the version of the software package installed and executed on the portable electronic device corresponds to the version of the screen mirroring program on the computer device/display device. The software package executed by the portable electronic device can be used to capture the screen of the portable electronic device to encode it into a video stream, and the computer device (or display device) has the ability to decode the video stream and render the image to obtain a usable image. The screen image of the portable electronic device is played on the display device, or the display device can play the screen image on its own display module. When the software package executed by the portable electronic device detects that the connection (such as a USB connection) between the portable electronic device 30 and the computer device (or display device) is disconnected, the portable electronic device automatically Remove the software package so users can use the screen mirroring function more conveniently.

此外,使用者可在電腦裝置/顯示裝置所執行的螢幕鏡像程式上自行定義鍵盤滑鼠的操作功能映射,故可更完整地支援以觸控點擊為主的手機遊戲,且使用者可透過插設於電腦裝置或顯示裝置上的鍵盤/滑鼠以操控可攜式電子裝置所執行的應用程式或手機遊戲,更可提升操控的方便性以增加使用者體驗。In addition, users can customize the operation function mapping of keyboard and mouse on the screen mirroring program executed by the computer device/display device, so it can more fully support mobile games based on touch and click, and users can use the plug-in to The keyboard/mouse installed on the computer device or the display device can control the application or mobile game executed by the portable electronic device, and can also improve the convenience of control and enhance the user experience.

於申請專利範圍中使用如”第一”、"第二"、"第三"等詞係用來修飾申請專利範圍中的元件,並非用來表示之間具有優先權順序,先行關係,或者是一個元件先於另一個元件,或者是執行方法步驟時的時間先後順序,僅用來區別具有相同名字的元件。The use of words such as "first", "second", and "third" in the scope of the patent application are used to modify the elements in the scope of the patent application, and are not used to indicate the order of priority, precedence relationship, or relationship between them. The precedence of one element over another, or the chronological order in which method steps are performed, is only used to distinguish elements with the same name.

本發明雖以較佳實施例揭露如上,然其並非用以限定本發明的範圍,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可做些許的更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention is disclosed above in terms of preferred embodiments, they are not intended to limit the scope of the present invention. Anyone with ordinary skill in the art may make slight changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended patent application scope.

1:電子系統 10:電腦系統 11、12、13:USB資料線 20:電腦裝置 30:可攜式電子裝置 40:顯示裝置 110:處理單元 111:系統匯流排 120:圖形處理單元 130:記憶體單元 140:儲存裝置 141:螢幕鏡像程式 142:作業系統 150、160、250:傳輸介面 171:鍵盤 172:滑鼠 201-205:控制指令 210:處理單元 220:觸控面板 221:顯示面板 222:觸控模組 230:記憶體單元 231:播放影像緩衝器 232:軟體包 240:儲存裝置 241:作業系統 242:應用程式 300:顯示裝置 310:顯示控制器 320:顯示模組 330:儲存單元 331、332:韌體 333:螢幕上顯示介面 340:影像緩衝器 350:傳輸介面 360:輸入介面 361:實體按鈕 362:五向控制桿 370:USB集線器 371:鍵盤 372:滑鼠 400:按鍵設定介面 450:電腦裝置1: Electronic system 10:Computer system 11, 12, 13: USB data cable 20: Computer equipment 30: Portable electronic devices 40:Display device 110: Processing unit 111:System bus 120: Graphics processing unit 130:Memory unit 140:Storage device 141:Screen mirroring program 142:Operating system 150, 160, 250: Transmission interface 171:Keyboard 172:Mouse 201-205:Control instructions 210: Processing unit 220:Touch panel 221:Display panel 222:Touch module 230:Memory unit 231: Play image buffer 232:Software package 240:Storage device 241:Operating system 242:Application 300:Display device 310:Display controller 320:Display module 330:Storage unit 331, 332: Firmware 333: Display interface on screen 340:Image buffer 350:Transmission interface 360: Input interface 361:Entity button 362: Five-way control lever 370:USB hub 371:Keyboard 372:Mouse 400: Button setting interface 450:Computer device

第1圖為依據本發明一實施例中之電子系統的方塊圖。 第2圖為依據本發明一實施例中之鍵盤及滑鼠的輸入指令轉換為相應的控制指令的示意圖。 第3圖為依據本發明一實施例中之顯示系統的方塊圖。 第4圖為依據本發明一實施例中螢幕鏡像程式在特定應用程式之按鍵設定介面的示意圖。 Figure 1 is a block diagram of an electronic system according to an embodiment of the present invention. Figure 2 is a schematic diagram of converting keyboard and mouse input commands into corresponding control commands according to an embodiment of the present invention. Figure 3 is a block diagram of a display system according to an embodiment of the present invention. Figure 4 is a schematic diagram of a key setting interface of a screen mirroring program in a specific application according to an embodiment of the present invention.

1:電子系統 1: Electronic system

10:電腦系統 10:Computer system

11:USB資料線 11:USB data cable

20:電腦裝置 20: Computer equipment

30:可攜式電子裝置 30: Portable electronic devices

40:顯示裝置 40:Display device

110:處理單元 110: Processing unit

111:系統匯流排 111:System bus

120:圖形處理單元 120: Graphics processing unit

130:記憶體單元 130:Memory unit

140:儲存裝置 140:Storage device

141:螢幕鏡像程式 141:Screen mirroring program

142:作業系統 142:Operating system

150、160、250:傳輸介面 150, 160, 250: Transmission interface

171:鍵盤 171:Keyboard

172:滑鼠 172:Mouse

210:處理單元 210: Processing unit

220:觸控面板 220:Touch panel

221:顯示面板 221:Display panel

222:觸控模組 222:Touch module

230:記憶體單元 230:Memory unit

231:播放影像緩衝器 231: Play image buffer

232:軟體包 232:Software package

240:儲存裝置 240:Storage device

241:作業系統 241:Operating system

242:應用程式 242:Application

Claims (12)

一種電腦裝置,包括: 一儲存裝置,用以儲存一螢幕鏡像程式; 一處理單元,用以執行該螢幕鏡像程式以執行下列步驟: 因應於偵測到一可攜式電子裝置連接至該電腦裝置,推送一軟體包至該可攜式電子裝置以在該可攜式電子裝置自動執行該軟體包; 從該可攜式電子裝置接收一視訊流,其中該視訊流包括該可攜式電子裝置之螢幕畫面; 解碼該視訊流並對解碼所得到的影像進行渲染處理以得到該螢幕畫面,並將該螢幕畫面在一顯示裝置上播放;以及 接收連接至該電腦裝置之輸入裝置之輸入指令,並依據該可攜式電子裝置所執行之一應用程式相應的按鍵設定介面將該輸入指令轉換為該可攜式電子裝置所使用的控制指令。 A computer device including: a storage device for storing a screen mirroring program; A processing unit for executing the screen mirroring program to perform the following steps: In response to detecting that a portable electronic device is connected to the computer device, push a software package to the portable electronic device to automatically execute the software package on the portable electronic device; Receive a video stream from the portable electronic device, wherein the video stream includes a screen image of the portable electronic device; Decode the video stream and render the decoded image to obtain the screen image, and play the screen image on a display device; and Receive an input command from an input device connected to the computer device, and convert the input command into a control command used by the portable electronic device according to a corresponding key setting interface of an application executed by the portable electronic device. 如請求項1之電腦裝置,其中,該可攜式電子裝置之通用序列匯流排(USB)偵錯模式開啟,且該可攜式電子裝置係透過USB連線以連接至該電腦裝置。The computer device of claim 1, wherein the universal serial bus (USB) debug mode of the portable electronic device is turned on, and the portable electronic device is connected to the computer device through a USB connection. 如請求項2之電腦裝置,其中,該可攜式電子裝置所執行的該軟體包從該可攜式電子裝置之播放影像緩衝器取得該螢幕畫面,並將該螢幕畫面編碼為該視訊流。For example, the computer device of claim 2, wherein the software package executed by the portable electronic device obtains the screen image from the playback image buffer of the portable electronic device and encodes the screen image into the video stream. 如請求項1之電腦裝置,其中,該輸入指令包括按鍵碼、文字碼、滑鼠信號、捲動信號及觸控信號。The computer device of claim 1, wherein the input command includes key codes, text codes, mouse signals, scroll signals and touch signals. 如請求項1之電腦裝置,其中,該可攜式電子裝置所執行的該軟體包係將該控制指令傳送至該可攜式電子裝置的觸屏檔以模擬該輸入指令相關的觸控操作,並且在該應用程式執行該觸控操作。The computer device of claim 1, wherein the software package executed by the portable electronic device transmits the control command to the touch screen file of the portable electronic device to simulate the touch operation related to the input command, And perform the touch operation in the application. 如請求項1之電腦裝置,其中,當該可攜式電子裝置偵測到該可攜式電子裝置與該電腦裝置之連接斷開時,該可攜式電子裝置係自動刪除該軟體包。The computer device of claim 1, wherein when the portable electronic device detects that the connection between the portable electronic device and the computer device is disconnected, the portable electronic device automatically deletes the software package. 一種顯示裝置,包括: 一顯示模組; 一通用序列匯流排(USB)集線器,連接至一或多個輸入設備;以及 一顯示控制器,用以執行下列步驟: 因應於偵測到一可攜式電子裝置連接至該USB集線器,透過該USB集線器推送一軟體包至該可攜式電子裝置以在該可攜式電子裝置自動執行該軟體包; 透過該USB集線器從該可攜式電子裝置接收一視訊流,其中該視訊流包括該可攜式電子裝置之螢幕畫面; 解碼該視訊流並對解碼所得到的影像進行渲染處理以得到該螢幕畫面,並將該螢幕畫面在該顯示模組上播放;以及 透過該USB集線器接收該輸入裝置之輸入指令,並依據該可攜式電子裝置所執行之一應用程式相應的按鍵設定介面將該輸入指令轉換為該可攜式電子裝置所使用的控制指令。 A display device including: a display module; A Universal Serial Bus (USB) hub connected to one or more input devices; and A display controller for performing the following steps: In response to detecting that a portable electronic device is connected to the USB hub, push a software package to the portable electronic device through the USB hub to automatically execute the software package on the portable electronic device; Receive a video stream from the portable electronic device through the USB hub, wherein the video stream includes a screen image of the portable electronic device; Decode the video stream and render the decoded image to obtain the screen image, and play the screen image on the display module; and The input command of the input device is received through the USB hub, and the input command is converted into a control command used by the portable electronic device according to a corresponding key setting interface of an application executed by the portable electronic device. 如請求項7之顯示裝置,其中,該可攜式電子裝置之通用序列匯流排(USB)偵錯模式開啟,且該可攜式電子裝置係透過USB連線以連接至該顯示裝置。The display device of claim 7, wherein the universal serial bus (USB) debug mode of the portable electronic device is turned on, and the portable electronic device is connected to the display device through a USB connection. 如請求項8之顯示裝置,其中,該可攜式電子裝置所執行的該軟體包從該可攜式電子裝置之播放影像緩衝器取得該螢幕畫面,並將該螢幕畫面編碼為該視訊流。For example, the display device of claim 8, wherein the software package executed by the portable electronic device obtains the screen image from the playback image buffer of the portable electronic device and encodes the screen image into the video stream. 如請求項7之顯示裝置,其中,該輸入指令包括按鍵碼、文字碼、滑鼠信號、捲動信號及觸控信號。The display device of claim 7, wherein the input command includes key codes, text codes, mouse signals, scroll signals and touch signals. 如請求項7之顯示裝置,其中,該可攜式電子裝置所執行的該軟體包係將該控制指令傳送至該可攜式電子裝置的觸屏檔以模擬該輸入指令相關的觸控操作,並且在該應用程式執行該觸控操作。The display device of claim 7, wherein the software package executed by the portable electronic device transmits the control command to the touch screen file of the portable electronic device to simulate the touch operation related to the input command, And perform the touch operation in the application. 如請求項7之顯示裝置,其中,當該可攜式電子裝置偵測到該可攜式電子裝置與該電腦裝置之連接斷開時,該可攜式電子裝置係自動刪除該軟體包。The display device of claim 7, wherein when the portable electronic device detects that the connection between the portable electronic device and the computer device is disconnected, the portable electronic device automatically deletes the software package.
TW111149730A 2022-12-15 2022-12-23 Computer device and display device TWI826203B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211613682.4A CN118210391A (en) 2022-12-15 2022-12-15 Computer device and display device
CN202211613682.4 2022-12-15

Publications (2)

Publication Number Publication Date
TWI826203B true TWI826203B (en) 2023-12-11
TW202427216A TW202427216A (en) 2024-07-01

Family

ID=90053309

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111149730A TWI826203B (en) 2022-12-15 2022-12-23 Computer device and display device

Country Status (2)

Country Link
CN (1) CN118210391A (en)
TW (1) TWI826203B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324327A (en) * 2020-02-20 2020-06-23 华为技术有限公司 Screen projection method and terminal equipment
CN111340808A (en) * 2020-05-20 2020-06-26 北京小米移动软件有限公司 Screen display monitoring method and device, electronic equipment and storage medium
CN111641849A (en) * 2014-10-23 2020-09-08 应用程序动态有限责任公司 Universal image receiver
CN113556590A (en) * 2020-04-24 2021-10-26 海信视像科技股份有限公司 Method for detecting effective resolution of screen-projected video stream and display equipment
CN113556593A (en) * 2020-04-24 2021-10-26 海信视像科技股份有限公司 Display device and screen projection method
CN114286137A (en) * 2021-08-23 2022-04-05 海信视像科技股份有限公司 Mirror image screen projection method, display device and terminal
CN114286165A (en) * 2020-12-21 2022-04-05 海信视像科技股份有限公司 Display device, mobile terminal and screen projection data transmission method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641849A (en) * 2014-10-23 2020-09-08 应用程序动态有限责任公司 Universal image receiver
CN111324327A (en) * 2020-02-20 2020-06-23 华为技术有限公司 Screen projection method and terminal equipment
CN113556590A (en) * 2020-04-24 2021-10-26 海信视像科技股份有限公司 Method for detecting effective resolution of screen-projected video stream and display equipment
CN113556593A (en) * 2020-04-24 2021-10-26 海信视像科技股份有限公司 Display device and screen projection method
CN111340808A (en) * 2020-05-20 2020-06-26 北京小米移动软件有限公司 Screen display monitoring method and device, electronic equipment and storage medium
CN114286165A (en) * 2020-12-21 2022-04-05 海信视像科技股份有限公司 Display device, mobile terminal and screen projection data transmission method
CN114286137A (en) * 2021-08-23 2022-04-05 海信视像科技股份有限公司 Mirror image screen projection method, display device and terminal

Also Published As

Publication number Publication date
CN118210391A (en) 2024-06-18
TW202427216A (en) 2024-07-01

Similar Documents

Publication Publication Date Title
US20120299846A1 (en) Electronic apparatus and operation support method
TWI673645B (en) Computer system, display apparatus, and display method of an on-screen-display interface
US20050093831A1 (en) Computer system and related method for calibrating a digitizer without utilizing calibration software
JP7178397B2 (en) Electronic device and method of triggering macro keys using external input signals
TWI826203B (en) Computer device and display device
KR102519683B1 (en) electronic device and method of automatically triggering hot key using display image
TWI724722B (en) Electronic device and display method of an on-screen-display interface
TWI766509B (en) Display apparatus and control method of projected on-screen-display interface
JP5472569B2 (en) Projection system
TWI766518B (en) Display apparatus and method of synchronizing mouse sensitivities
TWI408488B (en) Interactive projection system and system control method thereof
TW202038080A (en) Computer system, display apparatus, and method for operating an on-screen-display interface thereof
TWI804116B (en) Display apparatus and method of image rewinding thereof
TWI784630B (en) Display control method and display control system
TWI752645B (en) Display with prompt function and method thereof
CN114697622A (en) Display device and control method of display interface on projection type screen
CN114690917A (en) Display device and mouse sensitivity synchronization method
TW201944211A (en) Virtual projection pen including at least one first device, a second device, and a third device
TWM603139U (en) Virtual projection pen
TW201445423A (en) Display device having integrated smart button and controlling method thereof
JP2014134803A (en) Projector