Data transmission method and device and docking station
By obtaining the initial transmission mode and external device information of the expansion dock, the data transmission mode is dynamically adjusted to adapt to different devices, which solves the problem of poor compatibility of the expansion dock and improves the data transmission quality and display effect.
Patent Information
- Application Number
- CN202410361709.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2025-09-30
AI Technical Summary
The expansion dock has poor compatibility with different types of external devices, resulting in poor data transmission quality, especially affecting the display effect of the display device.
By obtaining the initial transmission mode after the docking station is connected to the host and the device information of the external device, the data transmission mode of the interface is determined to adapt to different external devices and improve compatibility.
The data transmission quality of the expansion dock to different external devices is improved, especially ensuring the display effects of multiple display devices and avoiding the deterioration of display effects due to halving the bandwidth.
Smart Images

Figure CN120723019A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission method, device and docking station. Background Art
[0002] A docking station is an interface expansion device that enables a one-stop connection between a host computer and multiple external devices (such as power adapters and display devices). As more and more external devices support Type-C interfaces, docking stations also include Universal Serial Bus (USB) hubs to expand a single USB Type-C interface into multiple ones.
[0003] In actual applications, expansion docks usually use a fixed data transmission mode to transmit data to connected external devices. However, different types of external devices are adapted to different data transmission modes, resulting in poor compatibility of the expansion docks for different types of external devices, affecting the data transmission quality of the external devices. Summary of the Invention
[0004] Based on this, it is necessary to provide a data transmission method, device and expansion dock to address the above technical problems.
[0005] In a first aspect, the present application provides a data transmission method, comprising:
[0006] Obtaining an initial transmission mode after the docking station is connected to the host; and obtaining device information of an external device connected to at least one interface on the docking station;
[0007] The data transmission mode of the interface is determined according to the initial transmission mode and the device information of the external device, so as to instruct the host to perform data transmission to the connected external device through the data transmission mode of the interface.
[0008] In one embodiment, determining the data transmission mode of the interface according to the initial transmission mode and device information of the external device includes:
[0009] determining a device type of the external device according to device information of the external device;
[0010] The data transmission mode of the interface is determined based on the device type and initial transmission mode of the external device.
[0011] In one embodiment, determining the data transmission mode of the interface according to the device type and the initial transmission mode of the external device includes:
[0012] determining an adapted transmission mode for the external device according to a device type of the external device;
[0013] For external devices, the data transmission mode of the corresponding interface is determined according to the adapted transmission mode and the initial transmission mode.
[0014] In one embodiment, determining an adapted transmission mode of the external device according to the device type of the external device includes:
[0015] Determine the data transmission requirements of the external device according to the device type of the external device;
[0016] Determine the adapted transmission mode of the external device according to the data transmission requirements of the external device.
[0017] In one embodiment, determining the data transmission requirement of the external device according to the device type of the external device includes:
[0018] In a case where the external device is a non-display device, determining that the data transmission requirement of the external device is a low data transmission amount;
[0019] In the case that the external device is a display device, the number of transmission channels is obtained from the device information of the external device, and the data transmission requirement is determined according to the number of transmission channels.
[0020] In one embodiment, determining the data transmission requirement based on the number of transmission channels includes:
[0021] When the number of transmission channels is less than a preset number, determining that the data transmission demand is a low data transmission volume;
[0022] When the number of transmission channels is greater than or equal to a preset number, the data transmission requirement is determined to be a high data transmission volume; and the high data transmission volume is greater than the low data transmission volume.
[0023] In one embodiment, the adapted transmission mode includes a first display data transmission mode and a second display data transmission mode; the data transmission volume of the second display data transmission mode is greater than that of the first display data transmission mode; and determining the adapted transmission mode of the external device according to the data transmission requirements of the external device includes:
[0024] When the data transmission requirement of the external device is a low data transmission volume, determining the adapted transmission mode to be the first display data transmission mode;
[0025] When the data transmission requirement of the external device is a high data transmission volume, the adapted transmission mode is determined to be the second display data transmission mode.
[0026] In one embodiment, determining the data transmission mode of the corresponding interface according to the adapted transmission mode and the initial transmission mode includes:
[0027] When the adapted transmission mode is the same as the initial transmission mode, the initial transmission mode is maintained as the data transmission mode of the corresponding interface;
[0028] When the adapted transmission mode is different from the initial transmission mode, the initial transmission mode is switched to the adapted transmission mode, and the adapted transmission mode is used as the data transmission mode of the corresponding interface.
[0029] In a second aspect, the present application further provides a data transmission device, comprising:
[0030] A data acquisition module is used to obtain the initial transmission mode after the expansion dock is connected to the host; and obtain device information of an external device connected to at least one interface on the expansion dock;
[0031] The mode determination module is used to determine the data transmission mode of the interface according to the initial transmission mode and the device information of the external device, so as to instruct the host to transmit data to the connected external device through the data transmission mode of the interface.
[0032] In a third aspect, the present application also provides a docking station, comprising a charging controller, a USB hub and a memory, wherein the memory stores a computer program, and the charging controller implements the steps of any of the above methods when executing the computer program.
[0033] In the aforementioned data transmission method, device, and docking station, the initial transmission mode of the docking station after being connected to the host computer is obtained, as well as the device information of an external device connected to at least one interface on the docking station. Based on the initial transmission mode and the device information of the external device, the data transmission mode of the interface is determined, thereby instructing the host computer to transmit data to the connected external device using the data transmission mode of the interface. In the aforementioned method, the data transmission mode of the interface can be comprehensively determined based on the initial transmission mode of the docking station and the device information of the external device connected to the interface, so as to adapt to different external devices, improve device compatibility, and thereby improve the data transmission quality for the external device. In particular, when the external device is a display device, the display effects of multiple display devices can be ensured, avoiding the deterioration of the display effect caused by halving the bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A diagram showing an application environment of a data transmission method in one embodiment;
[0035] Figure 2 A schematic diagram of the internal structure of a docking station in one embodiment;
[0036] Figure 3 1 is a flow chart of a data transmission method according to an embodiment;
[0037] Figure 4 A schematic diagram of a flow chart for determining a data transmission mode in one embodiment;
[0038] Figure 5A schematic diagram of a flow chart for determining a data transmission mode in another embodiment;
[0039] Figure 6 FIG1 is a schematic diagram of a process for determining an adaptive transmission mode in one embodiment;
[0040] Figure 7 A schematic diagram of a process for determining data transmission requirements in one embodiment;
[0041] Figure 8 A schematic diagram of a process for determining data transmission requirements in another embodiment;
[0042] Figure 9 Schematic diagram of a flow chart for determining an adaptive transmission mode in another embodiment;
[0043] Figure 10 A schematic diagram of a flow chart for determining a data transmission mode in another embodiment;
[0044] Figure 11 A schematic flow chart of a data transmission method in another embodiment;
[0045] Figure 12 1 is a flow chart of controlling the initial transmission mode in one embodiment;
[0046] Figure 13 FIG. 1 is a structural block diagram of a data transmission device in one embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0048] The data transmission method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the docking station 200 connects to the host 100 via an upstream facing port (UFP) and connects to the external device 300 via a downstream facing port (DFP), enabling data transmission between the host 100 and the external device 300. The host 100 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, or portable wearable devices. The external device 300 may be, but is not limited to, various display devices, adapters, or storage devices.
[0049] In one embodiment, a docking station is provided, comprising:
[0050] Charging controller, USB hub, upstream and downstream interfaces, and multiplexer.
[0051] The upstream interface connects to the USB hub and the host computer, while the downstream interface connects to the USB hub and external devices, allowing external devices to connect to the host computer through the USB hub. The upstream and downstream interfaces are also connected to the USB hub via a multiplexer. The charging controller is connected to the upstream and downstream interfaces, as well as the multiplexer, respectively.
[0052] Taking the expansion dock 200 applicable to the Type-C interface on the host 100 as an example, its internal structure is as follows Figure 2 As shown, the docking station 200 includes a USB Power Delivery (PD) controller, a USB hub, a Type-C UFP (UFP C in the figure), a Type-C DFP (DFP C in the figure), and a multiplexer (MUX). The docking station 200 connects to the host 100 via the UFP C and to the external device 300 via the DFP C. The UFP C supports USB 2.0 with the USB hub and USB 3.2 via MUX1. The DFP C supports USB 2.0 with the USB hub and USB 3.2 via MUX2.
[0053] The PD controller connects to the UFP C via the Configuration Channel (CC). This allows it to detect whether the Type-C connector on the host 100 is plugged in forward or reverse, establish and manage connections to the host 100's Voltage Bus (VBUS), and transmit non-USB signals (such as audio) using the Side Band Use (SBU) signal. The PD controller communicates with MUX1 via General Purpose I / O Ports (GPIOs), controlling MUX1 and MUX2 to switch between different data transmission modes and output them to the DFP C. The 2L DP in the figure represents the 2-wire high-definition digital DisplayPort (DP) mode, corresponding to the first display data transmission mode with relatively low DP data throughput. The 4L DP represents the 4-wire high-definition digital display mode, corresponding to the second display data transmission mode with relatively high DP data throughput. The PD controller is connected to the DFP C via CC1 and CC2, and can be used to detect whether the DFP C is connected to the external device 300, and communicate with the MUX2 via an Inter-Integrated Circuit (IIC) interface.
[0054] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the expansion dock to which the solution of the present application is applied. The specific expansion dock may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0055] In one embodiment, Figure 3 As shown, a data transmission method is provided, which is applied to Figure 2 The following steps are used to illustrate the PD controller in the expansion dock:
[0056] S310: Obtain an initial transmission mode after the docking station is connected to the host; and obtain device information of an external device connected to at least one interface on the docking station.
[0057] Among them, the docking station is powered on when it is connected to the host. The initial transmission mode is the data transmission mode stored in the docking station before each external device is connected. The data transmission mode can be represented by a status flag. For example, the status flag is a Flag value, Flag=1 represents a data transmission mode with relatively high data transmission volume, such as a 4 Lanes DP transmission mode, and Flag=0 represents a data transmission mode with relatively low data transmission volume, such as a 2 Lanes DP+ USB3.0 transmission mode. In the DP1.2 standard, 2 Lanes can achieve 4K30Hz, while 4 Lanes can achieve a 4K60Hz display effect.
[0058] Optionally, after the docking station is connected to the host, the PD controller may read the Flag value stored in the storage unit in the docking station to determine the data transmission mode corresponding to the Flag value as the initial transmission mode.
[0059] The device information of the external device is the attribute information of the external device. For example, the device information may include the device type and the device operating parameters.
[0060] Optionally, when an external device is connected to at least one interface on the docking station, the PD controller obtains device information of the connected external device through the interface to which the external device is connected. Exemplarily, when an external device is connected to at least one downstream interface of a USB HUB in the docking station, the PD controller can read the device information of the connected external device through the downstream interface.
[0061] S320: Determine a data transmission mode of the interface according to the initial transmission mode and device information of the external device, so as to instruct the host to transmit data to the connected external device through the data transmission mode of the interface.
[0062] Optionally, after obtaining the initial transmission mode and the device information of the connected external device, the PD controller may determine whether the initial transmission mode is compatible with the external device based on the device information of the external device, and determine the data transmission mode of the interface connected to the external device based on the adaptation result, thereby instructing the host to perform data transmission to the connected external device using the data transmission mode of the interface. For example, taking the example of connecting interface 1 of the USB HUB in the docking station to a monitor, the PD controller determines that the data transmission mode of interface 1 is the 4 Lanes DP transmission mode. The host reads the 4 Lanes DP transmission mode of interface 1 and uses the 4 Lanes DP transmission mode to perform data transmission to the monitor connected to interface 1.
[0063] In an embodiment of the present application, by obtaining the initial transmission mode of the expansion dock after being connected to the host, and obtaining the device information of the external device connected to at least one interface on the expansion dock, the data transmission mode of the interface is determined according to the initial transmission mode and the device information of the external device, so as to instruct the host to transmit data to the connected external device through the data transmission mode of the interface. In the above method, the data transmission mode of the interface can be comprehensively determined based on the initial transmission mode of the expansion dock and the device information of the external device connected to the interface, so as to adapt to different external devices, improve device compatibility, and further improve the data transmission quality for the external device. In particular, when the external device is a display device, the display effect of display devices with multiple resolutions can be ensured, avoiding the deterioration of the display effect caused by halving the bandwidth for some display devices due to the fixed use of the 2Lanes DP+USB3.0 transmission mode.
[0064] The device information includes the device type. Based on this, in one embodiment, Figure 4 As shown, the above S320, determining the data transmission mode of the interface according to the initial transmission mode and the device information of the external device, includes:
[0065] S410: Determine the device type of the external device according to the device information of the external device.
[0066] The device type can be represented by a type identifier.
[0067] Optionally, after an external device is connected to an interface on the docking station, the PD controller can read the device information of the connected external device through the interface and extract a type identifier representing the device type to determine the device type of the connected external device. For example, if the type identifier read by the PD controller is monitor, the device type is determined to be a display device.
[0068] S420: Determine the data transmission mode of the interface according to the device type and the initial transmission mode of the external device.
[0069] Optionally, after obtaining the device type of the connected external device, the PD controller may determine whether the device type of the external device is compatible with the initial transmission mode, and determine the data transmission mode of the corresponding interface according to the adaptation result.
[0070] Different types of external devices are adapted to different data transmission modes. In an optional embodiment, Figure 5 As shown, the above S420, determining the data transmission mode of the interface according to the device type and initial transmission mode of the external device, includes:
[0071] S510: Determine an adaptive transmission mode of the external device according to the device type of the external device.
[0072] The adapted transmission mode is a data transmission mode that can meet the corresponding data transmission requirements of the external device.
[0073] Optionally, the docking station pre-stores the correspondence between different device types and adaptive transmission modes. After the PD controller obtains the device type of the connected external device, it can read the pre-stored correspondence and determine the adaptive transmission mode corresponding to the device type of the external device based on the correspondence to obtain the adaptive transmission mode of the external device.
[0074] S520: For the external device, determine the data transmission mode of the corresponding interface according to the adapted transmission mode and the initial transmission mode.
[0075] Optionally, for an external device connected to the docking station, the PD controller may compare the adapted transmission mode of the external device with the initial transmission mode, and determine the data transmission mode of the corresponding interface to control the initial transmission mode.
[0076] In an embodiment of the present application, the device type of the external device is determined based on the device information of the external device, and then the data transmission mode of the interface is determined based on the device type of the external device and the initial transmission mode. Specifically, the adaptation transmission mode of the external device can be determined based on the device type of the external device, and for the external device, the data transmission mode of the corresponding interface can be determined based on the adaptation transmission mode and the initial transmission mode. In the above method, the adaptation transmission mode of the external device can be accurately determined based on the device type of the external device connected, and the data transmission mode of the corresponding interface can be determined based on the initial transmission mode and the adaptation transmission mode of the external device to adapt to different types of external devices, thereby improving compatibility with multiple types of external devices and correspondingly improving the data transmission quality.
[0077] The adapted transmission mode of the external device can be determined based on the data transmission requirements of the external device. Based on this, in one embodiment, Figure 6 As shown, the above S510, determining the adapted transmission mode of the external device according to the device type of the external device, includes:
[0078] S610: Determine data transmission requirements of the external device according to the device type of the external device.
[0079] The data transmission requirement is used to represent the data transmission rate required by the external device. Some external devices require a higher data transmission rate, while others only require a lower data transmission rate. Different types of external devices represent different data transmission requirements.
[0080] Optionally, after obtaining the device type of the external device, the PD controller may determine the data transmission requirement corresponding to the external device based on a correspondence between the device type and the data transmission requirement. For example, the PD controller may determine that the transmission requirement of the display device is a high data transmission rate with a relatively high data transmission rate, and determine that the data transmission requirement of the non-display device is a low data transmission rate with a relatively low data transmission rate, based on a preset correspondence between the device type and the data transmission requirement.
[0081] S620: Determine an adaptive transmission mode for the external device according to a data transmission requirement of the external device.
[0082] Among them, different data transmission requirements determine different adaptive transmission modes accordingly.
[0083] Optionally, the PD controller may determine, according to the data transmission requirement of the external device, a data transmission mode adapted to the data transmission requirement as the adapted transmission mode of the external device.
[0084] Typically, non-display devices have lower data transmission requirements. Therefore, in an optional embodiment, if Figure 7 As shown, the above S610, determining the data transmission requirement of the external device according to the device type of the external device, includes:
[0085] S710: When the external device is a non-display device, determine that the data transmission requirement of the external device is a low data transmission volume.
[0086] Among them, the non-display device can be a PD adapter, a storage device, etc.
[0087] Optionally, after obtaining the device type of the external device, if the PD controller determines that the external device is a non-display device, it may determine that the data transmission requirement of the external device is low, that is, determine that the data transmission requirement of the external device is a low data transmission rate. For example, if the PD controller determines that the connected external device is a storage device, it determines that the data transmission requirement of the storage device is a low data transmission rate.
[0088] S720: When the external device is a display device, obtain the number of transmission channels from the device information of the external device, and determine the data transmission requirement according to the number of transmission channels.
[0089] The display device may be a monitor. The number of transmission channels in the device information represents the actual transmission requirements of the external device, and the number of transmission channels is positively correlated with the data transmission requirements. A larger number of transmission channels indicates a higher data transmission requirement. For example, the number of transmission channels may include two lanes or four lanes.
[0090] Optionally, after determining that the external device is a display device, the PD controller may further obtain the number of transmission channels from the device information of the display device and determine the data transmission requirement of the display device based on the corresponding relationship between the number of transmission channels and the data transmission requirement. For example, if the display device has 2 transmission channels, the PD controller may determine that the data transmission requirement of the display device is a low data transmission rate based on the corresponding relationship; if the display device has 4 transmission channels, the PD controller may determine that the data transmission requirement of the display device is a high data transmission rate based on the corresponding relationship.
[0091] For display devices, different numbers of transmission channels correspond to different data transmission requirements. In an optional embodiment, if Figure 8 As shown, determining the data transmission requirement according to the number of transmission channels in the above S720 includes:
[0092] S810: When the number of transmission channels is less than a preset number, determine that the data transmission requirement is a low data transmission volume.
[0093] Optionally, after reading the number of transmission channels of the display device, the PD controller may compare the number of transmission channels with a preset number to determine a corresponding data transmission requirement. Specifically, if the number of transmission channels is less than the preset number, the PD controller may determine that the data transmission requirement is a low data transmission rate. For example, if the PD controller reads that the display device has two transmission channels and the preset number is four, and after comparison determines that the number of transmission channels 2 is less than the preset number 4, the PD controller determines that the data transmission requirement of the display device is a low data transmission rate.
[0094] S820: When the number of transmission channels is greater than or equal to a preset number, determine that the data transmission requirement is a high data transmission volume.
[0095] Optionally, the PD controller compares the read number of transmission channels with a preset number, and if the number of transmission channels is greater than or equal to the preset number, determines that the data transmission requirement is high data transmission rate. For example, if the PD controller reads that the display device has four transmission channels and the preset number is 4, and after comparison determines that the number of transmission channels 4 is equal to the preset number 4, the PD controller determines that the data transmission requirement of the display device is high data transmission rate.
[0096] In an embodiment of the present application, the data transmission requirement of the external device is determined based on the device type of the external device, and the adaptive transmission mode of the external device is determined based on the data transmission requirement of the external device. Specifically, when the external device is a non-display device, the data transmission requirement of the external device can be determined as a low data transmission volume with a low data transmission volume; when the external device is a display device, the number of transmission channels in the device information is further obtained to determine the data transmission requirement of the external device. In the above method, the device type of the external device can preliminarily reflect the actual transmission requirement of the external device. Therefore, determining the data transmission requirement based on the device type can simplify the requirement determination process and correspondingly improve the processing efficiency. When the external device is a display device, the number of transmission channels in the device information can accurately reflect the actual transmission requirement of the display device, and correspondingly improve the accuracy of the determined data transmission requirement.
[0097] The adapted transmission mode of the external device includes a first display data transmission mode and a second display data transmission mode, and the data transmission amount of the second display data transmission mode is greater than that of the first display data transmission mode. Based on this, in one embodiment, Figure 9 As shown, the above S620, determining the adapted transmission mode of the external device according to the data transmission requirements of the external device, includes:
[0098] S910: When the data transmission requirement of the external device is a low data transmission volume, determine that the adapted transmission mode is a first display data transmission mode.
[0099] Optionally, after obtaining the data transmission requirement of the external device, if the data transmission requirement of the external device is determined to be a low data transmission rate, the PD controller may determine that the adapted transmission mode of the external device is a first display data transmission mode with a relatively low data transmission rate. For example, if the PD controller determines that the connected external device is a storage device, it determines that the data transmission requirement of the storage device is a low data transmission rate and accordingly determines that the adapted transmission mode is the first display data transmission mode, which may specifically be a 2-Lanes DP+USB3.0 transmission mode.
[0100] S920: When the data transmission requirement of the external device is a high data transmission volume, determine that the adapted transmission mode is a second display data transmission mode.
[0101] Optionally, after obtaining the data transmission requirement of the external device, if the data transmission requirement of the external device is determined to be a high data transmission rate, the PD controller may determine that the adapted transmission mode of the external device is a second display data transmission mode with a relatively high data transmission rate. For example, if the PD controller determines that the connected external device is a display and the number of transmission channels is 4 lanes, then the data transmission requirement of the display is determined to be a high data transmission rate, and accordingly, the adapted transmission mode is determined to be the second display data transmission mode, which may specifically be a 4-lanes DP transmission mode.
[0102] It should be noted that the difference in data transfer volume between the first display data transfer mode and the second display data transfer mode refers to the difference in DP data transfer volume. The USB hub interface on the docking station is a four-wire interface. The first display data transfer mode is 2Lanes DP+USB3.0 transmission mode, which means the interface transmits data over two lines of DP and two lines of USB 3.0. The second display data transfer mode is 4Lanes DP transmission mode, which means the interface transmits data over four lines of DP.
[0103] In an embodiment of the present application, the adaptive transmission mode includes a first display data transmission mode and a second display data transmission mode having a data transmission volume greater than that of the first display data transmission mode; when the data transmission requirement of the external device is a low data transmission volume, the adaptive transmission mode is determined to be the first display data transmission mode; when the data transmission requirement of the external device is a high data transmission volume, the adaptive transmission mode is determined to be the second display data transmission mode. In the above method, an adaptive transmission mode that meets the actual transmission requirements of different external devices is determined, thereby improving the compatibility between the determined adaptive transmission mode and the actual transmission requirements of the external device, and correspondingly improving the compatibility between the determined data transmission mode and the external device, thereby improving the data transmission quality.
[0104] In practical applications, the adapted transmission mode of the external device can be compared with the initial transmission mode to determine the data transmission mode of the corresponding interface. Figure 10 As shown, the above S520 determines the data transmission mode of the corresponding interface according to the adapted transmission mode and the initial transmission mode, including:
[0105] S1010: When the adapted transmission mode is the same as the initial transmission mode, maintain the initial transmission mode as the data transmission mode of the corresponding interface.
[0106] Among them, the adapted transmission mode is the same as the initial transmission mode, indicating that the initial transmission mode is adapted to the data transmission requirements of the corresponding external device; the adapted transmission mode is different from the initial transmission mode, indicating that the initial transmission mode is not adapted to the data transmission requirements of the corresponding external device.
[0107] Optionally, when the adapted transmission mode of the external device is the same as the initial transmission mode, the PD controller can determine that the initial transmission mode is adapted to the data transmission requirements of the corresponding external device, and maintain the initial transmission mode as the data transmission mode of the corresponding interface.
[0108] For example, the initial Flag value read by the PD controller is 1, indicating that the initial transmission mode is a high data volume transmission mode. When the external device connected to interface 1 is a high-resolution display device, the PD controller determines that the data transmission requirement of the high-resolution display device is a high data volume transmission mode, and accordingly adapts the transmission mode to a high data volume transmission mode. The initial transmission mode is the same as the adapted transmission mode of the high-resolution display device, and the PD controller maintains the initial Flag value as 1 to maintain the high data volume transmission mode as the data transmission mode of interface 1.
[0109] S1020: When the adapted transmission mode is different from the initial transmission mode, switch the initial transmission mode to the adapted transmission mode, and use the adapted transmission mode as the data transmission mode of the corresponding interface.
[0110] Optionally, when the comparison result is that the adapted transmission mode is different from the initial transmission mode, the PD controller can determine that the initial transmission mode is not compatible with the data transmission requirements of the corresponding external device, and then switch the initial transmission mode to the adapted transmission mode, and use the adapted transmission mode as the data transmission mode of the corresponding interface.
[0111] Exemplarily, the initial Flag value read by the PD controller is 1, indicating that the initial transmission mode is the second display data transmission mode. When the external device connected to interface 2 is a two-line display device, the PD controller determines that the data transmission requirement of the display device is a low data transmission volume, and accordingly adapts the transmission mode to the first display data transmission mode. The initial transmission mode is different from the adapted transmission mode of the display device, and the PD controller sets the initial Flag value to 0 to switch the second display data transmission mode to the first display data transmission mode, and use it as the data transmission mode of interface 2.
[0112] In an embodiment of the present application, for an external device connected to the expansion dock, the adaptation transmission mode of the external device is compared with the initial transmission mode. When the comparison result shows that the adaptation transmission mode is the same as the initial transmission mode, the initial transmission mode is maintained as the data transmission mode of the corresponding interface; when the comparison result shows that the adaptation transmission mode is different from the initial transmission mode, the initial transmission mode is switched to the adaptation transmission mode, and the adaptation transmission mode is used as the data transmission mode of the corresponding interface. In the above method, the initial transmission mode can be switched based on the actual needs of the external device to switch to a data transmission mode adapted to the external device, so as to provide different data transmission modes for different external devices, thereby improving device compatibility and expanding the scope of application. At the same time, adaptive switching of different transmission modes can be achieved by relying on the existing PD controller in the expansion dock, without the need to set up an additional control chip, thereby reducing product design costs.
[0113] To facilitate understanding by those skilled in the art, the data transmission method provided by this application is described in detail below. Figure 11 As shown, the method may include:
[0114] S1101: Acquire an initial transmission mode after the docking station is connected to the host, and acquire device information of an external device connected to at least one interface on the docking station;
[0115] S1102, determining the device type of the external device according to the device information of the external device;
[0116] S1103: When the external device is a non-display device, determining that the data transmission requirement of the external device is a low data transmission amount;
[0117] S1104: When the external device is a display device, obtain the number of transmission channels from the device information of the external device;
[0118] S1105: When the number of transmission channels is less than a preset number, determining that the data transmission requirement is a low data transmission volume;
[0119] S1106. When the number of transmission channels is greater than or equal to the preset number, determining that the data transmission requirement is a high data transmission rate; the high data transmission rate is greater than the low data transmission rate;
[0120] S1107: When the data transmission requirement of the external device is a low data transmission volume, determining that the adapted transmission mode is the first display data transmission mode;
[0121] S1108. When the data transmission requirement of the external device is a high data transmission volume, determine that the adapted transmission mode is a second display data transmission mode; the data transmission volume of the second display data transmission mode is greater than that of the first display data transmission mode;
[0122] S1109. When the adapted transmission mode is the same as the initial transmission mode, keep the initial transmission mode as the data transmission mode of the corresponding interface;
[0123] S1110. If the adapted transmission mode is different from the initial transmission mode, switch the initial transmission mode to the adapted transmission mode, and use the adapted transmission mode as the data transmission mode of the corresponding interface.
[0124] S1111 , instruct the host to transmit data to the connected external device through the data transmission mode of the interface.
[0125] Combine Figure 12 , the general process of the PD controller controlling the initial transmission mode is as follows:
[0126] After the docking station is connected to the host, the PD controller reads the Flag value. If Flag=0, it determines that the initial transmission mode is the first display data transmission mode, corresponding to Pin Assignment D. If Flag=1, it determines that the initial transmission mode is the second display data transmission mode, corresponding to Pin Assignment C / E.
[0127] The PD controller determines whether the DFP is connected to a display device. If not, it reads the Flag value. If Flag = 1, it sets Flag to 0 and performs a soft reset to update the initial transmission mode. If Flag = 0, it determines that the corresponding DFP data transmission mode is the first display data transmission mode, namely 2L DP + 2L USB 3.0 transmission mode. If a display device is connected, it reads the Flag value and determines whether the number of transmission channels matches the display device. If not, it writes the Flag value corresponding to the number of transmission channels of the display device and performs a soft reset to update the initial transmission mode. If they match, it reads the Flag value. If Flag = 0, it determines that the corresponding DFP data transmission mode is the first display data transmission mode, namely 2L DP + 2L USB 3.0 transmission mode. If Flag = 1, it determines that the corresponding DFP data transmission mode is the second display data transmission mode, namely 4L DP transmission mode.
[0128] It should be noted that for the description in the above S1101-S1111, reference can be made to the relevant description in the above embodiment, and the effects are similar, so this embodiment will not be repeated here.
[0129] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0130] Based on the same inventive concept, embodiments of the present application further provide a data transmission device for implementing the aforementioned data transmission method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more data transmission device embodiments provided below can be found in the above-mentioned limitations of the data transmission method and will not be further elaborated here.
[0131] In one embodiment, Figure 13 As shown, a data transmission device is provided, including: a data acquisition module 1301 and a mode determination module 1302, wherein:
[0132] The data acquisition module 1301 is used to obtain the initial transmission mode after the expansion dock is connected to the host; and obtain device information of an external device connected to at least one interface on the expansion dock;
[0133] The mode determination module 1302 is used to determine the data transmission mode of the interface according to the initial transmission mode and the device information of the external device, so as to instruct the host to perform data transmission to the connected external device through the data transmission mode of the interface.
[0134] In one embodiment, the mode determination module 1202 includes:
[0135] A type submodule, configured to determine a device type of the external device based on device information of the external device;
[0136] The mode submodule is used to determine the data transmission mode of the interface according to the device type and initial transmission mode of the external device.
[0137] In one embodiment, the mode submodule includes:
[0138] An adaptation unit, configured to determine an adaptation transmission mode of the external device according to a device type of the external device;
[0139] The mode unit is used to determine the data transmission mode of the corresponding interface according to the adaptation transmission mode and the initial transmission mode for the external device.
[0140] In one embodiment, the adaptation unit includes:
[0141] A demand subunit, configured to determine a data transmission demand of an external device according to a device type of the external device;
[0142] The adapter unit is used to determine the adapted transmission mode of the external device according to the data transmission requirements of the external device.
[0143] In one embodiment, the demand subunit includes:
[0144] a first demand micro-unit, configured to determine, when the external device is a non-display device, that the data transmission demand of the external device is a low data transmission amount;
[0145] The second demand micro unit is configured to obtain the number of transmission channels from the device information of the external device when the external device is a display device, and determine the data transmission demand according to the number of transmission channels.
[0146] In one embodiment, the second demand micro-unit is further configured to:
[0147] When the number of transmission channels is less than a preset number, the data transmission demand is determined to be a low data transmission volume; when the number of transmission channels is greater than or equal to the preset number, the data transmission demand is determined to be a high data transmission volume; the high data transmission volume is greater than the low data transmission volume.
[0148] In one embodiment, the adapted transmission mode includes a first display data transmission mode and a second display data transmission mode; the data transmission amount of the second display data transmission mode is greater than that of the first display data transmission mode; and the adapting subunit includes:
[0149] The first subunit is configured to determine that the adapted transmission mode is the first display data transmission mode when the data transmission requirement of the external device is a low data transmission volume;
[0150] The second subunit is configured to determine that the adapted transmission mode is the second display data transmission mode when the data transmission requirement of the external device is a high data transmission volume.
[0151] In one embodiment, the mode unit includes:
[0152] a maintaining subunit, configured to maintain the initial transmission mode as the data transmission mode of the corresponding interface when the adapted transmission mode is the same as the initial transmission mode;
[0153] The switching subunit is used to switch the initial transmission mode to the adaptation transmission mode when the adaptation transmission mode is different from the initial transmission mode, and use the adaptation transmission mode as the data transmission mode of the corresponding interface.
[0154] Each module in the above-mentioned data transmission device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the docking station in hardware form, or can be stored in the memory of the docking station in software form, so that the processor can call and execute the corresponding operations of each of the above modules.
[0155] In one embodiment, a docking station is provided, including a charging controller, a USB hub, and a memory, wherein the memory stores a computer program, and when the charging controller executes the computer program, the following steps are performed:
[0156] Obtain the initial transmission mode after the expansion dock is connected to the host; and obtain the device information of the external device connected to at least one interface on the expansion dock; determine the data transmission mode of the interface based on the initial transmission mode and the device information of the external device to instruct the host to transmit data to the connected external device through the data transmission mode of the interface.
[0157] In one embodiment, the charge controller further implements the following steps when executing the computer program:
[0158] The device type of the external device is determined according to the device information of the external device; and the data transmission mode of the interface is determined according to the device type and the initial transmission mode of the external device.
[0159] In one embodiment, the charge controller further implements the following steps when executing the computer program:
[0160] The adaptation transmission mode of the external device is determined according to the device type of the external device; and for the external device, the data transmission mode of the corresponding interface is determined according to the adaptation transmission mode and the initial transmission mode.
[0161] In one embodiment, the charge controller further implements the following steps when executing the computer program:
[0162] Determine the data transmission requirements of the external device according to the device type of the external device; and determine the adapted transmission mode of the external device according to the data transmission requirements of the external device.
[0163] In one embodiment, the charge controller further implements the following steps when executing the computer program:
[0164] When the external device is a non-display device, the data transmission requirement of the external device is determined to be a low data transmission volume; when the external device is a display device, the number of transmission channels is obtained from the device information of the external device, and the data transmission requirement is determined according to the number of transmission channels.
[0165] In one embodiment, the charge controller further implements the following steps when executing the computer program:
[0166] When the number of transmission channels is less than a preset number, the data transmission demand is determined to be a low data transmission volume; when the number of transmission channels is greater than or equal to the preset number, the data transmission demand is determined to be a high data transmission volume; the high data transmission volume is greater than the low data transmission volume.
[0167] In one embodiment, the adapted transmission mode includes a first display data transmission mode and a second display data transmission mode; the data transmission volume of the second display data transmission mode is greater than that of the first display data transmission mode; and the charging controller further implements the following steps when executing the computer program:
[0168] When the data transmission requirement of the external device is low data transmission volume, the adapted transmission mode is determined to be the first display data transmission mode; when the data transmission requirement of the external device is high data transmission volume, the adapted transmission mode is determined to be the second display data transmission mode.
[0169] In one embodiment, the charge controller further implements the following steps when executing the computer program:
[0170] When the adapted transmission mode is the same as the initial transmission mode, the initial transmission mode is maintained as the data transmission mode of the corresponding interface; when the adapted transmission mode is different from the initial transmission mode, the initial transmission mode is switched to the adapted transmission mode, and the adapted transmission mode is used as the data transmission mode of the corresponding interface.
[0171] In one embodiment, a terminal device is provided, comprising the above-mentioned expansion dock.
[0172] Among them, the expansion dock can be integrated into the terminal device.
[0173] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0174] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0175] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A data transmission method, characterized in that: The method comprises: Obtaining an initial transmission mode after the docking station is connected to the host; and obtaining device information of an external device connected to at least one interface on the docking station; The data transmission mode of the interface is determined according to the initial transmission mode and the device information of the external device, so as to instruct the host to perform data transmission to the connected external device through the data transmission mode of the interface.
2. The method according to claim 1, characterized in that The determining, according to the initial transmission mode and the device information of the external device, the data transmission mode of the interface includes: determining a device type of the external device according to the device information of the external device; The data transmission mode of the interface is determined according to the device type of the external device and the initial transmission mode.
3. The method according to claim 2, characterized in that The determining the data transmission mode of the interface according to the device type of the external device and the initial transmission mode includes: determining an adapted transmission mode of the external device according to a device type of the external device; For the external device, a data transmission mode of a corresponding interface is determined according to the adapted transmission mode and the initial transmission mode.
4. The method according to claim 3, characterized in that The determining the adapted transmission mode of the external device according to the device type of the external device includes: determining a data transmission requirement of the external device according to a device type of the external device; The adapted transmission mode of the external device is determined according to the data transmission requirement of the external device.
5. The method according to claim 4, characterized in that The determining, according to the device type of the external device, the data transmission requirement of the external device includes: In a case where the external device is a non-display device, determining that the data transmission requirement of the external device is a low data transmission volume; In a case where the external device is a display device, the number of transmission channels is obtained from the device information of the external device, and the data transmission requirement is determined according to the number of transmission channels.
6. The method according to claim 5, characterized in that The determining the data transmission requirement according to the number of transmission channels includes: When the number of transmission channels is less than a preset number, determining that the data transmission requirement is the low data transmission volume; When the number of transmission channels is greater than or equal to the preset number, the data transmission requirement is determined to be a high data transmission volume; and the high data transmission volume is greater than the low data transmission volume.
7. The method according to claim 4, characterized in that The adapted transmission mode includes a first display data transmission mode and a second display data transmission mode; the data transmission amount of the second display data transmission mode is greater than that of the first display data transmission mode; The determining the adapted transmission mode of the external device according to the data transmission requirement of the external device includes: When the data transmission requirement of the external device is a low data transmission volume, determining the adapted transmission mode to be the first display data transmission mode; When the data transmission requirement of the external device is a high data transmission volume, the adapted transmission mode is determined to be the second display data transmission mode.
8. The method according to any one of claims 3 to 7, characterized in that The determining the data transmission mode of the corresponding interface according to the adapted transmission mode and the initial transmission mode includes: When the adapted transmission mode is the same as the initial transmission mode, maintaining the initial transmission mode as the data transmission mode of the corresponding interface; In a case where the adapted transmission mode is different from the initial transmission mode, the initial transmission mode is switched to the adapted transmission mode, and the adapted transmission mode is used as the data transmission mode of the corresponding interface.
9. A data transmission device, characterized in that: The device comprises: A data acquisition module, configured to acquire an initial transmission mode after the expansion dock is connected to the host; and to acquire device information of an external device connected to at least one interface on the expansion dock; The mode determination module is used to determine the data transmission mode of the interface according to the initial transmission mode and the device information of the external device, so as to instruct the host to transmit data to the connected external device through the data transmission mode of the interface.
10. A docking station comprising a charging controller, a USB hub, and a memory, wherein the memory stores a computer program, characterized in that: When the charge controller executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Dock system and setting method for dock device
CN113204513A
Interface expansion method and device, management system and related equipment
CN114443545A
Type-C docking station supporting multi-host connection and system thereof
CN219997567U
Bandwidth management allocation for displayport tunneling
US20200320026A1
Display system and display apparatus
US20220030191A1