Display data output method and system and related equipment
By implementing the device type identification and driver format setting of the type-c interface in the smart device, encoding and sending display data, the problem of limited screen projection function of smart devices is solved, and screen projection display on more types of devices is realized, improving user experience.
Patent Information
- Application Number
- CN202411576962.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-25
AI Technical Summary
The screen projection function of existing smart devices is limited to devices that can only receive HDMI signals through the type-c interface, and cannot realize screen projection display on devices that do not support HDMI input.
Connect the display device through the type-c interface, identify the device type, and set the driver format according to the type, encode and encapsulate the display data, and send it to the display device for display.
The usage scenarios of screen projection function have been expanded, the screen projection configuration process has been simplified, and the user experience has been optimized, so that smart devices can realize screen projection display on more types of display devices.
Smart Images

Figure CN119520713A_ABST
Abstract
Description
Technical Field
[0001] The present invention is applicable to the field of display technology, and in particular relates to a display data output method, system and related equipment. Background Art
[0002] The type-c interface has become the most widely used interface on smart devices. Smart devices based on the type-c interface can be easily connected to external devices such as storage, display, controller, etc., thereby realizing functional expansion in different usage scenarios.
[0003] The main reason why the Type-C interface can achieve rich functions is that different device manufacturers have integrated multiple transmission protocols into the interface according to the specifications. Among them, in order to realize the video output of smart devices, when smart devices use the Type-C interface to connect to the display, what is actually transmitted is the video protocol based on the Type-C interface, such as HDMI protocol, DP protocol, etc. Generally, existing smart devices support transmitting their own display content to the display through the Type-C interface to realize the screen projection function of smart devices.
[0004] However, this screen projection method can only be used on devices that can receive HDMI signal input through the type-c interface. In addition to traditional monitors, there are still many devices that do not support HDMI input through the type-c interface. This makes the screen projection display function of smart devices subject to certain scene restrictions. Summary of the invention
[0005] The present invention provides a display data output method, system and related equipment, aiming to solve the scene limitation problem of the screen projection function of existing equipment due to the type of display device.
[0006] In order to solve the above technical problems, in a first aspect, the present invention provides a method for outputting display data, comprising the following steps:
[0007] S101, connect the display device via the type-c interface;
[0008] S101, obtaining, through a Type-C interface, a device type of a display device connected thereto, and setting a driver format of the Type-C interface according to the device type of the display device;
[0009] S103, obtaining display data output by the imaging device;
[0010] S103, encoding and packaging the display data according to the device type to obtain encoded data;
[0011] S104: Send the encoded data to the display device through the Type-C interface for display.
[0012] Furthermore, in step S101, the device type of the display device is obtained through a pin signal of the type-c interface, wherein:
[0013] If the pin signal of the type-c interface is a preset image transmission protocol signal, the device type of the display device is a display signal interface type;
[0014] If the pin signal of the type-c interface is not a preset image transmission protocol signal, the device type of the display device is a data transmission interface type.
[0015] Furthermore, in step S101, if the device type of the display device is the display signal interface type, the drive format of the type-c interface is set to a drive format consistent with the preset image transmission protocol signal type;
[0016] If the device type of the display device is the data transmission interface type, the driving format of the type-c interface is set to the driving format of the preset video capture protocol.
[0017] Furthermore, in step S103, if the device type of the display device is the display signal interface type, the display data is encoded and packaged into the encoded data consistent with the encoding method of the preset image transmission protocol signal;
[0018] If the device type of the display device is the data transmission interface type, the display data output by the imaging device is collected in real time, and the display data collected in real time is encoded and packaged into the encoded data.
[0019] Furthermore, the preset image transmission protocol signal is a type-c Alt mode protocol.
[0020] Furthermore, in step S101, the display device is connected wirelessly via a type-c interface.
[0021] In a second aspect, the present invention further provides a display data output system, comprising:
[0022] An identification module, used to obtain the device type of the display device connected thereto through the type-c interface, and set the driver format of the type-c interface according to the device type of the display device;
[0023] An acquisition module, used for acquiring display data output by an imaging device;
[0024] An encoding module, used for encoding and packaging the display data according to the device type to obtain encoded data;
[0025] The output module is used to send the encoded data to the display device through the type-c interface for display.
[0026] Furthermore, the identification module obtains the device type of the display device through a pin signal of a type-c interface, wherein:
[0027] If the pin signal of the type-c interface is a preset image transmission protocol signal, the device type of the display device is a display signal interface type;
[0028] If the pin signal of the type-c interface is not a preset image transmission protocol signal, the device type of the display device is a data transmission interface type.
[0029] In a third aspect, the present invention further provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the display data output method as described in any one of the above embodiments are implemented.
[0030] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the display data output method as described in any one of the above embodiments are implemented.
[0031] The beneficial effect achieved by the present invention is that a display data output method based on the type-c interface is proposed. The method detects and identifies the device type of the display device, automatically switches the drive format of the type-c interface, and encodes and encapsulates the display data according to the corresponding type, so that the display device can correctly obtain the display data. The method of the present invention expands the usage scenarios of the existing screen projection function, simplifies the screen projection configuration process, and optimizes the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a flowchart of the steps of the display data output method provided by an embodiment of the present invention;
[0033] Figure 2 This is a schematic diagram of the pin signal of the type-c interface provided by an embodiment of the present invention;
[0034] Figure 3 is a structural diagram of a display data output system provided by an embodiment of the present invention;
[0035] Figure 4It is a structural diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0037] Please refer to Figure 1 , Figure 1 : is a flowchart of the steps of a display data output method provided by an embodiment of the present invention, wherein the display data output method comprises the following steps:
[0038] S101. Obtain, through a Type-C interface, a device type of a display device connected thereto, and set a driver format of the Type-C interface according to the device type of the display device.
[0039] In the embodiment of the present invention, the display device refers to a device for receiving display data and displaying it through a display screen. In the embodiment of the present invention, the main body connected to the display device through the type-c interface can be an independent processing device, and can also be integrated into the device that generates display data (i.e., the imaging device hereinafter). Through the type-c interface, the main body executing the method of the embodiment of the present invention is connected to the display device to realize image data transmission or data communication.
[0040] It can be understood that the subject executing the method of the embodiment of the present invention and the display device can be connected by wire using the type-c interface or by wireless connection using the type-c interface, wherein in the wired connection mode, both the executing subject and the display device are configured with a type-c interface of the standard protocol; in the wireless connection mode, the executing subject is connected to a wireless transmitter through the type-c interface, and the display device is connected to a wireless receiver through the type-c interface, and the wireless transmitter and the wireless receiver are paired and connected through a wireless network (wireless local area network or point-to-point cellular network), and data transmission using the type-c interface transmission protocol of the standard protocol is implemented. The specific connection mode can be determined according to actual needs, and the technical effects that can be achieved by different connection modes in each method step described in the embodiment of the present invention are the same.
[0041] Specifically, in step S101, the device type of the display device is obtained through the pin signal of the type-c interface, such as Figure 2 As shown, the standard type-c interface uses certain pin signals to identify the device types at both ends, where:
[0042] If the pin signal of the type-c interface is a preset image transmission protocol signal, the device type of the display device is a display signal interface type; the preset image transmission protocol signal is a type-c Alt mode protocol;
[0043] If the pin signal of the type-c interface is not a preset image transmission protocol signal, the device type of the display device is a data transmission interface type.
[0044] Exemplarily, when the display device feeds back the device type through the HDMI transmission protocol via the type-c interface to which it is connected, the A5 CC signal pin on the type-c interface will receive the corresponding signal. If it is an HDMI protocol implemented based on the standard type-c interface (i.e., HDMI Alt mode over type-c protocol, at this time, the driver format of the type-c interface complies with the type-c Alt mode protocol), the display device will return the device discovery process (Discovery Process) in the PD protocol instruction on the signal pin, and the execution entity will determine, based on the process signal, that the display device is a standard display to be received by the HDMI signal transmission.
[0045] In addition to implementing the image transmission protocol, the standard type-c interface is more often used as a universal data transmission interface (i.e., USB interface). For situations where the signals are not the preset image transmission protocol signals, the embodiments of the present invention make corresponding distinctions.
[0046] In step S101, if the device type of the display device is the display signal interface type, the drive format of the type-c interface is set to a drive format consistent with the preset image transmission protocol signal type;
[0047] If the device type of the display device is the data transmission interface type, the driving format of the type-c interface is set to the driving format of the preset video capture protocol.
[0048] Exemplarily, when the display device feeds back the device type using the HDMI transmission protocol, the driver format of the type-c interface is set to the driver format corresponding to HDMI. The type-c implementation standard refers to the mode for implementing HDMI protocol transmission through the type-c interface as ALT mode, and the corresponding driver format is HDMI Alt mode over type-c (HDMI compatible mode running in type-c); during implementation, based on the type-c Alt mode protocol, the embodiment of the present invention can also process the type of DP protocol, and its implementation method is the same as the method of processing HDMI protocol data in the above-mentioned embodiment.
[0049] During the implementation of the preset video capture protocol mentioned in the embodiment of the present invention, preferably, the preset video capture protocol is a UVC / UAC video capture protocol. The UVC / UAC driver format is usually used to drive hardware such as microphones and cameras. In the embodiment of the present invention, different from the display device that needs to transmit image data of the HDMI or DP protocol, for the display device that cannot transmit image data of the HDMI or DP protocol, it is generally considered that the device cannot directly receive image data for display. For example, existing hardware such as laptops and tablets does not support being used as a display alone, but these hardware devices can be connected to a camera or microphone. Based on the UVC / UAC protocol, devices of non-display signal interface type need to correctly match the device type of the other party (that is, what kind of device the execution subject is). At this time, the execution subject is "disguised" as hardware that complies with the UVC / UAC protocol through the A7D+ and A6 D- signal pins on the type-c interface, thereby facilitating subsequent data transmission;
[0050] In other possible implementations, the preset video capture protocol may also be a video capture protocol implemented based on the HID (Human Interface Device) protocol. Since the HID protocol is a universal USB device connection protocol, various functions are implemented based on the protocol in a customized manner. As described in the above embodiment, based on the HID protocol, the execution subject may also be "disguised" as hardware that can realize video data acquisition and video data transmission based on the transmission protocol of the type-c interface. During implementation, the type of the preset video capture protocol may be designed as needed.
[0051] S102: Obtain display data output by an imaging device.
[0052] As described above, the execution subject used to implement the method in the embodiment of the present invention can be an independent processing device, and can also be integrated in a device that generates display data. When used as an independent processing device, the imaging device transmits the data to the processing device through the imaging protocol interface (HDMI, DP, etc.), and the processing device receives the data. At this time, the hardware form is equivalent to a data acquisition device; when integrated in an imaging device, the display data source can be directly acquired. At this time, the hardware form is equivalent to a computer host, a TV box, etc.
[0053] S103: Encode and encapsulate the display data according to the device type to obtain encoded data.
[0054] In step S103, if the device type of the display device is the display signal interface type, the display data is encoded and packaged into the encoded data consistent with the encoding method of the preset image transmission protocol signal;
[0055] If the device type of the display device is the data transmission interface type, the display data output by the imaging device is collected in real time, and the display data collected in real time is encoded and packaged into the encoded data.
[0056] Step S103 is intended to perform certain processing on the display data according to the different driving formats of the execution subject. Among them, in the case where the device type of the display device is the display signal interface type, the display device can directly receive the display data in the encoding method of the corresponding image transmission protocol signal. During the implementation process, in order to improve the output performance of the display data, the original image device will perform certain encoding on the original display data, such as the commonly used streaming encoding protocols such as h.264 and h.265. The data of this protocol is not standard and can be transmitted through the HDMI protocol or DP protocol. Therefore, even if the execution subject and the display device are connected through a standard image transmission protocol, before the execution subject sends the display data, it is also necessary to perform certain encoding processing. For example, for the HDMI protocol, the display data needs to be encapsulated as encoded data in the TMDS format;
[0057] For the case where the device type of the display device is the data transmission interface type, since the type-c interface of the executing subject is mounted with the driver format of the preset video capture protocol, the display device believes that it is connected to hardware that transmits non-HDMI protocol or DP protocol. At this time, the executing subject encodes the display data by real-time acquisition of the display data output by the imaging device. This data processing process is equivalent to "disguising" the executing subject as a data acquisition card, which acquires the display data output by the imaging device and encodes it into encoded data that the display device can receive and decode. Since the display device believes that it is connected to a hardware device that transmits general data, exemplarily, the encoded data can be in a data format that is easy to process, such as mjpeg, h.264, etc.
[0058] S104: Send the encoded data to the display device through the Type-C interface for display.
[0059] If the display device is a device connected via a preset image transmission protocol, when the encoded data is received, it can decode the data according to the normal protocol and display it; for devices connected via a non-preset image transmission protocol, in order to be able to normally output the display data on the display device, the display device needs to have the function of decoding and displaying the encoded data. During the implementation process, laptops, tablet computers and other devices need to use certain applications to implement this function. The specific method of implementing the function is not limited by the present invention.
[0060] The beneficial effect achieved by the present invention is that a display data output method based on the type-c interface is proposed. The method detects and identifies the device type of the display device, automatically switches the drive format of the type-c interface, and encodes and encapsulates the display data according to the corresponding type, so that the display device can correctly obtain the display data. The method of the present invention expands the usage scenarios of the existing screen projection function, simplifies the screen projection configuration process, and optimizes the user experience.
[0061] The embodiment of the present invention further provides a display data output system 200, please refer to Figure 3 , Figure 3 2 is a schematic diagram of the structure of a display data output system provided in an embodiment of the present invention. The display data output system 200 includes:
[0062] The identification module 201 is used to obtain the device type of the display device connected thereto through the type-c interface, and set the driver format of the type-c interface according to the device type of the display device;
[0063] An acquisition module 202 is used to acquire display data output by an imaging device;
[0064] The encoding module 203 is used to encode and encapsulate the display data according to the device type to obtain encoded data;
[0065] The output module 204 is used to send the encoded data to the display device through the type-c interface for display.
[0066] The display data output system 200 can implement the steps in the display data output method in the above embodiment, and can achieve the same technical effects. Please refer to the description in the above embodiment, which will not be repeated here.
[0067] The present invention also provides a computer device, please refer to Figure 4 , Figure 4 300 is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. The computer device 300 includes: a memory 302, a processor 301, and a computer program stored in the memory 302 and executable on the processor 301.
[0068] The processor 301 calls the computer program stored in the memory 302 to execute the steps of the display data output method provided in the embodiment of the present invention. Figure 1 , specifically including the following steps:
[0069] S101. Obtain a device type of the display device through a type-c interface, and set a driver format of the type-c interface according to the device type of the display device.
[0070] In step S101, the device type of the display device is obtained through a pin signal of the type-c interface, wherein:
[0071] If the pin signal of the type-c interface is a preset image transmission protocol signal, the device type of the display device is a display signal interface type; the preset image transmission protocol signal is a type-c Alt mode protocol;
[0072] If the pin signal of the type-c interface is not a preset image transmission protocol signal, the device type of the display device is a data transmission interface type.
[0073] In step S101, if the device type of the display device is the display signal interface type, the drive format of the type-c interface is set to a drive format consistent with the preset image transmission protocol signal type;
[0074] If the device type of the display device is the data transmission interface type, the driving format of the type-c interface is set to the driving format of the preset video capture protocol.
[0075] In step S101, the display device is connected wirelessly via a type-c interface.
[0076] S102: Obtain display data output by an imaging device.
[0077] S103: Encode and encapsulate the display data according to the device type to obtain encoded data.
[0078] In step S103, if the device type of the display device is the display signal interface type, the display data is encoded and packaged into the encoded data consistent with the encoding method of the preset image transmission protocol signal;
[0079] If the device type of the display device is the data transmission interface type, the display data output by the imaging device is collected in real time, and the display data collected in real time is encoded and packaged into the encoded data.
[0080] S104: Send the encoded data to the display device through the Type-C interface for display.
[0081] The computer device 300 provided in the embodiment of the present invention can implement the steps in the display data output method in the above embodiment, and can achieve the same technical effect. Please refer to the description in the above embodiment, which will not be repeated here.
[0082] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes and steps in the display data output method provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0083] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0084] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0085] The embodiments of the present invention are described above in conjunction with the accompanying drawings. What is disclosed is only the preferred embodiment of the present invention. However, the present invention is not limited to the above-mentioned specific implementation manner. The above-mentioned specific implementation manner is only illustrative rather than restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms and equivalent changes without departing from the scope of protection of the purpose of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A display data output method, characterized in that: The following steps are involved: S101, obtaining, through a Type-C interface, a device type of a display device connected thereto, and setting a driver format of the Type-C interface according to the device type of the display device; S102, obtaining display data output by the imaging device; S103, encoding and packaging the display data according to the device type to obtain encoded data; S104: Send the encoded data to the display device through the Type-C interface for display.
2. The display data output method according to claim 1, characterized in that: In step S101, the device type of the display device is obtained through a pin signal of the type-c interface, wherein: If the pin signal of the type-c interface is a preset image transmission protocol signal, the device type of the display device is a display signal interface type; If the pin signal of the type-c interface is not a preset image transmission protocol signal, the device type of the display device is a data transmission interface type.
3. The display data output method according to claim 2, characterized in that: In step S101, if the device type of the display device is the display signal interface type, the drive format of the type-c interface is set to a drive format consistent with the preset image transmission protocol signal type; If the device type of the display device is the data transmission interface type, the driving format of the type-c interface is set to the driving format of the preset video capture protocol.
4. The display data output method according to claim 2, characterized in that: In step S103, if the device type of the display device is the display signal interface type, the display data is encoded and packaged into the encoded data consistent with the encoding method of the preset image transmission protocol signal; If the device type of the display device is the data transmission interface type, the display data output by the imaging device is collected in real time, and the display data collected in real time is encoded and packaged into the encoded data.
5. The display data output method according to claim 2, characterized in that: The preset image transmission protocol signal is the type-c Alt mode protocol.
6. The display data output method according to claim 1, characterized in that: In step S101, the display device is connected wirelessly via a type-c interface.
7. A display data output system, characterized in that: include: An identification module, used to obtain the device type of the display device connected thereto through the type-c interface, and set the driver format of the type-c interface according to the device type of the display device; An acquisition module, used for acquiring display data output by an imaging device; An encoding module, used for encoding and packaging the display data according to the device type to obtain encoded data; The output module is used to send the encoded data to the display device through the type-c interface for display.
8. The display data output method according to claim 7, characterized in that: The identification module obtains the device type of the display device through a pin signal of the type-c interface, wherein: If the pin signal of the type-c interface is a preset image transmission protocol signal, the device type of the display device is a display signal interface type; If the pin signal of the type-c interface is not a preset image transmission protocol signal, the device type of the display device is a data transmission interface type.
9. A computer device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the display data output method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the display data output method according to any one of claims 1 to 6 are implemented.