A control method, control device and connection device

CN115604310BActive Publication Date: 2026-08-21LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211199611.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2026-08-21
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

[0002]smart cable智能线缆,如智能USB对拷线,可通过一线直连方式,支持跨设备信息传输、操控、投屏等功能,目前的smart cable仅能提供数据、操作信号等的信息传输功能,无法满足不同设备(如不同PC)间的供电/充电需求

Benefits of technology

[0044]由以上方案可知,本申请公开的控制方法、控制装置和连接装置,在分别接入第一电子设备和第二电子设备后,获得第一电子设备和第二电子设备的设备信息;至少基于获得的设备信息配置第一电子设备和第二电子设备之间数据和/或电力的传输参数,以控制第一电子设备和第二电子设备之间的数据交换和/或电力交换。本申请通过在连接装置获得第一电子设备和第二电子设备的设备信息,并基于获得的设备信息配置第一电子设备和第二电子设备之间数据和/或电力的传输参数,不仅能够在连接装置支持跨设备的数据交换,还支持跨设备的电力交换,从而能够满足基于连接装置在不同设备间进行供电/充电的需求。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115604310B_ABST
    Figure CN115604310B_ABST
Patent Text Reader

Abstract

The application discloses a control method, a control device and a connecting device. The method comprises the following steps: obtaining device information of a first electronic device and a second electronic device after the first electronic device and the second electronic device are connected respectively; and configuring transmission parameters of data and / or power between the first electronic device and the second electronic device based on the obtained device information, so as to control data exchange and / or power exchange between the first electronic device and the second electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of computer technology, and in particular relates to a control method, control device, and connection device. Background Technology

[0002] Smart cables, such as smart USB cloning cables, can support cross-device information transmission, control, and screen projection through a single cable connection. Currently, smart cables can only provide information transmission functions such as data and operation signals, and cannot meet the power supply / charging needs between different devices (such as different PCs). Summary of the Invention

[0003] Therefore, this application discloses the following technical solution:

[0004] A control method applied to a connection device, the method comprising:

[0005] After connecting to the first electronic device and the second electronic device respectively, the device information of the first electronic device and the second electronic device is obtained;

[0006] The data and / or power transmission parameters between the first electronic device and the second electronic device are configured based at least on the device information to control the data exchange and / or power exchange between the first electronic device and the second electronic device.

[0007] Optionally, obtaining device information for the first electronic device and the second electronic device includes at least one of the following:

[0008] The device information is read using a configuration channel between the first controller and the first electronic device and the second electronic device. The first controller is a component within the connection device that can communicate with the power transmission controllers of the first electronic device and the second electronic device.

[0009] After determining that the interface signal of each end interface is in the first state, the device information is obtained by exchanging enumeration information with the first electronic device and the second electronic device through the interface.

[0010] Optionally, configuring the data and / or power transmission parameters between the first electronic device and the second electronic device based at least on the device information includes at least one of the following:

[0011] Configure the master-slave relationship between the first electronic device and the second electronic device in the data transmission and / or power transmission process based on the device information;

[0012] Configure the data transmission parameters of the first electronic device and the second electronic device during the data transmission process based on the device information;

[0013] Configure the power transmission parameters of the first electronic device and the second electronic device during the power transmission process based on the device information.

[0014] Optionally, configuring the data and / or power transmission parameters between the first electronic device and the second electronic device based at least on the device information includes at least one of the following:

[0015] Receive control commands from the first electronic device and / or the second electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information;

[0016] Receive control commands from a third electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information;

[0017] Obtain usage information of the first electronic device and / or the second electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the usage information and the device information.

[0018] Optionally, the data and / or power transmission parameters between the first electronic device and the second electronic device are configured based on the control commands and the device information, including one of the following:

[0019] If the control command conflicts with the configuration result obtained based on the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command; or, if the priority of the control command is higher than the priority of the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command.

[0020] If the control command does not conflict with the configuration result obtained based on the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device are adjusted or optimized based on the control command.

[0021] Optionally, controlling data exchange and / or power exchange between the first electronic device and the second electronic device includes at least one of the following:

[0022] The first configuration result is notified to the first electronic device and / or the second electronic device so that the second electronic device supplies power to the first electronic device;

[0023] The second configuration result is notified to the first electronic device and / or the second electronic device so that the first electronic device supplies power to the second electronic device;

[0024] The third configuration result is notified to the first electronic device and / or the second electronic device, so that the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device;

[0025] The fourth configuration result is notified to the first electronic device and / or the second electronic device so that the second electronic device supplies power to the first electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device;

[0026] The fifth configuration result is notified to the first electronic device and / or the second electronic device, so that the first electronic device supplies power to the second electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device.

[0027] Optionally, the method further includes:

[0028] Share target configuration information with the first electronic device and the second electronic device;

[0029] At least one communication channel is established between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device that corresponds to the target configuration information;

[0030] The target configuration information includes at least the communication protocol information supported by the connection device.

[0031] Optionally, after establishing the at least one communication channel, the method further includes:

[0032] Data generated by one of the first electronic devices and the second electronic devices based on the target application is transmitted to the other of the first electronic devices and the second electronic devices through the at least one communication channel;

[0033] In cases where the first electronic device and the second electronic device are running different target applications, data generated based on the target applications are transmitted to each other using different communication channels.

[0034] The communication channel includes at least one of the following:

[0035] Communication channels established through communication device protocols, communication channels established through human-machine interface device protocols, communication channels established through universal serial bus video protocols, and communication channels established through universal serial bus audio protocols.

[0036] A control device, comprising:

[0037] The acquisition unit is used to obtain device information of the first electronic device and the second electronic device after they are respectively connected to the first electronic device and the second electronic device;

[0038] A configuration unit is configured to configure data and / or power transmission parameters between the first electronic device and the second electronic device based at least on the device information.

[0039] A control unit is configured to control data exchange and / or power exchange between the first electronic device and the second electronic device based on the transmission parameters.

[0040] A connecting device, comprising:

[0041] The first interface and the second interface are respectively able to connect to the first electronic device and the second electronic device. Multiple communication channels are configured between the first interface and the second interface, which can at least obtain the device information of the first electronic device and the second electronic device.

[0042] A power path, the two ends of which are respectively connected to the first interface and the second interface, is used to transmit power signals between the first electronic device and the second electronic device;

[0043] A control module, located between the first interface and the second interface, is capable of configuring data and / or power transmission parameters between the first electronic device and the second electronic device based on the device information, so as to control data exchange and / or power exchange between the first electronic device and the second electronic device.

[0044] As can be seen from the above solutions, the control method, control device, and connection device disclosed in this application, after respectively connecting to the first electronic device and the second electronic device, obtain device information of the first electronic device and the second electronic device; and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained device information to control data exchange and / or power exchange between the first electronic device and the second electronic device. This application, by obtaining device information of the first electronic device and the second electronic device through the connection device and configuring data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained device information, can not only support cross-device data exchange through the connection device but also support cross-device power exchange, thereby meeting the need for power supply / charging between different devices based on the connection device. Attached Figure Description

[0045] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0046] Figure 1 This is a schematic diagram of the structural composition of the connecting device provided in this application;

[0047] Figure 2 This is an exemplary circuit diagram of the connection device provided in this application;

[0048] Figure 3 This is a flowchart illustrating one of the control methods provided in this application;

[0049] Figure 4 This is another flowchart illustrating the control method provided in this application;

[0050] Figure 5 This is an example diagram illustrating the use of a connection device to establish multiple communication channels between connected devices, as provided in this application.

[0051] Figure 6 This is a schematic diagram of the composition of the control device provided in this application. Detailed Implementation

[0052] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0053] This application discloses a control method, control device, and connection device to address the shortcomings of traditional smart cables, which can only provide information transmission functions such as data and operation signals and cannot meet the power supply / charging needs of different devices (such as different PCs). The control method can be applied to a connection device, which may be, but is not limited to, a smart cable (such as a smart USB cloning cable), a docking station, or an adapter, etc.

[0054] See Figure 1 The connection device shown in the diagram comprises: a first interface 10, a second interface 20, a power supply path 30, and a control module 40.

[0055] The first interface and the second interface can respectively connect to the first electronic device and the second electronic device. Multiple communication channels are configured between the first interface and the second interface, which can at least obtain the device information of the first electronic device and the second electronic device.

[0056] Taking a smart USB cloning cable as an example, the first and second interfaces can both be USB interfaces. It's easy to understand that both the first and second electronic devices are host devices with host functionality.

[0057] Optionally, the multiple communication channels configured between the first interface and the second interface include a data channel for data exchange between the first electronic device and the second electronic device respectively connected to the first interface and the second interface, and a configuration channel for configuring the transmission parameters of data and / or power between the first electronic device and the second electronic device.

[0058] Specifically, the data channel can be used to exchange content data and / or control data (such as control commands) between different electronic devices without limitation, depending on actual needs.

[0059] Specifically, the device information of the first electronic device and the second electronic device can be obtained through the configuration channel in multiple communication channels, and the data and / or power transmission parameters between the first electronic device and the second electronic device can be configured based on the obtained device information to control the data exchange and / or power exchange between the first electronic device and the second electronic device.

[0060] The device information of the first and second electronic devices obtained based on the configuration channel includes, but is not limited to, part or all of the device attribute information, device configuration information, device operation information, and device supported communication protocol information of the first and second electronic devices.

[0061] The device attribute information includes, but is not limited to, device type (e.g., all-in-one PC, laptop, etc.) and device model. Device configuration information includes hardware and software configurations related to data and power exchange, such as whether the device has a dedicated power supply or charging controller for supplying power to external devices, and whether it has relevant protocols and drivers for data exchange between different devices. Device operation information includes, but is not limited to, application status information of the applications currently running on the device (e.g., cross-device file transfer, cross-device image preview), operating mode information (e.g., screen mirroring mode), and / or the device's current remaining battery power. Supported communication protocol information includes, but is not limited to, protocol information for some or all of the following protocols: Communication Device Class (CDC), Human Interface Device (HID), Universal Serial Bus Video (UVC), and Universal Serial Bus Audio (UAC).

[0062] The transmission parameters configured by the configuration channel include, but are not limited to, some or all of the parameter information such as the transmission channel, transmission direction, and transmission rate between the first electronic device and the second electronic device.

[0063] The two ends of the power path are connected to the first interface and the second interface respectively, and are used to transmit power signals between the first electronic device and the second electronic device connected to the first interface and the second interface respectively, so as to realize power exchange between the first electronic device and the second electronic device.

[0064] Optionally, the power supply path can be implemented using a power cable directly connected between the first and second interfaces.

[0065] The control module is located between the first interface and the second interface, and can configure the data and / or power transmission parameters between the first electronic device and the second electronic device based on the device information, so as to control the data exchange and / or power exchange between the first electronic device and the second electronic device.

[0066] The control module includes a first controller and a second controller. The first controller is located on a configuration path and connected between a first interface and a second interface via the configuration path. Specifically, it is a component within the connection device that can communicate with the power transmission controllers of the first and second electronic devices. The second controller is located on a data path and connected between the first and second interfaces via the data path. Specifically, it is a component within the connection device used to forward data between the first and second electronic devices to achieve data exchange between the two devices.

[0067] See Figure 2 An exemplary circuit diagram of a connection device is provided. In this example, the connection device is a smart cable, such as a smart USB cloning cable. Figure 2 As shown in this example, the data channel configured between the first interface and the second interface is composed of data signal lines, wherein the data signal lines include: a first signal line for transmitting data, i.e. Figure 2 The 1_Tx+ / Tx- and 2_Tx+ / Tx- lines are the second signal lines used for receiving data, i.e. Figure 2 The 1_Rx+ / Rx- and 2_Rx+ / Rx- lines, and the third signal line used to determine whether the connection device has been successfully connected to the device, are... Figure 2 In 1_D+ / D- and 2_D+ / D-.

[0068] The configuration channel configured between the first interface and the second interface is provided by Figure 2 The configuration shown consists of signal lines 1_CC1, 2_CC1 and 1_CC2, 2_CC2, and the power path is as follows: Figure 2 The Vbus power line is directly connected between the first and second interfaces. The control module includes an Enhance PD controller (a logic charging controller) for use as the first controller and an OTI IC (such as a main control chip) for use as the second controller. Figure 2 (OTI7300 in the middle).

[0069] After the first and second interfaces of the connection device are connected to the first and second electronic devices respectively, the Enhance PD controller in the control module obtains device information of the first and second electronic devices through configuration channels 1_CC1, 2_CC1 and 1_CC2, 2_CC2, and configures data and / or power transmission parameters between the first and second electronic devices based at least on the obtained device information to control data and / or power exchange between the first and second electronic devices. Furthermore, power exchange can be performed between the two devices via the power path Vbus, and / or data exchange can be performed between the two devices via the data path in conjunction with the second controller, according to actual control requirements. This part will be further described in detail in the method embodiments below.

[0070] Optionally, in one embodiment, the connection device may further include a voltage conversion component, one end of which is connected to a power supply path, and the other end of which is connected to a second controller (such as a main control chip OTI IC). That is, the second controller is connected to the power supply path via the voltage conversion component to obtain the electrical energy required for operation from the power supply path. Figure 2As shown, the voltage conversion component is specifically a Buck line connected between Vbus and the main control chip OTI IC. It is used to convert the power supply voltage provided by Vbus into the voltage required for the main control chip OTI IC to operate, so that the additional Buck line can supply power to the OTI IC separately.

[0071] Optionally, in one embodiment, the connection device may further include a ground wire, such as... Figure 2 In the GND section, one end of the ground wire is connected to the first interface, and the other end is connected to the second interface.

[0072] In this embodiment of the application, in addition to providing a first interface and a second interface in the connection device, multiple communication channels capable of obtaining device information of the devices connected to the two interfaces are provided between the first interface and the second interface of the connection device. A power path for transmitting power signals and a control module for data exchange and / or power exchange control are also provided, so that the connection device can not only support data exchange across devices, but also power exchange across devices, thereby meeting the needs of power supply / charging between different devices based on the connection device.

[0073] Based on the above-described connection device, see Figure 3 The control method flowchart shown in this application embodiment may include the following processing steps:

[0074] Step 301: After connecting to the first electronic device and the second electronic device respectively, obtain the device information of the first electronic device and the second electronic device.

[0075] The connection device can be connected to the first electronic device and the second electronic device at the same time through its first interface and second interface, or the connection device can be connected to the first electronic device and the second electronic device in sequence through its first interface and second interface. The connection can be manual or automatic based on control commands, without any restrictions.

[0076] After the connection device is connected to the first electronic device and the second electronic device respectively, optionally, the device information of the first electronic device and the second electronic device can be read by using the configuration channel between the first controller of the connection device and the first electronic device and the second electronic device.

[0077] For example, the Enhance PD controller can be used to read device information of the first electronic device and the second electronic device by configuring channels 1_CC1, 2_CC1 and 1_CC2, 2_CC2.

[0078] Alternatively, after determining that the interface signal of each end of the connection device is in the first state, the device information of the first and second electronic devices can be obtained by exchanging enumeration information with the first and second electronic devices through the corresponding interface.

[0079] The first controller can communicate with corresponding components, such as power transmission controllers, in the devices connected to the interfaces at both ends of the connection device. Specifically, the communication function provided by the first controller can be used to obtain device information of the first electronic device and the second electronic device through the above enumeration process.

[0080] The interface signal being in the first state can mean that the signal on the third signal line is in a stable state that meets the stability conditions, such as... Figure 2 The signals on the USB D+ / D- lines are in a stable state.

[0081] The stability conditions described above can be set as follows: the time elapsed after the two ends of the connection device are connected to the first electronic device and the second electronic device respectively reaches a preset time, or the signal of the third signal line is detected to be stable within the preset time. However, it is not limited to this. Factors such as the amount of change, amplitude of change, and frequency of change of the interface signal can also be considered to further add the following conditions to the stability conditions described above: the amount of change, amplitude of change, and / or frequency of change of the interface signal reaches the corresponding threshold.

[0082] After confirming that the interface signal at each end of the connection device is in the first state, the interface signal is in a stable state, and there will be no communication packet loss or error issues, thus allowing the enumeration process to be completed. During the enumeration process, the first controller, such as the Enhance PD controller, can interact with the first and second electronic devices through the corresponding interface to obtain device information of the first and second electronic devices.

[0083] For example, the Enhance PD controller obtains the device information of the second electronic device from the first electronic device by exchanging enumerated information such as device address (e.g., MAC address), configuration information (e.g., hardware and software configuration, driver configuration, etc. related to device data exchange and / or power exchange), string descriptors (e.g., strings used to describe the device such as device type and device name), and supported communication protocols with the charging controller PD controller and other related components in the first and second electronic devices.

[0084] The obtained device information includes, but is not limited to, device attribute information, device configuration information, device operation information, and device supported communication protocol information of the first and second electronic devices, etc. For details of each type of information, please refer to the description above.

[0085] Next, we will take the stability condition mentioned above, where the signal of the third signal line is detected to be stable within a preset time (150ms), as an example to illustrate the point.

[0086] When the Smart Cable is plugged into the first electronic device and the second electronic device, and the main control chip OTI IC of the Smart Cable control module is powered on, it continuously monitors the USB signal status within 150ms and determines whether the D+ signal can be pulled high. When the Smart Cable detects that the signal is stable, it pulls D+ high and reports to the system to start the enumeration process. At this time, the entire USB signal is completely stable and there will be no communication packet loss or error problems, so the enumeration process can be successfully executed, and the device information of the first electronic device and the second electronic device can be obtained through enumeration information exchange.

[0087] See also Figure 2 In order to support cross-device power exchange and enable charging between different devices via a connecting device (such as a smart cable) at the interface of electronic devices, such as a USB interface, this application pre-installs a power chip (such as...) at the USB interface of at least some types of electronic devices. Figure 2 The 100W PD power supply and charging controller (PD controller) are used in this example. For instance, assuming the all-in-one computer has three USB ports, a power chip and charging controller can be added to one of these USB ports to support charging other connected electronic devices (such as laptops). The power chip can draw power from the power source of the electronic device (such as the all-in-one computer's adapter) and output power through the power path of the connecting device (such as a Vbus line) to supply power to the connected electronic devices.

[0088] Optionally, in practical applications, it is preferable to add a power chip and charging controller to the USB interface of non-portable electronic devices such as all-in-one computers and desktop computers, while not adding them to portable devices such as laptops.

[0089] Step 302: Configure data and / or power transmission parameters between the first electronic device and the second electronic device based at least on the device information, so as to control data exchange and / or power exchange between the first electronic device and the second electronic device.

[0090] After obtaining the device information of the first electronic device and the second electronic device, a control module, such as a first controller in the control module, can be used to configure the data and / or power transmission parameters between the first electronic device and the second electronic device, based at least on the obtained device information. This process can be implemented as at least one of the following:

[0091] 11) Configure the master-slave relationship between the first electronic device and the second electronic device in the data transmission and / or power transmission process based on the obtained device information.

[0092] The master-slave relationship between the first electronic device and the second electronic device during data transmission and / or power transmission is used to reflect the data transmission direction and / or power transmission direction of the first electronic device and the second electronic device during data transmission and / or power transmission.

[0093] Specifically, the first controller in the control module can first determine whether the first electronic device and the second electronic device need to exchange data and whether they need to exchange power based on the obtained device information, such as the EnhancePD controller obtaining device attribute information, device configuration information, device operation information, and device supported communication protocol information.

[0094] For example, if based on device operation information and device configuration information, it is known that one of the first and second electronic devices has initiated cross-device file transfer, and based on the device configuration information, it is known that both devices support protocols for file transfer, then it can be determined that data exchange is required between the first and second electronic devices. And / or, if based on device operation information, it is known that the current battery level of one of the first and second electronic devices is below a preset battery threshold, then it can be determined that power exchange is required between the first and second electronic devices.

[0095] If data transfer is required, the first controller can further determine the data transfer direction between the first electronic device and the second electronic device based on the acquired device information, such as the device operation information (e.g., which device initiated the file transfer) obtained by the Enhance PD controller. Based on the determined transfer direction, the electronic device used to send data is first identified as the current master device, i.e., it has the host identity, and the connecting device is the slave device. This master-slave relationship can be configured to notify the electronic device used to send data to enter the data exchange mode for USB data transmission. Subsequently, after the connecting device receives data from the electronic device used to send data, it further identifies and configures the other electronic device among the two connected devices as the master device, so that the connecting device forwards the received data to the other electronic device based on the slave device identity.

[0096] If it is determined that power transmission is required, then it is determined that power exchange mode needs to be entered. Specifically, the first controller, such as the Enhance PD controller, can determine the direction of power transmission based on the acquired device information, such as device type and device power level. Based on the direction of power transmission, the first electronic device and the second electronic device are assigned master / slave identities (host / guest identities) and configured. Specifically, the device used to supply power is assigned the identity of the power supply master device, and the device that needs to be charged is assigned the identity of the power receiving slave device. The master-slave relationship is configured to notify each of the two devices to supply or receive power.

[0097] 12) Configure the data transmission parameters of the first electronic device and the second electronic device during the data transmission process based on the obtained device information.

[0098] Specifically, based on some or all of the obtained device attribute information, device configuration information, device operation information, and device supported communication protocol information, at least one of the following can be configured: data transmission bandwidth, rate, compression rate, and transmission channel.

[0099] For example, based on the application running on the obtained device, such as a screen mirroring application that projects from the first electronic device to the second electronic device, configure the data transmission channel, transmission direction, compression rate, etc., suitable for the screen mirroring application.

[0100] 13) Configure the power transmission parameters of the first electronic device and the second electronic device during the power transmission process based on the obtained device information.

[0101] Specifically, based on some or all of the obtained equipment attribute information, equipment configuration information, equipment operation information, and equipment supported communication protocol information, at least one of the following can be configured: power transmission power, frequency, current, voltage, duration, and power supply time.

[0102] For example, based on the obtained device attribute information such as device type and model of the receiving electronic device, as well as the device configuration information such as the adapted charging parameters, the power, frequency, current or voltage of the power transmission can be configured.

[0103] Alternatively, in this step, configuring the data and / or power transmission parameters between the first electronic device and the second electronic device based at least on the device information can also be implemented as at least one of the following:

[0104] 21) Obtain control commands from the first electronic device and / or the second electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained control commands and device information.

[0105] Specifically, a first controller, such as an Enhance PD controller, can obtain control commands from a first electronic device and / or a second electronic device, and configure the data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained control commands and device information.

[0106] Control commands from the first electronic device and / or the second electronic device may, but are not limited to, commands indicating the direction of data transmission and / or the direction of power transmission, or the transmission channel, or control commands indicating the adjustment or control of data transmission parameters and / or power transmission parameters, without limitation.

[0107] Optionally, the priority levels of control commands and device information can be preset. When configuring the data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained control commands and device information, the higher priority level is used as the basis for configuring the data and / or power transmission parameters between the first electronic device and the second electronic device.

[0108] That is, the priority level of control commands can be determined based on configuration information, but it is not limited to this. The priority level can also be determined according to the source of the control commands. For example, if the first electronic device has a higher priority than the second electronic device, or the user of the first electronic device has a higher priority than the user of the second electronic device, then if the control command comes from the higher priority electronic device or user, then a higher priority will be assigned to it.

[0109] Alternatively, in other implementations, the priority of control commands can be determined in conjunction with the specific use scenario. For example, assuming the current use scenario is a screen mirroring application (such as screen mirroring data transmission from a first electronic device to a second electronic device), the control command currently indicated that is adapted to the screen mirroring application (such as indicating the screen mirroring transmission channel, transmission direction, bandwidth adjustment, etc.) is set to a higher priority so that the transmission parameters are controlled based on the control command first, so that it can be better adapted to the current screen mirroring application scenario.

[0110] 22) Obtain control commands from a third electronic device, and configure data and / or power transmission parameters between the first and second electronic devices based on the obtained control commands and device information.

[0111] The third electronic device can be connected to the connection device.

[0112] In one embodiment, the connection device further includes a third interface through which it establishes a connection with a third electronic device. In other embodiments, the connection device may also establish a connection with the third electronic device wirelessly.

[0113] In this case, optionally, the third electronic device can act as a host computer, and through interaction with the connection device, control or intervene in the data exchange and / or power exchange between the first electronic device and the second electronic device.

[0114] The third electronic device can send control commands to the connection device automatically or manually, such as sending control commands to the first controller (Enhance PD controller) of the connection device, so that the connection device can configure the data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained control commands and device information.

[0115] Control commands from a third electronic device may, but are not limited to, commands indicating the direction of data transmission and / or the direction of power transmission, the transmission channel, or control commands indicating the adjustment or control of data transmission parameters and / or power transmission parameters.

[0116] Similar to method 21), in this method 22), the priority design of control commands and device information can also be combined to select the one with higher priority, or to combine the two, to configure the data and / or power transmission parameters between the first electronic device and the second electronic device.

[0117] Furthermore, the priority of control commands can be determined based on configuration information, or based on the priority of the source device (third electronic device) / the user corresponding to the source device, or in combination with the actual application scenario. For details, please refer to the relevant explanation of control command priority in method 21), which will not be elaborated further.

[0118] In methods 21) and 22), configuring the data and / or power transmission parameters between the first electronic device and the second electronic device based on control commands and device information can be further implemented as one of the following:

[0119] a. If the control command conflicts with the configuration result obtained based on the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command. Alternatively, if the priority of the control command is higher than the priority of the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command.

[0120] In other words, when configuring the data and / or power transmission parameters between the first electronic device and the second electronic device based on control commands and device information, it can be first determined whether the control commands conflict with the configuration results obtained based on the device information. If there is a conflict, in one embodiment, the control commands can be given priority, and the data and / or power transmission parameters between the first electronic device and the second electronic device can be adjusted or optimized based on the control commands.

[0121] For example, if the data transmission direction indicated by the control command is opposite to the data transmission direction configured based on the device information, then the control command can take precedence, and the data transmission direction in the data transmission parameters can be adjusted to the direction indicated by the control command based on the control command.

[0122] Alternatively, in other embodiments, in the event of a conflict between the two, the data and / or power transmission parameters between the first and second electronic devices may be adjusted or optimized only if the priority of the control command is higher than that of the device information. Conversely, if the priority of the control command is lower than that of the device information, the transmission parameters will not be adjusted or optimized based on the control command.

[0123] b. If the control command does not conflict with the configuration result obtained based on the device information, adjust or optimize the data and / or power transmission parameters between the first electronic device and the second electronic device based on the control command.

[0124] If the control command does not conflict with the configuration result obtained based on the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device are directly adjusted or optimized based on the control command.

[0125] For example, if the data transmission direction / power transmission direction indicated by the control command is the same as the data transmission direction / power transmission direction configured based on the device information, and only the bandwidth or power output power is different, the two do not conflict. In this case, the transmission bandwidth or power output power can be directly adjusted to the bandwidth or power indicated by the control command.

[0126] 23) Obtain usage information of the first electronic device and / or the second electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained usage information and device information.

[0127] The obtained usage information includes, but is not limited to, usage scenario information and user information of the first electronic device and / or the second electronic device.

[0128] Usage scenario information may refer to the scenario information corresponding to the first electronic device and / or the second electronic device in scenarios such as screen projection application scenarios and meeting application scenarios, including but not limited to scenario type and role in the scenario (such as screen projection or receiving screen projection); User information may refer to the information of the user of the first electronic device and / or the second electronic device, including but not limited to username, role / position, etc.

[0129] In this implementation, the data and / or power transmission parameters between the first electronic device and the second electronic device are configured by combining the usage information and device information of the first electronic device and / or the second electronic device. For example, assuming that the obtained usage information is the screen projection scenario type and the screen projection direction is from the first electronic device to the second electronic device, the data transmission direction can be configured to be from the first electronic device to the second electronic device based on the scenario information and the obtained device information. A transmission channel adapted to the screen projection application can also be configured, and the corresponding compression rate, speed and other information can be configured based on the device information.

[0130] In addition, the data and / or power transmission parameters between the first electronic device and the second electronic device can be configured by combining the data generating and receiving objects, such as configuring the data transmission direction in the data exchange mode according to the data generating and receiving objects.

[0131] After configuring the data and / or power transmission parameters between the first electronic device and the second electronic device, the data exchange and / or power exchange between the two electronic devices can be further controlled according to the configured transmission parameters. This process can be implemented by including at least one of the following:

[0132] 31) Notify the first configuration result to the first electronic device and / or the second electronic device so that the second electronic device supplies power to the first electronic device.

[0133] In this implementation, the first controller, such as the Enhance PD controller, determines, at least based on device information, that the first electronic device and the second electronic device need to enter a power exchange mode, and the power transmission direction is from the second electronic device to the first electronic device. Accordingly, the first configuration result includes, but is not limited to, the respective power transmission roles of the first and second electronic devices. For example, the second electronic device is the master device in the power transmission, acting as the power supply end, and the first electronic device is the slave device in the power transmission, acting as the power receiving end. It may also include corresponding power output power, frequency, current, voltage, duration, power supply time, and other power transmission parameters.

[0134] In this scenario, the first controller, such as the Enhance PD controller, can specifically notify the second electronic device of its corresponding power transmission master device role information, as well as at least some of the power transmission parameters such as power output power, frequency, current, and voltage. For example, it can specifically notify the charging controller (PD controller) at the USB interface of the second electronic device to instruct the second electronic device to output power according to the corresponding power transmission parameters. It can also notify the first electronic device of its corresponding power transmission slave device role information to instruct the first electronic device to receive power.

[0135] In response to the received notification information, the second electronic device outputs power to the power path of the connected device, such as a Vbus line, using the obtained power transmission parameters, thereby supplying power to the first electronic device.

[0136] 32) Notify the first electronic device and / or the second electronic device of the second configuration result so that the first electronic device supplies power to the second electronic device.

[0137] In this implementation, the first controller, such as the Enhance PD controller, determines, at least based on the device information, that the first electronic device and the second electronic device need to enter a power exchange mode, and the power transmission direction is from the first electronic device to the second electronic device. That is, the power transmission direction is opposite to the direction in 31).

[0138] The second configuration result is similar to the information in the first configuration result above. The difference is that the first electronic device is the master device in power transmission and is used as the power supply end, while the second electronic device is the slave device in power transmission and is used as the power receiving end.

[0139] The first controller, such as the Enhance PD controller, can notify the first electronic device of its corresponding power transmission master device role information and at least some of the information from various power transmission parameters, so as to instruct the first electronic device to output power according to the corresponding power transmission parameters. It can also notify the second electronic device of its corresponding power transmission slave device role information, so as to instruct the second electronic device to receive power.

[0140] In response to the received notification information, the first electronic device outputs power to the power path of the connected device, such as the Vbus line, using the obtained power transmission parameters, thereby enabling the second electronic device to be powered.

[0141] 33) Notify the first electronic device and / or the second electronic device of the third configuration result so that the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device.

[0142] In this implementation, the first controller, such as the Enhance PD controller, determines, at least based on the device information, that the first electronic device and the second electronic device need to enter a data exchange mode, and the data transmission direction is either the second electronic device transmitting data to the first electronic device, or the first electronic device transmitting data to the second electronic device, or the two devices exchanging data with each other.

[0143] The third configuration result may include, but is not limited to, the data transmission roles and directions of the first and second electronic devices, as well as the corresponding data output bandwidth, rate, compression ratio, transmission channel, and other data transmission parameters.

[0144] It should be noted that both electronic devices in this application are host devices, and correspondingly, they both play the role of master devices in data transmission and are connected via a USB cloning cable or other connection device. Therefore, in the third configuration result, both the first and second electronic devices play the role of master devices in data transmission, while the connection device acts as a slave device. The first controller, such as the Enhance PD controller, when notifying the two electronic devices of the third configuration result, can notify the electronic device used to send data of its corresponding role, at least some of the transmission parameters (bandwidth, compression rate, speed, etc.) indicating the direction of data transmission, to notify the electronic device currently used to send data to output data with the indicated parameters. Similarly, it can notify the electronic device used to send data of its corresponding role and at least some of the transmission parameters indicating the direction of data transmission, to notify the electronic device currently used to receive data to receive data.

[0145] In response to the received notification information, the electronic device used to send data will output data to the data path of the connected device, such as Tx+ / Tx-, based on the host device role and the obtained data transmission parameters. The second controller of the connected device, such as the master control chip OTI IC, receives the transmitted data based on the slave device role and caches it in its internal memory. Then, based on the slave device role, it forwards the obtained data to the electronic device used to receive the data.

[0146] 34) Notify the first electronic device and / or the second electronic device of the fourth configuration result so that the second electronic device supplies power to the first electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device.

[0147] In this implementation, the first controller, such as the Enhance PD controller, determines at least based on the device information whether the first electronic device and the second electronic device need to enter a power exchange mode and a data exchange mode. The power transmission direction is from the second electronic device to the first electronic device, and the data transmission direction is either the second electronic device transmitting data to the first electronic device, or the first electronic device transmitting data to the second electronic device, or the two devices transmitting data to each other.

[0148] The fourth configuration result includes the power transmission parameter configuration result in the transmission direction from the second electronic device to the first electronic device, as well as the data transmission parameter configuration result in the aforementioned data transmission direction.

[0149] The first controller, such as the Enhance PD controller, can notify the corresponding devices in the first and second electronic devices of the power transmission parameter configuration results and the data transmission parameter configuration results mentioned above. This allows the second electronic device to be triggered to supply power to the first electronic device based on the received notification, and simultaneously, data transmission between the two devices is performed in the required direction.

[0150] This implementation method is essentially a combination of implementation methods 31) and 33). Further implementation processes can be found in the descriptions of 31) and 33), and will not be detailed hereafter.

[0151] 35) Notify the first electronic device and / or the second electronic device of the fifth configuration result so that the first electronic device supplies power to the second electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device.

[0152] In this implementation, the first controller, such as the Enhance PD controller, determines at least based on the device information whether the first electronic device and the second electronic device need to enter a power exchange mode and a data exchange mode. The power transmission direction is from the first electronic device to the second electronic device, and the data transmission direction is either the second electronic device transmitting data to the first electronic device, or the first electronic device transmitting data to the second electronic device, or the two devices transmitting data to each other.

[0153] The fifth configuration result includes the power transmission parameter configuration result in the transmission direction from the first electronic device to the second electronic device, as well as the data transmission parameter configuration result in the aforementioned data transmission direction.

[0154] The first controller, such as the Enhance PD controller, can notify the corresponding devices in the first and second electronic devices of the power transmission parameter configuration results and the data transmission parameter configuration results mentioned above. This allows the first electronic device to supply power to the second electronic device based on the received notification, and simultaneously, data transmission between the two devices in the desired direction.

[0155] This implementation method is essentially a combination of implementation methods 32) and 33). Further implementation processes can be found in the descriptions of 32) and 33), and will not be detailed hereafter.

[0156] As can be seen from the above solutions, the control method disclosed in this application, after connecting the first electronic device and the second electronic device respectively, obtains device information of the first electronic device and the second electronic device; and at least configures the data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained device information, so as to control the data exchange and / or power exchange between the first electronic device and the second electronic device. This application, by obtaining device information of the first electronic device and the second electronic device through the connection device and configuring the data and / or power transmission parameters between the first electronic device and the second electronic device based on the obtained device information, can not only support cross-device data exchange through the connection device, but also cross-device power exchange, thereby meeting the need for power supply / charging between different devices based on the connection device.

[0157] Optionally, in one embodiment, see [link to relevant documentation]. Figure 4 The control method flowchart shown in this application, after obtaining the device information of the first electronic device and the second electronic device in step 301, may further include the following processing:

[0158] Step 401: Share the target configuration information with the first electronic device and the second electronic device.

[0159] In this embodiment, the connecting device, such as a USB cable, has its own attribute information built-in. These attributes include, but are not limited to, its own configuration information, such as the corresponding USB version number and supported communication protocols. Optionally, this information can be stored as firmware in the connecting device's internal memory, such as in cable ROM (Read-Only Memory).

[0160] After the first and second interfaces of the connection device are connected to the first electronic device and the second electronic device respectively, the firmware built into the connection device will enumerate its own attributes, that is, its own configuration information, to the two electronic devices. Through the enumeration process, the target configuration information is shared with the first electronic device and the second electronic device.

[0161] The shared target configuration information includes at least the communication protocol information supported by the connected device. Specifically, this includes, but is not limited to, any one or more of the following: communication device protocols, human-machine interface protocols, universal serial bus video protocols, and universal serial bus audio protocols.

[0162] In addition, the target configuration information may optionally include control instructions for instructing the devices connected at both ends to load the corresponding drivers.

[0163] Step 402: Establish at least one communication channel between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device that corresponds to the target configuration information.

[0164] After sharing the target configuration information with the first electronic device and the second electronic device, the connection device can control the first electronic device and the second electronic device to load the corresponding driver based on the control instructions in the target configuration information. That is, load the driver corresponding to the target configuration information. After loading, the loaded driver is used to establish at least one communication channel between the first electronic device and the second electronic device, so as to realize the construction of a communication link between the two devices.

[0165] However, this is not the only option. In other implementations, the target configuration information may not contain control commands. In this case, after sharing the target configuration information with the first electronic device and the second electronic device, the two electronic devices can be triggered to load the corresponding driver based on the configuration information, and the loaded driver can be used to establish at least one communication channel between the first electronic device and the second electronic device to complete the construction of the communication link.

[0166] It should be noted that the driver loaded corresponding to the target configuration information refers to the driver of the device, not the driver of the connecting device, such as the driver required by the first electronic device / second electronic device to implement video / audio data or screen projection data transmission.

[0167] The established communication channels include, but are not limited to, at least one of the following: communication channels established through communication device protocols, communication channels established through human-machine interface protocols, communication channels established through Universal Serial Bus (USB) video protocols, and communication channels established through USB audio protocols. For details, please refer to [link to relevant documentation]. Figure 5 Example provided.

[0168] Optionally, the internal memory of the connecting device, such as the ROM of a USB cable, can also contain installation packages for applications that are compatible with the various communication protocols it supports, such as video applications, audio applications, and screen mirroring applications.

[0169] After establishing a communication link between the first electronic device and the second electronic device, the connecting device further determines whether the first electronic device and the second electronic device have the target application installed. The target application is the application that matches the communication channel type of the established communication link. If it is not installed, the installation package stored in the internal memory of the connecting device, such as cable ROM, is transmitted to the corresponding electronic device for installation, so that the data transmission under the required application can be supported by installing the relevant installation package in real time on the electronic device.

[0170] Furthermore, optionally, after establishing the at least one communication channel, the control method provided in this application may further include the following processing:

[0171] Data generated by one of the first electronic devices and the second electronic devices based on the target application is transmitted to the other device of the first electronic device and the second electronic device through at least one communication channel.

[0172] The data generated by the target application can be content data or control data, and the data generated by the target application can include data generated by the target application itself, and / or data generated and obtained by the target application through monitoring other applications, without restriction.

[0173] For example, the data generated by screen mirroring applications is the content data generated by the screen mirroring application itself, while the data generated by control applications such as keyboard and mouse are control data obtained by monitoring the operation information of keyboard and mouse operations.

[0174] Optionally, when the first electronic device and the second electronic device are running different target applications, data generated based on the different target applications can be exchanged using different communication channels. That is, the connection device of this application embodiment can be used to establish multiple communication channels between the two connected devices, and support the simultaneous exchange of data generated by different applications between the two devices based on the established multiple communication channels. Specifically, data triggered by different applications is transmitted through corresponding different communication channels, as detailed in the references. Figure 5 As shown.

[0175] Among them, see reference Figure 5 By using different communication channels to exchange data generated by different target applications, it can be further implemented to include at least one of the following:

[0176] 41) If the data includes screen projection content, the display content and audio content in the screen projection content are transmitted to the peer device through the corresponding first communication channel and second communication channel, respectively. The first communication channel is a communication channel established through the Universal Serial Bus video protocol, and the second communication channel is a communication channel established through the Universal Serial Bus audio protocol.

[0177] 42) If the data includes a file to be transmitted, the file to be transmitted is sent to the corresponding first physical layer hardware through the driver of the communication device class protocol interface of the electronic device, and the first physical layer hardware transmits the file to be transmitted to the peer device.

[0178] 43) If the data includes instruction data acting on the first electronic device, the instruction data is sent to the corresponding first physical layer hardware through the driver of the communication protocol interface of the first electronic device, and the first physical layer hardware transmits the instruction data to the second electronic device.

[0179] 44) If the data includes keyboard / mouse data from the first electronic device, the keyboard / mouse data is sent to the corresponding second physical layer hardware through the driver of the human-machine interface device protocol corresponding to the first electronic device, and the second physical layer hardware transmits the keyboard / mouse data to the second electronic device.

[0180] The first physical layer hardware and the second physical layer hardware are the corresponding physical layer hardware of the transmitting electronic device, such as the pins used for corresponding data transmission in the USB interface of the transmitting electronic device.

[0181] This embodiment determines whether the target application is installed on the device connected to the connection device. If not, it transfers the installation package stored in the connection device's internal memory, such as cable ROM, to the corresponding electronic device for installation. This effectively overcomes the problem of data transmission failure and the need for additional application installation due to the lack of the required target application on the connected device. Furthermore, by establishing multiple types of communication channels between the connected devices, this embodiment supports the exchange of data generated by different target applications using different communication channels, further meeting the need for simultaneous data exchange between different devices.

[0182] Corresponding to the control method described above, this application also provides a control device, see [link to relevant documentation]. Figure 6 The diagram shown illustrates the structural composition of a control device, which includes:

[0183] The acquisition unit 601 is used to obtain device information of the first electronic device and the second electronic device after respectively connecting to the first electronic device and the second electronic device;

[0184] Configuration unit 602 is configured to configure data and / or power transmission parameters between the first electronic device and the second electronic device based at least on the device information;

[0185] Control unit 603 is used to control data exchange and / or power exchange between the first electronic device and the second electronic device based on the transmission parameters.

[0186] In one embodiment, the acquisition unit 601 is specifically configured to perform at least one of the following:

[0187] The device information is read using a configuration channel between the first controller and the first electronic device and the second electronic device. The first controller is a component within the connection device that can communicate with the power transmission controllers of the first electronic device and the second electronic device.

[0188] After determining that the interface signal of each end interface is in the first state, the device information is obtained by exchanging enumeration information with the first electronic device and the second electronic device through the interface.

[0189] In one embodiment, the configuration unit 602 is specifically configured to perform at least one of the following:

[0190] Configure the master-slave relationship between the first electronic device and the second electronic device in the data transmission and / or power transmission process based on the device information;

[0191] Configure the data transmission parameters of the first electronic device and the second electronic device during the data transmission process based on the device information;

[0192] Configure the power transmission parameters of the first electronic device and the second electronic device during the power transmission process based on the device information.

[0193] In one embodiment, the configuration unit 602 is specifically configured to perform at least one of the following:

[0194] Receive control commands from the first electronic device and / or the second electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information;

[0195] Receive control commands from a third electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information;

[0196] Obtain usage information of the first electronic device and / or the second electronic device, and configure data and / or power transmission parameters between the first electronic device and the second electronic device based on the usage information and the device information.

[0197] In one embodiment, when configuring data and / or power transmission parameters between the first electronic device and the second electronic device based on the control command and the device information, the configuration unit 602 is specifically configured to perform at least one of the following:

[0198] If the control command conflicts with the configuration result obtained based on the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command; or, if the priority of the control command is higher than the priority of the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command.

[0199] If the control command does not conflict with the configuration result obtained based on the device information, the data and / or power transmission parameters between the first electronic device and the second electronic device are adjusted or optimized based on the control command.

[0200] In one embodiment, the control unit 603 is specifically configured to perform at least one of the following:

[0201] The first configuration result is notified to the first electronic device and / or the second electronic device so that the second electronic device supplies power to the first electronic device;

[0202] The second configuration result is notified to the first electronic device and / or the second electronic device so that the first electronic device supplies power to the second electronic device;

[0203] The third configuration result is notified to the first electronic device and / or the second electronic device, so that the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device;

[0204] The fourth configuration result is notified to the first electronic device and / or the second electronic device so that the second electronic device supplies power to the first electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device;

[0205] The fifth configuration result is notified to the first electronic device and / or the second electronic device, so that the first electronic device supplies power to the second electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device.

[0206] In one embodiment, the control device may further include:

[0207] A link establishment unit is used to share target configuration information with the first electronic device and the second electronic device after respectively accessing the first electronic device and the second electronic device; and to establish at least one communication channel between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device corresponding to the target configuration information.

[0208] The target configuration information includes at least the communication protocol information supported by the connection device.

[0209] In one embodiment, the above-mentioned apparatus further includes: an installation processing unit, configured to, after establishing the at least one communication channel, transmit data generated by one of the first electronic device and the second electronic device based on a target application to the other of the first electronic device and the second electronic device through the at least one communication channel;

[0210] In cases where the first electronic device and the second electronic device are running different target applications, data generated based on the target applications are transmitted to each other using different communication channels.

[0211] The communication channel includes at least one of the following:

[0212] Communication channels established through communication device protocols, communication channels established through human-machine interface device protocols, communication channels established through universal serial bus video protocols, and communication channels established through universal serial bus audio protocols.

[0213] The control device disclosed in this application is relatively simple to describe because it corresponds to the control method disclosed in the above method embodiments. For related similarities, please refer to the description of the above method embodiments, which will not be described in detail here.

[0214] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0215] For ease of description, the above systems or devices are described separately as various modules or units based on their functions. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware components.

[0216] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0217] Finally, it should be noted that in this document, relational terms such as first, second, third, and fourth are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0218] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A control method applied to a connection device, the method comprising: After accessing the first electronic device and the second electronic device respectively, the device information of the first electronic device and the second electronic device is obtained. The device information includes at least one of the following: device attribute information, device configuration information, device operation information, and communication protocol information supported by the device. At least based on the device information, configure the data and power transmission parameters between the first electronic device and the second electronic device to control the master-slave relationship in data exchange and power exchange between the first electronic device and the second electronic device; Obtaining device information for the first electronic device and the second electronic device includes: The device information is read using a configuration channel between the first controller and the first and second electronic devices. The first controller is a component within the connection device that can communicate with the power transmission controllers of the first and second electronic devices.

2. The method according to claim 1, wherein, Obtaining device information for the first electronic device and the second electronic device includes: After determining that the interface signal of each end interface is in the first state, the device information is obtained by exchanging enumeration information with the first electronic device and the second electronic device through the interface. The interface signal being in the first state means that the signal is in a stable state that meets the stability conditions.

3. The method according to claim 1, wherein configuring the data and power transmission parameters between the first electronic device and the second electronic device based at least on the device information includes: Configure the data transmission parameters of the first electronic device and the second electronic device during the data transmission process based on the device information; Configure the power transmission parameters of the first electronic device and the second electronic device during the power transmission process based on the device information.

4. The method according to claim 1 or 3, wherein configuring the data and power transmission parameters between the first electronic device and the second electronic device based at least on the device information includes at least one of the following: Receive control commands from the first electronic device and / or the second electronic device, and configure data and power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information; Receive control commands from a third electronic device, and configure data and power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information; Obtain usage information of the first electronic device and / or the second electronic device, and configure data and power transmission parameters between the first electronic device and the second electronic device based on the usage information and the device information.

5. The method according to claim 4, wherein, Configure data and power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information, including one of the following: If the control command conflicts with the configuration result obtained based on the device information, the data and power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command; or, if the priority of the control command is higher than the priority of the device information, the data and power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command. If the control command does not conflict with the configuration result obtained based on the device information, the data and power transmission parameters between the first electronic device and the second electronic device are adjusted or optimized based on the control command.

6. The method according to claim 1 or 3, wherein, Controlling data and power exchange between the first electronic device and the second electronic device includes at least one of the following: The first configuration result is notified to the first electronic device and / or the second electronic device so that the second electronic device supplies power to the first electronic device; The second configuration result is notified to the first electronic device and / or the second electronic device so that the first electronic device supplies power to the second electronic device; The third configuration result is notified to the first electronic device and / or the second electronic device, so that the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device; The fourth configuration result is notified to the first electronic device and / or the second electronic device so that the second electronic device supplies power to the first electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device; The fifth configuration result is notified to the first electronic device and / or the second electronic device, so that the first electronic device supplies power to the second electronic device, the second electronic device transmits data to the first electronic device, and / or the first electronic device transmits data to the second electronic device.

7. The method according to claim 1, further comprising: Share target configuration information with the first electronic device and the second electronic device; At least one communication channel is established between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device that corresponds to the target configuration information; The target configuration information includes at least the communication protocol information supported by the connection device.

8. The method according to claim 7, wherein, After establishing the at least one communication channel, the method further includes: Data generated by one of the first electronic devices and the second electronic devices based on the target application is transmitted to the other of the first electronic devices and the second electronic devices through the at least one communication channel; In cases where the first electronic device and the second electronic device are running different target applications, data generated based on the target applications are transmitted to each other using different communication channels. The communication channel includes at least one of the following: Communication channels established through communication device protocols, communication channels established through human-machine interface device protocols, communication channels established through universal serial bus video protocols, and communication channels established through universal serial bus audio protocols.

9. A control device, wherein the control device is disposed within a connecting device, comprising: The acquisition unit is configured to acquire device information of the first electronic device and the second electronic device after respectively accessing the first electronic device and the second electronic device, wherein the device information includes at least one of device attribute information, device configuration information, device operation information, and communication protocol information supported by the device; A configuration unit is configured to configure data and power transmission parameters between the first electronic device and the second electronic device based at least on the device information. A control unit is configured to control the master-slave relationship in data and power exchange between the first electronic device and the second electronic device based on the transmission parameters. Obtaining device information for the first electronic device and the second electronic device includes: The device information is read using a configuration channel between the first controller and the first and second electronic devices. The first controller is a component within the connection device that can communicate with the power transmission controllers of the first and second electronic devices.

10. A connecting device, comprising: The first interface and the second interface are respectively capable of connecting to the first electronic device and the second electronic device. Multiple communication channels are configured between the first interface and the second interface, which can at least obtain device information of the first electronic device and the second electronic device. The device information includes at least one of device attribute information, device configuration information, device operation information, and communication protocol information supported by the device. A power path, the two ends of which are respectively connected to the first interface and the second interface, is used to transmit power signals between the first electronic device and the second electronic device; A control module, located between the first interface and the second interface, is capable of configuring data and power transmission parameters between the first electronic device and the second electronic device based on the device information, so as to control the master-slave relationship in data exchange and power exchange between the first electronic device and the second electronic device; Obtaining device information for the first electronic device and the second electronic device includes: The device information is read using a configuration channel between the first controller and the first and second electronic devices. The first controller is a component within the connection device that can communicate with the power transmission controllers of the first and second electronic devices.

11. A control method applied to a connection device, the method comprising: After accessing the first electronic device and the second electronic device respectively, the device information of the first electronic device and the second electronic device is obtained. The device information includes at least one of the following: device attribute information, device configuration information, device operation information, and communication protocol information supported by the device. At least based on the device information, configure the power transmission parameters between the first electronic device and the second electronic device to control the master-slave relationship in the power exchange between the first electronic device and the second electronic device; Obtaining device information for the first electronic device and the second electronic device includes: The device information is read using a configuration channel between the first controller and the first and second electronic devices. The first controller is a component within the connection device that can communicate with the power transmission controllers of the first and second electronic devices.

12. The method of claim 11, wherein configuring the power transmission parameters between the first electronic device and the second electronic device based at least on the device information includes at least one of the following: Receive control commands from the first electronic device and / or the second electronic device, and configure power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information; Receive control commands from a third electronic device, and configure power transmission parameters between the first electronic device and the second electronic device based on the control commands and the device information; Obtain usage information of the first electronic device and / or the second electronic device, and configure power transmission parameters between the first electronic device and the second electronic device based on the usage information and the device information.

13. The method according to claim 12, wherein, Configure the power transmission parameters between the first electronic device and the second electronic device based on the control command and the device information, including one of the following: If the control command conflicts with the configuration result obtained based on the device information, the power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command; or, if the priority of the control command is higher than the priority of the device information, the power transmission parameters between the first electronic device and the second electronic device shall be adjusted or optimized based on the control command. If the control command does not conflict with the configuration result obtained based on the device information, the power transmission parameters between the first electronic device and the second electronic device are adjusted or optimized based on the control command.

Citation Information

Patent Citations

  • A control method and a first device

    CN109144215A

  • High-speed USB TYPE-C interface device supporting bidirectional transmission and graphic signal generator

    CN111881072A