Data transmission method and system
By sending the preset image and detecting the target signal in the video receiving device, the problem of HPD signal infinite loop is solved, ensuring that the video signal is output at the first time when HDMI is connected, improving the compatibility and user experience of the video data transmission system, and avoiding the problem of receiving The device fails to search for signals and the screen appears black.
Patent Information
- Application Number
- CN202010324326.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-04-22
AI Technical Summary
In the existing technology, after the video receiving device detects that the HPD signal of the external video source device is high level and confirms that the connection is successful, it needs a preset time to send the video data. However, if the receiving device does not detect the input signal during this period, it will As a result, the HPD signal continuously pulls low and high, forming an endless loop, causing the smart TV to be unable to search for external HDMI signals.
Send a preset image to the receiving device through the server and activate the detection function, detect the target signal, generate an acquisition instruction to obtain the target image, and process and send it after receiving the signal to avoid the HPD signal infinite loop and ensure the first time when the HDMI cable is plugged in Output the TMDS signal with a blank background image.
It reduces the time from HPD signal to TMDS signal output, reduces the possibility of failure of the receiving device to search for signals, improves the compatibility and user experience of the video data transmission system, and eliminates the black screen phenomenon during parameter setting and video switching.
Smart Images

Figure CN111541952B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic information technology, and in particular to a data transmission method and system. Background Art
[0002] When the video receiving device processes and plays the video, the video source can come from the external video source device or from the video receiving device itself. In the prior art, when determining whether the external video source device is successfully connected to the video receiving device and whether to send the video source to the video receiving device, the two devices are determined to be successfully connected by detecting the hot plug signal (HPD) after the external video source device is connected to the video receiving device. Specifically, when the external video source device detects that the HPD pin signal is at a high level, it is confirmed that the connection with the receiving device is successful, and video data can be sent to the receiving device. When the external video source device detects that the HPD pin signal is at a low level, it is confirmed that the connection with the video receiving device has been disconnected, and the image generation is stopped at this time, and the external TMDS signal is also stopped.
[0003] However, in actual applications, when the external video source device detects that the HPD pin signal is at a high level and confirms that the external video source device is successfully connected, it takes a preset time to complete sending the video to the receiving device. However, during this preset time period, because the video receiving device does not detect the input signal of the external video source device within the preset time period, the video receiving device believes that the external video source device does not recognize the high-level HPD pin signal, so it pulls down and then pulls up the HPD pin signal. When the video receiving device pulls down the HPD pin signal, the external video source device will stop outputting the TMDS signal because it detects that the HPD signal is low, causing the sink device to continuously pull down the HPD, then pull it up, and then pull it down again, thus forming an endless loop, and ultimately causing the smart TV to be unable to search for external HDMI signals. Summary of the invention
[0004] The embodiment of the present disclosure provides a data transmission method and system, which can solve the compatibility problem of signal detection and the problem of display screen switching when sending data. The technical solution is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a data transmission method is provided. The method is applied to a data transmission system, the data transmission system includes a server and an image processing device, and the method includes:
[0006] Sending a preset image to a receiving device through the server and activating a detection function, the detection function being used to detect whether a target signal sent by the receiving device is received;
[0007] When the target signal is detected, an acquisition instruction is generated by the server, where the acquisition instruction is used to instruct acquisition of the target image;
[0008] According to the acquisition instruction, the target image is acquired by the image processing device and sent to the server;
[0009] After the target image is processed by the server, the processed target image is sent to the receiving device.
[0010] In one embodiment, the method of sending the preset image includes:
[0011] Obtaining configuration information of the receiving device;
[0012] Generate a preset pixel stream according to the configuration information of the receiving device and the preset image;
[0013] The preset image is sent via the preset pixel stream.
[0014] In one embodiment, the data transmission system further includes a parameter processing device, and the method further includes, before generating the acquisition instruction:
[0015] According to the target signal, activating an authentication function of the parameter processing device, the authentication function being used to verify authority information;
[0016] According to the authentication function, a second image is generated by the parameter processing device and sent to the server, wherein the first image is used to obtain user authentication information;
[0017] After the first image is processed by the server, it is sent to the receiving device;
[0018] Acquiring user authentication information according to the first image;
[0019] When the user authentication information passes the authentication, the acquisition function is activated.
[0020] In one embodiment, the data transmission system further includes a parameter processing device, and the method further includes:
[0021] According to the target signal, activating a setting function of the parameter processing device, the configuration function being used to set the parameters of the target image;
[0022] According to the setting function, a second image is generated by the parameter processing device and sent to the server, where the second image is used to obtain parameter information;
[0023] After the second image is processed by the server, it is sent to the receiving device;
[0024] According to the second image, the target parameters are acquired through the parameter processing device, and a configuration instruction is generated, wherein the configuration instruction is used to instruct to process the target image according to the target parameters.
[0025] In one embodiment, the method further comprises:
[0026] When an exit instruction is detected, a stop instruction is generated by the server, and the acquisition instruction is used to stop acquiring the target image;
[0027] According to the stop instruction, the image processing device stops acquiring the target image, stops sending the target image to the receiving device, and does not stop sending the preset image to the receiving device.
[0028] In one embodiment, the data transmission system further includes a parameter processing device, and the method further includes:
[0029] When an exit instruction is detected, an exit function of the parameter processing device is activated;
[0030] According to the exit function, a third image is generated by the processing device and sent to the receiving device, where the third image is used to indicate exiting the data transmission system.
[0031] According to a second aspect of an embodiment of the present disclosure, there is provided a data transmission system, comprising: a server and an image processing device, the image processing device comprising: a receiver, a processor, and a transmitter;
[0032] The server is connected to the image processing device;
[0033] The receiver is used to acquire the target image and send it to the processor;
[0034] The processor is used to receive the target image and process the target image according to the configuration information;
[0035] The server is used to send a preset image to the receiving device and activate a detection function, the detection function is used to detect whether a target signal is received;
[0036] When a target signal is detected, an acquisition instruction is generated, the acquisition instruction is used to instruct the receiver to acquire a target image;
[0037] According to the acquisition instruction, when a target image is received, the target image is processed and then sent to the transmitter;
[0038] The transmitter is used to send the processed target image to a receiving device.
[0039] In one embodiment, the data transmission system further comprises a parameter processing device, wherein the parameter processing device is connected to the server.
[0040] The parameter processing device is used to receive a target signal and activate an authentication function of the parameter processing device according to the target signal, wherein the authentication function is used to verify the authority information;
[0041] According to the authentication function, a second image is generated by the parameter processing device and sent to the server, where the second image is used to obtain user authentication information;
[0042] or, according to the target signal, activating a setting function of the parameter processing device, the configuration function being used to set the parameters of the target image;
[0043] According to the setting function, a second image is generated by the parameter processing device and sent to the server, and the second image is used to obtain parameter information.
[0044] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0046] Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present disclosure;
[0047] Figure 2 It is a structural diagram of a data transmission system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0049] The present disclosure provides a data transmission method, which is applied to a data transmission system, such as Figure 1 As shown, the data transmission method includes the following steps:
[0050] The data transmission system provided by the present disclosure is used to send video data, and may specifically include: a server and an image processing device,
[0051] The server is used to continuously render a blank background image after the data transmission system is started, and send it to the video output processing device in the image processing device, and then send it to the receiving device through the image processing device.
[0052] The server is also used to synthesize the blank background image and the video picture and send the result to the video output processing device after receiving the video sent by the video output processing device in the image processing equipment.
[0053] The data transmission system provided by the present disclosure can continuously render and output a blank background image by adding a server, and can synthesize the blank background image with the target video image and then output it. In this way, when the HDMI cable is plugged in, the TMDS signal of the blank background image can be output immediately, thereby avoiding the phenomenon that the receiving device cannot detect the video signal.
[0054] 101. Sending a preset image to a receiving device through the server and activating a detection function, where the detection function is used to detect whether a target image is received;
[0055] The method provided in the present disclosure obtains a preset image through the server when the system is started. The preset image may specifically be a blank background image.
[0056] The system can be connected to a receiving device by means of communication, for example, by means of HDMI, and the receiving device can be a display device for processing video signals, such as a television.
[0057] After determining to be connected with the receiving device, the method provided by the present disclosure includes:
[0058] Get the display parameters of the receiving device;
[0059] According to the preset requirements of the receiving device, the preset image generates a preset timing output pixel stream, and the HDMI TMDS Encoder encodes the preset timing output code stream to generate a TMDS signal, and sends the TMDS signal to the receiving device.
[0060] When the receiving device receives the preset image, it decodes it and displays the preset background image.
[0061] 102. When the target signal is detected, an acquisition instruction is generated by the server, where the acquisition instruction is used to acquire a target image.
[0062] The target signal refers to a detection signal, for example, an HPD signal (hot plug detection) is generated by hot plug detection. A specific usage scenario may be that when the receiving device determines to use an external signal source, that is, a signal sent by a data transmission system, it will pull up the HPD pin to generate an HPD signal and send the HPD signal to the data transmission system. When the data transmission system detects that the HPD pin is at a high level, it considers that the HDMI line is connected. At this time, the data transmission system processes the target image and encodes the target image into a minimized transmission differential signal (TMDS, Transition Minimized Differential signal) and outputs it to the receiving device.
[0063] The target image may include a target frame image or a single image in a target video.
[0064] The method provided by the present disclosure may include authenticating the receiving device before acquiring the target image:
[0065] According to the target signal, activating an authentication function of the parameter processing device, the authentication function being used to verify authority information;
[0066] According to the authentication function, a second image is generated by the parameter processing device and sent to the server, wherein the first image is used to obtain user authentication information;
[0067] After the first image is processed by the server, it is sent to the receiving device;
[0068] Acquiring user authentication information according to the first image;
[0069] When the user authentication information passes the authentication, the acquisition function is activated.
[0070] The user authentication information can be obtained through a keyboard or mouse connected to the data transmission system; or through a remote controller connected to the data transmission system by means of a virtual keyboard.
[0071] The above-mentioned authentication of the user authentication information can be performed through a data transmission system, or can be verified through an external device, such as sending the user authentication information to a third-party server for verification.
[0072] The method provided by the present disclosure can reduce the time from when the data transmission system detects that the HPD pin is pulled high to when the TMDS signal starts to be output, which can reduce the possibility of failure of the receiving device to search for the signal and improve the compatibility and user experience of the video data transmission system.
[0073] At the same time, this method can eliminate the image-free period during the parameter setting and video switching process, solve the black screen phenomenon while the receiving device is waiting for the signal, improve the user experience, and avoid the receiving device searching for the signal again due to picture interruption.
[0074] 103. According to the acquisition instruction, the target image is acquired by the image processing device, and sent to the server.
[0075] The method provided in the present disclosure further includes processing the target image according to the target parameters before acquiring the target image, and the process may include:
[0076] According to the target signal, activating a setting function of the parameter processing device, the configuration function being used to set the parameters of the target image;
[0077] According to the setting function, the parameter processing device generates a second image and sends it to the server, and the second image is used to obtain parameter information, such as a menu interface for parameter setting;
[0078] After the second image is processed by the server, it is sent to the receiving device;
[0079] According to the second image, the target parameters are acquired through the parameter processing device, and a configuration instruction is generated, wherein the configuration instruction is used to instruct to process the target image according to the target parameters.
[0080] The above parameter setting device is used to realize the OSD (On-Screen Display) function, and adjusts the working indicators including width, height, brightness, contrast, color, mode, shape, etc. to achieve the best use state. That is, the user's adjustment results and settings can be directly displayed on the screen of the receiving device. It achieves the purpose of adjusting various parameters through the function menu displayed on the screen, which is not only convenient to adjust, but also has a wide variety of adjustment contents.
[0081] The above parameter settings may be performed before sending the target image for the first time, or during the process of sending the target image.
[0082] For example: during video playback, the user can send a parameter configuration signal through a remote control that matches the data transmission system. The video server in the data transmission system notifies the OSD program to generate a corresponding OSD screen, and the video server synthesizes the received OSD screen with a blank background image and the currently transmitted video screen and sends it to the video transmission processing module; the video transmission processing module sends it to the sink device through the HDMI port for display.
[0083] The method provided by the present disclosure fills the time period when the data transmission system is unable to send images to the receiving device when processing the target image by sending a preset image when the data transmission system receives instructions from the receiving device for parameter setting and video screen switching operations, thereby avoiding the short-term black screen phenomenon of the receiving device during parameter setting and switching operations, and the problem that the receiving device continuously pulls down and raises the HPD pin due to failure to detect the video signal, which ultimately leads to the interruption of the video signal.
[0084] 104. After the target image is processed by the server, the processed target image is sent to a receiving device.
[0085] In the method provided by the present disclosure, processing the target image by the server includes: superimposing the preset image and the target image, so as to achieve a smooth transition from the preset image to the target image.
[0086] Furthermore, when processing the second image or the first image, in the process of synthesizing the second image or the first image with the target image, the second image or the first image can be covered on the upper layer of the target image and displayed in a semi-transparent manner.
[0087] The method provided by the present disclosure also includes sending a corresponding image according to the detected operation instruction sent by the receiving device:
[0088] When an exit instruction is detected, a stop instruction is generated by the server, and the acquisition instruction is used to stop acquiring the target image;
[0089] According to the stop instruction, the image processing device stops acquiring the target image, stops sending the target image to the receiving device, and does not stop sending the preset image to the receiving device.
[0090] The above-mentioned exit instruction refers to the signal sent when the operation of exiting the current user is executed through the mouse and keyboard operation connected to the data transmission system end; or the operation of exiting the current user is executed through the remote control matched with the data transmission system end; through the above operation, the target image will be terminated from being sent to the receiving device.
[0091] Further, when the data transmission system includes a parameter setting device, when the system detects an exit instruction, an exit function of the parameter processing device is activated;
[0092] According to the exit function, a third image is generated by the parameter processing device and sent to the server, where the third image is used to prompt the user to exit the display screen of the system, and specifically, the third image may be shared with the server through a DMA BUF sharing mechanism;
[0093] When receiving the third image, the server synthesizes the third image and the preset image, and provides the synthesized third image to the video processor;
[0094] The synthesized third image is encoded and outputted via the HDMI TMDS encoder through the video processor, and the receiving device displays the switched third image screen;
[0095] The data transmission method provided by the embodiment of the present disclosure is applied to a data transmission system. When the data transmission system is started, a preset image is continuously sent to a receiving device through a server in the data transmission system, and it is detected whether a target signal sent by the receiving device is received. When the target signal is received, the server commands the data transmission system to obtain the target image, and after superimposing the target image with the preset image, sends it to the receiving device.
[0096] The present disclosure adds a server to the data transmission system, so that a blank background image can be continuously rendered and output, and the blank background image can be synthesized with the target image and then output. In this way, after successfully connecting to the receiving device, that is, when the HDMI cable is plugged in, the TMDS signal of the blank background image can be output immediately, thereby avoiding the phenomenon that the receiving device cannot detect the video signal. When the data transmission system needs to set parameters and switch video screens, the time period without video signal can also be avoided, thereby avoiding the black screen phenomenon that appears briefly when setting parameters and switching video screens, and the problem that the receiving device continuously pulls down and raises the HPD pin due to the failure to detect the video signal, and finally causes the video signal to be interrupted, thereby reducing the possibility of the receiving device failing to search for the signal, and improving the compatibility and user experience of the video data transmission system.
[0097] Embodiment 2
[0098] Based on the above Figure 1 Corresponding to the data transmission method described in the embodiment, the following is a hardware embodiment of the data transmission system of the present disclosure, which can be used to execute the method embodiment of the present disclosure.
[0099] The present disclosure provides a data transmission system. Figure 2 As shown, the data transmission system 20 includes: an image processing device 201 and a server 202, and the image processing device 201 includes: a receiver 2011, a processor 2012, and a transmitter 2013;
[0100] The receiver 2011 is used to obtain video data and target images and send them to the processor; specifically, the video data can be obtained from a video source, which can be a remote server or other network video source.
[0101] The processor 2012 is used to receive the target image and process the target image according to the configuration information, specifically including: decoding processing, rendering processing, etc.
[0102] The server 202 is used to send a preset image to the receiving device and activate a detection function, where the detection function is used to detect whether a target signal is received;
[0103] When a target signal is detected, an acquisition instruction is generated, the acquisition instruction is used to instruct the receiver to acquire a target image;
[0104] According to the acquisition instruction, when a target image is received, the target image is processed and then sent to the transmitter 2013;
[0105] The transmitter 213 is used to receive the processed target image and send the processed target image to the receiving device, which can be output through the HDMI port.
[0106] In an optional embodiment, the server 202 in the system 20 provided by the present disclosure is further used for:
[0107] When an exit instruction is detected, a stop instruction is generated, and the acquisition instruction is used to stop acquiring the target image;
[0108] And send the stop instruction to the receiver.
[0109] Furthermore, the system provided by the present disclosure also includes a parameter processing device, the parameter processing device is used to receive a target signal and activate an authentication function of the parameter processing device according to the target signal, the authentication function is used to verify the authority information;
[0110] According to the authentication function, a second image is generated by the parameter processing device and sent to the server, where the second image is used to obtain user authentication information;
[0111] or, according to the target signal, activating a setting function of the parameter processing device, the configuration function being used to set the parameters of the target image;
[0112] According to the setting function, a second image is generated by the parameter processing device and sent to the server, and the second image is used to obtain parameter information.
[0113] The target signal mentioned above may be a notification signal pulled high by the HPD, or a control signal triggered by the user pressing a menu option in a remote controller.
[0114] Furthermore, when the system 20 provided by the present disclosure further includes a parameter processing device 203, the server 202 is further used to:
[0115] receiving the first image, processing the first image, and then sending the first image to the receiving device;
[0116] Acquiring user authentication information according to the first image;
[0117] When the user authentication information passes the authentication, the acquisition function is activated;
[0118] Alternatively, receiving the second image and sending it to the receiving device after processing the second image;
[0119] According to the second image, the target parameters are acquired through the parameter processing device, and a configuration instruction is generated, wherein the configuration instruction is used to instruct to process the target image according to the target parameters.
[0120] The data transmission system provided by the embodiment of the present disclosure includes an image processing device and a server, and may also include a parameter processing device. When the data transmission system is started, a preset image is continuously sent to a receiving device through the server in the data transmission system, and it is detected whether a target signal sent by the receiving device is received. When the target signal is received, the server commands the image processing device to obtain the target image, and after superimposing the target image with the preset image, it is sent to the receiving device through the image processing device, thereby reducing the possibility of failure of the receiving device to search for the signal and improving the compatibility and user experience of the video data transmission system.
[0121] Based on the above Figure 1 Corresponding to the data transmission method described in the embodiment, the embodiment of the present disclosure also provides a computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The storage medium stores computer instructions for executing the above Figure 1 The data transmission method described in the corresponding embodiment will not be repeated here.
[0122] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
Claims
1. A data transmission method, It is characterized in that Applied to a data transmission system, the data transmission system includes a server and an image processing device, the method includes: Sending a preset image to a receiving device through the server and activating a detection function, wherein the detection function is used to detect whether a target signal sent by the receiving device is received; When the target signal is detected, generating an acquisition instruction through the server, wherein the acquisition instruction is used to instruct to acquire a target image; According to the acquisition instruction, the target image is acquired by the image processing device and sent to the server; After the target image is processed by the server, the processed target image is sent to the receiving device; The method also includes: when an exit instruction is detected, a stop instruction is generated by the server, and the acquisition instruction is used to stop acquiring the target image; according to the stop instruction, the acquisition of the target image is stopped by the image processing device, and the sending of the target image to the receiving device is stopped and the sending of the preset image to the receiving device is not stopped.
2. The method according to claim 1, It is characterized in that The sending the preset image comprises: Acquire configuration information of the receiving device; Generate a preset pixel stream according to the configuration information of the receiving device and the preset image; The preset image is sent via the preset pixel stream.
3. The method according to claim 1, It is characterized in that The data transmission system further includes a parameter processing device, and before generating the acquisition instruction, further includes: activating an authentication function of the parameter processing device according to the target signal, the authentication function being used to verify authority information; According to the authentication function, generating a first image through the parameter processing device and sending it to the server, wherein the first image is used to obtain user authentication information; After the first image is processed by the server, the first image is sent to the receiving device; Acquire user authentication information according to the first image; When the user authentication information passes the authentication, the acquisition function is activated.
4. The method according to claim 1, It is characterized in that The data transmission system further includes a parameter processing device, and the method further includes: According to the target signal, activating a setting function of the parameter processing device, wherein the setting function is used to set the parameters of the target image; According to the setting function, a second image is generated by the parameter processing device and sent to the server, wherein the second image is used to obtain parameter information; After the second image is processed by the server, the second image is sent to the receiving device; According to the second image, target parameters are acquired through the parameter processing device, and a configuration instruction is generated, where the configuration instruction is used to instruct to process the target image according to the target parameters.
5. The method according to claim 1, It is characterized in that The data transmission system further includes a parameter processing device, and the method further includes: When an exit instruction is detected, activating an exit function of the parameter processing device; According to the exit function, a third image is generated by the parameter processing device and sent to the receiving device, wherein the third image is used to indicate exiting the data transmission system.
6. A data transmission system, It is characterized in that A server and an image processing device, wherein the image processing device comprises: a receiver, a processor, and a transmitter; The server is connected to the image processing device; The receiver is used to acquire the target image and send it to the processor; The processor is used to receive the target image and process the target image according to the configuration information; The server is used to send a preset image to the receiving device and activate a detection function, wherein the detection function is used to detect whether a target signal is received; When a target signal is detected, generating an acquisition instruction, the acquisition instruction is used to instruct the receiver to acquire a target image; According to the acquisition instruction, when a target image is received, the target image is processed and then sent to the transmitter; The transmitter is used to send the processed target image to a receiving device; The server is also used to, when an exit instruction is detected, generate a stop instruction, the acquisition instruction is used to stop acquiring the target image; and send the stop instruction to the receiver; according to the stop instruction, stop acquiring the target image through the image processing device, and stop sending the target image to the receiving device and do not stop sending the preset image to the receiving device.
7. The system according to claim 6, It is characterized in that The data transmission system further comprises a parameter processing device, wherein the parameter processing device is connected to the server. The parameter processing device is used to receive a target signal and activate an authentication function of the parameter processing device according to the target signal, wherein the authentication function is used to verify the authority information; According to the authentication function, generating a first image through the parameter processing device and sending it to the server, wherein the first image is used to obtain user authentication information; or, according to the target signal, activating a setting function of the parameter processing device, wherein the setting function is used to set the parameters of the target image; According to the setting function, a second image is generated by the parameter processing device and sent to the server, and the second image is used to obtain parameter information.
8. The system according to claim 7, It is characterized in that The server is also used to: receiving the first image, and after processing the first image, sending it to the receiving device; Acquire user authentication information according to the first image; When the user authentication information passes the authentication, activating the acquisition function; Alternatively, receiving the second image and sending the second image to the receiving device after processing the second image; According to the second image, target parameters are acquired through the parameter processing device, and a configuration instruction is generated, where the configuration instruction is used to instruct to process the target image according to the target parameters.
