Data transmission method and system

文档序号:1381732 发布日期:2020-08-14 浏览:35次 中文

阅读说明:本技术 数据传输方法及系统 (Data transmission method and system ) 是由 段瑞楠 范志刚 于 2020-04-22 设计创作,主要内容包括:本公开提供一种数据传输方法及系统,涉及电子信息技术领域,能够解决发送数据时信号检测的兼容性问题以及显示画面切换的问题。具体技术方案为:当数据传输系统启动时,通过数据传输系统中的服务器,持续的向接收设备发送预设图像,并检测是否接收到接收设备发送的目标信号,当接收目标信号时,服务器命令数据传输系统获取目标图像,并将目标图像与预设图像进行叠加处理后,向接收设备发送。本公开用于数据传输。(The present disclosure provides a data transmission method and system, which relates to the technical field of electronic information and can solve the problems of compatibility of signal detection and display picture switching when data is sent. The specific technical scheme is as follows: when the data transmission system is started, a server in the data transmission system is used for continuously sending a preset image to the receiving equipment and detecting whether a target signal sent by the receiving equipment is received or not, and when the target signal is received, the server commands the data transmission system to obtain the target image, and sends the target image and the preset image to the receiving equipment after superposition processing. The present disclosure is for data transmission.)

1. A data transmission method applied to a data transmission system including a server and an image processing apparatus, the method comprising:

sending a preset image to a receiving device through the server and activating a detection function, wherein the detection function is used for detecting whether a target signal sent by the receiving device is received or not;

when the target signal is detected, generating an acquisition instruction through the server, wherein the acquisition instruction is used for indicating to acquire a target image;

acquiring a target image through the image processing equipment according to the acquisition instruction, and sending the target image to the server;

and after the target image is processed by the server, sending the processed target image to the receiving equipment.

2. The method of claim 1, wherein the sending the preset image comprises:

acquiring configuration information of the receiving equipment;

generating a preset pixel stream according to the configuration information of the receiving equipment and the preset image;

and sending the preset image through the preset pixel stream.

3. The method of claim 1, wherein the data transmission system further comprises a parameter processing device, and prior to generating the acquisition instruction, further comprises:

according to the target signal, activating an authentication function of the parameter processing equipment, wherein the authentication function is used for verifying authority information;

generating a second image through the parameter processing equipment according to the authentication function, and sending the second image to the server, wherein the first image is used for acquiring user authentication information;

after the first image is processed by the server, the first image is sent to the receiving equipment;

acquiring user authentication information according to the first image;

and when the user authentication information passes the authentication, activating an acquisition function.

4. The method of claim 1, wherein the data transmission system further comprises a parameter processing device, and wherein the method further comprises:

according to the target signal, activating a setting function of the parameter processing equipment, wherein the configuration function is used for setting the parameters of the target image;

generating a second image through the parameter processing equipment according to the setting function, and sending the second image to the server, wherein the second image is used for acquiring parameter information;

after the second image is processed by the server, the second image is sent to the receiving equipment;

and acquiring target parameters through the parameter processing equipment according to the second image, and generating a configuration instruction, wherein the configuration instruction is used for instructing to process the target image according to the target parameters.

5. The method of claim 1, further comprising:

when an exit instruction is detected, generating a stop instruction through the server, wherein the acquisition instruction is used for stopping acquiring a target image;

and according to the stop instruction, stopping acquiring the target image through the image processing equipment, and stopping sending the target image to the receiving equipment and not stopping sending the preset image to the receiving equipment.

6. The method of claim 5, wherein the data transmission system further comprises a parameter processing device, and wherein the method further comprises:

when an exit instruction is detected, activating an exit function of the parameter processing equipment;

and generating a third image through the processing equipment according to the quitting function, and sending the third image to the receiving equipment, wherein the third image is used for indicating to quit the data transmission system.

7. A data transmission system characterized by a server and an image processing apparatus, the image processing apparatus comprising: a receiver, a processor, a transmitter;

the server is connected with the image processing equipment;

the receiver is used for acquiring a target image and sending the target image to the processor;

the processor is used for receiving the target image and processing the target image according to configuration information;

the server is used for sending a preset image to the receiving equipment and activating a detection function, and the detection function is used for detecting whether a target signal is received or not;

when a target signal is detected, generating an acquisition instruction, wherein the acquisition instruction is used for instructing the receiver to acquire a target image;

according to the acquisition instruction, when a target image is received, processing the target image and then sending the processed target image to the sender;

the transmitter is used for transmitting the processed target image to a receiving device.

8. The system of claim 7, wherein the data transmission system further comprises a parameter processing device, the parameter processing device being connected to the server,

the parameter processing equipment is used for receiving a target signal and activating an authentication function of the parameter processing equipment according to the target signal, wherein the authentication function is used for verifying authority information;

generating a second image through the parameter processing equipment according to the authentication function and sending the second image to the server, wherein the second image is used for acquiring user authentication information;

or, according to the target signal, activating a setting function of the parameter processing device, wherein the configuration function is used for setting the parameter of the target image;

and generating a second image through the parameter processing equipment according to the setting function, and sending the second image to the server, wherein the second image is used for acquiring parameter information.

9. The system of claim 8, wherein the server is further configured to,

receiving the first image, processing the first image, and sending the first image to the receiving equipment;

acquiring user authentication information according to the first image;

activating an acquisition function when the user authentication information passes authentication;

or, receiving the second image and sending the second image to the receiving device after processing the second image;

and acquiring target parameters through the parameter processing equipment according to the second image, and generating a configuration instruction, wherein the configuration instruction is used for instructing to process the target image according to the target parameters.

10. The system of claim 7, wherein the server is further configured to,

when an exit instruction is detected, generating a stop instruction, wherein the acquisition instruction is used for stopping acquiring the target image;

and sending the stop instruction to the receiver.

Technical Field

The present disclosure relates to the field of electronic information technologies, and in particular, to a data transmission method and system.

Background

When the video receiving device processes and plays the video, the video source can be from an external video source device or from the video receiving device itself. In the prior art, when an external video source device is successfully connected to a video receiving device and determines whether to send a video source to the video receiving device, it is determined whether to successfully connect two devices by detecting a 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 determined that the connection with the receiving device is successful, and the video data can be sent to the receiving external video source device.

However, in practical applications, when the external video source device detects that the HPD pin signal is at a high level, it takes a preset time to complete sending the video to the receiving device after confirming that the external video source device is successfully connected, but in the 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 considers that the external video source device does not recognize the HPD pin signal at the high level, and then pulls down and then pulls up the HPD pin signal. And when the video receiving equipment pulls down the HPD pin signal, the external video source equipment can stop outputting the TMDS signal because detecting that the HPD signal is low, thereby causing the sink equipment to continuously pull down the HPD, pull up the HPD again and pull down the HPD again, and finally causing the smart television not to search for the external HDMI signal.

Disclosure of Invention

The embodiment of the 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 data is sent. The technical scheme is as follows:

according to a first aspect of embodiments of the present disclosure, there is provided a data transmission method applied to a data transmission system including a server and an image processing apparatus, the method including:

sending a preset image to a receiving device through the server and activating a detection function, wherein the detection function is used for detecting whether a target signal sent by the receiving device is received or not;

when the target signal is detected, generating an acquisition instruction through the server, wherein the acquisition instruction is used for indicating to acquire a target image;

acquiring a target image through the image processing equipment according to the acquisition instruction, and sending the target image to the server;

after the target image is processed by the server, the processed target image is sent to the receiving device.

In one embodiment, the method wherein the sending the preset image comprises:

acquiring configuration information of the receiving equipment;

generating a preset pixel stream according to the configuration information of the receiving device and the preset image;

and sending the preset image through the preset pixel stream.

In one embodiment, the data transmission system further comprises a parameter processing device, and the method further comprises, before generating the acquisition instruction:

according to the target signal, activating an authentication function of the parameter processing equipment, wherein the authentication function is used for verifying authority information;

generating a second image through the parameter processing equipment according to the authentication function, and sending the second image to the server, wherein the first image is used for acquiring user authentication information;

after the first image is processed by the server, the first image is sent to the receiving equipment;

acquiring user authentication information according to the first image;

and when the user authentication information passes the authentication, activating an acquisition function.

In one embodiment, the data transmission system further comprises a parameter processing device, the method further comprising:

according to the target signal, activating a setting function of the parameter processing equipment, wherein the configuration function is used for setting the parameters of the target image;

generating a second image through the parameter processing equipment according to the setting function, and sending the second image to the server, wherein the second image is used for acquiring parameter information;

after the second image is processed by the server, the second image is sent to the receiving equipment;

and acquiring target parameters according to the second image through the parameter processing equipment, and generating configuration instructions, wherein the setting instructions are used for instructing the target image to be processed according to the target parameters.

In one embodiment, the method further comprises:

when an exit instruction is detected, generating a stop instruction through the server, wherein the acquisition instruction is used for stopping acquiring the target image;

and according to the stop instruction, stopping acquiring the target image through the image processing device, and stopping transmitting the target image to the receiving device and not stopping transmitting the preset image to the receiving device.

In one embodiment, the data transmission system further comprises a parameter processing device, the method further comprising:

when an exit instruction is detected, activating an exit function of the parameter processing equipment;

and generating a third image by the processing device according to the exit function, and sending the third image to the receiving device, wherein the third image is used for indicating exit of the data transmission system.

According to a second aspect of the embodiments of the present disclosure, there is provided a data transmission system including: a server and an image processing apparatus, the image processing apparatus including: a receiver, a processor, a transmitter;

the server is connected with the image processing equipment;

the receiver is used for acquiring a target image and sending the target image to the processor;

the processor is used for receiving the target image and processing the target image according to configuration information;

the server is used for sending a preset image to the receiving equipment and activating a detection function, and the detection function is used for detecting whether a target signal is received or not;

when a target signal is detected, generating an acquisition instruction, wherein the acquisition instruction is used for instructing the receiver to acquire a target image;

according to the acquisition instruction, when a target image is received, processing the target image and then sending the processed target image to the sender;

the transmitter is used for transmitting the processed target image to the receiving device.

In one embodiment, the data transmission system further comprises a parameter processing device, the parameter processing device being connected to the server,

the parameter processing device is used for receiving a target signal and activating an authentication function of the parameter processing device according to the target signal, wherein the authentication function is used for verifying authority information;

generating a second image through the parameter processing equipment according to the authentication function and sending the second image to the server, wherein the second image is used for acquiring user authentication information;

or, according to the target signal, activating a setting function of the parameter processing device, wherein the configuration function is used for setting the parameter of the target image;

and generating a second image by the parameter processing equipment according to the setting function, and sending the second image to the server, wherein the second image is used for acquiring parameter information.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

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 disclosure.

Fig. 1 is a flowchart of a data transmission method provided by an embodiment of the present disclosure;

fig. 2 is a structural diagram of a data transmission system according to an embodiment of the present disclosure.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

The embodiment of the present disclosure provides a data transmission method, which is applied to a data transmission system, and as shown in fig. 1, the data transmission method includes the following steps:

the data transmission system provided by the present disclosure is used for sending video data, and specifically may include: a server and an image processing apparatus,

the server is used for continuously rendering a blank background image after the data transmission system is started, sending the blank background image to a video output processing device in the image processing equipment, and sending the blank background image to the receiving equipment through the image processing equipment.

The server is also used for synthesizing the blank background image and the video picture and then sending the synthesized blank background image and the video picture to the video output processing device when receiving the video sent by the video output processing device in the image processing equipment.

According to the data transmission system, the server is added, so that the blank background image can be continuously rendered and output, and the blank background image and the target video image can be synthesized and output. By the mode, when the HDMI cable is plugged, the TMDS signal of the blank background image can be output at the first time, and therefore the phenomenon that the video signal cannot be detected by the receiving equipment is avoided.

101. Sending a preset image to a receiving device through the server and activating a detection function, wherein the detection function is used for detecting whether a target image is received;

when the system is started, the method provided by the disclosure acquires the preset image through the server, and the preset image can be a blank background image.

The system may be communicatively connected to a receiving device, for example by means of HDMI, which may be a display device, such as a television, that processes video signals.

After determining to connect with the receiving device, the method provided by the present disclosure, when sending the preset image to the receiving device through the server, includes:

acquiring display parameters of receiving equipment;

and generating a preset time sequence output pixel stream for the preset image according to the preset requirement of the receiving equipment, encoding the preset time sequence output pixel stream by the HDMI TMDSEncoder to generate a TMDS signal, and transmitting the TMDS signal to the receiving equipment.

When the receiving device receives the preset image, decoding processing is carried out and a preset background image is displayed.

102. When the target signal is detected, an acquisition instruction is generated by the server, and the acquisition instruction is used for acquiring a target image.

The target signal is a detection signal, and for example, a Hot Plug Detection (HPD) signal is generated. The specific use scenario may be that when the receiving device determines to use an external signal source, that is, a signal sent by the data transmission system, the HPD pin is pulled high to generate an HPD signal, and the HPD signal is sent to the data transmission system, and when the data transmission system detects that the HPD pin is at a high level, the HDMI line is considered to be connected. At this time, the data transmission system processes the target image, encodes the target image into a Transition Minimized Differential Signal (TMDS), and outputs the TMDS to the reception apparatus.

The target image is a target frame image or a single image that may be included in the target video.

The method provided by the present disclosure may include, before acquiring the target image, performing identity authentication on the receiving device:

according to the target signal, activating an authentication function of the parameter processing equipment, wherein the authentication function is used for verifying authority information;

generating a second image through the parameter processing equipment according to the authentication function, and sending the second image to the server, wherein the first image is used for acquiring user authentication information;

after the first image is processed by the server, the first image is sent to the receiving equipment;

acquiring user authentication information according to the first image;

and when the user authentication information passes the authentication, activating an acquisition function.

The user authentication information can be acquired through a keyboard and a mouse which are connected with the data transmission system; or, the data is acquired by a remote controller connected with the data transmission system in a virtual keyboard mode.

The authentication of the user authentication information may be performed through a data transmission system, or may be performed through an external device, for example, after the user authentication information is sent to a third-party server.

The method provided by the disclosure can reduce the time from the detection of the HPD pin being pulled up to the beginning of the output of the TMDS signal by the data transmission system, reduce the possibility of failure of the receiving equipment to search the signal, and improve the compatibility and the user experience of the video data transmission system.

Meanwhile, the method can eliminate the no-image blank period in the parameter setting and video switching process, solve the problem of black screen phenomenon in the signal waiting period of the receiving equipment, improve the elimination of user experience, and avoid the action of searching the signal again due to the interruption of the picture of the receiving equipment.

103. And acquiring the target image through the image processing equipment according to the acquisition instruction, and sending the target image to the server.

Before the method provided by the present disclosure acquires the target image, the method further includes processing the target image according to the target parameter, and the process may include:

according to the target signal, activating a setting function of the parameter processing equipment, wherein the configuration function is used for setting the parameters of the target image;

and generating a second image by the parameter processing equipment according to the setting function, and sending the second image to the server, wherein the second image is used for acquiring parameter information. A menu interface such as parameter settings;

after the second image is processed by the server, the second image is sent to the receiving equipment;

and acquiring target parameters according to the second image through the parameter processing equipment, and generating configuration instructions, wherein the setting instructions are used for instructing the target image to be processed according to the target parameters.

The parameter setting device is used for realizing an OSD (On-Screen Display) function, and the optimal use state is achieved by adjusting the working indexes including width, height, brightness, contrast, color system, mode, shape and the like. The result adjusted by the user and the set content can be directly displayed on the screen of the receiving equipment. The purpose of adjusting various parameters is achieved through the function menu displayed on the screen, the adjustment is convenient, and the adjusted contents are various.

The above-described parameter setting may be before the first transmission of the target image, or during the transmission of the target image.

For example: in the process of video playing, a user can send parameter configuration signals through a remote controller matched with a data transmission system, a video server in the data transmission system informs an OSD program to generate a corresponding OSD picture, and the video server synthesizes the received OSD picture, a blank background picture and a currently transmitted video picture and sends the synthesized OSD picture, the blank background picture and the currently transmitted video picture to a video transmission processing module; and the video transmission processing module sends the data to the sink equipment through the HDMI port for displaying.

According to the method provided by the disclosure, when the data transmission system receives the instruction of parameter setting and video picture switching operation of the receiving equipment, the time period that the data transmission system cannot send images to the receiving equipment when processing the target images is filled by sending the preset images, so that the problems that the receiving equipment has a temporary black screen phenomenon during parameter setting and switching operation and the receiving equipment continuously pulls down and pulls up the HPD pin because the video signal cannot be detected, and finally the video signal is finally interrupted are avoided.

104. And after the target image is processed by the server, the processed target image is sent to a receiving device.

The method provided by the present disclosure wherein processing the target image by the server includes: and performing superposition processing on the preset image and the target image, so that the preset image can be smoothly transited to the target image.

Further, when the second image or the first image is processed, the second image or the first image may be overlaid on the target image and displayed in a semi-transparent manner during the screen synthesis of the second image or the first image and the target image.

The method provided by the present disclosure further includes sending a corresponding image according to the detected operation instruction sent by the receiving device:

when an exit instruction is detected, generating a stop instruction through the server, wherein the acquisition instruction is used for stopping acquiring the target image;

and according to the stop instruction, stopping acquiring the target image through the image processing device, and stopping transmitting the target image to the receiving device and not stopping transmitting the preset image to the receiving device.

The exit instruction refers to a signal sent when the current user operation is exited through the mouse and keyboard operation connected with the data transmission system end; or the operation of exiting the current user is executed through a remote controller matched with the end of the data transmission system; by the above operation, the transmission of the target image to the reception apparatus is terminated.

Further, when the data transmission system comprises a parameter setting device, when the system detects an exit instruction, the exit function of the parameter processing device is activated;

generating a third image through the parameter processing device according to the quitting function, and sending the third image to the server, wherein the third image is used for prompting a user to quit a display picture of the system, and specifically, the method can comprise sharing the rendered third image to the server through a DMA BUF sharing mechanism;

when the server receives the third image, the third image and the preset image are subjected to synthesis processing, and the third image subjected to synthesis processing is provided for the video processor;

outputting the synthesized third image through an HDMI TMDS encoder by the video processor, and displaying the switched third image picture by the receiving equipment at the moment;

the data transmission method provided by the embodiment of the disclosure is applied to a data transmission system, when the data transmission system is started, a server in the data transmission system is used for continuously sending a preset image to a receiving device and detecting whether a target signal sent by the receiving device is received, and when the target signal is received, the server commands the data transmission system to obtain the target image, superposes the target image and the preset image and then sends the superposed target image to the receiving device.

According to the data transmission system, the server is added, so that the blank background image can be continuously rendered and output, and the blank background image and the target image can be synthesized and output. By the mode, the TMDS signal of the blank background image can be output at the first time after the receiving equipment is successfully connected, namely when the HDMI cable is plugged, so that the phenomenon that the receiving equipment cannot detect the video signal is avoided. When the data transmission system needs to set parameters and switch video pictures, the time period without video signals can be avoided, so that the problems that the screen blacking phenomenon appears momentarily when the parameters are set and the video pictures are switched, the HPD pin is pulled down and pulled up continuously due to the fact that the video signals cannot be detected by the receiving equipment, and finally the video signals are cut off are solved, the possibility that the signals are searched by the receiving equipment to fail is reduced, and the compatibility and the user experience of the video data transmission system are improved.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:利用短波、超短波技术的专用通讯系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类