Data communication system and electronic device
Patent Information
- Application Number
- CN202611219987.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-12
- Publication Date
- 2026-10-30
AI Technical Summary
[0003]一体机既可以作为普通电脑使用,还可以作为显示器使用,具备该功能的一体机通常通过高清晰度多媒体接口(High Definition Multimedia Interface,HDMI)或显示接口(DisplayPort,DP)接收外接设备传输的数据,但HDMI接口和DP接口的尺寸较厚,难以满足一体机的轻薄化设计需求
Smart Images

Figure CN123011797A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and more specifically to a data communication system and electronic equipment. Background Technology
[0002] To save space occupied by computer cases, reduce cable usage, and avoid messy cabling that affects aesthetics, all-in-one PCs and other electronic devices have emerged. All-in-one PCs integrate the computer, monitor, power supply, speakers, and camera into the back panel or base of the monitor, thereby reducing cabling and significantly reducing the space occupied by the computer case.
[0003] All-in-one PCs can be used as both regular computers and monitors. All-in-one PCs with this function usually receive data transmitted from external devices through a High Definition Multimedia Interface (HDMI) or DisplayPort (DP) interface. However, HDMI and DP interfaces are relatively thick, making it difficult to meet the requirements of the thin and light design of all-in-one PCs. Summary of the Invention
[0004] In view of the above problems, this application provides a data communication system and electronic device that can accurately determine the direction of data transmission in order to achieve both full-function input and full-function output.
[0005] According to a first aspect of this application, a data communication system is provided, applied to an electronic device. The data communication system includes: a first control module, a data transmission module, and a multiplexing module; the first control module is used to generate a first signal indicating the data role of the electronic device during data transmission; a first end of the data transmission module is electrically connected to the first control module, a second end of the data transmission module is electrically connected to an external device, and a third end of the data transmission module is electrically connected to the control end of the multiplexing module; the data transmission module is used to: receive the first signal sent by the first control module through the first end of the data transmission module, receive a second signal sent by the external device through the second end of the data transmission module, and generate a third signal indicating the data transmission direction based on the first and second signals, and send the third signal to the multiplexing module through the third end of the data transmission module; wherein the second signal is used to indicate the data role of the external device during data transmission; the multiplexing module is used to: determine the data transmission direction between the electronic device and the external device based on the third signal.
[0006] According to an embodiment of this application, the first control module includes: a power role control module and a data role control module; the output terminal of the data role control module is electrically connected to the first terminal of the data transmission module, and the output terminal of the power role control module is electrically connected to the control terminal of the data role control module; the power role control module is used to: generate a control signal and send it to the control terminal of the data role control module to control the data role control module to generate a first signal.
[0007] According to an embodiment of this application, the data role control module includes: a first switch unit, a first resistor, and a second resistor; a first end of the first resistor is connected to a first preset level, and a second end of the first resistor is electrically connected to a first end of the first switch unit; a first end of the second resistor is connected to a second preset level, and a second end of the second resistor is electrically connected to a second end of the first switch unit; a third end of the first switch unit is electrically connected to a first end of the data transmission module, a fourth end of the first switch unit is unloaded, and a control end of the first switch unit is electrically connected to the output end of the power role control module; the first switch unit is configured to control the first end, the second end, or the fourth end of the first switch unit to be electrically connected to the third end of the first switch unit according to a control signal.
[0008] According to an embodiment of this application, the first control module further includes: a second switch unit and a data transmission mode control module; a first end of the second switch unit is electrically connected to the data transmission mode control module, a second end of the second switch unit is electrically connected to the first end of the data transmission module, and a control end of the second switch unit is electrically connected to the output end of the power supply control module; the second switch unit is configured to control the data transmission mode control module to be electrically connected or disconnected from the data transmission module according to a control signal; the data transmission mode control module is used to: determine the data type of the data to be transmitted according to a fourth signal from an external device when the first end of the first switch unit is electrically connected to the third end of the first switch unit and the level value of the first signal is greater than the level value of the second signal, wherein the fourth signal is used to indicate the data transmission mode of the external device; or, when the second end of the first switch unit is electrically connected to the third end of the first switch unit and the level value of the first signal is less than the level value of the second signal, generate a fifth signal and send it to the external device through the data transmission module, wherein the fifth signal is used to indicate the data transmission mode of the electronic device.
[0009] According to an embodiment of this application, the data role control module is used to: when the data transmission mode control module and the data transmission module are electrically connected, control the fourth terminal of the first switch unit to be electrically connected to the third terminal of the first switch unit according to a control signal; or, when the electrical connection between the data transmission mode control module and the data transmission module is disconnected, control the first terminal of the first switch unit or the second terminal of the first switch unit to be electrically connected to the third terminal of the first switch unit according to a control signal.
[0010] According to an embodiment of this application, the data transmission module includes a comparison module; the first input terminal of the comparison module is electrically connected to the third terminal of the first switching unit, the second input terminal of the comparison module is electrically connected to an external device, the control terminal of the comparison module is electrically connected to the control terminal of the first switching unit, and the output terminal of the comparison module is electrically connected to the control terminal of the multiplexing module; the comparison module is used to generate a third signal based on a first signal and a second signal when the electrical connection between the data transmission mode control module and the data transmission module is disconnected, and the first terminal of the first switching unit or the second terminal of the first switching unit is electrically connected to the third terminal of the first switching unit.
[0011] According to an embodiment of this application, the data communication system further includes: a data processing module; the data processing module is electrically connected to a first end of the multiplexing module, and the second end of the multiplexing module is electrically connected to a first control module; the data processing module is used to: send data to the multiplexing module when the first end of the multiplexing module is electrically connected to the second end of the multiplexing module, so as to forward the data to an external device through the first control module and the data transmission module.
[0012] According to an embodiment of this application, the data processing module is also electrically connected to the output unit in the electronic device, and the data processing module is further configured to: generate a first wake-up signal and send it to the output unit when the first end of the multiplexing module is electrically connected to the second end of the multiplexing module.
[0013] According to an embodiment of this application, the output unit is configured to be electrically connected to the third terminal of the multiplexing module; the first control module is further configured to: generate a second wake-up signal and send it to the output unit when the second terminal of the multiplexing module is electrically connected to the third terminal of the multiplexing module, so that the output unit performs the action indicated by the second wake-up signal.
[0014] A second aspect of this application provides an electronic device including a data communication system as described in any of the embodiments above.
[0015] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description
[0016] The above-mentioned contents, other objects, features and advantages of this application will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0017] Figure 1 This diagram schematically illustrates the overall architecture of a data communication system according to an embodiment of this application.
[0018] Figure 2 The schematic diagram illustrates a portion of the circuit structure of the first control module according to an embodiment of this application;
[0019] Figure 3 The schematic diagram illustrates a specific structure of a data communication system according to an embodiment of this application;
[0020] Figure 4 This illustration schematically shows a signal flow diagram of a data communication system according to an embodiment of the present application;
[0021] Figure 5 This illustration shows another signal flow diagram of a data communication system according to an embodiment of this application. Detailed Implementation
[0022] The embodiments of this application will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of this application. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of this application for ease of explanation. However, it will be apparent that one or more embodiments may be implemented without these specific details. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of this application.
[0023] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0024] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0025] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).
[0026] Thicker data interfaces like HDMI or DP are insufficient for the slim and lightweight design requirements of electronic devices. Thinner interfaces, such as Universal Serial Bus Type-C (Type-C), can be used to achieve data transmission. However, this approach requires a thinner interface to enable the electronic device to receive and transmit multiple data types—that is, to have full-function input and output capabilities. Full-function input means the device can receive multiple data types, and full-function output means it can send multiple data types to external devices. The data communication system of this application not only clarifies the data transmission direction between the electronic device and external devices but also specifies the type of data transmitted. Therefore, this data communication system solves the aforementioned problems, accurately determining the data transmission direction with a single data transmission interface and enabling the electronic device to have full-function input and output capabilities.
[0027] Figure 1 The diagram illustrates the overall architecture of a data communication system according to an embodiment of this application.
[0028] The data communication system described in this application can be applied to electronic devices, specifically in scenarios where electronic devices communicate with external devices. For example, an electronic device can transmit data to an external device via the data communication system, and data output by the external device can also be transmitted back to the electronic device for display via the data communication system. The electronic device can be an all-in-one machine that combines display and data output functions, such as... Figure 1As shown, the data communication system includes: a first control module 103, a data transmission module 104, and a multiplexing module 102; the first control module is used to generate a first signal indicating the data role of the electronic device in the data transmission process; the first end of the data transmission module is electrically connected to the first control module, the second end of the data transmission module is electrically connected to the external device 105, and the third end of the data transmission module is electrically connected to the control end of the multiplexing module; the data transmission module is used to: receive the first signal sent by the first control module through the first end of the data transmission module, receive the second signal sent by the external device through the second end of the data transmission module, and generate a third signal indicating the data transmission direction based on the first and second signals, and send the third signal to the multiplexing module through the third end of the data transmission module; wherein, the second signal is used to indicate the data role of the external device in the data transmission process; the multiplexing module is used to: determine the data transmission direction between the electronic device and the external device based on the third signal.
[0029] According to an embodiment of this application, the data transmission module can generate a third signal indicating the data transmission direction based on the respective data roles of the electronic device and the external device in the data transmission process, and send the third signal to the multiplexing module. The multiplexing module then determines the corresponding data transmission path based on the third signal, that is, determines the data transmission direction between the electronic device and the external device, so that the electronic device can successfully receive data sent by the external device and successfully send data to the external device, avoiding the problem of data crosstalk and congestion, and improving communication reliability.
[0030] In some embodiments, such as Figure 1 As shown, the data communication system also includes a data processing module 101; the data processing module is electrically connected to the first end of the multiplexing module, and the second end of the multiplexing module is electrically connected to the first control module; the data processing module is used to: send data to the multiplexing module when the first end of the multiplexing module is electrically connected to the second end of the multiplexing module, so as to forward the data to an external device through the first control module and the data transmission module.
[0031] According to an embodiment of this application, when the data processing module is electrically connected to the first control module through a multiplexing module, the data processing module sends data to an external device to achieve data output.
[0032] Furthermore, the data processing module is electrically connected to the output unit 106 of the electronic device. The data processing module is also used to generate a first wake-up signal and send it to the output unit when the first terminal of the multiplexing module is electrically connected to the second terminal of the multiplexing module. That is, when the data processing module is electrically connected to the first control module through the multiplexing module, the data processing module generates the first wake-up signal and sends it to the output unit, causing the output unit to perform the action indicated by the first wake-up signal. The output unit may include a video output unit and an audio output unit.
[0033] According to an embodiment of this application, when the data processing module is electrically connected to the first control module through a multiplexing module, waking up the output unit through the data processing module can prevent the output unit from being in a working state for a long time, reduce the power consumption of the electronic device, and reduce unnecessary power loss.
[0034] In some embodiments, the output unit is configured to be electrically connected to the third terminal of the multiplexing module; the first control module is further configured to: generate a second wake-up signal and send it to the output unit when the second terminal of the multiplexing module is electrically connected to the third terminal of the multiplexing module, so that the output unit performs the action indicated by the second wake-up signal.
[0035] Furthermore, when the first control module is electrically connected to the output unit through a multiplexing module, in other words, when an external device sends data to the electronic device, or when the electronic device receives data sent by the external device, the first control module generates a second wake-up signal based on the data sent by the external device and sends the second wake-up signal to the output unit, causing the output unit to perform the action indicated by the second wake-up signal, thereby displaying the data information sent by the external device through the output unit of the electronic device.
[0036] According to an embodiment of this application, when the first control module is electrically connected to the output unit through a multiplexing module, the output unit is made to perform the action indicated by the second wake-up signal through the second wake-up signal, which is beneficial for the output unit to receive and display the data sent to the electronic device by the external device in a timely manner.
[0037] Figure 2 The schematic diagram illustrates a portion of the circuit structure of the first control module according to an embodiment of this application.
[0038] like Figure 2As shown, the first control module 201 includes a power role control module 2011 and a data role control module 2012; the output terminal of the data role control module is electrically connected to the first terminal of the data transmission module, and the output terminal of the power role control module is electrically connected to the control terminal of the data role control module; the power role control module is used to generate a control signal and send it to the control terminal of the data role control module to control the data role control module to generate a first signal.
[0039] Furthermore, the power role control module 2011 can generate a control signal based on the power status of the electronic device. The power status can refer to the remaining battery power or the power output of the electronic device. For example, if the remaining battery power of the electronic device is greater than a threshold or the power output of the electronic device is greater than the power output of the external device, the power role control module generates a control signal and sends it to the data role control module. The data role control module generates a first signal based on this control signal, indicating that the data role of the electronic device is that of a data provider. In this case, if the second signal indicates that the data role of the external device is that of a data receiver, then it can be finally determined that the data role of the electronic device is that of a data provider, and the data role of the external device is that of a data receiver. That is, the electronic device sends data to the external device 203, achieving full-function output. If, in this case, the data role of the external device indicated by the second signal is also that of a data provider... If the data transmission module 202 generates a third signal based on the first and second signals, it cannot indicate the data transmission direction. In other words, the electrical connection between the first and second terminals of the multiplexing module 204 is broken, and the electrical connection between the second and third terminals of the multiplexing module is also broken. In this case, the power role control module regenerates a control signal and sends it to the data role control module. The data role control module regenerates a first signal based on the regenerated control signal. The regenerated first signal indicates that the data role of the electronic device is the data receiving role. The data transmission module generates a third signal based on the second signal and the regenerated first signal. The third signal indicates that the external device sends data to the electronic device. Therefore, the final determined data role of the electronic device is the data receiving role, and the data role of the external device is the data providing role.
[0040] Furthermore, if the remaining battery power of the electronic device is less than a threshold or the power consumption of the electronic device is less than that of the external device, the first signal generated based on the control signal may indicate that the data role of the electronic device is to receive data. If, in this case, the second signal indicates that the data role of the external device is also to receive data, then the third signal generated by the multiplexing module cannot indicate the data transmission direction. In other words, the third signal in this case indicates that the electronic device neither sends nor receives data to the external device. In this situation, the power role control module regenerates a control signal and sends the regenerated control signal to the data role control module. The data role control module regenerates the first signal based on the regenerated control signal. The regenerated first signal indicates that the data role of the electronic device is to provide data. The data transmission module generates a third signal based on the second signal and the regenerated first signal. The third signal indicates that the electronic device sends data to the external device. That is, the final determined data role of the electronic device is to provide data, and the data role of the external device is to receive data.
[0041] According to the embodiments of this application, the data role of the electronic device in the data transmission process is determined based on the control signal generated by the power role control module, which can avoid timing conflicts between power role negotiation and data role negotiation, thereby reducing the data transmission error rate and improving communication stability.
[0042] Further, the data role control module 2012 includes: a first switch unit 2013, a first resistor R1, and a second resistor R2; the first end of the first resistor is connected to a first preset level, and the second end of the first resistor is electrically connected to the first end of the first switch unit; the first end of the second resistor is connected to a second preset level, and the second end of the second resistor is electrically connected to the second end of the first switch unit; the third end of the first switch unit is electrically connected to the first end of the data transmission module 202, the fourth end of the first switch unit is unloaded, and the control end of the first switch unit is electrically connected to the output end of the power role control module; the first switch unit is configured to control the first end, the second end, or the fourth end of the first switch unit to be electrically connected to the third end of the first switch unit according to the control signal.
[0043] Furthermore, the first preset level is a high level VDD, and the second preset level is a low level. For example, the first terminal of the second resistor can be grounded. The first switching unit can be a single-pole three-throw switch with a control terminal. The first terminal of the first switching unit is electrically connected to the third terminal of the first switching unit. In other words, the first terminal of the data transmission module 202 is pulled up to a high level. The second terminal of the first switching unit is electrically connected to the third terminal of the first switching unit. That is, the first terminal of the data transmission module is pulled down to a low level. The fourth terminal of the first switching unit is electrically connected to the third terminal of the first switching unit. That is, the first terminal of the data transmission module is connected to an unloaded state, that is, the data role control module 2012 is in a disabled state and is not allowed to work.
[0044] Furthermore, when the first terminal of the first switching unit is electrically connected to the third terminal of the first switching unit, and the level value of the first signal is greater than the level value of the second signal, the data role of the electronic device is to provide data, and the data role of the external device is to receive data; when the second terminal of the first switching unit is electrically connected to the third terminal of the first switching unit, and the level value of the first signal is less than the level value of the second signal, the data role of the electronic device is to receive data, and the data role of the external device is to provide data.
[0045] According to an embodiment of this application, the control terminal of the first switching unit receives a control signal. Based on the control signal, the first terminal of the data transmission module can be connected to a first preset level through a first resistor, or connected to a second preset level through a second resistor, or connected to an unloaded state, thereby disabling the data role control module. The different connection methods can determine the level signal of the first terminal of the data transmission module. Combined with the second signal received by the second terminal of the data transmission module, the data transmission direction can be further determined. In this way, the data transmission method can be accurately determined, which is beneficial for enabling electronic devices and peripherals to quickly achieve data interaction.
[0046] like Figure 2As shown, the first control module further includes: a second switch unit 2015 and a data transmission mode control module 2014; the first end of the second switch unit is electrically connected to the data transmission mode control module, the second end of the second switch unit is electrically connected to the first end of the data transmission module, and the control end of the second switch unit is electrically connected to the output end of the power supply control module; the second switch unit is configured to control the data transmission mode control module to electrically connect or disconnect from the data transmission module according to a control signal; the data transmission mode control module is used to: when the first end of the first switch unit is electrically connected to the third end of the first switch unit, and the level value of the first signal is greater than the level value of the second signal, determine the data type of the data to be transmitted according to a fourth signal from the external device, wherein the fourth signal is used to indicate the data transmission mode of the external device; or, when the second end of the first switch unit is electrically connected to the third end of the first switch unit, and the level value of the first signal is less than the level value of the second signal, generate a fifth signal and send it to the external device through the data transmission module, wherein the fifth signal is used to indicate the data transmission mode of the electronic device.
[0047] Specifically, the control signals output by the power supply control module are binary encoded signals. For example, a control signal of 00 indicates that the first terminal of the first switch unit is electrically connected to the third terminal of the first switch unit, and the electrical connection between the data transmission mode control module and the data transmission module is disconnected; a control signal of 01 indicates that the second terminal of the first switch unit is electrically connected to the third terminal of the first switch unit, and the electrical connection between the data transmission mode control module and the data transmission module is disconnected; a control signal of 10 indicates that the fourth terminal of the first switch unit is electrically connected to the third terminal of the first switch unit, and the data transmission mode control module and the data transmission module are electrically connected; a control signal of 11 indicates that the fourth terminal of the first switch unit is electrically connected to the third terminal of the first switch unit, and the electrical connection between the data transmission mode control module and the data transmission module is disconnected.
[0048] The control signals generated by the power role control module are used to first electrically connect the first terminal or the second terminal of the first switch unit to the third terminal of the first switch unit, and to disconnect the electrical connection between the first terminal and the second terminal of the second switch unit (i.e., to disconnect the electrical connection between the data transmission mode control module and the data transmission module). In this case, the data role of the electronic device is determined. After determining the data roles of the electronic device and the external device, the control signals are also used to electrically connect the fourth terminal of the first switch unit to the third terminal of the first switch unit (even if the data role control module is in a disabled state), and to electrically connect the first terminal of the second switch unit to the second terminal of the second switch unit, i.e., to electrically connect the data transmission mode control module and the data transmission module. In this way, the data type, or data mode, to be transmitted is determined. Data types include Universal Serial Bus (USB) data and DP data. When the data transmission mode is also determined, the control signals are also used to electrically connect the fourth terminal of the first switch unit to the third terminal of the first switch unit, and to disconnect the electrical connection between the first terminal and the second terminal of the second switch unit. Furthermore, the third terminal of the data transmission interface is configured to be electrically connected to the first control module, and the fourth terminal of the data transmission interface is configured to be electrically connected to an external device. When the electronic device and the external device are transmitting data, the third terminal of the data transmission interface is electrically connected to the fourth terminal of the data transmission interface, thereby enabling the data to be transmitted (or the data to be transmitted) to be transmitted to the electronic device or the external device through the data transmission interface. Furthermore, the second terminal of the second switching unit is electrically connected to the data transmission module through the second terminal of the data transmission interface.
[0049] For example, when an electronic device is sending data, if the fourth signal received by the data transmission mode control module indicates that the data type the external device can receive is of type one, then the data type sent by the electronic device is type one. When the electronic device is receiving data, the data transmission mode control module generates a fifth signal based on the data type the electronic device can receive and sends it to the external device. Assuming the data type the electronic device can receive is type two, if the external device can send the data type indicated by the fifth signal, then the data type sent by the external device is type two. Type one can be USB, DP, or both USB and DP. Type two can be USB, DP, or both USB and DP.
[0050] According to an embodiment of this application, when the data transmission module is electrically connected to the data transmission mode control module via the second switching unit, if the electronic device is providing data, the data transmission mode control module can receive a fourth signal sent by the peripheral device and determine the data type of the data to be transmitted based on the data type transmitted by the peripheral device indicated by the fourth signal. If the electronic device is receiving data, the data transmission mode control module generates a fifth signal indicating the data transmission mode of the electronic device and sends it to the peripheral device, so that the data transmission mode indicated by the fifth signal is used as the data transmission mode of the data to be transmitted. In this way, during data interaction between the electronic device and the external device, the data mode that the receiving party can transmit can be used as the mode of the data transmitted during the data interaction, thereby reducing the bit error rate and improving communication quality.
[0051] In some embodiments, the data role control module is configured to: when the data transmission mode control module and the data transmission module are electrically connected, control the fourth terminal of the first switch unit to be electrically connected to the third terminal of the first switch unit according to a control signal; or, when the electrical connection between the data transmission mode control module and the data transmission module is disconnected, control the first terminal of the first switch unit or the second terminal of the first switch unit to be electrically connected to the third terminal of the first switch unit according to a control signal.
[0052] According to the embodiments of this application, when the data transmission mode control module and the data transmission module are electrically connected, disconnecting the electrical connection between the data role control module and the data transmission module, or when the data role control module and the data transmission module are electrically connected, disconnecting the electrical connection between the data transmission mode control module and the data transmission module, can avoid signal crosstalk caused by the data transmission mode control module and the data role control module being electrically connected to the data transmission module respectively, thereby improving the signal transmission quality.
[0053] In some embodiments, the data transmission module includes a comparison module; a first input terminal of the comparison module is electrically connected to a third terminal of the first switching unit, a second input terminal of the comparison module is electrically connected to an external device, a control terminal of the comparison module is electrically connected to a control terminal of the first switching unit, and an output terminal of the comparison module is electrically connected to a control terminal of the multiplexing module; the comparison module is used to generate a third signal based on a first signal and a second signal when the electrical connection between the data transmission mode control module and the data transmission module is disconnected, and the first terminal of the first switching unit or the second terminal of the first switching unit is electrically connected to the third terminal of the first switching unit.
[0054] The data transmission module may also include a data transmission interface, such as a Type-C interface or an interface that supports role negotiation. The comparison module is electrically connected to the external device through the data transmission interface. Specifically, the second input terminal of the comparison module is electrically connected to the external device through the first terminal of the data transmission interface. The first control module is electrically connected to the comparison module through the data transmission interface. Specifically, the third terminal of the first switching unit is electrically connected to the first input terminal of the comparison module through the second terminal of the data transmission interface. In this way, the second signal from the external device can be transmitted to the second input terminal of the comparison module through the data transmission interface, and the first signal from the first control module can also be transmitted to the second input terminal of the comparison module through the data transmission interface.
[0055] According to an embodiment of this application, when the data transmission mode control module is disconnected from the data transmission module and the data role control module is electrically connected to the data transmission module, the comparison module is used to generate a third signal based on the first signal and the second signal; in this way, the third signal can be generated by comparing the level value of the first signal with the level value of the second signal to accurately determine the data transmission direction.
[0056] Figure 3 The illustration shows a schematic diagram of the specific structure of a data communication system according to an embodiment of this application.
[0057] like Figure 3 As shown, during the data interaction between the electronic device and the external device 305, the data to be transmitted is transmitted to the electronic device or the external device through the data transmission interface in the data transmission module. Specifically, the data processing module 301 further includes a first USB data interface, a second USB data interface, a first display interface, and a second display interface. The multiplexing module includes a first multiplexer 3021 and a second multiplexer 3022. The first terminal of the first multiplexer is electrically connected to the data processing module 301 via bus A, the second terminal of the first multiplexer is electrically connected to the first control module via bus C, and the third terminal of the first multiplexer is electrically connected to the output unit via bus B1. The first multiplexer also includes a first control signal interface. The first terminal of the second multiplexer is electrically connected to the data processing module via bus A, the second terminal of the second multiplexer is electrically connected to the first control module via bus C, and the third terminal of the second multiplexer is electrically connected to the output unit via bus B2. The output unit includes a video output unit 310 and an audio output unit 311. The video output unit can be an output component including a display screen or a projector, and the audio output unit can be a speaker, etc. The first control module 303 also includes a third USB data interface, a third display interface, a first general-purpose input / output interface, a second general-purpose input / output interface, a signal transmitting end and a receiving end (or signal transmitting / receiving end), and a second signal processing module 306.
[0058] The third terminal of the data transmission interface 304 is electrically connected to the second signal processing module, and the fourth terminal of the data transmission interface is electrically connected to the external device 305. The second signal processing module is also electrically connected to the signal transmitting / receiving end. The first general-purpose input / output interface is electrically connected to the first control signal interface, and the second general-purpose input / output interface is electrically connected to the second control signal interface. Data in the third USB data interface can be transmitted on bus C, and data in the third display interface can also be transmitted on bus C. Bus C can refer to the Type-C bus. Data on bus B1 can be transmitted to the audio output unit and the video output unit through the interface expansion module 309. The module can be a USB 3.0 hub, which can connect multiple devices, such as a display screen, speakers, and a projector. Bus B1 can be the bus of the USB 3.0 hub. Data on bus B2 can be transmitted to the display controller 308 via the first signal processing module 307, and then to the video output unit 310 via the display controller. The first signal processing module can be a display interface driver, used to compensate for the signals transmitted on bus B2 to ensure the reliability of the signals received by the display controller. Bus B2 can be the bus of the motherboard screen of the electronic device. The display controller is used to receive wake-up signals from the data processing module or the first control module, convert the wake-up signals into wake-up commands, and send the wake-up commands to the video output unit. The wake-up command can be a screen-on command for the display screen.
[0059] The first display interface is configured to be electrically connected to bus A, and the first USB data interface is configured to be electrically connected to bus A, which can be a Central Processing Unit (CPU) bus, i.e., a CPU bus. The second display interface is also electrically connected to the display controller, and the second USB data interface is electrically connected to the interface expansion module. The first, second, and third USB data interfaces are used to transmit USB type data, and the first, second, and third display interfaces are used to transmit DP type data.
[0060] Figure 4 The diagram illustrates a signal flow pattern of a data communication system according to an embodiment of this application.
[0061] like Figure 4As shown in the figure, this diagram illustrates the data transmission process in a data communication system when an electronic device receives data. Specifically, the external device 405 sends the data to be transmitted to the second signal processing module 406 via the data transmission interface 404. The second signal processing module performs shaping, amplification, and compensation on the data to be transmitted to ensure the quality of the data and extend the effective transmission distance. Then, it sends the processed data to be transmitted to the signal transmitting / receiving end of the first control module 403. If the data transmission mode of the electronic device indicated by the fifth signal is USB mode, the external device, upon receiving the fifth signal, selects to send the USB type data to be transmitted to the first control module, meaning the type of data to be transmitted is USB. If the data transmission mode of the electronic device indicated by the fifth signal is DP mode, the type of data to be transmitted is DP data. If the data transmission mode of the electronic device indicated by the fifth signal is both USB and DP modes, the types of data to be transmitted include both USB and DP data.
[0062] Taking USB data and DP data as examples, when the electronic device is in the role of receiving data, the third signal indicates that the electronic device is to receive the data to be transmitted. The comparison module in the data transmission module sends the third signal to the first control signal interface of the first multiplexer 4021 through the first general-purpose input / output interface of the first control module. In another embodiment, the third signal generated by the comparison module can also be directly sent to the first control signal interface of the first multiplexer. Both methods can electrically connect the second terminal of the first multiplexer to the third terminal of the first multiplexer, and send the third signal to the second control signal interface of the second multiplexer 4022 through the second general-purpose input / output interface of the first control module. In another embodiment, the third signal generated by the comparison module can also be directly sent to the second control signal interface of the second multiplexer. Both methods can electrically connect the second terminal of the second multiplexer to the third terminal of the second multiplexer. Therefore, the signal transmitting / receiving end sends the USB data from the data to be transmitted to the third USB data interface. The USB data is then transmitted to bus C via the third USB data interface, and then to the second terminal of the first multiplexer 4021 via bus C. From there, it is transmitted to the third terminal of the first multiplexer, and then to bus B1 via the third terminal. Bus B1 then sends the USB data to the data transmission port expansion module 409, which in turn sends the USB data to the video output unit 410 or the audio output unit 411. In this way, when the electronic device is used as a display, it can still operate its own devices, thus achieving the effect of device expansion. For example, when the electronic device is used as a display, i.e., when it receives data from an external device, the USB data sent by the external device can be transmitted to the output unit for display. Furthermore, the display screen, camera, and other devices within the electronic device can all be turned on. This is equivalent to not only expanding the display screen for external devices but also expanding other devices such as cameras, improving the scalability of the entire interactive system.
[0063] The signal transmitting / receiving end sends the DP data from the data to be transmitted to the second terminal of the second multiplexer through the third display interface, that is, through bus C to the second terminal of the second multiplexer. Then, through the second terminal of the second multiplexer, the DP data is sent to the third terminal of the second multiplexer, that is, through bus B2. The third terminal of the second multiplexer then sends the DP data to the first signal processing module 407, so that the first signal processing module compensates for the DP data. The compensated DP data is transmitted to the video output unit through the display controller 408, thereby displaying the DP data on the video output unit. The first signal processing module can be a display interface re-driver.
[0064] The data transmitted from the first control module to the second multiplexer through the third display interface is DP data, which can be considered as the second wake-up signal. In other words, the first control module can generate the second wake-up signal and send it to the second multiplexer. After processing the second wake-up signal, the first signal processing module sends the processed signal to the display controller 408. The display controller generates a corresponding wake-up command (second wake-up command) based on the second wake-up signal and sends it to the video output unit. The video output unit can execute the action indicated by the second wake-up command, such as turning on the screen of the display.
[0065] Furthermore, the third terminal of the data transmission module is electrically connected to the control terminal of the third switch unit via the second control module. The first terminal of the third control unit is electrically connected to the power module, and the second terminal of the third control unit is electrically connected to the data processing module. The second control module receives the third signal sent by the data transmission module, generates a switch control signal based on the third signal, and sends the switch control signal to the control terminal of the third switch unit. The third switch unit controls the first terminal of the third switch unit to connect electrically with the second terminal of the third switch unit or controls the electrical connection between the first terminal of the third switch unit and the second terminal of the third switch unit to disconnect, thereby realizing the power-on and power-off of the data processing module. For example, when the third signal indicates that the electronic device is receiving data sent by an external device, the third switch unit controls the electrical connection between the first terminal of the third switch unit and the second terminal of the third switch unit to disconnect according to the switch control signal, and the power module does not supply power to the data processing module; when the third signal indicates that the electronic device is sending data to an external device, the third switch unit controls the first terminal of the third switch unit to connect electrically according to the switch control signal, so that the power module supplies power to the data processing module. The data processing module can be a system on chip (SOC) or a central processing unit (CPU).
[0066] Figure 5 This illustration shows another signal flow diagram of a data communication system according to an embodiment of this application.
[0067] like Figure 5 As shown in the figure, this diagram illustrates the data transmission process in a data communication system when an electronic device is sending data. Specifically, in this case, if the fourth signal received by the data transmission mode control module in the first control module indicates that the data transmission mode of the external device is USB mode, then the type of data to be transmitted is USB type. If the fourth signal indicates that the data transmission mode of the external device is DP mode, then the type of data to be transmitted is DP type. If the fourth signal indicates that the external device can transmit both USB and DP data, then the type of data to be transmitted can include both USB and DP types.
[0068] Taking USB as an example, the USB data transmitted by the external device is transmitted to bus A through the first USB data interface, and then from bus A to the first terminal of the first multiplexer 5021. The data transmission module generates a third signal based on the first and second signals, and sends the third signal to the multiplexer. In this case, the third signal instructs the electronic device to send data to the external device. Specifically, the data transmission module sends the third signal to the first control signal interface of the first multiplexer through the first general-purpose input / output interface of the first control module 503. In another embodiment, the data transmission module can also directly transmit the third signal. The signal is sent to the first control signal interface of the first multiplexer. Both of these methods can electrically connect the first terminal of the first multiplexer to the second terminal of the first multiplexer. The USB data of the data processing module is then transmitted from the first terminal of the first multiplexer to the second terminal of the first multiplexer, and then transmitted to the third USB data interface of the first control module via bus C. The signal transmitting / receiving end receives the USB data sent by the third USB data interface and forwards it to the second signal processing module 506. The second signal processing module performs shaping, amplification, compensation and other operations on the received USB data, and sends the processed USB data to the external device through the data transmission interface.
[0069] Taking the data type that the external device can transmit as DP type as an example, the data transmission module is also used to send the third signal to the second control signal interface of the second multiplexer 5022 through the second general-purpose input / output interface. In another embodiment, the data transmission interface is used to send the third signal directly to the second control signal interface of the second multiplexer. Both methods can make the first end of the second multiplexer electrically connected to the second end of the second multiplexer. Thus, after the DP data of the data processing module is sent to bus A through the first display interface, it is then transmitted to the first end of the second multiplexer through bus A. Then, the first end of the second multiplexer transmits the DP data to bus C through the second end of the second multiplexer. The DP data is then sent to the third display interface of the first control module through bus C. The third display interface then sends the DP data to the second signal processing module 506 through the signal transmitting / receiving end. After processing by the second signal processing module, the DP data is sent to the external device 505 through the data transmission interface 504.
[0070] When the electronic device sends data to an external device, or when the electronic device's data role is to provide data, the data processing unit generates a first wake-up signal and sends it to the display controller 507. The first wake-up signal can be Embedded DisplayPort (EDP) data. The display controller generates a first wake-up command based on the first wake-up signal and sends it to the video output unit 509. The video output unit executes the action indicated by the first wake-up command, such as lighting up the screen of the electronic device. The second USB data interface of the data processing unit is used to send the USB data of the data processing unit to the data transmission port expansion module 508, so that the USB data can be transmitted to other devices of the electronic device through the data transmission port expansion module, such as the audio output unit 510 and other video output units. In this way, while the electronic device is sending data to an external device, the electronic device can also control the use of devices such as the output unit based on the USB data transmitted by the second USB data interface.
[0071] This application also provides an electronic device, which includes the data communication system of the embodiments of this application.
[0072] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.
[0073] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0074] Those skilled in the art will understand that the features described in the various embodiments of this application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this application. In particular, the features described in the various embodiments of this application can be combined and / or combined in various ways without departing from the spirit and teachings of this application. All such combinations and / or combinations fall within the scope of this application.
Claims
1. A data communication system applied to electronic devices, characterized in that, include: The system comprises a first control module, a data transmission module, and a multiplexing module. The first control module is used to generate a first signal indicating the data role of the electronic device during data transmission; The first end of the data transmission module is electrically connected to the first control module, the second end of the data transmission module is electrically connected to an external device, and the third end of the data transmission module is electrically connected to the control end of the multiplexing module. The data transmission module is used to: receive a first signal sent by the first control module through a first terminal of the data transmission module, receive a second signal sent by the external device through a second terminal of the data transmission module, generate a third signal indicating the direction of data transmission based on the first signal and the second signal, and send the third signal to the multiplexing module through a third terminal of the data transmission module; wherein, the second signal is used to indicate the data role of the external device in the data transmission process; The multiplexing module is used to: determine the data transmission direction between the electronic device and the external device based on the third signal.
2. The data communication system according to claim 1, characterized in that, The first control module includes: a power role control module and a data role control module; The output terminal of the data role control module is electrically connected to the first terminal of the data transmission module, and the output terminal of the power role control module is electrically connected to the control terminal of the data role control module. The power role control module is used to: generate a control signal and send it to the control terminal of the data role control module to control the data role control module to generate the first signal.
3. The data communication system according to claim 2, characterized in that, The data role control module includes: a first switch unit, a first resistor, and a second resistor; The first end of the first resistor is connected to a first preset level, and the second end of the first resistor is electrically connected to the first end of the first switching unit. The first end of the second resistor is connected to a second preset level, and the second end of the second resistor is electrically connected to the second end of the first switching unit. The third terminal of the first switching unit is electrically connected to the first terminal of the data transmission module, the fourth terminal of the first switching unit is unloaded, and the control terminal of the first switching unit is electrically connected to the output terminal of the power supply role control module. The first switching unit is configured to control the first terminal, the second terminal, or the fourth terminal of the first switching unit to be electrically connected to the third terminal of the first switching unit according to the control signal.
4. The data communication system according to claim 3, characterized in that, The first control module further includes: a second switching unit and a data transmission mode control module; The first end of the second switch unit is electrically connected to the data transmission mode control module, the second end of the second switch unit is electrically connected to the first end of the data transmission module, and the control end of the second switch unit is electrically connected to the output end of the power supply role control module; the second switch unit is configured to control the data transmission mode control module to be electrically connected or disconnected from the data transmission module according to the control signal. The data transmission mode control module is configured to: determine the data type of the data to be transmitted based on a fourth signal from the external device when the first terminal of the first switch unit is electrically connected to the third terminal of the first switch unit and the level value of the first signal is greater than the level value of the second signal; wherein the fourth signal is used to indicate the data transmission mode of the external device; or, when the second terminal of the first switch unit is electrically connected to the third terminal of the first switch unit and the level value of the first signal is less than the level value of the second signal, generate a fifth signal and send it to the external device through the data transmission module, wherein the fifth signal is used to indicate the data transmission mode of the electronic device.
5. The data communication system according to claim 4, characterized in that, The data role control module is used to: when the data transmission mode control module is electrically connected to the data transmission module, control the fourth terminal of the first switch unit to be electrically connected to the third terminal of the first switch unit according to the control signal; or, when the electrical connection between the data transmission mode control module and the data transmission module is disconnected, control the first terminal of the first switch unit or the second terminal of the first switch unit to be electrically connected to the third terminal of the first switch unit according to the control signal.
6. The data communication system according to claim 5, characterized in that, The data transmission module includes a comparison module; The first input terminal of the comparison module is electrically connected to the third terminal of the first switching unit, the second input terminal of the comparison module is electrically connected to the external device, the control terminal of the comparison module is electrically connected to the control terminal of the first switching unit, and the output terminal of the comparison module is electrically connected to the control terminal of the multiplexing module. The comparison module is used to generate the third signal based on the first signal and the second signal when the electrical connection between the data transmission mode control module and the data transmission module is disconnected and the first terminal of the first switch unit or the second terminal of the first switch unit is electrically connected to the third terminal of the first switch unit.
7. The data communication system according to claim 1, characterized in that, The data communication system further includes: a data processing module; The data processing module is electrically connected to the first terminal of the multiplexing module, and the second terminal of the multiplexing module is electrically connected to the first control module. The data processing module is used to: send data to the multiplexing module when the first end of the multiplexing module is electrically connected to the second end of the multiplexing module, so as to forward the data to the external device through the first control module and the data transmission module.
8. The data communication system according to claim 7, characterized in that, The data processing module is also electrically connected to the output unit in the electronic device. The data processing module is also used to generate a first wake-up signal and send it to the output unit when the first end of the multiplexing module is electrically connected to the second end of the multiplexing module.
9. The data communication system according to claim 8, characterized in that, The output unit is configured For electrical connection with the third terminal of the multiplexing module; The first control module is further configured to: generate a second wake-up signal and send it to the output unit when the second terminal of the multiplexing module is electrically connected to the third terminal of the multiplexing module, so that the output unit performs the action indicated by the second wake-up signal.
10. An electronic device, characterized in that, The electronic device includes the data communication system according to any one of claims 1-9.
