WO2018090720A1 - Method and apparatus for plug and play screen mirroring - Google Patents

Method and apparatus for plug and play screen mirroring Download PDF

Info

Publication number
WO2018090720A1
WO2018090720A1 PCT/CN2017/103467 CN2017103467W WO2018090720A1 WO 2018090720 A1 WO2018090720 A1 WO 2018090720A1 CN 2017103467 W CN2017103467 W CN 2017103467W WO 2018090720 A1 WO2018090720 A1 WO 2018090720A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
usb
usb interface
audio
communication protocol
Prior art date
Application number
PCT/CN2017/103467
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
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018090720A1 publication Critical patent/WO2018090720A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • 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/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
    • 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
    • H04N21/43632Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or 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/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
    • H04N21/43632Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • H04N21/43635HDMI

Definitions

  • the present invention relates to the field of data transmission technologies, and in particular, to a method and apparatus for implementing plug and play screen transmission.
  • the PC system as the display source device can actively output its system sound and picture through the HDMI or VGA interface, but cannot actively output through the USB interface. Therefore, in the USB screen mode, an application program needs to be run in advance on the PC side, and the audio and video data of the system is intercepted by the application program, and then sent out through the USB interface, transferred through the USB screen device, and finally decoded to the display terminal. display.
  • the method and device for implementing the plug-and-play screen provided by the embodiment of the present invention can implement the plug-and-play USB screen-playing experience without the need to display the source device to pre-install the corresponding application program.
  • An aspect of the present invention provides a method for implementing a plug and play screen, including:
  • the universal drive providing universal communication between the first device and the standard USB device a communication protocol, the communication protocol port at least comprising: a port for transmitting audio and video data and a port for accessing the storage space;
  • the first USB interface has information from the first device, detecting a communication protocol port that transmits the information, and if it is a port for accessing the storage space, identifying the information as a storage space access instruction; displaying the preset storage space Providing, to the first device, a corresponding application stored in the storage space, the application program is executable by the first device, and the application program is capable of acquiring current audio and video information of the first device system when the application is running;
  • the communication protocol port for transmitting the information is a port for transmitting audio and video data
  • the information is recognized as audio and video data; and the audio and video data is forwarded to the second device through the second USB interface of the local end, indicating The second device plays the corresponding audio and video after receiving the audio and video data.
  • Another aspect of the present invention provides a method for implementing a plug and play screen, comprising:
  • Generating a storage space access instruction adapting the access instruction to the identified port for accessing the storage space, and transmitting the first USB interface to the USB device through the first device USB interface to access the USB device a preset storage space, and running a corresponding application in the preset storage space through the first device system interface to intercept the picture and audio played by the first device;
  • the intercepted audio and video data is sent to the first USB interface of the USB device through the USB interface of the first device.
  • Another aspect of the present invention provides an apparatus for implementing a plug and play screen, including:
  • a port simulation module configured to provide, by the first USB interface of the local end, a plurality of communication protocol ports, wherein the communication protocol port is recognized by a universal drive of the first device, where the universal drive provides the first device and the standard USB a universal communication protocol for communication between devices, the communication protocol port including at least a port for transmitting audio and video data and a port for accessing a storage space;
  • connection establishing module configured to establish a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface
  • a storage module configured to detect that the first USB interface has information from the first device, detect a communication protocol port that transmits the information, and if it is a port for accessing the storage space, identify the information as a storage space access instruction;
  • the preset storage space is displayed to the first device, where the corresponding storage program is stored, the application program can be run by the first device, and the application program can acquire the current audio and video of the first device system information;
  • the audio/video data forwarding module is configured to: if the communication protocol port that transmits the information is detected as a port for transmitting audio and video data, identify the information as audio and video data; and pass the audio and video data through the local end
  • the two USB interfaces are forwarded to the second device, and the second device is instructed to play the corresponding audio and video after receiving the audio and video data.
  • Another aspect of the present invention provides an apparatus for implementing a plug and play screen, including:
  • a USB identification module configured to identify, by a pre-installed universal driver, a communication protocol port provided by a USB device that accesses a first device USB interface; the universal driver provides a universal communication protocol for communication between the first device and the standard USB device, The communication protocol port includes at least a port for transmitting audio and video data and a port for accessing the storage space; the USB device is provided with a first USB interface, and the USB device accesses the first USB interface a device USB interface, and through the first USB interface, provides a plurality of communication protocol ports that can be recognized by the universal drive of the first device;
  • an audio and video intercepting module configured to generate a storage space access instruction, adapt the access instruction to the identified port for accessing the storage space, and send the first USB interface to the USB device through the first device USB interface Accessing the preset storage space of the USB device, and running a corresponding application in the preset storage space through the first device system interface to intercept the picture and audio played by the first device;
  • an audio and video sending module configured to send the intercepted audio and video data to the first USB interface of the USB device through a USB interface of the first device.
  • the display source device passes The application running the storage space of the screen device can complete the data capture of the picture and audio played by the display source device.
  • the display source device there is no need to pre-install the corresponding application, and the plug-and-play USB screen is realized, which is beneficial to the promotion of the USB screen application.
  • FIG. 1 is a schematic diagram of a system environment for implementing a method for implementing plug and play screen transmission according to the present invention
  • FIG. 2 is a schematic flowchart of a method for implementing a plug and play screen according to an embodiment
  • FIG. 3 is a detailed flowchart of a method for implementing a plug and play screen according to an embodiment
  • FIG. 4 is a schematic flowchart of a method for implementing a plug and play screen in a second embodiment
  • FIG. 5 is a detailed flowchart of a method for implementing a plug-and-play screen display by a display source device according to a second embodiment
  • FIG. 6 is a schematic flowchart of a method for implementing a plug and play screen in a third embodiment
  • FIG. 7 is a detailed flowchart of a method for implementing a plug-and-play screen display by a display device of a third embodiment
  • FIG. 8 is a schematic structural diagram of an apparatus for implementing a plug-and-play screen according to an embodiment
  • FIG. 9 is a schematic structural diagram of an apparatus for implementing a plug-and-play screen of a second embodiment
  • Fig. 10 is a schematic structural view showing an apparatus for realizing a plug and play screen of the third embodiment.
  • the system environment of the embodiment of the present invention includes a display source device (ie, a first device), a screen device (ie, an analog USB device), and a display device (ie, a second device).
  • the display source device may be a device or a system running an operating system such as a PC or a mobile phone, and the system has at least one pre-installed universal driver therein, and the universal driver provides universal communication between the first device and the standard USB device. letter of agreement.
  • the display source device is further provided with at least one USB interface (ie, a USB interface D/third USB interface), and the attribute of the USB interface is set to a USB host.
  • the display device is a device or system running an operating system, such as a large-screen electronic whiteboard, and the display device is further provided with at least one USB interface (ie, a USB interface A/fourth USB interface), and the attribute of the USB interface is set to USB host.
  • the screen device is provided with a USB interface, a memory, and a processor.
  • the USB interface includes a USB interface C and a USB interface B (ie, a first USB interface and a second USB interface), and the attributes of the two USB interfaces are all USB devices, which are respectively connected to the display source device and the display device.
  • the embedded device can run an embedded operating system and connect to the display source device through the USB interface C.
  • the USB interface B can be an ordinary USB interface for accessing a display device such as a smart tablet (or other large-screen device). , driven and identified by the system of the display device.
  • the screen device can be combined with a USB cable to form a custom special USB cable, or it can be a combination of a USB dongle with a screen device and a standard USB cable.
  • One of the uses of the memory is a downloader that requires a specific program or a specific program for storing a display source device or a display device.
  • the screen device can be powered directly through the USB interface of the display source
  • FIG. 2 is a schematic flowchart of a method for implementing a plug-and-play screen according to an embodiment.
  • the method is applied to a screen device as an example.
  • the screen device includes a first USB interface and a second USB interface, respectively, for accessing the display source device and the display device.
  • the method for implementing plug and play screen transmission in this embodiment includes the following steps:
  • the first device is provided with a plurality of communication protocol ports by using a first USB interface of the local end, where the communication protocol port can be recognized by a universal driver of the first device, where the universal driver provides communication between the first device and the standard USB device.
  • a universal communication protocol the communication protocol port comprising at least a port for transmitting audio and video data and a port for accessing the storage space;
  • the first device is a display source device
  • the local device refers to a screen device.
  • the screen device can be emulated into several types of standard USB devices and provides a corresponding communication protocol port.
  • the generic driver pre-installed on the display source device can independently drive different types of standard USB devices.
  • the standard USB device is simulated by the screen device, and the display source device can be recognized by the drive (ie, it can be recognized by the universal drive without a specific universal drive).
  • the USB interface is a physical concept
  • the communication protocol port is an abstract concept for the USB connection service.
  • Different communication protocol ports can be distinguished by corresponding port identifiers, for example, by port number.
  • the port identifiers of the communication protocol ports can be recognized by the universal USB driver, and the processor in the screen device also performs various types of information (including audio and video data or control signals) through the port identifier of the communication protocol port. Transceiver, to achieve the transmission and reception of a variety of different types of information through the same physical interface.
  • the screen device can be simulated into several types of standard USB devices, which means that the screen device can enumerate several standard USB communication protocol ports based on the common standard USB communication protocol, and different USB communication protocol ports use different port identifiers. Make a distinction.
  • the communication protocol port further includes: a port for transmitting connection information.
  • a connection success instruction may also be generated; the connection success instruction is adapted to the port for transmitting the connection information, and the first USB is passed. The interface is sent to the first device.
  • the communication protocol port that transmits the information is a port for transmitting audio and video data
  • the information is recognized as audio and video data
  • the audio and video data is forwarded to the second device through the second USB interface of the local end. Instructing the second device to play the corresponding audio and video after receiving the audio and video data.
  • the second device is a display device. If the display source device does not have a software program for intercepting the currently displayed display screen and audio, the data stored in the memory of the screen device can be read or used to intercept the current by accessing the memory (storage space) of the screen device.
  • the software program for playing the display screen and audio (the screen device is equivalent to an external USB flash drive), and then the packaged audio and video data is sent to the screen device.
  • This method has lower requirements on the display source device, and even if it does not have the corresponding program installed in advance, the related function can be realized by accessing the memory of the screen device, and for the display source device (for example, a PC), the screen is inserted into the USB interface.
  • a corresponding client software is installed in the display source device for receiving a screen operation of the user.
  • the communication protocol port further includes: a port for transmitting a manipulation signal. After the connection between the display source device and the screen device is successful, if it is detected that the second USB interface of the screen device has a manipulation signal from the display device, the manipulation signal is adapted to the port for transmitting the control information, and passes The first USB interface of the screen device is sent to the display source device to cause the display source device to perform an action corresponding to the manipulation signal.
  • the screen device converts the received touch event from the display device into a HID touch event, which is simulated as a HID touch device, and submits the HID touch event to the display source device system through the USB interface C, for the display source device system.
  • a HID touch event which is simulated as a HID touch device
  • the way to handle the touch events of HID touch devices as usual.
  • the type of the control signal includes: a touch control signal, an infrared remote control signal, or a mouse/keyboard control signal; and the corresponding action of the control signal may be any action that can be performed on the display source device side.
  • the port for transmitting the connection information may be the HID1 port and the HID2 port respectively
  • the port for transmitting the storage space access instruction may be the Mac type port.
  • the screen device can enumerate a plurality of communication protocol ports that can be recognized by the display source terminal by the USB interface C according to actual needs, and can be independently driven by the display source terminal. Drivers are used to transmit different types of data information.
  • FIG. 3 is a detailed flowchart of a method for implementing a plug-and-play screen according to an embodiment; referring to FIG. 3, the steps to be performed by the screen device are as follows:
  • USB interface C Detect whether the USB interface C has a device connection, and if so, further check whether the device is a display source device that meets the requirements.
  • USB interface B Detect whether the USB interface B has a device connection, and if so, further check whether the device is a display device that meets the requirements.
  • steps S102 and S103 are not limited to the example in the figure, and step S103 may be performed first, and then step S102 may be performed; or two parts may be simultaneously executed.
  • connection success instruction is adapted to a port for transmitting connection information, and is sent to the first device through the USB interface C; meanwhile, the display device is sent through the USB interface B based on a protocol rule predetermined with the display device. A successful connection command is issued.
  • the screen device after detecting that the USB interface C has the information from the display source device, the screen device further detects the communication protocol port that transmits the information, and if it is a port for transmitting audio and video data, the information may be identified as Audio and video data.
  • the screen device further provides a port for accessing the storage space to the display source device.
  • the screen device After detecting that the USB interface C has information from the display source device, further detecting the communication protocol port that transmits the information, if the port is used to access the storage space, the information is recognized as a storage space access instruction, and the screen device is pre-
  • the storage space is displayed to the display source device, so that the display source device system interface can be used to intercept the screen and audio played by the display source device by running a corresponding program in the storage space.
  • the storage space of the screen device stores an exe executable program for intercepting audio and video data, or stores download information of the corresponding program. Therefore, the display source device is configured to access the currently played screen or audio by accessing information of the storage space of the screen device.
  • the received audio and video data can be identified according to the communication protocol port used by the screen device, and forwarded to the second device through the USB interface B.
  • the screen device After the screen device recognizes that the audio and video data is received, it also monitors whether there is a preset trigger control signal for indicating information forwarding, and if the trigger control signal is monitored, The audio and video data is forwarded to the second device through the USB interface B.
  • the trigger control signal may be an operation signal that the preset button of the screen device is pressed, or may be a specific touch control signal generated on the human-machine interface provided by the screen device, that is, the user may trigger through hardware.
  • Software trigger mode to control the forwarding of audio and video data by the screen device to flexibly control the effect of the screen display.
  • the screen device detects that the USB interface C has information from the display source device, detecting a communication protocol port that transmits the information, if the port is used for transmitting the return request, the information may be identified as back. Pass the request instruction.
  • the triggering mechanism for forwarding audio and video data is also applicable to triggering the forwarding of the return request command by the screen device, that is, the hardware trigger mode/software trigger mode can be used to control the transmission device to return the transmission. Request forwarding of instructions.
  • the screen transmitting device sends the received backhaul request command to the display device through the USB interface B according to the protocol rule agreed with the display device.
  • steps S105 and S106, steps S107 and S108 is not limited to the example in the figure, and steps S107 and S108 may be performed first, and then steps S105 and S106 may be performed; or both parts are set according to respective time intervals. Execute in parallel.
  • the screen device can detect whether the information received by the USB interface B from the display device is a control signal according to a protocol rule agreed with the display device.
  • control signal is adapted to a corresponding port provided by the screen device for displaying the source device for transmitting control information, and sent to the display source device through the USB interface C, so that the display source device performs the control signal. Corresponding actions, thereby achieving the effect of manipulating the display source device on the display device side.
  • the trigger mechanism for forwarding audio and video data is also applicable to triggering the forwarding of the control signal by the screen device, that is, the hardware trigger mode/software trigger mode can be used to control the forwarding of the control signal by the screen device. To flexibly control the effect of multi-end manipulation.
  • the wired screen method of the embodiment provides a display source device with a plurality of communication protocol ports through a USB interface of the simulated USB device by emulating a standard USB device in advance to establish a display source device and display through the simulated USB device.
  • a wired screen connection of the device when detecting that the first USB interface of the simulated USB device has information from the display source device, detecting a communication protocol port transmitting the information, if it is a port for transmitting audio and video data, The information is identified as audio and video data; the audio and video data is forwarded to the display device through the second USB interface of the local end to play the corresponding audio and video on the display device; when the second USB interface of the simulated USB device is detected
  • the manipulation signal is adapted to a port for transmitting control information, and is sent to the display source device through the first USB interface, so that the display source device performs corresponding to the manipulation signal
  • the action thus achieves the effect of manipulating the display source device on the display device side.
  • the display source device and the display device can realize the transmission and display of audio and video data only by one connection line, and at the same time, realize the return of the control signal of the display device, simplify the wiring of the screen display, and reduce the pair. User wiring is difficult.
  • FIG. 4 is a schematic flowchart of a method for implementing plug and play screen transmission in the second embodiment; the embodiment is applicable to a display source device. As shown in FIG. 4, the method for implementing the plug and play screen in this embodiment includes the following steps.
  • Step S21 The universal driver pre-installed by the first device (display source device) identifies a communication protocol port provided by the currently accessed USB device (screening device), and the universal driver provides a connection between the first device and the standard USB device.
  • a general communication protocol for communication the communication protocol port at least comprising: a port for transmitting audio and video data and a port for accessing a storage space;
  • the USB device is provided with a first USB interface, and the USB device passes the a USB interface is connected to the first device USB interface, and provides a plurality of communication protocol ports that can be recognized by the universal drive of the first device through the first USB interface;
  • the USB interface C of the screen device is connected to the USB interface D of the display source device, and the attribute of the USB interface D is a USB host;
  • the display source device refers to a device used as a display source.
  • Step S22 Generate a storage space access instruction, adapt the access instruction to the identified port for accessing the storage space, and send the first USB interface to the USB device through the first device USB interface to access a preset storage space of the USB device, and running a corresponding application in the preset storage space by using a first device system interface to intercept a picture and audio played by the first device;
  • generating a storage space access instruction according to a display source device user operation adapting the access instruction to a port for accessing a storage space, and sending the USB interface C to the USB device to access the USB device Presetting the storage space, and running a corresponding program in the preset storage space through the system interface of the display source device for intercepting the picture and audio played by the display source device. Therefore, for the display source device (for example, a PC), when the USB interface is inserted into the screen device, a "removable disk" is seen in the "My Computer" root directory, that is, the storage space of the screen device. Therefore, the display source device can run the pre-stored application program from the "removable disk", thereby realizing the plug-and-play effect, and the user does not need to pre-install the corresponding program on the display source device, thereby providing convenience for the user.
  • the display source device for example, a PC
  • the display source device when the USB interface is inserted into the screen device, a "removable disk” is seen in the "
  • Step S23 Send the intercepted audio and video data to the first USB interface of the USB device through a corresponding port of the USB interface of the first device, where the corresponding port is adapted to the port for transmitting audio and video data;
  • the communication protocol port further includes: a port for transmitting a control signal.
  • the implementation of this embodiment is a plug-and-play screen
  • the method further includes: if detecting that the second USB interface has a manipulation signal from the second device, adapting the manipulation signal to a port for transmitting control information, and transmitting to the first device through the first USB interface, So that the first device performs an action corresponding to the manipulation signal.
  • the display source device user can select whether to need to enable the control signal return function according to actual needs, and if necessary, send a return request to the display device through the screen device after the connection is successfully established, correspondingly, the communication
  • the protocol port also includes a port for transmitting a backhaul request.
  • the specific manner is as follows: obtaining the return request identifier bit information preset by the display source device, determining whether the return request function of the display source device is the open state according to the return request identifier bit information; if yes, generating a return request request;
  • the return request command is adapted to the port for transmitting the return request, and is sent to the USB interface C of the screen device, and sent to the display device through the USB interface B of the screen device.
  • FIG. 5 is a detailed flowchart of a method for implementing plug and play screen transmission in the second embodiment; referring to FIG. 5, the steps to be performed on the source device are as follows:
  • S201 running a universal driver for displaying the source device, and detecting, in the background of the system, whether a USB device (ie, a screen device) having a specific ID (PID/VID) conforming to the characteristics of the screen device is accessed;
  • a USB device ie, a screen device
  • PID/VID specific ID
  • the universal driving of the display source device detects the information of the USB interface C from the screen device received by the USB interface D of the display source device, and detects the communication protocol port that transmits the information, if it is used to transmit the connection information.
  • the port can identify whether the information is a connection success command according to the content of the signal.
  • S203 if received, intercepting a picture and/or audio currently displayed by the display source device, and then compressing or encoding into a specific file format, and then transmitting the image to the connected screen device;
  • the display source device can identify a port provided by the screen device for accessing the storage space, adapt the access instruction to the port for accessing the storage space, and send the USB interface C to the screen device,
  • the preset storage space of the screen device is accessed, and the corresponding program in the preset storage space is run through the system interface of the display source device for intercepting the picture and audio played by the display source device. Therefore, the display source device does not need to install the corresponding program in advance, which provides convenience for the user.
  • the audio and video data may also be compressed and/or encoded by a program that displays the default storage space of the screen device by displaying the system interface of the source device for transmission. Because the interception code is stored in a U disk emulated by the screen device, after the display source device is connected to the screen device, the USB communication protocol port pre-simulated through the USB interface of the screen device can be viewed and stored in the screen device.
  • the exe program data can intercept the currently playing screen and/or audio (including sound data, including audio adjustment information such as volume and channel) by running the relevant program in the screen device.
  • the backhaul request identifier information preset by the display source device may be read to determine whether the current backhaul request function of the display source device is in an open state.
  • the current backhaul request function of the source device is displayed as being on, generating a return request command according to the user operation; providing from the screen device
  • the port for transmitting the return request is obtained from the communication protocol port of the display source device; and is sent to the USB interface C of the screen device, and sent to the display device through the USB interface B of the screen device.
  • the USB interface D is detected to receive the information of the USB interface C from the screen device, and the communication protocol port for transmitting the information is detected. If the port is used for transmitting the control signal, the external HID device can be controlled according to the conventional processing. The manner of the signal, identifying the returned control signal, and causing the first device to perform an action corresponding to the manipulation signal.
  • steps S204 and S205 and steps S206-S207 is not limited to the example in the figure, and steps S206-S207 may be performed first, and then steps S204 and S205 may be performed; or both parts are set according to respective time intervals. Execute in parallel.
  • the wired screen method of the embodiment after simulating the screen device as a standard USB device, and pre-storing an application for intercepting the screen and audio played by the display source device, after the screen device is connected to the display source device by USB
  • the display source device can complete the data capture of the picture and audio played by the display source device by running the application program of the storage space of the screen device.
  • the display source device there is no need to pre-install the corresponding application, and the plug-and-play USB screen is realized, which is beneficial to the promotion of the USB screen application; and the display source device and the display device all need only one connection line.
  • FIG. 6 is a schematic flowchart of a method for implementing plug and play screen transmission according to a third embodiment; the embodiment is applicable to a display device. As shown in FIG. 6, the method for implementing the plug and play screen in this embodiment includes the following steps.
  • the USB device of the second device is detected to have a USB device access, and the USB device is identified as a USB device that meets the requirements.
  • the USB device is configured with a second USB interface, and the USB device is connected through the second USB interface. Into the second device USB interface;
  • the USB interface A of the display device has a USB device access, and whether the current access device is the above-mentioned screen device can be determined according to the PID and/or VID of the USB device.
  • the display device refers to a device used to display audio and video information, and the attribute of the USB interface A is a USB host.
  • USB device If the USB device meets the requirements, receive the audio and video data forwarded by the second USB interface of the USB device through the USB interface of the second device, and play the corresponding audio and video on the second device;
  • the connection response signal may also be generated and sent to the USB interface B of the screen device to notify the screen device that the device matches the sound.
  • the screen device can confirm whether the connection is successful according to the information.
  • the audio and video data is compressed and/or encoded at the display source end, and the corresponding display device needs to perform corresponding decompression and/or de-compression processing on the audio and video data, and the processing is performed.
  • the corresponding picture and/or audio is then played on the display device.
  • the type of the control signal in this embodiment may include: a touch control signal, an infrared remote control signal, or a mouse/keyboard control signal; and the corresponding action of the manipulation signal may be any action that can be performed on the display source device side.
  • FIG. 7 is a detailed flowchart of a method for implementing plug and play screen transmission in the third embodiment; referring to FIG. 7, the steps to be performed by the display device are as follows:
  • the ID is a USB ID (PID or VID) of the screen device preset in the program; therefore, it is detected whether the screen device is connected to the USB interface A of the display device.
  • PID USB ID
  • the specified format data information is sent through the USB interface A, and the local end of the screen transmission device is notified to meet the requirements of the audio and video transmission display;
  • the display device can make a customized terminal, the signal type transmitted by the USB interface B of the screen device can be automatically recognized. That is, the display device can recognize whether the transmission device sends the audio and video data, or the request for returning the request, or the instruction for successful connection.
  • the audio and video file stream is data subjected to compression and encoding processing.
  • the audio and video file stream transmitted by the screen transmission device is received, the audio and video data is decompressed or decoded, and the corresponding picture and audio are outputted, thereby realizing the screen display of the display device and the display source device.
  • the display device can also return the preset message to the screen device, and forward it to the display source device through the communication protocol port pre-simulated by the screen device to notify the display source device that the screen display is successful.
  • the display device can detect information from the USB interface B of the screen device, and identify whether the information identifies whether it is a backhaul request instruction.
  • the display device acquires a control signal detected by the local end for controlling the display source device by running a preset program, and the signal type includes but is not limited to a touch control signal, an infrared remote control signal, or a mouse/keyboard control signal.
  • the screen device can be simulated into several types of USB devices through its USB interface, so that the display source device can be protected from special drive recognition.
  • the screen device also obtains a data stream of the manipulation signal from the display device and adapts it to the corresponding port provided to the display source device for transmission; the code for intercepting the audio and video data is a system interface for displaying the source device, but the corresponding exe program
  • the data can be saved in a USB flash drive emulated by the screen device.
  • the screen device is also emulated as a USB storage device, storing program data or a program downloader for data communication and intercepting audio and video data of the display source device.
  • the USB storage device simulated by the screen device can be accessed to run the corresponding exe program data for intercepting the screen or audio of the display source device.
  • the display source device may also package the audio and video data according to the agreed protocol by running the corresponding exe program data stored in the screen device, and transmit the corresponding communication protocol port provided to the display source device to the screen transmission device through the screen device, and the screen device.
  • the data packet is received from the USB interface C, and the content of the package is not changed, and is directly forwarded to the display device through the USB interface B.
  • the display device receives the data packet, parses the protocol and the content of the packet, and then decodes the audio and video data for playback.
  • the display device software can also obtain a touch operation signal (or other type of control signal) that the user touches the display source device through the display device, and transmit the signal to the screen transmission device through the USB interface A, and the screen device adapts the operation signal to the corresponding communication.
  • the protocol port is then submitted to the display source device for execution.
  • the display source device identifies the transmitted touch operation signal according to the corresponding communication protocol port provided by the USB interface C of the screen transmission device, and converts it into a manipulation event (the touch operation signal is converted into a touch event.
  • This process is to display the operating system support of the source device.
  • the WINDOWS/MAC has this function), thereby causing the display source device to perform an action corresponding to the manipulation signal.
  • the present invention also provides an apparatus and system for implementing plug and play screen, and the device and system can be used to implement the above-mentioned implementation of plug and play screen.
  • Methods For the convenience of the description, in the structural diagram of the device and the system embodiment for implementing the plug-and-play screen, only the parts related to the embodiment of the present invention are shown, and those skilled in the art can understand that the illustrated structure does not constitute the device. And the definition of the system may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
  • FIG. 8 is a schematic structural diagram of an apparatus for implementing a plug-and-play screen according to an embodiment of the present invention.
  • the apparatus for implementing a plug-and-play screen in this embodiment includes: a port simulation module 510, The connection establishing module 520, the storage module 530, and the audio and video data forwarding module 540 are detailed as follows:
  • the port emulation module 510 is configured to provide, by using a first USB interface of the local end, a plurality of communication protocol ports to the first device, where the communication protocol port can be identified by a universal drive of the first device, where the universal drive provides the first device a universal communication protocol for communication with a standard USB device, the communication protocol port comprising at least: a port for transmitting audio and video data and a port for accessing the storage space;
  • connection establishing module 520 is configured to establish a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface;
  • the storage module 530 is configured to detect that the first USB interface has information from the first device, and detect a communication protocol port that transmits the information. If the port is used to access the storage space, the information is identified as a storage space access.
  • the audio and video data forwarding module 540 is configured to detect that the first USB interface has information from the first device, detect a communication protocol port that transmits the information, and if the port is used for transmitting audio and video data, identify the information.
  • the audio and video data is forwarded to the second device through the second USB interface of the local end, and the second device is instructed to play the corresponding audio and video after receiving the audio and video data;
  • the audio/video data forwarding module 540 identifies the information as audio and video data, it also monitors whether The preset trigger signal for indicating information forwarding is forwarded to the second device through the second USB interface of the local end if the preset trigger control signal for indicating information forwarding is monitored.
  • the trigger control signal includes an operation signal that the preset control button is pressed, and may further include a touch control signal that is monitored by the preset human-machine interaction interface. This makes it easy for the user to flexibly control the effect of the screen display.
  • the communication protocol port further includes: a port for transmitting control information; the device for implementing the plug and play screen in the embodiment may further include: a control signal returning module 550, configured to detect The second USB interface has a control signal from the second device, and the control signal is adapted to a port for transmitting control information, and is sent to the first device through the first USB interface, indicating that the first device is receiving An action corresponding to the manipulation signal is performed after the manipulation signal.
  • the communication protocol port further includes: a port for transmitting connection information; correspondingly, the device for implementing the plug and play screen further comprises: a connection confirmation module (not shown), configured to: A connection success instruction is generated, the connection success instruction is adapted to a port for transmitting connection information, and sent to the first device through the first USB interface.
  • a connection confirmation module (not shown), configured to: A connection success instruction is generated, the connection success instruction is adapted to a port for transmitting connection information, and sent to the first device through the first USB interface.
  • the communication protocol port further includes: a port for transmitting a return request; correspondingly, the device for implementing the plug and play screen further comprises: a backhaul request module (not shown), For detecting that the first USB interface has information from the first device, detecting a communication protocol port that transmits the information, and if it is a port for transmitting the return request, identifying the information as a backhaul request instruction; The return request command is forwarded to the second device through the second USB interface, so that the second device returns its detected control signal to the first device.
  • a backhaul request module (not shown)
  • the return request command is forwarded to the second device through the second USB interface, so that the second device returns its detected control signal to the first device.
  • the attributes of the first USB interface and the second USB interface are both USB devices; the first device is a display source device, the second device is a display device; and the port for transmitting audio and video data is hid Type port, the port used to access the storage space is the msc type port.
  • Fig. 9 is a schematic structural view showing an apparatus for realizing a plug and play screen of the second embodiment.
  • the apparatus for implementing the plug and play screen in this embodiment includes:
  • the USB identification module 610 is configured to identify, by using a pre-installed universal driver, a communication protocol port provided by a USB device that accesses the USB interface of the first device, where the universal driver provides a universal communication protocol for communication between the first device and the standard USB device.
  • the communication protocol port at least includes: a port for transmitting audio and video data and a port for accessing the storage space; the USB device is provided with a first USB interface, and the USB device is accessed through the first USB interface a first device USB interface, and providing, by the first USB interface, a plurality of communication protocol ports that can be recognized by the universal drive of the first device;
  • the audio and video intercepting module 620 is configured to generate a storage space access instruction, adapt the access instruction to the identified port for accessing the storage space, and send the first USB to the USB device through the first device USB interface
  • the interface is configured to access a preset storage space of the USB device, and run a corresponding application in the preset storage space through the first device system interface to intercept a picture and audio played by the first device;
  • the audio and video sending module 630 is configured to send to the first USB interface of the USB device through a designated port of the USB interface of the first device, where the designated port is adapted to be used for transmitting audio and video data.
  • the communication protocol port further includes a port for transmitting a manipulation signal.
  • the device for implementing the plug and play screen further includes: a control signal receiving module 640, configured to receive information from the first USB interface of the USB device, and detect the transmission The communication protocol port that inputs the information; if it is a port for transmitting the manipulation signal, the information is recognized as a manipulation signal, and the first device performs an action corresponding to the manipulation signal.
  • the first device is a display source device; and the attribute of the first USB interface is a USB device.
  • Fig. 10 is a schematic structural view showing an apparatus for realizing a plug and play screen of the third embodiment.
  • the apparatus for implementing the plug and play screen in this embodiment includes:
  • the USB access detection module 710 is configured to detect that the USB device of the second device has a USB device access, and identify whether the USB device is a USB device that meets the requirements; the USB device is configured with a second USB interface, and the USB device passes The second USB interface is connected to the USB interface of the second device;
  • the audio and video data receiving module 720 is configured to receive audio and video data forwarded by the second USB interface of the USB device through the second device USB interface, and play the corresponding audio and video on the second device, if the USB device meets the requirements;
  • a control signal sending module 730 configured to acquire a control signal of the first device detected by the second device, and send the control signal to a second USB interface of the USB device to pass through the USB device
  • the first USB interface returns to the first device, instructing the first device to perform an action corresponding to the manipulation signal after receiving the manipulation signal.
  • the second device is a display device
  • the attribute of the second USB interface is a USB device
  • each functional module is only an example, and the actual application may be implemented according to requirements, for example, according to the configuration requirements of the corresponding hardware or the implementation of the software.
  • the above-mentioned function allocation is completed by different functional modules, that is, the internal structure of the device for realizing the plug and play screen is divided into different functional modules to complete all or part of the functions described above.
  • Each function module can be implemented in the form of hardware or in the form of a software function module.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

The present invention relates to a method and apparatus for plug and play screen mirroring. Said method comprises: a first universal serial bus (USB) port of a local terminal providing a plurality of communication protocol ports to a first device, which may be identified by a generic driver of the first device; establishing a USB communication connection between the local terminal and the first device by means of said communication protocol ports and first USB port; when detected that the first USB port has a storage space access instruction from the first device, a preset storage space is presented to the first device, wherein a corresponding application program is saved in said storage space; said application program may be run by the first device so that current audio/visual information of a system of the first device is obtained; if audio/visual data is detected, the audio/visual data is transmitted by means of a second USB port of the local terminal to a second device. The present invention may achieve a plug and play USB screen mirroring experience without requiring a source device to preinstall a corresponding application program.

Description

实现即插即用传屏的方法及装置Method and device for realizing plug and play screen 技术领域Technical field
本发明涉及数据传输技术领域,特别是涉及实现即插即用传屏的方法及装置。The present invention relates to the field of data transmission technologies, and in particular, to a method and apparatus for implementing plug and play screen transmission.
背景技术Background technique
传统的传屏模式中,作为显示源设备的PC系统可以主动的将其系统声音和画面通过HDMI或者VGA接口输出,但是却无法主动的通过USB接口输出。因此,USB传屏模式中,需要预先在PC端运行一个应用程序,通过该应用程序截取系统的音频和视频数据,然后通过USB接口发送出去,通过USB传屏设备中转,最终到显示终端进行解码显示。In the traditional screen mode, the PC system as the display source device can actively output its system sound and picture through the HDMI or VGA interface, but cannot actively output through the USB interface. Therefore, in the USB screen mode, an application program needs to be run in advance on the PC side, and the audio and video data of the system is intercepted by the application program, and then sent out through the USB interface, transferred through the USB screen device, and finally decoded to the display terminal. display.
然而,对于没有预先安装对应应用程序的显示源设备,则无法将其将其系统声音和画面通过USB传屏到显示终端,给用户带来了不便。However, for a display source device that does not have a corresponding application installed in advance, it is impossible to transfer its system sound and screen to the display terminal via USB, which brings inconvenience to the user.
发明内容Summary of the invention
基于此,本发明实施例提供的实现即插即用传屏的方法及装置,能够能够实现即插即用的USB传屏体验,无需显示源设备预先安装对应的应用程序。Based on this, the method and device for implementing the plug-and-play screen provided by the embodiment of the present invention can implement the plug-and-play USB screen-playing experience without the need to display the source device to pre-install the corresponding application program.
本发明一方面提供实现即插即用传屏的方法,包括:An aspect of the present invention provides a method for implementing a plug and play screen, including:
通过本端的第一USB接口向第一设备提供若干通信协议端口,所述通信协议端口能够被第一设备的通用驱动识别;所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;Providing, by the first USB interface of the local end, a plurality of communication protocol ports to the first device, the communication protocol ports being identifiable by the universal drive of the first device; the universal drive providing universal communication between the first device and the standard USB device a communication protocol, the communication protocol port at least comprising: a port for transmitting audio and video data and a port for accessing the storage space;
通过所述通信协议端口、所述第一USB接口建立本端与所述第一设备的USB通信连接;Establishing a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface;
检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于访问存储空间的端口,则将该信息识别为存储空间访问指令;将预设存储空间展示给第一设备,所述存储空间中存储有对应的应用程序,所述应用程序能够被第一设备运行,并且所述应用程序运行时能够获取第一设备系统当前的音视频信息;Detecting that the first USB interface has information from the first device, detecting a communication protocol port that transmits the information, and if it is a port for accessing the storage space, identifying the information as a storage space access instruction; displaying the preset storage space Providing, to the first device, a corresponding application stored in the storage space, the application program is executable by the first device, and the application program is capable of acquiring current audio and video information of the first device system when the application is running;
若检测到传输该信息的通信协议端口为用于传输音视频数据的端口,则将该信息识别为音视频数据;将所述音视频数据通过本端的第二USB接口转发至第二设备,指示所述第二设备在接收到所述音视频数据后播放对应的音视频。If it is detected that the communication protocol port for transmitting the information is a port for transmitting audio and video data, the information is recognized as audio and video data; and the audio and video data is forwarded to the second device through the second USB interface of the local end, indicating The second device plays the corresponding audio and video after receiving the audio and video data.
本发明另一方面提供一种实现即插即用传屏的方法,包括:Another aspect of the present invention provides a method for implementing a plug and play screen, comprising:
通过预安装的通用驱动识别接入第一设备USB接口的USB设备提供的通信协议端口;所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;所述USB设备设置有第一USB接口,所述USB设备通过所述第一USB接口接入第一设备USB接口,并通过所述第一USB接口提供若干能够被第一设备的通用驱动识别的通信协议端口; Identifying, by a pre-installed universal drive, a communication protocol port provided by a USB device that accesses the USB interface of the first device; the universal driver provides a universal communication protocol for communication between the first device and the standard USB device, the communication protocol port being at least The port includes: a port for transmitting audio and video data and a port for accessing the storage space; the USB device is provided with a first USB interface, and the USB device accesses the first device USB interface through the first USB interface, and Providing, by the first USB interface, a plurality of communication protocol ports that can be recognized by the universal drive of the first device;
生成存储空间访问指令,将所述访问指令适配到识别出的用于访问存储空间的端口,并通过第一设备USB接口发送至所述USB设备的第一USB接口,以访问所述USB设备的预设存储空间,并通过第一设备系统接口运行所述预设存储空间中对应的应用程序以截获第一设备播放的画面和音频;Generating a storage space access instruction, adapting the access instruction to the identified port for accessing the storage space, and transmitting the first USB interface to the USB device through the first device USB interface to access the USB device a preset storage space, and running a corresponding application in the preset storage space through the first device system interface to intercept the picture and audio played by the first device;
将截获到的音视频数据通过第一设备的USB接口发送至所述USB设备的第一USB接口。The intercepted audio and video data is sent to the first USB interface of the USB device through the USB interface of the first device.
本发明又一方面提供一种实现即插即用传屏的装置,包括:Another aspect of the present invention provides an apparatus for implementing a plug and play screen, including:
端口模拟模块,用于通过本端的第一USB接口向第一设备提供若干通信协议端口,所述通信协议端口能够被第一设备的通用驱动识别,所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;a port simulation module, configured to provide, by the first USB interface of the local end, a plurality of communication protocol ports, wherein the communication protocol port is recognized by a universal drive of the first device, where the universal drive provides the first device and the standard USB a universal communication protocol for communication between devices, the communication protocol port including at least a port for transmitting audio and video data and a port for accessing a storage space;
连接建立模块,用于通过所述通信协议端口、所述第一USB接口建立本端与所述第一设备的USB通信连接;a connection establishing module, configured to establish a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface;
存储模块,用于检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于访问存储空间的端口,则将该信息识别为存储空间访问指令;将预设存储空间展示给第一设备,所述存储空间中存储有对应的应用程序,所述应用程序能够被第一设备运行,并且所述应用程序运行时能够获取第一设备系统当前的音视频信息;a storage module, configured to detect that the first USB interface has information from the first device, detect a communication protocol port that transmits the information, and if it is a port for accessing the storage space, identify the information as a storage space access instruction; The preset storage space is displayed to the first device, where the corresponding storage program is stored, the application program can be run by the first device, and the application program can acquire the current audio and video of the first device system information;
以及,音视频数据转发模块,用于若检测到传输该信息的通信协议端口为用于传输音视频数据的端口,则将该信息识别为音视频数据;将所述音视频数据通过本端的第二USB接口转发至第二设备,指示所述第二设备在接收到所述音视频数据后播放对应的音视频。And the audio/video data forwarding module is configured to: if the communication protocol port that transmits the information is detected as a port for transmitting audio and video data, identify the information as audio and video data; and pass the audio and video data through the local end The two USB interfaces are forwarded to the second device, and the second device is instructed to play the corresponding audio and video after receiving the audio and video data.
本发明又一方面提供一种实现即插即用传屏的装置,包括:Another aspect of the present invention provides an apparatus for implementing a plug and play screen, including:
USB识别模块,用于通过预安装的通用驱动识别接入第一设备USB接口的USB设备提供的通信协议端口;所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;所述USB设备设置有第一USB接口,所述USB设备通过所述第一USB接口接入第一设备USB接口,并通过所述第一USB接口提供若干能够被第一设备的通用驱动识别的通信协议端口;a USB identification module, configured to identify, by a pre-installed universal driver, a communication protocol port provided by a USB device that accesses a first device USB interface; the universal driver provides a universal communication protocol for communication between the first device and the standard USB device, The communication protocol port includes at least a port for transmitting audio and video data and a port for accessing the storage space; the USB device is provided with a first USB interface, and the USB device accesses the first USB interface a device USB interface, and through the first USB interface, provides a plurality of communication protocol ports that can be recognized by the universal drive of the first device;
音视频截获模块,用于生成存储空间访问指令,将所述访问指令适配到识别出的用于访问存储空间的端口,并通过第一设备USB接口发送至所述USB设备的第一USB接口,以访问所述USB设备的预设存储空间,并通过第一设备系统接口运行所述预设存储空间中对应的应用程序以截获第一设备播放的画面和音频;And an audio and video intercepting module, configured to generate a storage space access instruction, adapt the access instruction to the identified port for accessing the storage space, and send the first USB interface to the USB device through the first device USB interface Accessing the preset storage space of the USB device, and running a corresponding application in the preset storage space through the first device system interface to intercept the picture and audio played by the first device;
以及,音视频发送模块,用于将截获到的音视频数据通过第一设备的USB接口发送至所述USB设备的第一USB接口。And an audio and video sending module, configured to send the intercepted audio and video data to the first USB interface of the USB device through a USB interface of the first device.
上述技术方案,通过将传屏设备模拟成标准USB设备,并在其中预先存储截获显示源设备播放的画面和音频的应用程序,在该传屏设备与显示源设备USB连接之后,显示源设备通过运行所述传屏设备的存储空间则的所述应用程序,便可完成显示源设备端播放的画面和音频的数据截获。对于显示源设备来说,无需预装对应的应用程序,实现了即插即用的USB传屏,有利于USB传屏应用的推广。 In the above technical solution, after the screen device is simulated as a standard USB device, and an application for capturing the picture and audio played by the display source device is pre-stored therein, after the screen device is connected to the display source device USB, the display source device passes The application running the storage space of the screen device can complete the data capture of the picture and audio played by the display source device. For the display source device, there is no need to pre-install the corresponding application, and the plug-and-play USB screen is realized, which is beneficial to the promotion of the USB screen application.
附图说明DRAWINGS
图1为实施本发明实现即插即用传屏的方法的系统环境示意图;1 is a schematic diagram of a system environment for implementing a method for implementing plug and play screen transmission according to the present invention;
图2为一实施例的实现即插即用传屏的方法的示意性流程图;2 is a schematic flowchart of a method for implementing a plug and play screen according to an embodiment;
图3为一实施例的实现即插即用传屏的方法的详细流程图;3 is a detailed flowchart of a method for implementing a plug and play screen according to an embodiment;
图4为第二实施例的实现即插即用传屏的方法的示意性流程图;4 is a schematic flowchart of a method for implementing a plug and play screen in a second embodiment;
图5为第二实施例的显示源设备实现即插即用传屏的方法的详细流程图;5 is a detailed flowchart of a method for implementing a plug-and-play screen display by a display source device according to a second embodiment;
图6为第三实施例的实现即插即用传屏的方法的示意性流程图;6 is a schematic flowchart of a method for implementing a plug and play screen in a third embodiment;
图7为第三实施例的显示设备实现即插即用传屏的方法的详细流程图;7 is a detailed flowchart of a method for implementing a plug-and-play screen display by a display device of a third embodiment;
图8为一实施例的实现即插即用传屏的装置的示意性结构图;FIG. 8 is a schematic structural diagram of an apparatus for implementing a plug-and-play screen according to an embodiment; FIG.
图9为第二实施例的实现即插即用传屏的装置的示意性结构图;FIG. 9 is a schematic structural diagram of an apparatus for implementing a plug-and-play screen of a second embodiment; FIG.
图10为第三实施例的实现即插即用传屏的装置的示意性结构图。Fig. 10 is a schematic structural view showing an apparatus for realizing a plug and play screen of the third embodiment.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
图1为实施本发明有线传屏的方法的系统环境示意图。如图1所示,本发明实施例的系统环境包括显示源设备(即第一设备)、传屏设备(即模拟USB设备)和显示设备(即第二设备)。所述显示源设备可为PC、手机等运行有操作系统的设备或系统,其系统内拥有至少一个预安装的通用驱动,所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议。所述显示源设备还至少设置有一USB接口(即USB接口D/第三USB接口),且该USB接口的属性设为USB host。所述显示设备为运行有操作系统的设备或系统,例如大屏电子白板,所述显示设备还至少设置有一USB接口(即USB接口A/第四USB接口),且该USB接口的属性设为USB host。1 is a schematic diagram of a system environment for implementing a method for wired screen transmission of the present invention. As shown in FIG. 1 , the system environment of the embodiment of the present invention includes a display source device (ie, a first device), a screen device (ie, an analog USB device), and a display device (ie, a second device). The display source device may be a device or a system running an operating system such as a PC or a mobile phone, and the system has at least one pre-installed universal driver therein, and the universal driver provides universal communication between the first device and the standard USB device. letter of agreement. The display source device is further provided with at least one USB interface (ie, a USB interface D/third USB interface), and the attribute of the USB interface is set to a USB host. The display device is a device or system running an operating system, such as a large-screen electronic whiteboard, and the display device is further provided with at least one USB interface (ie, a USB interface A/fourth USB interface), and the attribute of the USB interface is set to USB host.
所述传屏设备设置有USB接口、存储器以及处理器。所述USB接口包括USB接口C和USB接口B(即第一USB接口和第二USB接口),两个USB接口的属性均为USB device,分别用于与显示源设备、显示设备相连。传屏设备内部可运行一个嵌入式操作系统,并通过USB接口C与显示源设备连接;USB接口B可以为普通的USB接口,用于接入智能平板(或其他大屏设备)等显示设备上,由显示设备的系统驱动和识别。传屏设备可以与USB线材结合成一根定制的特殊USB线材,也可以是一个带传屏设备的USB dongle加标准USB线材的结合的方式存在。所述存储器的用途之一为需要用于存放显示源设备或显示设备需要用到的特定程序或特定程序的下载器。传屏设备可直接通过显示源设备的USB接口或显示设备的USB接口获得供电。The screen device is provided with a USB interface, a memory, and a processor. The USB interface includes a USB interface C and a USB interface B (ie, a first USB interface and a second USB interface), and the attributes of the two USB interfaces are all USB devices, which are respectively connected to the display source device and the display device. The embedded device can run an embedded operating system and connect to the display source device through the USB interface C. The USB interface B can be an ordinary USB interface for accessing a display device such as a smart tablet (or other large-screen device). , driven and identified by the system of the display device. The screen device can be combined with a USB cable to form a custom special USB cable, or it can be a combination of a USB dongle with a screen device and a standard USB cable. One of the uses of the memory is a downloader that requires a specific program or a specific program for storing a display source device or a display device. The screen device can be powered directly through the USB interface of the display source device or the USB interface of the display device.
基于图1所示的系统环境示意图,图2为一实施例的实现即插即用传屏的方法的示意性流程图;在该实施例中,是以该方法应用于传屏设备为例进行说明,所述传屏设备包含第一USB接口和第二USB接口,分别用于接入显示源设备和显示设备。 FIG. 2 is a schematic flowchart of a method for implementing a plug-and-play screen according to an embodiment. In this embodiment, the method is applied to a screen device as an example. The screen device includes a first USB interface and a second USB interface, respectively, for accessing the display source device and the display device.
如图2所示,本实施例实现即插即用传屏的方法包括步骤:As shown in FIG. 2, the method for implementing plug and play screen transmission in this embodiment includes the following steps:
S11,通过本端的第一USB接口向第一设备提供若干通信协议端口,所述通信协议端口能够被第一设备的通用驱动识别,所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;S11. The first device is provided with a plurality of communication protocol ports by using a first USB interface of the local end, where the communication protocol port can be recognized by a universal driver of the first device, where the universal driver provides communication between the first device and the standard USB device. a universal communication protocol, the communication protocol port comprising at least a port for transmitting audio and video data and a port for accessing the storage space;
本实施例中,第一设备即为显示源设备,本端指的是传屏设备。传屏设备可模拟成若干类型的标准USB设备,并提供对应的通信协议端口,显示源设备预安装的通用驱动能够独立地驱动不同类型的标准USB设备。传屏设备模拟成的标准USB设备,显示源设备能免驱识别到它(即通过通用驱动便能识别,无需特定的通用驱动)。In this embodiment, the first device is a display source device, and the local device refers to a screen device. The screen device can be emulated into several types of standard USB devices and provides a corresponding communication protocol port. The generic driver pre-installed on the display source device can independently drive different types of standard USB devices. The standard USB device is simulated by the screen device, and the display source device can be recognized by the drive (ie, it can be recognized by the universal drive without a specific universal drive).
本实施例中USB接口是物理上的概念,而通信协议端口则是面向USB连接服务的抽象的概念,不同的通信协议端口可通过相应端口标识进行区分,例如通过端口号进行区分。在本实施例中,各通信协议端口的端口标识均能够被通用USB驱动识别,传屏设备内的处理器也通过通信协议端口的端口标识来进行多种类型信息(包括音视频数据或操控信号)的收发,以实现通过同一个物理接口实现多种不同类型信息的收发。In this embodiment, the USB interface is a physical concept, and the communication protocol port is an abstract concept for the USB connection service. Different communication protocol ports can be distinguished by corresponding port identifiers, for example, by port number. In this embodiment, the port identifiers of the communication protocol ports can be recognized by the universal USB driver, and the processor in the screen device also performs various types of information (including audio and video data or control signals) through the port identifier of the communication protocol port. Transceiver, to achieve the transmission and reception of a variety of different types of information through the same physical interface.
对应的,传屏设备可模拟成若干类型的标准USB设备,指的是传屏设备可基于通用的标准USB通信协议枚举若干个标准USB通信协议端口,不同USB通信协议端口采用不同的端口标识进行区分。Correspondingly, the screen device can be simulated into several types of standard USB devices, which means that the screen device can enumerate several standard USB communication protocol ports based on the common standard USB communication protocol, and different USB communication protocol ports use different port identifiers. Make a distinction.
S12,通过所述通信协议端口、所述第一USB接口建立本端与所述第一设备的USB通信连接;S12. Establish a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface.
优选的,所述通信协议端口还包括:用于传输连接信息的端口。当传屏设备确认建立了本端与所述第一设备的USB通信连接后,还可生成连接成功指令;将所述连接成功指令适配到用于传输连接信息的端口,并通过第一USB接口发送至第一设备。Preferably, the communication protocol port further includes: a port for transmitting connection information. After the screen device confirms that the USB communication connection between the local end and the first device is established, a connection success instruction may also be generated; the connection success instruction is adapted to the port for transmitting the connection information, and the first USB is passed. The interface is sent to the first device.
S13,检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于访问存储空间的端口,则将该信息识别为存储空间访问指令;将预设存储空间展示给第一设备,所述存储空间中存储有对应的应用程序,所述应用程序能够被第一设备运行,并且所述应用程序运行时能够获取第一设备系统当前的音视频信息;S13, detecting that the first USB interface has information from the first device, detecting a communication protocol port that transmits the information, and if the port is used to access the storage space, identifying the information as a storage space access instruction; The space is displayed to the first device, where the storage device stores a corresponding application, the application can be run by the first device, and the application can obtain the current audio and video information of the first device system when the application is running;
S14,若检测到传输该信息的通信协议端口为用于传输音视频数据的端口,则将该信息识别为音视频数据;将所述音视频数据通过本端的第二USB接口转发至第二设备,指示所述第二设备在接收到所述音视频数据后播放对应的音视频。S14, if it is detected that the communication protocol port that transmits the information is a port for transmitting audio and video data, the information is recognized as audio and video data; and the audio and video data is forwarded to the second device through the second USB interface of the local end. Instructing the second device to play the corresponding audio and video after receiving the audio and video data.
本实施例中,第二设备即为显示设备。若显示源设备没有安装用于截获当前播放的显示画面和音频的软件程序,则可通过访问传屏设备的存储器(存储空间),读取传屏设备的存储器中存储的数据或者用于截获当前播放的显示画面和音频的软件程序(此时传屏设备相当于一个外接的U盘),然后将打包处理后的音视频数据发送至传屏设备。此方式对显示源设备的要求更低,即使其没有预先安装相应的程序,也能够通过访问传屏设备的存储器实现相关功能,对于显示源设备(例如PC)来说,在USB接口插入传屏设备的时候,会在“我的电脑”根目录看到一个“可移动磁盘”,即是传屏设备的存储空间,由此显示源设备就能从该“可移动磁盘”中运行预先存储的应用程序,进而实现了即插即用的效果。传 屏设备从USB接口C接收到的音视频数据后,再通过USB接口B转发给显示设备,实现音视频数据的传屏显示。In this embodiment, the second device is a display device. If the display source device does not have a software program for intercepting the currently displayed display screen and audio, the data stored in the memory of the screen device can be read or used to intercept the current by accessing the memory (storage space) of the screen device. The software program for playing the display screen and audio (the screen device is equivalent to an external USB flash drive), and then the packaged audio and video data is sent to the screen device. This method has lower requirements on the display source device, and even if it does not have the corresponding program installed in advance, the related function can be realized by accessing the memory of the screen device, and for the display source device (for example, a PC), the screen is inserted into the USB interface. When the device is in use, it will see a "removable disk" in the "My Computer" root directory, which is the storage space of the screen device, thereby indicating that the source device can run pre-stored from the "removable disk". The application, in turn, achieves a plug-and-play effect. Pass After the audio and video data received by the screen device from the USB interface C is forwarded to the display device through the USB interface B, the screen display of the audio and video data is realized.
本实施例中,显示源设备中安装有对应的客户端软件,用于接收用户的传屏操作。作为一优选实施方式,所述通信协议端口还包括:用于传输操控信号的端口。在显示源设备与传屏设备连接成功之后,若检测到传屏设备的第二USB接口有来自显示设备的操控信号,则将所述操控信号适配到用于传输控制信息的端口,并通过传屏设备第一USB接口发送至显示源设备,以使显示源设备执行与所述操控信号相应的动作。例如:传屏设备将接收到的来自显示设备的触摸事件转换成为HID触摸事件,其模拟成HID触摸设备,通过USB接口C将该HID触摸事件提交给显示源设备系统,对于显示源设备系统来说,按照常规处理HID触摸设备的触摸事件的方式。所述操控信号的类型包括:触摸控制信号、红外遥控信号或者鼠标/键盘控制信号等;所述操控信号相应的动作可以是能在显示源设备端执行的任意动作。In this embodiment, a corresponding client software is installed in the display source device for receiving a screen operation of the user. As a preferred implementation manner, the communication protocol port further includes: a port for transmitting a manipulation signal. After the connection between the display source device and the screen device is successful, if it is detected that the second USB interface of the screen device has a manipulation signal from the display device, the manipulation signal is adapted to the port for transmitting the control information, and passes The first USB interface of the screen device is sent to the display source device to cause the display source device to perform an action corresponding to the manipulation signal. For example, the screen device converts the received touch event from the display device into a HID touch event, which is simulated as a HID touch device, and submits the HID touch event to the display source device system through the USB interface C, for the display source device system. Said, the way to handle the touch events of HID touch devices as usual. The type of the control signal includes: a touch control signal, an infrared remote control signal, or a mouse/keyboard control signal; and the corresponding action of the control signal may be any action that can be performed on the display source device side.
基于上述实现即插即用传屏的方法,无需显示源设备预先安装相应的应用程序,只需连接相应的传屏设备即可,实现了即插即用的效果。Based on the above method for implementing plug and play screen transmission, it is not necessary to display the source device to pre-install the corresponding application program, and only need to connect the corresponding screen transmission device, thereby realizing the effect of plug and play.
可以理解的是,本实施例中用于传输连接信息的端口、用于传输音视频信息的端口可分别为HID1端口、HID2端口;用于传输存储空间访问指令的端口可为Mac类型端口。换句话说,本实施例中传屏设备可根据实际需要,通过其USB接口C枚举多类能够被显示源终端免驱识别的通信协议端口,并且能够被显示源终端的通用驱动分别独立的驱动,分别用于传输不同类型的数据信息。It can be understood that the port for transmitting the connection information, the port for transmitting the audio and video information in the embodiment may be the HID1 port and the HID2 port respectively, and the port for transmitting the storage space access instruction may be the Mac type port. In other words, in the embodiment, the screen device can enumerate a plurality of communication protocol ports that can be recognized by the display source terminal by the USB interface C according to actual needs, and can be independently driven by the display source terminal. Drivers are used to transmit different types of data information.
图3为一实施例的实现即插即用传屏的方法的详细流程图;参考图3,传屏设备需执行的步骤如下:FIG. 3 is a detailed flowchart of a method for implementing a plug-and-play screen according to an embodiment; referring to FIG. 3, the steps to be performed by the screen device are as follows:
S101,传屏设备处理器程序开始运行后,通过USB接口C将传屏设备模拟成一个标准USB设备,使安装有通用驱动的显示源设备能免驱识别它。S101: After the screen device processor program starts running, the screen device is simulated into a standard USB device through the USB interface C, so that the display source device with the universal driver can be driven to recognize it.
S102,检测USB接口C是否有符合要求的显示源设备接入;S102. Check whether the USB interface C has a display source device that meets the requirements;
检测USB接口C是否有设备连接,若有,再进一步检测所述设备是否为符合要求的显示源设备。Detect whether the USB interface C has a device connection, and if so, further check whether the device is a display source device that meets the requirements.
S103,检测USB接口B是否有符合要求的显示设备接入;S103. Detect whether the USB interface B has a display device that meets the requirements;
检测USB接口B是否有设备连接,若有,再进一步检测所述设备是否为符合要求的显示设备。Detect whether the USB interface B has a device connection, and if so, further check whether the device is a display device that meets the requirements.
可以理解的是,步骤S102、S103的执行顺序不限于图中示例,也可先执行步骤S103,再执行步骤S102;或者两部分同时执行。It can be understood that the execution order of steps S102 and S103 is not limited to the example in the figure, and step S103 may be performed first, and then step S102 may be performed; or two parts may be simultaneously executed.
S104,生成连接成功指令,确认传屏连接成功;S104. Generate a connection success instruction, and confirm that the screen connection is successful.
本实施例中将所述连接成功指令适配到用于传输连接信息的端口,并通过USB接口C发送至第一设备;同时,基于与显示设备预定的协议规则,通过USB接口B向显示设备发出连接成功指令。In this embodiment, the connection success instruction is adapted to a port for transmitting connection information, and is sent to the first device through the USB interface C; meanwhile, the display device is sent through the USB interface B based on a protocol rule predetermined with the display device. A successful connection command is issued.
S105,检测USB接口C是否有来自显示源设备音视频文件流;S105. Check whether the USB interface C has an audio and video file stream from the display source device.
本实施例中,传屏设备检测到USB接口C有来自显示源设备的信息后,进一步检测传输该信息的通信协议端口,若为用于传输音视频数据的端口,则可将该信息识别为音视频数据。In this embodiment, after detecting that the USB interface C has the information from the display source device, the screen device further detects the communication protocol port that transmits the information, and if it is a port for transmitting audio and video data, the information may be identified as Audio and video data.
本实施例中,传屏设备还向显示源设备提供用于访问存储空间的端口。在本步骤之前,若传屏设备 检测到USB接口C有来自显示源设备的信息后,进一步检测传输该信息的通信协议端口,若为用于访问存储空间的端口,则将该信息识别为存储空间访问指令,传屏设备将预设存储空间展示给显示源设备,使得显示源设备系统接口可通过运行所述存储空间中对应的程序,用于截获显示源设备播放的画面和音频。传屏设备的存储空间中存储有用于截获音视频数据的exe可执行程序,或者存储相应程序的下载信息。因此所述显示源设备通过访问传屏设备的存储空间的信息,用于实现对其当前播放的画面或者音频进行截获。In this embodiment, the screen device further provides a port for accessing the storage space to the display source device. Before this step, if the screen device After detecting that the USB interface C has information from the display source device, further detecting the communication protocol port that transmits the information, if the port is used to access the storage space, the information is recognized as a storage space access instruction, and the screen device is pre- The storage space is displayed to the display source device, so that the display source device system interface can be used to intercept the screen and audio played by the display source device by running a corresponding program in the storage space. The storage space of the screen device stores an exe executable program for intercepting audio and video data, or stores download information of the corresponding program. Therefore, the display source device is configured to access the currently played screen or audio by accessing information of the storage space of the screen device.
S106,将USB接口C接收到的音视频文件流通过USB接口B转发至显示设备。S106. Forward the audio and video file stream received by the USB interface C to the display device through the USB interface B.
本实施例中,传屏设备接收到的音视频数据后,根据其采用的通信协议端口可识别接收到的是音视频数据,并通过USB接口B转发至第二设备。In this embodiment, after the audio and video data received by the screen device, the received audio and video data can be identified according to the communication protocol port used by the screen device, and forwarded to the second device through the USB interface B.
作为一优选实施方式,传屏设备识别出接收到的是音视频数据之后,还会监听是否有预设的用于指示信息转发的触发控制信号,若监听到所述触发控制信号,则将所述音视频数据通过USB接口B转发至第二设备。其中,所述触发控制信号可以是传屏设备的预设按钮被按下的操作信号,也可以是传屏设备提供的人机交互界面上发生的特定触摸操控信号,即用户可通过硬件触发方式/软件触发方式,来控制传屏设备对音视频数据的转发,以灵活控制传屏展示的效果。As a preferred embodiment, after the screen device recognizes that the audio and video data is received, it also monitors whether there is a preset trigger control signal for indicating information forwarding, and if the trigger control signal is monitored, The audio and video data is forwarded to the second device through the USB interface B. The trigger control signal may be an operation signal that the preset button of the screen device is pressed, or may be a specific touch control signal generated on the human-machine interface provided by the screen device, that is, the user may trigger through hardware. / Software trigger mode to control the forwarding of audio and video data by the screen device to flexibly control the effect of the screen display.
S107,检测USB接口C是否有来自显示源设备的回传请求指令;S107. Detect whether the USB interface C has a return request instruction from the display source device.
本实施例中,若传屏设备检测到USB接口C有来自显示源设备的信息,检测传输该信息的通信协议端口,若为用于传输回传请求的端口,则可将该信息识别为回传请求指令。In this embodiment, if the screen device detects that the USB interface C has information from the display source device, detecting a communication protocol port that transmits the information, if the port is used for transmitting the return request, the information may be identified as back. Pass the request instruction.
S108,将收到的回传请求指令通过USB接口B转发至显示设备。S108. Forward the received backhaul request command to the display device through the USB interface B.
可以理解的是,上述对音视频数据转发的触发机制,也适用于触发传屏设备对回传请求指令的转发,即还可通过硬件触发方式/软件触发方式,来控制传屏设备对回传请求指令的转发。It can be understood that the triggering mechanism for forwarding audio and video data is also applicable to triggering the forwarding of the return request command by the screen device, that is, the hardware trigger mode/software trigger mode can be used to control the transmission device to return the transmission. Request forwarding of instructions.
本实施例中,传屏设备根据其与显示设备约定的协议规则将收到回传请求指令通过USB接口B发送至显示设备。In this embodiment, the screen transmitting device sends the received backhaul request command to the display device through the USB interface B according to the protocol rule agreed with the display device.
可以理解的是,步骤S105和S106、步骤S107和S108的执行顺序不限于图中示例,也可先执行步骤S107和S108,再执行步骤S105和S106;或者两部分均按照各自设定的时间间隔并行执行。It can be understood that the execution order of steps S105 and S106, steps S107 and S108 is not limited to the example in the figure, and steps S107 and S108 may be performed first, and then steps S105 and S106 may be performed; or both parts are set according to respective time intervals. Execute in parallel.
S109,检测USB接口B是否有来自显示设备的操控信号;S109. Detect whether the USB interface B has a control signal from the display device.
本实施例中,传屏设备可根据其与显示设备约定的协议规则检测USB接口B收到的来自显示设备的信息是否为操控信号。In this embodiment, the screen device can detect whether the information received by the USB interface B from the display device is a control signal according to a protocol rule agreed with the display device.
S110,将所述操控信号适配到传屏设备为显示源设备提供的、用于传输控制信息的对应端口,并通过USB接口C发送至显示源设备,使得显示源设备执行与所述操控信号相应的动作,由此实现了在显示设备端操控显示源设备的效果。S110, the control signal is adapted to a corresponding port provided by the screen device for displaying the source device for transmitting control information, and sent to the display source device through the USB interface C, so that the display source device performs the control signal. Corresponding actions, thereby achieving the effect of manipulating the display source device on the display device side.
可以理解的是,上述对音视频数据转发的触发机制,也适用于触发传屏设备对操控信号的转发,即还可通过硬件触发方式/软件触发方式,来控制传屏设备对操控信号的转发,以灵活控制多端操控的效果。 It can be understood that the trigger mechanism for forwarding audio and video data is also applicable to triggering the forwarding of the control signal by the screen device, that is, the hardware trigger mode/software trigger mode can be used to control the forwarding of the control signal by the screen device. To flexibly control the effect of multi-end manipulation.
本实施例的有线传屏方法,通过预先模拟标准USB设备,通过模拟的USB设备的USB接口为显示源设备提供所需的若干通信协议端口,以通过该模拟的USB设备建立显示源设备和显示设备的有线传屏连接;当检测到模拟的USB设备的第一USB接口有来自显示源设备的信息时,检测传输该信息的通信协议端口,若为用于传输音视频数据的端口,则将该信息识别为音视频数据;将所述音视频数据通过本端的第二USB接口转发至显示设备,以在所述显示设备播放对应的音视频;当检测到模拟的USB设备的第二USB接口有来自显示设备的操控信号时,则将所述操控信号适配到用于传输控制信息的端口,并通过第一USB接口发送至显示源设备,以使显示源设备执行与所述操控信号相应的动作,由此实现了在显示设备端操控显示源设备的效果。基于模拟USB设备,显示源设备和显示设备均只需一条连接线便可实现音视频数据的传屏展示,同时还能实现显示设备操控信号的回传,简化了传屏显示的布线,降低对用户接线难度。The wired screen method of the embodiment provides a display source device with a plurality of communication protocol ports through a USB interface of the simulated USB device by emulating a standard USB device in advance to establish a display source device and display through the simulated USB device. a wired screen connection of the device; when detecting that the first USB interface of the simulated USB device has information from the display source device, detecting a communication protocol port transmitting the information, if it is a port for transmitting audio and video data, The information is identified as audio and video data; the audio and video data is forwarded to the display device through the second USB interface of the local end to play the corresponding audio and video on the display device; when the second USB interface of the simulated USB device is detected When there is a manipulation signal from the display device, the manipulation signal is adapted to a port for transmitting control information, and is sent to the display source device through the first USB interface, so that the display source device performs corresponding to the manipulation signal The action thus achieves the effect of manipulating the display source device on the display device side. Based on the analog USB device, the display source device and the display device can realize the transmission and display of audio and video data only by one connection line, and at the same time, realize the return of the control signal of the display device, simplify the wiring of the screen display, and reduce the pair. User wiring is difficult.
图4为第二实施例的实现即插即用传屏的方法的示意性流程图;本实施例可应用于显示源设备。如图4所示,本实施例实现即插即用传屏的方法包括步骤如下。4 is a schematic flowchart of a method for implementing plug and play screen transmission in the second embodiment; the embodiment is applicable to a display source device. As shown in FIG. 4, the method for implementing the plug and play screen in this embodiment includes the following steps.
步骤S21、通过第一设备(显示源设备)预安装的通用驱动识别当前接入的USB设备(传屏设备)提供的通信协议端口,所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;所述USB设备设置有第一USB接口,所述USB设备通过所述第一USB接口接入第一设备USB接口,并通过所述第一USB接口提供若干能够被第一设备的通用驱动识别的通信协议端口;Step S21: The universal driver pre-installed by the first device (display source device) identifies a communication protocol port provided by the currently accessed USB device (screening device), and the universal driver provides a connection between the first device and the standard USB device. a general communication protocol for communication, the communication protocol port at least comprising: a port for transmitting audio and video data and a port for accessing a storage space; the USB device is provided with a first USB interface, and the USB device passes the a USB interface is connected to the first device USB interface, and provides a plurality of communication protocol ports that can be recognized by the universal drive of the first device through the first USB interface;
本实施例中传屏设备的USB接口C与显示源设备的USB接口D对接,所述USB接口D的属性为USB host;显示源设备指的是用作显示源的设备,。In this embodiment, the USB interface C of the screen device is connected to the USB interface D of the display source device, and the attribute of the USB interface D is a USB host; the display source device refers to a device used as a display source.
步骤S22、生成存储空间访问指令,将所述访问指令适配到识别出的、用于访问存储空间的端口,并通过第一设备USB接口发送至所述USB设备的第一USB接口,以访问所述USB设备的预设存储空间,并通过第一设备系统接口运行所述预设存储空间中对应的应用程序以截获第一设备播放的画面和音频;Step S22: Generate a storage space access instruction, adapt the access instruction to the identified port for accessing the storage space, and send the first USB interface to the USB device through the first device USB interface to access a preset storage space of the USB device, and running a corresponding application in the preset storage space by using a first device system interface to intercept a picture and audio played by the first device;
具体例如:根据显示源设备用户操作生成存储空间访问指令,将所述访问指令适配到用于访问存储空间的端口,并发送至所述USB设备的USB接口C,以访问所述USB设备的预设存储空间,并通过显示源设备的系统接口运行所述预设存储空间中对应的程序用于截获显示源设备播放的画面和音频。由此,对于显示源设备(例如PC)来说,在USB接口插入传屏设备的时候,会在“我的电脑”根目录看到一个“可移动磁盘”,即是传屏设备的存储空间,由此显示源设备就能从该“可移动磁盘”中运行预先存储的应用程序,进而实现了即插即用的效果,无需在显示源设备预先安装对应的程序,为用户提供了方便。Specifically, for example, generating a storage space access instruction according to a display source device user operation, adapting the access instruction to a port for accessing a storage space, and sending the USB interface C to the USB device to access the USB device Presetting the storage space, and running a corresponding program in the preset storage space through the system interface of the display source device for intercepting the picture and audio played by the display source device. Therefore, for the display source device (for example, a PC), when the USB interface is inserted into the screen device, a "removable disk" is seen in the "My Computer" root directory, that is, the storage space of the screen device. Therefore, the display source device can run the pre-stored application program from the "removable disk", thereby realizing the plug-and-play effect, and the user does not need to pre-install the corresponding program on the display source device, thereby providing convenience for the user.
步骤S23、将截获到的音视频数据通过第一设备的USB接口的对应端口发送至所述USB设备的第一USB接口,所述对应端口与用于传输音视频数据的端口相适应;Step S23: Send the intercepted audio and video data to the first USB interface of the USB device through a corresponding port of the USB interface of the first device, where the corresponding port is adapted to the port for transmitting audio and video data;
本实施例中,所述通信协议端口还包括:用于传输操控信号的端口。本实施例的实现即插即用传屏 的方法还包括:若检测到第二USB接口有来自第二设备的操控信号,则将所述操控信号适配到用于传输控制信息的端口,并通过第一USB接口发送至第一设备,以使第一设备执行与所述操控信号相应的动作。In this embodiment, the communication protocol port further includes: a port for transmitting a control signal. The implementation of this embodiment is a plug-and-play screen The method further includes: if detecting that the second USB interface has a manipulation signal from the second device, adapting the manipulation signal to a port for transmitting control information, and transmitting to the first device through the first USB interface, So that the first device performs an action corresponding to the manipulation signal.
优选的,显示源设备用户可根据实际需要选择是否需要开启操控信号回传功能,若需要,则可在连接建立成功之后,通过传屏设备向显示设备发送回传请求,对应的,所述通信协议端口还包括:用于传输回传请求的端口。具体方式例如:获取显示源设备预设的回传请求标识位信息,根据回传请求标识位信息确定显示源设备的回传请求功能是否为开启状态;若是,则生成回传请求指令;将所述回传请求指令适配到用于传输回传请求的端口,并发送至传屏设备的USB接口C,通过传屏设备的USB接口B发送至显示设备。Preferably, the display source device user can select whether to need to enable the control signal return function according to actual needs, and if necessary, send a return request to the display device through the screen device after the connection is successfully established, correspondingly, the communication The protocol port also includes a port for transmitting a backhaul request. The specific manner is as follows: obtaining the return request identifier bit information preset by the display source device, determining whether the return request function of the display source device is the open state according to the return request identifier bit information; if yes, generating a return request request; The return request command is adapted to the port for transmitting the return request, and is sent to the USB interface C of the screen device, and sent to the display device through the USB interface B of the screen device.
图5为第二实施例的实现即插即用传屏的方法的详细流程图;参考图5,显示源设备需执行的步骤如下:FIG. 5 is a detailed flowchart of a method for implementing plug and play screen transmission in the second embodiment; referring to FIG. 5, the steps to be performed on the source device are as follows:
S201,运行显示源设备的通用驱动程序,在系统后台检测是否有符合传屏设备特征的特定ID(PID/VID)的USB设备(即传屏设备)接入;S201, running a universal driver for displaying the source device, and detecting, in the background of the system, whether a USB device (ie, a screen device) having a specific ID (PID/VID) conforming to the characteristics of the screen device is accessed;
S202,若有,则确认是否有收到传屏设备发送的连接成功指令;S202, if yes, confirm whether there is a connection success instruction sent by the screen transmission device;
本实施例中,显示源设备的通用驱动检测到显示源设备的USB接口D接收到的来自传屏设备的USB接口C的信息,检测传输该信息的通信协议端口,若为用于传输连接信息的端口,则根据信号内容可识别出该信息是否为连接成功指令。In this embodiment, the universal driving of the display source device detects the information of the USB interface C from the screen device received by the USB interface D of the display source device, and detects the communication protocol port that transmits the information, if it is used to transmit the connection information. The port can identify whether the information is a connection success command according to the content of the signal.
S203,若收到,则对显示源设备当前播放的画面和/或音频截取,然后经过压缩或者编码成特定文件格式,然后发送给所连接的传屏设备;S203, if received, intercepting a picture and/or audio currently displayed by the display source device, and then compressing or encoding into a specific file format, and then transmitting the image to the connected screen device;
优选的,显示源设备可识别传屏设备提供的用于访问存储空间的端口,将所述访问指令适配到所述用于访问存储空间的端口,并发送至传屏设备的USB接口C,以访问传屏设备的预设存储空间,并通过显示源设备的系统接口运行所述预设存储空间中对应的程序,用于截获显示源设备播放的画面和音频。由此,显示源设备无需预先安装对应的程序,为用户提供了方便。Preferably, the display source device can identify a port provided by the screen device for accessing the storage space, adapt the access instruction to the port for accessing the storage space, and send the USB interface C to the screen device, The preset storage space of the screen device is accessed, and the corresponding program in the preset storage space is run through the system interface of the display source device for intercepting the picture and audio played by the display source device. Therefore, the display source device does not need to install the corresponding program in advance, which provides convenience for the user.
还可通过显示源设备的系统接口运行传屏设备的预设存储空间的程序对音视频数据进行压缩和/或编码,以便于传输。因为截获代码是存储在传屏设备模拟的一个U盘中,因此在显示源设备在接入传屏设备之后,通过传屏设备USB接口预先模拟的USB通信协议端口可查看存储在传屏设备中的exe程序数据,通过运行传屏设备中相关程序就可截获显示源设备当前播放的画面和/或音频(包括声音数据,还包括音量、声道等音频调节信息)。The audio and video data may also be compressed and/or encoded by a program that displays the default storage space of the screen device by displaying the system interface of the source device for transmission. Because the interception code is stored in a U disk emulated by the screen device, after the display source device is connected to the screen device, the USB communication protocol port pre-simulated through the USB interface of the screen device can be viewed and stored in the screen device. The exe program data can intercept the currently playing screen and/or audio (including sound data, including audio adjustment information such as volume and channel) by running the relevant program in the screen device.
S204,确认显示源设备的回传请求功能开关是否打开(使用者可选择打开或关闭);S204, confirming whether the return request function switch of the display source device is turned on (the user can select to open or close);
本实施例中,在连接成功之后,可通过读取显示源设备预设的回传请求标识位信息,确定显示源设备当前的回传请求功能是否为开启状态。In this embodiment, after the connection is successful, the backhaul request identifier information preset by the display source device may be read to determine whether the current backhaul request function of the display source device is in an open state.
S205,若打开,则将回传请求指令发送给传屏设备;S205, if opened, sending a return request command to the screen device;
若显示源设备当前的回传请求功能为开启状态,根据用户操作生成回传请求指令;从传屏设备提供 给显示源设备的通信协议端口中获取用于传输回传请求的端口;并发送至传屏设备的USB接口C,通过传屏设备的USB接口B发送至显示设备。If the current backhaul request function of the source device is displayed as being on, generating a return request command according to the user operation; providing from the screen device The port for transmitting the return request is obtained from the communication protocol port of the display source device; and is sent to the USB interface C of the screen device, and sent to the display device through the USB interface B of the screen device.
S206,检测是否有接收到传屏设备的USB接口C回传的操控信号;S206, detecting whether there is a control signal sent back by the USB interface C of the screen transmission device;
S207,若接收到传屏设备回传的操控信号,则执行对应的响应动作。S207. If receiving a control signal sent back by the screen device, performing a corresponding response action.
本实施例中,检测USB接口D接收来自传屏设备的USB接口C的信息,检测传输该信息的通信协议端口,若为用于传输操控信号的端口,则可按照常规的处理外接HID设备操控信号的方式,识别回传的操控信号,并使第一设备执行与所述操控信号相应的动作。In this embodiment, the USB interface D is detected to receive the information of the USB interface C from the screen device, and the communication protocol port for transmitting the information is detected. If the port is used for transmitting the control signal, the external HID device can be controlled according to the conventional processing. The manner of the signal, identifying the returned control signal, and causing the first device to perform an action corresponding to the manipulation signal.
可以理解的是,步骤S204和S205、步骤S206~S207的执行顺序不限于图中示例,也可先执行步骤S206~S207,再执行步骤S204和S205;或者两部分均按照各自设定的时间间隔并行执行。It can be understood that the execution order of steps S204 and S205 and steps S206-S207 is not limited to the example in the figure, and steps S206-S207 may be performed first, and then steps S204 and S205 may be performed; or both parts are set according to respective time intervals. Execute in parallel.
本实施例的有线传屏方法,通过将传屏设备模拟成标准USB设备,并在其中预先存储截获显示源设备播放的画面和音频的应用程序,在该传屏设备与显示源设备USB连接之后,显示源设备通过运行所述传屏设备的存储空间则的所述应用程序,便可完成显示源设备端播放的画面和音频的数据截获。对于显示源设备来说,无需预装对应的应用程序,实现了即插即用的USB传屏,有利于USB传屏应用的推广;并且显示源设备和显示设备均只需一条连接线便可实现音视频数据的传屏展示,同时还能实现显示设备操控信号的回传,实现了在显示设备端操控显示源设备的效果,简化了传屏显示的布线,降低对用户接线难度。The wired screen method of the embodiment, after simulating the screen device as a standard USB device, and pre-storing an application for intercepting the screen and audio played by the display source device, after the screen device is connected to the display source device by USB The display source device can complete the data capture of the picture and audio played by the display source device by running the application program of the storage space of the screen device. For the display source device, there is no need to pre-install the corresponding application, and the plug-and-play USB screen is realized, which is beneficial to the promotion of the USB screen application; and the display source device and the display device all need only one connection line. Realizing the transmission and display of audio and video data, and at the same time, realizing the return of the control signal of the display device, realizing the effect of manipulating the display source device on the display device side, simplifying the wiring of the screen display, and reducing the difficulty of wiring the user.
图6为第三实施例的实现即插即用传屏的方法的示意性流程图;本实施例可应用于显示设备。如图6所示,本实施例实现即插即用传屏的方法包括步骤如下。FIG. 6 is a schematic flowchart of a method for implementing plug and play screen transmission according to a third embodiment; the embodiment is applicable to a display device. As shown in FIG. 6, the method for implementing the plug and play screen in this embodiment includes the following steps.
S31、检测到第二设备USB接口有USB设备接入,识别该USB设备是否为符合要求的USB设备;所述USB设备设置有第二USB接口,所述USB设备通过所述第二USB接口接入第二设备USB接口;S31. The USB device of the second device is detected to have a USB device access, and the USB device is identified as a USB device that meets the requirements. The USB device is configured with a second USB interface, and the USB device is connected through the second USB interface. Into the second device USB interface;
本实施例中,检测到显示设备的USB接口A有USB设备接入,可根据该USB设备的PID和/或VID判断当前接入的是否为上述传屏设备。所述显示设备指的是用作展示音视频信息的设备,所述USB接口A的属性为USB host。In this embodiment, it is detected that the USB interface A of the display device has a USB device access, and whether the current access device is the above-mentioned screen device can be determined according to the PID and/or VID of the USB device. The display device refers to a device used to display audio and video information, and the attribute of the USB interface A is a USB host.
S32、若为符合要求的USB设备,通过第二设备USB接口接收通过所述USB设备的第二USB接口转发的音视频数据,在第二设备播放相应的音视频;S32. If the USB device meets the requirements, receive the audio and video data forwarded by the second USB interface of the USB device through the USB interface of the second device, and play the corresponding audio and video on the second device;
优选的,在检测到显示设备的USB接口A有符合要求的传屏设备接入之后,还可生成连接响应信号,并发送至传屏设备的USB接口B,以告知传屏设备显示设备符合音视频传输显示的要求,传屏设备可根据该信息确认连接是否成功。Preferably, after detecting that the USB interface A of the display device has the required screen device access, the connection response signal may also be generated and sent to the USB interface B of the screen device to notify the screen device that the device matches the sound. The requirement of the video transmission display, the screen device can confirm whether the connection is successful according to the information.
本实施例中,为了方便传输,在显示源端将音视频数据进行压缩和/或编码处理,对应的在显示设备还需对所述音视频数据进行对应的解压和/或解编处理,处理之后再在显示设备播放相应的画面和/或音频。In this embodiment, in order to facilitate the transmission, the audio and video data is compressed and/or encoded at the display source end, and the corresponding display device needs to perform corresponding decompression and/or de-compression processing on the audio and video data, and the processing is performed. The corresponding picture and/or audio is then played on the display device.
S33、获取第二设备检测到的对第一设备的操控信号,并将所述操控信号发送至所述USB设备的第二USB接口,以通过所述USB设备的第一USB接口返回第一设备,指示所述第一设备在接收到所述 操控信号后执行与所述操控信号相应的动作;S33. Acquire a control signal of the first device detected by the second device, and send the control signal to a second USB interface of the USB device, to return to the first device by using the first USB interface of the USB device. Instructing the first device to receive the Performing an action corresponding to the manipulation signal after the signal is manipulated;
本实施例中所述操控信号的类型可包括:触摸控制信号、红外遥控信号或者鼠标/键盘控制信号;所述操控信号相应的动作可以是能在显示源设备端执行的任意动作。The type of the control signal in this embodiment may include: a touch control signal, an infrared remote control signal, or a mouse/keyboard control signal; and the corresponding action of the manipulation signal may be any action that can be performed on the display source device side.
图7为第三实施例的实现即插即用传屏的方法的详细流程图;参考图7,显示设备需执行的步骤如下:7 is a detailed flowchart of a method for implementing plug and play screen transmission in the third embodiment; referring to FIG. 7, the steps to be performed by the display device are as follows:
S301,显示设备系统程序运行后,会检测是否有特定ID的USB设备(即传屏设备)接入。S301. After the display device system program runs, it detects whether a USB device (ie, a screen device) with a specific ID is accessed.
本实施例中,此ID为程序里预先设置的传屏设备的USB ID(PID或VID);因此即检测所述传屏设备是否接入显示设备的USB接口A。In this embodiment, the ID is a USB ID (PID or VID) of the screen device preset in the program; therefore, it is detected whether the screen device is connected to the USB interface A of the display device.
S302,若检测到传屏设备接入,则通过USB接口A发出指定格式数据信息,告知传屏设备本端符合音视频传输显示的要求;S302. If the transmission of the screen transmission device is detected, the specified format data information is sent through the USB interface A, and the local end of the screen transmission device is notified to meet the requirements of the audio and video transmission display;
S303,检测传屏设备的USB接口B是否有音视频文件流传输过来;S303. Detect whether the audio interface file of the USB interface B of the screen transmission device is transmitted.
由于显示设备可以使定制的终端,因此可自动识别传屏设备的USB接口B传输过来的信号类型。即显示设备可识别传屏设备发送过来的是音视频数据,还是回传请求指令,或者是连接成功的指令。Since the display device can make a customized terminal, the signal type transmitted by the USB interface B of the screen device can be automatically recognized. That is, the display device can recognize whether the transmission device sends the audio and video data, or the request for returning the request, or the instruction for successful connection.
本实施例中,所述音视频文件流为经过压缩和编码处理的数据。In this embodiment, the audio and video file stream is data subjected to compression and encoding processing.
S304,若接收到由传屏设备传输的音视频文件流,经过解压或解码得到音视频数据,进而输出对应的画面和音频,实现显示设备与显示源设备的传屏显示。S304. If the audio and video file stream transmitted by the screen transmission device is received, the audio and video data is decompressed or decoded, and the corresponding picture and audio are outputted, thereby realizing the screen display of the display device and the display source device.
优选的,显示设备还可回复预设消息到传屏设备,通过传屏设备预先模拟的通信协议端口转发到显示源设备,以通知显示源设备传屏显示成功。Preferably, the display device can also return the preset message to the screen device, and forward it to the display source device through the communication protocol port pre-simulated by the screen device to notify the display source device that the screen display is successful.
S305,检测传屏设备的USB接口B是否有控制信号回传请求传输过来;S305. Detect whether the USB interface B of the screen transmission device has a control signal return request transmitted.
本实施例中,显示设备可检测来自传屏设备的USB接口B的信息,识别该信息识别是否为回传请求指令。In this embodiment, the display device can detect information from the USB interface B of the screen device, and identify whether the information identifies whether it is a backhaul request instruction.
S306,若检测到控制信号回传请求,则获取本端检测到的对显示源设备的操控信号,并将所述操控信号发送至传屏设备。S306. If a control signal return request is detected, acquiring a control signal to the display source device detected by the local end, and sending the control signal to the screen transmission device.
显示设备通过运行预设的程序,获取本端检测到的用于操控显示源设备的操控信号,信号类型包括但不限于触摸控制信号、红外遥控信号或者鼠标/键盘控制信号。The display device acquires a control signal detected by the local end for controlling the display source device by running a preset program, and the signal type includes but is not limited to a touch control signal, an infrared remote control signal, or a mouse/keyboard control signal.
通过上述实施例的实现即插即用传屏的方法,传屏设备通过其USB接口可模拟成若干类型的USB设备,使得显示源设备可免特殊驱动识别。传屏设备还会从显示设备得到操控信号的数据流,并适配到其提供给显示源设备的对应端口进行传输;截获音视频数据的代码是显示源设备的系统接口,但是对应的exe程序数据可保存在传屏设备模拟的一个U盘中。传屏设备还模拟成USB存储设备,存储有用于数据通信和截获显示源设备音视频数据的程序数据或者程序下载器。在显示源设备与传屏设备建立USB连接之后,可访问传屏设备模拟的USB存储设备,以运行对应的exe程序数据用于对显示源设备的画面或者音频进行截获。显示源设备还可通过运行传屏设备中存储的相应exe程序数据将音视频数据按照约定的协议打包,通过传屏设备提供给显示源设备的对应通信协议端口传送至传屏设备,传屏设备 从USB接口C收到数据包,不改变包内容,直接通过USB接口B转发到显示设备。显示设备收到数据包,解析协议和包内容,再解码音视频数据进行播放。Through the method of implementing the plug-and-play screen in the above embodiment, the screen device can be simulated into several types of USB devices through its USB interface, so that the display source device can be protected from special drive recognition. The screen device also obtains a data stream of the manipulation signal from the display device and adapts it to the corresponding port provided to the display source device for transmission; the code for intercepting the audio and video data is a system interface for displaying the source device, but the corresponding exe program The data can be saved in a USB flash drive emulated by the screen device. The screen device is also emulated as a USB storage device, storing program data or a program downloader for data communication and intercepting audio and video data of the display source device. After the display source device establishes a USB connection with the screen device, the USB storage device simulated by the screen device can be accessed to run the corresponding exe program data for intercepting the screen or audio of the display source device. The display source device may also package the audio and video data according to the agreed protocol by running the corresponding exe program data stored in the screen device, and transmit the corresponding communication protocol port provided to the display source device to the screen transmission device through the screen device, and the screen device The data packet is received from the USB interface C, and the content of the package is not changed, and is directly forwarded to the display device through the USB interface B. The display device receives the data packet, parses the protocol and the content of the packet, and then decodes the audio and video data for playback.
显示设备软件还可以获取用户通过显示设备对显示源设备的触摸操作信号(或者其他类型的操控信号),通过USB接口A回传给传屏设备,传屏设备将操作信号适配到对应的通信协议端口,进而提交给显示源设备进行执行。显示源设备会根据传屏设备的USB接口C提供的对应通信协议端口,识别传过来的触摸操作信号,并转换为操控事件(触摸操作信号转换为触摸事件这个过程是显示源设备的操作系统支持的,WINDOWS/MAC均有此功能),由此使显示源设备执行与所述操控信号相应的动作。The display device software can also obtain a touch operation signal (or other type of control signal) that the user touches the display source device through the display device, and transmit the signal to the screen transmission device through the USB interface A, and the screen device adapts the operation signal to the corresponding communication. The protocol port is then submitted to the display source device for execution. The display source device identifies the transmitted touch operation signal according to the corresponding communication protocol port provided by the USB interface C of the screen transmission device, and converts it into a manipulation event (the touch operation signal is converted into a touch event. This process is to display the operating system support of the source device. The WINDOWS/MAC has this function), thereby causing the display source device to perform an action corresponding to the manipulation signal.
需要说明的是,对于前述的各方法实施例,为了简便描述,将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。It should be noted that, for the foregoing method embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence, because In accordance with the present invention, certain steps may be performed in other sequences or concurrently.
基于与上述实施例中的实现即插即用传屏的方法相同的思想,本发明还提供实现即插即用传屏的装置及系统,装置及系统可用于执行上述实现即插即用传屏的方法。为了便于说明,实现即插即用传屏的装置及系统实施例的结构示意图中,仅仅示出了与本发明实施例相关的部分,本领域技术人员可以理解,图示结构并不构成对装置及系统的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Based on the same idea as the method for implementing plug and play screen in the above embodiment, the present invention also provides an apparatus and system for implementing plug and play screen, and the device and system can be used to implement the above-mentioned implementation of plug and play screen. Methods. For the convenience of the description, in the structural diagram of the device and the system embodiment for implementing the plug-and-play screen, only the parts related to the embodiment of the present invention are shown, and those skilled in the art can understand that the illustrated structure does not constitute the device. And the definition of the system may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
图8为本发明一实施例的实现即插即用传屏的装置的示意性结构图,如图8所示,本实施例的实现即插即用传屏的装置包括:端口模拟模块510、连接建立模块520、存储模块530以及音视频数据转发模块540,各模块详述如下:FIG. 8 is a schematic structural diagram of an apparatus for implementing a plug-and-play screen according to an embodiment of the present invention. As shown in FIG. 8, the apparatus for implementing a plug-and-play screen in this embodiment includes: a port simulation module 510, The connection establishing module 520, the storage module 530, and the audio and video data forwarding module 540 are detailed as follows:
所述端口模拟模块510,用于通过本端的第一USB接口向第一设备提供若干通信协议端口,所述通信协议端口能够被第一设备的通用驱动识别,所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;The port emulation module 510 is configured to provide, by using a first USB interface of the local end, a plurality of communication protocol ports to the first device, where the communication protocol port can be identified by a universal drive of the first device, where the universal drive provides the first device a universal communication protocol for communication with a standard USB device, the communication protocol port comprising at least: a port for transmitting audio and video data and a port for accessing the storage space;
所述连接建立模块520,用于通过所述通信协议端口、所述第一USB接口建立本端与所述第一设备的USB通信连接;The connection establishing module 520 is configured to establish a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface;
所述存储模块530,用于检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于访问存储空间的端口,则将该信息识别为存储空间访问指令;将预设存储空间展示给第一设备,所述存储空间中存储有对应的应用程序,所述应用程序能够被第一设备运行,并且所述应用程序运行时能够获取第一设备系统当前的音视频信息;The storage module 530 is configured to detect that the first USB interface has information from the first device, and detect a communication protocol port that transmits the information. If the port is used to access the storage space, the information is identified as a storage space access. An instruction to display a preset storage space to a first device, wherein the storage space stores a corresponding application, the application program can be run by the first device, and the application program can obtain the current current state of the first device system Audio and video information;
所述音视频数据转发模块540,用于检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于传输音视频数据的端口,则将该信息识别为音视频数据;将所述音视频数据通过本端的第二USB接口转发至第二设备,指示所述第二设备在接收到所述音视频数据后播放对应的音视频;The audio and video data forwarding module 540 is configured to detect that the first USB interface has information from the first device, detect a communication protocol port that transmits the information, and if the port is used for transmitting audio and video data, identify the information. The audio and video data is forwarded to the second device through the second USB interface of the local end, and the second device is instructed to play the corresponding audio and video after receiving the audio and video data;
作为一优选实施方式,所述音视频数据转发模块540将该信息识别为音视频数据之后,还监听是否 有预设的用于指示信息转发的触发控制信号,若监听到预设的用于指示信息转发的触发控制信号,将所述音视频数据通过本端的第二USB接口转发至第二设备。所述触发控制信号包括预设的控制按钮被按下的操作信号,还可包括通过预设人机交互界面监听到的触摸控制信号。由此方便用户灵活控制传屏展示的效果。As a preferred implementation manner, after the audio/video data forwarding module 540 identifies the information as audio and video data, it also monitors whether The preset trigger signal for indicating information forwarding is forwarded to the second device through the second USB interface of the local end if the preset trigger control signal for indicating information forwarding is monitored. The trigger control signal includes an operation signal that the preset control button is pressed, and may further include a touch control signal that is monitored by the preset human-machine interaction interface. This makes it easy for the user to flexibly control the effect of the screen display.
作为一优选实施方式,所述通信协议端口还包括:用于传输控制信息的端口;本实施例的实现即插即用传屏的装置还可包括:操控信号回传模块550,用于检测到第二USB接口有来自第二设备的操控信号,则将所述操控信号适配到用于传输控制信息的端口,并通过第一USB接口发送至第一设备,指示所述第一设备在接收到所述操控信号后执行与所述操控信号相应的动作。As a preferred embodiment, the communication protocol port further includes: a port for transmitting control information; the device for implementing the plug and play screen in the embodiment may further include: a control signal returning module 550, configured to detect The second USB interface has a control signal from the second device, and the control signal is adapted to a port for transmitting control information, and is sent to the first device through the first USB interface, indicating that the first device is receiving An action corresponding to the manipulation signal is performed after the manipulation signal.
优选的,所述通信协议端口还包括:用于传输连接信息的端口;对应的,所述的实现即插即用传屏的装置还包括:连接确认模块(图中未示出),用于生成连接成功指令,将所述连接成功指令适配到用于传输连接信息的端口,并通过第一USB接口发送至第一设备。Preferably, the communication protocol port further includes: a port for transmitting connection information; correspondingly, the device for implementing the plug and play screen further comprises: a connection confirmation module (not shown), configured to: A connection success instruction is generated, the connection success instruction is adapted to a port for transmitting connection information, and sent to the first device through the first USB interface.
优选的,所述通信协议端口还包括:用于传输回传请求的端口;对应的,所述的实现即插即用传屏的装置还包括:回传请求模块(图中未示出),用于检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于传输回传请求的端口,则将该信息识别为回传请求指令;将所述回传请求指令通过第二USB接口转发至第二设备,使第二设备返回其检测到的对第一设备的操控信号。Preferably, the communication protocol port further includes: a port for transmitting a return request; correspondingly, the device for implementing the plug and play screen further comprises: a backhaul request module (not shown), For detecting that the first USB interface has information from the first device, detecting a communication protocol port that transmits the information, and if it is a port for transmitting the return request, identifying the information as a backhaul request instruction; The return request command is forwarded to the second device through the second USB interface, so that the second device returns its detected control signal to the first device.
本实施例中,第一USB接口、第二USB接口的属性均为USB device;所述第一设备为显示源设备,所述第二设备为显示设备;用于传输音视频数据的端口为hid类型端口,用于访问存储空间的端口为msc类型端口。In this embodiment, the attributes of the first USB interface and the second USB interface are both USB devices; the first device is a display source device, the second device is a display device; and the port for transmitting audio and video data is hid Type port, the port used to access the storage space is the msc type port.
图9为第二实施例的实现即插即用传屏的装置的示意性结构图。如图9所示,本实施例的实现即插即用传屏的装置包括:Fig. 9 is a schematic structural view showing an apparatus for realizing a plug and play screen of the second embodiment. As shown in FIG. 9, the apparatus for implementing the plug and play screen in this embodiment includes:
USB识别模块610,用于通过预安装的通用驱动识别接入第一设备USB接口的USB设备提供的通信协议端口,所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;所述USB设备设置有第一USB接口,所述USB设备通过所述第一USB接口接入第一设备USB接口,并通过所述第一USB接口提供若干能够被第一设备的通用驱动识别的通信协议端口;The USB identification module 610 is configured to identify, by using a pre-installed universal driver, a communication protocol port provided by a USB device that accesses the USB interface of the first device, where the universal driver provides a universal communication protocol for communication between the first device and the standard USB device. The communication protocol port at least includes: a port for transmitting audio and video data and a port for accessing the storage space; the USB device is provided with a first USB interface, and the USB device is accessed through the first USB interface a first device USB interface, and providing, by the first USB interface, a plurality of communication protocol ports that can be recognized by the universal drive of the first device;
音视频截获模块620,用于生成存储空间访问指令,将所述访问指令适配到识别出的用于访问存储空间的端口,并通过第一设备USB接口发送至所述USB设备的第一USB接口,以访问所述USB设备的预设存储空间,并通过第一设备系统接口运行所述预设存储空间中对应的应用程序以截获第一设备播放的画面和音频;The audio and video intercepting module 620 is configured to generate a storage space access instruction, adapt the access instruction to the identified port for accessing the storage space, and send the first USB to the USB device through the first device USB interface The interface is configured to access a preset storage space of the USB device, and run a corresponding application in the preset storage space through the first device system interface to intercept a picture and audio played by the first device;
音视频发送模块630,用于通过第一设备的USB接口的指定端口发送至所述USB设备的第一USB接口,所述指定端口与用于传输音视频数据的端口相适应。The audio and video sending module 630 is configured to send to the first USB interface of the USB device through a designated port of the USB interface of the first device, where the designated port is adapted to be used for transmitting audio and video data.
作为一优选实施方式,所述通信协议端口还包括,用于传输操控信号的端口。所述实现即插即用传屏的装置还包括:操控信号接收模块640,用于接收来自该USB设备的第一USB接口的信息,检测传 输该信息的通信协议端口;若为用于传输操控信号的端口,则将该信息识别为操控信号,使第一设备执行与所述操控信号相应的动作。As a preferred embodiment, the communication protocol port further includes a port for transmitting a manipulation signal. The device for implementing the plug and play screen further includes: a control signal receiving module 640, configured to receive information from the first USB interface of the USB device, and detect the transmission The communication protocol port that inputs the information; if it is a port for transmitting the manipulation signal, the information is recognized as a manipulation signal, and the first device performs an action corresponding to the manipulation signal.
本实施例中,所述第一设备为显示源设备;所述第一USB接口的属性为USB device。In this embodiment, the first device is a display source device; and the attribute of the first USB interface is a USB device.
图10为第三实施例的实现即插即用传屏的装置的示意性结构图。如图10所示,本实施例的实现即插即用传屏的装置包括:Fig. 10 is a schematic structural view showing an apparatus for realizing a plug and play screen of the third embodiment. As shown in FIG. 10, the apparatus for implementing the plug and play screen in this embodiment includes:
USB接入检测模块710,用于检测到第二设备USB接口有USB设备接入,识别该USB设备是否为符合要求的USB设备;所述USB设备设置有第二USB接口,所述USB设备通过所述第二USB接口接入第二设备USB接口;The USB access detection module 710 is configured to detect that the USB device of the second device has a USB device access, and identify whether the USB device is a USB device that meets the requirements; the USB device is configured with a second USB interface, and the USB device passes The second USB interface is connected to the USB interface of the second device;
音视频数据接收模块720,用于若为符合要求的USB设备,通过第二设备USB接口接收通过所述USB设备的第二USB接口转发的音视频数据,在第二设备播放相应的音视频;The audio and video data receiving module 720 is configured to receive audio and video data forwarded by the second USB interface of the USB device through the second device USB interface, and play the corresponding audio and video on the second device, if the USB device meets the requirements;
以及,操控信号发送模块730,用于获取第二设备检测到的对第一设备的操控信号,并将所述操控信号发送至所述USB设备的第二USB接口,以通过所述USB设备的第一USB接口返回第一设备,指示所述第一设备在接收到所述操控信号后执行与所述操控信号相应的动作。And a control signal sending module 730, configured to acquire a control signal of the first device detected by the second device, and send the control signal to a second USB interface of the USB device to pass through the USB device The first USB interface returns to the first device, instructing the first device to perform an action corresponding to the manipulation signal after receiving the manipulation signal.
本实施例中,所述第二设备为显示设备,所述第二USB接口的属性为USB device。In this embodiment, the second device is a display device, and the attribute of the second USB interface is a USB device.
需要说明的是,上述示例的实现即插即用传屏的装置的实施方式中,各模块/单元之间的信息交互、执行过程等内容,由于与本发明前述方法实施例基于同一构思,其带来的技术效果与本发明前述方法实施例相同,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。It should be noted that, in the implementation of the apparatus for implementing the plug-and-play screen of the above example, the information interaction, the execution process, and the like between the modules/units are based on the same concept as the foregoing method embodiments of the present invention. The technical effects are the same as those of the foregoing method embodiments of the present invention. For details, refer to the description in the method embodiment of the present invention, and details are not described herein again.
此外,上述示例的实现即插即用传屏的装置的实施方式中,各功能模块的逻辑划分仅是举例说明,实际应用中可以根据需要,例如出于相应硬件的配置要求或者软件的实现的便利考虑,将上述功能分配由不同的功能模块完成,即将所述实现即插即用传屏的装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。其中各功能模既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, in the implementation of the apparatus for implementing the plug-and-play screen of the above example, the logical division of each functional module is only an example, and the actual application may be implemented according to requirements, for example, according to the configuration requirements of the corresponding hardware or the implementation of the software. Conveniently, the above-mentioned function allocation is completed by different functional modules, that is, the internal structure of the device for realizing the plug and play screen is divided into different functional modules to complete all or part of the functions described above. Each function module can be implemented in the form of hardware or in the form of a software function module.
本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,作为独立的产品销售或使用。所述程序在执行时,可执行如上述各方法的实施例的全部或部分步骤。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。It will be understood by those skilled in the art that all or part of the processes in the above embodiments may be implemented by a computer program to instruct related hardware, and the program may be stored in a computer readable storage medium as Independent product sales or use. The program, when executed, may perform all or part of the steps of an embodiment of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。可以理解,其中所使用的术语“第一”、“第二”等在本文中用于区分对象,但这些对象不受这些术语限制。In the above embodiments, the descriptions of the various embodiments are all focused, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments. It will be understood that the terms "first", "second", and the like, as used herein, are used herein to distinguish an object, but these are not limited by these terms.
以上所述实施例仅表达了本发明的几种实施方式,不能理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above-described embodiments are merely illustrative of several embodiments of the invention and are not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (16)

  1. 一种实现即插即用传屏的方法,其特征在于,包括:A method for implementing plug and play screening, comprising:
    通过本端的第一USB接口向第一设备提供若干通信协议端口,所述通信协议端口能够被第一设备的通用驱动识别;所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;Providing, by the first USB interface of the local end, a plurality of communication protocol ports to the first device, the communication protocol ports being identifiable by the universal drive of the first device; the universal drive providing universal communication between the first device and the standard USB device a communication protocol, the communication protocol port at least comprising: a port for transmitting audio and video data and a port for accessing the storage space;
    通过所述通信协议端口、所述第一USB接口建立本端与所述第一设备的USB通信连接;Establishing a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface;
    检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于访问存储空间的端口,则将该信息识别为存储空间访问指令;将预设存储空间展示给第一设备,所述存储空间中存储有对应的应用程序,所述应用程序能够被第一设备运行,并且所述应用程序运行时能够获取第一设备系统当前的音视频信息;Detecting that the first USB interface has information from the first device, detecting a communication protocol port that transmits the information, and if it is a port for accessing the storage space, identifying the information as a storage space access instruction; displaying the preset storage space Providing, to the first device, a corresponding application stored in the storage space, the application program is executable by the first device, and the application program is capable of acquiring current audio and video information of the first device system when the application is running;
    若检测到传输该信息的通信协议端口为用于传输音视频数据的端口,则将该信息识别为音视频数据;将所述音视频数据通过本端的第二USB接口转发至第二设备,指示所述第二设备在接收到所述音视频数据后播放对应的音视频。If it is detected that the communication protocol port for transmitting the information is a port for transmitting audio and video data, the information is recognized as audio and video data; and the audio and video data is forwarded to the second device through the second USB interface of the local end, indicating The second device plays the corresponding audio and video after receiving the audio and video data.
  2. 根据权利要求1所述的实现有线传屏的方法,其特征在于,所述通信协议端口还包括:用于传输连接信息的端口;The method for implementing wired screen transmission according to claim 1, wherein the communication protocol port further comprises: a port for transmitting connection information;
    通过所述通信协议端口、所述第一USB接口建立本端与所述第一设备的USB通信连接之后还包括:After the USB communication connection between the local device and the first device is established by using the communication protocol port and the first USB interface, the method further includes:
    生成连接成功指令,将所述连接成功指令适配到用于传输连接信息的端口,并通过第一USB接口发送至第一设备。A connection success instruction is generated, the connection success instruction is adapted to a port for transmitting connection information, and sent to the first device through the first USB interface.
  3. 根据权利要求1所述的实现即插即用传屏的方法,其特征在于,所述通信协议端口还包括:用于传输操控信号的端口和用于传输回传请求的端口;The method for implementing a plug and play screen according to claim 1, wherein the communication protocol port further comprises: a port for transmitting a control signal and a port for transmitting a return request;
    检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口之后还包括:The first USB interface is detected to have information from the first device, and after detecting the communication protocol port for transmitting the information, the method further includes:
    若为用于传输回传请求的端口,则将该信息识别为回传请求指令;将所述回传请求指令通过第二USB接口转发至第二设备,使第二设备返回其检测到的对第一设备的操控信号;If the port is used for transmitting the backhaul request, the information is identified as a backhaul request instruction; the backhaul request command is forwarded to the second device through the second USB interface, so that the second device returns the detected pair a control signal of the first device;
    所述实现即插即用传屏的方法还包括:The method for implementing plug and play screen transmission further includes:
    检测到第二USB接口有来自第二设备的操控信号,将所述操控信号适配到用于传输控制信息的端口,并通过第一USB接口发送至第一设备,指示所述第一设备在接收到所述操控信号后执行与所述操控信号相应的动作。Detecting that the second USB interface has a control signal from the second device, adapting the control signal to a port for transmitting control information, and sending the first USB device to the first device, indicating that the first device is The action corresponding to the manipulation signal is performed after receiving the manipulation signal.
  4. 根据权利要求1所述的实现即插即用传屏的方法,其特征在于,所述将所述音视频数据通过本端的第二USB接口转发至第二设备的步骤包括:The method for implementing the plug and play screen according to claim 1, wherein the step of forwarding the audio and video data to the second device through the second USB interface of the local end comprises:
    若监听到预设的用于指示信息转发的触发控制信号,将所述音视频数据通过本端的第二USB接口转发至第二设备。If the preset trigger control signal for indicating information forwarding is monitored, the audio and video data is forwarded to the second device through the second USB interface of the local end.
  5. 根据权利要求4所述的实现即插即用传屏的方法,其特征在于,所述触发控制信号包括本端预设的控制按钮被按下的操作信号。 The method for realizing plug and play screen according to claim 4, wherein the trigger control signal comprises an operation signal that the preset control button of the local end is pressed.
  6. 根据权利要求1至5任一所述的实现即插即用传屏的方法,其特征在于,第一USB接口、第二USB接口的属性均为USB device;The method for implementing the plug and play screen according to any one of claims 1 to 5, wherein the attributes of the first USB interface and the second USB interface are both USB devices;
    第一设备为显示源设备,第二设备为显示设备;The first device is a display source device, and the second device is a display device;
    用于传输音视频数据的端口为hid类型端口,用于访问存储空间的端口为msc类型端口。The port for transmitting audio and video data is a hid type port, and the port for accessing the storage space is an msc type port.
  7. 一种实现即插即用传屏的方法,其特征在于,包括:A method for implementing plug and play screening, comprising:
    通过预安装的通用驱动识别接入第一设备USB接口的USB设备提供的通信协议端口;所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;所述USB设备设置有第一USB接口,所述USB设备通过所述第一USB接口接入第一设备USB接口,并通过所述第一USB接口提供若干能够被第一设备的通用驱动识别的通信协议端口;Identifying, by a pre-installed universal drive, a communication protocol port provided by a USB device that accesses the USB interface of the first device; the universal driver provides a universal communication protocol for communication between the first device and the standard USB device, the communication protocol port being at least The port includes: a port for transmitting audio and video data and a port for accessing the storage space; the USB device is provided with a first USB interface, and the USB device accesses the first device USB interface through the first USB interface, and Providing, by the first USB interface, a plurality of communication protocol ports that can be recognized by the universal drive of the first device;
    生成存储空间访问指令,将所述访问指令适配到识别出的、用于访问存储空间的端口,并通过第一设备USB接口发送至所述USB设备的第一USB接口,以访问所述USB设备的预设存储空间,并通过第一设备系统接口运行所述预设存储空间中对应的应用程序以截获第一设备播放的画面和音频;Generating a storage space access instruction, adapting the access instruction to the identified port for accessing the storage space, and transmitting the first USB interface to the USB device through the first device USB interface to access the USB a preset storage space of the device, and running a corresponding application in the preset storage space through the first device system interface to intercept the picture and audio played by the first device;
    将截获到的音视频数据通过第一设备的USB接口发送至所述USB设备的第一USB接口。The intercepted audio and video data is sent to the first USB interface of the USB device through the USB interface of the first device.
  8. 根据权利要求7所述的实现即插即用传屏的方法,其特征在于,所述通信协议端口还包括:用于传输操控信号的端口和用于传输回传请求的端口;The method for implementing plug and play screen according to claim 7, wherein the communication protocol port further comprises: a port for transmitting a control signal and a port for transmitting a backhaul request;
    通过预安装的通用驱动识别接入第一设备USB接口的USB设备提供的通信协议端口之后还包括:After the communication protocol port provided by the USB device connected to the USB interface of the first device is identified by the pre-installed universal driver, the following further includes:
    获取第一设备预设的回传请求标识位信息,根据回传请求标识位信息确定第一设备的回传请求功能是否为开启状态;若是,生成回传请求指令;Obtaining a backhaul request identifier bit information preset by the first device, determining, according to the backhaul request identifier bit information, whether the backhaul request function of the first device is in an open state; if yes, generating a backhaul request instruction;
    将所述回传请求指令适配到用于传输回传请求的端口,并通过第一设备USB接口发送至所述USB设备的第一USB接口;And adapting the backhaul request instruction to a port for transmitting a backhaul request, and sending the first USB interface to the USB device through a first device USB interface;
    所述实现即插即用传屏的方法还包括:The method for implementing plug and play screen transmission further includes:
    通过第一设备USB接口接收来自所述USB设备的第一USB接口的信息,检测传输该信息的通信协议端口;若为用于传输操控信号的端口,则将该信息识别为操控信号,并使第一设备执行与所述操控信号相应的动作。Receiving, by the first device USB interface, information from the first USB interface of the USB device, detecting a communication protocol port transmitting the information; if it is a port for transmitting a control signal, identifying the information as a manipulation signal, and The first device performs an action corresponding to the manipulation signal.
  9. 根据权利要求7所述的实现即插即用传屏的方法,其特征在于,将截获到的音视频数据适配到该通信协议端口之前还包括:The method for implementing plug and play screen according to claim 7, wherein before the intercepting the audio and video data to the communication protocol port, the method further comprises:
    通过第一设备系统接口、识别出的用于访问存储空间的端口运行所述USB设备预设存储空间中对应的应用程序,以截获第一设备播放的画面和音频,以对截获到的音视频数据进行压缩和/或编码处理。Running, by the first device system interface, the identified port for accessing the storage space, the corresponding application in the preset storage space of the USB device, to intercept the picture and audio played by the first device, to intercept the captured audio and video The data is compressed and/or encoded.
  10. 根据权利要求7至9任一所述的实现即插即用传屏的方法,其特征在于,第一设备为显示源设备,第一设备USB接口的属性为USB host;所述第一USB接口的属性为USB device。The method for implementing the plug and play screen according to any one of claims 7 to 9, wherein the first device is a display source device, and the attribute of the first device USB interface is a USB host; the first USB interface The property is USB device.
  11. 一种实现即插即用传屏的装置,其特征在于,包括:An apparatus for implementing plug and play screen transmission, comprising:
    端口模拟模块,用于通过本端的第一USB接口向第一设备提供若干通信协议端口,所述通信协议 端口能够被第一设备的通用驱动识别,所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;a port analog module, configured to provide, by using a first USB interface of the local end, a plurality of communication protocol ports to the first device, where the communication protocol is The port can be identified by a universal drive of the first device, the universal drive providing a universal communication protocol for communication between the first device and the standard USB device, the communication protocol port comprising at least: a port for transmitting audio and video data and The port that accesses the storage space;
    连接建立模块,用于通过所述通信协议端口、所述第一USB接口建立本端与所述第一设备的USB通信连接;a connection establishing module, configured to establish a USB communication connection between the local end and the first device by using the communication protocol port and the first USB interface;
    存储模块,用于检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口,若为用于访问存储空间的端口,则将该信息识别为存储空间访问指令;将预设存储空间展示给第一设备,所述存储空间中存储有对应的应用程序,所述应用程序能够被第一设备运行,并且所述应用程序运行时能够获取第一设备系统当前的音视频信息;a storage module, configured to detect that the first USB interface has information from the first device, detect a communication protocol port that transmits the information, and if it is a port for accessing the storage space, identify the information as a storage space access instruction; The preset storage space is displayed to the first device, where the corresponding storage program is stored, the application program can be run by the first device, and the application program can acquire the current audio and video of the first device system information;
    以及,音视频数据转发模块,用于若检测到传输该信息的通信协议端口为用于传输音视频数据的端口,则将该信息识别为音视频数据;将所述音视频数据通过本端的第二USB接口转发至第二设备,指示所述第二设备在接收到所述音视频数据后播放对应的音视频。And the audio/video data forwarding module is configured to: if the communication protocol port that transmits the information is detected as a port for transmitting audio and video data, identify the information as audio and video data; and pass the audio and video data through the local end The two USB interfaces are forwarded to the second device, and the second device is instructed to play the corresponding audio and video after receiving the audio and video data.
  12. 根据权利要求11所述的实现即插即用传屏的装置,其特征在于,所述通信协议端口还包括:用于传输连接信息的端口;The apparatus for implementing plug and play screen according to claim 11, wherein the communication protocol port further comprises: a port for transmitting connection information;
    所述的实现即插即用传屏的装置还包括:The device for implementing plug and play screen transmission further includes:
    连接确认模块,用于生成连接成功指令,将所述连接成功指令适配到用于传输连接信息的端口,并通过第一USB接口发送至第一设备。And a connection confirmation module, configured to generate a connection success instruction, adapt the connection success instruction to a port for transmitting connection information, and send the first connection to the first device through the first USB interface.
  13. 根据权利要求11所述的实现即插即用传屏的装置,其特征在于,所述通信协议端口还包括:用于传输操控信号的端口和用于传输回传请求的端口;The apparatus for implementing plug and play screen according to claim 11, wherein the communication protocol port further comprises: a port for transmitting a manipulation signal and a port for transmitting a return request;
    回传请求模块,用于检测到第一USB接口有来自第一设备的信息,检测传输该信息的通信协议端口;若为用于传输回传请求的端口,将该信息识别为回传请求指令;将所述回传请求指令通过第二USB接口转发至第二设备,使第二设备返回其检测到的对第一设备的操控信号;The backhaul request module is configured to detect that the first USB interface has information from the first device, and detects a communication protocol port that transmits the information; if the port is used for transmitting the return request, the information is identified as a backhaul request command Transmitting the return request command to the second device through the second USB interface, and causing the second device to return the detected control signal to the first device;
    所述实现即插即用传屏的装置还包括:The device for implementing plug and play screen transmission further includes:
    操控信号回传模块,用于检测到第二USB接口有来自第二设备的操控信号,则将所述操控信号适配到用于传输控制信息的端口,并通过第一USB接口发送至第一设备,指示所述第一设备在接收到所述操控信号后执行与所述操控信号相应的动作。a control signal returning module, configured to detect that the second USB interface has a control signal from the second device, adapt the control signal to a port for transmitting control information, and send the first to the first USB interface And the device instructing the first device to perform an action corresponding to the control signal after receiving the control signal.
  14. 根据权利要求11至13任一所述的实现即插即用传屏的装置,其特征在于,第一USB接口、第二USB接口的属性均为USB device;The device for implementing the plug and play screen according to any one of claims 11 to 13, wherein the attributes of the first USB interface and the second USB interface are all USB devices;
    第一设备为显示源设备,第二设备为显示设备The first device is a display source device, and the second device is a display device
  15. 一种实现即插即用传屏的装置,其特征在于,包括:An apparatus for implementing plug and play screen transmission, comprising:
    USB识别模块,用于通过预安装的通用驱动识别接入第一设备USB接口的USB设备提供的通信协议端口;所述通用驱动提供了第一设备和标准USB设备之间通信的通用通信协议,所述通信协议端口至少包括:用于传输音视频数据的端口和用于访问存储空间的端口;所述USB设备设置有第一USB接口,所述USB设备通过所述第一USB接口接入第一设备USB接口,并通过所述第一USB接口提供 若干能够被第一设备的通用驱动识别的通信协议端口;a USB identification module, configured to identify, by a pre-installed universal driver, a communication protocol port provided by a USB device that accesses a first device USB interface; the universal driver provides a universal communication protocol for communication between the first device and the standard USB device, The communication protocol port includes at least a port for transmitting audio and video data and a port for accessing the storage space; the USB device is provided with a first USB interface, and the USB device accesses the first USB interface a device USB interface and provided by the first USB interface a plurality of communication protocol ports that are identifiable by the universal drive of the first device;
    音视频截获模块,用于生成存储空间访问指令,将所述访问指令适配到识别出的用于访问存储空间的端口,并通过第一设备USB接口发送至所述USB设备的第一USB接口,以访问所述USB设备的预设存储空间,并通过第一设备系统接口运行所述预设存储空间中对应的应用程序以截获第一设备播放的画面和音频;And an audio and video intercepting module, configured to generate a storage space access instruction, adapt the access instruction to the identified port for accessing the storage space, and send the first USB interface to the USB device through the first device USB interface Accessing the preset storage space of the USB device, and running a corresponding application in the preset storage space through the first device system interface to intercept the picture and audio played by the first device;
    以及,音视频发送模块,用于将截获到的音视频数据通过第一设备的USB接口发送至所述USB设备的第一USB接口。And an audio and video sending module, configured to send the intercepted audio and video data to the first USB interface of the USB device through a USB interface of the first device.
  16. 根据权利要求15所述的实现即插即用传屏的装置,其特征在于,The apparatus for implementing plug and play screen according to claim 15, wherein
    第一设备为显示源设备,第一设备USB接口的属性为USB host;The first device is a display source device, and the attribute of the first device USB interface is a USB host;
    所述第一USB接口的属性为USB device。 The attribute of the first USB interface is a USB device.
PCT/CN2017/103467 2016-10-12 2017-09-26 Method and apparatus for plug and play screen mirroring WO2018090720A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201610890267 2016-10-12
CN201611039425.9 2016-11-21
CN201611039425.9A CN107948566B (en) 2016-10-12 2016-11-21 Method and device for realizing plug-and-play screen transmission

Publications (1)

Publication Number Publication Date
WO2018090720A1 true WO2018090720A1 (en) 2018-05-24

Family

ID=61929013

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103467 WO2018090720A1 (en) 2016-10-12 2017-09-26 Method and apparatus for plug and play screen mirroring

Country Status (2)

Country Link
CN (1) CN107948566B (en)
WO (1) WO2018090720A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351315A (en) * 2019-08-07 2021-02-09 厦门强力巨彩光电科技有限公司 Wireless screen projection method and LED display
CN112740168A (en) * 2019-07-26 2021-04-30 西安诺瓦星云科技股份有限公司 Wireless screen projection method and LED display
CN113495860A (en) * 2020-03-20 2021-10-12 合肥杰发科技有限公司 Data transmission method of SOC (System on chip) equipment, SOC equipment and device with storage function
CN113746911A (en) * 2021-08-26 2021-12-03 科大讯飞股份有限公司 Audio processing method and related device, electronic equipment and storage medium
CN113495860B (en) * 2020-03-20 2024-04-19 合肥杰发科技有限公司 Data transmission method of SOC (system on chip) equipment, SOC equipment and device with storage function

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442366B (en) * 2019-08-09 2021-06-15 广州视源电子科技股份有限公司 Screen transmission processing method, device, equipment and storage medium
CN110704340B (en) * 2019-09-26 2022-02-11 支付宝(杭州)信息技术有限公司 Data transmission device, system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100815404B1 (en) * 2007-02-23 2008-03-20 (주)나노비전 Usb assistance monitor
JP2008160692A (en) * 2006-12-26 2008-07-10 Scalar Corp Cable, and method
CN101685431A (en) * 2008-09-25 2010-03-31 宏正自动科技股份有限公司 Remote desktop control system using usb interface and method thereof
TW201628403A (en) * 2015-01-20 2016-08-01 Awind Inc System and method for projecting screen frame of electronic device through networking
WO2016142713A1 (en) * 2015-03-10 2016-09-15 Displaylink (Uk) Limited System for connecting external displays to a mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008160692A (en) * 2006-12-26 2008-07-10 Scalar Corp Cable, and method
KR100815404B1 (en) * 2007-02-23 2008-03-20 (주)나노비전 Usb assistance monitor
CN101685431A (en) * 2008-09-25 2010-03-31 宏正自动科技股份有限公司 Remote desktop control system using usb interface and method thereof
TW201628403A (en) * 2015-01-20 2016-08-01 Awind Inc System and method for projecting screen frame of electronic device through networking
WO2016142713A1 (en) * 2015-03-10 2016-09-15 Displaylink (Uk) Limited System for connecting external displays to a mobile device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112740168A (en) * 2019-07-26 2021-04-30 西安诺瓦星云科技股份有限公司 Wireless screen projection method and LED display
CN112740168B (en) * 2019-07-26 2023-09-12 西安诺瓦星云科技股份有限公司 Wireless screen projection method and LED display
CN112351315A (en) * 2019-08-07 2021-02-09 厦门强力巨彩光电科技有限公司 Wireless screen projection method and LED display
CN112351315B (en) * 2019-08-07 2022-08-19 厦门强力巨彩光电科技有限公司 Wireless screen projection method and LED display
CN113495860A (en) * 2020-03-20 2021-10-12 合肥杰发科技有限公司 Data transmission method of SOC (System on chip) equipment, SOC equipment and device with storage function
CN113495860B (en) * 2020-03-20 2024-04-19 合肥杰发科技有限公司 Data transmission method of SOC (system on chip) equipment, SOC equipment and device with storage function
CN113746911A (en) * 2021-08-26 2021-12-03 科大讯飞股份有限公司 Audio processing method and related device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107948566A (en) 2018-04-20
CN107948566B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
WO2018090720A1 (en) Method and apparatus for plug and play screen mirroring
WO2018090721A1 (en) Usb cable screen delivery method and device
WO2018090722A1 (en) Method and apparatus for realizing wired screen delivery
WO2018090723A1 (en) Method and apparatus for realizing wired screen delivery
EP3757752A1 (en) Data transmission device, and data transmission method
CN110442366B (en) Screen transmission processing method, device, equipment and storage medium
US20100115145A1 (en) Plug-and-play device and method of using the same
US20090198839A1 (en) Plug-and-play device and method of using the same
WO2020078300A1 (en) Method for controlling screen projection of terminal and terminal
CN107333082A (en) A kind of wireless cooperation system and its implementation based on USB Type C interface
WO2013011642A1 (en) Information processing apparatus, information processing method and computer program
KR102382514B1 (en) Electronic apparatus, remote control apparatus and controlling method thereof
WO2021169495A1 (en) Network configuration method for intelligent device, and related apparatuses
ES1259240U (en) Method and system for making functional devices availalble to participants of meetings
US20050185102A1 (en) Single touch launch of remote applications over video
WO2018090724A1 (en) Method and apparatus for wired screen transmission
US9244699B2 (en) Method and system for audio device virtualization
WO2016150191A1 (en) Data sharing method and device
WO2018000625A1 (en) Method for controlling bluetooth signal response in television and related device
WO2014166365A1 (en) Television-and-computer all-in-one machine, method, and computer storage medium for performing remote control on external computer
KR102386204B1 (en) Electronic apparatus and method for providing event management service
US20060142991A1 (en) Remote USB network device control
WO2012151917A1 (en) Method, apparatus and system for remote controlling network multimedia service
CN111915866A (en) CEC (consumer electronics control) compatible infrared Bluetooth control method and system for remote controller and electronic equipment
CN114222172A (en) Method and device for acquiring HDMI-CEC function of electronic equipment

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: 17871225

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 05/11/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17871225

Country of ref document: EP

Kind code of ref document: A1