Disclosure of Invention
The invention provides a data processing system and a data processing method, which can realize interaction between a first terminal which does not support a preset protocol and a second terminal which supports the preset protocol, and avoid that the first terminal which does not support the preset protocol cannot perform double-screen interaction with the second terminal which supports the preset protocol.
The present invention provides a data processing system comprising:
The first terminal is used for outputting data to be transmitted, wherein the first terminal is a terminal which does not support a preset protocol;
The data transmission device is connected with the first terminal and is used for receiving the data to be output, converting the format of the data to be output to obtain data in a preset format, and transmitting the data in the preset format to the second terminal, wherein the preset format is a data format corresponding to the preset protocol;
The second terminal is connected with the data transmission device and is used for receiving the data in the preset format sent by the data transmission device and processing the data in the preset format, wherein the second terminal is a terminal supporting a preset protocol.
In one embodiment, the data transmission device comprises a decoding chip and a liquid crystal display controller, wherein the liquid crystal display controller is connected with the decoding chip, and the decoding chip comprises the following components:
The decoding chip is used for:
decoding video data in the data to be output to obtain RGB digital signals;
Transmitting the RGB digital signals to the liquid crystal display controller;
The liquid crystal display controller is used for:
and encoding the RGB digital signals into the data in the preset format.
In one embodiment, the data transmission device further includes:
And one end of the exchange chip is connected with the second terminal, and the other end of the exchange chip is connected with the liquid crystal display controller, wherein:
The exchange chip is used for:
Receiving non-video data;
Synthesizing the non-video data and the video data when the non-video data corresponds to the video data;
And forwarding the non-video data to the second terminal when the non-video data does not correspond to the video data, wherein the non-video data comprises audio data and/or touch signals, and the data to be output comprises the non-video data.
In one embodiment, the data transmission device further includes:
the interface expansion equipment is connected with the first terminal at one end and connected with the decoding chip and the exchange chip at the other end respectively;
The interface expansion device is used for:
distinguishing the non-video data from the video data;
Forwarding the non-video data to the switching chip, and
Forwarding the video data to the decoding chip.
In one embodiment, the interface extension device is specifically configured to:
and distinguishing the non-video data from the video data according to the data identification.
In one embodiment, the apparatus further comprises:
one end of the singlechip is connected with the interface expansion equipment, and the other end of the singlechip is connected with the exchange chip;
The singlechip is used for:
carrying out preset processing on the non-video data sent by the interface expansion equipment;
forwarding the non-video data after the preset processing to the exchange chip, wherein the preset processing comprises at least one of time sequence processing, mapping processing and marking adding processing.
In one embodiment, the single chip microcomputer is further configured to:
and transmitting the touch signal from the second terminal, which is transmitted by the exchange chip, to the interface expansion equipment.
In one embodiment, the apparatus further comprises:
One end of the charge and discharge management chip is connected with the interface expansion equipment, and the other end of the charge and discharge management chip is connected with the first terminal;
the charge and discharge management chip is used for:
charging support is provided for the interface expansion device and the first device.
In one embodiment, a first Type-C female port is provided on the second terminal, a second Type-C female port and a Type-a female port are provided on the data transmission device, and an interface which does not support the preset protocol is provided on the first terminal, wherein the preset protocol is a protocol used by the Type-C interface;
An interface which is arranged on the first terminal and does not support the preset protocol is connected with a Type-A mother port on the data transmission device;
And the first Type-C female port on the second terminal is connected with the second Type-C female port on the data transmission device.
In one embodiment, the first Type-C female port is connected with the second Type-C female port through a Type-C full-function double-ended cord.
The invention also provides a data processing method, which comprises the following steps:
Receiving data to be output sent by a first terminal, wherein the first terminal is a terminal which does not support a preset protocol;
Converting the format of the data to be output to obtain data in a preset format;
transmitting the data in the preset format to a second terminal, wherein the preset format is the data format corresponding to the preset protocol;
And processing the data in the preset format through the second terminal, wherein the second terminal is a terminal supporting a preset protocol.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
Through adding the data transmission device between the first terminal and the second terminal, the data to be output can be converted by the data transmission device to obtain data in a preset format, and the data in the preset format is sent to the second terminal, so that interaction between the first terminal which does not support the preset protocol and the second terminal which supports the preset protocol is realized through converting the data format by the data transmission device, and the situation that the first terminal which does not support the preset protocol cannot perform double-screen interaction with the second terminal which supports the preset protocol is avoided.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
To solve the above technical problems, as shown in fig. 1 to 4, an embodiment of the present disclosure provides a data processing system, including:
the first terminal 1 is configured to output data to be transmitted, where the first terminal 1 is a terminal that does not support a preset protocol;
The preset protocol may be a USB Type-C ALTERNATIVE mode protocol. The first terminal 1 may be a small screen device such as a mobile phone, a tablet or the like.
The data transmission device 2 is connected with the first terminal 1, and is used for receiving data to be output, converting the Format of the data to be output to obtain data with a preset Format, and sending the data with the preset Format to the second terminal 3, wherein the preset Format is a data Format corresponding to a preset protocol, for example, when the preset protocol is a USB Type-C ALTERNATIVE mode protocol, the data with the preset Format can be transmitted by using the ALTERNATIVE MODE protocol or a Format supporting the ALTERNATIVE MODE protocol, for example, the data can be FHD (Full High Definition ) Format, MP4 Format, FLV Format (FLASH VIDEO), JPEG (Joint Photographic Experts Group), TIFF Format (TAG IMAGE FILE Format ) and the like;
the data to be output may be audio data, video data, touch signals, etc.
The second terminal 3 is connected to the data transmission device 2, and is configured to receive the data in the preset format sent by the data transmission device 2, and process the data in the preset format, where the second terminal 3 is a terminal supporting a preset protocol.
By adding the data transmission device 2 between the first terminal 1 and the second terminal 3, the data to be output can be converted by the data transmission device 2to obtain data in a preset format, and the data in the preset format is sent to the second terminal 3 to enable the second terminal 3 to process the data in the preset format, so that interaction between the first terminal 1 which does not support the preset protocol and the second terminal 3 which supports the preset protocol is realized by converting the data format by the data transmission device 2, and the situation that the first terminal 1 which does not support the preset protocol cannot perform double-screen interaction with the second terminal 3 which supports the preset protocol is avoided.
In addition, processing the data in the preset format includes playing or displaying the data in the preset format or silently responding in the background, specifically, playing video data in the preset format, displaying non-video data in the preset format or responding in the background, and the non-video data may include audio data and touch signals.
And when the non-video data is a touch signal, if the touch signal includes a target coordinate of the touch screen of the second terminal 3, displaying the non-video data includes displaying a mark such as a pointer on the touch screen at the target coordinate to clearly identify the location of the target coordinate.
And when the non-video data is a touch signal and the touch signal is a touch instruction, the second terminal 3 silently executes the touch instruction in the background so as to silently respond in the background according to the touch instruction.
As shown in fig. 2, 3A and 3B, in one embodiment, the data transmission device 2 includes a decoding chip 21 and a liquid crystal display controller 22, wherein the liquid crystal display controller 22 is connected to the decoding chip 21, and wherein:
The decoding chip 21 is configured to:
decoding video data in the data to be output to obtain RGB digital signals;
RGB is a color standard in industry, and is obtained by varying three color channels of red (R), green (G), and blue (B) and overlapping them with each other.
Transmitting the RGB digital signals to the liquid crystal display controller 22;
the liquid crystal display controller 22 is configured to:
The RGB digital signals are encoded into data in a preset format.
The decoding chip 21 may extract video data from the data to be output, and further decode each video frame in the video data, so as to obtain RGB digital signals, so that the RGB digital signals are automatically encoded into data in a preset format by the lcd controller 22, and further realize dual-screen interaction between the first terminal 1 and the second terminal 3 by means of the decoding chip 21 and the lcd controller 22.
The decoding chip 21 may be DISPLAY LINK DL3500/DISPLAY LINK DL3900, where a Digital RGB interface is provided on the decoding chip 21 to send RGB Digital signals to the lcd controller 22 through the Digital RGB interface;
The lcd controller 22 may be a DP501, and in this case, a Display Port interface (a standard interface for high-definition digital Display interface) is provided on the lcd controller 22, and the Display Port interface is connected to a switching chip 23.
As shown in fig. 3A and 3B, in one embodiment, the data transmission device 2 further includes:
a switching chip 23 having one end connected to the second terminal 3 and the other end connected to the liquid crystal display controller 22, wherein:
the switch chip 23 is configured to:
Receiving non-video data;
When the non-video data corresponds to the video data, synthesizing the non-video data and the video data;
and when the non-video data does not correspond to the video data, forwarding the non-video data to the second terminal, wherein the non-video data comprises audio data and/or touch signals, and the data to be output comprises the non-video data.
When receiving the correspondence between the non-video data and the video data, the non-video data and the video data may be automatically synthesized to obtain a synthesized video, so that the second terminal 3 may display the complete synthesized video, so that the first terminal 1 that does not support the preset protocol and the second terminal 3 that supports the preset protocol may implement an interesting dual-screen interaction experience, and in addition, an identifier is provided on the non-video data, where the identifier is used to determine whether the non-video data and the video data are corresponding to the video data, so that the switch chip 23 explicitly needs to synthesize the non-video data and the video data.
Of course, the non-video data may be a touch signal, audio data, or other non-video data that is not corresponding to video data and is sent by the first terminal alone, and in this case, the switch chip 23 is only responsible for sending the non-video data to the second terminal, so that the second terminal processes the non-video data.
In addition, the touch signal may be a signal generated by performing a touch operation on the touch screen of the first terminal 1, or the touch signal may be a signal generated by performing a touch operation on the touch screen of the second terminal 3.
The Switch chip 23 may be a USB Type-C Switch chip.
As shown in fig. 3A, in one embodiment, the data transmission device 2 further includes:
an interface expansion device 24, one end of which is connected with the first terminal 1, and the other end of which is connected with the decoding chip 21 and the switching chip 23, respectively;
The interface expansion device 24 is configured to:
distinguishing non-video data from video data;
forwarding non-video data to the switching chip 23, and
The video data is forwarded to the decoding chip 21.
The interface expansion device 24 may be configured to split the video data and the non-video data to automatically forward the non-video data to the switching chip 23 and automatically forward the video data to the decoding chip 21, so as to process the video data and the non-video data separately, so that the first terminal 1 that does not support the preset protocol and the second terminal 3 that supports the preset protocol may implement dual-screen interaction.
The interface extension device 24 may be a USB HUB UPD720210.
In one embodiment, the interface extension device 24 is specifically configured to:
The non-video data is distinguished from the video data according to a data identification, wherein the data identification refers to a data type identification.
The interface extension device 24 can automatically distinguish the non-video data from the video data according to the data identifier, and of course, can also distinguish the audio data in the non-video data from the touch signal.
As shown in fig. 3B, in one embodiment, the apparatus further comprises:
One end of the singlechip 25 is connected with the interface expansion equipment 24, and the other end of the singlechip is connected with the exchange chip 23;
The singlechip 25 is used for:
the non-video data sent by the interface expansion device 24 is subjected to preset processing;
The non-video data after the preset processing is forwarded to the switch chip 23, wherein the preset processing includes at least one of timing processing, mapping processing, and adding a mark processing.
Since the non-video data may need to be processed to enter the switching chip 23, the singlechip 25 may perform preset processing such as timing processing, mapping processing, and marking processing on the non-video data, and automatically forward the non-video data after the preset processing to the switching chip 23.
In addition, the non-video data is processed in time sequence, so that the disorder of the sequence of the non-video data can be avoided;
When the non-video data is a touch signal and the touch signal includes position information relative to the first terminal 1 or the second terminal 3, the mapping processing of the non-video data may be to perform position conversion on the position information, for example, when the touch signal includes first position information relative to the touch screen of the first terminal 1, the first position information may be converted into second position information relative to the touch screen of the second terminal 3 through a size mapping relationship between the size of the touch screen of the first terminal 1 and the size of the touch screen of the second terminal 3, so as to complete the mapping processing of the position.
The tagging of the non-video data may be to add an identification indicating which part of the video data the non-video data corresponds to the non-video data, so that the switching chip 23 makes clear whether the non-video data corresponds to the video data.
In one embodiment, the single-chip microcomputer 25 is further configured to:
The touch signal from the second terminal 3 sent by the switch chip 23 is sent to the interface expansion device 24, and the touch signal from the second terminal 3 may be a signal generated by performing a touch operation on the touch screen of the second terminal 3.
The singlechip 25 may also send a touch signal from the second terminal 3 to the interface expansion device 24, so that interaction with the first terminal 1 can be achieved by touching the second terminal 3.
As shown in fig. 3A and 3B, in one embodiment, the apparatus further comprises:
a charge/discharge management chip 26 having one end connected to the interface expansion device 24 and the other end connected to the first terminal 1;
The charge and discharge management chip 26 is configured to:
charging support is provided for the interface expansion device 24 and the first device.
The charge and discharge management chip 26 may be a PD (USB-PowerDelivery) Controller chip.
As shown in fig. 4, in one embodiment, a first Type-C female port 27 is provided on the second terminal 3, a second Type-C female port 28 and a Type-a female port 29 are provided on the data transmission device 2, and an interface 210 that does not support a preset protocol is provided on the first terminal 1, where the preset protocol is a protocol used by the Type-C interface;
The interface 210 which is set on the first terminal 1 and does not support the preset protocol is connected with the Type-A female port 29 on the data transmission device 2;
The first Type-C female port 27 on the second terminal 3 is connected to the second Type-C female port 28 on the data transmission device 2.
In one embodiment, the first Type-C female port 27 and the second Type-C female port 28 are connected by a Type-C full function dual-headed wire.
By connecting the first terminal 1 provided with the interface 210 which does not support the preset protocol with the data transmission device 2 provided with the Type-a female port 29 and connecting the second Type-C female port 28 of the data transmission device 2 with the first Type-C female port 27 of the second terminal 3 through a full-function double-ended line, the first terminal 1 which does not support the preset protocol and the second terminal 3 which supports the preset protocol can mutually send data by means of the preset protocol to realize double-screen interaction, so that the first terminal 1 which does not support the preset protocol cannot perform double-screen interaction with the second terminal 3 which supports the preset protocol is avoided.
The first terminal 1 of the interface 210 that does not support the preset protocol and the data transmission device 2 provided with the Type-a female port 29 may be connected through a connection line of the first terminal 1.
The interface 210 that does not support the preset protocol may be a Micro USB interface, a Type-a interface, or a Type-C interface that does not support the preset protocol.
As shown in fig. 5, the present invention further provides a data processing method, which includes steps S501 to S504, wherein:
In step S501, receiving data to be output sent by a first terminal, where the first terminal is a terminal that does not support a preset protocol;
In step S502, converting the format of the data to be output to obtain data in a preset format;
in step S503, data in a preset format is sent to the second terminal, where the preset format is a data format corresponding to a preset protocol;
in step S504, the data in the preset format is processed by the second terminal, where the second terminal is a terminal supporting the preset protocol.
The data to be output is converted to obtain the data in the preset format, and the data in the preset format is sent to the second terminal, so that the second terminal can process the data in the preset format, interaction between the first terminal which does not support the preset protocol and the second terminal which supports the preset protocol can be realized, and the situation that the first terminal which does not support the preset protocol cannot perform double-screen interaction with the second terminal which supports the preset protocol is avoided.
The specific manner in which the various modules perform the operations in relation to the systems of the above embodiments have been described in detail in relation to the embodiments of the method and will not be described in detail herein.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.